Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(catalog): 修正创作者归属并补齐身份分类

longmeidao0d43f288d86f
diff --git a/README.en.md b/README.en.md
index a6d328f29..82a52fca4 100644
--- a/README.en.md
+++ b/README.en.md
@@ -61,12 +61,13 @@ Want to look around before installing? The [live demo](https://demo.peach.video)
## What it does
- **Search**: type a few characters and performers, codes and videos show up together.
+- **Identity classification**: browse performers, publishing accounts and studios separately. Occupations, release markets and seller roles can coexist, with sources shown on profile pages. Unverified identities are marked for review; performer and creator lists support identity filters.
- **Performer pages**: aliases, birthday and measurements, social accounts and JavDB and MISSAV links on one page, above every video of hers in your library and her photos. You can pick an avatar by drawing a box on any cover.
- **Filling in details**: by video code, Peach fills in titles, performers, studios and high-resolution covers from studio sites, DMM, JavBus, JavDB and others. It only fills empty fields and never overwrites your edits.
- **Playback**: play in the browser and pick up where you left off. Like, rate, save for later, add to a playlist, or "log a climax".
- **New releases**: subscribe on a performer page or by name in follow management, including performers not yet in your library. Peach checks for new titles regularly. Follow creators across sites such as FANBOX, Patreon and Kemono; the same work on different sites appears as one card.
- **JAV intake**: mark a new-release card or followed post as wanted, or enter a video code. Work cards find and deduplicate links from JavDB's resource list and comments, showing attributes, size and date. Add magnets directly to 115 or PikPak, or copy other links. Files scanned into your library are marked as acquired; titles set aside can be searched again.
-- **Cloud download**: paste a magnet link and hand it to 115 or PikPak for offline download; the finished file joins your library on its own. Video pages and followed items have the same entry.
+- **Cloud download**: paste a magnet link in Activity and hand it to 115 or PikPak for offline download; the finished file joins your library on its own. Followed items and your wishlist also have an entry.
- **Find a release**: add your own Prowlarr or Jackett indexer under Media in local configuration, then search by release code in Activity's Cloud download section. Filter by size and prioritize resolution, Chinese subtitles, or uncensored editions; select a candidate and confirm submission.
- **Statistics**: which drive holds what, how much you have watched and which tags dominate, on one page.
- **Appearance**: light or dark, accent color and sidebar order are all yours to set.
diff --git a/README.md b/README.md
index 8621d5ee8..568a44a9b 100644
--- a/README.md
+++ b/README.md
@@ -61,12 +61,13 @@ https://github.com/user-attachments/assets/a5610874-e611-41bb-be22-7d99f0d64b62
## 能做什么
- **搜索**:输入几个字,女优、番号和影片一起出来。
+- **身份分类**:艺人、发布账号与厂牌分别浏览;职业、发行市场和卖家身份可同时记录,并附分类来源。没有可靠来源的身份显示「待核验」,艺人和创作者名单可按身份筛选。
- **女优页**:别名、生日身材、社媒和 JavDB、MISSAV 链接汇在一页,下面是她在你馆藏里的全部作品和照片;头像可以直接在作品封面上框一块。
- **补资料**:按番号从片商官网、DMM、JavBus、JavDB 等站点补标题、女优、厂牌和高清封面;只填空着的,不覆盖你改过的。
- **播放**:在浏览器里直接播放,记下看到哪;可以点喜欢、打分、稍后看、加进播放列表,也能「记一次高潮」。
- **追新作**:在女优页打开订阅,或在关注管理里按名字订阅,馆藏中尚未收录的女优也可订阅。Peach 会定期检查新作;创作者可跨 FANBOX、Patreon、Kemono 等站点关注,不同站点的同一作品合成一张卡。
- **JAV 入库**:在新作卡或关注内容上点「想要」,也可以直接输入番号。作品卡自动查找 JavDB 资源区与评论中的链接,合并重复资源,显示属性、大小和日期;磁链可以直接添加到 115 或 PikPak,其他链接可以复制。文件扫进馆藏后自动标为已入库,久找不到的老片可重新查找。
-- **云下载**:贴一条磁力,交给 115 或 PikPak 离线下载,下载完自动入库;作品页和关注条目上也有入口。
+- **云下载**:在活动页贴一条磁力,交给 115 或 PikPak 离线下载,下载完自动入库;关注条目和想要清单也有入口。
- **按番号找资源**:在本机配置页「媒体」里添加自己的 Prowlarr 或 Jackett 索引器,在活动页「云下载」按番号搜索。可按体积筛选,优先找高清、中字或无码;选中候选后确认提交。
- **统计**:片子存在哪块盘、看过多少、标签分布,一页看完。
- **外观**:深色浅色、主题色、侧栏顺序都能自己调。
diff --git a/docs/PRODUCT_BACKLOG.md b/docs/PRODUCT_BACKLOG.md
index ca54cca8a..d55f9952d 100644
--- a/docs/PRODUCT_BACKLOG.md
+++ b/docs/PRODUCT_BACKLOG.md
@@ -4,6 +4,7 @@
## 待复核的元数据
+- 全库创作者归属审计:2026-10-06 检查 1,685 个实体、59,433 条关系,平台、厂牌、发行标题与作品编号旧投影的修复计划保存在 `peach-data/review/creator-classification-plan.json`。250 个存疑名称的联网查询在同目录 `creator-identity-lookups.json`,可信来源分类与出演署名另存冻结计划;缺少唯一身份来源的记录保持待核验。代码、迁移、真实数据执行与生产核验须完成回归验证。
- `FC2-PPV-1625020` 的资产 `6440`、`6562`:创作者「音あずさ」「音梓」均来自 `legacy:asset`,没有卖家来源证据;女优关系来自 FC2PPV-DB 和 JavDB。复核产物是 `peach-data/review/creator-quality-audit.csv`,状态为候选,真实账本保持原样。清理这两条创作者关系与兼容字段需要用户确认。
## 优先级
diff --git a/docs/REUSE.md b/docs/REUSE.md
index af3c82381..dcdf68ced 100644
--- a/docs/REUSE.md
+++ b/docs/REUSE.md
@@ -1,5 +1,11 @@
# 复用清单
+## 实体身份与职业
+
+身份分类复用 `entity`、来源关系、`field_owners`、SQLite 迁移与版本触发器。职业与账号角色使用独立多值断言,跨角色身份使用可撤回关系;[Schema.org Person](https://schema.org/Person) 的 `hasOccupation`、`sameAs` 与 [Role](https://schema.org/Role) 提供语义参照,2026-10-06 已核对官方文档。实现不复制外部解析器或新增依赖。目录推断和搜索命中只存候选,公开来源事实与用户复核分别保留状态。
+
+`entity_identity_research` 与 `apply_entity_identity_research.py` 复用规范实体写入、字段归属保护、只读预览、SQLite 备份及冻结计划。逐行撤回回执核对后续修改,新增实体有额外引用时拒绝删除;观看历史和人工判断不被回滚覆盖。
+
## 播放器清晰度
清晰度控件复用已内置 VHS 的 Video.js 8.24.1(Apache-2.0)及其 [QualityLevelList](https://github.com/videojs/videojs-contrib-quality-levels)。多档自动播放通过 `selectedIndex`、`change` 事件取得当前轨道;单档 HLS 缺少尺寸时读取视频元素的实际尺寸,并响应 `loadedmetadata`、`resize`。尺寸未取得时显示「当前画质」,轨道 ID 不作界面名称;无需新增依赖。
@@ -217,6 +223,7 @@ JAV 默认封面(官方封面/预览图)与视频默认大小(大图/
- 操作回执复用 Toast(Sonner 的栈,`frontend/src/react/toaster.tsx`;壳里只调 `toast()`/`actionReceipt()`);按钮以 Spinner 和 `aria-busy` 标明忙态。后台任务显示可恢复进度,断线自动重连。
- 实体的统称由用户在资料页自选:菜单只列这条实体名下已有的写法,选中的提为规范名、换下的留成别名,扁平投影跟着改;先过确认弹层并点名两个写法,成功后发可撤销回执;不收自由文本,撞上另一条实体的规范名只报冲突。
- 名字里的括号都走 `split_composite_aliases.py`:自动那拨只认罗马字复合人名,`--from-review` 那拨按人工判定清掉不承载名字的尾巴,旧写法留作别名;读音、厂牌消歧和角色出处不拆。`peach-data/review/composite-names-20260904.csv` 中的 28 条 creator 注音、575 条 tag 角色出处和 10 条 series 厂牌或载体消歧均保留,不属于待执行批次。
+- 全库创作者归属复核走 `scripts/audit_creator_attributions.py` 与 `metadata_creator_attributions`:复用 `code_creators` 的文件番号核对、DMM `matching_cids`、`western_release_identity`、厂牌规范名和别名、`studio_sites.is_platform`、字段归属、SQLite 备份及 `review_csv`。发行站作品号同时核对目录名与媒体文件名;来源目录见 [Legs Japan](https://www.legsjapan.com/en/)、[Fellatio Japan](https://www.fellatiojapan.com/en/),平台身份见 [myfans 官方说明](https://creators.myfans.jp/)。身份判据属于 Peach 的来源绑定,不新增依赖。预览覆盖全部来源关系与无作品的实体;执行必须带原计划摘要、备份和回滚记录,在事务内重算计划。只撤下有文件或发行来源证据的 `legacy:asset` 关系,保留用户判断、外部身份、规范实体和个人记录;同作品的已登记厂牌可补空,`upsert_asset_entity(update_entity_metadata=False)` 保留厂牌资料。外键检查逐项比较既有悬空,修复不得增加或改变它们;回滚核对本批字段版本和关系,后续改动会拒绝整批恢复。
- 实体链接可安装:`entity_link` 表、`q_entity` 的 `links` 契约、资料页 favicon 与管理页链接管理成套;死链区分「搬走了」和「没了」,`rediscover_entity_links.py` 从站点索引页上溯找新锚,确证没了的由 `link_status.settle_gone` 处置(已隐退女优留成不可点的失效标记,其余删除)。
- 厂牌社媒核查:`find_studio_socials.py` 用 Beautiful Soup 4.15.0 解析锚点,传输与字符集用 `peach.http`,账号键用 `social_links.handle`,不加浏览器运行时;Peach 负责同站年龄门、已有账号差集与证据表。整页正则会混进帖子与脚本里的地址,不用于账号提取。
- 事务所是实体:57 家各有 `/agencies/<名字>` 页,成员、官网、标签与作品都按 `entity_membership` 算,女优页点得进去,搜名字出这家人的片;原文留在 `metadata.agency`。
diff --git a/docs/STATUS.md b/docs/STATUS.md
index 75852c8cd..96f80a19d 100644
--- a/docs/STATUS.md
+++ b/docs/STATUS.md
@@ -6,8 +6,7 @@
## 运行态
-- 创作者字段复核见待办。
-- JAV 入库已核验。
+- 身份复核:10 项有来源、240 项待核验;见待办。
- 女优头像 816 张(中位脸宽 258px,38 张带水印待复核);替下的在 `avatars-superseded/`。
- 数据管理页「整理」(ADR-0039)可预览、执行、回滚上一批,真实库未跑过。
- 产地是独立维度、JAV 是其投影:`region` 空时按厂牌、创作者、番号逐层推断,不落库;韩国 MIB 不算 JAV。
diff --git a/docs/TESTING.md b/docs/TESTING.md
index e132aefcd..bc842243d 100644
--- a/docs/TESTING.md
+++ b/docs/TESTING.md
@@ -46,6 +46,8 @@ Dependabot 的 PR 一律在本地接管,不在网页上合:
## 验证频率
+Windows 长回归可设置 `PEACH_TEST_RESOURCE_RUNNER` 为本机 Python 资源入口的绝对路径,并使用 `-Jobs 1`。正式入口仍汇总所有分片与签发记录,每片独立取得资源互斥和 1800 秒限额;控制器只负责调度,不把多个分片合成一个超时窗口。取消时按已创建的 PID 清理子进程树。
+
Python 静态检查使用开发依赖 Ruff,随每个正式测试域扫描全仓自有 Python 文件,覆盖应用、脚本、测试和打包入口。规则为 Pyflakes(`F`)、Ruff 支持的 Pylint 错误规则(`PLE`),以及可变默认参数、`finally` 跳转、无效表达式和循环闭包规则(`B006`、`B012`、`B018`、`B023`)。生成的 `downloads_clouddrive_pb2.py` 排除;公开导出的导入用显式同名别名声明。命名、行数、空行和复杂度偏好不属于这套 lint 门槛。
文档与文案检查包含 seiso 稳定规则和最终状态检查,随正式入口执行。分类、范围、独立检查与预览规则用法见 [文档与界面文案](WRITING.md#检查与复核)。seiso 由开发依赖与锁文件固定,运行 Peach 不需要它。
diff --git a/docs/adr/0095-entity-classification.md b/docs/adr/0095-entity-classification.md
new file mode 100644
index 000000000..9b6ddde42
--- /dev/null
+++ b/docs/adr/0095-entity-classification.md
@@ -0,0 +1,13 @@
+# ADR-0095:身份、职业与作品角色分开记录
+
+状态:已接受。最后复核:2026-10-06。
+
+`performer` 表示出演者,`creator` 表示发布账号,`studio` 表示发行机构。作品关系不直接断言职业、国籍或性别。日本 AV 与西方成人发行是可并存的发行市场,不是互斥的人物身份。
+
+身份分类使用独立的多值来源断言:身份类型、职业、发行市场、账号角色。每条记录保留来源 URL、证据、置信度、核验时间与状态。目录推断和搜索命中保持 candidate;公开来源的确定事实使用 observed;用户复核才能 approved。没有可靠来源时显示「待核验」。
+
+跨角色身份使用可撤回的 same_person 或 operates_account 关系。姓名相同不能自动建立关联,也不能自动合并实体;既有 id、别名、作品关系和行为历史保留。用户执行实体合并时来源断言随实体迁移,同来源冲突拒绝合并。
+
+FC2 卖家名称仍遵守 ADR-0054 的候选 label 规则;有可核验账号证据才记录 seller。平台与合辑目录不能摄取为个人创作者。索引筛选在分页前执行,资料页显示身份分类及来源,保留未核验结果供复核。
+
+复用 [Schema.org Person](https://schema.org/Person) 的职业与同一身份语义,以及 [Role](https://schema.org/Role) 的作品角色语义;使用 SQLite 来源表实现,不引入新的解析依赖。真实修复使用冻结计划、SQLite 备份与逐关系撤回回执。
diff --git a/frontend/e2e/design.test.ts b/frontend/e2e/design.test.ts
index ce974d16b..7b29e22bd 100644
--- a/frontend/e2e/design.test.ts
+++ b/frontend/e2e/design.test.ts
@@ -4,7 +4,7 @@
* 行为落在 vitest,布局与运行期问题归 `smoke.test.ts`。每条用例守一个决定,读的是
* `getComputedStyle`,类名或样式写法换了照样成立。 */
import assert from 'node:assert/strict';
-import { after, before, describe, it } from 'node:test';
+import { after, before, beforeEach, describe, it } from 'node:test';
import type { Browser, Locator, Page } from 'playwright-core';
@@ -782,11 +782,22 @@ async function followTab(opened: Visit, name: string): Promise<void> {
describe('设计决定', () => {
let browser: Browser;
+ let browserTests = 0;
before(async () => {
browser = await launch();
});
+ beforeEach(async () => {
+ // 每个浏览器至多运行 8 项,页面与图像缓存的累积占用受限。
+ if (browserTests === 8) {
+ await browser.close();
+ browser = await launch();
+ browserTests = 0;
+ }
+ browserTests += 1;
+ });
+
after(async () => {
await browser.close();
});
diff --git a/frontend/e2e/item-detail.test.ts b/frontend/e2e/item-detail.test.ts
index 807ddf034..a1eff3ff9 100644
--- a/frontend/e2e/item-detail.test.ts
+++ b/frontend/e2e/item-detail.test.ts
@@ -339,7 +339,8 @@ describe('作品详情岛', () => {
const rects = await actions.evaluateAll(nodes => nodes.map(node => {
const r = node.getBoundingClientRect(); return { top: r.top, width: r.width };
}));
- assert.equal(rects.length, 9);
+ assert.equal(rects.length, 8);
+ assert.equal(await page.locator('#stage [data-fb="cloud-download"]').count(), 0);
assert.ok(Math.max(...rects.map(r => r.top)) - Math.min(...rects.map(r => r.top)) <= 1);
assert.ok(rects.every(r => r.width >= 30));
await actions.first().scrollIntoViewIfNeeded();
diff --git a/frontend/src/react/entity-hero/entity-hero-page.tsx b/frontend/src/react/entity-hero/entity-hero-page.tsx
index f2e9051ab..edef97f28 100644
--- a/frontend/src/react/entity-hero/entity-hero-page.tsx
+++ b/frontend/src/react/entity-hero/entity-hero-page.tsx
@@ -66,6 +66,25 @@ export function EntityHeroPage({ kind, name, entity, feedNew, feedHost, actions,
onChoose={actions.chooseName} onAddAlias={actions.addAlias} />
</div>
<AliasLine kind={kind} entity={entity} actions={actions} />
+ {entity.identity_labels?.length ? (
+ <div data-identity-classification="" className="flex min-w-0 flex-wrap gap-2 text-caption-1-regular text-text-secondary">
+ <span>{entity.identity_labels.join(' · ')}</span>
+ {!!entity.classifications?.length && <details className="min-w-0">
+ <summary className="cursor-pointer">分类来源</summary>
+ <ul className="break-words">
+ {entity.classifications.map((claim, at) => <li key={at}>
+ {claim.label} · {claim.status === 'candidate' ? '待核验' : claim.status === 'rejected' ? '已排除' : '有来源'} · {claim.evidence}
+ {claim.source_url.startsWith('https://') ? <> <a href={claim.source_url} target="_blank" rel="noopener noreferrer">来源</a></> : null}
+ </li>)}
+ </ul>
+ </details>}
+ {entity.related_identities?.map((identity) => (
+ <button type="button" key={identity.id} className="text-text-primary underline" onClick={() => actions.openEntity(identity.kind, identity.canonical_name)}>
+ {identity.relation === 'same_person' ? '同一人' : '关联账号'}:{identity.canonical_name}
+ </button>
+ ))}
+ </div>
+ ) : null}
{links.length ? (
<div ref={linkRow} data-entity-links="">{links.map((link, at) => <HeroLinkView key={at} link={link} />)}</div>
) : null}
diff --git a/frontend/src/react/entity-hero/entity-hero.ts b/frontend/src/react/entity-hero/entity-hero.ts
index 7a2d7761c..0eb21572a 100644
--- a/frontend/src/react/entity-hero/entity-hero.ts
+++ b/frontend/src/react/entity-hero/entity-hero.ts
@@ -64,6 +64,9 @@ export interface HeroNameGroups {
/** `/api/entity` 里资料卡读到的那些字段。 */
export interface EntityHeroData {
+ identity_labels?: string[];
+ classifications?: { facet: string; value: string; label: string; status: string; source_url: string; evidence: string }[];
+ related_identities?: { id: number; kind: string; canonical_name: string; relation: string }[];
id: number;
canonical_name: string;
aliases?: string[];
diff --git a/frontend/src/react/index/index-data.ts b/frontend/src/react/index/index-data.ts
index b9097913c..abd615eb5 100644
--- a/frontend/src/react/index/index-data.ts
+++ b/frontend/src/react/index/index-data.ts
@@ -22,7 +22,7 @@ export type PeopleLayout = 'big' | 'compact';
export const INDEX_URL = '/api/index';
-/** 页头标题。`/performers` 的页标题叫「女优」,页内标题跟着名册的口径叫「艺人」。 */
+/** 页头标题与名册口径。 */
export const INDEX_TITLES: Record<IndexKind, string> = {
performers: '艺人', creators: '创作者', studios: '厂牌', agencies: '事务所', tags: '标签',
};
@@ -44,6 +44,12 @@ export const ONLINE_TAG_CATEGORIES: readonly (readonly [string, string])[] = [
['all', '全部'], ['general', '通用'], ['artist', '创作者'], ['character', '角色'],
['copyright', '作品'], ['metadata', '元数据'],
];
+export const IDENTITY_CATEGORIES: readonly (readonly [string, string])[] = [
+ ['all', '全部'], ['person', '个人'], ['account', '发布账号'], ['seller', '卖家'],
+ ['organization', '机构'], ['platform', '平台'], ['adult_performer', '成人出演者'],
+ ['model', '模特'], ['artist', '艺术创作者'], ['japanese_av', '日本 AV'],
+ ['western_adult', '西方成人发行'], ['unknown', '待核验'],
+];
/** 每页条数:一屏头像 120 格,标签 180 枚。 */
export const PAGE_SIZE = { people: 120, tags: 180 } as const;
@@ -53,6 +59,7 @@ export const isCompany = (kind: IndexKind) => kind === 'studios' || kind === 'ag
/** 本地名册的一格。字段以 `q_index` 为准;公司另有标识,事务所另有成员数。 */
export interface IndexPerson {
+ identity_labels?: string[];
entity_id?: number;
id?: number;
k: string;
@@ -130,13 +137,15 @@ export interface IndexProps extends IndexRoute {
* 只有艺人和标签两页分本地与在线。 */
export function indexRoute(route: IndexRoute): IndexRoute {
const scope = route.kind === 'tags' || route.kind === 'performers' ? route.scope : 'local';
- const known = (scope === 'online' ? ONLINE_TAG_CATEGORIES : TAG_CATEGORIES).some(([key]) => key === route.category);
- return { ...route, scope, category: route.kind === 'tags' && known ? route.category : 'all' };
+ const categories = route.kind === 'tags' ? (scope === 'online' ? ONLINE_TAG_CATEGORIES : TAG_CATEGORIES) : IDENTITY_CATEGORIES;
+ const classified = scope === 'local' && (route.kind === 'creators' || route.kind === 'performers');
+ const known = categories.some(([key]) => key === route.category);
+ return { ...route, scope, category: (route.kind === 'tags' || classified) && known ? route.category : 'all' };
}
/** 一种状态下该读哪一份:本地名册、本地词表、在线创作者或在线标签。 */
export type IndexSource =
- | { what: 'people'; kind: Exclude<IndexKind, 'tags'>; q: string }
+ | { what: 'people'; kind: Exclude<IndexKind, 'tags'>; q: string; category?: string }
| { what: 'tags'; q: string; category: string }
| { what: 'online-authors'; q: string }
| { what: 'online-tags'; q: string; category: string };
@@ -145,16 +154,16 @@ export function indexSource(route: Pick<IndexRoute, 'kind' | 'q' | 'scope' | 'ca
const { kind, q, scope, category } = route;
if (kind === 'tags') return scope === 'online' ? { what: 'online-tags', q, category } : { what: 'tags', q, category };
if (kind === 'performers' && scope === 'online') return { what: 'online-authors', q };
- return { what: 'people', kind, q };
+ return { what: 'people', kind, q, ...(category && category !== 'all' ? { category } : {}) };
}
export const indexKey = (kind: IndexKind, q: string, category = 'all') =>
- ['index', kind, q, ...(kind === 'tags' ? [category] : [])] as const;
+ ['index', kind, q, ...(kind === 'tags' || category !== 'all' ? [category] : [])] as const;
export function indexUrl(kind: IndexKind, q: string, category: string, limit: number, offset: number): string {
const params = new URLSearchParams({ kind, limit: String(limit), offset: String(offset) });
if (q) params.set('q', q);
- if (kind === 'tags' && category !== 'all') params.set('category', category);
+ if (category !== 'all') params.set('category', category);
return `${INDEX_URL}?${params}`;
}
@@ -175,8 +184,8 @@ export function indexQuery(source: IndexSource): IndexQuery {
const base = { initialPageParam: 0, getNextPageParam: next };
switch (source.what) {
case 'people':
- return { ...base, queryKey: indexKey(source.kind, source.q),
- queryFn: ({ pageParam, signal }) => apiGet(indexUrl(source.kind, source.q, 'all', limit, pageParam), signal) };
+ return { ...base, queryKey: indexKey(source.kind, source.q, source.category || 'all'),
+ queryFn: ({ pageParam, signal }) => apiGet(indexUrl(source.kind, source.q, source.category || 'all', limit, pageParam), signal) };
case 'tags':
return { ...base, queryKey: indexKey('tags', source.q, source.category),
queryFn: ({ pageParam, signal }) => apiGet(indexUrl('tags', source.q, source.category, limit, pageParam), signal) };
diff --git a/frontend/src/react/index/index-page.tsx b/frontend/src/react/index/index-page.tsx
index 28c286a65..72e347418 100644
--- a/frontend/src/react/index/index-page.tsx
+++ b/frontend/src/react/index/index-page.tsx
@@ -24,7 +24,7 @@ import { SEGMENTED_TRACK, SEGMENT_ICON, SegmentedRadioGroup as RadioGroup } from
import { spriteGlyph } from '../components/sprite-glyph';
import type { OnlineAuthor, OnlineTag } from '../follow/online-vocab';
import {
- INDEX_TITLES, ONLINE_TAG_CATEGORIES, TAG_CATEGORIES, countText, flatItems, indexQuery, indexRoute, indexSource, isCompany,
+ INDEX_TITLES, IDENTITY_CATEGORIES, ONLINE_TAG_CATEGORIES, TAG_CATEGORIES, countText, flatItems, indexQuery, indexRoute, indexSource, isCompany,
isPeople, tagGroups, type IndexKind, type IndexPage as Page, type IndexPerson, type IndexProps,
type IndexRoute, type IndexScope, type IndexTag, type PeopleLayout,
} from './index-data';
@@ -163,7 +163,7 @@ export function IndexPage(props: IndexProps) {
? <BoardTabs tabs={SCOPE_TABS} value={scope} label="名册" onChange={(next) => {
// 在线那一档摆的是还没进账本的人,选择模式拼的是目录批量操作,对它一条都不成立。
if (next === 'online') props.exitSelectMode();
- go({ scope: next });
+ go({ scope: next, category: 'all' });
}} />
: isCompany(kind)
? <BoardTabs tabs={MAKER_TABS} value={kind as 'studios' | 'agencies'} label="公司类型"
@@ -195,7 +195,7 @@ export function IndexPage(props: IndexProps) {
</EmptyState>
);
}
- if (!items.length) return <IndexEmpty kind={kind} filtered={!!q || (kind === 'tags' && category !== 'all')}
+ if (!items.length) return <IndexEmpty kind={kind} filtered={!!q || category !== 'all'}
online={onlineTags || onlineAuthors} configurable={props.configurable} />;
if (onlineAuthors) return <OnlineAuthors items={items as OnlineAuthor[]} layout={layout} props={props} />;
if (isPeople(kind)) return <PeopleGrid kind={kind} items={items as IndexPerson[]} layout={layout} props={props} />;
@@ -220,6 +220,14 @@ export function IndexPage(props: IndexProps) {
<IndexSearch label={`过滤${title}`} value={q} onQuery={(next) => { if (next !== q) go({ q: next }, !!next) }} />
</div>
{tabs}
+ {(kind === 'creators' || kind === 'performers') && scope === 'local' ? (
+ <div aria-label="身份分类" className="mb-4 flex flex-wrap gap-2">
+ {IDENTITY_CATEGORIES.map(([key, label]) => (
+ <Button key={key} variant={category === key ? 'primary' : 'secondary'} size="small"
+ aria-pressed={category === key} onClick={() => go({ category: key })}>{label}</Button>
+ ))}
+ </div>
+ ) : null}
{kind === 'tags' ? (
<TagFilters categories={categories} category={category} online={onlineTags} readout={readout}
letters={groups.map(([letter]) => letter)} view={view}
diff --git a/frontend/src/react/index/index-people.tsx b/frontend/src/react/index/index-people.tsx
index 1cd9782db..0bce69b0c 100644
--- a/frontend/src/react/index/index-people.tsx
+++ b/frontend/src/react/index/index-people.tsx
@@ -66,7 +66,7 @@ export function PeopleGrid(
{items.map((item) => {
const avatar = props.personAvatar(item, entityKind, big);
return (
- <Cell key={item.k} data-k={item.k} data-kind={entityKind} name={item.k} readout={personReadout(kind, item)}
+ <Cell key={item.k} data-k={item.k} data-kind={entityKind} name={item.k} readout={`${personReadout(kind, item)}${item.identity_labels?.length ? ' · ' + item.identity_labels.join(' / ') : ''}`}
big={big} onPress={() => props.openEntity(entityKind, item.k)}>
<Ring html={avatar.html} face={avatar.face} company={company} big={big} />
</Cell>
diff --git a/frontend/src/react/item-detail/item-detail-page.tsx b/frontend/src/react/item-detail/item-detail-page.tsx
index 76f316679..c9aba0222 100644
--- a/frontend/src/react/item-detail/item-detail-page.tsx
+++ b/frontend/src/react/item-detail/item-detail-page.tsx
@@ -337,8 +337,6 @@ function Side({ item, queue, write, helpers, actions }: {
<button type="button" id="betterVersion" data-fb="quality" aria-label="寻找更好版本"
title={item.better_version ? (item.better_version_reason || '已标记寻找更好版本') : '寻找高清、无水印或完整版'}
aria-pressed={!!item.better_version} {...busy('quality')} onClick={write.quality}><Glyph name="sparkles" /></button>
- <button type="button" data-fb="cloud-download" aria-label="云下载" title="云下载 · 贴磁力交给 115 或 PikPak 离线下载"
- onClick={() => actions.cloudDownload(item)}><Glyph name="cloud-download" /></button>
<button type="button" data-kind="dispose" data-fb="dispose" aria-label="移入回收站" title="移入回收站 · 文件仍保留,可从回收站永久清除"
aria-pressed={item.disposal === 'trash'} {...busy('dispose')} onClick={() => write.feedback('dispose')}><Glyph name="trash" /></button>
</div>
diff --git a/frontend/src/react/item-detail/item-detail.ts b/frontend/src/react/item-detail/item-detail.ts
index cc837c075..bccdb5ca9 100644
--- a/frontend/src/react/item-detail/item-detail.ts
+++ b/frontend/src/react/item-detail/item-detail.ts
@@ -278,7 +278,6 @@ export interface ItemDetailActions {
/** 加入播放列表那一屏(壳的表单弹层:舞台是 `showModal()` 开的原生 dialog,弹层要进同一层)。 */
addToPlaylist(item: DetailItem): void;
/** 云下载:带着番号与标题去活动页的云下载段,用户贴磁力交给 115 或 PikPak。 */
- cloudDownload(item: DetailItem): void;
/** 保存 Mix 那一屏:壳弹表单,确认时调 `save(name)`;存好了壳转去那份播放列表并给撤销。 */
saveMix(options: { title: string; count: number; save(name: string): Promise<PlaylistPayload> }): void;
/** 编辑播放列表:去播放列表页。 */
diff --git a/frontend/test/react/entity-hero.test.tsx b/frontend/test/react/entity-hero.test.tsx
index abbf3b62d..e9025ba88 100644
--- a/frontend/test/react/entity-hero.test.tsx
+++ b/frontend/test/react/entity-hero.test.tsx
@@ -53,6 +53,19 @@ async function open(initial: EntityHeroProps) {
}
describe('排版用的纯函数', () => {
+ it('资料卡展示多重职业、来源与跨角色身份入口', async () => {
+ const given = props({ entity: performer({
+ identity_labels: ['成人出演者', '日本 AV', '西方成人发行'],
+ classifications: [{ facet: 'occupation', value: 'adult_performer', label: '成人出演者', status: 'observed', source_url: 'https://publisher.test/person', evidence: '发行方演员名单' }],
+ related_identities: [{ id: 2, kind: 'creator', canonical_name: '本人账号', relation: 'operates_account' }],
+ }) });
+ const host = await open(given);
+ const classification = host.querySelector('[data-identity-classification]')!;
+ expect(classification.textContent).toContain('日本 AV · 西方成人发行');
+ expect(classification.querySelector('a')?.getAttribute('href')).toBe('https://publisher.test/person');
+ await click(classification.querySelector('button'));
+ expect(given.actions.openEntity).toHaveBeenCalledWith('creator', '本人账号');
+ });
it('名字下面那一行:读音在最前,余下的收进「+N」;什么都没有就不出这一项', () => {
expect(nameLine({ reading: 'あおい', shown: ['葵司', 'Tsukasa Aoi'], total: 5 }))
.toEqual({ names: ['あおい', '葵司', 'Tsukasa Aoi'], rest: 3, total: 5 });
diff --git a/frontend/test/react/index-page.test.tsx b/frontend/test/react/index-page.test.tsx
index b70977075..a0816887b 100644
--- a/frontend/test/react/index-page.test.tsx
+++ b/frontend/test/react/index-page.test.tsx
@@ -84,6 +84,19 @@ describe('地址栏上的类型', () => {
});
describe('名册', () => {
+ it('身份分类写回地址并隔离分页缓存;候选只显示待核验', async () => {
+ seed(indexKey('creators', ''), [person('待核验账号', { identity_labels: ['待核验'] })]);
+ const fetcher = serve(() => ({ items: [person('艺术账号', { identity_labels: ['发布账号', '艺术创作者'] })], has_more: false }));
+ const given = props({ kind: 'creators' });
+ const host = await open(given);
+ expect(cells(host)[0]?.textContent).toContain('待核验');
+ await click(buttonNamed('艺术创作者', host));
+ await settle();
+ expect(given.route).toHaveBeenLastCalledWith(expect.objectContaining({ category: 'artist' }), { replace: false });
+ expect(urls(fetcher)[0]).toContain('category=artist');
+ expect(cells(host)[0]?.textContent).toContain('发布账号 / 艺术创作者');
+ expect(indexRoute({ kind: 'performers', q: '', scope: 'online', view: 'alphabet', category: 'artist' }).category).toBe('all');
+ });
it('首屏读缓存,读数带加号,大图版式按大格取头像', async () => {
seed(indexKey('performers', ''), [person('甲'), person('乙')], true);
const given = props();
diff --git a/frontend/test/react/item-detail.test.tsx b/frontend/test/react/item-detail.test.tsx
index 33ff69371..299001b56 100644
--- a/frontend/test/react/item-detail.test.tsx
+++ b/frontend/test/react/item-detail.test.tsx
@@ -43,7 +43,7 @@ function actions(): ActionMocks {
return {
close: vi.fn(), present: vi.fn(), redirect: vi.fn(), openQueueItem: vi.fn(), mountPlayer: vi.fn(() => vi.fn()), reopen: vi.fn(),
checkSource: vi.fn(async () => false), openSavedFollow: vi.fn(), openEntity: vi.fn(), openUnowned: vi.fn(), openRegion: vi.fn(),
- openTag: vi.fn(), addToPlaylist: vi.fn(), cloudDownload: vi.fn(), saveMix: vi.fn(), editPlaylist: vi.fn(), openPlaylists: vi.fn(),
+ openTag: vi.fn(), addToPlaylist: vi.fn(), saveMix: vi.fn(), editPlaylist: vi.fn(), openPlaylists: vi.fn(),
reveal: vi.fn(async () => ''), sync: vi.fn(async () => ({ text: '', removed: [] })), trashChanged: vi.fn(async () => {}),
toast: vi.fn(), failure: vi.fn(),
};
@@ -456,15 +456,12 @@ describe('侧栏怎么读', () => {
expect(done.openUnowned).toHaveBeenCalled();
});
- it('云下载键把这一条交给壳,由壳带着番号与标题去活动页', async () => {
+ it('作品详情的动作属于当前作品', async () => {
serve();
const shown = item(1, { code: 'ABC-123' } as Partial<DetailItem>);
- const { host, actions: done } = await show(shown);
- const button = host.querySelector('[data-fb="cloud-download"]');
- expect(button?.getAttribute('aria-label')).toBe('云下载');
- expect(glyph(button)).toBe('#i-cloud-download');
- await click(button);
- expect(done.cloudDownload).toHaveBeenCalledWith(expect.objectContaining({ id: 1, code: 'ABC-123' }));
+ const { host } = await show(shown);
+ expect(host.querySelector('[data-fb="cloud-download"]')).toBeNull();
+ expect(host.querySelector('#addPlaylist')?.getAttribute('aria-label')).toBe('加入播放列表');
});
it('每一枚键的字形只说它旁边那件事', async () => {
diff --git a/migrations/0044_entity_classification.sql b/migrations/0044_entity_classification.sql
new file mode 100644
index 000000000..bc4c6ff47
--- /dev/null
+++ b/migrations/0044_entity_classification.sql
@@ -0,0 +1,50 @@
+-- 身份类型、职业、发行市场与账号角色是带来源的独立断言。
+CREATE TABLE entity_classification(
+ entity_id INTEGER NOT NULL REFERENCES entity(id) ON DELETE CASCADE,
+ facet TEXT NOT NULL CHECK(facet IN ('identity','occupation','market','account_role')),
+ value TEXT NOT NULL,
+ source TEXT NOT NULL,
+ source_url TEXT NOT NULL DEFAULT '',
+ evidence TEXT NOT NULL,
+ status TEXT NOT NULL CHECK(status IN ('candidate','observed','approved','rejected')),
+ confidence REAL NOT NULL CHECK(confidence BETWEEN 0 AND 1),
+ checked_at TEXT NOT NULL,
+ PRIMARY KEY(entity_id,facet,value,source)
+);
+CREATE INDEX idx_entity_classification_filter ON entity_classification(facet,value,status,entity_id);
+CREATE TABLE entity_identity_link(
+ left_id INTEGER NOT NULL REFERENCES entity(id) ON DELETE CASCADE,
+ right_id INTEGER NOT NULL REFERENCES entity(id) ON DELETE CASCADE,
+ relation TEXT NOT NULL CHECK(relation IN ('same_person','operates_account')),
+ source TEXT NOT NULL,
+ source_url TEXT NOT NULL,
+ evidence TEXT NOT NULL,
+ status TEXT NOT NULL CHECK(status IN ('candidate','observed','approved','rejected')),
+ checked_at TEXT NOT NULL,
+ CHECK(left_id<>right_id),
+ PRIMARY KEY(left_id,right_id,relation,source)
+);
+CREATE INDEX idx_entity_identity_link_right ON entity_identity_link(right_id);
+CREATE TRIGGER entity_classification_cleanup AFTER DELETE ON entity BEGIN
+ DELETE FROM entity_classification WHERE entity_id=OLD.id;
+ DELETE FROM entity_identity_link WHERE left_id=OLD.id OR right_id=OLD.id;
+END;
+INSERT INTO ledger_revision(tbl) VALUES('entity_classification'),('entity_identity_link');
+CREATE TRIGGER rev_entity_classification_insert AFTER INSERT ON entity_classification BEGIN
+ UPDATE ledger_revision SET n=n+1 WHERE tbl='entity_classification';
+END;
+CREATE TRIGGER rev_entity_classification_update AFTER UPDATE ON entity_classification BEGIN
+ UPDATE ledger_revision SET n=n+1 WHERE tbl='entity_classification';
+END;
+CREATE TRIGGER rev_entity_classification_delete AFTER DELETE ON entity_classification BEGIN
+ UPDATE ledger_revision SET n=n+1 WHERE tbl='entity_classification';
+END;
+CREATE TRIGGER rev_entity_identity_link_insert AFTER INSERT ON entity_identity_link BEGIN
+ UPDATE ledger_revision SET n=n+1 WHERE tbl='entity_identity_link';
+END;
+CREATE TRIGGER rev_entity_identity_link_update AFTER UPDATE ON entity_identity_link BEGIN
+ UPDATE ledger_revision SET n=n+1 WHERE tbl='entity_identity_link';
+END;
+CREATE TRIGGER rev_entity_identity_link_delete AFTER DELETE ON entity_identity_link BEGIN
+ UPDATE ledger_revision SET n=n+1 WHERE tbl='entity_identity_link';
+END;
diff --git a/scripts/apply_entity_identity_research.py b/scripts/apply_entity_identity_research.py
new file mode 100644
index 000000000..23b02a6f4
--- /dev/null
+++ b/scripts/apply_entity_identity_research.py
@@ -0,0 +1,74 @@
+"""身份来源清单的冻结预览、可撤回写入与恢复。"""
+from __future__ import annotations
+
+import argparse
+import json
+import sys
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parents[1]
+sys.path.insert(0, str(ROOT/'src'))
+from peach import entity_identity_research as research
+from peach.fsutil import atomic_write_text
+from peach.metadata_creator_attributions import fingerprint
+from peach.scripting import add_ledger_write_args, counts_of, open_for_write, open_readonly
+
+
+def main():
+ parser = add_ledger_write_args(argparse.ArgumentParser(description='身份来源分类与出演署名衔接'))
+ parser.add_argument('--findings', type=Path)
+ parser.add_argument('--plan', type=Path)
+ parser.add_argument('--manifest', type=Path)
+ parser.add_argument('--restore', type=Path)
+ args = parser.parse_args()
+ if not args.apply:
+ if not args.findings or not args.plan:
+ parser.error('预览需要 --findings 和 --plan')
+ connection = open_readonly(args.db)
+ try:
+ rows = research.plan(connection,json.loads(args.findings.read_text(encoding='utf-8')))
+ atomic_write_text(args.plan,json.dumps({'rows':rows,'sha256':fingerprint(rows)},ensure_ascii=False,indent=2))
+ print(json.dumps({'entities':len(rows),'cast_relations':sum(len(row['cast']) for row in rows)},ensure_ascii=False))
+ finally:
+ connection.close()
+ return 0
+ if not args.backup or not args.manifest or not (args.plan or args.restore):
+ parser.error('写入需要 --backup --manifest 和 --plan 或 --restore')
+ if args.manifest.exists():
+ parser.error('回执路径已经存在')
+ payload = json.loads((args.restore or args.plan).read_text(encoding='utf-8'))
+ if not args.restore and fingerprint(payload['rows']) != payload['sha256']:
+ parser.error('计划摘要不匹配')
+ connection = open_for_write(args)
+ try:
+ before = counts_of(connection)
+ keys = sorted((tuple(row) for row in connection.execute('PRAGMA foreign_key_check')),key=repr)
+ if connection.execute('PRAGMA integrity_check').fetchone()[0] != 'ok':
+ raise ValueError('账本完整性检查未通过')
+ connection.execute('PRAGMA foreign_keys=ON')
+ connection.execute('BEGIN IMMEDIATE')
+ if args.restore:
+ research.restore(connection,payload)
+ receipt = {'restored':True}
+ else:
+ receipt = research.apply(connection,payload['rows'])
+ if connection.execute('PRAGMA integrity_check').fetchone()[0] != 'ok' or keys != sorted((tuple(row) for row in connection.execute('PRAGMA foreign_key_check')),key=repr):
+ raise ValueError('身份写入产生了完整性或外键变化')
+ receipt.update(before_counts=before,after_counts=counts_of(connection),status='prepared')
+ args.manifest.parent.mkdir(parents=True,exist_ok=True)
+ with args.manifest.open('x',encoding='utf-8') as handle:
+ json.dump(receipt,handle,ensure_ascii=False,indent=2)
+ connection.commit()
+ receipt['status']='committed'
+ atomic_write_text(args.manifest,json.dumps(receipt,ensure_ascii=False,indent=2))
+ print(json.dumps({key:receipt[key] for key in ['before_counts','after_counts','status']},ensure_ascii=False))
+ except Exception:
+ connection.rollback()
+ raise
+ finally:
+ connection.close()
+ return 0
+
+
+if __name__=='__main__':
+ raise SystemExit(main())
diff --git a/scripts/audit_creator_attributions.py b/scripts/audit_creator_attributions.py
index 864e44f84..d2be87ad4 100644
--- a/scripts/audit_creator_attributions.py
+++ b/scripts/audit_creator_attributions.py
@@ -1,13 +1,11 @@
-"""逐项审计旧 ``asset.creator`` 到规范创作者关系的投影。
-
-当前扫描器不再从目录推断创作者;本脚本只读地列出历史
-``source='legacy:asset'`` 关系。目录命中只是一条证据,不等于身份真相。
-"""
+"""全库创作者归属审计;修复须带审计计划、备份和可回滚记录。"""
from __future__ import annotations
import argparse
+import json
import sys
from collections import Counter
+from contextlib import closing
from pathlib import Path
PROJECT_ROOT = Path(__file__).resolve().parent.parent
@@ -16,16 +14,16 @@ if str(SRC_DIR) not in sys.path:
sys.path.insert(0, str(SRC_DIR))
from peach.review_csv import write_rows
+from peach.fsutil import atomic_write_text
from peach.scripting import open_readonly
-from peach.config import DATABASE_PATH
+from peach.metadata_creator_attributions import (
+ FIELDS, apply_plan, collect, fingerprint, restore,
+)
+from peach.scripting import add_ledger_write_args, counts_of, open_for_write, verify_after_write
-ITEM_FIELDS = (
- "asset_id", "medium", "location", "path", "current_creator", "relation_source",
- "confidence", "path_contains_creator", "parent_component", "child_component",
- "verdict", "proposed_creator", "reason",
-)
-SUMMARY_FIELDS = ("verdict", "current_creator", "assets", "reason")
+ITEM_FIELDS = FIELDS
+SUMMARY_FIELDS = ("entity_id", "verdict", "current_creator", "assets", "action", "reason")
STRUCTURAL = {"门槛", "视频", "宣傳文件", "宣传文件", "asce"}
@@ -56,53 +54,111 @@ def classify(path: str, creator: str) -> tuple[str, str, str, str, str, str]:
def rows(database: Path) -> list[dict[str, object]]:
connection = open_readonly(database)
- result: list[dict[str, object]] = []
- query = """
- SELECT a.id AS asset_id,a.medium,a.location,a.path,e.canonical_name AS creator,
- ae.source,ae.confidence
- FROM asset_entity ae
- JOIN entity e ON e.id=ae.entity_id AND e.kind='creator'
- JOIN asset a ON a.id=ae.asset_id
- WHERE ae.role='creator' AND ae.source='legacy:asset'
- ORDER BY a.id,e.canonical_name
- """
- for row in connection.execute(query):
- contains, parent, child, verdict, proposed, reason = classify(row["path"], row["creator"])
- result.append({
- "asset_id": row["asset_id"], "medium": row["medium"],
- "location": row["location"], "path": row["path"],
- "current_creator": row["creator"], "relation_source": row["source"],
- "confidence": row["confidence"], "path_contains_creator": contains,
- "parent_component": parent, "child_component": child,
- "verdict": verdict, "proposed_creator": proposed, "reason": reason,
- })
- connection.close()
- return result
+ try:
+ return collect(connection)
+ finally:
+ connection.close()
def summaries(items: list[dict[str, object]]) -> list[dict[str, object]]:
- counts = Counter((str(row["verdict"]), str(row["current_creator"]), str(row["reason"])) for row in items)
+ counts = Counter((row['entity_id'], str(row["verdict"]), str(row["current_creator"]),
+ str(row['action']), str(row["reason"])) for row in items)
return [
- {"verdict": verdict, "current_creator": creator, "assets": count, "reason": reason}
- for (verdict, creator, reason), count in sorted(counts.items(), key=lambda item: (-item[1], item[0]))
+ {"entity_id": entity_id, "verdict": verdict, "current_creator": creator,
+ "assets": count, "action": action, "reason": reason}
+ for (entity_id, verdict, creator, action, reason), count in sorted(counts.items(), key=lambda item: (-item[1], item[0]))
]
+def entity_summary(database: Path, items: list[dict]) -> list[dict]:
+ result = summaries(items)
+ with closing(open_readonly(database)) as connection:
+ for row in connection.execute("SELECT e.id,e.canonical_name FROM entity e WHERE e.kind='creator' "
+ "AND NOT EXISTS(SELECT 1 FROM asset_entity ae WHERE ae.entity_id=e.id AND ae.role='creator')"):
+ result.append({'entity_id': row['id'], 'current_creator': row['canonical_name'],
+ 'verdict':'empty_entity', 'assets':0, 'action':'keep',
+ 'reason':'没有创作者关系,保留实体及其身份资料'})
+ return result
+
+
def _write(path: Path, fields: tuple[str, ...], data: list[dict[str, object]]) -> None:
write_rows(path, fields, data)
+def _write_ledger(args, payload: dict) -> None:
+ connection = open_for_write(args)
+ try:
+ before = counts_of(connection)
+ baseline_integrity, _ = verify_after_write(connection)
+ baseline_foreign_keys = sorted((tuple(row) for row in connection.execute('PRAGMA foreign_key_check')), key=repr)
+ if baseline_integrity != 'ok':
+ raise ValueError('账本完整性检查未通过')
+ connection.execute('PRAGMA foreign_keys=ON')
+ connection.execute('BEGIN IMMEDIATE')
+ if args.restore:
+ restore(connection, payload)
+ report = {'restored': len(payload['relations'])}
+ else:
+ report = apply_plan(connection, payload['rows'])
+ integrity, foreign_keys = verify_after_write(connection)
+ current_foreign_keys = sorted((tuple(row) for row in connection.execute('PRAGMA foreign_key_check')), key=repr)
+ if integrity != 'ok' or current_foreign_keys != baseline_foreign_keys:
+ raise ValueError('修复产生了完整性或外键变化')
+ after = counts_of(connection)
+ report.update(before_counts=before, after_counts=after, integrity=integrity,
+ foreign_keys=foreign_keys, baseline_foreign_keys=baseline_foreign_keys, status='prepared')
+ if args.manifest:
+ args.manifest.parent.mkdir(parents=True, exist_ok=True)
+ with args.manifest.open('x', encoding='utf-8') as handle:
+ json.dump(report, handle, ensure_ascii=False, indent=2)
+ connection.commit()
+ report['status'] = 'committed'
+ if args.manifest:
+ atomic_write_text(args.manifest, json.dumps(report, ensure_ascii=False, indent=2))
+ print(json.dumps({'before': before, 'after': after, 'integrity': integrity,
+ 'foreign_keys': foreign_keys, 'status': report['status']}, ensure_ascii=False))
+ except Exception:
+ connection.rollback()
+ raise
+ finally:
+ connection.close()
+
+
def main() -> int:
- parser = argparse.ArgumentParser(description="逐项审计历史创作者投影,不写数据库")
- parser.add_argument("--db", type=Path, default=DATABASE_PATH)
- parser.add_argument("--output", type=Path, required=True, help="逐项 CSV 输出路径")
+ parser = add_ledger_write_args(argparse.ArgumentParser(description="全库创作者归属审计与可回滚修复"))
+ parser.add_argument("--output", type=Path, help="逐项 CSV 输出路径")
parser.add_argument("--summary", type=Path, help="按创作者和 verdict 汇总 CSV")
+ parser.add_argument("--repair-plan", type=Path, help="明确错误的 JSON 计划;预览生成,执行读取")
+ parser.add_argument("--manifest", type=Path, help="执行修复必需:保存可回滚记录")
+ parser.add_argument("--restore", type=Path, help="恢复这份修复记录;须同时给 --apply --backup")
args = parser.parse_args()
+ if args.restore or args.apply:
+ if not args.apply or not args.backup:
+ parser.error("写入或恢复必须同时给 --apply --backup")
+ if not args.restore and (not args.repair_plan or not args.manifest):
+ parser.error("执行修复必须给 --repair-plan --manifest")
+ if args.manifest and args.manifest.exists():
+ parser.error("修复记录已存在,请选择新路径")
+ source = args.restore or args.repair_plan
+ payload = json.loads(source.read_text(encoding='utf-8'))
+ if not args.restore and fingerprint(payload['rows']) != payload['sha256']:
+ parser.error("修复计划摘要不匹配")
+ _write_ledger(args, payload)
+ return 0
+ if not args.output:
+ parser.error("预览必须给 --output")
items = rows(args.db)
_write(args.output, ITEM_FIELDS, items)
+ summary = entity_summary(args.db, items)
if args.summary:
- _write(args.summary, SUMMARY_FIELDS, summaries(items))
- print(f"逐项 {len(items)} 条;汇总 {len(summaries(items))} 组;数据库未修改")
+ _write(args.summary, SUMMARY_FIELDS, summary)
+ plan = [row for row in items if row['action'] == 'remove']
+ if args.repair_plan:
+ args.repair_plan.parent.mkdir(parents=True, exist_ok=True)
+ atomic_write_text(args.repair_plan, json.dumps({'rows': plan, 'sha256': fingerprint(plan)},
+ ensure_ascii=False, indent=2))
+ print(f"逐项 {len(items)} 条;汇总 {len(summary)} 组;确定错误 {len(plan)} 条;数据库未修改")
+ print(json.dumps(dict(Counter((str(row['verdict']) for row in items))), ensure_ascii=False))
return 0
diff --git a/scripts/test_runner.py b/scripts/test_runner.py
index d116287dc..af9c69dd9 100644
--- a/scripts/test_runner.py
+++ b/scripts/test_runner.py
@@ -36,6 +36,7 @@ SCOPES: dict[str, tuple[str, ...]] = {
"catalog": ("test_ad_judgement.py", "test_composite_name_split.py", "test_media_libraries.py",
"test_content_region.py",
"test_duplicate_identity_merge.py",
+ "test_entity_classification.py",
"test_entity_merge.py", "test_entity_redirect.py", "test_fastapi_api.py", "test_field_owners.py",
"test_migrations.py",
"test_review_mirror.py", "test_rm_web.py",
@@ -132,6 +133,7 @@ SCOPES: dict[str, tuple[str, ...]] = {
"test_fastapi_api.py", "test_follow_assets.py", "test_follow_web.py",
"test_metadata_library.py", "test_studio_icon_variants.py", "test_web_settings.py"),
"core": ("test_access.py", "test_auth.py", "test_config.py", "test_field_owners.py",
+ "test_entity_classification.py",
"test_migrations.py", "test_ledger_revision.py",
"test_platform.py", "test_mount.py", "test_tray.py", "test_certs.py",
"test_folder_picker.py", "test_fsutil.py", "test_runtime_consistency.py",
@@ -521,10 +523,17 @@ def resolve_jobs(value: str) -> int:
def shard_command(scopes: tuple[str, ...], index: int, count: int, timings: Path) -> list[str]:
- return [sys.executable, str(ROOT / "scripts" / "test_runner.py"),
+ command = [sys.executable, str(ROOT / "scripts" / "test_runner.py"),
*(item for scope in scopes for item in ("--scope", scope)),
"--shard-index", str(index), "--shard-count", str(count),
"--timings", str(timings)]
+ resource_runner = os.environ.get('PEACH_TEST_RESOURCE_RUNNER', '').strip()
+ if not resource_runner:
+ return command
+ path = Path(resource_runner).resolve()
+ if not path.is_file():
+ raise ValueError('测试资源入口不存在')
+ return [sys.executable, '-X', 'utf8', str(path), '--timeout', '1800', '--', *command]
def run_shards(scopes: tuple[str, ...], *, jobs: int, shard_count: int,
@@ -536,6 +545,8 @@ def run_shards(scopes: tuple[str, ...], *, jobs: int, shard_count: int,
片数比并发数多,是为了让先跑完的进程接着领下一片,重文件不至于把墙钟拖成它
一家的长度。子进程的输出各自落盘,哪片结束就整段打印哪片,不交错。
"""
+ if os.environ.get('PEACH_TEST_RESOURCE_RUNNER', '').strip() and jobs != 1:
+ raise ValueError('受限分片必须使用 --jobs 1')
folder = Path(tempfile.mkdtemp(prefix="peach-shards-"))
pending = list(range(shard_count))
running: dict[int, tuple[object, object]] = {}
@@ -569,6 +580,15 @@ def run_shards(scopes: tuple[str, ...], *, jobs: int, shard_count: int,
print(f"分片 {index + 1}/{shard_count} {'通过' if ok else '失败'}"
f"({report.get('count', 0)} 个用例)", flush=True)
finally:
+ for process, log in running.values():
+ if process.poll() is None:
+ if os.name == 'nt':
+ subprocess.run(['taskkill', '/PID', str(process.pid), '/T', '/F'],
+ stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=15)
+ else:
+ process.terminate()
+ process.wait(timeout=15)
+ log.close()
shutil.rmtree(folder, ignore_errors=True)
return passed, count, timings
diff --git a/src/peach/classification.py b/src/peach/classification.py
index 81dffd6f2..62123d70d 100644
--- a/src/peach/classification.py
+++ b/src/peach/classification.py
@@ -6,7 +6,8 @@ import re
# These values were verified as legacy collection/folder labels, not creator
# identities. Keep this boundary centralized so board generation and review
# application cannot disagree again.
-STRUCTURAL_CREATORS = frozenset({"门槛", "视频", "宣傳文件", "宣传文件", "asce"})
+STRUCTURAL_CREATORS = frozenset({"门槛", "视频", "宣傳文件", "宣传文件", "asce",
+ "合集-洛丽塔 多创作者", "合集-足交 多创作者"})
_EPISODE = re.compile(r"(?<![A-Za-z0-9])S\d{1,2}E\d{1,3}(?!\d)", re.IGNORECASE)
_MAINSTREAM_RELEASE = re.compile(
diff --git a/src/peach/entities.py b/src/peach/entities.py
index 76500d1c8..bfa7b5988 100644
--- a/src/peach/entities.py
+++ b/src/peach/entities.py
@@ -197,6 +197,11 @@ def strip_zero_width(name: str) -> str:
def canonicalize_entity_name(kind: str, name: str | None) -> str:
canonical = strip_zero_width(name).strip()
+ if kind == 'creator':
+ from .classification import is_structural_creator
+ from .studio_sites import is_platform
+ if is_platform(canonical) or is_structural_creator(canonical):
+ return ''
if kind in PERSON_ENTITY_KINDS:
canonical = collapse_repeated_entity_name(canonical)
if canonical in INVALID_PERSON_ENTITY_NAMES:
@@ -264,6 +269,8 @@ def merge_entity(
moved = {"assets": 0, "aliases": 0, "refs": 0, "links": 0, "terms": 0,
"dropped_refs": 0, "memberships": 0, "members": 0, "labels": 0, "profiles": 0,
"follows": 0, "feeds": 0, "discoveries": 0, "redirects": 0}
+ from .entity_classification import transfer
+ transfer(connection, source_id, target_id)
# 被并入的名字本身留作别名,否则按旧名搜索会落空。
connection.execute(
@@ -419,6 +426,7 @@ def upsert_asset_entity(
role: str, source: str, confidence: float = 1.0,
external_provider: str | None = None, external_id: str | int | None = None,
metadata: dict | None = None, now: str | None = None,
+ update_entity_metadata: bool = True,
) -> int | None:
"""写入规范实体关系;调用方负责事务和兼容投影。"""
canonical = canonicalize_entity_name(kind, name)
@@ -456,7 +464,7 @@ def upsert_asset_entity(
(kind, canonical, normalized, payload, stamp, stamp),
)
entity_id = int(connection.execute("SELECT last_insert_rowid()").fetchone()[0])
- else:
+ elif update_entity_metadata:
connection.execute(
"UPDATE entity SET metadata_json=?,updated_at=? WHERE id=?",
(payload, stamp, entity_id),
diff --git a/src/peach/entity_classification.py b/src/peach/entity_classification.py
new file mode 100644
index 000000000..98e1e354f
--- /dev/null
+++ b/src/peach/entity_classification.py
@@ -0,0 +1,113 @@
+"""实体职业与作品角色分别记录,来源断言可按批撤回。"""
+from __future__ import annotations
+
+from datetime import datetime, timezone
+from urllib.parse import urlsplit
+
+VALUES = {
+ 'identity': {'person':'个人', 'account':'发布账号', 'organization':'机构',
+ 'platform':'平台', 'collection':'合集目录', 'release':'作品标识', 'unknown':'身份待核验'},
+ 'occupation': {'adult_performer':'成人出演者', 'model':'模特', 'actor':'演员',
+ 'artist':'艺术创作者', 'content_creator':'内容创作者'},
+ 'market': {'japanese_av':'日本 AV', 'western_adult':'西方成人发行'},
+ 'account_role': {'seller':'卖家', 'publisher':'发布者'},
+}
+CATEGORIES = {'person':'个人', 'account':'发布账号', 'seller':'卖家',
+ 'organization':'机构', 'platform':'平台', 'adult_performer':'成人出演者',
+ 'model':'模特', 'artist':'艺术创作者', 'japanese_av':'日本 AV',
+ 'western_adult':'西方成人发行', 'unknown':'待核验'}
+TRUSTED = "status IN ('observed','approved')"
+
+
+def write_claim(connection, *, entity_id, facet, value, source, evidence,
+ source_url='', status='candidate', confidence=0.5, checked_at=None):
+ """目录与检索推断保持 candidate,公开来源事实使用 observed,用户复核使用 approved。"""
+ if facet not in VALUES or value not in VALUES[facet]:
+ raise ValueError('未知身份分类')
+ if status not in {'candidate','observed','approved','rejected'}:
+ raise ValueError('未知断言状态')
+ if not source or not evidence or not 0 <= confidence <= 1:
+ raise ValueError('断言缺少来源、证据或有效置信度')
+ if status == 'approved' and not source.startswith(('user:', 'review:')):
+ raise ValueError('approved 只属于用户复核')
+ if status == 'observed' and urlsplit(source_url).scheme != 'https':
+ raise ValueError('公开事实需要 HTTPS 来源')
+ if status == 'observed' and not source.startswith(('source:', 'script:')):
+ raise ValueError('公开事实需要明确来源命名空间')
+ # 脚本不覆盖同来源上的用户复核。
+ old = connection.execute('SELECT status FROM entity_classification WHERE entity_id=? AND facet=? AND value=? AND source=?',
+ (entity_id,facet,value,source)).fetchone()
+ if old and old[0] == 'approved' and status != 'approved':
+ raise ValueError('不能覆盖已复核断言')
+ connection.execute('INSERT INTO entity_classification VALUES(?,?,?,?,?,?,?,?,?) '
+ 'ON CONFLICT(entity_id,facet,value,source) DO UPDATE SET source_url=excluded.source_url,'
+ 'evidence=excluded.evidence,status=excluded.status,confidence=excluded.confidence,checked_at=excluded.checked_at',
+ (entity_id,facet,value,source,source_url,evidence,status,confidence,
+ checked_at or datetime.now(timezone.utc).isoformat()))
+
+
+def classifications(connection, entity_ids):
+ """批量下发公开证据与展示字串;待核验不冒充职业。"""
+ ids = list(dict.fromkeys(entity_ids))
+ result = {entity_id:[] for entity_id in ids}
+ if not connection.execute("SELECT 1 FROM sqlite_schema WHERE name='entity_classification'").fetchone():
+ return result
+ if not ids:
+ return result
+ cursor = connection.execute('SELECT entity_id,facet,value,source,source_url,evidence,status,confidence,checked_at '
+ 'FROM entity_classification WHERE entity_id IN (' + ','.join('?' for _ in ids) + ') '
+ 'ORDER BY facet,value,source', ids)
+ columns = [column[0] for column in cursor.description]
+ for raw in cursor:
+ row = dict(zip(columns,raw))
+ row['label'] = VALUES.get(row['facet'], {}).get(row['value'], row['value'])
+ result[row.pop('entity_id')].append(row)
+ return result
+
+
+def labels(claims):
+ return list(dict.fromkeys(row['label'] for row in claims if row['status'] in {'observed','approved'})) or ['待核验']
+
+
+def related_identities(connection, entity_id):
+ if not connection.execute("SELECT 1 FROM sqlite_schema WHERE name='entity_identity_link'").fetchone():
+ return []
+ cursor = connection.execute("SELECT e.id,e.kind,e.canonical_name,l.relation,l.source_url,l.evidence "
+ "FROM entity_identity_link l JOIN entity e ON e.id=CASE WHEN l.left_id=? THEN l.right_id ELSE l.left_id END "
+ "WHERE (l.left_id=? OR l.right_id=?) AND l.status IN ('observed','approved') ORDER BY e.kind,e.canonical_name",
+ (entity_id,entity_id,entity_id))
+ columns = [column[0] for column in cursor.description]
+ return [dict(zip(columns,raw)) for raw in cursor]
+
+
+def filter_sql(category, column='e.id'):
+ """筛选在分页前执行;没有可信身份断言属于待核验。"""
+ if category in {'','all'}:
+ return '', []
+ if category not in CATEGORIES:
+ return ' AND 0 ', []
+ if category == 'unknown':
+ return f' AND NOT EXISTS (SELECT 1 FROM entity_classification ec WHERE ec.entity_id={column} AND {TRUSTED}) ', []
+ return f' AND EXISTS (SELECT 1 FROM entity_classification ec WHERE ec.entity_id={column} AND ec.value=? AND {TRUSTED}) ', [category]
+
+
+def transfer(connection, source_id, target_id):
+ """用户执行实体合并时保留所有来源;同来源冲突显式拒绝。"""
+ if not connection.execute("SELECT 1 FROM sqlite_schema WHERE name='entity_classification'").fetchone():
+ return
+ for raw in connection.execute('SELECT facet,value,source,source_url,evidence,status,confidence,checked_at FROM entity_classification WHERE entity_id=?', (source_id,)).fetchall():
+ row = tuple(raw)
+ old = connection.execute('SELECT source_url,evidence,status,confidence,checked_at FROM entity_classification WHERE entity_id=? AND facet=? AND value=? AND source=?',
+ (target_id,*row[:3])).fetchone()
+ if old and tuple(old) != tuple(row[3:]):
+ raise ValueError('实体分类来源冲突,需先复核')
+ connection.execute('INSERT OR IGNORE INTO entity_classification VALUES(?,?,?,?,?,?,?,?,?)', (target_id,*row))
+ for raw in connection.execute('SELECT * FROM entity_identity_link WHERE left_id=? OR right_id=?', (source_id,source_id)).fetchall():
+ row = list(raw)
+ row[:2] = [target_id if value == source_id else value for value in row[:2]]
+ if row[0] == row[1]:
+ continue
+ old = connection.execute('SELECT * FROM entity_identity_link WHERE left_id=? AND right_id=? AND relation=? AND source=?', row[:4]).fetchone()
+ if old and tuple(old) != tuple(row):
+ raise ValueError('身份关联来源冲突,需先复核')
+ connection.execute('INSERT OR IGNORE INTO entity_identity_link VALUES(?,?,?,?,?,?,?,?)', row)
diff --git a/src/peach/entity_identity_research.py b/src/peach/entity_identity_research.py
new file mode 100644
index 000000000..9c028f2a4
--- /dev/null
+++ b/src/peach/entity_identity_research.py
@@ -0,0 +1,137 @@
+"""公开身份来源与馆藏署名的衔接;冻结计划和逐行回执保持可撤回。"""
+from __future__ import annotations
+
+import re
+import sqlite3
+from datetime import datetime, timezone
+
+from .entities import resolve_entity, upsert_asset_entity
+from .entity_classification import write_claim
+from .field_owners import is_protected, owner_of, write_owned_fields
+
+SOURCE = 'script:creator-identity-research'
+
+
+def _rows(connection, table, clause, params):
+ cursor = connection.execute(f'SELECT * FROM {table} WHERE {clause} ORDER BY rowid', params)
+ columns = [item[0] for item in cursor.description]
+ return [dict(zip(columns,raw)) for raw in cursor]
+
+
+def plan(connection, findings):
+ result = []
+ for finding in findings:
+ entity_id = int(finding['entity_id'])
+ entity = _rows(connection, 'entity', 'id=?', (entity_id,))
+ if not entity or entity[0]['canonical_name'] != finding['name']:
+ raise ValueError('身份清单与实体名称不一致')
+ relations = _rows(connection, 'asset_entity', "entity_id=? AND role='creator'", (entity_id,)) if finding.get('cast_studios') else []
+ cast = []
+ for relation in relations:
+ asset = _rows(connection, 'asset', 'id=?', (relation['asset_id'],))[0]
+ if relation['source'] != 'legacy:asset' or is_protected(owner_of(asset['field_owners'], 'creator')):
+ continue
+ # 出演者必须有公开身份来源,且发行署名在厂牌上下文中完整匹配。
+ if not finding.get('cast_studios') or asset['studio'] not in finding['cast_studios']:
+ continue
+ if not any(claim['facet']=='occupation' and claim['value'] in {'adult_performer','actor','model'}
+ and claim['status']=='observed' for claim in finding['claims']):
+ raise ValueError('出演者迁移需要已取得的公开职业来源')
+ name = re.escape(finding['name']).replace(r'\ ', r'[ ._-]+')
+ publisher = re.escape(asset['studio']).replace(r'\ ', r'[ ._-]+')
+ parts = re.split(r'[\\/]', asset['path'])
+ if not any(re.search(r'^' + publisher + r'[ ._-]+.*(?<!\w)' + name + r'(?!\w)', part, re.I) for part in parts):
+ continue
+ cast.append({'relation':relation, 'asset':asset})
+ result.append({'finding':finding, 'entity':entity[0], 'relations':relations,
+ 'claims':_rows(connection, 'entity_classification', 'entity_id=?', (entity_id,)), 'cast':cast})
+ return result
+
+
+def apply(connection, frozen):
+ if plan(connection, [row['finding'] for row in frozen]) != frozen:
+ raise ValueError('身份计划已过期')
+ receipt = {'source':SOURCE, 'changes':[], 'created_entities':[]}
+ stamp = datetime.now(timezone.utc).isoformat()
+ for row in frozen:
+ finding = row['finding']; entity_id = int(finding['entity_id'])
+ targets = [entity_id]
+ performer = None
+ if row['cast']:
+ performer = resolve_entity(connection, 'performer', finding['name'])
+ existed = performer is not None
+ if not existed:
+ performer_id = upsert_asset_entity(connection, kind='performer', name=finding['name'],
+ asset_id=row['cast'][0]['asset']['id'], role='performer', source=SOURCE,
+ metadata={'source_url':finding['cast_source_url']}, update_entity_metadata=False)
+ # 记录来源关系的 before 必须在插入前,所以先撤掉这条临时创建关系。
+ connection.execute("DELETE FROM asset_entity WHERE entity_id=? AND source=?", (performer_id,SOURCE))
+ receipt['created_entities'].append(_rows(connection,'entity','id=?',(performer_id,))[0])
+ else:
+ performer_id = performer['id'] if isinstance(performer, sqlite3.Row) else performer[0]
+ targets.append(performer_id)
+ receipt['changes'].append({'table':'entity_identity_link', 'clause':'left_id=? AND right_id=? AND source=?',
+ 'params':[entity_id,performer_id,SOURCE], 'before':_rows(connection,'entity_identity_link','left_id=? AND right_id=? AND source=?',(entity_id,performer_id,SOURCE))})
+ connection.execute('INSERT OR IGNORE INTO entity_identity_link VALUES(?,?,?,?,?,?,?,?)',
+ (entity_id,performer_id,'same_person',SOURCE,finding['cast_source_url'],
+ '发行文件完整署名与公开出演者身份一致','observed',stamp))
+ for cast in row['cast']:
+ asset_id = cast['asset']['id']
+ receipt['changes'].append({'table':'asset_entity','clause':"asset_id=? AND (entity_id=? OR (entity_id=? AND source=?))",
+ 'params':[asset_id,entity_id,performer_id,SOURCE],
+ 'before':_rows(connection,'asset_entity',"asset_id=? AND (entity_id=? OR (entity_id=? AND source=?))",(asset_id,entity_id,performer_id,SOURCE))})
+ receipt['changes'].append({'table':'asset','clause':'id=?','params':[asset_id],
+ 'before':_rows(connection,'asset','id=?',(asset_id,))})
+ upsert_asset_entity(connection, kind='performer',name=finding['name'],asset_id=asset_id,
+ role='performer',source=SOURCE,metadata={'source_url':finding['cast_source_url'], 'evidence':'厂牌发行文件完整署名'},update_entity_metadata=False)
+ connection.execute("DELETE FROM asset_entity WHERE asset_id=? AND entity_id=? AND role='creator' AND source='legacy:asset'",(asset_id,entity_id))
+ survivors = connection.execute("SELECT e.canonical_name FROM asset_entity ae JOIN entity e ON e.id=ae.entity_id WHERE ae.asset_id=? AND ae.role='creator'", (asset_id,)).fetchall()
+ if cast['asset']['creator'] == finding['name']:
+ names = {item[0] for item in survivors}
+ if len(names)>1:
+ raise ValueError('作品存在多个发布者,需复核')
+ write_owned_fields(connection,[asset_id],{'creator':next(iter(names),None)},SOURCE,
+ expected_revision=cast['asset']['mutation_revision'])
+ for target in targets:
+ receipt['changes'].append({'table':'entity_classification','clause':'entity_id=? AND source=?','params':[target,SOURCE],
+ 'before':_rows(connection,'entity_classification','entity_id=? AND source=?',(target,SOURCE))})
+ for claim in finding['claims']:
+ write_claim(connection, entity_id=target, source=SOURCE, **claim)
+ for change in receipt['changes']:
+ change['after'] = _rows(connection,change['table'],change['clause'],change['params'])
+ return receipt
+
+
+def restore(connection, receipt):
+ """有后续修改就拒绝撤回,不覆盖观看历史或人的判断。"""
+ for change in receipt['changes']:
+ if _rows(connection,change['table'],change['clause'],change['params']) != change['after']:
+ raise ValueError('身份修复记录已发生后续改动')
+ for entity in receipt['created_entities']:
+ if _rows(connection,'entity','id=?',(entity['id'],)) != [entity]:
+ raise ValueError('新身份已发生后续改动')
+ for change in reversed(receipt['changes']):
+ table = change['table']
+ if table == 'asset':
+ old = change['before'][0]
+ fields = {'creator':old['creator']}
+ write_owned_fields(connection,[old['id']],fields,SOURCE)
+ connection.execute('UPDATE asset SET field_owners=? WHERE id=?', (old['field_owners'],old['id']))
+ continue
+ connection.execute(f'DELETE FROM {table} WHERE ' + change['clause'],change['params'])
+ for old in change['before']:
+ columns = list(old)
+ connection.execute(f'INSERT INTO {table} (' + ','.join(columns) + ') VALUES(' + ','.join('?' for _ in columns) + ')',tuple(old.values()))
+ for entity in receipt['created_entities']:
+ # 新身份的任何其他引用都需要用户保留;只撤回本批创建的空身份。
+ references = connection.execute('SELECT count(*) FROM asset_entity WHERE entity_id=?',(entity['id'],)).fetchone()[0]
+ if references:
+ raise ValueError('新身份出现额外作品关系')
+ tables = [row[0] for row in connection.execute("SELECT name FROM sqlite_schema WHERE type='table' AND name NOT LIKE 'sqlite_%'")]
+ for table in tables:
+ if not re.fullmatch(r'[a-zA-Z0-9_]+',table):
+ continue
+ for foreign in connection.execute(f'PRAGMA foreign_key_list({table})'):
+ if foreign[2]=='entity' and connection.execute(f'SELECT 1 FROM {table} WHERE {foreign[3]}=?',(entity['id'],)).fetchone():
+ raise ValueError('新身份出现额外资料')
+ connection.execute('DELETE FROM entity WHERE id=?',(entity['id'],))
diff --git a/src/peach/metadata_creator_attributions.py b/src/peach/metadata_creator_attributions.py
new file mode 100644
index 000000000..dce474294
--- /dev/null
+++ b/src/peach/metadata_creator_attributions.py
@@ -0,0 +1,281 @@
+"""创作者历史投影的全库审计与逐关系修复。"""
+from __future__ import annotations
+
+import hashlib
+import json
+import re
+import sqlite3
+from collections import defaultdict
+
+from .catalog_rules import compact_label, western_release_identity, release_code_from_text
+from .classification import is_structural_creator
+from .code_creators import SETTLED_VERDICTS, classify as classify_code
+from .entities import normalize_entity_name, upsert_asset_entity
+from .field_owners import is_protected, owner_of, write_owned_fields
+from .studio_sites import is_platform, normalise
+from .sources.dmm import matching_cids
+
+OWNER = 'script:creator-attributions'
+# 官网目录把模特与作品编号分列;这些编号属于作品,不是账号。
+SITE_RELEASES = {
+ 'legsjapan': 'https://www.legsjapan.com/en/',
+ 'fellatiojapan': 'https://www.fellatiojapan.com/en/',
+}
+FIELDS = ('asset_id', 'entity_id', 'current_creator', 'relation_source', 'confidence',
+ 'medium', 'path', 'name', 'studio', 'code', 'flat_creator', 'field_owner', 'studio_owner', 'revision',
+ 'verdict', 'action', 'proposed_studio', 'reason')
+
+
+def _site_release(value: str) -> str:
+ text = re.sub(r'^\[[^\]]+\]', '', str(value)).strip().lower()
+ text = re.sub(r'\.(?:mp4|mkv|avi|wmv|mov|jpg|png|webp)$', '', text)
+ match = re.fullmatch(r'(legsjapan|fellatiojapan)[-_](\d{3,6})[-_]*', text)
+ return f'{match[1]}-{int(match[2])}' if match else ''
+
+
+def _publisher_release(row: dict, studios: dict[str, set[str]]) -> bool:
+ creator = str(row['current_creator'])
+ if row['studio'] or normalise(creator) not in studios:
+ return False
+ parts = re.split(r'[\\/]', str(row['path']))
+ publisher = re.compile(r'^' + re.escape(creator) + r'[ ._-]+\d{2,4}[-.]\d{2}[-.]\d{2}(?!\d)', re.I)
+ domain = '[' + creator.casefold() + '.com]'
+ return any(publisher.match(part) or domain in part.casefold() for part in parts)
+
+
+def _file_identifier(row: dict) -> tuple[str, str]:
+ creator = str(row['current_creator'])
+ verdict, _, reason = classify_code(creator, [dict(
+ path=row['path'], name=row['name'], code=row['code'])])
+ if verdict in SETTLED_VERDICTS:
+ return 'release_identifier', f'{reason};只移除创作者投影,番号不改写'
+ site = _site_release(creator)
+ if site and site == _site_release(str(row['name'])):
+ return 'release_identifier', f'目录与媒体文件同为站点作品号 {site};官网目录 {SITE_RELEASES[site.split("-")[0]]}'
+ identifier = release_code_from_text(re.sub(r'_\d{3}$', '', creator))
+ cid = re.sub(r'_\d{3}$', '', re.sub(r'\.[^.]+$', '', str(row['name'] or '')))
+ if identifier and re.fullmatch(r'[a-z]+\d{5}(?:hhb|mhb|dmb|dm|hq|sd|hd)', cid, re.I) and matching_cids(identifier, [cid]):
+ return 'release_identifier', f'目录番号 {identifier} 与文件 DMM 商品标识一致;番号不改写'
+ if verdict == '存疑':
+ return 'identifier_candidate', reason
+ return '', ''
+
+
+def _release_title(row: dict, people: set[str]) -> bool:
+ """带发行日期的场景标题;短人名与已有出演者身份交回复核。"""
+ name = str(row['current_creator'])
+ if normalize_entity_name(name) in people:
+ return False
+ key = compact_label(name)
+ for part in re.split(r'[\\/]', str(row['path'])):
+ identity = western_release_identity(part)
+ if not identity:
+ continue
+ matched = re.search(r'\.(?:\d{4}|\d{2})\.\d{2}\.\d{2}\.', part)
+ tail = compact_label(part[matched.end():]) if matched else ''
+ if tail.startswith(key) and (len(name.split()) >= 4 or any(
+ key.startswith(compact_label(person)) and key != compact_label(person)
+ for person in people if len(compact_label(person)) >= 5)):
+ return True
+ return False
+
+
+def classify(row: dict, *, studios: dict[str, set[str]], people: set[str]) -> tuple[str, str, str]:
+ """明确错误才提供 remove;身份冲突与目录推断只提供 review。"""
+ creator = str(row['current_creator'])
+ source = str(row['relation_source'])
+ if source != 'legacy:asset':
+ return 'source_identity', 'keep', '保留独立来源的创作者关系'
+ if is_protected(str(row['field_owner'])):
+ return 'protected', 'review', '兼容字段属于用户或复核判断'
+ if re.match(r'^[a-z][a-z0-9+.-]*://', str(row['path']), re.I):
+ return 'online_account', 'keep', '在线账号身份,不参与本地目录判定'
+ if row.get('has_identity_evidence'):
+ return 'identity_conflict', 'review', '实体有外部身份引用或用户判断,需逐项复核'
+ if is_platform(creator):
+ return 'platform', 'remove', '名称是发行平台;实际卖主或账号才是创作者'
+ studio = str(row['studio'] or '')
+ studio_names = studios.get(normalise(studio), {normalise(studio)}) if studio else set()
+ if normalise(creator) and normalise(creator) in studio_names:
+ return 'studio', 'remove', f'同作品发行厂牌为 {studio},与创作者名称或其别名一致'
+ if _publisher_release(row, studios):
+ return 'studio_release', 'remove', '已登记厂牌名称与同作品发行文件的厂牌 token 一致'
+ identifier_verdict, identifier_reason = _file_identifier(row)
+ if identifier_verdict == 'release_identifier':
+ return identifier_verdict, 'remove', identifier_reason
+ if is_structural_creator(creator):
+ return 'structural', 'remove', '名称是已核定的结构目录'
+ if _release_title(row, people):
+ return 'release_title', 'remove', '名称与带厂牌、发行日期的场景标题一致'
+ title = str(row.get('catalog_title') or '')
+ if (len(compact_label(creator)) >= 8 and title
+ and compact_label(creator) == compact_label(title)
+ and normalize_entity_name(creator) not in people):
+ return 'catalog_title', 'remove', '名称与同作品的发行标题完全一致'
+ if normalize_entity_name(creator) in people:
+ return 'performer_overlap', 'review', '与出演者姓名或别名一致,尚无卖主身份或同人确认'
+ if identifier_verdict:
+ return identifier_verdict, 'review', identifier_reason
+ return 'legacy_projection', 'review', '只有历史目录投影;需账号、水印、发行来源或用户确认'
+
+
+def collect(connection: sqlite3.Connection) -> list[dict]:
+ """一次读取所有关系和身份来源,不逐个实体全表扫描。"""
+ cursor = connection.cursor()
+ cursor.row_factory = sqlite3.Row
+ studio_names: dict[int, set[str]] = defaultdict(set)
+ people: set[str] = set()
+ for row in cursor.execute(
+ "SELECT e.id,e.kind,e.canonical_name AS name FROM entity e WHERE e.kind IN ('studio','performer') "
+ "UNION ALL SELECT e.id,e.kind,a.alias FROM entity e JOIN entity_alias a ON a.entity_id=e.id "
+ "WHERE e.kind IN ('studio','performer')"):
+ if row['kind'] == 'studio':
+ studio_names[int(row['id'])].add(normalise(str(row['name'])))
+ else:
+ people.add(normalize_entity_name(str(row['name'])))
+ studios = {name: names for names in studio_names.values() for name in names}
+ evidence = {int(row[0]) for row in connection.execute(
+ "SELECT entity_id FROM entity_external_ref UNION "
+ "SELECT entity_id FROM entity_alias WHERE source LIKE 'user:%' OR source LIKE 'review:%' UNION "
+ "SELECT entity_id FROM asset_entity WHERE role='creator' AND source<>'legacy:asset'")}
+ query = """SELECT a.id AS asset_id,e.id AS entity_id,e.canonical_name AS current_creator,
+ ae.source AS relation_source,ae.confidence,a.medium,a.path,a.name,a.studio,a.code,a.creator AS flat_creator,
+ a.catalog_title,a.field_owners,a.mutation_revision AS revision
+ FROM asset_entity ae JOIN entity e ON e.id=ae.entity_id AND e.kind='creator'
+ JOIN asset a ON a.id=ae.asset_id WHERE ae.role='creator' ORDER BY e.id,a.id,ae.source"""
+ result = []
+ for raw in cursor.execute(query):
+ row = dict(raw)
+ row['field_owner'] = owner_of(row['field_owners'], 'creator')
+ row['studio_owner'] = owner_of(row.pop('field_owners'), 'studio')
+ row['has_identity_evidence'] = int(row['entity_id']) in evidence
+ row['verdict'], row['action'], row['reason'] = classify(row, studios=studios, people=people)
+ row['proposed_studio'] = row['current_creator'] if row['verdict'] == 'studio_release' and not is_protected(row['studio_owner']) else ''
+ result.append({field: row[field] for field in FIELDS})
+ return result
+
+
+def fingerprint(rows: list[dict]) -> str:
+ return hashlib.sha256(json.dumps(rows, ensure_ascii=False, sort_keys=True).encode()).hexdigest()
+
+
+def _asset_fields(cursor, asset_id: int) -> dict:
+ return dict(cursor.execute('SELECT id,creator,studio,field_owners,mutation_revision FROM asset WHERE id=?',
+ (asset_id,)).fetchone() or {})
+
+
+def _creator_relations(connection, asset_ids: list[int]) -> list[dict]:
+ cursor = connection.cursor()
+ cursor.row_factory = sqlite3.Row
+ return [dict(row) for asset_id in asset_ids for row in cursor.execute(
+ "SELECT * FROM asset_entity WHERE asset_id=? AND role='creator' ORDER BY entity_id,source", (asset_id,))]
+
+
+def _land_studio(connection, cursor, row: dict) -> dict | None:
+ if not row['proposed_studio']:
+ return None
+ asset_id = int(row['asset_id'])
+ # 此分支只认已登记的厂牌,不创建新身份。
+ entity = cursor.execute("SELECT id,canonical_name FROM entity WHERE kind='studio' AND normalized_name=?",
+ (normalize_entity_name(row['proposed_studio']),)).fetchone()
+ if not entity:
+ raise ValueError('计划中的厂牌身份不存在')
+ if connection.execute("SELECT 1 FROM asset_entity WHERE asset_id=? AND entity_id=? AND role='studio'",
+ (asset_id, entity['id'])).fetchone():
+ added = None
+ else:
+ upsert_asset_entity(connection, kind='studio', name=entity['canonical_name'], asset_id=asset_id,
+ role='studio', source=OWNER, metadata={'evidence': row['reason']},
+ update_entity_metadata=False)
+ added = dict(cursor.execute("SELECT * FROM asset_entity WHERE asset_id=? AND entity_id=? AND role='studio' AND source=?",
+ (asset_id, entity['id'], OWNER)).fetchone())
+ fields = _asset_fields(cursor, asset_id)
+ write_owned_fields(connection, [asset_id], {'studio': entity['canonical_name']}, OWNER,
+ require_empty=True, expected_revision=fields['mutation_revision'])
+ return added
+
+
+def apply_plan(connection: sqlite3.Connection, plan: list[dict]) -> dict:
+ """调用方持有事务;校验整批当前判定,保留实体与其它来源断言。"""
+ current = [row for row in collect(connection) if row['action'] == 'remove']
+ if fingerprint(current) != fingerprint(plan):
+ raise ValueError('审计计划与当前账本不一致,请重新预览')
+ removed = []
+ added = []
+ asset_ids = sorted({int(row['asset_id']) for row in plan})
+ cursor = connection.cursor()
+ cursor.row_factory = sqlite3.Row
+ before_assets = {asset_id: _asset_fields(cursor, asset_id) for asset_id in asset_ids}
+ for row in plan:
+ key = (row['asset_id'], row['entity_id'], row['relation_source'])
+ raw = cursor.execute("SELECT * FROM asset_entity WHERE asset_id=? AND entity_id=? "
+ "AND role='creator' AND source=?", key).fetchone()
+ removed.append(dict(raw))
+ connection.execute("DELETE FROM asset_entity WHERE asset_id=? AND entity_id=? "
+ "AND role='creator' AND source=?", key)
+ studio_relation = _land_studio(connection, cursor, row)
+ if studio_relation:
+ added.append(studio_relation)
+ for asset_id, before in before_assets.items():
+ names = {str(row[0]) for row in connection.execute(
+ "SELECT DISTINCT e.canonical_name FROM asset_entity ae JOIN entity e ON e.id=ae.entity_id "
+ "WHERE ae.asset_id=? AND ae.role='creator' AND e.kind='creator'", (asset_id,))}
+ removed_names = {str(row['current_creator']) for row in plan if int(row['asset_id']) == asset_id}
+ if before['creator'] not in removed_names or before['creator'] in names:
+ continue
+ if len(names) > 1:
+ raise ValueError(f'资产 {asset_id} 有多个存续创作者,需复核兼容投影')
+ value = next(iter(names), None)
+ current_fields = _asset_fields(cursor, asset_id)
+ write_owned_fields(connection, [asset_id], {'creator': value}, OWNER,
+ expected_revision=current_fields['mutation_revision'])
+ after = _asset_fields(cursor, asset_id)
+ if after['creator'] != value:
+ raise ValueError(f'资产 {asset_id} 的创作者字段拒绝写入')
+ changed = [{'before': before, 'after': _asset_fields(cursor, asset_id)}
+ for asset_id, before in before_assets.items() if _asset_fields(cursor, asset_id) != before]
+ return {'relations': removed, 'added_relations': added, 'fields': changed, 'plan': plan,
+ 'remaining_creator_relations': _creator_relations(connection, asset_ids)}
+
+
+def restore(connection: sqlite3.Connection, manifest: dict) -> None:
+ """仅在本批字段和关系未被后续操作改动时恢复整批。"""
+ cursor = connection.cursor()
+ cursor.row_factory = sqlite3.Row
+ for item in manifest['fields']:
+ after = item['after']
+ current = _asset_fields(cursor, after['id'])
+ if current != after:
+ raise ValueError(f"资产 {after['id']} 已发生后续改动,拒绝回滚整批")
+ asset_ids = sorted({int(row['asset_id']) for row in manifest['relations']})
+ if _creator_relations(connection, asset_ids) != manifest['remaining_creator_relations']:
+ raise ValueError('创作者关系已发生后续改动,拒绝回滚整批')
+ for row in manifest['added_relations']:
+ current = cursor.execute('SELECT * FROM asset_entity WHERE asset_id=? AND entity_id=? AND role=? AND source=?',
+ tuple(row[key] for key in ('asset_id', 'entity_id', 'role', 'source'))).fetchone()
+ if not current or dict(current) != row:
+ raise ValueError('厂牌关系已发生后续改动,拒绝回滚整批')
+ for row in manifest['relations']:
+ if connection.execute("SELECT 1 FROM asset_entity WHERE asset_id=? AND entity_id=? AND role=? AND source=?",
+ tuple(row[key] for key in ('asset_id', 'entity_id', 'role', 'source'))).fetchone():
+ raise ValueError('创作者关系已存在,拒绝回滚整批')
+ if not connection.execute('SELECT 1 FROM entity WHERE id=?', (row['entity_id'],)).fetchone():
+ raise ValueError('实体已不存在,拒绝回滚整批')
+ for row in manifest['relations']:
+ columns = tuple(row)
+ connection.execute(f"INSERT INTO asset_entity({','.join(columns)}) VALUES({','.join('?' for _ in columns)})",
+ tuple(row.values()))
+ for row in manifest['added_relations']:
+ connection.execute('DELETE FROM asset_entity WHERE asset_id=? AND entity_id=? AND role=? AND source=?',
+ tuple(row[key] for key in ('asset_id', 'entity_id', 'role', 'source')))
+ for item in manifest['fields']:
+ before, after = item['before'], item['after']
+ owner = owner_of(before['field_owners'], 'creator') or OWNER
+ write_owned_fields(connection, [before['id']], {'creator': before['creator']}, owner,
+ expected_revision=after['mutation_revision'])
+ current = _asset_fields(cursor, before['id'])
+ if before['studio'] != after['studio']:
+ owner = owner_of(before['field_owners'], 'studio') or OWNER
+ write_owned_fields(connection, [before['id']], {'studio': before['studio']}, owner,
+ expected_revision=current['mutation_revision'])
+ connection.execute('UPDATE asset SET field_owners=? WHERE id=?', (before['field_owners'], before['id']))
diff --git a/src/peach/studio_sites.py b/src/peach/studio_sites.py
index af0006823..46b7f6fe4 100644
--- a/src/peach/studio_sites.py
+++ b/src/peach/studio_sites.py
@@ -115,7 +115,7 @@ CONFIRMED_SITES: dict[str, tuple[str, str]] = {
#: 判词单列而不是静默跳过:少扫一个和「扫过但没找到」在复核件上长得一模一样,
#: 那正是这个仓库最常见的那类缺陷。名字按 `normalise` 比,写法差异(`FC2-PPV`/`FC2 PPV`)
#: 不影响命中。
-PLATFORM_ENTITIES = frozenset({"fc2ppv", "fc2", "myfans"})
+PLATFORM_ENTITIES = frozenset({"fc2ppv", "fc2", "myfans", "manyvids", "onlyfans", "fansly", "patreon", "fantia", "fanbox"})
PLATFORM_VERDICT = "不适用(发行平台)"
diff --git a/src/peach/web_entity.py b/src/peach/web_entity.py
index 11aadfe2b..ff4641e8f 100644
--- a/src/peach/web_entity.py
+++ b/src/peach/web_entity.py
@@ -27,6 +27,7 @@ from .web_catalog import (
tag_not_hidden,
)
from .web_state import WebContract
+from . import entity_classification
#: 有资料页的实体种类。事务所(agency)和厂牌是两件事:厂牌出片、事务所出人,
@@ -162,6 +163,9 @@ def q_entity(contract: WebContract, args):
except (TypeError, ValueError):
metadata = {}
d["metadata"] = metadata
+ d['classifications'] = entity_classification.classifications(c, [d['id']])[d['id']]
+ d['identity_labels'] = entity_classification.labels(d['classifications'])
+ d['related_identities'] = entity_classification.related_identities(c, d['id'])
alias_rows = _entity_alias_rows(c, d["id"])
d["aliases"] = [row["alias"] for row in alias_rows]
# 罗马字仍是检索和旧链接的重要身份键,但中文/日文规范名下面再把英文全列一遍
@@ -563,11 +567,17 @@ def q_index(contract: WebContract, kind, q="", limit=600, offset=0, category="")
"WHERE " + COUNTED_VIDEO + " AND e.kind=? ")
par = [entity_kind]
if q: sql += "AND e.canonical_name LIKE ? "; par.append(f"%{q}%")
+ clause, values = entity_classification.filter_sql(category)
+ sql += clause
+ par.extend(values)
sql += "GROUP BY e.id,e.canonical_name ORDER BY n DESC LIMIT ? OFFSET ?"
par.extend((limit + 1, offset))
rows = [dict(r) for r in c.execute(sql, par)]
has_more = len(rows) > limit
rows = rows[:limit]
+ claims = entity_classification.classifications(c, [row['entity_id'] for row in rows])
+ for row in rows:
+ row['identity_labels'] = entity_classification.labels(claims[row['entity_id']])
else:
sql = ("SELECT e.canonical_name k, count(DISTINCT ae.asset_id) n "
"FROM asset_entity ae JOIN entity e ON e.id=ae.entity_id "
diff --git a/tests/test_entity_classification.py b/tests/test_entity_classification.py
new file mode 100644
index 000000000..99c9d934f
--- /dev/null
+++ b/tests/test_entity_classification.py
@@ -0,0 +1,111 @@
+"""多职业分类、来源保护、身份衔接与分页的行为回归。"""
+import sqlite3
+import tempfile
+import unittest
+
+from peach import entity_classification as classification, entity_identity_research as research
+from peach.entities import merge_entity, upsert_asset_entity
+from peach.web_entity import q_index, q_entity
+from peach.web_state import WebContract
+from tests.support.ledger import fresh_ledger
+
+
+class EntityClassificationTests(unittest.TestCase):
+ def setUp(self):
+ self.directory=tempfile.TemporaryDirectory()
+ self.addCleanup(self.directory.cleanup)
+ self.db=fresh_ledger(self.directory.name)
+ self.connection=sqlite3.connect(self.db)
+ self.addCleanup(self.connection.close)
+ self.connection.row_factory=sqlite3.Row
+
+ def entity(self,name,kind='creator'):
+ self.connection.execute("INSERT INTO asset(location,path,name,medium,creator,studio) VALUES('local',?,?, 'video',?,'Publisher')",
+ (f'B:\\西方\\Publisher\\Publisher.24.12.02.{name.replace(" ",".")}.mp4',f'{name}.mp4',name))
+ asset_id=self.connection.execute('SELECT last_insert_rowid()').fetchone()[0]
+ entity_id=upsert_asset_entity(self.connection,kind=kind,name=name,asset_id=asset_id,role=kind,source='legacy:asset')
+ self.connection.commit()
+ return asset_id,entity_id
+
+ def claim(self,entity_id,facet,value,**kwargs):
+ classification.write_claim(self.connection,entity_id=entity_id,facet=facet,value=value,
+ source='source:publisher',source_url='https://publisher.test/profile',evidence='发行方资料',status='observed',confidence=1,**kwargs)
+
+ def finding(self,name,entity_id):
+ return {'entity_id':entity_id,'name':name,'cast_studios':['Publisher'],
+ 'cast_source_url':'https://publisher.test/profile', 'claims':[
+ {'facet':'identity','value':'person','source_url':'https://publisher.test/profile','evidence':'发行方署名','status':'observed','confidence':1},
+ {'facet':'occupation','value':'adult_performer','source_url':'https://publisher.test/profile','evidence':'发行出演名单','status':'observed','confidence':1}]}
+
+ def test_multiple_markets_and_occupations_are_independent_of_entity_role(self):
+ _,entity_id=self.entity('Known Person')
+ for facet,value in [('identity','person'),('occupation','adult_performer'),('occupation','model'),('market','japanese_av'),('market','western_adult')]:
+ self.claim(entity_id,facet,value)
+ self.connection.commit()
+ data=q_entity(WebContract(self.db),{'kind':'creator','name':'Known Person'})
+ self.assertEqual(set(data['identity_labels']),{'个人','成人出演者','模特','日本 AV','西方成人发行'})
+ self.assertEqual(len(data['classifications']),5)
+
+ def test_candidates_and_search_hits_do_not_qualify_for_trusted_filters(self):
+ _,known=self.entity('Known Person'); _,unknown=self.entity('Unknown Person')
+ self.claim(known,'identity','person')
+ classification.write_claim(self.connection,entity_id=unknown,facet='identity',value='person',source='script:lookup',evidence='同名搜索命中')
+ self.connection.commit()
+ data=q_index(WebContract(self.db),'creators',limit=1,category='unknown')
+ self.assertEqual([row['entity_id'] for row in data['items']],[unknown])
+ self.assertFalse(data['has_more'])
+ self.assertEqual(data['items'][0]['identity_labels'],['待核验'])
+ self.assertEqual(q_index(WebContract(self.db),'creators',category='person')['items'][0]['entity_id'],known)
+ self.assertEqual(q_index(WebContract(self.db),'creators',category="person' OR 1=1")['items'],[])
+
+ def test_script_cannot_approve_or_supply_unvalidated_values(self):
+ _,entity_id=self.entity('Known Person')
+ for patch in [{'status':'approved'}, {'status':'observed','source_url':'http://example.test'}]:
+ with self.assertRaises(ValueError):
+ classification.write_claim(self.connection,entity_id=entity_id,facet='identity',value='person',source='script:lookup',evidence='推断',**patch)
+ with self.assertRaises(ValueError):
+ self.claim(entity_id,'occupation','unknown_profession')
+
+ def test_cast_role_repair_and_restore_preserve_all_business_fields(self):
+ asset_id,entity_id=self.entity('Known Person')
+ self.connection.execute('UPDATE asset SET play_count=7,rating=4 WHERE id=?',(asset_id,));self.connection.commit()
+ before=dict(self.connection.execute('SELECT * FROM asset WHERE id=?',(asset_id,)).fetchone())
+ frozen=research.plan(self.connection,[self.finding('Known Person',entity_id)])
+ self.assertEqual(len(frozen[0]['cast']),1)
+ with self.connection:
+ receipt=research.apply(self.connection,frozen)
+ self.assertEqual(self.connection.execute('SELECT role FROM asset_entity WHERE asset_id=?',(asset_id,)).fetchone()[0],'performer')
+ self.assertEqual(len(classification.related_identities(self.connection,entity_id)),1)
+ with self.connection:
+ research.restore(self.connection,receipt)
+ after=dict(self.connection.execute('SELECT * FROM asset WHERE id=?',(asset_id,)).fetchone())
+ before.pop('mutation_revision');after.pop('mutation_revision')
+ self.assertEqual(before,after)
+ self.assertEqual(self.connection.execute('SELECT count(*) FROM entity').fetchone()[0],1)
+ self.assertEqual(self.connection.execute('SELECT count(*) FROM entity_identity_link').fetchone()[0],0)
+ self.assertEqual(self.connection.execute('PRAGMA foreign_key_check').fetchall(),[])
+
+ def test_stale_plan_and_history_changes_block_repair_or_restore(self):
+ asset_id,entity_id=self.entity('Known Person')
+ frozen=research.plan(self.connection,[self.finding('Known Person',entity_id)])
+ self.connection.execute('UPDATE asset SET creator=? WHERE id=?',('User choice',asset_id));self.connection.commit()
+ with self.assertRaisesRegex(ValueError,'已过期'):
+ with self.connection: research.apply(self.connection,frozen)
+ frozen=research.plan(self.connection,[self.finding('Known Person',entity_id)])
+ with self.connection: receipt=research.apply(self.connection,frozen)
+ self.connection.execute('UPDATE asset SET play_count=9 WHERE id=?',(asset_id,));self.connection.commit()
+ with self.assertRaisesRegex(ValueError,'后续改动'):
+ with self.connection: research.restore(self.connection,receipt)
+
+ def test_manual_creator_relation_is_not_reclassified_as_cast(self):
+ asset_id,entity_id=self.entity('Known Person')
+ self.connection.execute("UPDATE asset_entity SET source='user:manual' WHERE asset_id=?",(asset_id,));self.connection.commit()
+ self.assertEqual(research.plan(self.connection,[self.finding('Known Person',entity_id)])[0]['cast'],[])
+
+ def test_entity_merge_transfers_classification_with_foreign_keys_disabled(self):
+ _,target=self.entity('Known Person');_,source=self.entity('Old Name')
+ self.claim(source,'occupation','model');self.connection.commit()
+ with self.connection:
+ merge_entity(self.connection,target_id=target,source_id=source,source_name='Old Name',alias_source='user:review')
+ self.assertEqual(classification.labels(classification.classifications(self.connection,[target])[target]),['模特'])
+ self.assertEqual(self.connection.execute('PRAGMA foreign_key_check').fetchall(),[])
diff --git a/tests/test_metadata_creator_attributions.py b/tests/test_metadata_creator_attributions.py
new file mode 100644
index 000000000..9e431f759
--- /dev/null
+++ b/tests/test_metadata_creator_attributions.py
@@ -0,0 +1,173 @@
+"""创作者审计保留独立身份、保护人工判断,并可整批回滚。"""
+import sqlite3
+import tempfile
+import unittest
+import json
+from pathlib import Path
+from types import SimpleNamespace
+
+from peach.entities import upsert_asset_entity
+from peach.field_owners import write_owned_fields
+from peach.metadata_creator_attributions import apply_plan, collect, restore
+from tests.support.ledger import fresh_ledger
+from scripts import audit_creator_attributions as audit
+
+
+class CreatorAttributionTests(unittest.TestCase):
+ def setUp(self):
+ self.directory = tempfile.TemporaryDirectory()
+ self.addCleanup(self.directory.cleanup)
+ self.db = fresh_ledger(Path(self.directory.name).resolve())
+ self.connection = sqlite3.connect(self.db)
+ self.addCleanup(self.connection.close)
+
+ def asset(self, name, *, path=None, studio=None, code=None, source='legacy:asset', metadata=None):
+ cursor = self.connection.execute(
+ "INSERT INTO asset(location,path,name,medium,creator,studio,code) VALUES('local',?,?,'video',?,?,?)",
+ (path or f'B:\\创作者\\{name}\\clip.mp4', (path or 'clip.mp4').rsplit('\\', 1)[-1], name, studio, code))
+ asset_id = cursor.lastrowid
+ # 历史错误直接造在夹具里,摄取入口本身须拒绝发行平台。
+ held = self.connection.execute("SELECT id FROM entity WHERE kind='creator' AND canonical_name=?", (name,)).fetchone()
+ if held:
+ entity_id = held[0]
+ else:
+ entity_id = self.connection.execute(
+ "INSERT INTO entity(kind,canonical_name,normalized_name,created_at,updated_at) VALUES('creator',?,?,'t','t')",
+ (name, name.casefold())).lastrowid
+ self.connection.execute("INSERT INTO asset_entity(asset_id,entity_id,role,source,metadata_json) VALUES(?,?,'creator',?,?)",
+ (asset_id, entity_id, source, metadata or '{}'))
+ return asset_id, entity_id
+
+ def plan(self):
+ return [row for row in collect(self.connection) if row['action'] == 'remove']
+
+ def test_platform_is_not_ingested_as_creator(self):
+ asset_id, _ = self.asset('RealSeller')
+ entity_id = upsert_asset_entity(self.connection, kind='creator', name='Myfans',
+ asset_id=asset_id, role='creator', source='user:manual')
+ self.assertIsNone(entity_id)
+ self.assertEqual(self.connection.execute("SELECT count(*) FROM entity WHERE canonical_name='Myfans'").fetchone()[0], 0)
+
+ def test_audit_covers_all_sources_and_preserves_accounts_and_manual_identity(self):
+ self.asset('Myfans')
+ self.asset('Alice', path='https://example.test/users/alice')
+ self.asset('ConfirmedSeller', source='user:watermark')
+ self.asset('banbi_555', path=r'B:\创作者\banbi_555\a title.mp4')
+ self.asset('FC2-PPV', source='user:manual')
+ rows = collect(self.connection)
+ self.assertEqual(len(rows), 5)
+ self.assertEqual([row['current_creator'] for row in rows if row['action']=='remove'], ['Myfans'])
+ self.assertEqual({row['verdict'] for row in rows}, {'platform','online_account','source_identity','identifier_candidate'})
+
+ def test_studio_aliases_and_dated_scene_titles_have_file_evidence(self):
+ asset_id, _ = self.asset('Das', studio='ダスッ!')
+ studio_id = upsert_asset_entity(self.connection, kind='studio', name='ダスッ!',
+ asset_id=asset_id, role='studio', source='release:studio')
+ self.connection.execute("INSERT INTO entity_alias(entity_id,alias,normalized_alias,source) VALUES(?,'Das','das','release')", (studio_id,))
+ self.asset('Freya Mayer Ready to Serve You', path=r'B:\西方\DarkRoomVR.21.04.02.Freya.Mayer.Ready.to.Serve.You.XXX\movie.mp4', studio='DarkRoomVR')
+ self.asset('Jane Doe', path=r'B:\西方\Studio.21.04.02.Jane.Doe.XXX\movie.mp4')
+ self.asset('DPMI-058_000', path=r'B:\云下载\DPMI-058_000\dpmi00058hhb_000.mp4')
+ self.asset('ABW-123', path=r'B:\云下载\ABW-123\ABW-123.mp4', code='ABW-123')
+ self.assertEqual({row['current_creator']: row['verdict'] for row in self.plan()}, {
+ 'Das':'studio', 'Freya Mayer Ready to Serve You':'release_title',
+ 'DPMI-058_000':'release_identifier', 'ABW-123':'release_identifier'})
+
+ def test_repair_and_restore_preserve_identity_metadata_and_personal_records(self):
+ asset_id, entity_id = self.asset('Myfans', metadata='{"evidence":"folder"}')
+ self.connection.execute('UPDATE asset SET play_count=9,rating=4 WHERE id=?', (asset_id,))
+ self.connection.commit()
+ plan = self.plan()
+ with self.connection:
+ manifest = apply_plan(self.connection, plan)
+ self.assertEqual(len(manifest['relations']), 1)
+ self.assertEqual(self.connection.execute('SELECT creator,play_count,rating FROM asset WHERE id=?', (asset_id,)).fetchone(), (None,9,4))
+ self.assertEqual(self.connection.execute('SELECT canonical_name FROM entity WHERE id=?', (entity_id,)).fetchone(), ('Myfans',))
+ with self.connection:
+ restore(self.connection, manifest)
+ self.assertEqual(self.connection.execute('SELECT creator,play_count,rating FROM asset WHERE id=?', (asset_id,)).fetchone(), ('Myfans',9,4))
+ self.assertEqual(self.connection.execute('SELECT metadata_json FROM asset_entity WHERE asset_id=?', (asset_id,)).fetchone(), ('{"evidence":"folder"}',))
+ self.assertEqual(self.connection.execute('PRAGMA foreign_key_check').fetchall(), [])
+
+ def test_stale_plan_and_later_edits_reject_whole_batch(self):
+ asset_id, _ = self.asset('Myfans')
+ other_id, _ = self.asset('FC2-PPV')
+ self.connection.commit()
+ plan = self.plan()
+ write_owned_fields(self.connection, [asset_id], {'creator':'Seller'}, 'user:manual')
+ self.connection.commit()
+ with self.assertRaisesRegex(ValueError, '计划'):
+ with self.connection:
+ apply_plan(self.connection, plan)
+ self.assertEqual(self.connection.execute('SELECT count(*) FROM asset_entity').fetchone()[0], 2)
+ with self.connection:
+ manifest = apply_plan(self.connection, self.plan())
+ write_owned_fields(self.connection, [other_id], {'creator':'VerifiedSeller'}, 'user:manual')
+ self.connection.commit()
+ with self.assertRaisesRegex(ValueError, '后续改动'):
+ with self.connection:
+ restore(self.connection, manifest)
+ self.assertEqual(self.connection.execute('SELECT creator FROM asset WHERE id=?', (other_id,)).fetchone()[0], 'VerifiedSeller')
+
+ def test_protected_and_independent_identity_are_reviewed(self):
+ asset_id, entity_id = self.asset('Myfans')
+ write_owned_fields(self.connection, [asset_id], {'creator':'Myfans'}, 'review:identity')
+ self.asset('FC2-PPV')
+ self.connection.execute("INSERT INTO entity_external_ref(entity_id,provider,external_kind,external_id) VALUES(?, 'site','creator','seller-12')", (entity_id,))
+ self.assertEqual([row['current_creator'] for row in self.plan()], ['FC2-PPV'])
+
+ def test_publisher_moves_to_existing_studio_and_restores_as_a_batch(self):
+ studio_asset, _ = self.asset('Alice')
+ studio_id = upsert_asset_entity(self.connection, kind='studio', name='Vixen',
+ asset_id=studio_asset, role='studio', source='release:studio', metadata={'official':'preserved'})
+ studio_before = self.connection.execute('SELECT metadata_json,updated_at FROM entity WHERE id=?', (studio_id,)).fetchone()
+ asset_id, creator_id = self.asset('Vixen', path=r'B:\云下载\A Scene [Vixen.com]\scene.mp4')
+ self.connection.commit()
+ with self.connection:
+ manifest = apply_plan(self.connection, self.plan())
+ self.assertEqual(self.connection.execute('SELECT creator,studio FROM asset WHERE id=?', (asset_id,)).fetchone(), (None,'Vixen'))
+ self.assertEqual(self.connection.execute('SELECT entity_id,role FROM asset_entity WHERE asset_id=?', (asset_id,)).fetchall(), [(studio_id,'studio')])
+ self.assertEqual(self.connection.execute('SELECT metadata_json,updated_at FROM entity WHERE id=?', (studio_id,)).fetchone(), studio_before)
+ with self.connection:
+ restore(self.connection, manifest)
+ self.assertEqual(self.connection.execute('SELECT creator,studio FROM asset WHERE id=?', (asset_id,)).fetchone(), ('Vixen',None))
+ self.assertEqual(self.connection.execute('SELECT entity_id,role FROM asset_entity WHERE asset_id=?', (asset_id,)).fetchall(), [(creator_id,'creator')])
+
+ def test_site_post_identity_requires_matching_file_and_preserves_accounts(self):
+ self.asset('[7sht.me]legsjapan-955', path=r'B:\云下载\[7sht.me]legsjapan-955\legsjapan-955.mp4')
+ self.asset('fellatiojapan-312', path=r'B:\云下载\fellatiojapan-312\fellatiojapan-312.mp4')
+ self.asset('legsjapan-999', path=r'B:\创作者\legsjapan-999\a title.mp4')
+ self.assertEqual({row['current_creator'] for row in self.plan()}, {'[7sht.me]legsjapan-955','fellatiojapan-312'})
+
+ def test_restore_refuses_a_creator_relation_added_without_flat_field_changes(self):
+ asset_id, _ = self.asset('Myfans')
+ self.connection.commit()
+ with self.connection:
+ manifest = apply_plan(self.connection, self.plan())
+ upsert_asset_entity(self.connection, kind='creator', name='NewSeller', asset_id=asset_id,
+ role='creator', source='user:manual')
+ self.connection.commit()
+ with self.assertRaisesRegex(ValueError, '关系已发生后续改动'):
+ with self.connection:
+ restore(self.connection, manifest)
+
+ def test_cli_preserves_existing_foreign_key_violations_and_keeps_a_restore_manifest(self):
+ _, entity_id = self.asset('Myfans')
+ self.connection.execute("INSERT INTO asset_entity(asset_id,entity_id,role,source) VALUES(99999,?,'tag','legacy')", (entity_id,))
+ self.connection.commit()
+ baseline = self.connection.execute('PRAGMA foreign_key_check').fetchall()
+ manifest = self.db.parent / 'manifest.json'
+ args = SimpleNamespace(db=self.db, apply=True, backup=self.db.parent/'before.db', restore=None, manifest=manifest)
+ audit._write_ledger(args, {'rows':self.plan()})
+ payload = json.loads(manifest.read_text(encoding='utf-8'))
+ self.assertEqual(payload['status'], 'committed')
+ self.assertEqual(self.connection.execute('PRAGMA foreign_key_check').fetchall(), baseline)
+ args.backup = self.db.parent / 'repaired.db'
+ args.restore = manifest
+ args.manifest = None
+ audit._write_ledger(args, payload)
+ self.assertEqual(self.connection.execute('SELECT creator FROM asset').fetchone()[0], 'Myfans')
+ self.assertEqual(self.connection.execute('PRAGMA foreign_key_check').fetchall(), baseline)
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/tests/test_migrations.py b/tests/test_migrations.py
index 5ec80d970..cddeed725 100644
--- a/tests/test_migrations.py
+++ b/tests/test_migrations.py
@@ -24,8 +24,7 @@ class MigrationTests(unittest.TestCase):
sqlite3.connect(self.db).close()
backup = self.root / "before.db"
done = upgrade(self.db, MIGRATIONS, backup)
- self.assertEqual([m.version for m in done],
- ["0000", "0001", "0002", "0003", "0004", "0005", "0006", "0007", "0008", "0009", "0010", "0011", "0012", "0013", "0014", "0015", "0016", "0017", "0018", "0019", "0020", "0021", "0022", "0023", "0024", "0025", "0026", "0027", "0028", "0029", "0030", "0031", "0032", "0033", "0034", "0035", "0036", "0037", "0038", "0039", "0040", "0041", "0042", "0043"])
+ self.assertEqual([m.version for m in done], [f'{number:04d}' for number in range(45)])
self.assertTrue(backup.exists())
con = sqlite3.connect(self.db)
tables = {row[0] for row in con.execute(
@@ -42,8 +41,8 @@ class MigrationTests(unittest.TestCase):
"playlist", "playlist_item",
"asset_tag_preference", "asset_search", "follow_playback",
"genre_decision", "asset_subtitle", "task_run", "performer_profile", "code_sample_image",
- "schema_migration"} <= tables)
- self.assertEqual(versions, ["0000", "0001", "0002", "0003", "0004", "0005", "0006", "0007", "0008", "0009", "0010", "0011", "0012", "0013", "0014", "0015", "0016", "0017", "0018", "0019", "0020", "0021", "0022", "0023", "0024", "0025", "0026", "0027", "0028", "0029", "0030", "0031", "0032", "0033", "0034", "0035", "0036", "0037", "0038", "0039", "0040", "0041", "0042", "0043"])
+ "entity_classification", "entity_identity_link", "schema_migration"} <= tables)
+ self.assertEqual(versions, [f'{number:04d}' for number in range(45)])
self.assertEqual(upgrade(self.db, MIGRATIONS), [])
self.assertEqual(plan(self.db, MIGRATIONS)[1], [])
@@ -325,10 +324,10 @@ class MigrationTests(unittest.TestCase):
for path in sorted(MIGRATIONS.glob("*.sql")):
# 0024 重建 follow_playback,必须与建表的 0022 一起排除;0038 给每张表挂
# 版本号触发器、0039 清 follow_playback 的孤儿行、0040 给墓碑表登记版本号、0041 给新表挂
- # 版本号触发器、0042 的想要清单挂版本号触发器、0043 建下载任务表并挂版本号触发器,
+ # 版本号触发器、0042 的想要清单、0043 的下载任务和 0044 的身份表挂版本号触发器,
# 被排除的迁移建的表这时还不存在,它们也要等到后面一起应用。
if not path.name.startswith(("0020_", "0021_", "0022_", "0024_", "0038_", "0039_", "0040_",
- "0041_", "0042_", "0043_")):
+ "0041_", "0042_", "0043_", "0044_")):
shutil.copyfile(path, base_migrations / path.name)
sqlite3.connect(self.db).close()
upgrade(self.db, base_migrations)
diff --git a/tests/test_test_evidence.py b/tests/test_test_evidence.py
index e3c5af6ad..c1b9e34d2 100644
--- a/tests/test_test_evidence.py
+++ b/tests/test_test_evidence.py
@@ -19,6 +19,27 @@ from scripts import test_runner as runner
from support.gitrepo import seed_repository
+class ResourceShardCommandTests(unittest.TestCase):
+ def test_resource_entry_keeps_shard_arguments_and_space_in_path(self):
+ with tempfile.TemporaryDirectory() as temporary:
+ resource = Path(temporary)/'resource entry.py'
+ resource.write_text('', encoding='utf-8')
+ with mock.patch.dict(os.environ, {'PEACH_TEST_RESOURCE_RUNNER': ''}):
+ original = runner.shard_command(('full',), 2, 4, Path(temporary)/'timings.json')
+ with mock.patch.dict(os.environ, {'PEACH_TEST_RESOURCE_RUNNER': str(resource)}):
+ bounded = runner.shard_command(('full',), 2, 4, Path(temporary)/'timings.json')
+ self.assertEqual(bounded[:7], [sys.executable, '-X', 'utf8', str(resource.resolve()), '--timeout', '1800', '--'])
+ self.assertEqual(bounded[7:], original)
+
+ def test_missing_resource_entry_and_parallel_resource_jobs_are_rejected(self):
+ with tempfile.TemporaryDirectory() as temporary:
+ with mock.patch.dict(os.environ, {'PEACH_TEST_RESOURCE_RUNNER': str(Path(temporary)/'missing.py')}):
+ with self.assertRaisesRegex(ValueError, '不存在'):
+ runner.shard_command(('full',), 0, 4, Path(temporary)/'timings.json')
+ with self.assertRaisesRegex(ValueError, 'jobs 1'):
+ runner.run_shards(('full',), jobs=2, shard_count=4)
+
+
class VerificationTests(unittest.TestCase):
def setUp(self):
temporary = tempfile.TemporaryDirectory()
diff --git a/tests/test_test_planning.py b/tests/test_test_planning.py
index f08569cbe..b0c7c2927 100644
--- a/tests/test_test_planning.py
+++ b/tests/test_test_planning.py
@@ -189,7 +189,8 @@ class TestPlanningTests(unittest.TestCase):
return launched, spawn
launched, spawn = launcher(failing=None)
- with contextlib.redirect_stdout(io.StringIO()) as output:
+ with patch.dict(os.environ, {'PEACH_TEST_RESOURCE_RUNNER': ''}), \
+ contextlib.redirect_stdout(io.StringIO()) as output:
passed, count, timings = runner.run_shards(('follow', 'tooling'), jobs=2, shard_count=3, spawn=spawn)
self.assertTrue(passed)
self.assertEqual(count, 10 + 11 + 12)
@@ -203,7 +204,8 @@ class TestPlanningTests(unittest.TestCase):
self.assertIn(f'分片 {index} 的输出', output.getvalue())
_, spawn = launcher(failing=2)
- with contextlib.redirect_stdout(io.StringIO()):
+ with patch.dict(os.environ, {'PEACH_TEST_RESOURCE_RUNNER': ''}), \
+ contextlib.redirect_stdout(io.StringIO()):
passed, count, _ = runner.run_shards(('checks',), jobs=4, shard_count=3, spawn=spawn)
self.assertFalse(passed)
self.assertEqual(count, 10 + 11 + 12, '失败那片的用例数也要算进总数,记录里的 count 才是实跑数')
diff --git a/web/app.js b/web/app.js
index 9f5e4ba5d..56feef8bf 100644
--- a/web/app.js
+++ b/web/app.js
@@ -146,7 +146,7 @@ const ROUTES=[
open:(params,push)=>openEntity(kind,params.name,push)})),
/* 索引页的状态全在地址栏上(过滤词、范围、视图、类型由页面自己写回),所以就地重取
与刷新都是按当前地址重开一次。 */
- {match:'/performers',nav:'performers',title:'女优',
+ {match:'/performers',nav:'performers',title:'艺人',
open:(params,push)=>openIndex('performers',push),
reload:()=>openIndex('performers',false)},
{match:'/creators',title:'创作者',
@@ -2455,6 +2455,7 @@ function indexPath({kind,q,scope,view,category}){
if(scope==='online')params.set('scope','online');
if(category!=='all')params.set('category',category)}
if(kind==='performers'&&scope==='online')params.set('scope','online');
+ if((kind==='creators'||kind==='performers')&&scope!=='online'&&category!=='all')params.set('category',category);
return '/'+kind+(params.size?'?'+params:'');
}
/* 页头那几样此刻就能给出最终样子:标题、读数的占位、版式开关、过滤框和页面级 Tabs,
@@ -3641,7 +3642,6 @@ const itemDetailActions={
openRegion:region=>openRegion(region),
openTag:tag=>{commitContextFilter(filters=>{filters.tag=tag});window.scrollTo({top:0,behavior:'smooth'})},
addToPlaylist:item=>openAddToPlaylist(item),
- cloudDownload:item=>openCloudDownload({code:item.code||'',title:item.title||item.name||'',origin:`asset:${item.id}`,searchReason:item.better_version?item.better_version_reason||'':''}),
saveMix:options=>saveMixAsPlaylist(options),
editPlaylist:()=>openPlaylists(true),
openPlaylists:()=>openPlaylists(true),
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 2d124e940..c270c4dec 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -17315,10 +17315,10 @@ var k_ = {
isInvalid: !1,
validationDetails: k_,
validationErrors: []
-}, Yee = (0, R.createContext)({}), M_ = "__reactAriaFormValidationState";
-function N_(e) {
+}, M_ = (0, R.createContext)({}), N_ = "__reactAriaFormValidationState";
+function P_(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[M_];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[N_];
return {
realtimeValidation: t,
displayValidation: n,
@@ -17327,64 +17327,64 @@ function N_(e) {
commitValidation: a
};
}
- return Xee(e);
+ return Yee(e);
}
-function Xee(e) {
+function Yee(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: A_
- }, l = (0, R.useMemo)(() => !o || i == null ? null : F_(Zee(o, i)), [o, i]);
+ }, l = (0, R.useMemo)(() => !o || i == null ? null : I_(Xee(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, R.useContext)(Yee), d = (0, R.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => P_(u[e])) : P_(u[r]) : [], [u, r]), [f, p] = (0, R.useState)(u), [m, h] = (0, R.useState)(!1);
+ let u = (0, R.useContext)(M_), d = (0, R.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => F_(u[e])) : F_(u[r]) : [], [u, r]), [f, p] = (0, R.useState)(u), [m, h] = (0, R.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, R.useMemo)(() => F_(m ? [] : d), [m, d]), _ = (0, R.useRef)(j_), [v, y] = (0, R.useState)(j_), b = (0, R.useRef)(j_), x = () => {
+ let g = (0, R.useMemo)(() => I_(m ? [] : d), [m, d]), _ = (0, R.useRef)(j_), [v, y] = (0, R.useState)(j_), b = (0, R.useRef)(j_), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- I_(e, b.current) || (b.current = e, y(e));
+ L_(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, R.useState)(!1);
return (0, R.useEffect)(x), {
realtimeValidation: c || g || l || a || j_,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !I_(v, e) ? y(e) : _.current = e;
+ s === "aria" && !L_(v, e) ? y(e) : _.current = e;
},
resetValidation() {
let e = j_;
- I_(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ L_(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function P_(e) {
+function F_(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function Zee(e, t) {
+function Xee(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return P_(n);
+ if (n && typeof n != "boolean") return F_(n);
}
return [];
}
-function F_(e) {
+function I_(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
validationDetails: A_
} : null;
}
-function I_(e, t) {
+function L_(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);
}
//#endregion
//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function L_(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 = N_({
+function R_(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 = P_({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
@@ -17428,7 +17428,7 @@ function L_(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [M_]: i } = e, { commitValidation: a } = i || b;
+ let { [N_]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
@@ -17471,8 +17471,8 @@ function L_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function R_(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 } = L_(e, t, n), { isIndeterminate: m } = e;
+function z_(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 } = R_(e, t, n), { isIndeterminate: m } = e;
return (0, R.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -17491,10 +17491,10 @@ function R_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var Qee = /* @__PURE__ */ new WeakMap();
+var Zee = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function z_(e) {
+function B_(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
t = gh(t);
let o = gh(), s = {};
@@ -17514,8 +17514,8 @@ function z_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function B_(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = z_(e), s = vh([
+function V_(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = B_(e), s = vh([
!!t,
!!n,
r,
@@ -17539,7 +17539,7 @@ function B_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function V_(e) {
+function H_(e) {
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, R.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = zg(), c = (0, R.useCallback)((e) => {
Np(e.currentTarget, V(e)) && a.current.isFocusWithin && !Np(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
@@ -17580,14 +17580,14 @@ function V_(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var $ee = typeof document < "u" ? R.useInsertionEffect ?? R.useLayoutEffect : () => {};
-function H_(e, t, n) {
+var Qee = typeof document < "u" ? R.useInsertionEffect ?? R.useLayoutEffect : () => {};
+function U_(e, t, n) {
let [r, i] = (0, R.useState)(e || t), a = (0, R.useRef)(r), o = (0, R.useRef)(e !== void 0), s = e !== void 0;
(0, R.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- $ee(() => {
+ Qee(() => {
a.current = c;
});
let [, l] = (0, R.useReducer)(() => ({}), {});
@@ -17598,8 +17598,8 @@ function H_(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function U_(e = {}) {
- let { isReadOnly: t } = e, [n, r] = H_(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, R.useState)(n);
+function W_(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = U_(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, R.useState)(n);
function a(e) {
t || r(e);
}
@@ -17615,17 +17615,17 @@ function U_(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function ete(e, t, n) {
- let r = U_({
+function $ee(e, t, n) {
+ let r = W_({
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 } = Qee.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Zee.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = N_({
+ let { realtimeValidation: l } = P_({
...e,
value: r.isSelected,
name: void 0,
@@ -17634,7 +17634,7 @@ function ete(e, t, n) {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, R.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = R_({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = z_({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -17642,7 +17642,7 @@ function ete(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [M_]: {
+ [N_]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -17666,12 +17666,12 @@ function ete(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function W_(e, t = -Infinity, n = Infinity) {
+function G_(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var G_ = {
+var K_ = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -17683,30 +17683,30 @@ var G_ = {
width: "1px",
whiteSpace: "nowrap"
};
-function K_(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, R.useState)(!1), { focusWithinProps: a } = V_({
+function q_(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, R.useState)(!1), { focusWithinProps: a } = H_({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, R.useMemo)(() => r ? t : t ? {
- ...G_,
+ ...K_,
...t
- } : G_, [r]);
+ } : K_, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function q_(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = K_(e);
+function J_(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = q_(e);
return /*#__PURE__*/ R.createElement(n, H(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function tte(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = H_(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Hh(e, t), d = N_({
+function ete(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = U_(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Hh(e, t), d = P_({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = B_({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = V_({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
@@ -17761,13 +17761,13 @@ function tte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var nte = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function J_(e) {
+var tte = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function Y_(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var Y_ = /* @__PURE__ */ new WeakMap(), X_ = [];
-function Z_(e, t) {
- let n = wp(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && nte, 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 X_ = /* @__PURE__ */ new WeakMap(), Z_ = [];
+function Q_(e, t) {
+ let n = wp(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && tte, 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 (Mp()) {
@@ -17789,13 +17789,13 @@ function Z_(e, t) {
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = Y_.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Y_.set(e, t + 1));
+ let t = X_.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), X_.set(e, t + 1));
};
- X_.length && X_[X_.length - 1].disconnect(), d(i);
+ Z_.length && Z_[Z_.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) => Np(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && J_(e) ? o.add(e) : e instanceof Element && d(e);
+ if (t.target.isConnected && ![...o, ...s].some((e) => Np(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Y_(e) ? o.add(e) : e instanceof Element && d(e);
if (Mp()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -17812,7 +17812,7 @@ function Z_(e, t) {
if (Mp()) 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) => Np(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && J_(e) ? o.add(e) : e instanceof Element && d(e);
+ if (t.target.isConnected && ![...o, ...s].some((e) => Np(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Y_(e) ? o.add(e) : e instanceof Element && d(e);
if (Mp()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -17839,59 +17839,59 @@ function Z_(e, t) {
p.disconnect();
}
};
- return X_.push(h), () => {
+ return Z_.push(h), () => {
if (p.disconnect(), Mp()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = Y_.get(e);
- t != null && (t === 1 ? (l(e, !1), Y_.delete(e)) : Y_.set(e, t - 1));
+ let t = X_.get(e);
+ t != null && (t === 1 ? (l(e, !1), X_.delete(e)) : X_.set(e, t - 1));
}
- h === X_[X_.length - 1] ? (X_.pop(), X_.length && X_[X_.length - 1].observe()) : X_.splice(X_.indexOf(h), 1);
+ h === Z_[Z_.length - 1] ? (Z_.pop(), Z_.length && Z_[Z_.length - 1].observe()) : Z_.splice(Z_.indexOf(h), 1);
};
}
-function rte(e) {
- let t = X_[X_.length - 1];
+function nte(e) {
+ let t = Z_[Z_.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/utils.mjs
-var Q_ = /* @__PURE__ */ new WeakMap();
-function ite(e) {
+var $_ = /* @__PURE__ */ new WeakMap();
+function rte(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function ate(e, t) {
- let n = Q_.get(e);
+function ite(e, t) {
+ let n = $_.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${ite(t)}`;
+ return `${n.id}-option-${rte(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function $_(e) {
+function ev(e) {
return om() ? e.altKey : e.ctrlKey;
}
-function ev(e, t) {
+function tv(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 tv = /* @__PURE__ */ new WeakMap();
-function ote(e) {
+var nv = /* @__PURE__ */ new WeakMap();
+function ate(e) {
let t = gh();
- return tv.set(e, t), t;
+ return nv.set(e, t), t;
}
-function ste(e) {
- return tv.get(e);
+function ote(e) {
+ return nv.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var nv = class {
+var rv = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : ev(this.ref, e);
+ let n = e == null ? null : tv(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -17917,12 +17917,12 @@ var nv = class {
height: e?.clientHeight ?? 0
};
}
-}, rv = class {
+}, iv = 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 nv(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 nv(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 rv(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 rv(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -17962,14 +17962,14 @@ var nv = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = ev(this.ref, e);
+ let t = this.getNextKey(e), n = tv(this.ref, e);
if (t != null) {
- let e = ev(this.ref, t);
+ let e = tv(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = ev(this.ref, r);
+ let e = tv(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -18041,184 +18041,184 @@ var nv = class {
}
return null;
}
-}, iv = {};
-iv = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, av = {};
+av = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var av = {};
-av = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var ov = {};
+ov = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var ov = {};
-ov = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var sv = {};
+sv = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
-var sv = {};
-sv = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var cv = {};
+cv = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
-var cv = {};
-cv = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var lv = {};
+lv = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
-var lv = {};
-lv = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var uv = {};
+uv = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var uv = {};
-uv = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var dv = {};
+dv = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var dv = {};
-dv = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var fv = {};
+fv = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var fv = {};
-fv = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var pv = {};
+pv = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var pv = {};
-pv = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var mv = {};
+mv = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var mv = {};
-mv = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var hv = {};
+hv = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
-var hv = {};
-hv = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var gv = {};
+gv = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var gv = {};
-gv = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var _v = {};
+_v = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var _v = {};
-_v = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var vv = {};
+vv = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
-var vv = {};
-vv = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var yv = {};
+yv = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
-var yv = {};
-yv = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var bv = {};
+bv = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var bv = {};
-bv = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var xv = {};
+xv = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var xv = {};
-xv = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var Sv = {};
+Sv = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var Sv = {};
-Sv = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var Cv = {};
+Cv = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
-var Cv = {};
-Cv = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var wv = {};
+wv = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var wv = {};
-wv = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var Tv = {};
+Tv = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
-var Tv = {};
-Tv = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Ev = {};
+Ev = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
-var Ev = {};
-Ev = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var Dv = {};
+Dv = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
-var Dv = {};
-Dv = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var Ov = {};
+Ov = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
-var Ov = {};
-Ov = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var kv = {};
+kv = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
-var kv = {};
-kv = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var Av = {};
+Av = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var Av = {};
-Av = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var jv = {};
+jv = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
-var jv = {};
-jv = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var Mv = {};
+Mv = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
-var Mv = {};
-Mv = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var Nv = {};
+Nv = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var Nv = {};
-Nv = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var Pv = {};
+Pv = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
-var Pv = {};
-Pv = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var Fv = {};
+Fv = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
-var Fv = {};
-Fv = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var Iv = {};
+Iv = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var Iv = {};
-Iv = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var Lv = {};
+Lv = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var Lv = {};
-Lv = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var Rv = {};
+Rv = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var Rv = {};
-Rv = {
- "ar-AE": iv,
- "bg-BG": av,
- "cs-CZ": ov,
- "da-DK": sv,
- "de-DE": cv,
- "el-GR": lv,
- "en-US": uv,
- "es-ES": dv,
- "et-EE": fv,
- "fi-FI": pv,
- "fr-FR": mv,
- "he-IL": hv,
- "hr-HR": gv,
- "hu-HU": _v,
- "it-IT": vv,
- "ja-JP": yv,
- "ko-KR": bv,
- "lt-LT": xv,
- "lv-LV": Sv,
- "nb-NO": Cv,
- "nl-NL": wv,
- "pl-PL": Tv,
- "pt-BR": Ev,
- "pt-PT": Dv,
- "ro-RO": Ov,
- "ru-RU": kv,
- "sk-SK": Av,
- "sl-SI": jv,
- "sr-SP": Mv,
- "sv-SE": Nv,
- "tr-TR": Pv,
- "uk-UA": Fv,
- "zh-CN": Iv,
- "zh-TW": Lv
+var zv = {};
+zv = {
+ "ar-AE": av,
+ "bg-BG": ov,
+ "cs-CZ": sv,
+ "da-DK": cv,
+ "de-DE": lv,
+ "el-GR": uv,
+ "en-US": dv,
+ "es-ES": fv,
+ "et-EE": pv,
+ "fi-FI": mv,
+ "fr-FR": hv,
+ "he-IL": gv,
+ "hr-HR": _v,
+ "hu-HU": vv,
+ "it-IT": yv,
+ "ja-JP": bv,
+ "ko-KR": xv,
+ "lt-LT": Sv,
+ "lv-LV": Cv,
+ "nb-NO": wv,
+ "nl-NL": Tv,
+ "pl-PL": Ev,
+ "pt-BR": Dv,
+ "pt-PT": Ov,
+ "ro-RO": kv,
+ "ru-RU": Av,
+ "sk-SK": jv,
+ "sl-SI": Mv,
+ "sr-SP": Nv,
+ "sv-SE": Pv,
+ "tr-TR": Fv,
+ "uk-UA": Iv,
+ "zh-CN": Lv,
+ "zh-TW": Rv
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var cte = 500;
-function zv(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = cte, accessibilityDescription: s } = e, c = (0, R.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = zg(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Wg({
+var ste = 500;
+function Bv(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = ste, accessibilityDescription: s } = e, c = (0, R.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = zg(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Wg({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -18250,8 +18250,8 @@ function zv(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function lte(e) {
- let { onContextMenu: t } = e, n = (0, R.useRef)(!1), { longPressProps: r } = zv({
+function cte(e) {
+ let { onContextMenu: t } = e, n = (0, R.useRef)(!1), { longPressProps: r } = Bv({
onLongPressStart() {
n.current = !1;
},
@@ -18294,13 +18294,13 @@ function lte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var Bv = /* @__PURE__ */ new WeakMap();
-function ute(e) {
+var Vv = /* @__PURE__ */ new WeakMap();
+function lte(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
(0, R.useEffect)(() => !n || r === null ? void 0 : kp(Fp(t.current), "scroll", (e) => {
let n = V(e);
if (!t.current || n instanceof Node && !Np(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || Bv.get(t.current);
+ let i = r || Vv.get(t.current);
i && i();
}, !0), [
n,
@@ -18310,10 +18310,10 @@ function ute(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function dte(e, t, n) {
+function ute(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, R.useEffect)(() => {
- n && n.current && Bv.set(n.current, t.close);
+ n && n.current && Vv.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
@@ -18330,11 +18330,11 @@ function dte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function fte(e) {
+function dte(e) {
return e && e.__esModule ? e.default : e;
}
-function Vv(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = gh(), { triggerProps: s, overlayProps: c } = dte({ type: r }, t, n), l = (e, n, r = "first") => {
+function Hv(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = gh(), { triggerProps: s, overlayProps: c } = ute({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
}, { keyboardProps: u } = Lh({
@@ -18349,7 +18349,7 @@ function Vv(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = kg(fte(Rv), "@react-aria/menu"), { longPressProps: f } = zv({
+ }), d = kg(dte(zv), "@react-aria/menu"), { longPressProps: f } = Bv({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -18368,7 +18368,7 @@ function Vv(e, t, n) {
}
};
delete s.onPress;
- let { contextMenuProps: m } = lte({ onContextMenu(e) {
+ let { contextMenuProps: m } = cte({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -18413,8 +18413,8 @@ function Vv(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var Hv = 1e3;
-function Uv(e) {
+var Uv = 1e3;
+function Wv(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, R.useRef)({
search: "",
timeout: void 0
@@ -18433,11 +18433,11 @@ function Uv(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, Hv);
+ }, Uv);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = pte(e.key);
+ let a = fte(e.key);
if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !Np(e.currentTarget, V(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
@@ -18449,17 +18449,17 @@ function Uv(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, Hv);
+ }, Uv);
}
} : void 0
} };
}
-function pte(e) {
+function fte(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function Wv(e, t) {
+function Gv(e, t) {
let n = (0, R.useRef)(!0), r = (0, R.useRef)(null);
qp(() => (n.current = !0, () => {
n.current = !1;
@@ -18469,14 +18469,14 @@ function Wv(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function Gv(e) {
+function Kv(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 } = Cg(), _ = mm(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !$_(e)) {
+ if (t.isLink(n) && m === "selection" && l && !ev(e)) {
(0, rp.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = ev(r, n), o = t.getItemProps(n);
+ let a = tv(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -18488,7 +18488,7 @@ function Gv(e) {
t.extendSelection(n);
return;
}
- if (l && !$_(e)) {
+ if (l && !ev(e)) {
t.replaceSelection(n);
return;
}
@@ -18651,7 +18651,7 @@ function Gv(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 = ee.current.top, p.current.scrollLeft = ee.current.left);
if (t.focusedKey != null && p.current) {
- let e = ev(r, t.focusedKey);
+ let e = tv(r, t.focusedKey);
e instanceof HTMLElement && (!Ip(e) && !d && vp(e), (i === "keyboard" || h && i === "virtual") && C_(e, { containingElement: r.current }));
}
}, P = (e) => {
@@ -18662,14 +18662,14 @@ function Gv(e) {
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (F.current = !0);
} : void 0);
let ne = n.getFirstKey?.() ?? null;
- Wv(() => {
+ Gv(() => {
if (F.current) {
if (ne == null) {
let e = Pp();
dg(r.current), fg(e, null), t.collection.size > 0 && (F.current = !1);
} else t.setFocusedKey(ne), F.current = !1;
}
- }, [ne, t.collection.size]), Wv(() => {
+ }, [ne, t.collection.size]), Gv(() => {
t.collection.size > 0 && (F.current = !1);
}, [t.focusedKey]), gg(r, nee, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
@@ -18692,7 +18692,7 @@ function Gv(e) {
let ae = (0, R.useRef)(t.focusedKey), oe = (0, R.useRef)(null);
(0, R.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ae.current || ie.current) && p.current && r.current) {
- let e = Zm(), n = ev(r, t.focusedKey);
+ let e = Zm(), n = tv(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
p.current && (S_(p.current, n), e !== "virtual" && C_(n, { containingElement: r.current }));
@@ -18711,14 +18711,14 @@ function Gv(e) {
onMouseDown(e) {
p.current === V(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = Uv({
+ }, { typeSelectProps: ce } = Wv({
keyboardDelegate: n,
selectionManager: t
});
u || (se = H(ce, se));
let le;
d || (le = t.focusedKey == null ? 0 : -1);
- let ue = ote(t.collection);
+ let ue = ate(t.collection);
return { collectionProps: H(se, {
tabIndex: le,
"data-collection": ue
@@ -18726,13 +18726,13 @@ function Gv(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function Kv(e, t) {
+function qv(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function qv(e) {
- return Jv(e, 0);
+function Jv(e) {
+ return Yv(e, 0);
}
-function Jv(e, t) {
+function Yv(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -18740,44 +18740,44 @@ function Jv(e, t) {
n++;
}
}
-function Yv(e) {
+function Xv(e) {
let t;
for (let n of e) t = n;
return t;
}
-function Xv(e, t, n) {
+function Zv(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...Zv(e, t), t], i = [...Zv(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...Qv(e, t), t], i = [...Qv(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 Zv(e, t) {
+function Qv(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var Qv = /* @__PURE__ */ new WeakMap();
-function $v(e) {
- let t = Qv.get(e);
+var $v = /* @__PURE__ */ new WeakMap();
+function ey(e) {
+ let t = $v.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(Kv(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(qv(i, e)) : i.type === "item" && n++;
};
- return r(e), Qv.set(e, n), n;
+ return r(e), $v.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var ey = /* @__PURE__ */ new Map();
-function ty(e) {
+var ty = /* @__PURE__ */ new Map();
+function ny(e) {
let { locale: t } = Cg(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (ey.has(n)) return ey.get(n);
+ if (ty.has(n)) return ty.get(n);
let r = new Intl.Collator(t, e);
- return ey.set(n, r), r;
+ return ty.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var mte = /*#__PURE__*/ R.forwardRef(({ children: e, ...t }, n) => {
+var pte = /*#__PURE__*/ R.forwardRef(({ children: e, ...t }, n) => {
let r = (0, R.useRef)(!1), i = (0, R.useContext)(Rg), a = H(i || {}, {
...t,
register() {
@@ -18788,44 +18788,44 @@ var mte = /*#__PURE__*/ R.forwardRef(({ children: e, ...t }, n) => {
r.current ||= !0;
}, []), /*#__PURE__*/ R.createElement(Rg.Provider, { value: a }, e);
});
-function hte({ children: e }) {
+function mte({ children: e }) {
let t = (0, R.useMemo)(() => ({ register: () => {} }), []);
return /*#__PURE__*/ R.createElement(Rg.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var ny = /*#__PURE__*/ (0, R.createContext)({});
-function ry(e) {
- let { getContainer: t } = e, { getContainer: n } = iy();
- return /*#__PURE__*/ R.createElement(ny.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var ry = /*#__PURE__*/ (0, R.createContext)({});
+function iy(e) {
+ let { getContainer: t } = e, { getContainer: n } = ay();
+ return /*#__PURE__*/ R.createElement(ry.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function iy() {
- return (0, R.useContext)(ny) ?? {};
+function ay() {
+ return (0, R.useContext)(ry) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var ay = /*#__PURE__*/ R.createContext(null);
-function oy(e) {
+var oy = /*#__PURE__*/ R.createContext(null);
+function sy(e) {
let t = Nm(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, R.useState)(!1), o = (0, R.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = iy();
+ }), [i, a]), { getContainer: s } = ay();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
return e.disableFocusManagement || (c = /*#__PURE__*/ R.createElement(e_, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ R.createElement(ay.Provider, { value: o }, /*#__PURE__*/ R.createElement(hte, null, /*#__PURE__*/ R.createElement(Bh.Provider, { value: null }, c))), /*#__PURE__*/ rp.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ R.createElement(oy.Provider, { value: o }, /*#__PURE__*/ R.createElement(mte, null, /*#__PURE__*/ R.createElement(Bh.Provider, { value: null }, c))), /*#__PURE__*/ rp.createPortal(c, n);
}
-function sy() {
- let e = (0, R.useContext)(ay)?.setContain;
+function cy() {
+ let e = (0, R.useContext)(oy)?.setContain;
qp(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function gte(e, t) {
+function hte(e, t) {
let { role: n = "dialog" } = e, r = vh();
r = e["aria-label"] ? void 0 : r;
let i = vh();
@@ -18841,7 +18841,7 @@ function gte(e, t) {
clearTimeout(e);
};
}
- }, [t]), sy(), (0, R.useRef)(!1), (0, R.useEffect)(() => {});
+ }, [t]), cy(), (0, R.useRef)(!1), (0, R.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
@@ -18860,7 +18860,7 @@ function gte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function cy(e = {}) {
+function ly(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, R.useRef)({
isFocused: !1,
isFocusVisible: t || Xm()
@@ -18876,7 +18876,7 @@ function cy(e = {}) {
let { focusProps: d } = Ch({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = V_({
+ }), { focusWithinProps: f } = H_({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -18888,35 +18888,35 @@ function cy(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function _te(e = {}) {
+function gte(e = {}) {
let { locale: t } = Cg();
return (0, R.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var ly = !1, uy = 0;
-function vte() {
- ly = !0, setTimeout(() => {
- ly = !1;
+var uy = !1, dy = 0;
+function _te() {
+ uy = !0, setTimeout(() => {
+ uy = !1;
}, 500);
}
-function dy(e) {
- e.pointerType === "touch" && vte();
+function fy(e) {
+ e.pointerType === "touch" && _te();
}
-function yte() {
+function vte() {
let e = Cp(null);
- if (e !== void 0) return uy === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", dy), uy++, () => {
- uy--, !(uy > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", dy);
+ if (e !== void 0) return dy === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", fy), dy++, () => {
+ dy--, !(dy > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", fy);
};
}
-function fy(e) {
+function py(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, R.useState)(!1), s = (0, R.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, R.useEffect)(yte, []);
+ (0, R.useEffect)(vte, []);
let { addGlobalListener: c, removeAllGlobalListeners: l } = zg(), { hoverProps: u, triggerHoverEnd: d } = (0, R.useMemo)(() => {
let e = (e, r) => {
if (s.pointerType = r, i || r === "touch" || s.isHovered || !Np(e.currentTarget, V(e))) return;
@@ -18938,7 +18938,7 @@ function fy(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- ly && t.pointerType === "mouse" || e(t, t.pointerType);
+ uy && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
!i && Np(e.currentTarget, V(e)) && a(e, e.pointerType);
}), {
@@ -18963,12 +18963,12 @@ function fy(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function bte(e) {
+function yte(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, R.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
}), o = hg((e) => {
- n && py(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ n && my(e, t) && (i && i(e), a.current.isPointerDown = !0);
}), s = hg((e) => {
n && n(e);
});
@@ -18978,7 +18978,7 @@ function bte(e) {
let n = t.current, i = Cp(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && py(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && my(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);
@@ -18986,7 +18986,7 @@ function bte(e) {
}
}, [t, r]);
}
-function py(e, t) {
+function my(e, t) {
if (e.button > 0) return !1;
let n = V(e);
if (n) {
@@ -18997,8 +18997,8 @@ function py(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var my = {};
-my = {
+var hy = {};
+hy = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -19012,8 +19012,8 @@ my = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var hy = {};
-hy = {
+var gy = {};
+gy = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -19027,8 +19027,8 @@ hy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var gy = {};
-gy = {
+var _y = {};
+_y = {
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",
@@ -19042,8 +19042,8 @@ gy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var _y = {};
-_y = {
+var vy = {};
+vy = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -19057,8 +19057,8 @@ _y = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var vy = {};
-vy = {
+var yy = {};
+yy = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -19072,8 +19072,8 @@ vy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var yy = {};
-yy = {
+var by = {};
+by = {
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: "Επιλογή",
@@ -19087,8 +19087,8 @@ yy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var by = {};
-by = {
+var xy = {};
+xy = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -19102,8 +19102,8 @@ by = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var xy = {};
-xy = {
+var Sy = {};
+Sy = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -19117,8 +19117,8 @@ xy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var Sy = {};
-Sy = {
+var Cy = {};
+Cy = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -19132,8 +19132,8 @@ Sy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var Cy = {};
-Cy = {
+var wy = {};
+wy = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -19147,8 +19147,8 @@ Cy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var wy = {};
-wy = {
+var Ty = {};
+Ty = {
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",
@@ -19162,8 +19162,8 @@ wy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var Ty = {};
-Ty = {
+var Ey = {};
+Ey = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -19177,8 +19177,8 @@ Ty = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var Ey = {};
-Ey = {
+var Dy = {};
+Dy = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -19192,8 +19192,8 @@ Ey = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var Dy = {};
-Dy = {
+var Oy = {};
+Oy = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -19207,8 +19207,8 @@ Dy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var Oy = {};
-Oy = {
+var ky = {};
+ky = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -19222,8 +19222,8 @@ Oy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var ky = {};
-ky = {
+var Ay = {};
+Ay = {
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: "選択",
@@ -19237,8 +19237,8 @@ ky = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var Ay = {};
-Ay = {
+var jy = {};
+jy = {
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: "선택",
@@ -19252,8 +19252,8 @@ Ay = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var jy = {};
-jy = {
+var My = {};
+My = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -19267,8 +19267,8 @@ jy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var My = {};
-My = {
+var Ny = {};
+Ny = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -19282,8 +19282,8 @@ My = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var Ny = {};
-Ny = {
+var Py = {};
+Py = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -19297,8 +19297,8 @@ Ny = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var Py = {};
-Py = {
+var Fy = {};
+Fy = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -19312,8 +19312,8 @@ Py = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var Fy = {};
-Fy = {
+var Iy = {};
+Iy = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -19327,8 +19327,8 @@ Fy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var Iy = {};
-Iy = {
+var Ly = {};
+Ly = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -19342,8 +19342,8 @@ Iy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var Ly = {};
-Ly = {
+var Ry = {};
+Ry = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -19357,8 +19357,8 @@ Ly = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var Ry = {};
-Ry = {
+var zy = {};
+zy = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -19372,8 +19372,8 @@ Ry = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var zy = {};
-zy = {
+var By = {};
+By = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -19387,8 +19387,8 @@ zy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var By = {};
-By = {
+var Vy = {};
+Vy = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -19402,8 +19402,8 @@ By = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var Vy = {};
-Vy = {
+var Hy = {};
+Hy = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -19417,8 +19417,8 @@ Vy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var Hy = {};
-Hy = {
+var Uy = {};
+Uy = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -19432,8 +19432,8 @@ Hy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var Uy = {};
-Uy = {
+var Wy = {};
+Wy = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -19447,8 +19447,8 @@ Uy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var Wy = {};
-Wy = {
+var Gy = {};
+Gy = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -19462,8 +19462,8 @@ Wy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var Gy = {};
-Gy = {
+var Ky = {};
+Ky = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -19477,8 +19477,8 @@ Gy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var Ky = {};
-Ky = {
+var qy = {};
+qy = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -19492,8 +19492,8 @@ Ky = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var qy = {};
-qy = {
+var Jy = {};
+Jy = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -19507,55 +19507,55 @@ qy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var Jy = {};
-Jy = {
- "ar-AE": my,
- "bg-BG": hy,
- "cs-CZ": gy,
- "da-DK": _y,
- "de-DE": vy,
- "el-GR": yy,
- "en-US": by,
- "es-ES": xy,
- "et-EE": Sy,
- "fi-FI": Cy,
- "fr-FR": wy,
- "he-IL": Ty,
- "hr-HR": Ey,
- "hu-HU": Dy,
- "it-IT": Oy,
- "ja-JP": ky,
- "ko-KR": Ay,
- "lt-LT": jy,
- "lv-LV": My,
- "nb-NO": Ny,
- "nl-NL": Py,
- "pl-PL": Fy,
- "pt-BR": Iy,
- "pt-PT": Ly,
- "ro-RO": Ry,
- "ru-RU": zy,
- "sk-SK": By,
- "sl-SI": Vy,
- "sr-SP": Hy,
- "sv-SE": Uy,
- "tr-TR": Wy,
- "uk-UA": Gy,
- "zh-CN": Ky,
- "zh-TW": qy
+var Yy = {};
+Yy = {
+ "ar-AE": hy,
+ "bg-BG": gy,
+ "cs-CZ": _y,
+ "da-DK": vy,
+ "de-DE": yy,
+ "el-GR": by,
+ "en-US": xy,
+ "es-ES": Sy,
+ "et-EE": Cy,
+ "fi-FI": wy,
+ "fr-FR": Ty,
+ "he-IL": Ey,
+ "hr-HR": Dy,
+ "hu-HU": Oy,
+ "it-IT": ky,
+ "ja-JP": Ay,
+ "ko-KR": jy,
+ "lt-LT": My,
+ "lv-LV": Ny,
+ "nb-NO": Py,
+ "nl-NL": Fy,
+ "pl-PL": Iy,
+ "pt-BR": Ly,
+ "pt-PT": Ry,
+ "ro-RO": zy,
+ "ru-RU": By,
+ "sk-SK": Vy,
+ "sl-SI": Hy,
+ "sr-SP": Uy,
+ "sv-SE": Wy,
+ "tr-TR": Gy,
+ "uk-UA": Ky,
+ "zh-CN": qy,
+ "zh-TW": Jy
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function xte(e) {
+function bte(e) {
return e && e.__esModule ? e.default : e;
}
-function Ste(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = kg(xte(Jy), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, R.useRef)(i), o = (0, R.useCallback)(() => {
+function xte(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = kg(bte(Yy), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, R.useRef)(i), o = (0, R.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = Yy(i, a.current), o = Yy(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = Xy(i, a.current), o = Xy(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)) {
@@ -19594,7 +19594,7 @@ function Ste(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function Yy(e, t) {
+function Xy(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);
@@ -19602,7 +19602,7 @@ function Yy(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function Xy(e, t) {
+function Zy(e, t) {
let n = t?.isDisabled, [r, i] = (0, R.useState)(!1);
return qp(() => {
if (e?.current && !n) {
@@ -19627,11 +19627,11 @@ function Xy(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Cte(e) {
+function Ste(e) {
return e && e.__esModule ? e.default : e;
}
-function wte(e) {
- let t = kg(Cte(Jy), "@react-aria/grid"), n = $m(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+function Cte(e) {
+ let t = kg(Ste(Yy), "@react-aria/grid"), n = $m(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
return T_((0, R.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;
@@ -19645,11 +19645,11 @@ function wte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function Zy(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = ty({
+function Qy(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = ny({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, R.useMemo)(() => a || new rv({
+ }), l = t.disabledBehavior, u = (0, R.useMemo)(() => a || new iv({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -19666,7 +19666,7 @@ function Zy(e) {
c,
l,
s
- ]), { collectionProps: d } = Gv({
+ ]), { collectionProps: d } = Kv({
...e,
ref: i,
selectionManager: t,
@@ -19676,11 +19676,11 @@ function Zy(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function Qy(e) {
+function $y(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 = mm();
t = gh(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && $_(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && ev(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -19723,22 +19723,22 @@ function Qy(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 || eb(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || tb(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" && !$y(e.key)) return;
+ if (e.pointerType === "keyboard" && !eb(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 || eb(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || tb(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && $y(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 && eb(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = ste(n.collection);
+ let A = ote(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = H(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -19756,7 +19756,7 @@ function Qy(e) {
]) D[e] && (k[e] = uh(k[e], D[e]));
let { pressProps: j, isPressed: M } = Wg(k), N = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: ee } = zv({
+ } : void 0, { longPressProps: ee } = Bv({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -19805,22 +19805,22 @@ function Qy(e) {
hasAction: S
};
}
-function $y(e) {
+function eb(e) {
return e === "Enter";
}
-function eb(e) {
+function tb(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Tte(e) {
+function wte(e) {
return e && e.__esModule ? e.default : e;
}
-function Ete(e, t) {
+function Tte(e, t) {
let { key: n } = e, r = t.selectionManager, i = gh(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": kg(Tte(Jy), "@react-aria/grid").format("select"),
+ "aria-label": kg(wte(Yy), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -19828,22 +19828,22 @@ function Ete(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Dte(e, t, n) {
+function Ete(e, t, n) {
let r = jg(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
i === "toggle" && o === "action" && (o = "override");
- let { listProps: s } = Zy({
+ let { listProps: s } = Qy({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = V_({
+ }), { focusWithinProps: c } = H_({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
}), l = gh(e.id);
- Q_.set(t, {
+ $_.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -19853,7 +19853,7 @@ function Dte(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = z_({
+ let { labelProps: u, fieldProps: d } = B_({
...e,
id: l,
labelElementType: "span"
@@ -19869,7 +19869,7 @@ function Dte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Ote(e) {
+function Dte(e) {
let { heading: t, "aria-label": n } = e, r = gh();
return {
itemProps: { role: "presentation" },
@@ -19889,8 +19889,8 @@ function Ote(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function kte(e, t, n) {
- let { key: r } = e, i = Q_.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = vh(), f = vh(), p = {
+function Ote(e, t, n) {
+ let { key: r } = e, i = $_.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = vh(), f = vh(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -19900,9 +19900,9 @@ function kte(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"] = $v(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = ey(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = ate(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Qy({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = ite(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = $y({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -19915,7 +19915,7 @@ function kte(e, t, n) {
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = fy({
+ }), { hoverProps: S } = py({
isDisabled: a || !c,
onHoverStart() {
Xm() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
@@ -19942,13 +19942,13 @@ function kte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var tb = /* @__PURE__ */ new WeakMap();
+var nb = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
-function Ate(e, t, n) {
+function kte(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = jg(e, { labelable: !0 }), { listProps: c } = Zy({
+ let s = jg(e, { labelable: !0 }), { listProps: c } = Qy({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -19957,7 +19957,7 @@ function Ate(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return tb.set(t, {
+ return nb.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -19974,8 +19974,8 @@ function Ate(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function jte(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = tb.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = mm(), M = () => {
+function Ate(e, t, n) {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = nb.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = mm(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
@@ -19999,7 +19999,7 @@ function jte(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (F["aria-checked"] = D), s) {
let e = Number(k?.index);
- F["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, F["aria-setsize"] = $v(t.collection);
+ F["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, F["aria-setsize"] = ey(t.collection);
}
let ne = (0, R.useRef)(!1), re = (e) => {
f?.(e), ne.current = e;
@@ -20009,7 +20009,7 @@ function jte(e, t, n) {
m?.(e), M(), xm(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 } = Qy({
+ }, { itemProps: se, isFocused: ce } = $y({
id: r,
selectionManager: C,
key: i,
@@ -20025,7 +20025,7 @@ function jte(e, t, n) {
onPressChange: re,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: de } = fy({
+ }), { hoverProps: de } = py({
isDisabled: E,
onHoverStart(e) {
!Xm() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
@@ -20087,7 +20087,7 @@ function jte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function Mte(e) {
+function jte(e) {
let { heading: t, "aria-label": n } = e, r = gh();
return {
itemProps: { role: "presentation" },
@@ -20104,15 +20104,15 @@ function Mte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Nte() {
+function Mte() {
return window.ResizeObserver !== void 0;
}
-function nb(e) {
+function rb(e) {
let { ref: t, box: n, onResize: r } = e, i = hg(r);
(0, R.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Nte()) {
+ if (Mte()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -20128,189 +20128,189 @@ function nb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var rb = {};
-rb = { dismiss: "تجاهل" };
+var ib = {};
+ib = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var ib = {};
-ib = { dismiss: "Отхвърляне" };
+var ab = {};
+ab = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var ab = {};
-ab = { dismiss: "Odstranit" };
+var ob = {};
+ob = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var ob = {};
-ob = { dismiss: "Luk" };
+var sb = {};
+sb = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var sb = {};
-sb = { dismiss: "Schließen" };
+var cb = {};
+cb = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var cb = {};
-cb = { dismiss: "Απόρριψη" };
+var lb = {};
+lb = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var lb = {};
-lb = { dismiss: "Dismiss" };
+var ub = {};
+ub = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var ub = {};
-ub = { dismiss: "Descartar" };
+var db = {};
+db = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var db = {};
-db = { dismiss: "Lõpeta" };
+var fb = {};
+fb = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var fb = {};
-fb = { dismiss: "Hylkää" };
+var pb = {};
+pb = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var pb = {};
-pb = { dismiss: "Rejeter" };
+var mb = {};
+mb = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var mb = {};
-mb = { dismiss: "התעלם" };
+var hb = {};
+hb = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var hb = {};
-hb = { dismiss: "Odbaci" };
+var gb = {};
+gb = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var gb = {};
-gb = { dismiss: "Elutasítás" };
+var _b = {};
+_b = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var _b = {};
-_b = { dismiss: "Ignora" };
+var vb = {};
+vb = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var vb = {};
-vb = { dismiss: "閉じる" };
+var yb = {};
+yb = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var yb = {};
-yb = { dismiss: "무시" };
+var bb = {};
+bb = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var bb = {};
-bb = { dismiss: "Atmesti" };
+var xb = {};
+xb = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var xb = {};
-xb = { dismiss: "Nerādīt" };
+var Sb = {};
+Sb = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var Sb = {};
-Sb = { dismiss: "Lukk" };
+var Cb = {};
+Cb = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var Cb = {};
-Cb = { dismiss: "Negeren" };
+var wb = {};
+wb = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var wb = {};
-wb = { dismiss: "Zignoruj" };
+var Tb = {};
+Tb = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var Tb = {};
-Tb = { dismiss: "Descartar" };
+var Eb = {};
+Eb = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var Eb = {};
-Eb = { dismiss: "Dispensar" };
+var Db = {};
+Db = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var Db = {};
-Db = { dismiss: "Revocare" };
+var Ob = {};
+Ob = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var Ob = {};
-Ob = { dismiss: "Пропустить" };
+var kb = {};
+kb = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var kb = {};
-kb = { dismiss: "Zrušiť" };
+var Ab = {};
+Ab = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var Ab = {};
-Ab = { dismiss: "Opusti" };
+var jb = {};
+jb = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var jb = {};
-jb = { dismiss: "Odbaci" };
+var Mb = {};
+Mb = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var Mb = {};
-Mb = { dismiss: "Avvisa" };
+var Nb = {};
+Nb = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var Nb = {};
-Nb = { dismiss: "Kapat" };
+var Pb = {};
+Pb = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var Pb = {};
-Pb = { dismiss: "Скасувати" };
+var Fb = {};
+Fb = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var Fb = {};
-Fb = { dismiss: "取消" };
+var Ib = {};
+Ib = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var Ib = {};
-Ib = { dismiss: "關閉" };
+var Lb = {};
+Lb = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var Lb = {};
-Lb = {
- "ar-AE": rb,
- "bg-BG": ib,
- "cs-CZ": ab,
- "da-DK": ob,
- "de-DE": sb,
- "el-GR": cb,
- "en-US": lb,
- "es-ES": ub,
- "et-EE": db,
- "fi-FI": fb,
- "fr-FR": pb,
- "he-IL": mb,
- "hr-HR": hb,
- "hu-HU": gb,
- "it-IT": _b,
- "ja-JP": vb,
- "ko-KR": yb,
- "lt-LT": bb,
- "lv-LV": xb,
- "nb-NO": Sb,
- "nl-NL": Cb,
- "pl-PL": wb,
- "pt-BR": Tb,
- "pt-PT": Eb,
- "ro-RO": Db,
- "ru-RU": Ob,
- "sk-SK": kb,
- "sl-SI": Ab,
- "sr-SP": jb,
- "sv-SE": Mb,
- "tr-TR": Nb,
- "uk-UA": Pb,
- "zh-CN": Fb,
- "zh-TW": Ib
+var Rb = {};
+Rb = {
+ "ar-AE": ib,
+ "bg-BG": ab,
+ "cs-CZ": ob,
+ "da-DK": sb,
+ "de-DE": cb,
+ "el-GR": lb,
+ "en-US": ub,
+ "es-ES": db,
+ "et-EE": fb,
+ "fi-FI": pb,
+ "fr-FR": mb,
+ "he-IL": hb,
+ "hr-HR": gb,
+ "hu-HU": _b,
+ "it-IT": vb,
+ "ja-JP": yb,
+ "ko-KR": bb,
+ "lt-LT": xb,
+ "lv-LV": Sb,
+ "nb-NO": Cb,
+ "nl-NL": wb,
+ "pl-PL": Tb,
+ "pt-BR": Eb,
+ "pt-PT": Db,
+ "ro-RO": Ob,
+ "ru-RU": kb,
+ "sk-SK": Ab,
+ "sl-SI": jb,
+ "sr-SP": Mb,
+ "sv-SE": Nb,
+ "tr-TR": Pb,
+ "uk-UA": Fb,
+ "zh-CN": Ib,
+ "zh-TW": Lb
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Pte(e) {
+function Nte(e) {
return e && e.__esModule ? e.default : e;
}
-function Rb(e) {
- let { onDismiss: t, ...n } = e, r = _g(n, kg(Pte(Lb), "@react-aria/overlays").format("dismiss")), i = () => {
+function zb(e) {
+ let { onDismiss: t, ...n } = e, r = _g(n, kg(Nte(Rb), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ R.createElement(q_, null, /*#__PURE__*/ R.createElement("button", {
+ return /*#__PURE__*/ R.createElement(J_, null, /*#__PURE__*/ R.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -20322,22 +20322,22 @@ function Rb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var zb = [];
-function Bb(e, t) {
+var Bb = [];
+function Vb(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, R.useRef)(void 0);
(0, R.useEffect)(() => {
- if (i && !zb.includes(t)) return zb.push(t), () => {
- let e = zb.indexOf(t);
- e >= 0 && zb.splice(e, 1);
+ if (i && !Bb.includes(t)) return Bb.push(t), () => {
+ let e = Bb.indexOf(t);
+ e >= 0 && Bb.splice(e, 1);
};
}, [i, t]);
let l = () => {
- zb[zb.length - 1] === t && n && n();
+ Bb[Bb.length - 1] === t && n && n();
}, u = (e) => {
- let n = zb[zb.length - 1];
+ let n = Bb[Bb.length - 1];
c.current = n, (!s || s(V(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(V(e))) && (zb[zb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ (!s || s(V(e))) && (Bb[Bb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
}, { keyboardProps: f } = Lh({ shortcuts: { Escape: () => {
if (!o) {
l();
@@ -20345,12 +20345,12 @@ function Bb(e, t) {
}
return !1;
} } });
- bte({
+ yte({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = V_({
+ let { focusWithinProps: p } = H_({
isDisabled: !r,
onBlurWithin: (e) => {
!e.relatedTarget || Lee(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
@@ -20366,20 +20366,20 @@ function Bb(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Vb = typeof document < "u" && window.visualViewport, Hb = 0, Ub;
-function Wb(e = {}) {
+var Hb = typeof document < "u" && window.visualViewport, Ub = 0, Wb;
+function Gb(e = {}) {
let { isDisabled: t } = e;
qp(() => {
- if (!t) return Hb++, Hb === 1 && (Ub = am() && sm() ? Ite() : Fte()), () => {
- Hb--, Hb === 0 && Ub();
+ if (!t) return Ub++, Ub === 1 && (Wb = am() && sm() ? Fte() : Pte()), () => {
+ Ub--, Ub === 0 && Wb();
};
}, [t]);
}
-function Fte() {
+function Pte() {
let e = window.innerWidth - document.documentElement.clientWidth;
return uh(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Ap(document.documentElement, "scrollbar-gutter", "stable") : Ap(document.documentElement, "padding-right", `${e}px`)), Ap(document.documentElement, "overflow", "hidden"));
}
-function Ite() {
+function Fte() {
let e = Ap(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = V(e);
t = y_(r) ? r : b_(r, !0), n = !1;
@@ -20397,7 +20397,7 @@ function Ite() {
}
}, s = (e) => {
let t = V(e), n = e.relatedTarget;
- n && mg(n) ? (n.focus({ preventScroll: !0 }), Gb(n, mg(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && mg(n) ? (n.focus({ preventScroll: !0 }), Kb(n, mg(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -20407,7 +20407,7 @@ function Ite() {
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && Gb(this, n);
+ }), (!e || !e.preventScroll) && Kb(this, n);
}
});
let l = uh(kp(document, "touchstart", r, {
@@ -20425,10 +20425,10 @@ function Ite() {
});
};
}
-function Gb(e, t) {
- t || !Vb ? Kb(e) : Vb.addEventListener("resize", () => Kb(e), { once: !0 });
+function Kb(e, t) {
+ t || !Hb ? qb(e) : Hb.addEventListener("resize", () => qb(e), { once: !0 });
}
-function Kb(e) {
+function qb(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
let e = b_(n);
@@ -20436,7 +20436,7 @@ function Kb(e) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- Vb && (n = Math.min(n, Vb.offsetTop + Vb.height));
+ Hb && (n = Math.min(n, Hb.offsetTop + Hb.height));
let i = r.top - t.top - ((n - t.top) / 2 - r.height / 2);
e.scrollTo({
top: Math.max(0, Math.min(e.scrollHeight - e.clientHeight, e.scrollTop + i)),
@@ -20449,14 +20449,14 @@ function Kb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function Lte(e, t, n) {
- let { overlayProps: r, underlayProps: i } = Bb({
+function Ite(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = Vb({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return Wb({ isDisabled: !t.isOpen }), sy(), (0, R.useEffect)(() => {
- if (t.isOpen && n.current) return Z_([n.current], { shouldUseInert: !0 });
+ return Gb({ isDisabled: !t.isOpen }), cy(), (0, R.useEffect)(() => {
+ if (t.isOpen && n.current) return Q_([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
modalProps: H(r),
underlayProps: i
@@ -20464,27 +20464,27 @@ function Lte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var qb = {
+var Jb = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Jb = {
+}, Yb = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, Rte = {
+}, Lte = {
top: "left",
left: "top"
-}, Yb = {
+}, Xb = {
top: "height",
left: "width"
-}, Xb = {
+}, Zb = {
width: "totalWidth",
height: "totalHeight"
-}, Zb = {}, zte = () => typeof document < "u" ? window.visualViewport : null;
-function Qb(e, t) {
+}, Qb = {}, Rte = () => typeof document < "u" ? window.visualViewport : null;
+function $b(e, t) {
let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = {}, l = (t?.scale ?? 1) > 1;
if (e.tagName === "BODY" || e.tagName === "HTML") {
let l = document.documentElement;
@@ -20500,7 +20500,7 @@ function Qb(e, t) {
left: s
};
}
-function Bte(e) {
+function zte(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -20508,11 +20508,11 @@ function Bte(e) {
height: e.scrollHeight
};
}
-function $b(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Yb[e]], l = o[e] + r.scroll[qb[e]] + a, u = o[e] + r.scroll[qb[e]] + c - a, d = t - s + r.scroll[qb[e]] + o[e] - r[qb[e]], f = t - s + n + r.scroll[qb[e]] + o[e] - r[qb[e]];
+function ex(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Xb[e]], l = o[e] + r.scroll[Jb[e]] + a, u = o[e] + r.scroll[Jb[e]] + c - a, d = t - s + r.scroll[Jb[e]] + o[e] - r[Jb[e]], f = t - s + n + r.scroll[Jb[e]] + o[e] - r[Jb[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function Vte(e) {
+function Bte(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -20521,32 +20521,32 @@ function Vte(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function ex(e) {
- if (Zb[e]) return Zb[e];
- let [t, n] = e.split(" "), r = qb[t] || "right", i = Rte[r];
- qb[n] || (n = "center");
- let a = Yb[r], o = Yb[i];
- return Zb[e] = {
+function tx(e) {
+ if (Qb[e]) return Qb[e];
+ let [t, n] = e.split(" "), r = Jb[t] || "right", i = Lte[r];
+ Jb[n] || (n = "center");
+ let a = Xb[r], o = Xb[i];
+ return Qb[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Zb[e];
+ }, Qb[e];
}
-function tx(e, t, n, r, i, a, o, s, c, l, u) {
+function nx(e, t, n, r, i, a, o, s, c, l, u) {
let { placement: d, crossPlacement: f, axis: p, crossAxis: m, size: h, crossSize: g } = r, _ = {};
_[m] = e[m] ?? 0, f === "center" ? _[m] += ((e[g] ?? 0) - (n[g] ?? 0)) / 2 : f !== m && (_[m] += (e[g] ?? 0) - (n[g] ?? 0)), _[m] += a;
let v = e[m] - n[g] + c + l, y = e[m] + e[g] - c - l;
- if (_[m] = W_(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Xb[h]];
- _[Jb[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = G_(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[Zb[h]];
+ _[Yb[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function nx(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Xb.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function Vte(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Zb.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
top: Math.max(t.top + f, (u?.offsetTop ?? t.top) + f),
bottom: Math.min(t.top + t.height + f, (u?.offsetTop ?? 0) + (u?.height ?? 0))
};
@@ -20554,22 +20554,22 @@ function nx(e, t, n, r, i, a, o, s, c, l, u) {
}
function rx(e, t, n, r, i, a, o, s) {
let { placement: c, axis: l, size: u } = a;
- return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Jb[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Jb[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Yb[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Yb[l]] - i);
}
function Hte(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = ex(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = tx(t, s, n, v, u, d, l, f, m, h, c), T = u, E = rx(s, l, t, i, a + u, v, c, g);
+ let v = tx(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = nx(t, s, n, v, u, d, l, f, m, h, c), T = u, E = rx(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = ex(`${Jb[S]} ${C}`), r = tx(t, s, n, e, u, d, l, f, m, h, c);
+ let e = tx(`${Yb[S]} ${C}`), r = nx(t, s, n, e, u, d, l, f, m, h, c);
rx(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
}
let D = "bottom";
v.axis === "top" ? v.placement === "top" ? D = "top" : v.placement === "bottom" && (D = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? D = "bottom" : v.crossPlacement === "bottom" && (D = "top"));
- let O = $b(b, w[b], n[x], s, c, a, l);
+ let O = ex(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = nx(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = tx(t, s, n, v, T, d, l, f, m, h, c), O = $b(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[qb[b]], M = j + .5 * t[x], N = m / 2 + h, ee = qb[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;
- A[b] = W_(W_(M, t[b] + m / 2 - (w[b] + i[qb[b]]), t[b] + t[x] - m / 2 - (w[b] + i[qb[b]])), N, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = Vte(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = nx(t, s, n, v, T, d, l, f, m, h, c), O = ex(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[Jb[b]], M = j + .5 * t[x], N = m / 2 + h, ee = Jb[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;
+ A[b] = G_(G_(M, t[b] + m / 2 - (w[b] + i[Jb[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Jb[b]])), N, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let P = S === "left" || S === "top" ? n[y] : 0, F = {
x: S === "top" || S === "bottom" ? j : P,
y: S === "left" || S === "right" ? j : P
@@ -20584,14 +20584,14 @@ function Hte(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
};
}
function Ute(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = zte(), h = r instanceof HTMLElement ? Wte(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? ax(n, !1, p) : ox(n, h, !1, p);
+ let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = Rte(), h = r instanceof HTMLElement ? Wte(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? ax(n, !1, p) : ox(n, h, !1, p);
if (!g) {
let { marginTop: e, marginLeft: t } = window.getComputedStyle(n);
y.top += parseInt(e, 10) || 0, y.left += parseInt(t, 10) || 0;
}
- let b = ax(r, !0), x = Vte(r);
+ let b = ax(r, !0), x = Bte(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Bte(i), C = Qb(s, m), w = Qb(h, m), T;
+ let S = zte(i), C = $b(s, m), w = $b(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
let e = ix(h, !1);
T = {
@@ -20707,10 +20707,10 @@ function Gte(e) {
}
b(y);
}, x);
- qp(C, x), Kte(C), nb({
+ qp(C, x), Kte(C), rb({
ref: i,
onResize: C
- }), nb({
+ }), rb({
ref: r,
onResize: C
});
@@ -20732,7 +20732,7 @@ function Gte(e) {
let T = (0, R.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return ute({
+ return lte({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -20769,7 +20769,7 @@ function qte(e, t) {
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
function Jte(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = Bb({
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = Vb({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
@@ -20784,15 +20784,15 @@ function Jte(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- Wb({ isDisabled: a || !t.isOpen }), (0, R.useEffect)(() => {
- if (t.isOpen && r.current) return a ? rte(i?.current ?? r.current) : Z_([i?.current ?? r.current], { shouldUseInert: !0 });
+ Gb({ isDisabled: a || !t.isOpen }), (0, R.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? nte(i?.current ?? r.current) : Q_([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = V_(e);
+ let { focusWithinProps: g } = H_(e);
return {
popoverProps: H(u, f, g),
arrowProps: p,
@@ -20864,12 +20864,12 @@ function Yte(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
function Xte(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Cg(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = B_({
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Cg(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = V_({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = jg(e, { labelable: !0 }), { focusWithinProps: v } = V_({
+ }), _ = jg(e, { labelable: !0 }), { focusWithinProps: v } = H_({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -20923,16 +20923,16 @@ function Xte(e, t) {
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
var ux = /* @__PURE__ */ new WeakMap();
function Zte(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = ty({
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = ny({
usage: "search",
sensitivity: "base"
- }), u = (0, R.useMemo)(() => r || new rv(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, R.useMemo)(() => r || new iv(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = Vv({
+ ]), { menuTriggerProps: d, menuProps: f } = Hv({
isDisabled: i,
type: "listbox"
}, t, n), { keyboardProps: p } = Lh({
@@ -20951,13 +20951,13 @@ function Zte(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = Uv({
+ }), { typeSelectProps: m } = Wv({
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 } = B_({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = V_({
...e,
labelElementType: "span",
isInvalid: h,
@@ -21027,7 +21027,7 @@ function Zte(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
function Qte(e, t, n) {
- let r = ux.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = K_({ style: {
+ let r = ux.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = q_({ style: {
position: "fixed",
top: 0,
left: 0
@@ -21118,7 +21118,7 @@ function $te(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function dx(e) {
+function ene(e) {
let t = jg(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
@@ -21128,8 +21128,8 @@ function dx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function ene(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = L_(e, t, n);
+function tne(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = R_(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -21143,10 +21143,10 @@ function ene(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var fx = class {
+var dx = 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 tne(e.layout) : new nv(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new nne(e.layout) : new rv(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -21182,7 +21182,7 @@ var fx = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of Kv(n, this.collection)) {
+ for (let e of qv(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -21216,13 +21216,13 @@ var fx = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = Kv(t, this.collection);
- return (this.direction === "rtl" ? Yv(e)?.key : qv(e)?.key) ?? null;
+ let e = qv(t, this.collection);
+ return (this.direction === "rtl" ? Xv(e)?.key : Jv(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = Kv(n, this.collection), i = (this.direction === "rtl" ? Jv(r, t.index - 1) : Jv(r, t.index + 1)) ?? null;
+ let r = qv(n, this.collection), i = (this.direction === "rtl" ? Yv(r, t.index - 1) : Yv(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;
@@ -21231,13 +21231,13 @@ var fx = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = Kv(t, this.collection);
- return (this.direction === "rtl" ? qv(e)?.key : Yv(e)?.key) ?? null;
+ let e = qv(t, this.collection);
+ return (this.direction === "rtl" ? Jv(e)?.key : Xv(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = Kv(n, this.collection), i = (this.direction === "rtl" ? Jv(r, t.index + 1) : Jv(r, t.index - 1)) ?? null;
+ let r = qv(n, this.collection), i = (this.direction === "rtl" ? Yv(r, t.index + 1) : Yv(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;
@@ -21248,13 +21248,13 @@ var fx = 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 ? qv(Kv(e, this.collection))?.key ?? null : null;
+ return e ? Jv(qv(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 = qv(Kv(e, this.collection))?.key ?? null;
+ n = Jv(qv(e, this.collection))?.key ?? null;
}
return n;
}
@@ -21264,13 +21264,13 @@ var fx = 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 ? Yv(Kv(e, this.collection))?.key ?? null : null;
+ return e ? Xv(qv(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 = Yv(Kv(e, this.collection))?.key ?? null;
+ n = Xv(qv(e, this.collection))?.key ?? null;
}
return n;
}
@@ -21306,13 +21306,13 @@ var fx = 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" ? qv(Kv(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? Jv(qv(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;
}
-}, tne = class {
+}, nne = class {
constructor(e) {
this.layout = e;
}
@@ -21325,16 +21325,16 @@ var fx = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, px = /* @__PURE__ */ new WeakMap();
+}, fx = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function nne(e, t, n) {
+function rne(e, t, n) {
let { isVirtualized: r, disallowTypeAhead: i, keyboardDelegate: a, focusMode: o, scrollRef: s, getRowText: c, onRowAction: l, onCellAction: u, escapeKeyBehavior: d = "clearSelection", shouldSelectOnPressUp: f, keyboardNavigationBehavior: p = "arrow" } = e, { selectionManager: m } = t;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let h = ty({
+ let h = ny({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Cg(), _ = t.selectionManager.disabledBehavior, v = (0, R.useMemo)(() => a || new fx({
+ }), { direction: g } = Cg(), _ = t.selectionManager.disabledBehavior, v = (0, R.useMemo)(() => a || new dx({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -21351,7 +21351,7 @@ function nne(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = Gv({
+ ]), { collectionProps: y } = Kv({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -21360,7 +21360,7 @@ function nne(e, t, n) {
disallowTypeAhead: i,
escapeKeyBehavior: d
}), b = gh(e.id);
- px.set(t, {
+ fx.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -21369,7 +21369,7 @@ function nne(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = wte({
+ let x = Cte({
selectionManager: m,
hasItemActions: !!(l || u)
}), S = jg(e, { labelable: !0 }), C = (0, R.useCallback)((e) => {
@@ -21381,36 +21381,36 @@ function nne(e, t, n) {
}, [m]), w = (0, R.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = Xy(n, { isDisabled: t.collection.size !== 0 }), E = H(S, {
+ }), [C, y.onBlur]), T = Zy(n, { isDisabled: t.collection.size !== 0 }), E = H(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), Ste({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), xte({ getRowText: c }, t), { gridProps: E };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var mx = /* @__PURE__ */ new WeakMap();
-function hx(e) {
+var px = /* @__PURE__ */ new WeakMap();
+function mx(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function rne(e, t) {
- let n = mx.get(e);
+function ine(e, t) {
+ let n = px.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${hx(t)}`;
+ return `${n}-${mx(t)}`;
}
-function gx(e, t, n) {
- let r = mx.get(e);
+function hx(e, t, n) {
+ let r = px.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${hx(t)}-${hx(n)}`;
+ return `${r}-${mx(t)}-${mx(n)}`;
}
-function _x(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => gx(e, t, n)).join(" ");
+function gx(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => hx(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var vx = {};
-vx = {
+var _x = {};
+_x = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -21425,8 +21425,8 @@ vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var yx = {};
-yx = {
+var vx = {};
+vx = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -21441,8 +21441,8 @@ yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var bx = {};
-bx = {
+var yx = {};
+yx = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -21457,8 +21457,8 @@ bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var xx = {};
-xx = {
+var bx = {};
+bx = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -21473,8 +21473,8 @@ xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var Sx = {};
-Sx = {
+var xx = {};
+xx = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -21489,8 +21489,8 @@ Sx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var Cx = {};
-Cx = {
+var Sx = {};
+Sx = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -21505,8 +21505,8 @@ Cx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var wx = {};
-wx = {
+var Cx = {};
+Cx = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -21521,8 +21521,8 @@ wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var Tx = {};
-Tx = {
+var wx = {};
+wx = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -21537,8 +21537,8 @@ Tx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var Ex = {};
-Ex = {
+var Tx = {};
+Tx = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -21553,8 +21553,8 @@ Ex = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var Dx = {};
-Dx = {
+var Ex = {};
+Ex = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -21569,8 +21569,8 @@ Dx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var Ox = {};
-Ox = {
+var Dx = {};
+Dx = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -21585,8 +21585,8 @@ Ox = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var kx = {};
-kx = {
+var Ox = {};
+Ox = {
ascending: "עולה",
ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,
collapse: "כווץ",
@@ -21601,8 +21601,8 @@ kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var Ax = {};
-Ax = {
+var kx = {};
+kx = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -21617,8 +21617,8 @@ Ax = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var jx = {};
-jx = {
+var Ax = {};
+Ax = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -21633,8 +21633,8 @@ jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var Mx = {};
-Mx = {
+var jx = {};
+jx = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -21649,8 +21649,8 @@ Mx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var Nx = {};
-Nx = {
+var Mx = {};
+Mx = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -21665,8 +21665,8 @@ Nx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var Px = {};
-Px = {
+var Nx = {};
+Nx = {
ascending: "오름차순",
ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
collapse: "접기",
@@ -21681,8 +21681,8 @@ Px = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var Fx = {};
-Fx = {
+var Px = {};
+Px = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -21697,8 +21697,8 @@ Fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var Ix = {};
-Ix = {
+var Fx = {};
+Fx = {
ascending: "augošā secībā",
ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
collapse: "Sakļaut",
@@ -21713,8 +21713,8 @@ Ix = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var Lx = {};
-Lx = {
+var Ix = {};
+Ix = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -21729,8 +21729,8 @@ Lx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var Rx = {};
-Rx = {
+var Lx = {};
+Lx = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -21745,8 +21745,8 @@ Rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var zx = {};
-zx = {
+var Rx = {};
+Rx = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -21761,8 +21761,8 @@ zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var Bx = {};
-Bx = {
+var zx = {};
+zx = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -21777,8 +21777,8 @@ Bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var Vx = {};
-Vx = {
+var Bx = {};
+Bx = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -21793,8 +21793,8 @@ Vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var Hx = {};
-Hx = {
+var Vx = {};
+Vx = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -21809,8 +21809,8 @@ Hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var Ux = {};
-Ux = {
+var Hx = {};
+Hx = {
ascending: "возрастание",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,
collapse: "Свернуть",
@@ -21825,8 +21825,8 @@ Ux = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var Wx = {};
-Wx = {
+var Ux = {};
+Ux = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -21841,8 +21841,8 @@ Wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var Gx = {};
-Gx = {
+var Wx = {};
+Wx = {
ascending: "naraščajoče",
ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,
collapse: "Strni",
@@ -21857,8 +21857,8 @@ Gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var Kx = {};
-Kx = {
+var Gx = {};
+Gx = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -21873,8 +21873,8 @@ Kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var qx = {};
-qx = {
+var Kx = {};
+Kx = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -21889,8 +21889,8 @@ qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var Jx = {};
-Jx = {
+var qx = {};
+qx = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -21905,8 +21905,8 @@ Jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var Yx = {};
-Yx = {
+var Jx = {};
+Jx = {
ascending: "висхідний",
ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
collapse: "Згорнути",
@@ -21921,8 +21921,8 @@ Yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var Xx = {};
-Xx = {
+var Yx = {};
+Yx = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -21937,8 +21937,8 @@ Xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var Zx = {};
-Zx = {
+var Xx = {};
+Xx = {
ascending: "遞增",
ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,
collapse: "收合",
@@ -21953,46 +21953,46 @@ Zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var Qx = {};
-Qx = {
- "ar-AE": vx,
- "bg-BG": yx,
- "cs-CZ": bx,
- "da-DK": xx,
- "de-DE": Sx,
- "el-GR": Cx,
- "en-US": wx,
- "es-ES": Tx,
- "et-EE": Ex,
- "fi-FI": Dx,
- "fr-FR": Ox,
- "he-IL": kx,
- "hr-HR": Ax,
- "hu-HU": jx,
- "it-IT": Mx,
- "ja-JP": Nx,
- "ko-KR": Px,
- "lt-LT": Fx,
- "lv-LV": Ix,
- "nb-NO": Lx,
- "nl-NL": Rx,
- "pl-PL": zx,
- "pt-BR": Bx,
- "pt-PT": Vx,
- "ro-RO": Hx,
- "ru-RU": Ux,
- "sk-SK": Wx,
- "sl-SI": Gx,
- "sr-SP": Kx,
- "sv-SE": qx,
- "tr-TR": Jx,
- "uk-UA": Yx,
- "zh-CN": Xx,
- "zh-TW": Zx
+var Zx = {};
+Zx = {
+ "ar-AE": _x,
+ "bg-BG": vx,
+ "cs-CZ": yx,
+ "da-DK": bx,
+ "de-DE": xx,
+ "el-GR": Sx,
+ "en-US": Cx,
+ "es-ES": wx,
+ "et-EE": Tx,
+ "fi-FI": Ex,
+ "fr-FR": Dx,
+ "he-IL": Ox,
+ "hr-HR": kx,
+ "hu-HU": Ax,
+ "it-IT": jx,
+ "ja-JP": Mx,
+ "ko-KR": Nx,
+ "lt-LT": Px,
+ "lv-LV": Fx,
+ "nb-NO": Ix,
+ "nl-NL": Lx,
+ "pl-PL": Rx,
+ "pt-BR": zx,
+ "pt-PT": Bx,
+ "ro-RO": Vx,
+ "ru-RU": Hx,
+ "sk-SK": Ux,
+ "sl-SI": Wx,
+ "sr-SP": Gx,
+ "sv-SE": Kx,
+ "tr-TR": qx,
+ "uk-UA": Jx,
+ "zh-CN": Yx,
+ "zh-TW": Xx
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var ine = class extends fx {
+var ane = class extends dx {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -22000,7 +22000,7 @@ var ine = class extends fx {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = qv(Kv(n, this.collection));
+ let e = Jv(qv(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);
@@ -22021,13 +22021,13 @@ var ine = class extends fx {
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 Kv(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of qv(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 = [...Kv(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...qv(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -22056,7 +22056,7 @@ var ine = class extends fx {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of Kv(o, this.collection)) {
+ for (let r of qv(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);
@@ -22070,14 +22070,14 @@ var ine = class extends fx {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function ane(e) {
+function one(e) {
return e && e.__esModule ? e.default : e;
}
-function one(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = ty({
+function sne(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = ny({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Cg(), l = t.selectionManager.disabledBehavior, u = (0, R.useMemo)(() => r || new ine({
+ }), { direction: c } = Cg(), l = t.selectionManager.disabledBehavior, u = (0, R.useMemo)(() => r || new ane({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -22097,14 +22097,14 @@ function one(e, t, n) {
a,
o
]), d = gh(e.id);
- mx.set(t, d);
- let { gridProps: f } = nne({
+ px.set(t, d);
+ let { gridProps: f } = rne({
...e,
id: d,
keyboardDelegate: u
}, t, n);
i && (f["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), t.treeColumn != null && (f.role = "treegrid");
- let { column: p, direction: m } = t.sortDescriptor || {}, h = kg(ane(Qx), "@react-aria/table"), g = (0, R.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = kg(one(Zx), "@react-aria/table"), g = (0, R.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
@@ -22118,13 +22118,13 @@ function one(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function $x(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Cg(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = px.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, R.useRef)(null), h = () => {
+function Qx(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Cg(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = fx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, R.useRef)(null), h = () => {
if (n.current) {
let e = f_(n.current);
if (p === "child") {
if (Ip(n.current) && n.current !== Pp(Cp(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? eS(e) : e.firstChild();
+ let r = t.selectionManager.childFocusStrategy === "last" ? $x(e) : e.firstChild();
if (r) {
lh(r);
return;
@@ -22132,7 +22132,7 @@ function $x(e, t, n) {
}
(m.current != null && r.key !== m.current || !Ip(n.current)) && lh(n.current);
}
- }, { itemProps: g, isPressed: _ } = Qy({
+ }, { itemProps: g, isPressed: _ } = $y({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -22156,7 +22156,7 @@ function $x(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (lh(n.current), C_(n.current, { containingElement: b_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : eS(a), t && (lh(t), C_(t, { containingElement: b_(n.current) })));
+ p === "cell" && l === "rtl" ? (lh(n.current), C_(n.current, { containingElement: b_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : $x(a), t && (lh(t), C_(t, { containingElement: b_(n.current) })));
}
break;
}
@@ -22168,7 +22168,7 @@ function $x(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (lh(n.current), C_(n.current, { containingElement: b_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? eS(a) : a.firstChild(), t && (lh(t), C_(t, { containingElement: b_(n.current) })));
+ p === "cell" && l === "ltr" ? (lh(n.current), C_(n.current, { containingElement: b_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? $x(a) : a.firstChild(), t && (lh(t), C_(t, { containingElement: b_(n.current) })));
}
break;
}
@@ -22213,7 +22213,7 @@ function $x(e, t, n) {
isPressed: _
};
}
-function eS(e) {
+function $x(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -22222,20 +22222,20 @@ function eS(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function sne(e, t, n) {
- let { gridCellProps: r, isPressed: i } = $x(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = gx(t, e.node.parentKey, a)), {
+function cne(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = Qx(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = hx(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function cne(e) {
+function lne(e) {
return e && e.__esModule ? e.default : e;
}
-function lne(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = $x({
+function une(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = Qx({
focusMode: "child",
...e
}, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Wg({
@@ -22246,7 +22246,7 @@ function lne(e, t, n) {
ref: n
}), { focusableProps: l } = Hh({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
r.props.allowsSorting && !lm() && (u = d ? f : "none");
- let p = kg(cne(Qx), "@react-aria/table"), m;
+ let p = kg(lne(Zx), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && lm() && (m = `${m}, ${p.format(f)}`));
let h = T_(m), g = t.collection.size === 0;
return (0, R.useEffect)(() => {
@@ -22259,7 +22259,7 @@ function lne(e, t, n) {
columnHeaderProps: {
...H(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: rne(t, r.key),
+ id: ine(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -22268,14 +22268,14 @@ function lne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function une(e, t, n) {
+function dne(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function dne(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = px.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = Qy({
+function fne(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = fx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = $y({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -22296,10 +22296,10 @@ function dne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function fne(e) {
+function pne(e) {
return e && e.__esModule ? e.default : e;
}
-var tS = {
+var eS = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -22309,21 +22309,21 @@ var tS = {
rtl: "ArrowRight"
}
};
-function pne(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = dne(e, t, n), { direction: s } = Cg();
+function mne(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = fne(e, t, n), { direction: s } = Cg();
i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];
- let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = kg(fne(Qx), "@react-aria/table"), u = _g({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = kg(pne(Zx), "@react-aria/table"), u = _g({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": _x(t, r.key)
+ "aria-labelledby": gx(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = nS(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = nS(t.collection, a);
+ let n = tS(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = tS(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === tS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === tS.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === eS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === eS.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -22345,41 +22345,41 @@ function pne(e, t, n) {
return {
rowProps: {
...H(a, d, m),
- "aria-labelledby": _x(t, r.key)
+ "aria-labelledby": gx(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function nS(e, t) {
+function tS(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function mne() {
+function hne() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function rS() {
- return mne();
+function nS() {
+ return hne();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function hne(e) {
+function gne(e) {
return e && e.__esModule ? e.default : e;
}
-function gne(e, t) {
- let { key: n } = e, { checkboxProps: r } = Ete(e, t);
+function _ne(e, t) {
+ let { key: n } = e, { checkboxProps: r } = Tte(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${_x(t, n)}`
+ "aria-labelledby": `${r.id} ${gx(t, n)}`
} };
}
-function _ne(e) {
+function vne(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": kg(hne(Qx), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": kg(gne(Zx), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -22388,21 +22388,21 @@ function _ne(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var iS = /* @__PURE__ */ new WeakMap();
-function aS(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${iS.get(e)}-${n}-${t}`) : "";
+var rS = /* @__PURE__ */ new WeakMap();
+function iS(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${rS.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function vne(e, t, n) {
- let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = Qy({
+function yne(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 } = $y({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = aS(t, r, "tab"), m = aS(t, r, "tabpanel"), { tabIndex: h } = d, g = jg(u?.props, { labelable: !0 });
+ }), p = iS(t, r, "tab"), m = iS(t, r, "tabpanel"), { tabIndex: h } = d, g = jg(u?.props, { labelable: !0 });
delete g.id;
let _ = bm(u?.props), { focusableProps: v } = Hh({
...u?.props,
@@ -22424,7 +22424,7 @@ function vne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var yne = class {
+var bne = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -22468,11 +22468,11 @@ var yne = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function bne(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Cg(), { collectionProps: l } = Gv({
+function xne(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Cg(), { collectionProps: l } = Kv({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, R.useMemo)(() => new yne(a, c, r, s), [
+ keyboardDelegate: (0, R.useMemo)(() => new bne(a, c, r, s), [
a,
s,
r,
@@ -22483,7 +22483,7 @@ function bne(e, t, n) {
scrollRef: n,
linkBehavior: "selection"
}), u = gh();
- return iS.set(t, u), { tabListProps: {
+ return rS.set(t, u), { tabListProps: {
...H(l, _g({
...e,
id: u
@@ -22495,12 +22495,12 @@ function bne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function xne(e, t, n) {
- let r = Xy(n) ? void 0 : 0, i = aS(t, e.id ?? t?.selectedKey, "tabpanel");
+function Sne(e, t, n) {
+ let r = Zy(n) ? void 0 : 0, i = iS(t, e.id ?? t?.selectedKey, "tabpanel");
return { tabPanelProps: H(_g({
...e,
id: i,
- "aria-labelledby": aS(t, t?.selectedKey, "tab")
+ "aria-labelledby": iS(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -22510,12 +22510,12 @@ function xne(e, t, n) {
}
//#endregion
//#region src/react/components/selection-dock.tsx
-var oS = "(prefers-reduced-motion: reduce)", Sne = () => matchMedia(oS).matches, Cne = (e) => {
- let t = matchMedia(oS);
+var aS = "(prefers-reduced-motion: reduce)", Cne = () => matchMedia(aS).matches, wne = (e) => {
+ let t = matchMedia(aS);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
};
-function wne({ children: e, count: t, label: n }) {
- let r = Hu(), i = (0, R.useSyncExternalStore)(Cne, Sne, () => !1), { isFocusVisible: a } = nh(), o = i || a, s = {
+function Tne({ children: e, count: t, label: n }) {
+ let r = Hu(), i = (0, R.useSyncExternalStore)(wne, Cne, () => !1), { isFocusVisible: a } = nh(), o = i || a, s = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -22551,23 +22551,23 @@ function wne({ children: e, count: t, label: n }) {
}), e]
});
}
-function sS({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, B.jsx)(Ku, { children: e ? /* @__PURE__ */ (0, B.jsx)(wne, { ...t }, "selection") : null });
+function oS({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, B.jsx)(Ku, { children: e ? /* @__PURE__ */ (0, B.jsx)(Tne, { ...t }, "selection") : null });
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
-var cS = R.createContext(void 0), lS = (e) => {
- let t = R.useContext(cS);
+var sS = R.createContext(void 0), cS = (e) => {
+ let t = R.useContext(sS);
if (e) return e;
if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
return t;
-}, uS = ({ client: e, children: t }) => (R.useEffect(() => (e.mount(), () => {
+}, lS = ({ client: e, children: t }) => (R.useEffect(() => (e.mount(), () => {
e.unmount();
-}), [e]), /* @__PURE__ */ (0, B.jsx)(cS.Provider, {
+}), [e]), /* @__PURE__ */ (0, B.jsx)(sS.Provider, {
value: e,
children: t
-})), Tne = ({ children: e, options: t = {}, state: n, queryClient: r }) => {
- let a = lS(r), o = R.useRef(t);
+})), Ene = ({ children: e, options: t = {}, state: n, queryClient: r }) => {
+ let a = cS(r), o = R.useRef(t);
R.useEffect(() => {
o.current = t;
});
@@ -22585,10 +22585,10 @@ var cS = R.createContext(void 0), lS = (e) => {
return R.useEffect(() => {
s && i(a, { queries: s }, o.current);
}, [a, s]), e;
-}, dS = R.createContext(!1), fS = () => R.useContext(dS), Ene = dS.Provider;
+}, uS = R.createContext(!1), dS = () => R.useContext(uS), Dne = uS.Provider;
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
-function pS() {
+function fS() {
let e = !1;
return {
clearReset: () => {
@@ -22600,31 +22600,31 @@ function pS() {
isReset: () => e
};
}
-var mS = R.createContext(pS()), hS = () => R.useContext(mS), Dne = ({ children: e }) => {
- let [t] = R.useState(() => pS());
- return /* @__PURE__ */ (0, B.jsx)(mS.Provider, {
+var pS = R.createContext(fS()), mS = () => R.useContext(pS), One = ({ children: e }) => {
+ let [t] = R.useState(() => fS());
+ return /* @__PURE__ */ (0, B.jsx)(pS.Provider, {
value: t,
children: typeof e == "function" ? e(t) : e
});
-}, gS = (e, t, n) => {
+}, hS = (e, t, n) => {
let r = n?.state.error && typeof e.throwOnError == "function" ? c(e.throwOnError, [n.state.error, n]) : e.throwOnError;
(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));
-}, _S = (e) => {
+}, gS = (e) => {
R.useEffect(() => {
e.clearReset();
}, [e]);
-}, vS = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || c(n, [e.error, r])), yS = (e, t) => t.state.data === void 0, bS = (e) => {
+}, _S = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || c(n, [e.error, r])), vS = (e, t) => t.state.data === void 0, yS = (e) => {
if (e.suspense) {
let t = 1e3, n = (e) => e === "static" ? e : Math.max(e ?? t, t), r = e.staleTime;
e.staleTime = typeof r == "function" ? (...e) => n(r(...e)) : n(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, t));
}
-}, xS = (e, t) => e?.suspense && t.isPending, SS = (e, t, n) => t.fetchOptimistic(e).catch(() => {
+}, bS = (e, t) => e?.suspense && t.isPending, xS = (e, t, n) => t.fetchOptimistic(e).catch(() => {
n.clearReset();
});
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQueries.js
-function CS({ queries: e, ...t }, i) {
- let s = lS(i), c = fS(), l = hS(), u = t.subscribed !== !1, d = R.useMemo(() => e.map((e) => {
+function SS({ queries: e, ...t }, i) {
+ let s = cS(i), c = dS(), l = mS(), u = t.subscribed !== !1, d = R.useMemo(() => e.map((e) => {
let t = s.defaultQueryOptions(e);
return t._optimisticResults = c ? "isRestoring" : u ? "optimistic" : void 0, t;
}), [
@@ -22634,10 +22634,10 @@ function CS({ queries: e, ...t }, i) {
u
]);
d.forEach((e) => {
- bS(e);
+ yS(e);
let t = s.getQueryCache().get(e.queryHash);
- gS(e, l, t);
- }), _S(l);
+ hS(e, l, t);
+ }), gS(l);
let [f] = R.useState(() => new n(s, d, t)), [p, m, h] = f.getOptimisticResult(d, t.combine), g = !c && u;
R.useSyncExternalStore(R.useCallback((e) => g ? f.subscribe(o.batchCalls(e)) : a, [f, g]), () => f.getCurrentResult(), () => f.getCurrentResult()), R.useEffect(() => {
f.setQueries(d, t);
@@ -22646,14 +22646,14 @@ function CS({ queries: e, ...t }, i) {
t,
f
]);
- let _ = p.some((e, t) => xS(d[t], e)) ? p.flatMap((e, t) => {
+ let _ = p.some((e, t) => bS(d[t], e)) ? p.flatMap((e, t) => {
let n = d[t];
- return n && xS(n, e) ? SS(n, new r(s, n), l) : [];
+ return n && bS(n, e) ? xS(n, new r(s, n), l) : [];
}) : [];
if (_.length > 0) throw Promise.all(_);
let v = p.find((e, t) => {
let n = d[t];
- return n && vS({
+ return n && _S({
result: e,
errorResetBoundary: l,
throwOnError: n.throwOnError,
@@ -22666,17 +22666,17 @@ function CS({ queries: e, ...t }, i) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
-function wS(e, t, n) {
- let r = fS(), i = hS(), s = lS(n), c = s.defaultQueryOptions(e), l = s.getQueryCache().get(c.queryHash), u = e.subscribed !== !1;
- c._optimisticResults = r ? "isRestoring" : u ? "optimistic" : void 0, bS(c), gS(c, i, l), _S(i);
+function CS(e, t, n) {
+ let r = dS(), i = mS(), s = cS(n), c = s.defaultQueryOptions(e), l = s.getQueryCache().get(c.queryHash), u = e.subscribed !== !1;
+ c._optimisticResults = r ? "isRestoring" : u ? "optimistic" : void 0, yS(c), hS(c, i, l), gS(i);
let [d] = R.useState(() => new t(s, c)), f = d.getOptimisticResult(c), p = !r && u;
if (R.useSyncExternalStore(R.useCallback((e) => {
let t = p ? d.subscribe(o.batchCalls(e)) : a;
return d.updateResult(), t;
}, [d, p]), () => d.getCurrentResult(), () => d.getCurrentResult()), R.useEffect(() => {
d.setOptions(c);
- }, [c, d]), xS(c, f)) throw SS(c, d, i);
- if (vS({
+ }, [c, d]), bS(c, f)) throw xS(c, d, i);
+ if (_S({
result: f,
errorResetBoundary: i,
throwOnError: c.throwOnError,
@@ -22687,40 +22687,40 @@ function wS(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
-function TS(e, t) {
- return wS(e, r, t);
+function wS(e, t) {
+ return CS(e, r, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.js
-function One(e, t) {
- return wS({
+function kne(e, t) {
+ return CS({
...e,
enabled: !0,
suspense: !0,
- throwOnError: yS,
+ throwOnError: vS,
placeholderData: void 0
}, r, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.js
-function kne(t, n) {
- return wS({
+function Ane(t, n) {
+ return CS({
...t,
enabled: !0,
suspense: !0,
- throwOnError: yS,
+ throwOnError: vS,
placeholderData: void 0
}, e, n);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.js
-function Ane(e, t) {
- return CS({
+function jne(e, t) {
+ return SS({
...e,
queries: e.queries.map((e) => ({
...e,
suspense: !0,
- throwOnError: yS,
+ throwOnError: vS,
enabled: !0,
placeholderData: void 0
}))
@@ -22728,57 +22728,57 @@ function Ane(e, t) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/usePrefetchQuery.js
-function jne(e, t) {
- let n = lS(t);
+function Mne(e, t) {
+ let n = cS(t);
n.getQueryState(e.queryKey) || n.query(e).catch(a);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.js
-function Mne(e, t) {
- let n = lS(t);
+function Nne(e, t) {
+ let n = cS(t);
n.getQueryState(e.queryKey) || n.infiniteQuery(e).catch(a);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/queryOptions.js
-function Nne(e) {
+function Pne(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.js
-function Pne(e) {
+function Fne(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useIsFetching.js
-function Fne(e, t) {
- let n = lS(t), r = n.getQueryCache();
+function Ine(e, t) {
+ let n = cS(t), r = n.getQueryCache();
return R.useSyncExternalStore(R.useCallback((e) => r.subscribe(o.batchCalls(e)), [r]), () => n.isFetching(e), () => n.isFetching(e));
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutationState.js
-function Ine(e, t) {
- let n = lS(t);
- return DS({ filters: {
+function Lne(e, t) {
+ let n = cS(t);
+ return ES({ filters: {
...e,
status: "pending"
} }, n).length;
}
-function ES(e, t) {
+function TS(e, t) {
return e.findAll(t.filters).map((e) => t.select ? t.select(e) : e.state);
}
-function DS(e = {}, t) {
- let n = lS(t).getMutationCache(), r = R.useRef(e), i = R.useRef(null);
- return i.current === null && (i.current = ES(n, e)), R.useEffect(() => {
+function ES(e = {}, t) {
+ let n = cS(t).getMutationCache(), r = R.useRef(e), i = R.useRef(null);
+ return i.current === null && (i.current = TS(n, e)), R.useEffect(() => {
r.current = e;
}), R.useSyncExternalStore(R.useCallback((e) => n.subscribe(() => {
- let t = s(i.current, ES(n, r.current));
+ let t = s(i.current, TS(n, r.current));
i.current !== t && (i.current = t, o.schedule(e));
}), [n]), () => i.current, () => i.current);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutation.js
-function OS(e, n) {
- let r = lS(n), [i] = R.useState(() => new t(r, e));
+function DS(e, n) {
+ let r = cS(n), [i] = R.useState(() => new t(r, e));
R.useEffect(() => {
i.setOptions(e);
}, [i, e]);
@@ -22794,57 +22794,57 @@ function OS(e, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/mutationOptions.js
-function Lne(e) {
+function Rne(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js
-function kS(t, n) {
- return wS(t, e, n);
+function OS(t, n) {
+ return CS(t, e, n);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/index.js
-var AS = /* @__PURE__ */ wt({
- HydrationBoundary: () => Tne,
- IsRestoringProvider: () => Ene,
- QueryClientContext: () => cS,
- QueryClientProvider: () => uS,
- QueryErrorResetBoundary: () => Dne,
- infiniteQueryOptions: () => Pne,
- mutationOptions: () => Lne,
- queryOptions: () => Nne,
- useInfiniteQuery: () => kS,
- useIsFetching: () => Fne,
- useIsMutating: () => Ine,
- useIsRestoring: () => fS,
- useMutation: () => OS,
- useMutationState: () => DS,
- usePrefetchInfiniteQuery: () => Mne,
- usePrefetchQuery: () => jne,
- useQueries: () => CS,
- useQuery: () => TS,
- useQueryClient: () => lS,
- useQueryErrorResetBoundary: () => hS,
- useSuspenseInfiniteQuery: () => kne,
- useSuspenseQueries: () => Ane,
- useSuspenseQuery: () => One
+var kS = /* @__PURE__ */ wt({
+ HydrationBoundary: () => Ene,
+ IsRestoringProvider: () => Dne,
+ QueryClientContext: () => sS,
+ QueryClientProvider: () => lS,
+ QueryErrorResetBoundary: () => One,
+ infiniteQueryOptions: () => Fne,
+ mutationOptions: () => Rne,
+ queryOptions: () => Pne,
+ useInfiniteQuery: () => OS,
+ useIsFetching: () => Ine,
+ useIsMutating: () => Lne,
+ useIsRestoring: () => dS,
+ useMutation: () => DS,
+ useMutationState: () => ES,
+ usePrefetchInfiniteQuery: () => Nne,
+ usePrefetchQuery: () => Mne,
+ useQueries: () => SS,
+ useQuery: () => wS,
+ useQueryClient: () => cS,
+ useQueryErrorResetBoundary: () => mS,
+ useSuspenseInfiniteQuery: () => Ane,
+ useSuspenseQueries: () => jne,
+ useSuspenseQuery: () => kne
});
-import * as Rne from "/dist/peach-ui.js";
-Et(AS, Rne);
+import * as zne from "/dist/peach-ui.js";
+Et(kS, zne);
/* istanbul ignore file */
//#endregion
//#region src/react/providers.tsx
-var jS = null;
-function zne() {
- return jS?.isConnected || (jS = document.createElement("div"), jS.className = "peach-react", jS.dataset.reactOverlays = "", document.body.append(jS)), jS;
+var AS = null;
+function Bne() {
+ return AS?.isConnected || (AS = document.createElement("div"), AS.className = "peach-react", AS.dataset.reactOverlays = "", document.body.append(AS)), AS;
}
-function MS({ children: e }) {
- return /* @__PURE__ */ (0, B.jsx)(uS, {
+function jS({ children: e }) {
+ return /* @__PURE__ */ (0, B.jsx)(lS, {
client: p,
children: /* @__PURE__ */ (0, B.jsx)(sd, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, B.jsx)(ry, {
- getContainer: zne,
+ children: /* @__PURE__ */ (0, B.jsx)(iy, {
+ getContainer: Bne,
children: e
})
})
@@ -22852,13 +22852,13 @@ function MS({ children: e }) {
}
//#endregion
//#region src/react/batch-dock/batch-dock-api.ts
-var NS = {
+var MS = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function Bne(e, t = !1) {
+function Vne(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -22874,7 +22874,7 @@ function Bne(e, t = !1) {
glyph: "trash",
danger: !0
},
- NS
+ MS
];
case "junk": return [
t ? {
@@ -22895,7 +22895,7 @@ function Bne(e, t = !1) {
glyph: "trash",
danger: !0
},
- NS
+ MS
];
case "follow": return [
{
@@ -22916,7 +22916,7 @@ function Bne(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- NS
+ MS
];
default: return [
{
@@ -22950,42 +22950,42 @@ function Bne(e, t = !1) {
glyph: "trash",
danger: !0
},
- NS
+ MS
];
}
}
//#endregion
//#region src/react/batch-dock/batch-dock-island.tsx
-var PS = null, FS = null, IS = {
+var NS = null, PS = null, FS = {
count: 0,
context: "catalog",
junkDismissed: !1
};
-function LS() {
- let e = PS;
- if (!e || !FS) return;
- let t = IS;
- (0, rp.flushSync)(() => FS.render(/* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(Une, {
+function IS() {
+ let e = NS;
+ if (!e || !PS) return;
+ let t = FS;
+ (0, rp.flushSync)(() => PS.render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(Wne, {
host: e,
props: t
}) })));
}
-var Vne = { render(e) {
- IS = e, LS();
+var Hne = { render(e) {
+ FS = e, IS();
} };
-function Hne(e) {
- return PS = e, FS = (0, ip.createRoot)(e.root), LS(), Vne;
+function Une(e) {
+ return NS = e, PS = (0, ip.createRoot)(e.root), IS(), Hne;
}
-function Une({ host: e, props: t }) {
+function Wne({ host: e, props: t }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, B.jsx)(sS, {
+ children: /* @__PURE__ */ (0, B.jsx)(oS, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count} 项`,
- children: Bne(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, B.jsxs)("button", {
+ children: Vne(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -23002,7 +23002,7 @@ function Une({ host: e, props: t }) {
}
//#endregion
//#region src/react/components/glow-preset-grid.tsx
-function RS({ store: e, label: t, hidden: n }) {
+function LS({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-glow-grid": "",
@@ -23028,11 +23028,11 @@ function RS({ store: e, label: t, hidden: n }) {
}
//#endregion
//#region src/react/glow-picker/glow-picker-island.tsx
-function Wne(e) {
+function Gne(e) {
let t = (0, ip.createRoot)(e.root);
- (0, rp.flushSync)(() => t.render(/* @__PURE__ */ (0, B.jsx)(Gne, { host: e })));
+ (0, rp.flushSync)(() => t.render(/* @__PURE__ */ (0, B.jsx)(Kne, { host: e })));
}
-function Gne({ host: e }) {
+function Kne({ host: e }) {
let { store: t } = e;
(0, R.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -23048,7 +23048,7 @@ function Gne({ host: e }) {
children: "重置"
})]
}),
- /* @__PURE__ */ (0, B.jsx)(RS, {
+ /* @__PURE__ */ (0, B.jsx)(LS, {
store: t,
label: "光晕",
hidden: !n.on
@@ -23088,13 +23088,13 @@ function Gne({ host: e }) {
}
//#endregion
//#region src/api.ts
-var zS = class extends Error {
+var RS = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(Te(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, BS = (e) => {
+}, zS = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -23116,7 +23116,7 @@ async function W(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new zS(BS(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new RS(zS(r) || `请求失败(${n.status})`, n.status);
return r;
}
async function G(e, t, n = "POST", r) {
@@ -23133,37 +23133,37 @@ async function G(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new zS(BS(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new RS(zS(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/player/host.ts
-var VS = null;
-function Kne(e) {
- VS = e;
+var BS = null;
+function qne(e) {
+ BS = e;
}
-function HS() {
- if (!VS) throw Error("播放器还没有接上宿主(configurePlayer)");
- return VS;
+function VS() {
+ if (!BS) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return BS;
}
//#endregion
//#region src/player/menu.ts
-var US = null;
-function qne(e) {
- US = e;
+var HS = null;
+function Jne(e) {
+ HS = e;
}
-function Jne() {
+function Yne() {
let e = document.getElementById("playerMenu");
return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;
}
-var WS = null, GS = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function KS() {
+var US = null, WS = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function GS() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && Ne(e, () => {
e.innerHTML = "";
- }), WS &&= (WS(), null);
+ }), US &&= (US(), null);
}
-async function Yne(e) {
+async function Xne(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -23176,12 +23176,12 @@ async function Yne(e) {
return t.remove(), n;
}
}
-function Xne(e) {
- let t = !!US?.inMiniplayer(e), n = e.peachItem, r = US?.kind(e) ?? "item", i = (t) => {
+function Zne(e) {
+ let t = !!HS?.inMiniplayer(e), n = e.peachItem, r = HS?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/follow/item/${n?.id}` : `/item/${n?.id}`, location.origin);
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- Yne(i(e)).then((e) => HS().toast(e ? t : "复制失败,请手动复制地址栏", {
+ Xne(i(e)).then((e) => VS().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -23193,11 +23193,11 @@ function Xne(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => US?.expand()
+ run: () => HS?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => US?.toMiniplayer()
+ run: () => HS?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -23220,29 +23220,29 @@ function Xne(e) {
run: () => s.click()
}), o;
}
-function Zne(e, t, n) {
- let r = Jne();
- KS();
- let i = HS().stage();
+function Qne(e, t, n) {
+ let r = Yne();
+ GS();
+ let i = VS().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = Xne(e);
+ let a = Zne(e);
r.innerHTML = a.map((e, t) => {
let n = e.checked !== void 0;
- return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${GS(L(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${ge(e.label)}</span>${n ? GS(L("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${WS(L(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${ge(e.label)}</span>${n ? WS(L("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), Ge(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
let o = [...r.querySelectorAll("[data-player-menu]")];
o.forEach((e) => {
e.onclick = (t) => {
t.stopPropagation();
let n = a[Number(e.dataset.playerMenu)];
- KS(), n?.run();
+ GS(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || KS();
+ r.contains(e.target) || GS();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), KS();
+ e.preventDefault(), e.stopPropagation(), GS();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -23250,51 +23250,51 @@ function Zne(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- qe(t, e.el()) && KS();
+ qe(t, e.el()) && GS();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), WS = () => {
+ }, 0), US = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function Qne(e) {
+function $ne(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Zne(e, t.clientX, t.clientY));
- }), e.on("dispose", KS);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Qne(e, t.clientX, t.clientY));
+ }), e.on("dispose", GS);
}
//#endregion
//#region src/player/registry.ts
-var qS = null, JS = () => qS;
-function YS(e) {
- qS = e;
+var KS = null, qS = () => KS;
+function JS(e) {
+ KS = e;
}
-function XS(e) {
+function YS(e) {
!e || e.isDisposed() || requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
//#endregion
//#region src/player/stats.ts
-function ZS(e) {
+function XS(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);
return 0;
}
-function $ne(e) {
+function ere(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
}
-var QS = 3e3;
-function $S(e, t) {
+var ZS = 3e3;
+function QS(e, t) {
let n = Number(e) || 0, r = we(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function ere(e) {
+function tre(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -23309,10 +23309,10 @@ function ere(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = $ne(e), s = e.currentTime || 0;
+ let a = performance.now(), o = ere(e), s = e.currentTime || 0;
if (n) {
let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;
- !i && c > 0 && (r += c), e * 1e3 > QS * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > ZS * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -23321,56 +23321,56 @@ function ere(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > QS;) t.shift();
+ }); t.length > 2 && a - t[0].at > ZS;) t.shift();
let c = t[0], l = (a - c.at) / 1e3, u = r - c.advanced;
return l >= .5 && u > 0 && this.bitrate > 0 && (i = u * this.bitrate / l), i;
}
};
}
-var eC = 24;
-function tC(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > eC && e.splice(0, e.length - eC);
+var $S = 24;
+function eC(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > $S && e.splice(0, e.length - $S);
}
-var nC = "peach-player-panel";
-function rC(e, t, n, r) {
- let i = [...Array(Math.max(0, eC - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var tC = "peach-player-panel";
+function nC(e, t, n, r) {
+ let i = [...Array(Math.max(0, $S - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
if (e === null) return "<i aria-hidden=\"true\"></i>";
let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / a));
return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;
}).join("");
return `<span data-player-stats-plot="${t}" role="img" aria-label="${ge(r)}">${o}</span>`;
}
-function tre() {
+function nre() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${L("chart")}</button>
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
}
-function iC(e, t = "") {
+function rC(e, t = "") {
let n = t ? encodeURIComponent(t) : "";
return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));
}
-function aC(e, t = "") {
- let n = iC(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+function iC(e, t = "") {
+ let n = rC(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function oC(e, t, n = "", r = null) {
+function aC(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.tech({ IWillNotUseThisInPlugins: !0 })?.vhs?.stats?.bandwidth) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : aC(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : iC(t, n);
}
-function sC(e) {
+function oC(e) {
if (!Number.isFinite(e) || e <= 0) return "加载中…";
let t = e / 8;
return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;
}
-function nre(e, t) {
- return e > 0 ? sC(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : sC(0);
+function rre(e, t) {
+ return e > 0 ? oC(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : oC(0);
}
//#endregion
//#region src/player/controls.ts
-function cC(e, t, n = "") {
+function sC(e, t, n = "") {
if (!e) return () => {};
let r = e.querySelector(":scope>.vjs-peach-tooltip");
r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));
@@ -23381,24 +23381,24 @@ function cC(e, t, n = "") {
};
return o(), o;
}
-function rre(e, t = !0) {
- let n = HS(), r = n.settings();
+function ire(e, t = !0) {
+ let n = VS(), r = n.settings();
r.ambientMode = !!e, t && n.saveSettings(), n.stage()?.toggleAttribute("data-ambient", r.ambientMode), document.dispatchEvent(new CustomEvent("peachambientchange", { detail: { enabled: r.ambientMode } }));
}
-var lC = /* @__PURE__ */ new WeakMap();
-function uC(e) {
+var cC = /* @__PURE__ */ new WeakMap();
+function lC(e) {
if (!e) return;
- let t = HS().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), lC.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = VS().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), cC.get(e)?.(t ? "默认视图" : "影院模式");
}
-function dC(e, t = !0) {
- let n = HS(), r = n.settings();
+function uC(e, t = !0) {
+ let n = VS(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), uC(i?.querySelector("[data-player-theater]")), XS(JS());
+ i?.toggleAttribute("data-theater", r.theaterMode), lC(i?.querySelector("[data-player-theater]")), YS(qS());
}
-function ire(e) {
- let t = HS().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function are(e) {
+ let t = VS().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -23422,14 +23422,14 @@ function ire(e) {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
if (!(i || t !== o)) {
- if (!HS().settings().ambientMode) {
+ if (!VS().settings().ambientMode) {
c();
return;
}
e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t));
}
}, f = () => {
- i || !HS().settings().ambientMode || (l(), e.paused || u(++o));
+ i || !VS().settings().ambientMode || (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -23438,7 +23438,7 @@ function ire(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function are(e, t, n = 0, r = null) {
+function ore(e, t, n = 0, r = null) {
let i = e.getChild("controlBar")?.el();
if (!i || i.querySelector("[data-player-quality]")) return;
let a = document.createElement("div");
@@ -23448,7 +23448,7 @@ function are(e, t, n = 0, r = null) {
let o = i.querySelector(".vjs-fullscreen-control");
i.insertBefore(a, o || null);
let s = a.querySelector("button"), c = a.querySelector("[data-player-quality-badge]");
- cC(s, "设置");
+ sC(s, "设置");
let l = a.querySelector(".vjs-peach-settings-menu"), u = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, d = r, f = "auto", p = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
@@ -23488,11 +23488,11 @@ function are(e, t, n = 0, r = null) {
active: n
};
}, g = () => l.getAttribute("aria-hidden") !== "true", _ = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(nC, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(tC, { detail: "settings" }));
}, v = () => _(!1), y = (e) => {
e.detail !== "settings" && v();
};
- document.addEventListener(nC, y);
+ document.addEventListener(tC, y);
let b = null, x = (e, t) => {
let n = l.querySelector(".vjs-peach-panel"), r = document.createElement("div");
if (r.className = "vjs-peach-panel", r.innerHTML = e, !n || !t || !g()) return l.replaceChildren(r), l.style.height = "", r;
@@ -23506,12 +23506,12 @@ function are(e, t, n = 0, r = null) {
}, 250);
}), r;
}, S = (e, t) => e.querySelector(t), C = (t = 0) => {
- let { active: n } = h(), r = Number(e.playbackRate()) || 1, i = x(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${HS().settings().ambientMode}">
+ let { active: n } = h(), r = Number(e.playbackRate()) || 1, i = x(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${VS().settings().ambientMode}">
${L("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${L("player-speed")}<span>播放速度</span><b>${r === 1 ? "正常" : `${r}×`}</b>${L("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${L("player-quality")}<span>清晰度</span><b>${ge(n.label)}</b>${L("player-menu-next")}</button></div>`, t);
S(i, "[data-player-ambient]").onclick = () => {
- rre(!HS().settings().ambientMode), C();
+ ire(!VS().settings().ambientMode), C();
}, S(i, "[data-player-speed]").onclick = () => D(), S(i, "[data-player-quality-view]").onclick = () => O();
}, w = .05, T = [
1,
@@ -23574,22 +23574,22 @@ function are(e, t, n = 0, r = null) {
], () => {
g() ? C() : h();
}), e.on("dispose", () => {
- document.removeEventListener("pointerdown", k), document.removeEventListener(nC, y), b && clearTimeout(b);
- }), h(), ore(e, a), sre(e), (e) => {
+ document.removeEventListener("pointerdown", k), document.removeEventListener(tC, y), b && clearTimeout(b);
+ }), h(), sre(e, a), cre(e), (e) => {
d = e?.length ? e : null, g() ? C() : h();
};
}
-function ore(e, t) {
+function sre(e, t) {
let n = e.getChild("controlBar")?.el();
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = HS().settings().theaterMode, i = document.createElement("div");
+ let r = VS().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${L(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- lC.set(a, cC(a, "影院模式", "T")), uC(a), a.onclick = (e) => {
- e.stopPropagation(), dC(!HS().settings().theaterMode);
+ cC.set(a, sC(a, "影院模式", "T")), lC(a), a.onclick = (e) => {
+ e.stopPropagation(), uC(!VS().settings().theaterMode);
};
}
-function sre(e) {
+function cre(e) {
let t = e.getChild("controlBar")?.el();
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -23601,7 +23601,7 @@ function sre(e) {
e.dataset.peachExplicitIcon = "";
let r = document.createElementNS("http://www.w3.org/2000/svg", "svg");
return r.setAttribute("viewBox", n.getAttribute("viewBox") || ""), r.setAttribute("aria-hidden", "true"), r.setAttribute("class", "vjs-peach-control-icon vjs-peach-morph-icon"), r.innerHTML = n.innerHTML, e.append(r), r;
- }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = cC(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
+ }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = sC(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
let t = e.paused() || e.ended(), n = t ? s : c;
o && (u ? o.style.setProperty("d", `path("${n}")`) : o.setAttribute("d", n)), l(t ? "播放" : "暂停");
};
@@ -23612,7 +23612,7 @@ function sre(e) {
], d), d();
let f = t.querySelector(":scope>.vjs-volume-panel"), p = f?.querySelector(":scope>.vjs-mute-control"), m = i(p, "player-volume");
m && a("player-volume-muted").forEach((e) => m.append(e.cloneNode(!0)));
- let h = cC(p, "静音", "M"), g = () => {
+ let h = sC(p, "静音", "M"), g = () => {
let t = e.muted() || e.volume() === 0;
m && (m.dataset.silent = String(t), m.dataset.loud = String(!t && e.volume() > .5)), h(t ? "取消静音" : "静音");
};
@@ -23638,7 +23638,7 @@ function sre(e) {
});
let x = document.createElement("button"), S = !1;
x.type = "button", x.className = "vjs-peach-time vjs-control", x.dataset.playerTime = "", x.innerHTML = "<span class=\"vjs-peach-time-text\"></span>";
- let C = x.querySelector(".vjs-peach-time-text"), w = cC(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = sC(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = _e(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : _e(t)} / ${_e(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${_e(n)};点击显示已播放时间` : `已播放 ${_e(t)},总时长 ${_e(n)};点击显示剩余时间`);
};
@@ -23651,11 +23651,11 @@ function sre(e) {
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
r(E, "player-pip");
- let D = cC(E, "画中画");
+ let D = sC(E, "画中画");
e.on(["enterpictureinpicture", "leavepictureinpicture"], () => D(document.pictureInPictureElement ? "退出画中画" : "画中画"));
- let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = cC(O, "全屏", "F"), j = () => {
+ let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = sC(O, "全屏", "F"), j = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), XS(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), YS(e);
};
e.on([
"fullscreenchange",
@@ -23675,7 +23675,7 @@ function sre(e) {
});
let ee = document.createElement("div");
ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${L("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, N.prepend(ee);
- let te = ee.querySelector("button"), P = cC(te, "展开控件"), F = (t) => {
+ let te = ee.querySelector("button"), P = sC(te, "展开控件"), F = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), te.setAttribute("aria-expanded", String(t)), P(t ? "收起控件" : "展开控件");
};
te.onclick = (t) => {
@@ -23687,7 +23687,7 @@ function sre(e) {
}, re = new ResizeObserver(ne);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), F(!1), ne();
}
-function cre(e, t, n = {}) {
+function lre(e, t, n = {}) {
let r = e.getChild("controlBar")?.el()?.querySelector(".vjs-progress-control");
if (!r || r.querySelector("[data-player-seek-preview]")) return;
let i = n.thumbnail !== !1, a = document.createElement("div");
@@ -23720,13 +23720,13 @@ function cre(e, t, n = {}) {
r.removeEventListener("pointermove", p), r.removeEventListener("pointerleave", m);
});
}
-function lre(e, t) {
+function ure(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => we(e.duration()) || we(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(HS().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(VS().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -23767,11 +23767,11 @@ function lre(e, t) {
} catch {}
});
}
-function ure(e) {
+function dre(e) {
let t = e.el().querySelector(".vjs-loading-spinner");
!t || t.querySelector(".vjs-peach-spinner-container") || (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");
}
-function dre(e, t) {
+function fre(e, t) {
pe(`/api/assets/${t}/subtitles`).then((t) => {
!e || e.isDisposed() || (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -23786,7 +23786,7 @@ function dre(e, t) {
}
//#endregion
//#region src/player/dispose.ts
-function fC(e) {
+function dC(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
@@ -23804,23 +23804,23 @@ function fC(e) {
}
//#endregion
//#region src/player/stream.ts
-function pC() {
+function fC() {
return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
}
-function mC(e, t) {
+function pC(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function fre(e) {
+function pre(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function hC(e, t) {
- let n = fre(e);
+async function mC(e, t) {
+ let n = pre(e);
if (n) return n;
try {
let n = await pe(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -23829,9 +23829,9 @@ async function hC(e, t) {
type: n.mime_type || "application/vnd.apple.mpegurl"
};
} catch {}
- return mC(e, t);
+ return pC(e, t);
}
-function gC(e) {
+function hC(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -23840,21 +23840,21 @@ function gC(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var _C = "";
+var gC = "";
+function _C() {
+ return gC;
+}
function vC() {
- return _C;
+ return gC ||= fC(), gC;
}
+var mre = (e) => pC(e, vC()), hre = (e) => mC(e, vC());
function yC() {
- return _C ||= pC(), _C;
-}
-var pre = (e) => mC(e, yC()), mre = (e) => hC(e, yC());
-function bC() {
- let e = _C;
- e && (_C = "", gC(e));
+ let e = gC;
+ e && (gC = "", hC(e));
}
//#endregion
//#region src/player/telemetry.ts
-function xC(e, t, n = {}) {
+function bC(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null;
t.addEventListener("seeking", () => {
@@ -23902,7 +23902,7 @@ function xC(e, t, n = {}) {
u(), l(!1);
}, { once: !0 }), c();
}
-function hre(e, t) {
+function gre(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = we(e.duration) || we(t.duration);
!r && !n || (pe("/api/follow/activity", {
@@ -23938,7 +23938,7 @@ function hre(e, t) {
}
//#endregion
//#region src/player/videojs.ts
-var SC = "/vendor/videojs/8.24.1/", CC = (e) => new Promise((t, n) => {
+var xC = "/vendor/videojs/8.24.1/", SC = (e) => new Promise((t, n) => {
let r = document.head.querySelector(`script[src="${e}"]`);
if (r?.dataset.loaded) {
t();
@@ -23950,20 +23950,20 @@ var SC = "/vendor/videojs/8.24.1/", CC = (e) => new Promise((t, n) => {
}, { once: !0 }), i.addEventListener("error", () => {
i.remove(), n(/* @__PURE__ */ Error(`script unavailable: ${e}`));
}, { once: !0 }), r || (i.src = e, document.head.appendChild(i));
-}), wC = () => globalThis.videojs, TC = null;
-function EC() {
- let e = wC();
- return e ? Promise.resolve(e) : (TC ??= CC(`${SC}video.min.js`).then(() => CC(`${SC}lang/zh-CN.js`)).then(() => {
- let e = wC();
+}), CC = () => globalThis.videojs, wC = null;
+function TC() {
+ let e = CC();
+ return e ? Promise.resolve(e) : (wC ??= SC(`${xC}video.min.js`).then(() => SC(`${xC}lang/zh-CN.js`)).then(() => {
+ let e = CC();
if (!e) throw Error("videojs unavailable");
return e;
}).catch((e) => {
- throw TC = null, e;
- }), TC);
+ throw wC = null, e;
+ }), wC);
}
//#endregion
//#region src/player/immerse-player.ts
-var gre = {
+var _re = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -23975,37 +23975,37 @@ var gre = {
errorDisplay: !1,
textTrackSettings: !1
};
-function _re(e, t) {
+function vre(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([hC(n, r), EC().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([mC(n, r), TC().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = mC(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = pC(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, gre);
+ let t = s(e, _re);
i = t, l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- xC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ bC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, gC(r), i ? fC(i) : (e.pause(), e.removeAttribute("src"), e.load()));
+ a || (a = !0, hC(r), i ? dC(i) : (e.pause(), e.removeAttribute("src"), e.load()));
};
}
//#endregion
//#region src/player/detail-player.ts
-var DC = /* @__PURE__ */ new WeakMap(), OC = null, kC = null, AC = null;
-function jC() {
- OC &&= (clearInterval(OC), null), kC &&= (clearInterval(kC), null), AC &&= (clearTimeout(AC), null);
+var EC = /* @__PURE__ */ new WeakMap(), DC = null, OC = null, kC = null;
+function AC() {
+ DC &&= (clearInterval(DC), null), OC &&= (clearInterval(OC), null), kC &&= (clearTimeout(kC), null);
}
-async function vre(e, t, n, r = {}) {
- let i = JS();
+async function yre(e, t, n, r = {}) {
+ let i = qS();
if (i && !i.isDisposed()) return i;
- let a = HS(), o = r.resume ?? null;
+ let a = VS(), o = r.resume ?? null;
o?.autoplay && (n = !0);
- let s = () => r.source ? Promise.resolve(r.source) : mre(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : hre(e), c;
try {
- c = await EC();
+ c = await TC();
} catch {
return t.controls = !0, s().then((e) => {
t.src = e.src, n && t.play().catch(() => {});
@@ -24029,7 +24029,7 @@ async function vre(e, t, n, r = {}) {
} }
}
});
- YS(l), l.peachItem = e, Qne(l), l.on("loadedmetadata", () => {
+ JS(l), l.peachItem = e, $ne(l), l.on("loadedmetadata", () => {
let e = l.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && l.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
@@ -24037,7 +24037,7 @@ async function vre(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = ere($S(f, e.duration)), m = 0, h = !1, g = () => JS() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = tre(QS(f, e.duration)), m = 0, h = !1, g = () => qS() === l && !l.isDisposed(), _ = () => {
if (!u || h || !g()) return;
let e = Number(l.duration());
(!Number.isFinite(e) || Math.abs(e - u) > Math.max(2, u * .001)) && (h = !0, l.duration(u), queueMicrotask(() => {
@@ -24048,15 +24048,15 @@ async function vre(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- DC.set(l, y), y.updateStats = () => {
+ EC.set(l, y), y.updateStats = () => {
let n = y.chrome?.statsPanel;
if (!n || n.hidden || !g()) return;
- let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = vC(), h = s ? iC(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+ let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = _C(), h = s ? rC(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
p.sample(t);
- let x = oC(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
+ let x = aC(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
m = S;
- let w = ZS(t);
- tC(d.speed, x), tC(d.activity, C), tC(d.buffer, w);
+ let w = XS(t);
+ eC(d.speed, x), eC(d.activity, C), eC(d.buffer, w);
let T = String(e.name || ""), E = (T.includes(".") ? T.split(".").pop() || "" : s ? "" : String(l.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", D = x ? `${(x / 1e6).toFixed(1)} Mbps` : "—", O = s || p.bitrate > 0, k = s ? [
"网络活动",
`${_ ? ye(_) : "—"} · ${h.length} 请求`,
@@ -24074,17 +24074,17 @@ async function vre(e, t, n, r = {}) {
[
"连接速度",
D,
- rC(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ nC(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- rC(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ nC(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- rC(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ nC(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${_e(t.currentTime)} / ${_e(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -24100,15 +24100,15 @@ async function vre(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = oC(l, e.id, vC(), r ? null : p), a = r ? sC(i) : nre(i, ZS(t));
+ let i = aC(l, e.id, _C(), r ? null : p), a = r ? oC(i) : rre(i, XS(t));
n.innerHTML = `${L("gauge")}<span class="sr-only">加载速度</span><span>${ge(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- !e || !e.isConnected || (e.hidden = !1, S(), kC && clearInterval(kC), kC = setInterval(S, 500));
+ !e || !e.isConnected || (e.hidden = !1, S(), OC && clearInterval(OC), OC = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (AC && clearTimeout(AC), AC = setTimeout(() => {
- e.hidden = !0, kC &&= (clearInterval(kC), null);
+ e && (kC && clearTimeout(kC), kC = setTimeout(() => {
+ e.hidden = !0, OC &&= (clearInterval(OC), null);
}, 1400));
};
return l.on([
@@ -24120,7 +24120,7 @@ async function vre(e, t, n, r = {}) {
S(), w();
}), l.on("error", () => {
if (b && !x && !l.isDisposed()) {
- x = !0, b = !1, l.src(pre(e)), n && l.play()?.catch(() => {});
+ x = !0, b = !1, l.src(mre(e)), n && l.play()?.catch(() => {});
return;
}
r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
@@ -24131,27 +24131,27 @@ async function vre(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = are(l, t, e.height, r.qualities ?? null);
+ let n = ore(l, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!g()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
- r > 0 && !f && (f = r, p.bitrate = $S(r, e.duration));
- }).catch(() => {}), cre(l, e, { thumbnail: !r.source }), lre(l, e), ure(l), r.source || dre(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = QS(r, e.duration));
+ }).catch(() => {}), lre(l, e, { thumbnail: !r.source }), ure(l, e), dre(l), r.source || fre(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), o && o.time > 0 && l.one("loadedmetadata", () => {
l.isDisposed() || l.currentTime(o.time);
}), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var yre = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function MC(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", yre), e.querySelector(":scope > #playerStatsBtn")) return;
+var bre = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function jC(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", bre), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = tre(), e.insertBefore(n.content, t);
+ n.innerHTML = nre(), e.insertBefore(n.content, t);
}
-function NC(e, t) {
- let n = DC.get(e);
+function MC(e, t) {
+ let n = EC.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`:scope > #${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -24163,29 +24163,29 @@ function NC(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), OC &&= (clearInterval(OC), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), DC &&= (clearInterval(DC), null));
};
a.onclick = () => {
if (!o.hidden) {
e();
return;
}
- document.dispatchEvent(new CustomEvent(nC, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), OC && clearInterval(OC), OC = setInterval(n.updateStats, 1e3);
+ document.dispatchEvent(new CustomEvent(tC, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), DC && clearInterval(DC), DC = setInterval(n.updateStats, 1e3);
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(nC, t), s = () => document.removeEventListener(nC, t);
+ document.addEventListener(tC, t), s = () => document.removeEventListener(tC, t);
}
- let c = e.el().querySelector("video"), l = c ? ire(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, jC()));
+ let c = e.el().querySelector("video"), l = c ? are(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, AC()));
};
return e.one("dispose", d), d;
}
-function PC(e, t) {
- if (t.kind === "immerse") return _re(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = HS(), c = t.chrome === !1 ? null : e.parentElement;
- c && MC(c, e);
+function NC(e, t) {
+ if (t.kind === "immerse") return vre(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = VS(), c = t.chrome === !1 ? null : e.parentElement;
+ c && jC(c, e);
let l = { resume: t.resume ?? null };
if (n === "follow") l = {
...l,
@@ -24205,16 +24205,16 @@ function PC(e, t) {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), xC(r, e, {
+ }, { once: !0 }), bC(r, e, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
});
}
let u = null, d = !1, f = () => {}, p = () => {
- f(), !(!u || a?.(u)) && (JS() === u && (YS(null), jC()), fC(u));
+ f(), !(!u || a?.(u)) && (qS() === u && (JS(null), AC()), dC(u));
};
- return vre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {
+ return yre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {
if (u = t, d) {
p();
return;
@@ -24223,45 +24223,45 @@ function PC(e, t) {
o?.(null);
return;
}
- c && (f = NC(t, c)), n === "follow" && hre(r, e), o?.(t);
+ c && (f = MC(t, c)), n === "follow" && gre(r, e), o?.(t);
}), () => {
d = !0, p();
};
}
//#endregion
//#region src/player/playback.ts
-function FC(e) {
+function PC(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function bre(e, t) {
+function xre(e, t) {
let n = e.duration, r = (e.currentTime || 0) + t;
e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);
}
//#endregion
//#region src/jav-artwork.ts
-function IC(e) {
+function FC(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function xre(e, t) {
- return e.is_jav && e.code && e.has_cover && (IC(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function Sre(e, t) {
+ return e.is_jav && e.code && e.has_cover && (FC(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-var LC = .704;
-function RC(e, t) {
+var IC = .704;
+function LC(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var Sre = (e, t) => [
+var Cre = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], Cre = (e, t) => [
+], wre = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function wre(e, t, n, r, i) {
+async function Tre(e, t, n, r, i) {
let a = new URLSearchParams(e);
a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");
let o = await W(`/api/items?${a}`, i), s = {
@@ -24271,22 +24271,22 @@ async function wre(e, t, n, r, i) {
};
return !t && !s.items.length && !r && (s.libraryEmpty = (await W("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var Tre = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Ere = (e, t) => {
+var Ere = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Dre = (e, t) => {
let n = t.reduce((e, t) => e + t.items.length, 0);
return (e.has_more == null ? n < (e.total || 0) : e.has_more) ? n : void 0;
};
-function zC(e) {
- let t = RC(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function RC(e) {
+ let t = LC(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: Sre(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => wre(t, e, n, r, i),
+ queryKey: Cre(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => Tre(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: Tre(n)
+ getNextPageParam: Ere(n)
};
}
-function Dre(e) {
+function Ore(e) {
return {
- queryKey: Cre(e.entityKey || "", e.revision || 0),
+ queryKey: wre(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -24301,12 +24301,12 @@ function Dre(e) {
};
},
initialPageParam: 0,
- getNextPageParam: Ere
+ getNextPageParam: Dre
};
}
-async function Ore(e, t) {
+async function kre(e, t) {
if (e.mode !== "catalog") return;
- let n = zC(e);
+ let n = RC(e);
await p.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -24315,7 +24315,7 @@ async function Ore(e, t) {
})
});
}
-function kre(e, t, n) {
+function Are(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -24330,24 +24330,24 @@ function kre(e, t, n) {
return !0;
}) : [...e];
}
-var BC = (e, t) => !!e && !!xre(e, t);
-function Are(e, t) {
- let n = (e) => BC(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
- return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => BC(e, t)) || e[e.length - 1];
+var zC = (e, t) => !!e && !!Sre(e, t);
+function jre(e, t) {
+ let n = (e) => zC(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => zC(e, t)) || e[e.length - 1];
}
-function jre(e, { collapse: t, mix: n, javImage: r }) {
+function Mre(e, { collapse: t, mix: n, javImage: r }) {
let i = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
}, a = /* @__PURE__ */ new Set(), o = [], s = [];
for (let c of e) {
s.push(o.length);
- let e = kre(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = Are(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
kind: "card",
item: e
}));
if (n && e.length >= 8) {
- let t = Are(e, r);
+ let t = jre(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -24360,16 +24360,16 @@ function jre(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Mre(e, t, n) {
+function Nre(e, t, n) {
let r = Math.max(1, n), i = [];
for (let n = Math.max(r, Math.ceil(Math.max(0, t) / r) * r); n < e; n += r) i.push(n);
return i;
}
-function Nre(e, t) {
+function Pre(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return n.set("orient", "竖屏"), n.set("limit", "18"), n.set("offset", String(t)), n.toString();
}
-function Pre(e, t) {
+function Fre(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -24382,10 +24382,10 @@ function Pre(e, t) {
strip: null
}), r;
}
-function VC(e, t) {
- HC((t) => t.id === e, t);
+function BC(e, t) {
+ VC((t) => t.id === e, t);
}
-function HC(e, t) {
+function VC(e, t) {
p.setQueriesData({
queryKey: ["catalog-grid"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -24402,31 +24402,31 @@ function HC(e, t) {
}
//#endregion
//#region src/react/item-detail/item-detail.ts
-var UC = (e) => ["item", e], WC = (e) => [
+var HC = (e) => ["item", e], UC = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Fre = (e, t) => [
+], Ire = (e, t) => [
"item-related",
e,
t
-], Ire = (e) => `/api/item?id=${e}`, Lre = (e, t) => `/api/related?id=${e}&limit=${t}`, GC = "/api/playlist", KC = "/api/feedback", qC = "/api/item-tag", JC = "/api/watch-later", YC = "/api/quality-goal", XC = "/api/preference", ZC = class extends Error {};
-async function QC(e, t) {
- let n = await W(Ire(e), t);
- if (n.error) throw new ZC(n.error);
+], Lre = (e) => `/api/item?id=${e}`, Rre = (e, t) => `/api/related?id=${e}&limit=${t}`, WC = "/api/playlist", GC = "/api/feedback", KC = "/api/item-tag", qC = "/api/watch-later", JC = "/api/quality-goal", YC = "/api/preference", XC = class extends Error {};
+async function ZC(e, t) {
+ let n = await W(Lre(e), t);
+ if (n.error) throw new XC(n.error);
return n;
}
-async function $C(e, t, n) {
+async function QC(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([QC(r, n), t.mixRelated(r)]);
- return p.setQueryData(UC(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([ZC(r, n), t.mixRelated(r)]);
+ return p.setQueryData(HC(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${re(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return ew(await W(`${GC}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return $C(await W(`${WC}?id=${e.playlistId}`, n));
let r = await W(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -24436,19 +24436,19 @@ async function $C(e, t, n) {
items: r.items
};
}
-var ew = (e) => ({
+var $C = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), tw = (e) => e.disposal === "vanished";
-function nw(e, t) {
+}), ew = (e) => e.disposal === "vanished";
+function tw(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !tw(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !ew(e)) : e.items;
return n.length ? t != null && n.some((e) => e.id === t) ? t : e.kind === "playlist" && n.some((t) => t.id === e.currentAssetId) ? e.currentAssetId : n[0].id : null;
}
-function Rre(e, t) {
+function zre(e, t) {
if (t?.kind !== "parts") return e;
let n = t.items.find((t) => t.id === e.id)?.part_label || "";
return e.part_label === n ? e : {
@@ -24456,15 +24456,15 @@ function Rre(e, t) {
part_label: n
};
}
-async function zre(e, t) {
+async function Bre(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = WC(n);
+ let o = UC(n);
try {
let r = n.fresh ? void 0 : p.getQueryData(o);
a = !r && n.kind === "mix", i = r || await p.fetchQuery({
queryKey: o,
- queryFn: () => $C(n, e.helpers, t),
+ queryFn: () => QC(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -24476,20 +24476,20 @@ async function zre(e, t) {
return;
}
}
- let o = i ? nw(i, e.id) : e.id;
+ let o = i ? tw(i, e.id) : e.id;
if (o == null) {
r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });
return;
}
- let s, c = a && o === i?.seedId ? p.getQueryData(UC(o)) : void 0;
+ let s, c = a && o === i?.seedId ? p.getQueryData(HC(o)) : void 0;
try {
s = c || await p.fetchQuery({
- queryKey: UC(o),
- queryFn: () => QC(o, t),
+ queryKey: HC(o),
+ queryFn: () => ZC(o, t),
staleTime: 0
});
} catch (e) {
- if (e instanceof ZC) {
+ if (e instanceof XC) {
r.redirect({ kind: "gone" });
return;
}
@@ -24500,7 +24500,7 @@ async function zre(e, t) {
id: Number(s.follow_item_id)
});
}
-function Bre(e) {
+function Vre(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = be(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -24522,42 +24522,42 @@ function Bre(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-var rw = (e) => Math.min(Math.max(e || 0, 0), 100), iw = (e) => Math.round(rw(e) / 20), Vre = (e) => {
- let t = iw(e);
+var nw = (e) => Math.min(Math.max(e || 0, 0), 100), rw = (e) => Math.round(nw(e) / 20), Hre = (e) => {
+ let t = rw(e);
return t ? `${t} 星` : "未评分";
-}, Hre = (e, t) => {
+}, Ure = (e, t) => {
let n = t * 20;
return n === (e || 0) ? 0 : n;
};
-function Ure(e, t) {
+function Wre(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = be(t.tagLabel(e.k)), i = n.get(r);
(!i || be(e.k) === r && be(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var aw = (e, t) => (e.tags || []).some((e) => be(e.k) === be(t)), ow = (e, t) => ({
+var iw = (e, t) => (e.tags || []).some((e) => be(e.k) === be(t)), aw = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => be(e.k) !== be(t))
-}), sw = (e, t) => aw(e, t.k) ? e : {
+}), ow = (e, t) => iw(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, cw = "peach.recentTags";
-function lw() {
+}, sw = "peach.recentTags";
+function cw() {
try {
- let e = JSON.parse(localStorage.getItem(cw) || "[]");
+ let e = JSON.parse(localStorage.getItem(sw) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function Wre(e) {
+function Gre(e) {
try {
- let t = lw().filter((t) => be(t) !== be(e));
- localStorage.setItem(cw, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = cw().filter((t) => be(t) !== be(e));
+ localStorage.setItem(sw, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function Gre(e, t, n) {
+function Kre(e, t, n) {
let r = be(e), i = new Map(t.map((e) => [be(e.k), e])), a = t.filter((e) => !r || be(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(be(e)) || {
k: e,
n: 0
@@ -24568,73 +24568,73 @@ function Gre(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var Kre = {
+var qre = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, qre = {
+}, Jre = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function Jre(e) {
+function Yre(e) {
let t = e.items.length, n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: qre[e.kind],
+ title: Jre[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var uw = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Yre = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${ge(uw(e.part_label))}</small>` : "";
-function Xre(e, t, n, r) {
+var lw = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Xre = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${ge(lw(e.part_label))}</small>` : "";
+function Zre(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var Zre = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function Qre(e, t) {
+var Qre = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function $re(e, t) {
return t ? "offline" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function $re(e) {
+function eie(e) {
let t = Number(e.duration) > 0 ? Number(e.duration) : 0;
return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;
}
-function dw(e, t) {
+function uw(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
//#endregion
//#region src/react/immerse/immerse.ts
-var eie = (e, t, n) => [
+var tie = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function tie(e) {
+function nie(e) {
let t = new URLSearchParams();
for (let [n, r] of Object.entries(e)) r && t.set(n, String(r));
return t.delete("orient"), t.set("sort", "rand"), t.set("limit", "60"), t.set("offset", "0"), t.set("thumb", ""), t.toString();
}
-var nie = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
-function rie(e, t = Math.random) {
+var rie = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
+function iie(e, t = Math.random) {
for (let n = e.length - 1; n > 0; n--) {
let r = Math.floor(t() * (n + 1));
[e[n], e[r]] = [e[r], e[n]];
}
return e;
}
-async function iie(e, t) {
- return rie(((await W(`/api/items?${e}`)).items || []).filter((e) => nie(e, t)));
+async function aie(e, t) {
+ return iie(((await W(`/api/items?${e}`)).items || []).filter((e) => rie(e, t)));
}
-var fw = (e) => p.ensureQueryData({
- queryKey: UC(e),
- queryFn: ({ signal: t }) => QC(e, t)
+var dw = (e) => p.ensureQueryData({
+ queryKey: HC(e),
+ queryFn: ({ signal: t }) => ZC(e, t)
});
-function aie(e, t) {
+function oie(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function oie(e) {
+function sie(e) {
let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";
return {
who: n,
@@ -24643,314 +24643,314 @@ function oie(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function sie(e, t, n) {
+function cie(e, t, n) {
if (!e || !t || !n || !Number.isFinite(n)) return null;
let r = e / t;
return (r > n ? r / n : n / r) > 1.05 ? "contain" : "cover";
}
-function cie(e, t) {
+function lie(e, t) {
return e.videoWidth && e.videoHeight ? e.videoWidth >= e.videoHeight : !!(t.width && t.height && t.width > 0 && t.height > 0 && t.width >= t.height);
}
-var lie = 15e3, pw = {
+var uie = 15e3, fw = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, mw = null, hw = null, gw = null, _w = null, vw = pw, yw = 0, bw = 0, xw = 0, Sw = "", Cw = [], ww = 0, Tw = !1, Ew = !1, Dw = null, Ow = /* @__PURE__ */ new Set(), kw = "", Aw = null, jw = 0, Mw = null, Nw = !1;
-function Pw() {
- if (!mw) throw Error("沉浸岛还没有接上宿主(configureImmerse)");
- return mw;
+}, pw = null, mw = null, hw = null, gw = null, _w = fw, vw = 0, yw = 0, bw = 0, xw = "", Sw = [], Cw = 0, ww = !1, Tw = !1, Ew = null, Dw = /* @__PURE__ */ new Set(), Ow = "", kw = null, Aw = 0, jw = null, Mw = !1;
+function Nw() {
+ if (!pw) throw Error("沉浸岛还没有接上宿主(configureImmerse)");
+ return pw;
}
-function uie() {
- return (!hw || !gw?.isConnected) && (hw?.unmount(), gw = document.createElement("div"), gw.dataset.immerseHost = "", document.body.append(gw), hw = (0, ip.createRoot)(gw)), hw;
+function die() {
+ return (!mw || !hw?.isConnected) && (mw?.unmount(), hw = document.createElement("div"), hw.dataset.immerseHost = "", document.body.append(hw), mw = (0, ip.createRoot)(hw)), mw;
}
-function Fw() {
- let e = uie();
- (0, rp.flushSync)(() => e.render(/* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(Oie, { view: vw }) })));
+function Pw() {
+ let e = die();
+ (0, rp.flushSync)(() => e.render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(kie, { view: _w }) })));
}
-function Iw() {
- let e = Aw ? aC(Aw.id) : 0;
- return e ? `${kw} · ${sC(e)}` : kw;
+function Fw() {
+ let e = kw ? iC(kw.id) : 0;
+ return e ? `${Ow} · ${oC(e)}` : Ow;
}
-function Lw(e, t = null) {
- if (clearInterval(jw), jw = 0, e === null) {
- vw = {
- ...vw,
+function Iw(e, t = null) {
+ if (clearInterval(Aw), Aw = 0, e === null) {
+ _w = {
+ ..._w,
loading: null
- }, Fw();
+ }, Pw();
return;
}
- kw = e, Aw = t, vw = {
- ...vw,
- loading: Iw()
- }, Fw(), jw = window.setInterval(() => {
- Aw = Cw[ww] ?? null, vw = {
- ...vw,
- loading: Iw()
- }, Fw();
+ Ow = e, kw = t, _w = {
+ ..._w,
+ loading: Fw()
+ }, Pw(), Aw = window.setInterval(() => {
+ kw = Sw[Cw] ?? null, _w = {
+ ..._w,
+ loading: Fw()
+ }, Pw();
}, 500);
}
-function die(e) {
+function fie(e) {
let t = document.createElement("div");
t.dataset.immerseSlide = "", e && (t.style.transform = `translateY(${e}%)`);
let n = document.createElement("video");
- n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), _w.track.append(t);
- let r = pC(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), gw.track.append(t);
+ let r = fC(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => gC(r),
+ release: () => hC(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return Ow.add(a), a;
+ return Dw.add(a), a;
}
-function fie(e, t) {
+function pie(e, t) {
return new Promise((n) => {
- e.release = PC(e.video, {
+ e.release = NC(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- vw.open && Ww(1);
+ _w.open && Uw(1);
}
}), e.gone.then(n);
});
}
-function Rw(e) {
- !e || e.disposed || (e.disposed = !0, Ow.delete(e), e.leave(), e.release(), e.el.remove(), Dw === e && (Dw = null));
+function Lw(e) {
+ !e || e.disposed || (e.disposed = !0, Dw.delete(e), e.leave(), e.release(), e.el.remove(), Ew === e && (Ew = null));
}
-var zw = [
+var Rw = [
"loadeddata",
"canplay",
"error"
];
-function pie(e) {
+function mie(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), zw.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), Rw.forEach((e) => t.removeEventListener(e, i)), n());
};
- zw.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, lie);
+ Rw.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, uie);
e.gone.then(i);
});
}
-function Bw(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = sie(e.videoWidth, e.videoHeight, n);
+function zw(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = cie(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var Vw = () => _w?.track.querySelectorAll("video").forEach(Bw);
-function mie(e) {
- delete e.dataset.fit, e.readyState >= 1 ? Bw(e) : e.addEventListener("loadedmetadata", () => Bw(e), { once: !0 });
-}
+var Bw = () => gw?.track.querySelectorAll("video").forEach(zw);
function hie(e) {
- vw = {
- ...vw,
+ delete e.dataset.fit, e.readyState >= 1 ? zw(e) : e.addEventListener("loadedmetadata", () => zw(e), { once: !0 });
+}
+function gie(e) {
+ _w = {
+ ..._w,
wide: e
- }, Fw(), Vw();
+ }, Pw(), Bw();
}
-var Hw = () => {
- let e = Sw;
+var Vw = () => {
+ let e = xw;
return p.fetchQuery({
- queryKey: eie(e, bw, xw),
- queryFn: () => iie(e, Pw().sourceOffline),
+ queryKey: tie(e, yw, bw),
+ queryFn: () => aie(e, Nw().sourceOffline),
staleTime: Infinity
});
};
-function gie(e, t) {
+function _ie(e, t) {
let n = () => we(e.duration) || we(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && _w && (_w.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), Mw = {
+ t && gw && (gw.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), jw = {
video: e,
duration: n
};
}
-async function Uw(e = 0) {
- let t = Cw[ww];
- if (!t || Tw) return;
- let n = yw;
- Pw().route(t.id), Tw = !0, Lw(e ? "切换中…" : "加载中…", t);
+async function Hw(e = 0) {
+ let t = Sw[Cw];
+ if (!t || ww) return;
+ let n = vw;
+ Nw().route(t.id), ww = !0, Iw(e ? "切换中…" : "加载中…", t);
let r = null;
try {
- if (await fw(t.id).catch((e) => {
- if (!(e instanceof ZC)) throw e;
- }), n !== yw) return;
- let i = Dw, a = !!(e && i);
- a || Rw(i);
- let o = die(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, mie(o.video), await fie(o, t), await pie(o), o.disposed || (hie(cie(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await dw(t.id).catch((e) => {
+ if (!(e instanceof XC)) throw e;
+ }), n !== vw) return;
+ let i = Ew, a = !!(e && i);
+ a || Lw(i);
+ let o = fie(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, hie(o.video), await pie(o, t), await mie(o), o.disposed || (gie(lie(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";
- })), await new Promise((e) => setTimeout(e, 210)), Rw(i), o.el.style.transform = ""), o.disposed)) return;
- Dw = o, r = null, o.video.play()?.catch(() => {}), vw = {
- ...vw,
+ })), await new Promise((e) => setTimeout(e, 210)), Lw(i), o.el.style.transform = ""), o.disposed)) return;
+ Ew = o, r = null, o.video.play()?.catch(() => {}), _w = {
+ ..._w,
idle: !1,
shown: {
item: t,
- index: ww,
- length: Cw.length
+ index: Cw,
+ length: Sw.length
}
- }, gie(o.video, t), G("/api/play", { id: t.id }).catch(() => {}), Lw(null);
+ }, _ie(o.video, t), G("/api/play", { id: t.id }).catch(() => {}), Iw(null);
} catch {
- Rw(r), n === yw && Lw(null);
+ Lw(r), n === vw && Iw(null);
} finally {
- n === yw && (Tw = !1);
+ n === vw && (ww = !1);
}
}
-async function Ww(e) {
- if (Tw || !vw.open) return;
- let t = yw;
- if (ww += e, Lw("切换中…", Cw[ww] ?? null), ww >= Cw.length - 3 && !Ew) {
- Ew = !0;
+async function Uw(e) {
+ if (ww || !_w.open) return;
+ let t = vw;
+ if (Cw += e, Iw("切换中…", Sw[Cw] ?? null), Cw >= Sw.length - 3 && !Tw) {
+ Tw = !0;
try {
- xw += 1;
- let e = await Hw();
- t === yw && (Cw = aie(Cw, e));
+ bw += 1;
+ let e = await Vw();
+ t === vw && (Sw = oie(Sw, e));
} catch {} finally {
- Ew = !1;
+ Tw = !1;
}
}
- t === yw && (ww >= Cw.length && (ww = 0), ww < 0 && (ww = Cw.length - 1), await Uw(e));
+ t === vw && (Cw >= Sw.length && (Cw = 0), Cw < 0 && (Cw = Sw.length - 1), await Hw(e));
}
-async function _ie(e) {
- let t = ++yw;
- Gw(), bw += 1, xw = 0, Sw = tie(Pw().filters()), p.removeQueries({ queryKey: ["immerse-list"] }), vw = {
- ...vw,
+async function vie(e) {
+ let t = ++vw;
+ Ww(), yw += 1, bw = 0, xw = nie(Nw().filters()), p.removeQueries({ queryKey: ["immerse-list"] }), _w = {
+ ..._w,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), Lw("加载内容…");
+ }, document.body.setAttribute("data-immerse-open", ""), Iw("加载内容…");
try {
- let n = await Hw();
+ let n = await Vw();
if (e && !n.some((t) => t.id === e)) {
- let t = await fw(e).catch((e) => {
- if (e instanceof ZC) return null;
+ let t = await dw(e).catch((e) => {
+ if (e instanceof XC) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== yw) return;
- if (Cw = n, !Cw.length) {
- Kw(), Pw().warn("当前筛选下没有可直接播放的内容");
+ if (t !== vw) return;
+ if (Sw = n, !Sw.length) {
+ Gw(), Nw().warn("当前筛选下没有可直接播放的内容");
return;
}
- ww = Math.max(0, Cw.findIndex((t) => t.id === e)), await Uw();
+ Cw = Math.max(0, Sw.findIndex((t) => t.id === e)), await Hw();
} catch {
- if (t !== yw) return;
- Lw(null), Kw();
+ if (t !== vw) return;
+ Iw(null), Gw();
}
}
-function Gw() {
- clearInterval(jw), jw = 0, Qw(), Xw = null, Mw = null, Nw = !1, [...Ow].forEach(Rw), Tw = !1;
+function Ww() {
+ clearInterval(Aw), Aw = 0, Zw(), Yw = null, jw = null, Mw = !1, [...Dw].forEach(Lw), ww = !1;
}
-function Kw() {
- vw.open && (yw++, Gw(), vw = pw, document.body.removeAttribute("data-immerse-open"), Fw(), Pw().closed());
+function Gw() {
+ _w.open && (vw++, Ww(), _w = fw, document.body.removeAttribute("data-immerse-open"), Pw(), Nw().closed());
}
-var qw = 0, Jw = null, Yw = 0, Xw = null, Zw = 0;
-function Qw() {
- clearTimeout(qw), qw = 0, Jw = null;
+var Kw = 0, qw = null, Jw = 0, Yw = null, Xw = 0;
+function Zw() {
+ clearTimeout(Kw), Kw = 0, qw = null;
}
-function vie(e) {
- let t = Dw?.video;
+function yie(e) {
+ let t = Ew?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- if (Jw && Jw.side === n && r - Jw.at <= 280) {
- Qw(), bre(t, Pw().seekSeconds() * n);
+ if (qw && qw.side === n && r - qw.at <= 280) {
+ Zw(), xre(t, Nw().seekSeconds() * n);
return;
}
- qw && (clearTimeout(qw), qw = 0, FC(t)), Jw = {
+ Kw && (clearTimeout(Kw), Kw = 0, PC(t)), qw = {
side: n,
at: r
- }, qw = window.setTimeout(() => {
- qw = 0, Jw = null, vw.open && FC(Dw?.video);
+ }, Kw = window.setTimeout(() => {
+ Kw = 0, qw = null, _w.open && PC(Ew?.video);
}, 280);
}
-function yie() {
- Date.now() < Yw || FC(Dw?.video);
+function bie() {
+ Date.now() < Jw || PC(Ew?.video);
}
-var $w = (e) => _w?.bar.toggleAttribute("data-scrubbing", e);
-function eT(e) {
- _w && (_w.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var Qw = (e) => gw?.bar.toggleAttribute("data-scrubbing", e);
+function $w(e) {
+ gw && (gw.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function tT(e) {
+function eT(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- Xw = null;
+ Yw = null;
return;
}
- let n = Dw?.video;
- Xw = {
+ let n = Ew?.video;
+ Yw = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function nT(e) {
- if (!Xw || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - Xw.x, n = e.touches[0].clientY - Xw.y;
- if (!Xw.axis) {
+function tT(e) {
+ if (!Yw || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - Yw.x, n = e.touches[0].clientY - Yw.y;
+ if (!Yw.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- Xw.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", Xw.axis === "x" && $w(!0);
+ Yw.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", Yw.axis === "x" && Qw(!0);
}
- if (Xw.axis !== "x") return;
- let r = Dw?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), Xw.to = Math.min(i, Math.max(0, Xw.from + t / window.innerWidth * i)), eT(Xw.to / i));
+ if (Yw.axis !== "x") return;
+ let r = Ew?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), Yw.to = Math.min(i, Math.max(0, Yw.from + t / window.innerWidth * i)), $w(Yw.to / i));
}
-function rT(e) {
- if (!Xw) return;
- let t = Xw;
- if (Xw = null, Yw = Date.now() + 700, $w(!1), t.axis === "x") {
- let e = Dw?.video;
+function nT(e) {
+ if (!Yw) return;
+ let t = Yw;
+ if (Yw = null, Jw = Date.now() + 700, Qw(!1), t.axis === "x") {
+ let e = Ew?.video;
e && t.to != null && (e.currentTime = t.to);
return;
}
let n = e.changedTouches[0], r = n.clientX - t.x, i = t.y - n.clientY;
if (Math.abs(i) > 60) {
- Qw(), Ww(i > 0 ? 1 : -1);
+ Zw(), Uw(i > 0 ? 1 : -1);
return;
}
- Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), vie(n.clientX));
+ Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), yie(n.clientX));
}
-function iT() {
- Xw = null, $w(!1);
+function rT() {
+ Yw = null, Qw(!1);
}
-function aT(e) {
+function iT(e) {
let t = Date.now();
- t - Zw < 260 || (Zw = t, Ww(e.deltaY > 0 ? 1 : -1));
+ t - Xw < 260 || (Xw = t, Uw(e.deltaY > 0 ? 1 : -1));
}
-function oT(e) {
- let t = _w.bar.getBoundingClientRect();
+function aT(e) {
+ let t = gw.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function bie(e) {
- Mw?.duration() && (Nw = !0, $w(!0), e.currentTarget.setPointerCapture(e.pointerId), eT(oT(e)), e.preventDefault());
-}
function xie(e) {
- Nw && eT(oT(e));
+ jw?.duration() && (Mw = !0, Qw(!0), e.currentTarget.setPointerCapture(e.pointerId), $w(aT(e)), e.preventDefault());
}
function Sie(e) {
- if (!Nw) return;
- Nw = !1, $w(!1);
- let t = Mw?.duration();
- Mw && t && (Mw.video.currentTime = t * oT(e));
+ Mw && $w(aT(e));
}
-function Cie() {
- Nw = !1, $w(!1);
+function Cie(e) {
+ if (!Mw) return;
+ Mw = !1, Qw(!1);
+ let t = jw?.duration();
+ jw && t && (jw.video.currentTime = t * aT(e));
}
-async function sT(e, t) {
- let n = await G(KC, {
+function wie() {
+ Mw = !1, Qw(!1);
+}
+async function oT(e, t) {
+ let n = await G(GC, {
id: e,
kind: t
- }), r = p.getQueryData(UC(e));
- if (!r) return VC(e, {
+ }), r = p.getQueryData(HC(e));
+ if (!r) return BC(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -24959,7 +24959,7 @@ async function sT(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return p.setQueryData(UC(e), i), VC(e, {
+ return p.setQueryData(HC(e), i), BC(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -24967,7 +24967,7 @@ async function sT(e, t) {
o_count: i.o_count
}), n;
}
-var wie = [
+var Tie = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -24984,31 +24984,31 @@ var wie = [
label: "记一次高潮"
}
];
-function cT(e) {
- return TS({
- queryKey: UC(e ?? 0),
- queryFn: ({ signal: t }) => QC(e, t),
+function sT(e) {
+ return wS({
+ queryKey: HC(e ?? 0),
+ queryFn: ({ signal: t }) => ZC(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function Tie({ kind: e, glyph: t, label: n, id: r }) {
- let i = cT(r), a = OS({
+function Eie({ kind: e, glyph: t, label: n, id: r }) {
+ let i = sT(r), a = DS({
mutationFn: async (t) => {
- let n = p.getQueryData(UC(t))?.feedback || null;
+ let n = p.getQueryData(HC(t))?.feedback || null;
return {
- result: await sT(t, e),
+ result: await oT(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- Pw().toast(dw(e, t), { undo: async () => {
- e === "o" ? await sT(r, "o-undo") : (t.feedback && await sT(r, t.feedback), n && await sT(r, n));
+ Nw().toast(uw(e, t), { undo: async () => {
+ e === "o" ? await oT(r, "o-undo") : (t.feedback && await oT(r, t.feedback), n && await oT(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- Ww(1);
+ Uw(1);
}, 260);
},
- onError: (e) => Pw().failure("更新反馈", e)
+ onError: (e) => Nw().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-immerse-action": "",
@@ -25039,11 +25039,11 @@ function Tie({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function Eie({ shown: e }) {
- let t = e?.item ?? null, n = cT(t?.id ?? null), r = n ? oie(n) : null, i = Pw(), a = (e) => {
- e.preventDefault(), n && (Kw(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function Die({ shown: e }) {
+ let t = e?.item ?? null, n = sT(t?.id ?? null), r = n ? sie(n) : null, i = Nw(), a = (e) => {
+ e.preventDefault(), n && (Gw(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (Kw(), i.openItem(t.id));
+ t && (Gw(), i.openItem(t.id));
}, s = r ? k(r.name, r.ref, de(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-immerse-ui": "",
@@ -25072,18 +25072,18 @@ function Eie({ shown: e }) {
})]
});
}
-var Die = { __html: Qe("媒体加载中") };
-function Oie({ view: e }) {
+var Oie = { __html: Qe("媒体加载中") };
+function kie({ view: e }) {
let t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = (0, R.useRef)(null), i = (0, R.useRef)(null);
(0, R.useLayoutEffect)(() => {
let e = t.current;
- return _w = {
+ return gw = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", tT, { passive: !0 }), e.addEventListener("touchmove", nT, { passive: !1 }), e.addEventListener("touchend", rT, { passive: !1 }), e.addEventListener("touchcancel", iT, { passive: !0 }), e.addEventListener("wheel", aT, { passive: !0 }), () => {
- e.removeEventListener("touchstart", tT), e.removeEventListener("touchmove", nT), e.removeEventListener("touchend", rT), e.removeEventListener("touchcancel", iT), e.removeEventListener("wheel", aT), _w = null;
+ }, e.addEventListener("touchstart", eT, { passive: !0 }), e.addEventListener("touchmove", tT, { passive: !1 }), e.addEventListener("touchend", nT, { passive: !1 }), e.addEventListener("touchcancel", rT, { passive: !0 }), e.addEventListener("wheel", iT, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", eT), e.removeEventListener("touchmove", tT), e.removeEventListener("touchend", nT), e.removeEventListener("touchcancel", rT), e.removeEventListener("wheel", iT), gw = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -25100,10 +25100,10 @@ function Oie({ view: e }) {
children: [/* @__PURE__ */ (0, B.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: yie
+ onClick: bie
}), /* @__PURE__ */ (0, B.jsx)("div", {
"data-immerse-actions": "",
- children: wie.map((e) => /* @__PURE__ */ (0, B.jsx)(Tie, {
+ children: Tie.map((e) => /* @__PURE__ */ (0, B.jsx)(Eie, {
...e,
id: a
}, e.kind))
@@ -25116,7 +25116,7 @@ function Oie({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, B.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: Die
+ dangerouslySetInnerHTML: Oie
}), /* @__PURE__ */ (0, B.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, B.jsx)("button", {
@@ -25124,7 +25124,7 @@ function Oie({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: Kw,
+ onClick: Gw,
children: /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: "#i-x" })
@@ -25133,71 +25133,71 @@ function Oie({ view: e }) {
/* @__PURE__ */ (0, B.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: bie,
- onPointerMove: xie,
- onPointerUp: Sie,
- onPointerCancel: Cie,
+ onPointerDown: xie,
+ onPointerMove: Sie,
+ onPointerUp: Cie,
+ onPointerCancel: wie,
children: /* @__PURE__ */ (0, B.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, B.jsx)(Eie, { shown: e.shown })
+ /* @__PURE__ */ (0, B.jsx)(Die, { shown: e.shown })
]
});
}
-var kie = {
- open: _ie,
- close: Kw,
- isOpen: () => vw.open,
- activeVideo: () => vw.open ? Dw?.video ?? null : null
+var Aie = {
+ open: vie,
+ close: Gw,
+ isOpen: () => _w.open,
+ activeVideo: () => _w.open ? Ew?.video ?? null : null
};
-function Aie(e) {
- if (!vw.open) return;
+function jie(e) {
+ if (!_w.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && Ww(1), e.key === "ArrowUp" && Ww(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && Uw(1), e.key === "ArrowUp" && Uw(-1));
}
-function jie(e) {
- let t = !mw;
- return mw = e, Fw(), t && (document.addEventListener("keydown", Aie), addEventListener("resize", () => {
- vw.open && Vw();
+function Mie(e) {
+ let t = !pw;
+ return pw = e, Pw(), t && (document.addEventListener("keydown", jie), addEventListener("resize", () => {
+ _w.open && Bw();
}), addEventListener("pagehide", () => {
- Ow.forEach((e) => gC(e.session));
- })), kie;
+ Dw.forEach((e) => hC(e.session));
+ })), Aie;
}
//#endregion
//#region src/manage-header.ts
-var Mie = {
+var Nie = {
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
"/trash": "回收站",
"/quality-goals": "高清版",
"/scraping": "来源和凭证"
-}, Nie = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), Pie = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
-function Fie(e) {
+}, Pie = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), Fie = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
+function Iie(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = Mie[e.path] ?? "";
+ let n = Nie[e.path] ?? "";
return {
title: e.path === "/diagnostics" ? "系统诊断" : e.section === "cleanup" && n || t[1],
crumb: n,
- compact: Nie.has(e.path) || e.section === "configuration",
+ compact: Pie.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Pie(e.trash),
+ text: Fie(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var Iie = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+var Lie = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
//#endregion
//#region src/react/settings-panel/icon.tsx
-function lT({ name: e }) {
+function cT({ name: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
}
-function Lie({ name: e }) {
+function Rie({ name: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -25206,29 +25206,29 @@ function Lie({ name: e }) {
}
//#endregion
//#region src/react/manage-header/manage-header-island.tsx
-var uT = null, dT = null, fT = null;
-function Rie() {
- let e = uT, t = fT;
- !e || !dT || !t || (0, rp.flushSync)(() => dT.render(/* @__PURE__ */ (0, B.jsx)(Vie, {
+var lT = null, uT = null, dT = null;
+function zie() {
+ let e = lT, t = dT;
+ !e || !uT || !t || (0, rp.flushSync)(() => uT.render(/* @__PURE__ */ (0, B.jsx)(Hie, {
host: e,
props: t
})));
}
-var zie = { render(e) {
- fT = e, Rie();
+var Bie = { render(e) {
+ dT = e, zie();
} };
-function Bie(e) {
- return uT = e, fT = null, e.root.replaceChildren(), dT = (0, ip.createRoot)(e.root), zie;
+function Vie(e) {
+ return lT = e, dT = null, e.root.replaceChildren(), uT = (0, ip.createRoot)(e.root), Bie;
}
-function Vie({ host: e, props: t }) {
- let n = Fie(t);
+function Hie({ host: e, props: t }) {
+ let n = Iie(t);
return n ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- /* @__PURE__ */ (0, B.jsx)(Hie, {
+ /* @__PURE__ */ (0, B.jsx)(Uie, {
host: e,
section: t.section,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, B.jsx)(Uie, {
+ n.crumb ? /* @__PURE__ */ (0, B.jsx)(Wie, {
host: e,
label: n.crumb
}) : null,
@@ -25237,29 +25237,29 @@ function Vie({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, B.jsx)(Wie, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, B.jsx)(Gie, {
host: e,
lede: n.lede
})
] }) : null;
}
-var pT = null;
-function mT(e, t, n) {
+var fT = null;
+function pT(e, t, n) {
e.style.setProperty("--tab-x", `${t}px`), e.style.setProperty("--tab-width", `${n}px`);
}
-function Hie({ host: e, section: t, menu: n }) {
+function Uie({ host: e, section: t, menu: n }) {
let r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = () => {
let e = r.current, t = i.current;
if (!e || !t) return;
let n = e.querySelector("button[aria-pressed=\"true\"]");
- n && !n.offsetWidth || (mT(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (pT = {
+ n && !n.offsetWidth || (pT(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (fT = {
x: n.offsetLeft,
width: n.offsetWidth
}));
};
return (0, R.useLayoutEffect)(() => {
let e = r.current, t = i.current;
- pT ? mT(t, pT.x, pT.width) : a();
+ fT ? pT(t, fT.x, fT.width) : a();
let n = 0, o = requestAnimationFrame(() => {
t.setAttribute("data-ready", ""), n = requestAnimationFrame(a);
}), s = new ResizeObserver(a);
@@ -25282,7 +25282,7 @@ function Hie({ host: e, section: t, menu: n }) {
"aria-pressed": a,
"aria-current": a ? "page" : void 0,
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, B.jsx)(lT, { name: i }), /* @__PURE__ */ (0, B.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, B.jsx)(cT, { name: i }), /* @__PURE__ */ (0, B.jsx)("span", { children: r })]
}, n);
}), /* @__PURE__ */ (0, B.jsx)("span", {
ref: i,
@@ -25292,7 +25292,7 @@ function Hie({ host: e, section: t, menu: n }) {
})
});
}
-function Uie({ host: e, label: t }) {
+function Wie({ host: e, label: t }) {
return /* @__PURE__ */ (0, B.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "Breadcrumb",
@@ -25302,20 +25302,20 @@ function Uie({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-right" })] }), /* @__PURE__ */ (0, B.jsx)("li", {
+ }), /* @__PURE__ */ (0, B.jsx)(cT, { name: "chevron-right" })] }), /* @__PURE__ */ (0, B.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, B.jsx)("span", { children: t })
})] })
});
}
-function Wie({ host: e, lede: t }) {
+function Gie({ host: e, lede: t }) {
return /* @__PURE__ */ (0, B.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: Iie }
- }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Gie, { text: t.text }), t.total ? /* @__PURE__ */ (0, B.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: Lie }
+ }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Kie, { text: t.text }), t.total ? /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -25325,7 +25325,7 @@ function Wie({ host: e, lede: t }) {
}) : null] })
});
}
-function Gie({ text: e }) {
+function Kie({ text: e }) {
let t = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
$e(t.current, e);
@@ -25336,7 +25336,7 @@ function Gie({ text: e }) {
}
//#endregion
//#region node_modules/@remixicon/react/index.mjs
-var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25344,7 +25344,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Jie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25352,7 +25352,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), hT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), mT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25360,7 +25360,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), gT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), hT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25368,7 +25368,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), _T = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), gT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25376,7 +25376,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Jie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Yie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25384,7 +25384,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), vT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), _T = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25392,7 +25392,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Yie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Xie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25400,7 +25400,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), yT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), vT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25408,7 +25408,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Xie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25416,7 +25416,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), bT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), yT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25424,7 +25424,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), xT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), bT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25432,7 +25432,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), ST = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), xT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25440,7 +25440,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), CT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), ST = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25448,7 +25448,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), wT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), CT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25456,7 +25456,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25464,7 +25464,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), TT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), wT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25472,7 +25472,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), ET = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), TT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25480,7 +25480,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25488,7 +25488,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25496,7 +25496,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M13 12H16L12 16L8 12H11V8H13V12ZM15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918Z" })), eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M13 12H16L12 16L8 12H11V8H13V12ZM15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918Z" })), tae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25504,7 +25504,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), tae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), nae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25512,7 +25512,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), nae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), rae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25520,7 +25520,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), rae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), iae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25528,7 +25528,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), DT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), ET = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25536,7 +25536,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), OT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), DT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25544,7 +25544,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), iae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), aae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25552,7 +25552,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), aae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), oae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25560,7 +25560,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), oae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25568,7 +25568,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25576,7 +25576,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), lae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25584,7 +25584,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), kT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), OT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25592,7 +25592,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), lae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), uae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25600,7 +25600,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), AT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), kT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25608,7 +25608,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), jT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), AT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25616,7 +25616,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), MT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), jT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25624,7 +25624,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), NT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), MT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25632,7 +25632,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), uae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), dae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25640,7 +25640,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), dae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), fae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25648,7 +25648,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), fae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), pae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25656,7 +25656,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), pae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), mae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25664,7 +25664,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), PT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), NT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25672,7 +25672,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), FT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), PT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25680,7 +25680,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), mae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), hae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25688,7 +25688,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), hae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), gae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25696,7 +25696,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M17 6C16.4477 6 16 5.55228 16 5C16 4.44772 16.4477 4 17 4C17.5523 4 18 4.44772 18 5C18 5.55228 17.5523 6 17 6ZM17 8C18.6569 8 20 6.65685 20 5C20 3.34315 18.6569 2 17 2C15.3431 2 14 3.34315 14 5C14 6.65685 15.3431 8 17 8ZM7 3C4.79086 3 3 4.79086 3 7V9H5V7C5 5.89543 5.89543 5 7 5H10V3H7ZM17 21C19.2091 21 21 19.2091 21 17V15H19V17C19 18.1046 18.1046 19 17 19H14V21H17ZM8 13C8 12.4477 7.55228 12 7 12C6.44772 12 6 12.4477 6 13C6 13.5523 6.44772 14 7 14C7.55228 14 8 13.5523 8 13ZM10 13C10 14.6569 8.65685 16 7 16C5.34315 16 4 14.6569 4 13C4 11.3431 5.34315 10 7 10C8.65685 10 10 11.3431 10 13ZM17 11C15.8954 11 15 11.8954 15 13H13C13 10.7909 14.7909 9 17 9C19.2091 9 21 10.7909 21 13H19C19 11.8954 18.1046 11 17 11ZM5 21C5 19.8954 5.89543 19 7 19C8.10457 19 9 19.8954 9 21H11C11 18.7909 9.20914 17 7 17C4.79086 17 3 18.7909 3 21H5Z" })), gae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M17 6C16.4477 6 16 5.55228 16 5C16 4.44772 16.4477 4 17 4C17.5523 4 18 4.44772 18 5C18 5.55228 17.5523 6 17 6ZM17 8C18.6569 8 20 6.65685 20 5C20 3.34315 18.6569 2 17 2C15.3431 2 14 3.34315 14 5C14 6.65685 15.3431 8 17 8ZM7 3C4.79086 3 3 4.79086 3 7V9H5V7C5 5.89543 5.89543 5 7 5H10V3H7ZM17 21C19.2091 21 21 19.2091 21 17V15H19V17C19 18.1046 18.1046 19 17 19H14V21H17ZM8 13C8 12.4477 7.55228 12 7 12C6.44772 12 6 12.4477 6 13C6 13.5523 6.44772 14 7 14C7.55228 14 8 13.5523 8 13ZM10 13C10 14.6569 8.65685 16 7 16C5.34315 16 4 14.6569 4 13C4 11.3431 5.34315 10 7 10C8.65685 10 10 11.3431 10 13ZM17 11C15.8954 11 15 11.8954 15 13H13C13 10.7909 14.7909 9 17 9C19.2091 9 21 10.7909 21 13H19C19 11.8954 18.1046 11 17 11ZM5 21C5 19.8954 5.89543 19 7 19C8.10457 19 9 19.8954 9 21H11C11 18.7909 9.20914 17 7 17C4.79086 17 3 18.7909 3 21H5Z" })), _ae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25704,100 +25704,100 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), _ae = (e, t) => {
+}, R.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), vae = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, vae = (e, t) => ({
+}, yae = (e, t) => ({
classGroupId: e,
validator: t
-}), IT = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), FT = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), LT = "-", RT = [], yae = "arbitrary..", bae = (e) => {
- let t = Sae(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), IT = "-", LT = [], bae = "arbitrary..", xae = (e) => {
+ let t = Cae(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return xae(e);
- let n = e.split(LT);
- return zT(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return Sae(e);
+ let n = e.split(IT);
+ return RT(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? _ae(i, t) : t : i || RT;
+ return t ? i ? vae(i, t) : t : i || LT;
}
- return n[e] || RT;
+ return n[e] || LT;
}
};
-}, zT = (e, t, n) => {
+}, RT = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = zT(e, t + 1, i);
+ let n = RT(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(LT) : e.slice(t).join(LT), s = a.length;
+ let o = t === 0 ? e.join(IT) : e.slice(t).join(IT), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, xae = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, Sae = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? yae + r : void 0;
-})(), Sae = (e) => {
+ return r ? bae + r : void 0;
+})(), Cae = (e) => {
let { theme: t, classGroups: n } = e;
- return Cae(n, t);
-}, Cae = (e, t) => {
- let n = IT();
+ return wae(n, t);
+}, wae = (e, t) => {
+ let n = FT();
for (let r in e) {
let i = e[r];
- BT(i, n, r, t);
+ zT(i, n, r, t);
}
return n;
-}, BT = (e, t, n, r) => {
+}, zT = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- wae(i, t, n, r);
+ Tae(i, t, n, r);
}
-}, wae = (e, t, n, r) => {
+}, Tae = (e, t, n, r) => {
if (typeof e == "string") {
- Tae(e, t, n);
+ Eae(e, t, n);
return;
}
if (typeof e == "function") {
- Eae(e, t, n, r);
+ Dae(e, t, n, r);
return;
}
- Dae(e, t, n, r);
-}, Tae = (e, t, n) => {
- let r = e === "" ? t : VT(t, e);
+ Oae(e, t, n, r);
+}, Eae = (e, t, n) => {
+ let r = e === "" ? t : BT(t, e);
r.classGroupId = n;
-}, Eae = (e, t, n, r) => {
- if (Oae(e)) {
- BT(e(r), t, n, r);
+}, Dae = (e, t, n, r) => {
+ if (kae(e)) {
+ zT(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(vae(n, e));
-}, Dae = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(yae(n, e));
+}, Oae = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- BT(o, VT(t, a), n, r);
+ zT(o, BT(t, a), n, r);
}
-}, VT = (e, t) => {
- let n = e, r = t.split(LT), i = r.length;
+}, BT = (e, t) => {
+ let n = e, r = t.split(IT), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = IT(), n.nextPart.set(t, i)), n = i;
+ i || (i = FT(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Oae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, kae = (e) => {
+}, kae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Aae = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -25815,19 +25815,19 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
e in n ? n[e] = t : i(e, t);
}
};
-}, HT = "!", UT = ":", Aae = [], WT = (e, t, n, r, i) => ({
+}, VT = "!", HT = ":", jae = [], UT = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), jae = (e) => {
+}), Mae = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === UT) {
+ if (o === HT) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -25839,13 +25839,13 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(HT) ? (c = s.slice(0, -1), l = !0) : s.startsWith(HT) && (c = s.slice(1), l = !0);
+ s.endsWith(VT) ? (c = s.slice(0, -1), l = !0) : s.startsWith(VT) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return WT(t, l, c, u);
+ return UT(t, l, c, u);
};
if (t) {
- let e = t + UT, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : WT(Aae, !1, t, void 0, !0);
+ let e = t + HT, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : UT(jae, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -25855,7 +25855,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
});
}
return r;
-}, Mae = (e) => {
+}, Nae = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -25867,18 +25867,18 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, Nae = (e) => ({
- cache: kae(e.cacheSize),
- parseClassName: jae(e),
- sortModifiers: Mae(e),
- postfixLookupClassGroupIds: Pae(e),
- ...bae(e)
-}), Pae = (e) => {
+}, Pae = (e) => ({
+ cache: Aae(e.cacheSize),
+ parseClassName: Mae(e),
+ sortModifiers: Nae(e),
+ postfixLookupClassGroupIds: Fae(e),
+ ...xae(e)
+}), Fae = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, Fae = /\s+/, Iae = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Fae), l = "";
+}, Iae = /\s+/, Lae = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Iae), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -25902,7 +25902,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + HT : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + VT : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -25913,34 +25913,34 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Lae = (...e) => {
+}, Rae = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = GT(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = WT(n)) && (i && (i += " "), i += r);
return i;
-}, GT = (e) => {
+}, WT = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = GT(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = WT(e[r])) && (n && (n += " "), n += t);
return n;
-}, KT = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = Nae(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, GT = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = Pae(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = Iae(e, n);
+ let a = Lae(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Lae(...e));
-}, Rae = [], qT = (e) => {
- let t = (t) => t[e] || Rae;
+ return a = o, (...e) => a(Rae(...e));
+}, zae = [], KT = (e) => {
+ let t = (t) => t[e] || zae;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, JT = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, YT = /^\((?:(\w[\w-]*):)?(.+)\)$/i, zae = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Bae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Vae = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Hae = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Uae = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Wae = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, XT = (e) => zae.test(e), ZT = (e) => !!e && !Number.isNaN(Number(e)), QT = (e) => !!e && Number.isInteger(Number(e)), $T = (e) => e.endsWith("%") && ZT(e.slice(0, -1)), eE = (e) => Bae.test(e), tE = () => !0, Gae = (e) => Vae.test(e) && !Hae.test(e), nE = () => !1, Kae = (e) => Uae.test(e), qae = (e) => Wae.test(e), Jae = (e) => !K(e) && !q(e), Yae = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Xae = (e) => uE(e, mE, nE), K = (e) => JT.test(e), rE = (e) => uE(e, hE, Gae), iE = (e) => uE(e, ioe, ZT), Zae = (e) => uE(e, _E, tE), Qae = (e) => uE(e, gE, nE), aE = (e) => uE(e, fE, nE), $ae = (e) => uE(e, pE, qae), oE = (e) => uE(e, vE, Kae), q = (e) => YT.test(e), sE = (e) => dE(e, hE), eoe = (e) => dE(e, gE), cE = (e) => dE(e, fE), toe = (e) => dE(e, mE), noe = (e) => dE(e, pE), lE = (e) => dE(e, vE, !0), roe = (e) => dE(e, _E, !0), uE = (e, t, n) => {
- let r = JT.exec(e);
+}, qT = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, JT = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Bae = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Vae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Hae = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Uae = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Wae = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Gae = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, YT = (e) => Bae.test(e), XT = (e) => !!e && !Number.isNaN(Number(e)), ZT = (e) => !!e && Number.isInteger(Number(e)), QT = (e) => e.endsWith("%") && XT(e.slice(0, -1)), $T = (e) => Vae.test(e), eE = () => !0, Kae = (e) => Hae.test(e) && !Uae.test(e), tE = () => !1, qae = (e) => Wae.test(e), Jae = (e) => Gae.test(e), Yae = (e) => !K(e) && !q(e), Xae = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Zae = (e) => lE(e, pE, tE), K = (e) => qT.test(e), nE = (e) => lE(e, mE, Kae), rE = (e) => lE(e, aoe, XT), Qae = (e) => lE(e, gE, eE), $ae = (e) => lE(e, hE, tE), iE = (e) => lE(e, dE, tE), eoe = (e) => lE(e, fE, Jae), aE = (e) => lE(e, _E, qae), q = (e) => JT.test(e), oE = (e) => uE(e, mE), toe = (e) => uE(e, hE), sE = (e) => uE(e, dE), noe = (e) => uE(e, pE), roe = (e) => uE(e, fE), cE = (e) => uE(e, _E, !0), ioe = (e) => uE(e, gE, !0), lE = (e, t, n) => {
+ let r = qT.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, dE = (e, t, n = !1) => {
- let r = YT.exec(e);
+}, uE = (e, t, n = !1) => {
+ let r = JT.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, fE = (e) => e === "position" || e === "percentage", pE = (e) => e === "image" || e === "url", mE = (e) => e === "length" || e === "size" || e === "bg-size", hE = (e) => e === "length", ioe = (e) => e === "number", gE = (e) => e === "family-name", _E = (e) => e === "number" || e === "weight", vE = (e) => e === "shadow", yE = () => {
- let e = qT("color"), t = qT("font"), n = qT("text"), r = qT("font-weight"), i = qT("tracking"), a = qT("leading"), o = qT("breakpoint"), s = qT("container"), c = qT("spacing"), l = qT("radius"), u = qT("shadow"), d = qT("inset-shadow"), f = qT("text-shadow"), p = qT("drop-shadow"), m = qT("blur"), h = qT("perspective"), g = qT("aspect"), _ = qT("ease"), v = qT("animate"), y = () => [
+}, dE = (e) => e === "position" || e === "percentage", fE = (e) => e === "image" || e === "url", pE = (e) => e === "length" || e === "size" || e === "bg-size", mE = (e) => e === "length", aoe = (e) => e === "number", hE = (e) => e === "family-name", gE = (e) => e === "number" || e === "weight", _E = (e) => e === "shadow", vE = () => {
+ let e = KT("color"), t = KT("font"), n = KT("text"), r = KT("font-weight"), i = KT("tracking"), a = KT("leading"), o = KT("breakpoint"), s = KT("container"), c = KT("spacing"), l = KT("radius"), u = KT("shadow"), d = KT("inset-shadow"), f = KT("text-shadow"), p = KT("drop-shadow"), m = KT("blur"), h = KT("perspective"), g = KT("aspect"), _ = KT("ease"), v = KT("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -25982,12 +25982,12 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
K,
c
], T = () => [
- XT,
+ YT,
"full",
"auto",
...w()
], E = () => [
- QT,
+ ZT,
"none",
"subgrid",
q,
@@ -25996,15 +25996,15 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"auto",
{ span: [
"full",
- QT,
+ ZT,
q,
K
] },
- QT,
+ ZT,
q,
K
], O = () => [
- QT,
+ ZT,
"auto",
q,
K
@@ -26034,7 +26034,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- XT,
+ YT,
"auto",
"full",
"dvw",
@@ -26049,7 +26049,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
...w()
], ee = () => [
s,
- XT,
+ YT,
"screen",
"full",
"dvw",
@@ -26060,7 +26060,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"fit",
...w()
], te = () => [
- XT,
+ YT,
"screen",
"full",
"lh",
@@ -26077,8 +26077,8 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
K
], F = () => [
...b(),
- cE,
- aE,
+ sE,
+ iE,
{ position: [q, K] }
], ne = () => ["no-repeat", { repeat: [
"",
@@ -26090,13 +26090,13 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"auto",
"cover",
"contain",
- toe,
- Xae,
+ noe,
+ Zae,
{ size: [q, K] }
], ie = () => [
- $T,
- sE,
- rE
+ QT,
+ oE,
+ nE
], ae = () => [
"",
"none",
@@ -26106,9 +26106,9 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
K
], oe = () => [
"",
- ZT,
- sE,
- rE
+ XT,
+ oE,
+ nE
], se = () => [
"solid",
"dashed",
@@ -26132,10 +26132,10 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"color",
"luminosity"
], le = () => [
- ZT,
- $T,
- cE,
- aE
+ XT,
+ QT,
+ sE,
+ iE
], ue = () => [
"",
"none",
@@ -26144,20 +26144,20 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
K
], de = () => [
"none",
- ZT,
+ XT,
q,
K
], fe = () => [
"none",
- ZT,
+ XT,
q,
K
], I = () => [
- ZT,
+ XT,
q,
K
], pe = () => [
- XT,
+ YT,
"full",
...w()
];
@@ -26171,17 +26171,17 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"bounce"
],
aspect: ["video"],
- blur: [eE],
- breakpoint: [eE],
- color: [tE],
- container: [eE],
- "drop-shadow": [eE],
+ blur: [$T],
+ breakpoint: [$T],
+ color: [eE],
+ container: [$T],
+ "drop-shadow": [$T],
ease: [
"in",
"out",
"in-out"
],
- font: [Jae],
+ font: [Yae],
"font-weight": [
"thin",
"extralight",
@@ -26193,7 +26193,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"extrabold",
"black"
],
- "inset-shadow": [eE],
+ "inset-shadow": [$T],
leading: [
"none",
"tight",
@@ -26210,11 +26210,11 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"distant",
"none"
],
- radius: [eE],
- shadow: [eE],
- spacing: ["px", ZT],
- text: [eE],
- "text-shadow": [eE],
+ radius: [$T],
+ shadow: [$T],
+ spacing: ["px", XT],
+ text: [$T],
+ "text-shadow": [$T],
tracking: [
"tighter",
"tight",
@@ -26228,7 +26228,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
aspect: [{ aspect: [
"auto",
"square",
- XT,
+ YT,
K,
q,
g
@@ -26241,9 +26241,9 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
q,
K
] }],
- "container-named": [Yae],
+ "container-named": [Xae],
columns: [{ columns: [
- ZT,
+ XT,
"auto",
K,
q,
@@ -26343,13 +26343,13 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"collapse"
],
z: [{ z: [
- QT,
+ ZT,
"auto",
q,
K
] }],
basis: [{ basis: [
- XT,
+ YT,
"full",
"auto",
s,
@@ -26367,8 +26367,8 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"wrap-reverse"
] }],
flex: [{ flex: [
- ZT,
XT,
+ YT,
"auto",
"initial",
"none",
@@ -26376,18 +26376,18 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
] }],
grow: [{ grow: [
"",
- ZT,
+ XT,
q,
K
] }],
shrink: [{ shrink: [
"",
- ZT,
+ XT,
q,
K
] }],
order: [{ order: [
- QT,
+ ZT,
"first",
"last",
"none",
@@ -26499,15 +26499,15 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"font-size": [{ text: [
"base",
n,
- sE,
- rE
+ oE,
+ nE
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- roe,
- Zae
+ ioe,
+ Qae
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -26519,12 +26519,12 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"expanded",
"extra-expanded",
"ultra-expanded",
- $T,
+ QT,
K
] }],
"font-family": [{ font: [
- eoe,
- Qae,
+ toe,
+ $ae,
t
] }],
"font-features": [{ "font-features": [K] }],
@@ -26540,10 +26540,10 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
K
] }],
"line-clamp": [{ "line-clamp": [
- ZT,
+ XT,
"none",
q,
- iE
+ rE
] }],
leading: [{ leading: [
"none",
@@ -26581,15 +26581,15 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
],
"text-decoration-style": [{ decoration: [...se(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- ZT,
+ XT,
"from-font",
"auto",
q,
- rE
+ nE
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- ZT,
+ XT,
"auto",
q,
K
@@ -26613,7 +26613,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- QT,
+ ZT,
q,
K
] }],
@@ -26691,7 +26691,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"l",
"tl"
] },
- QT,
+ ZT,
q,
K
],
@@ -26702,13 +26702,13 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
],
conic: [
"",
- QT,
+ ZT,
q,
K
]
},
- noe,
- $ae
+ roe,
+ eoe
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: ie() }],
@@ -26775,15 +26775,15 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- ZT,
+ XT,
q,
K
] }],
"outline-w": [{ outline: [
"",
- ZT,
- sE,
- rE
+ XT,
+ oE,
+ nE
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -26791,33 +26791,33 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"inner",
"none",
u,
- lE,
- oE
+ cE,
+ aE
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- lE,
- oE
+ cE,
+ aE
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: oe() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [ZT, rE] }],
+ "ring-offset-w": [{ "ring-offset": [XT, nE] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": oe() }],
"inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- lE,
- oE
+ cE,
+ aE
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- ZT,
+ XT,
q,
K
] }],
@@ -26841,7 +26841,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [ZT] }],
+ "mask-image-linear-pos": [{ "mask-linear": [XT] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": le() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": le() }],
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
@@ -26881,7 +26881,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [ZT] }],
+ "mask-image-conic-pos": [{ "mask-conic": [XT] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": le() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": le() }],
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
@@ -26916,12 +26916,12 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
] }],
blur: [{ blur: ue() }],
brightness: [{ brightness: [
- ZT,
+ XT,
q,
K
] }],
contrast: [{ contrast: [
- ZT,
+ XT,
q,
K
] }],
@@ -26929,35 +26929,35 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"",
"none",
p,
- lE,
- oE
+ cE,
+ aE
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- ZT,
+ XT,
q,
K
] }],
"hue-rotate": [{ "hue-rotate": [
- ZT,
+ XT,
q,
K
] }],
invert: [{ invert: [
"",
- ZT,
+ XT,
q,
K
] }],
saturate: [{ saturate: [
- ZT,
+ XT,
q,
K
] }],
sepia: [{ sepia: [
"",
- ZT,
+ XT,
q,
K
] }],
@@ -26969,45 +26969,45 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
] }],
"backdrop-blur": [{ "backdrop-blur": ue() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- ZT,
+ XT,
q,
K
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- ZT,
+ XT,
q,
K
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- ZT,
+ XT,
q,
K
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- ZT,
+ XT,
q,
K
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- ZT,
+ XT,
q,
K
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- ZT,
+ XT,
q,
K
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- ZT,
+ XT,
q,
K
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- ZT,
+ XT,
q,
K
] }],
@@ -27030,7 +27030,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- ZT,
+ XT,
"initial",
q,
K
@@ -27043,7 +27043,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
K
] }],
delay: [{ delay: [
- ZT,
+ XT,
q,
K
] }],
@@ -27088,7 +27088,7 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- QT,
+ ZT,
q,
K
] }],
@@ -27232,10 +27232,10 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- ZT,
- sE,
- rE,
- iE
+ XT,
+ oE,
+ nE,
+ rE
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -27493,16 +27493,16 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"selection"
]
};
-}, aoe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (bE(e, "cacheSize", t), bE(e, "prefix", n), bE(e, "experimentalParseClassName", r), xE(e.theme, a.theme), xE(e.classGroups, a.classGroups), xE(e.conflictingClassGroups, a.conflictingClassGroups), xE(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), bE(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), bE(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), SE(e.theme, i.theme), SE(e.classGroups, i.classGroups), SE(e.conflictingClassGroups, i.conflictingClassGroups), SE(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), CE(e, i, "postfixLookupClassGroups"), CE(e, i, "orderSensitiveModifiers"), e), bE = (e, t, n) => {
+}, ooe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (yE(e, "cacheSize", t), yE(e, "prefix", n), yE(e, "experimentalParseClassName", r), bE(e.theme, a.theme), bE(e.classGroups, a.classGroups), bE(e.conflictingClassGroups, a.conflictingClassGroups), bE(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), yE(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), yE(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), xE(e.theme, i.theme), xE(e.classGroups, i.classGroups), xE(e.conflictingClassGroups, i.conflictingClassGroups), xE(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), SE(e, i, "postfixLookupClassGroups"), SE(e, i, "orderSensitiveModifiers"), e), yE = (e, t, n) => {
n !== void 0 && (e[t] = n);
+}, bE = (e, t) => {
+ if (t) for (let n in t) yE(e, n, t[n]);
}, xE = (e, t) => {
- if (t) for (let n in t) bE(e, n, t[n]);
-}, SE = (e, t) => {
- if (t) for (let n in t) CE(e, t, n);
-}, CE = (e, t, n) => {
+ if (t) for (let n in t) SE(e, t, n);
+}, SE = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, ooe = (e, ...t) => typeof e == "function" ? KT(yE, e, ...t) : KT(() => aoe(yE(), e), ...t), soe = [
+}, soe = (e, ...t) => typeof e == "function" ? GT(vE, e, ...t) : GT(() => ooe(vE(), e), ...t), coe = [
"large-title",
"display-1",
"display-2",
@@ -27516,18 +27516,18 @@ var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"body-2",
"caption-1",
"caption-2"
-], coe = [
+], loe = [
"regular",
"medium",
"semibold",
"bold"
-], wE = ooe({ extend: { classGroups: { "font-size": [{ text: soe.flatMap((e) => coe.map((t) => `${e}-${t}`)) }] } } });
-function TE(e) {
+], CE = soe({ extend: { classGroups: { "font-size": [{ text: coe.flatMap((e) => loe.map((t) => `${e}-${t}`)) }] } } });
+function wE(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var EE = TE({
+var TE = wE({
base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",
variant: {
bold: "py-0.5 text-body-medium",
@@ -27546,16 +27546,16 @@ var EE = TE({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function DE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function EE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, B.jsx)("span", {
ref: r,
- className: wE(EE.base, EE.variant[e], EE.color[t], n),
+ className: CE(TE.base, TE.variant[e], TE.color[t], n),
...i
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var OE = TE({
+var DE = wE({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -27614,40 +27614,40 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, B.jsxs)("button", {
ref: c,
type: s,
- className: wE(OE.base, OE.size[t], OE.variant[e], n && OE.iconOnlySize[t], o),
+ className: CE(DE.base, DE.size[t], DE.variant[e], n && DE.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, B.jsx)(r, {
- className: OE.icon[t],
+ className: DE.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, B.jsx)("span", {
- className: OE.label[t],
+ className: DE.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, B.jsx)(i, {
- className: OE.icon[t],
+ className: DE.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function kE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function OE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, B.jsxs)("a", {
ref: s,
- className: wE(OE.base, OE.size[t], OE.variant[e], n && OE.iconOnlySize[t], o),
+ className: CE(DE.base, DE.size[t], DE.variant[e], n && DE.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, B.jsx)(r, {
- className: OE.icon[t],
+ className: DE.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, B.jsx)("span", {
- className: OE.label[t],
+ className: DE.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, B.jsx)(i, {
- className: OE.icon[t],
+ className: DE.icon[t],
"aria-hidden": !0
}) : null
]
@@ -27655,47 +27655,47 @@ function kE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/react/components/card.tsx
-var loe = "min-w-0", uoe = {
+var uoe = "min-w-0", doe = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, doe = {
+}, foe = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, foe = {
+}, poe = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, poe = {
+}, moe = {
none: "",
default: "p-5"
-}, moe = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", hoe = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
-function AE(e = {}) {
+}, hoe = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", goe = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
+function kE(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- loe,
- uoe[t],
- doe[s],
- poe[n],
- a ? foe[a] : "",
- r ? moe : "",
- i ? hoe : "",
+ uoe,
+ doe[t],
+ foe[s],
+ moe[n],
+ a ? poe[a] : "",
+ r ? hoe : "",
+ i ? goe : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/empty-state.tsx
-var goe = {
+var _oe = {
page: "min-h-80 justify-center rounded-floating border border-separator-border bg-background-secondary-default px-6 py-12",
plain: "px-6 py-12",
inset: "min-h-40 justify-center rounded-xl bg-background-secondary-default px-4 py-4"
};
-function jE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+function AE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
let a = i === "page";
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-empty-state": "",
- className: `flex flex-col items-center gap-2 text-center ${goe[i]}`,
+ className: `flex flex-col items-center gap-2 text-center ${_oe[i]}`,
children: [
a ? /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
@@ -27725,7 +27725,7 @@ function jE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function ME({ label: e, inline: t = !1 }) {
+function jE({ label: e, inline: t = !1 }) {
let n = /* @__PURE__ */ (0, B.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex items-center gap-1",
@@ -27791,7 +27791,7 @@ function Y({ tone: e, title: t, action: n, extra: r, children: i }) {
}
//#endregion
//#region src/react/components/page.tsx
-function NE({ children: e }) {
+function ME({ children: e }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@ -27799,21 +27799,21 @@ function NE({ children: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var PE = 100, _oe = .4;
-function FE({ label: e, value: t, max: n = 100, stops: r = [] }) {
- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * PE;
+var NE = 100, voe = .4;
+function PE({ label: e, value: t, max: n = 100, stops: r = [] }) {
+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * NE;
return /* @__PURE__ */ (0, B.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": n,
"aria-valuenow": t,
- viewBox: `0 0 ${PE} 1`,
+ viewBox: `0 0 ${NE} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, B.jsx)("rect", {
- width: PE,
+ width: NE,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -27824,7 +27824,7 @@ function FE({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, B.jsx)("rect", {
x: a(e),
- width: _oe,
+ width: voe,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -27841,7 +27841,7 @@ function X(e) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function IE(e = "") {
+function FE(e = "") {
let t = (0, R.useRef)(null), [n, r] = (0, R.useState)(""), [i, a] = (0, R.useState)(e);
(0, R.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -27867,12 +27867,12 @@ function IE(e = "") {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var LE = Symbol("default");
-function RE({ values: e, children: t }) {
+var IE = Symbol("default");
+function LE({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ R.createElement(n.Provider, { value: r }, t);
return t;
}
-function zE(e) {
+function RE(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, R.useMemo)(() => {
let e, l, u;
@@ -27906,11 +27906,11 @@ function zE(e) {
c
]);
}
-function BE(e, t) {
+function zE(e, t) {
let n = (0, R.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || LE;
+ let e = t || IE;
if (!n.slots[e]) {
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
throw Error(`${r} Valid slot names are ${e}.`);
@@ -27919,8 +27919,8 @@ function BE(e, t) {
}
return n;
}
-function VE(e, t, n) {
- let { ref: r, ...i } = BE(n, e.slot) || {}, a = Rh((0, R.useMemo)(() => yh(t, r), [t, r])), o = H(i, e);
+function BE(e, t, n) {
+ let { ref: r, ...i } = zE(n, e.slot) || {}, a = Rh((0, R.useMemo)(() => yh(t, r), [t, r])), o = H(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -27938,7 +27938,7 @@ function VE(e, t, n) {
...e.style
}), [o, a];
}
-function HE(e = !0) {
+function VE(e = !0) {
let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(!1), i = (0, R.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -27946,12 +27946,12 @@ function HE(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function UE(e) {
+function HE(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function voe(e, t, n) {
+function yoe(e, t, n) {
let { render: r, ...i } = t, a = (0, R.useRef)(null), o = (0, R.useMemo)(() => yh(n, a), [n, a]);
qp(() => {}, [e, r]);
let s = {
@@ -27960,19 +27960,19 @@ function voe(e, t, n) {
};
return r ? r(s, void 0) : /*#__PURE__*/ R.createElement(e, s);
}
-var WE = {}, GE = new Proxy({}, { get(e, t) {
+var UE = {}, WE = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = WE[t];
- return n || (n = /*#__PURE__*/ (0, R.forwardRef)(voe.bind(null, t)), WE[t] = n), n;
-} }), KE = /*#__PURE__*/ (0, R.createContext)(null), qE = /*#__PURE__*/ (0, R.createContext)(null), JE = /*#__PURE__*/ (0, R.createContext)(null), YE = {
+ let n = UE[t];
+ return n || (n = /*#__PURE__*/ (0, R.forwardRef)(yoe.bind(null, t)), UE[t] = n), n;
+} }), GE = /*#__PURE__*/ (0, R.createContext)(null), KE = /*#__PURE__*/ (0, R.createContext)(null), qE = /*#__PURE__*/ (0, R.createContext)(null), JE = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return XE(e, null, t);
+ return YE(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return XE(e, t, n);
+ return YE(e, t, n);
}
};
-function XE(e, t, n) {
+function YE(e, t, n) {
return gp({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
@@ -27983,11 +27983,11 @@ function XE(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, yoe(e, t, n));
+ }), r, boe(e, t, n));
}
});
}
-function yoe(e, t, n) {
+function boe(e, t, n) {
let r = t.key, i = e.getKeyAfter(r), a = i == null ? null : e.getItem(i);
for (; a != null && a.type !== "item";) i = e.getKeyAfter(a.key), a = i == null ? null : e.getItem(i);
let o = t.nextKey == null ? null : e.getItem(t.nextKey);
@@ -28006,25 +28006,25 @@ function yoe(e, t, n) {
}
return s;
}
-var ZE = /*#__PURE__*/ (0, R.createContext)(YE);
-function QE(e) {
+var XE = /*#__PURE__*/ (0, R.createContext)(JE);
+function ZE(e) {
return (0, R.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var $E = /*#__PURE__*/ (0, R.createContext)({}), boe = /*#__PURE__*/ Gh(function(e, t) {
- [e, t] = VE(e, t, $E);
- let { elementType: n = "label", ...r } = e, i = GE[n];
+var QE = /*#__PURE__*/ (0, R.createContext)({}), xoe = /*#__PURE__*/ Gh(function(e, t) {
+ [e, t] = BE(e, t, QE);
+ let { elementType: n = "label", ...r } = e, i = WE[n];
return /*#__PURE__*/ R.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), xoe = /*#__PURE__*/ (0, R.createContext)(null), eD = /*#__PURE__*/ (0, R.createContext)({}), tD = /*#__PURE__*/ Gh(function(e, t) {
- [e, t] = VE(e, t, eD);
+}), Soe = /*#__PURE__*/ (0, R.createContext)(null), $E = /*#__PURE__*/ (0, R.createContext)({}), eD = /*#__PURE__*/ Gh(function(e, t) {
+ [e, t] = BE(e, t, $E);
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = jee(e, t);
- i = Coe(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = cy(e), { hoverProps: l, isHovered: u } = fy({
+ i = woe(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = ly(e), { hoverProps: l, isHovered: u } = py({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -28034,7 +28034,7 @@ var $E = /*#__PURE__*/ (0, R.createContext)({}), boe = /*#__PURE__*/ Gh(function
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = zE({
+ }, f = RE({
...e,
values: d,
defaultClassName: "react-aria-Button"
@@ -28051,7 +28051,7 @@ var $E = /*#__PURE__*/ (0, R.createContext)({}), boe = /*#__PURE__*/ Gh(function
p
]);
let _ = jg(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ R.createElement(GE.button, {
+ return delete _.onClick, /*#__PURE__*/ R.createElement(WE.button, {
...H(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -28065,62 +28065,62 @@ var $E = /*#__PURE__*/ (0, R.createContext)({}), boe = /*#__PURE__*/ Gh(function
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ R.createElement(xoe.Provider, { value: { id: m } }, f.children));
-}), Soe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function Coe(e, t) {
+ }, /*#__PURE__*/ R.createElement(Soe.Provider, { value: { id: m } }, f.children));
+}), Coe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function woe(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Soe.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Coe.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Heading.mjs
-var nD = /*#__PURE__*/ (0, R.createContext)({}), rD = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = VE(e, t, nD);
- let { children: n, level: r = 3, className: i, ...a } = e, o = GE[`h${r}`];
+var tD = /*#__PURE__*/ (0, R.createContext)({}), nD = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = BE(e, t, tD);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = WE[`h${r}`];
return /*#__PURE__*/ R.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), iD = /*#__PURE__*/ (0, R.createContext)({}), woe = /*#__PURE__*/ Gh(function(e, t) {
- [e, t] = VE(e, t, iD);
- let { elementType: n = "span", ...r } = e, i = GE[n];
+}), rD = /*#__PURE__*/ (0, R.createContext)({}), Toe = /*#__PURE__*/ Gh(function(e, t) {
+ [e, t] = BE(e, t, rD);
+ let { elementType: n = "span", ...r } = e, i = WE[n];
return /*#__PURE__*/ R.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), aD = /*#__PURE__*/ (0, R.createContext)(null), oD = /*#__PURE__*/ (0, R.createContext)(null), sD = /*#__PURE__*/ (0, R.createContext)(null), cD = /*#__PURE__*/ (0, R.createContext)(null), Toe = /*#__PURE__*/ (0, R.createContext)(null), lD = /*#__PURE__*/ (0, R.createContext)(null);
-function Eoe(e, t) {
- let { validationBehavior: n } = BE(oD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useContext)(Toe), a = Rh((0, R.useMemo)(() => yh(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...UE(e),
+}), iD = /*#__PURE__*/ (0, R.createContext)(null), aD = /*#__PURE__*/ (0, R.createContext)(null), oD = /*#__PURE__*/ (0, R.createContext)(null), sD = /*#__PURE__*/ (0, R.createContext)(null), Eoe = /*#__PURE__*/ (0, R.createContext)(null), cD = /*#__PURE__*/ (0, R.createContext)(null);
+function Doe(e, t) {
+ let { validationBehavior: n } = zE(aD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useContext)(Eoe), a = Rh((0, R.useMemo)(() => yh(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...HE(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? ete(o, i, a) : R_(o, U_(e), a), a];
+ return [i ? $ee(o, i, a) : z_(o, W_(e), a), a];
}
-var Doe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+var Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = VE(r, t, sD);
- let [i, a] = Eoe(e, n);
- return /*#__PURE__*/ R.createElement(lD.Provider, { value: {
+ [e, t] = BE(r, t, oD);
+ let [i, a] = Doe(e, n);
+ return /*#__PURE__*/ R.createElement(cD.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ R.createElement(Ooe, {
+ } }, /*#__PURE__*/ R.createElement(koe, {
...e,
ref: t
}));
-}), Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, R.useContext)(lD), { isFocused: p, isFocusVisible: m, focusProps: h } = cy(), g = a || o, { hoverProps: _, isHovered: v } = fy({
+}), koe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, R.useContext)(cD), { isFocused: p, isFocusVisible: m, focusProps: h } = ly(), g = a || o, { hoverProps: _, isHovered: v } = py({
...e,
isDisabled: g
- }), y = zE({
+ }), y = RE({
...e,
defaultClassName: u,
values: {
@@ -28136,7 +28136,7 @@ var Doe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
isRequired: f || !1
}
}), b = jg(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(GE.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(WE.label, {
...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -28150,20 +28150,20 @@ var Doe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ R.createElement(q_, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
+ }, /*#__PURE__*/ R.createElement(J_, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
...H(r, h),
ref: l
})), y.children);
-}), uD = /*#__PURE__*/ (0, R.createContext)({}), koe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = VE(e, t, uD);
+}), lD = /*#__PURE__*/ (0, R.createContext)({}), Aoe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = BE(e, t, lD);
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
- let { hoverProps: l, isHovered: u } = fy({
+ let { hoverProps: l, isHovered: u } = py({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = cy({ within: !0 }), m = zE({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = ly({ within: !0 }), m = RE({
...e,
values: {
isHovered: u,
@@ -28174,7 +28174,7 @@ var Doe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ R.createElement(GE.div, {
+ return /*#__PURE__*/ R.createElement(WE.div, {
...H(c, p, l),
...m,
ref: t,
@@ -28187,18 +28187,18 @@ var Doe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), dD = /*#__PURE__*/ (0, R.createContext)({}), Aoe = (e) => {
+}), uD = /*#__PURE__*/ (0, R.createContext)({}), joe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, joe = /*#__PURE__*/ Gh(function(e, t) {
- [e, t] = VE(e, t, dD);
- let { hoverProps: n, isHovered: r } = fy({
+}, Moe = /*#__PURE__*/ Gh(function(e, t) {
+ [e, t] = BE(e, t, uD);
+ let { hoverProps: n, isHovered: r } = py({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = cy({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = ly({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = zE({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = RE({
...e,
values: {
isHovered: r,
@@ -28209,8 +28209,8 @@ var Doe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ R.createElement(GE.input, {
- ...H(Aoe(e), o, n),
+ return /*#__PURE__*/ R.createElement(WE.input, {
+ ...H(joe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -28219,8 +28219,8 @@ var Doe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), fD = {};
-fD = {
+}), dD = {};
+dD = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -28228,8 +28228,8 @@ fD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var pD = {};
-pD = {
+var fD = {};
+fD = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -28237,8 +28237,8 @@ pD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var mD = {};
-mD = {
+var pD = {};
+pD = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -28246,8 +28246,8 @@ mD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var hD = {};
-hD = {
+var mD = {};
+mD = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -28255,8 +28255,8 @@ hD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var gD = {};
-gD = {
+var hD = {};
+hD = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -28264,8 +28264,8 @@ gD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var _D = {};
-_D = {
+var gD = {};
+gD = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -28273,8 +28273,8 @@ _D = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var vD = {};
-vD = {
+var _D = {};
+_D = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -28282,8 +28282,8 @@ vD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var yD = {};
-yD = {
+var vD = {};
+vD = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -28291,8 +28291,8 @@ yD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var bD = {};
-bD = {
+var yD = {};
+yD = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -28300,8 +28300,8 @@ bD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var xD = {};
-xD = {
+var bD = {};
+bD = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -28309,8 +28309,8 @@ xD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var SD = {};
-SD = {
+var xD = {};
+xD = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -28318,8 +28318,8 @@ SD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var CD = {};
-CD = {
+var SD = {};
+SD = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -28327,8 +28327,8 @@ CD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var wD = {};
-wD = {
+var CD = {};
+CD = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -28336,8 +28336,8 @@ wD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var TD = {};
-TD = {
+var wD = {};
+wD = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -28345,8 +28345,8 @@ TD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var ED = {};
-ED = {
+var TD = {};
+TD = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -28354,8 +28354,8 @@ ED = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var DD = {};
-DD = {
+var ED = {};
+ED = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -28363,8 +28363,8 @@ DD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var OD = {};
-OD = {
+var DD = {};
+DD = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -28372,8 +28372,8 @@ OD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var kD = {};
-kD = {
+var OD = {};
+OD = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -28381,8 +28381,8 @@ kD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var AD = {};
-AD = {
+var kD = {};
+kD = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -28390,8 +28390,8 @@ AD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var jD = {};
-jD = {
+var AD = {};
+AD = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -28399,8 +28399,8 @@ jD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var MD = {};
-MD = {
+var jD = {};
+jD = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -28408,8 +28408,8 @@ MD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var ND = {};
-ND = {
+var MD = {};
+MD = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -28417,8 +28417,8 @@ ND = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var PD = {};
-PD = {
+var ND = {};
+ND = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -28426,8 +28426,8 @@ PD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var FD = {};
-FD = {
+var PD = {};
+PD = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -28435,8 +28435,8 @@ FD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var ID = {};
-ID = {
+var FD = {};
+FD = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -28444,8 +28444,8 @@ ID = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var LD = {};
-LD = {
+var ID = {};
+ID = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -28453,8 +28453,8 @@ LD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var RD = {};
-RD = {
+var LD = {};
+LD = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -28462,8 +28462,8 @@ RD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var zD = {};
-zD = {
+var RD = {};
+RD = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -28471,8 +28471,8 @@ zD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var BD = {};
-BD = {
+var zD = {};
+zD = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -28480,8 +28480,8 @@ BD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var VD = {};
-VD = {
+var BD = {};
+BD = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -28489,8 +28489,8 @@ VD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var HD = {};
-HD = {
+var VD = {};
+VD = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -28498,8 +28498,8 @@ HD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var UD = {};
-UD = {
+var HD = {};
+HD = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -28507,8 +28507,8 @@ UD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var WD = {};
-WD = {
+var UD = {};
+UD = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -28516,8 +28516,8 @@ WD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var GD = {};
-GD = {
+var WD = {};
+WD = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -28525,52 +28525,52 @@ GD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var KD = {};
-KD = {
- "ar-AE": fD,
- "bg-BG": pD,
- "cs-CZ": mD,
- "da-DK": hD,
- "de-DE": gD,
- "el-GR": _D,
- "en-US": vD,
- "es-ES": yD,
- "et-EE": bD,
- "fi-FI": xD,
- "fr-FR": SD,
- "he-IL": CD,
- "hr-HR": wD,
- "hu-HU": TD,
- "it-IT": ED,
- "ja-JP": DD,
- "ko-KR": OD,
- "lt-LT": kD,
- "lv-LV": AD,
- "nb-NO": jD,
- "nl-NL": MD,
- "pl-PL": ND,
- "pt-BR": PD,
- "pt-PT": FD,
- "ro-RO": ID,
- "ru-RU": LD,
- "sk-SK": RD,
- "sl-SI": zD,
- "sr-SP": BD,
- "sv-SE": VD,
- "tr-TR": HD,
- "uk-UA": UD,
- "zh-CN": WD,
- "zh-TW": GD
+var GD = {};
+GD = {
+ "ar-AE": dD,
+ "bg-BG": fD,
+ "cs-CZ": pD,
+ "da-DK": mD,
+ "de-DE": hD,
+ "el-GR": gD,
+ "en-US": _D,
+ "es-ES": vD,
+ "et-EE": yD,
+ "fi-FI": bD,
+ "fr-FR": xD,
+ "he-IL": SD,
+ "hr-HR": CD,
+ "hu-HU": wD,
+ "it-IT": TD,
+ "ja-JP": ED,
+ "ko-KR": DD,
+ "lt-LT": OD,
+ "lv-LV": kD,
+ "nb-NO": AD,
+ "nl-NL": jD,
+ "pl-PL": MD,
+ "pt-BR": ND,
+ "pt-PT": PD,
+ "ro-RO": FD,
+ "ru-RU": ID,
+ "sk-SK": LD,
+ "sl-SI": RD,
+ "sr-SP": zD,
+ "sv-SE": BD,
+ "tr-TR": VD,
+ "uk-UA": HD,
+ "zh-CN": UD,
+ "zh-TW": WD
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var qD = /*#__PURE__*/ (0, R.createContext)({}), JD = /*#__PURE__*/ (0, R.createContext)(null), Moe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { render: n } = (0, R.useContext)(JD);
+var KD = /*#__PURE__*/ (0, R.createContext)({}), qD = /*#__PURE__*/ (0, R.createContext)(null), Noe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { render: n } = (0, R.useContext)(qD);
return /*#__PURE__*/ R.createElement(R.Fragment, null, n(e, t));
});
-function YD(e, t) {
+function JD(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, R.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ R.createElement(Moe, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ R.createElement(Noe, { target: e });
}, [
t?.target,
r,
@@ -28578,7 +28578,7 @@ function YD(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function XD(e, t, n) {
+function YD(e, t, n) {
let r = e.focusedKey, i = null;
if (t?.isVirtualDragging?.() && n?.target?.type === "item" && (i = n.target.key, n.target.dropPosition === "after")) {
let e = n.collection.getKeyAfter(i), t = null;
@@ -28601,14 +28601,14 @@ function XD(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var ZD = /*#__PURE__*/ (0, R.createContext)({}), Noe = /*#__PURE__*/ (0, R.createContext)(null);
-function QD(e) {
+var XD = /*#__PURE__*/ (0, R.createContext)({}), Poe = /*#__PURE__*/ (0, R.createContext)(null);
+function ZD(e) {
let t = (0, R.useRef)({});
- return /*#__PURE__*/ R.createElement(Noe.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ R.createElement(Poe.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var $D = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 }), eO = /*#__PURE__*/ (0, R.createContext)({}), Poe = /*#__PURE__*/ og(class extends op {
+var QD = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 }), $D = /*#__PURE__*/ (0, R.createContext)({}), Foe = /*#__PURE__*/ og(class extends op {
static {
this.type = "separator";
}
@@ -28621,10 +28621,10 @@ var $D = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 }), eO = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = VE(e, t, eO);
+ [e, t] = BE(e, t, $D);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = GE[c], { separatorProps: u } = dx({
+ let l = WE[c], { separatorProps: u } = ene({
...s,
elementType: n,
orientation: r
@@ -28640,13 +28640,13 @@ var $D = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 }), eO = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function tO(e) {
+function eO(e) {
let t = R.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
//#endregion
//#region node_modules/react-stately/dist/private/list/ListCollection.mjs
-var nO = class {
+var tO = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -28690,20 +28690,20 @@ var nO = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, rO = class e extends Set {
+}, nO = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
//#endregion
//#region node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function Foe(e, t) {
+function Ioe(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function iO(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, R.useRef)(!1), [, s] = (0, R.useState)(!1), c = (0, R.useRef)(null), l = (0, R.useRef)(null), [, u] = (0, R.useState)(null), [d, f] = H_((0, R.useMemo)(() => aO(e.selectedKeys), [e.selectedKeys]), (0, R.useMemo)(() => aO(e.defaultSelectedKeys, new rO()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, R.useState)(i);
+function rO(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, R.useRef)(!1), [, s] = (0, R.useState)(!1), c = (0, R.useRef)(null), l = (0, R.useRef)(null), [, u] = (0, R.useState)(null), [d, f] = U_((0, R.useMemo)(() => iO(e.selectedKeys), [e.selectedKeys]), (0, R.useMemo)(() => iO(e.defaultSelectedKeys, new nO()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, R.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, R.useRef)(i);
return (0, R.useEffect)(() => {
@@ -28730,18 +28730,18 @@ function iO(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !Foe(e, d)) && f(e);
+ (r || !Ioe(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function aO(e, t) {
- return e ? e === "all" ? "all" : new rO(e) : t;
+function iO(e, t) {
+ return e ? e === "all" ? "all" : new nO(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var oO = class e {
+var aO = class e {
constructor(e, t, n) {
this.collection = e, this.state = t, this.allowsCellSelection = n?.allowsCellSelection ?? !1, this._isSelectAll = null, this.layoutDelegate = n?.layoutDelegate || null, this.fullCollection = n?.fullCollection || null;
}
@@ -28797,7 +28797,7 @@ var oO = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && Xv(this.collection, n, e) < 0) && (e = n);
+ (!e || n && Zv(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -28805,7 +28805,7 @@ var oO = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && Xv(this.collection, n, e) > 0) && (e = n);
+ (!e || n && Zv(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -28824,10 +28824,10 @@ var oO = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new rO([t], t, t);
+ if (this.state.selectedKeys === "all") n = new nO([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new rO(e, r, t);
+ n = new nO(e, r, t);
for (let i of this.getKeyRange(r, e.currentKey ?? t)) n.delete(i);
for (let e of this.getKeyRange(t, r)) this.canSelectItem(e) && n.add(e);
}
@@ -28835,7 +28835,7 @@ var oO = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? Xv(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? Zv(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);
@@ -28861,19 +28861,19 @@ var oO = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new rO(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new nO(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
n.has(t) ? n.delete(t) : this.canSelectItem(t) && (n.add(t), n.anchorKey = t, n.currentKey = t), !(this.disallowEmptySelection && n.size === 0) && this.state.setSelectedKeys(n);
}
replaceSelection(e) {
if (this.selectionMode === "none") return;
let t = this.getKey(e);
if (t == null) return;
- let n = this.canSelectItem(t) ? new rO([t], t, t) : new rO();
+ let n = this.canSelectItem(t) ? new nO([t], t, t) : new nO();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new rO();
+ let t = new nO();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -28885,7 +28885,7 @@ var oO = 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(qv(Kv(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(Jv(qv(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -28896,7 +28896,7 @@ var oO = class e {
!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
}
clearSelection() {
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new rO());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new nO());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -28937,9 +28937,9 @@ var oO = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, Ioe = class {
+}, Loe = class {
build(e, t) {
- return this.context = t, sO(() => this.iterateCollection(e));
+ return this.context = t, oO(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -29021,10 +29021,10 @@ var oO = class e {
...a,
key: l,
index: s,
- wrapper: Loe(e.wrapper, a.wrapper)
+ wrapper: Roe(e.wrapper, a.wrapper)
}, this.getChildState(t, a), n ? `${n}${i.key}` : i.key, r)];
for (let t of u) {
- if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${cO(t.type)}> in <${cO(r?.type ?? "unknown parent type")}>. Only <${cO(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${sO(t.type)}> in <${sO(r?.type ?? "unknown parent type")}>. Only <${sO(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -29046,7 +29046,7 @@ var oO = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: sO(function* () {
+ childNodes: oO(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -29065,7 +29065,7 @@ var oO = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function sO(e) {
+function oO(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -29073,18 +29073,18 @@ function sO(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function Loe(e, t) {
+function Roe(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function cO(e) {
+function sO(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function lO(e, t, n) {
- let r = (0, R.useMemo)(() => new Ioe(), []), { children: i, items: a, collection: o } = e;
+function cO(e, t, n) {
+ let r = (0, R.useMemo)(() => new Loe(), []), { children: i, items: a, collection: o } = e;
return (0, R.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -29099,27 +29099,27 @@ function lO(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function uO(e) {
- let { filter: t, layoutDelegate: n } = e, r = iO(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = lO(e, (0, R.useCallback)((e) => t ? new nO(t(e)) : new nO(e), [t]), (0, R.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, R.useMemo)(() => new oO(a, r, { layoutDelegate: n }), [
+function lO(e) {
+ let { filter: t, layoutDelegate: n } = e, r = rO(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = cO(e, (0, R.useCallback)((e) => t ? new tO(t(e)) : new tO(e), [t]), (0, R.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, R.useMemo)(() => new aO(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return dO(a, o), {
+ return uO(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function Roe(e, t) {
+function zoe(e, t) {
let n = (0, R.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return dO(n, r), {
+ return uO(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function dO(e, t) {
+function uO(e, t) {
let n = (0, R.useRef)(null);
(0, R.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -29147,7 +29147,7 @@ function dO(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function fO(e, t) {
+function dO(e, t) {
let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, R.useRef)(null), s = hg((e) => {
for (let t of e) t.isIntersecting && r && r();
});
@@ -29171,42 +29171,42 @@ function fO(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var pO = /*#__PURE__*/ (0, R.createContext)(null), mO = /*#__PURE__*/ (0, R.createContext)(null), zoe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = VE(e, t, pO);
- let n = (0, R.useContext)(mO);
- return n ? /*#__PURE__*/ R.createElement(hO, {
+var fO = /*#__PURE__*/ (0, R.createContext)(null), pO = /*#__PURE__*/ (0, R.createContext)(null), Boe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = BE(e, t, fO);
+ let n = (0, R.useContext)(pO);
+ return n ? /*#__PURE__*/ R.createElement(mO, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ R.createElement(Qh, { content: /*#__PURE__*/ R.createElement(ug, e) }, (n) => /*#__PURE__*/ R.createElement(Boe, {
+ }) : /*#__PURE__*/ R.createElement(Qh, { content: /*#__PURE__*/ R.createElement(ug, e) }, (n) => /*#__PURE__*/ R.createElement(Voe, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function Boe({ props: e, listBoxRef: t, collection: n }) {
+function Voe({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, R.useContext)(ZE), i = uO({
+ let { layoutDelegate: r } = (0, R.useContext)(XE), i = lO({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ R.createElement(hO, {
+ return /*#__PURE__*/ R.createElement(mO, {
state: i,
props: e,
listBoxRef: t
});
}
-function hO({ state: e, props: t, listBoxRef: n }) {
- [t, n] = VE(t, n, KE);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Roe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Cg(), { disabledBehavior: p, disabledKeys: m } = l, h = ty({
+function mO({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = BE(t, n, GE);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = zoe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Cg(), { disabledBehavior: p, disabledKeys: m } = l, h = ny({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, R.useContext)(ZE), b = (0, R.useMemo)(() => t.keyboardDelegate || new rv({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, R.useContext)(XE), b = (0, R.useMemo)(() => t.keyboardDelegate || new iv({
collection: c,
collator: h,
ref: n,
@@ -29227,7 +29227,7 @@ function hO({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Dte({
+ ]), { listBoxProps: x } = Ete({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -29259,7 +29259,7 @@ function hO({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = cy(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = ly(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -29267,7 +29267,7 @@ function hO({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, N = zE({
+ }, N = RE({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -29278,7 +29278,7 @@ function hO({ state: e, props: t, listBoxRef: n }) {
style: { display: "contents" }
}, t.renderEmptyState(M)));
let te = jg(t, { global: !0 });
- return /*#__PURE__*/ R.createElement(e_, null, /*#__PURE__*/ R.createElement(GE.div, {
+ return /*#__PURE__*/ R.createElement(e_, null, /*#__PURE__*/ R.createElement(WE.div, {
...H(te, N, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -29289,55 +29289,55 @@ function hO({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ R.createElement(RE, { values: [
- [pO, t],
- [mO, s],
- [qD, {
+ }, /*#__PURE__*/ R.createElement(LE, { values: [
+ [fO, t],
+ [pO, s],
+ [KD, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [eO, { elementType: "div" }],
- [JD, { render: Uoe }],
- [JE, {
+ [$D, { elementType: "div" }],
+ [qD, { render: Woe }],
+ [qE, {
name: "ListBoxSection",
- render: Voe
+ render: Hoe
}]
- ] }, /*#__PURE__*/ R.createElement(QD, null, /*#__PURE__*/ R.createElement(y, {
+ ] }, /*#__PURE__*/ R.createElement(ZD, null, /*#__PURE__*/ R.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: XD(l, r, C),
- renderDropIndicator: YD(r, C)
+ persistedKeys: YD(l, r, C),
+ renderDropIndicator: JD(r, C)
}))), ee, E));
}
-function Voe(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, R.useContext)(mO), { dragAndDropHooks: a, dropState: o } = (0, R.useContext)(qD), { CollectionBranch: s } = (0, R.useContext)(ZE), [c, l] = HE(), { headingProps: u, groupProps: d } = Ote({
+function Hoe(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, R.useContext)(pO), { dragAndDropHooks: a, dropState: o } = (0, R.useContext)(KD), { CollectionBranch: s } = (0, R.useContext)(XE), [c, l] = VE(), { headingProps: u, groupProps: d } = Dte({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = zE({
+ }), f = RE({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
}), p = jg(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ R.createElement(GE.section, {
+ return delete p.id, /*#__PURE__*/ R.createElement(WE.section, {
...H(p, f, d),
ref: t
- }, /*#__PURE__*/ R.createElement(ZD.Provider, { value: {
+ }, /*#__PURE__*/ R.createElement(XD.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ R.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: YD(a, o)
+ renderDropIndicator: JD(a, o)
})));
}
-var Hoe = /*#__PURE__*/ og(lp, function(e, t, n) {
- let r = Rh(t), i = (0, R.useContext)(mO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(qD), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = kte({
+var Uoe = /*#__PURE__*/ og(lp, function(e, t, n) {
+ let r = Rh(t), i = (0, R.useContext)(pO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(KD), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Ote({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = fy({
+ }, i, r), { hoverProps: p, isHovered: m } = py({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
@@ -29353,7 +29353,7 @@ var Hoe = /*#__PURE__*/ og(lp, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = zE({
+ let y = o && o.isDragging(n.key), b = RE({
...e,
id: void 0,
children: e.children,
@@ -29371,7 +29371,7 @@ var Hoe = /*#__PURE__*/ og(lp, function(e, t, n) {
(0, R.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? GE.a : GE.div, S = jg(e, { global: !0 });
+ let x = e.href ? WE.a : WE.div, S = jg(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ R.createElement(x, {
...H(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -29385,29 +29385,29 @@ var Hoe = /*#__PURE__*/ og(lp, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ R.createElement(RE, { values: [[iD, { slots: {
- [LE]: u,
+ }, /*#__PURE__*/ R.createElement(LE, { values: [[rD, { slots: {
+ [IE]: u,
label: u,
description: d
- } }], [$D, { isSelected: f.isSelected }]] }, b.children));
+ } }], [QD, { isSelected: f.isSelected }]] }, b.children));
});
-function Uoe(e, t) {
+function Woe(e, t) {
t = Rh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(qD), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ R.createElement(Goe, {
+ let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(KD), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ R.createElement(Koe, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Woe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = zE({
+function Goe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = RE({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(GE.div, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(WE.div, {
...n,
...a,
role: "option",
@@ -29415,10 +29415,10 @@ function Woe(e, t) {
"data-drop-target": r || void 0
}));
}
-var Goe = /*#__PURE__*/ (0, R.forwardRef)(Woe);
+var Koe = /*#__PURE__*/ (0, R.forwardRef)(Goe);
og(cp, function(e, t, n) {
- let r = (0, R.useContext)(mO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
- fO((0, R.useMemo)(() => ({
+ let r = (0, R.useContext)(pO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
+ dO((0, R.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -29428,7 +29428,7 @@ og(cp, function(e, t, n) {
o,
r?.collection
]), c);
- let l = zE({
+ let l = RE({
...s,
id: void 0,
children: n.rendered,
@@ -29441,7 +29441,7 @@ og(cp, function(e, t, n) {
width: 0,
height: 0
},
- inert: tO(!0)
+ inert: eO(!0)
}, /*#__PURE__*/ R.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -29450,7 +29450,7 @@ og(cp, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(GE.div, {
+ })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(WE.div, {
...H(jg(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
@@ -29459,11 +29459,11 @@ og(cp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Koe = /*#__PURE__*/ (0, R.createContext)({ placement: "bottom" });
+var qoe = /*#__PURE__*/ (0, R.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function gO(e) {
- let [t, n] = H_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, R.useState)(null);
+function hO(e) {
+ let [t, n] = U_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, R.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -29482,13 +29482,13 @@ function gO(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function _O(e, t = !0) {
+function gO(e, t = !0) {
let [n, r] = (0, R.useState)(!0), i = n && t;
return qp(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), yO(e, i, (0, R.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), vO(e, i, (0, R.useCallback)(() => r(!1), [])), i;
}
-function vO(e, t) {
+function _O(e, t) {
let [n, r] = (0, R.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -29498,11 +29498,11 @@ function vO(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return yO(e, i, (0, R.useCallback)(() => {
+ return vO(e, i, (0, R.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function yO(e, t, n) {
+function vO(e, t, n) {
qp(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
@@ -29531,9 +29531,9 @@ function yO(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var bO = /*#__PURE__*/ (0, R.createContext)(null), xO = /*#__PURE__*/ (0, R.createContext)(null), SO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = VE(e, t, bO);
- let n = (0, R.useContext)(MO), r = gO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = vO(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Kh(), { direction: c } = Cg();
+var yO = /*#__PURE__*/ (0, R.createContext)(null), bO = /*#__PURE__*/ (0, R.createContext)(null), xO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = BE(e, t, yO);
+ let n = (0, R.useContext)(jO), r = hO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = _O(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Kh(), { direction: c } = Cg();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -29544,7 +29544,7 @@ var bO = /*#__PURE__*/ (0, R.createContext)(null), xO = /*#__PURE__*/ (0, R.crea
defaultChildren: null
})), /*#__PURE__*/ R.createElement(R.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ R.createElement(qoe, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ R.createElement(Joe, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -29553,13 +29553,13 @@ var bO = /*#__PURE__*/ (0, R.createContext)(null), xO = /*#__PURE__*/ (0, R.crea
dir: c
});
});
-function qoe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useContext)(xO), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Jte({
+function Joe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useContext)(bO), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Jte({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = _O(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = zE({
+ }, e), m = i.popoverRef, h = gO(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = RE({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -29585,7 +29585,7 @@ function qoe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}, [_.children, r]), [S, C] = (0, R.useState)(null), w = (0, R.useCallback)(() => {
i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- qp(w, [w]), nb({
+ qp(w, [w]), rb({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: w
});
@@ -29594,7 +29594,7 @@ function qoe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
..._.style,
"--trigger-width": _.style?.["--trigger-width"] || S
- }, E = /*#__PURE__*/ R.createElement(GE.div, {
+ }, E = /*#__PURE__*/ R.createElement(WE.div, {
...H(jg(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
@@ -29610,17 +29610,17 @@ function qoe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ R.createElement(Rb, { onDismiss: e.close }), /*#__PURE__*/ R.createElement(Koe.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ R.createElement(zb, { onDismiss: e.close }), /*#__PURE__*/ R.createElement(qoe.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ R.createElement(Rb, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ R.createElement(oy, {
+ } }, x), /*#__PURE__*/ R.createElement(zb, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ R.createElement(sy, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, E) : /*#__PURE__*/ R.createElement(oy, {
+ }, E) : /*#__PURE__*/ R.createElement(sy, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -29635,15 +29635,15 @@ function qoe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ R.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ R.createElement(xO.Provider, { value: o }, E)));
+ }, /*#__PURE__*/ R.createElement(bO.Provider, { value: o }, E)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Joe = /*#__PURE__*/ (0, R.createContext)({});
+var Yoe = /*#__PURE__*/ (0, R.createContext)({});
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function CO(e) {
- let t = gO(e), [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)([]), o = () => {
+function SO(e) {
+ let t = hO(e), [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -29669,7 +29669,7 @@ function CO(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Yoe = class {
+var Xoe = class {
constructor(e, { expandedKeys: t } = {}) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();
let n = (e) => {
@@ -29713,8 +29713,8 @@ var Yoe = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function Xoe(e) {
- let { onExpandedChange: t } = e, [n, r] = H_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = iO(e), a = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = lO(e, (0, R.useCallback)((e) => new Yoe(e, { expandedKeys: n }), [n]), null);
+function Zoe(e) {
+ let { onExpandedChange: t } = e, [n, r] = U_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = rO(e), a = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = cO(e, (0, R.useCallback)((e) => new Xoe(e, { expandedKeys: n }), [n]), null);
return (0, R.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -29722,32 +29722,32 @@ function Xoe(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Zoe(n, e));
+ r(Qoe(n, e));
},
setExpandedKeys: r,
- selectionManager: new oO(o, i)
+ selectionManager: new aO(o, i)
};
}
-function Zoe(e, t) {
+function Qoe(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Menu.mjs
-var wO = /*#__PURE__*/ (0, R.createContext)(null), TO = /*#__PURE__*/ (0, R.createContext)(null), EO = /*#__PURE__*/ (0, R.createContext)(null), DO = /*#__PURE__*/ (0, R.createContext)(null);
-function Qoe(e) {
- let t = CO(e), n = (0, R.useRef)(null), { menuTriggerProps: r, menuProps: i } = Vv({
+var CO = /*#__PURE__*/ (0, R.createContext)(null), wO = /*#__PURE__*/ (0, R.createContext)(null), TO = /*#__PURE__*/ (0, R.createContext)(null), EO = /*#__PURE__*/ (0, R.createContext)(null);
+function $oe(e) {
+ let t = SO(e), n = (0, R.useRef)(null), { menuTriggerProps: r, menuProps: i } = Hv({
...e,
type: "menu"
}, t, n), a = (0, R.useRef)(null);
- return Kh() ? null : /*#__PURE__*/ R.createElement(RE, { values: [
- [wO, {
+ return Kh() ? null : /*#__PURE__*/ R.createElement(LE, { values: [
+ [CO, {
...i,
ref: a
}],
- [MO, t],
- [EO, t],
- [bO, {
+ [jO, t],
+ [TO, t],
+ [yO, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -29755,13 +29755,13 @@ function Qoe(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ R.createElement(mte, {
+ ] }, /*#__PURE__*/ R.createElement(pte, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var $oe = /*#__PURE__*/ (0, R.createContext)(null);
+var ese = /*#__PURE__*/ (0, R.createContext)(null);
(class extends op {
static {
this.type = "submenutrigger";
@@ -29775,24 +29775,24 @@ var $oe = /*#__PURE__*/ (0, R.createContext)(null);
return null;
}
});
-var ese = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- return [e, t] = VE(e, t, wO), /*#__PURE__*/ R.createElement(Qh, { content: /*#__PURE__*/ R.createElement(ug, e) }, (n) => /*#__PURE__*/ R.createElement(tse, {
+var tse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ return [e, t] = BE(e, t, CO), /*#__PURE__*/ R.createElement(Qh, { content: /*#__PURE__*/ R.createElement(ug, e) }, (n) => /*#__PURE__*/ R.createElement(nse, {
props: e,
collection: n,
menuRef: t
}));
});
-function tse({ props: e, collection: t, menuRef: n }) {
- [e, n] = VE(e, n, KE);
- let { filter: r, ...i } = e, a = (0, R.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Xoe({
+function nse({ props: e, collection: t, menuRef: n }) {
+ [e, n] = BE(e, n, GE);
+ let { filter: r, ...i } = e, a = (0, R.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Zoe({
...e,
collection: a,
children: void 0
- }), s = (0, R.useContext)(EO), { isVirtualized: c, CollectionRoot: l } = (0, R.useContext)(ZE), { menuProps: u } = Ate({
+ }), s = (0, R.useContext)(TO), { isVirtualized: c, CollectionRoot: l } = (0, R.useContext)(XE), { menuProps: u } = kte({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = zE({
+ }, o, n), d = RE({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -29803,35 +29803,35 @@ function tse({ props: e, collection: t, menuRef: n }) {
style: { display: "contents" }
}, e.renderEmptyState()));
let p = jg(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(e_, null, /*#__PURE__*/ R.createElement(GE.div, {
+ return /*#__PURE__*/ R.createElement(e_, null, /*#__PURE__*/ R.createElement(WE.div, {
...H(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ R.createElement(RE, { values: [
- [TO, o],
- [eO, { elementType: "div" }],
- [JE, {
+ }, /*#__PURE__*/ R.createElement(LE, { values: [
+ [wO, o],
+ [$D, { elementType: "div" }],
+ [qE, {
name: "MenuSection",
- render: OO
+ render: DO
}],
- [$oe, {
+ [ese, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [AO, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [kO, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [GE, null],
[KE, null],
- [qE, null],
- [DO, o.selectionManager],
- [EO, s ?? CO({})]
- ] }, /*#__PURE__*/ R.createElement(QD, null, /*#__PURE__*/ R.createElement(l, {
+ [EO, o.selectionManager],
+ [TO, s ?? SO({})]
+ ] }, /*#__PURE__*/ R.createElement(ZD, null, /*#__PURE__*/ R.createElement(l, {
collection: o.collection,
- persistedKeys: QE(o.selectionManager.focusedKey),
+ persistedKeys: ZE(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var nse = class extends oO {
+var rse = class extends aO {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -29851,11 +29851,11 @@ var nse = class extends oO {
return this.parent.childFocusStrategy;
}
};
-function OO(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, R.useContext)(TO), { CollectionBranch: a } = (0, R.useContext)(ZE), [o, s] = HE(), { headingProps: c, groupProps: l } = Mte({
+function DO(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, R.useContext)(wO), { CollectionBranch: a } = (0, R.useContext)(XE), [o, s] = VE(), { headingProps: c, groupProps: l } = jte({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = zE({
+ }), u = RE({
...e,
id: void 0,
children: void 0,
@@ -29863,31 +29863,31 @@ function OO(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, R.useContext)(DO), f = iO(e), p = e.selectionMode == null ? d : new nse(d, f), m = BE(AO)?.shouldCloseOnSelect, h = jg(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ R.createElement(GE.section, {
+ }), d = (0, R.useContext)(EO), f = rO(e), p = e.selectionMode == null ? d : new rse(d, f), m = zE(kO)?.shouldCloseOnSelect, h = jg(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ R.createElement(WE.section, {
...H(h, u, l),
ref: t
- }, /*#__PURE__*/ R.createElement(RE, { values: [
- [ZD, {
+ }, /*#__PURE__*/ R.createElement(LE, { values: [
+ [XD, {
...c,
ref: o
}],
- [DO, p],
- [AO, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [EO, p],
+ [kO, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ R.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var kO = /*#__PURE__*/ sg(up, OO), AO = /*#__PURE__*/ (0, R.createContext)(null), jO = /*#__PURE__*/ og(lp, function(e, t, n) {
- [e, t] = VE(e, t, AO);
- let r = BE(AO)?.id, i = (0, R.useContext)(TO), a = Rh(t), o = (0, R.useContext)(DO), { isVirtualized: s } = (0, R.useContext)(ZE), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = jte({
+var OO = /*#__PURE__*/ sg(up, DO), kO = /*#__PURE__*/ (0, R.createContext)(null), AO = /*#__PURE__*/ og(lp, function(e, t, n) {
+ [e, t] = BE(e, t, kO);
+ let r = zE(kO)?.id, i = (0, R.useContext)(wO), a = Rh(t), o = (0, R.useContext)(EO), { isVirtualized: s } = (0, R.useContext)(XE), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Ate({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = fy({ isDisabled: f.isDisabled }), h = zE({
+ }, i, a), { hoverProps: p, isHovered: m } = py({ isDisabled: f.isDisabled }), h = RE({
...e,
id: void 0,
children: n.rendered,
@@ -29901,7 +29901,7 @@ var kO = /*#__PURE__*/ sg(up, OO), AO = /*#__PURE__*/ (0, R.createContext)(null)
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? GE.a : GE.div, _ = jg(e, { global: !0 });
+ }), g = e.href ? WE.a : WE.div, _ = jg(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(g, {
...H(_, h, c, p),
ref: a,
@@ -29914,19 +29914,19 @@ var kO = /*#__PURE__*/ sg(up, OO), AO = /*#__PURE__*/ (0, R.createContext)(null)
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ R.createElement(RE, { values: [
- [iD, { slots: {
- [LE]: l,
+ }, /*#__PURE__*/ R.createElement(LE, { values: [
+ [rD, { slots: {
+ [IE]: l,
label: l,
description: u
} }],
- [Joe, d],
- [$D, { isSelected: f.isSelected }]
+ [Yoe, d],
+ [QD, { isSelected: f.isSelected }]
] }, h.children));
});
og(cp, function(e, t, n) {
- let r = (0, R.useContext)(TO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
- fO((0, R.useMemo)(() => ({
+ let r = (0, R.useContext)(wO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
+ dO((0, R.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -29936,7 +29936,7 @@ og(cp, function(e, t, n) {
o,
r?.collection
]), c);
- let l = zE({
+ let l = RE({
...s,
id: void 0,
children: n.rendered,
@@ -29949,7 +29949,7 @@ og(cp, function(e, t, n) {
width: 0,
height: 0
},
- inert: tO(!0)
+ inert: eO(!0)
}, /*#__PURE__*/ R.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -29958,7 +29958,7 @@ og(cp, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(GE.div, {
+ })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(WE.div, {
...H(jg(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
@@ -29967,56 +29967,56 @@ og(cp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var rse = /*#__PURE__*/ (0, R.createContext)(null), MO = /*#__PURE__*/ (0, R.createContext)(null), NO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+var ise = /*#__PURE__*/ (0, R.createContext)(null), jO = /*#__PURE__*/ (0, R.createContext)(null), MO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = VE(e, t, rse);
- let { dialogProps: r, titleProps: i, contentProps: a } = gte({
+ [e, t] = BE(e, t, ise);
+ let { dialogProps: r, titleProps: i, contentProps: a } = hte({
...e,
"aria-labelledby": n
- }, t), o = (0, R.useContext)(MO);
+ }, t), o = (0, R.useContext)(jO);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = zE({
+ let s = RE({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
}), c = jg(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(GE.section, {
+ return /*#__PURE__*/ R.createElement(WE.section, {
...H(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ R.createElement(RE, { values: [
- [nD, { slots: {
- [LE]: {},
+ }, /*#__PURE__*/ R.createElement(LE, { values: [
+ [tD, { slots: {
+ [IE]: {},
title: {
...i,
level: 2
}
} }],
- [iD, { slots: {
- [LE]: {},
+ [rD, { slots: {
+ [IE]: {},
description: a
} }],
- [eD, { slots: {
- [LE]: {},
+ [$E, { slots: {
+ [IE]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), PO = typeof document < "u" && window.visualViewport;
-function ise() {
+}), NO = typeof document < "u" && window.visualViewport;
+function ase() {
let e = Nm(), [t, n] = (0, R.useState)(() => e ? {
width: 0,
height: 0
- } : FO());
+ } : PO());
return (0, R.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- PO && PO.scale > 1 || e(FO());
+ NO && NO.scale > 1 || e(PO());
}, r, i = (t) => {
- PO && PO.scale > 1 || mg(V(t)) && (r = requestAnimationFrame(() => {
+ NO && NO.scale > 1 || mg(V(t)) && (r = requestAnimationFrame(() => {
let t = Pp();
(!t || !mg(t)) && e({
width: document.documentElement.clientWidth,
@@ -30024,26 +30024,26 @@ function ise() {
});
}));
};
- return e(FO()), am() && sm() && window.addEventListener("blur", i, !0), PO ? PO.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), am() && sm() && window.removeEventListener("blur", i, !0), PO ? PO.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(PO()), am() && sm() && window.addEventListener("blur", i, !0), NO ? NO.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), am() && sm() && window.removeEventListener("blur", i, !0), NO ? NO.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function FO() {
+function PO() {
return {
- width: PO ? Math.min(PO.width * PO.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: PO ? PO.height * PO.scale : document.documentElement.clientHeight
+ width: NO ? Math.min(NO.width * NO.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: NO ? NO.height * NO.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var ase = /*#__PURE__*/ (0, R.createContext)(null), IO = /*#__PURE__*/ (0, R.createContext)(null), ose = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- if ((0, R.useContext)(IO)) return /*#__PURE__*/ R.createElement(RO, {
+var ose = /*#__PURE__*/ (0, R.createContext)(null), FO = /*#__PURE__*/ (0, R.createContext)(null), sse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ if ((0, R.useContext)(FO)) return /*#__PURE__*/ R.createElement(LO, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ R.createElement(LO, {
+ return /*#__PURE__*/ R.createElement(IO, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -30053,15 +30053,15 @@ var ase = /*#__PURE__*/ (0, R.createContext)(null), IO = /*#__PURE__*/ (0, R.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ R.createElement(RO, {
+ }, /*#__PURE__*/ R.createElement(LO, {
...f,
modalRef: t
}, s));
});
-function sse(e, t) {
- [e, t] = VE(e, t, ase);
- let n = (0, R.useContext)(MO), r = gO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Rh(t), o = (0, R.useRef)(null), s = vO(a, i.isOpen), c = vO(o, i.isOpen), l = s || c || e.isExiting || !1, u = Nm();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ R.createElement(cse, {
+function cse(e, t) {
+ [e, t] = BE(e, t, ose);
+ let n = (0, R.useContext)(jO), r = hO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Rh(t), o = (0, R.useRef)(null), s = _O(a, i.isOpen), c = _O(o, i.isOpen), l = s || c || e.isExiting || !1, u = Nm();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ R.createElement(lse, {
...e,
state: i,
isExiting: l,
@@ -30069,9 +30069,9 @@ function sse(e, t) {
modalRef: o
});
}
-var LO = /*#__PURE__*/ (0, R.forwardRef)(sse);
-function cse({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Lte(t, r, n), o = _O(t.overlayRef) || t.isEntering || !1, s = zE({
+var IO = /*#__PURE__*/ (0, R.forwardRef)(cse);
+function lse({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Ite(t, r, n), o = gO(t.overlayRef) || t.isEntering || !1, s = RE({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -30079,7 +30079,7 @@ function cse({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = ise(), l, u;
+ }), c = ase(), l, u;
if (typeof document < "u") {
let e = y_(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
l = e.scrollWidth - t, u = e.scrollHeight - n;
@@ -30091,25 +30091,25 @@ function cse({ UNSTABLE_portalContainer: e, ...t }) {
"--page-width": l === void 0 ? void 0 : l + "px",
"--page-height": u === void 0 ? void 0 : u + "px"
};
- return /*#__PURE__*/ R.createElement(oy, {
+ return /*#__PURE__*/ R.createElement(sy, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ R.createElement(GE.div, {
+ }, /*#__PURE__*/ R.createElement(WE.div, {
...H(jg(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ R.createElement(RE, { values: [[IO, {
+ }, /*#__PURE__*/ R.createElement(LE, { values: [[FO, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [MO, r]] }, s.children)));
+ }], [jO, r]] }, s.children)));
}
-function RO(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, R.useContext)(IO), a = (0, R.useContext)(MO), o = Rh((0, R.useMemo)(() => yh(e.modalRef, n), [e.modalRef, n])), s = _O(o), c = zE({
+function LO(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, R.useContext)(FO), a = (0, R.useContext)(jO), o = Rh((0, R.useMemo)(() => yh(e.modalRef, n), [e.modalRef, n])), s = gO(o), c = RE({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -30118,19 +30118,19 @@ function RO(e) {
state: a
}
});
- return /*#__PURE__*/ R.createElement(GE.div, {
+ return /*#__PURE__*/ R.createElement(WE.div, {
...H(jg(e, { global: !0 }), t),
...c,
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ R.createElement(Rb, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ R.createElement(zb, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var lse = Math.round(Math.random() * 1e10), use = 0;
-function dse(e) {
- let t = (0, R.useMemo)(() => e.name || `radio-group-${lse}-${++use}`, [e.name]), [n, r] = H_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, R.useState)(n), [a, o] = (0, R.useState)(null), s = N_({
+var use = Math.round(Math.random() * 1e10), dse = 0;
+function fse(e) {
+ let t = (0, R.useMemo)(() => e.name || `radio-group-${use}-${++dse}`, [e.name]), [n, r] = U_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, R.useState)(n), [a, o] = (0, R.useState)(null), s = P_({
...e,
value: n
}), c = (t) => {
@@ -30153,16 +30153,16 @@ function dse(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var fse = /*#__PURE__*/ (0, R.createContext)(null), pse = /*#__PURE__*/ (0, R.createContext)(null), zO = /*#__PURE__*/ (0, R.createContext)(null), BO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = VE(e, t, fse);
- let { validationBehavior: n } = BE(oD) || {}, r = e.validationBehavior ?? n ?? "native", i = dse({
+var pse = /*#__PURE__*/ (0, R.createContext)(null), mse = /*#__PURE__*/ (0, R.createContext)(null), RO = /*#__PURE__*/ (0, R.createContext)(null), zO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = BE(e, t, pse);
+ let { validationBehavior: n } = zE(aD) || {}, r = e.validationBehavior ?? n ?? "native", i = fse({
...e,
validationBehavior: r
- }), [a, o] = HE(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Xte({
+ }), [a, o] = VE(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Xte({
...e,
label: o,
validationBehavior: r
- }, i), f = zE({
+ }, i), f = RE({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -30174,7 +30174,7 @@ var fse = /*#__PURE__*/ (0, R.createContext)(null), pse = /*#__PURE__*/ (0, R.cr
},
defaultClassName: "react-aria-RadioGroup"
}), p = jg(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(GE.div, {
+ return /*#__PURE__*/ R.createElement(WE.div, {
...H(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -30183,39 +30183,39 @@ var fse = /*#__PURE__*/ (0, R.createContext)(null), pse = /*#__PURE__*/ (0, R.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ R.createElement(RE, { values: [
- [zO, i],
- [$E, {
+ }, /*#__PURE__*/ R.createElement(LE, { values: [
+ [RO, i],
+ [QE, {
...c,
ref: a,
elementType: "span"
}],
- [iD, { slots: {
+ [rD, { slots: {
description: l,
errorMessage: u
} }],
- [aD, d]
- ] }, /*#__PURE__*/ R.createElement(QD, null, f.children)));
-}), VO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [iD, d]
+ ] }, /*#__PURE__*/ R.createElement(ZD, null, f.children)));
+}), BO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = VE(r, t, pse);
- let i = R.useContext(zO), a = Rh((0, R.useMemo)(() => yh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Yte({
- ...UE(e),
+ [e, t] = BE(r, t, mse);
+ let i = R.useContext(RO), a = Rh((0, R.useMemo)(() => yh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Yte({
+ ...HE(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ R.createElement(HO.Provider, { value: {
+ return /*#__PURE__*/ R.createElement(VO.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ R.createElement(mse, {
+ } }, /*#__PURE__*/ R.createElement(hse, {
...e,
ref: t
}));
-}), HO = /*#__PURE__*/ (0, R.createContext)(null), mse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, R.useContext)(HO), l = R.useContext(zO), { isFocused: u, isFocusVisible: d, focusProps: f } = cy(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = fy({
+}), VO = /*#__PURE__*/ (0, R.createContext)(null), hse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, R.useContext)(VO), l = R.useContext(RO), { isFocused: u, isFocusVisible: d, focusProps: f } = ly(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = py({
...e,
isDisabled: p
- }), g = zE({
+ }), g = RE({
...e,
defaultClassName: s,
values: {
@@ -30230,7 +30230,7 @@ var fse = /*#__PURE__*/ (0, R.createContext)(null), pse = /*#__PURE__*/ (0, R.cr
isRequired: l.isRequired
}
}), _ = jg(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(GE.label, {
+ return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(WE.label, {
...H(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -30242,19 +30242,19 @@ var fse = /*#__PURE__*/ (0, R.createContext)(null), pse = /*#__PURE__*/ (0, R.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ R.createElement(q_, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
+ }, /*#__PURE__*/ R.createElement(J_, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
...H(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function hse(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = gO(e), [i, a] = (0, R.useState)(null), o = (0, R.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function gse(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = hO(e), [i, a] = (0, R.useState)(null), o = (0, R.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = H_((0, R.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = U_((0, R.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -30266,12 +30266,12 @@ function hse(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = uO({
+ }, d = lO({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, R.useMemo)(() => gse(l), [l]),
+ selectedKeys: (0, R.useMemo)(() => _se(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -30281,7 +30281,7 @@ function hse(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, R.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = N_({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, R.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = P_({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, R.useState)(!1), [_] = (0, R.useState)(l);
@@ -30308,16 +30308,16 @@ function hse(e) {
setFocused: g
};
}
-function gse(e) {
+function _se(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Select.mjs
-function _se(e) {
+function vse(e) {
return e && e.__esModule ? e.default : e;
}
-var UO = /*#__PURE__*/ (0, R.createContext)(null), WO = /*#__PURE__*/ (0, R.createContext)(null), vse = /*#__PURE__*/ Gh(function(e, t) {
- [e, t] = VE(e, t, UO);
+var HO = /*#__PURE__*/ (0, R.createContext)(null), UO = /*#__PURE__*/ (0, R.createContext)(null), yse = /*#__PURE__*/ Gh(function(e, t) {
+ [e, t] = BE(e, t, HO);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, R.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -30332,24 +30332,24 @@ var UO = /*#__PURE__*/ (0, R.createContext)(null), WO = /*#__PURE__*/ (0, R.crea
i,
a
]);
- return /*#__PURE__*/ R.createElement(Qh, { content: o }, (n) => /*#__PURE__*/ R.createElement(bse, {
+ return /*#__PURE__*/ R.createElement(Qh, { content: o }, (n) => /*#__PURE__*/ R.createElement(xse, {
props: e,
collection: n,
selectRef: t
}));
-}), yse = [
+}), bse = [
+ QE,
$E,
- eD,
- iD
+ rD
];
-function bse({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = BE(oD) || {}, i = e.validationBehavior ?? r ?? "native", a = hse({
+function xse({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = zE(aD) || {}, i = e.validationBehavior ?? r ?? "native", a = gse({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = cy({ within: !0 }), c = (0, R.useRef)(null), [l, u] = HE(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Zte({
- ...UE(e),
+ }), { isFocusVisible: o, focusProps: s } = ly({ within: !0 }), c = (0, R.useRef)(null), [l, u] = VE(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Zte({
+ ...HE(e),
label: u,
validationBehavior: i
}, a, c), y = (0, R.useMemo)(() => ({
@@ -30366,48 +30366,48 @@ function bse({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = zE({
+ ]), b = RE({
...e,
values: y,
defaultClassName: "react-aria-Select"
}), x = jg(e, { global: !0 });
delete x.id;
let S = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(RE, { values: [
- [UO, e],
- [WO, a],
- [GO, p],
- [$E, {
+ return /*#__PURE__*/ R.createElement(LE, { values: [
+ [HO, e],
+ [UO, a],
+ [WO, p],
+ [QE, {
...d,
ref: l,
elementType: "span"
}],
- [eD, {
+ [$E, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [MO, a],
- [bO, {
+ [jO, a],
+ [yO, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: yse
+ clearContexts: bse
}],
- [pO, {
+ [fO, {
...m,
ref: S
}],
- [mO, a],
- [iD, { slots: {
+ [pO, a],
+ [rD, { slots: {
description: h,
errorMessage: g
} }],
- [aD, v]
- ] }, /*#__PURE__*/ R.createElement(GE.div, {
+ [iD, v]
+ ] }, /*#__PURE__*/ R.createElement(WE.div, {
...H(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -30422,9 +30422,9 @@ function bse({ props: e, selectRef: t, collection: n }) {
autoComplete: e.autoComplete
})));
}
-for (var GO = /*#__PURE__*/ (0, R.createContext)(null), xse = /*#__PURE__*/ Gh(function(e, t) {
- [e, t] = VE(e, t, GO);
- let n = (0, R.useContext)(WO), { placeholder: r } = BE(UO), i = n.selectedItems.map((e) => {
+for (var WO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Gh(function(e, t) {
+ [e, t] = BE(e, t, WO);
+ let n = (0, R.useContext)(UO), { placeholder: r } = zE(HO), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -30436,7 +30436,7 @@ for (var GO = /*#__PURE__*/ (0, R.createContext)(null), xse = /*#__PURE__*/ Gh(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = _te(), o = (0, R.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, R.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = gte(), o = (0, R.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, R.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -30451,7 +30451,7 @@ for (var GO = /*#__PURE__*/ (0, R.createContext)(null), xse = /*#__PURE__*/ Gh(f
a,
o,
i
- ]), u = kg(_se(KD), "react-aria-components"), d = zE({
+ ]), u = kg(vse(GD), "react-aria-components"), d = RE({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -30463,32 +30463,32 @@ for (var GO = /*#__PURE__*/ (0, R.createContext)(null), xse = /*#__PURE__*/ Gh(f
state: n
}
}), f = jg(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(GE.span, {
+ return /*#__PURE__*/ R.createElement(WE.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ R.createElement(iD.Provider, { value: void 0 }, d.children));
-}), Sse = /*#__PURE__*/ (0, R.createContext)(null), KO = /*#__PURE__*/ (0, R.createContext)(null), Cse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ R.createElement(rD.Provider, { value: void 0 }, d.children));
+}), Cse = /*#__PURE__*/ (0, R.createContext)(null), GO = /*#__PURE__*/ (0, R.createContext)(null), wse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = VE(r, t, Sse);
- let i = Rh((0, R.useMemo)(() => yh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = U_(e), o = ene({
- ...UE(e),
+ [e, t] = BE(r, t, Cse);
+ let i = Rh((0, R.useMemo)(() => yh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = W_(e), o = tne({
+ ...HE(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ R.createElement(RE, { values: [[KO, a], [qO, {
+ return /*#__PURE__*/ R.createElement(LE, { values: [[GO, a], [KO, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ R.createElement(wse, {
+ }]] }, /*#__PURE__*/ R.createElement(Tse, {
...e,
ref: t
}));
-}), qO = /*#__PURE__*/ (0, R.createContext)(null), wse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, R.useContext)(qO), { isFocused: f, isFocusVisible: p, focusProps: m } = cy(), h = a || o, g = (0, R.useContext)(KO), { hoverProps: _, isHovered: v } = fy({
+}), KO = /*#__PURE__*/ (0, R.createContext)(null), Tse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, R.useContext)(KO), { isFocused: f, isFocusVisible: p, focusProps: m } = ly(), h = a || o, g = (0, R.useContext)(GO), { hoverProps: _, isHovered: v } = py({
...e,
isDisabled: h
- }), y = zE({
+ }), y = RE({
...e,
defaultClassName: u,
values: {
@@ -30504,7 +30504,7 @@ for (var GO = /*#__PURE__*/ (0, R.createContext)(null), xse = /*#__PURE__*/ Gh(f
state: g
}
}), b = jg(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(GE.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(WE.label, {
...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -30517,11 +30517,11 @@ for (var GO = /*#__PURE__*/ (0, R.createContext)(null), xse = /*#__PURE__*/ Gh(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ R.createElement(q_, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
+ }, /*#__PURE__*/ R.createElement(J_, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
...H(r, m),
ref: l
})), y.children);
-}), JO = 10, YO = 5, Tse = class {
+}), qO = 10, JO = 5, Ese = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -30531,7 +30531,7 @@ for (var GO = /*#__PURE__*/ (0, R.createContext)(null), xse = /*#__PURE__*/ Gh(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > YO && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > JO && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > JO && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > qO && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -30610,11 +30610,11 @@ for (var GO = /*#__PURE__*/ (0, R.createContext)(null), xse = /*#__PURE__*/ Gh(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > YO && i) {
+ if (Math.abs(r - c.lastSwitchY) > JO && i) {
let t = c.preferredTargetIndex || 0;
i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;
}
- if (l > JO && a) {
+ if (l > qO && a) {
let t = c.preferredTargetIndex || 0;
a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;
}
@@ -30629,7 +30629,7 @@ for (var GO = /*#__PURE__*/ (0, R.createContext)(null), xse = /*#__PURE__*/ Gh(f
boundaryContext: null
};
}
-}, Ese = class {
+}, Dse = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -30699,8 +30699,8 @@ for (var GO = /*#__PURE__*/ (0, R.createContext)(null), xse = /*#__PURE__*/ Gh(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, XO = "row-header-column-" + Math.random().toString(36).slice(2), ZO = "row-header-column-" + Math.random().toString(36).slice(2); XO === ZO;) ZO = "row-header-column-" + Math.random().toString(36).slice(2);
-function QO(e, t) {
+}, YO = "row-header-column-" + Math.random().toString(36).slice(2), XO = "row-header-column-" + Math.random().toString(36).slice(2); YO === XO;) XO = "row-header-column-" + Math.random().toString(36).slice(2);
+function ZO(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -30784,13 +30784,13 @@ function QO(e, t) {
textValue: ""
}));
}
-var Dse = class extends Ese {
+var Ose = class extends Dse {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: XO,
+ key: YO,
value: null,
textValue: "",
level: 0,
@@ -30805,7 +30805,7 @@ var Dse = class extends Ese {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: ZO,
+ key: XO,
value: null,
textValue: "",
level: 0,
@@ -30832,7 +30832,7 @@ var Dse = class extends Ese {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = QO(s, a);
+ let l = ZO(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -30858,10 +30858,10 @@ var Dse = class extends Ese {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return qv(this.body.childNodes)?.key ?? null;
+ return Jv(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return Yv(this.body.childNodes)?.key ?? null;
+ return Xv(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -30893,19 +30893,19 @@ var Dse = class extends Ese {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function Ose(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || iO(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function kse(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || rO(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = Kv(n, t);
- e = r === "last" ? Yv(i)?.key ?? null : qv(i)?.key ?? null;
+ let i = qv(n, t);
+ e = r === "last" ? Xv(i)?.key ?? null : Jv(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, R.useMemo)(() => new oO(t, r), [t, r]), s = (0, R.useRef)(null);
+ let o = (0, R.useMemo)(() => new aO(t, r), [t, r]), s = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
@@ -30925,7 +30925,7 @@ function Ose(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...Kv(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...qv(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);
}
@@ -30944,11 +30944,11 @@ function Ose(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var kse = {
+var Ase = {
ascending: "descending",
descending: "ascending"
};
-function Ase(e) {
+function jse(e) {
let [t, n] = (0, R.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, R.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -30959,11 +30959,11 @@ function Ase(e) {
i,
r,
a
- ]), c = lO(e, (0, R.useCallback)((e) => new Dse(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Ose({
+ ]), c = cO(e, (0, R.useCallback)((e) => new Ose(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = kse({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = H_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = U_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -30975,7 +30975,7 @@ function Ase(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? kse[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? Ase[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -30988,7 +30988,7 @@ function Ase(e) {
treeColumn: o
};
}
-function jse(e, t) {
+function Mse(e, t) {
let n = (0, R.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -30998,7 +30998,7 @@ function jse(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var Mse = class extends dp {
+var Nse = class extends dp {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -31013,7 +31013,7 @@ var Mse = class extends dp {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new ak(-2);
+ return new ik(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -31039,7 +31039,7 @@ var Mse = class extends dp {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = QO(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
+ if (this.headerRows = ZO(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
}
get columnCount() {
return this.columns.length;
@@ -31120,11 +31120,11 @@ var Mse = class extends dp {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new nk(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new tk(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Nse = /*#__PURE__*/ (0, R.createContext)(null), Pse = /*#__PURE__*/ (0, R.createContext)(null), $O = /*#__PURE__*/ (0, R.createContext)(null), ek = /*#__PURE__*/ (0, R.createContext)(null), Fse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = VE(e, t, Pse);
- let n = iO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, R.useMemo)(() => ({
+}, Pse = /*#__PURE__*/ (0, R.createContext)(null), Fse = /*#__PURE__*/ (0, R.createContext)(null), QO = /*#__PURE__*/ (0, R.createContext)(null), $O = /*#__PURE__*/ (0, R.createContext)(null), Ise = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = BE(e, t, Fse);
+ let n = rO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, R.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -31134,26 +31134,26 @@ var Mse = class extends dp {
i,
a,
o
- ]), c = /*#__PURE__*/ R.createElement(Rse.Provider, { value: s }, /*#__PURE__*/ R.createElement(ug, e));
+ ]), c = /*#__PURE__*/ R.createElement(zse.Provider, { value: s }, /*#__PURE__*/ R.createElement(ug, e));
return /*#__PURE__*/ R.createElement(Qh, {
content: c,
- createCollection: () => new Mse()
- }, (r) => /*#__PURE__*/ R.createElement(Lse, {
+ createCollection: () => new Nse()
+ }, (r) => /*#__PURE__*/ R.createElement(Rse, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), Ise = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(ZE);
- return n ? /*#__PURE__*/ R.createElement(GE.div, {
+}), Lse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(XE);
+ return n ? /*#__PURE__*/ R.createElement(WE.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(GE.table, {
+ }) : /*#__PURE__*/ R.createElement(WE.table, {
...e,
ref: t
});
-}), tk = {
+}), ek = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -31163,26 +31163,26 @@ var Mse = class extends dp {
rtl: "ArrowRight"
}
};
-function Lse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = VE(e, t, KE);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, R.useContext)(Nse);
+function Rse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = BE(e, t, GE);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, R.useContext)(Pse);
t = Rh((0, R.useMemo)(() => yh(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = H_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ let [l, u] = U_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, R.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = Ase({
+ let d = jse({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = jse(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, R.useContext)(ZE), { dragAndDropHooks: _ } = e, { gridProps: v } = one({
+ }), f = Mse(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, R.useContext)(XE), { dragAndDropHooks: _ } = e, { gridProps: v } = sne({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, R.useRef)(b), (0, R.useRef)(x), (0, R.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, R.useRef)(null), { direction: O } = Cg(), [k] = (0, R.useState)(() => new Tse());
+ let S, C, w, T = !1, E = null, D = (0, R.useRef)(null), { direction: O } = Cg(), [k] = (0, R.useState)(() => new Ese());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -31197,7 +31197,7 @@ function Lse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new rv({
+ let e = new iv({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -31217,12 +31217,12 @@ function Lse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === tk.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === tk.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === ek.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === ek.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = cy(), N = zE({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = ly(), N = RE({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -31239,18 +31239,18 @@ function Lse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
width: "min-content"
}));
let F = jg(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(RE, { values: [
- [$O, f],
- [ek, P],
- [qD, {
+ return /*#__PURE__*/ R.createElement(LE, { values: [
+ [QO, f],
+ [$O, P],
+ [KD, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [JD, { render: Jse }],
- [KE, null],
- [qE, null]
- ] }, /*#__PURE__*/ R.createElement(e_, null, /*#__PURE__*/ R.createElement(Ise, {
+ [qD, { render: Yse }],
+ [GE, null],
+ [KE, null]
+ ] }, /*#__PURE__*/ R.createElement(e_, null, /*#__PURE__*/ R.createElement(Lse, {
...H(F, N, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -31260,45 +31260,45 @@ function Lse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ R.createElement(QD, null, /*#__PURE__*/ R.createElement(g, {
+ }, /*#__PURE__*/ R.createElement(ZD, null, /*#__PURE__*/ R.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: XD(y, _, C)
+ persistedKeys: YD(y, _, C)
})))), E);
}
-var Rse = /*#__PURE__*/ (0, R.createContext)(null), nk = class extends op {
+var zse = /*#__PURE__*/ (0, R.createContext)(null), tk = class extends op {
static {
this.type = "tableheader";
}
-}, zse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(ZE);
- return n ? /*#__PURE__*/ R.createElement(GE.div, {
+}, Bse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(XE);
+ return n ? /*#__PURE__*/ R.createElement(WE.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(GE.thead, {
+ }) : /*#__PURE__*/ R.createElement(WE.thead, {
...e,
ref: t
});
-}), rk = /*#__PURE__*/ sg(nk, (e, t) => {
- let n = (0, R.useContext)($O).collection, r = gp({
+}), nk = /*#__PURE__*/ sg(tk, (e, t) => {
+ let n = (0, R.useContext)(QO).collection, r = gp({
items: n.headerRows,
children: (0, R.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ R.createElement(Vse, { item: e });
+ case "headerrow": return /*#__PURE__*/ R.createElement(Hse, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = rS(), { hoverProps: a, isHovered: o } = fy({
+ }), { rowGroupProps: i } = nS(), { hoverProps: a, isHovered: o } = py({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = zE({
+ }), s = RE({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ R.createElement(zse, {
+ return /*#__PURE__*/ R.createElement(Bse, {
...H(jg(e, { global: !0 }), i, a),
...s,
ref: t,
@@ -31307,8 +31307,8 @@ var Rse = /*#__PURE__*/ (0, R.createContext)(null), nk = class extends op {
}, (e) => /*#__PURE__*/ R.createElement(ug, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), Bse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(ZE);
+}, e.children)), Vse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(XE);
return n ? /*#__PURE__*/ R.createElement("div", {
...e,
ref: t
@@ -31317,41 +31317,41 @@ var Rse = /*#__PURE__*/ (0, R.createContext)(null), nk = class extends op {
ref: t
});
});
-function Vse({ item: e }) {
- let t = (0, R.useRef)(null), n = (0, R.useContext)($O), { isVirtualized: r, CollectionBranch: i } = (0, R.useContext)(ZE), { rowProps: a } = une({
+function Hse({ item: e }) {
+ let t = (0, R.useRef)(null), n = (0, R.useContext)(QO), { isVirtualized: r, CollectionBranch: i } = (0, R.useContext)(XE), { rowProps: a } = dne({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = _ne(n);
- return /*#__PURE__*/ R.createElement(Bse, {
+ }, n, t), { checkboxProps: o } = vne(n);
+ return /*#__PURE__*/ R.createElement(Vse, {
...a,
ref: t
- }, /*#__PURE__*/ R.createElement(RE, { values: [[sD, { slots: { selection: o } }], [cD, { slots: { selection: o } }]] }, /*#__PURE__*/ R.createElement(i, {
+ }, /*#__PURE__*/ R.createElement(LE, { values: [[oD, { slots: { selection: o } }], [sD, { slots: { selection: o } }]] }, /*#__PURE__*/ R.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Hse = class extends op {
+var Use = class extends op {
static {
this.type = "column";
}
-}, Use = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(ZE);
- return n ? /*#__PURE__*/ R.createElement(GE.div, {
+}, Wse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(XE);
+ return n ? /*#__PURE__*/ R.createElement(WE.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(GE.th, {
+ }) : /*#__PURE__*/ R.createElement(WE.th, {
...e,
ref: t
});
-}), ik = /*#__PURE__*/ og(Hse, (e, t, n) => {
- let r = Rh(t), i = (0, R.useContext)($O), { isVirtualized: a } = (0, R.useContext)(ZE), { columnHeaderProps: o, isPressed: s } = lne({
+}), rk = /*#__PURE__*/ og(Use, (e, t, n) => {
+ let r = Rh(t), i = (0, R.useContext)(QO), { isVirtualized: a } = (0, R.useContext)(XE), { columnHeaderProps: o, isPressed: s } = une({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = cy(), d = (0, R.useContext)(ek), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ly(), d = (0, R.useContext)($O), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = fy({ isDisabled: !e.allowsSorting }), h = zE({
+ let { hoverProps: p, isHovered: m } = py({ isDisabled: !e.allowsSorting }), h = RE({
...e,
id: void 0,
children: n.rendered,
@@ -31378,7 +31378,7 @@ var Hse = class extends op {
width: d.getColumnWidth(n.key)
});
let _ = jg(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ R.createElement(Use, {
+ return delete _.id, /*#__PURE__*/ R.createElement(Wse, {
...H(_, o, u, p),
...h,
style: g,
@@ -31390,28 +31390,28 @@ var Hse = class extends op {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ R.createElement(RE, { values: [[Wse, {
+ }, /*#__PURE__*/ R.createElement(LE, { values: [[Gse, {
column: n,
triggerRef: r
- }], [ZE, YE]] }, h.children));
-}), Wse = /*#__PURE__*/ (0, R.createContext)(null), ak = class extends sp {
+ }], [XE, JE]] }, h.children));
+}), Gse = /*#__PURE__*/ (0, R.createContext)(null), ik = class extends sp {
static {
this.type = "tablebody";
}
-}, Gse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(ZE);
- return n ? /*#__PURE__*/ R.createElement(GE.div, {
+}, Kse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(XE);
+ return n ? /*#__PURE__*/ R.createElement(WE.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(GE.tbody, {
+ }) : /*#__PURE__*/ R.createElement(WE.tbody, {
...e,
ref: t
});
-}), ok = /*#__PURE__*/ sg(ak, (e, t, n) => {
- let r = (0, R.useContext)($O), { isVirtualized: i } = (0, R.useContext)(ZE), a = r.collection, { CollectionBranch: o } = (0, R.useContext)(ZE), { dragAndDropHooks: s, dropState: c } = (0, R.useContext)(qD), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), ak = /*#__PURE__*/ sg(ik, (e, t, n) => {
+ let r = (0, R.useContext)(QO), { isVirtualized: i } = (0, R.useContext)(XE), a = r.collection, { CollectionBranch: o } = (0, R.useContext)(XE), { dragAndDropHooks: s, dropState: c } = (0, R.useContext)(KD), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = zE({
+ }, p = RE({
...e,
id: void 0,
children: void 0,
@@ -31420,25 +31420,25 @@ var Hse = class extends op {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ R.createElement(ck, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ R.createElement(sk, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ R.createElement(uk, {
+ }, /*#__PURE__*/ R.createElement(lk, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = rS(), _ = jg(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(Gse, {
+ let { rowGroupProps: g } = nS(), _ = jg(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(Kse, {
...H(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ R.createElement($se, null), /*#__PURE__*/ R.createElement(o, {
+ }, l && /*#__PURE__*/ R.createElement(ece, null), /*#__PURE__*/ R.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: YD(s, c)
+ renderDropIndicator: JD(s, c)
}), m);
});
(class extends sp {
@@ -31446,7 +31446,7 @@ var Hse = class extends op {
this.type = "tablefooter";
}
});
-var sk = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Kse = class extends op {
+var ok = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qse = class extends op {
static {
this.type = "item";
}
@@ -31458,31 +31458,31 @@ var sk = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Ks
}
return null;
}
-}, ck = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(ZE);
- return n ? /*#__PURE__*/ R.createElement(GE.div, {
+}, sk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(XE);
+ return n ? /*#__PURE__*/ R.createElement(WE.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(GE.tr, {
+ }) : /*#__PURE__*/ R.createElement(WE.tr, {
...e,
ref: t
});
-}), lk = /*#__PURE__*/ sg(Kse, (e, t, n) => {
- let r = Rh(t), i = (0, R.useContext)($O), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(qD), { isVirtualized: c, CollectionBranch: l } = (0, R.useContext)(ZE), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = pne({
+}), ck = /*#__PURE__*/ sg(qse, (e, t, n) => {
+ let r = Rh(t), i = (0, R.useContext)(QO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(KD), { isVirtualized: c, CollectionBranch: l } = (0, R.useContext)(XE), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = mne({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = cy(), { isFocusVisible: _, focusProps: v } = cy({ within: !0 }), { hoverProps: y, isHovered: b } = fy({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = ly(), { isFocusVisible: _, focusProps: v } = ly({ within: !0 }), { hoverProps: y, isHovered: b } = py({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = gne({ key: n.key }, i), S;
+ }), { checkboxProps: x } = _ne({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, R.useRef)(null), { visuallyHiddenProps: T } = K_();
+ let C, w = (0, R.useRef)(null), { visuallyHiddenProps: T } = q_();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -31492,7 +31492,7 @@ var sk = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Ks
(0, R.useEffect)(() => {
o && E.current;
}, []);
- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = zE({
+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = RE({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -31514,10 +31514,10 @@ var sk = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Ks
level: n.level + 1
}
}), N = jg(e, { global: !0 });
- return delete N.id, delete N.onClick, /*#__PURE__*/ R.createElement(R.Fragment, null, C && !C.isHidden && /*#__PURE__*/ R.createElement(ck, {
+ return delete N.id, delete N.onClick, /*#__PURE__*/ R.createElement(R.Fragment, null, C && !C.isHidden && /*#__PURE__*/ R.createElement(sk, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ R.createElement(uk, {
+ }, /*#__PURE__*/ R.createElement(lk, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -31526,7 +31526,7 @@ var sk = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Ks
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ R.createElement(ck, {
+ }))), /*#__PURE__*/ R.createElement(sk, {
...H(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -31542,17 +31542,17 @@ var sk = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Ks
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ R.createElement(RE, { values: [
- [sD, { slots: {
- [LE]: {},
+ }, /*#__PURE__*/ R.createElement(LE, { values: [
+ [oD, { slots: {
+ [IE]: {},
selection: x
} }],
- [cD, { slots: {
- [LE]: {},
+ [sD, { slots: {
+ [IE]: {},
selection: x
} }],
- [eD, { slots: {
- [LE]: {},
+ [$E, { slots: {
+ [IE]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -31560,8 +31560,8 @@ var sk = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Ks
style: { pointerEvents: "none" }
}
} }],
- [$D, { isSelected: p.isSelected }],
- [sk, { isFocusVisibleWithinRow: _ }]
+ [QD, { isSelected: p.isSelected }],
+ [ok, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ R.createElement(l, {
collection: i.collection,
parent: n
@@ -31574,29 +31574,29 @@ var sk = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Ks
items: e.columns,
idScope: e.id
}, e.children);
-}), qse = class extends op {
+}), Jse = class extends op {
static {
this.type = "cell";
}
-}, uk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(ZE);
- return n ? /*#__PURE__*/ R.createElement(GE.div, {
+}, lk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(XE);
+ return n ? /*#__PURE__*/ R.createElement(WE.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(GE.td, {
+ }) : /*#__PURE__*/ R.createElement(WE.td, {
...e,
ref: t
});
-}), dk = /*#__PURE__*/ og(qse, (e, t, n) => {
- let r = Rh(t), i = (0, R.useContext)($O), { dragState: a } = (0, R.useContext)(qD), { isVirtualized: o } = (0, R.useContext)(ZE);
+}), uk = /*#__PURE__*/ og(Jse, (e, t, n) => {
+ let r = Rh(t), i = (0, R.useContext)(QO), { dragState: a } = (0, R.useContext)(KD), { isVirtualized: o } = (0, R.useContext)(XE);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = sne({
+ let { gridCellProps: s, isPressed: c } = cne({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = cy(), { hoverProps: f, isHovered: p } = fy({}), { isFocusVisibleWithinRow: m } = (0, R.useContext)(sk), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = zE({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = ly(), { hoverProps: f, isHovered: p } = py({}), { isFocusVisibleWithinRow: m } = (0, R.useContext)(ok), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = RE({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -31616,7 +31616,7 @@ var sk = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Ks
isTreeColumn: n.column.key === i.treeColumn
}
}), S = jg(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ R.createElement(uk, {
+ return delete S.id, /*#__PURE__*/ R.createElement(lk, {
...H(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -31630,14 +31630,14 @@ var sk = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Ks
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ R.createElement(ZE.Provider, { value: YE }, x.children));
+ }, /*#__PURE__*/ R.createElement(XE.Provider, { value: JE }, x.children));
});
-function Jse(e, t) {
+function Yse(e, t) {
t = Rh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(qD), i = (0, R.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(KD), i = (0, R.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ R.createElement(Qse, {
+ return /*#__PURE__*/ R.createElement($se, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -31646,40 +31646,40 @@ function Jse(e, t) {
ref: t
});
}
-var Yse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(ZE);
- return n ? /*#__PURE__*/ R.createElement(GE.div, {
+var Xse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(XE);
+ return n ? /*#__PURE__*/ R.createElement(WE.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(GE.tr, {
+ }) : /*#__PURE__*/ R.createElement(WE.tr, {
...e,
ref: t
});
-}), Xse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(ZE);
- return n ? /*#__PURE__*/ R.createElement(GE.div, {
+}), Zse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(XE);
+ return n ? /*#__PURE__*/ R.createElement(WE.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(GE.td, {
+ }) : /*#__PURE__*/ R.createElement(WE.td, {
...e,
ref: t
});
});
-function Zse(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, R.useContext)($O), { visuallyHiddenProps: c } = K_(), l = zE({
+function Qse(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, R.useContext)(QO), { visuallyHiddenProps: c } = q_(), l = RE({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ R.createElement(Yse, {
+ return /*#__PURE__*/ R.createElement(Xse, {
...jg(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ R.createElement(Xse, {
+ }, /*#__PURE__*/ R.createElement(Zse, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -31690,14 +31690,14 @@ function Zse(e, t) {
ref: i
}), l.children));
}
-var Qse = /*#__PURE__*/ (0, R.forwardRef)(Zse);
-function $se() {
- let e = (0, R.useContext)($O), { dragAndDropHooks: t, dropState: n } = (0, R.useContext)(qD), r = (0, R.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = K_();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ R.createElement(ck, {
+var $se = /*#__PURE__*/ (0, R.forwardRef)(Qse);
+function ece() {
+ let e = (0, R.useContext)(QO), { dragAndDropHooks: t, dropState: n } = (0, R.useContext)(KD), r = (0, R.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = q_();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ R.createElement(sk, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ R.createElement(uk, {
+ }, /*#__PURE__*/ R.createElement(lk, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -31709,8 +31709,8 @@ function $se() {
})));
}
og(cp, function(e, t, n) {
- let r = (0, R.useContext)($O), { isVirtualized: i } = (0, R.useContext)(ZE), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, R.useRef)(null);
- fO((0, R.useMemo)(() => ({
+ let r = (0, R.useContext)(QO), { isVirtualized: i } = (0, R.useContext)(XE), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, R.useRef)(null);
+ dO((0, R.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -31720,7 +31720,7 @@ og(cp, function(e, t, n) {
s,
r?.collection
]), u);
- let d = zE({
+ let d = RE({
...c,
id: void 0,
children: n.rendered,
@@ -31728,10 +31728,10 @@ og(cp, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(ck, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(sk, {
style: { height: 0 },
- inert: tO(!0)
- }, /*#__PURE__*/ R.createElement(uk, { style: {
+ inert: eO(!0)
+ }, /*#__PURE__*/ R.createElement(lk, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ R.createElement("div", {
@@ -31742,14 +31742,14 @@ og(cp, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ R.createElement(ck, {
+ }))), a && d.children && /*#__PURE__*/ R.createElement(sk, {
...H(jg(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ R.createElement(uk, {
+ }, /*#__PURE__*/ R.createElement(lk, {
role: "rowheader",
...p,
style: m
@@ -31757,8 +31757,8 @@ og(cp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function ece(e) {
- let [t, n] = H_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, R.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = uO({
+function tce(e) {
+ let [t, n] = U_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, R.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = lO({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -31781,24 +31781,24 @@ function ece(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function tce(e) {
- let t = ece({
+function nce(e) {
+ let t = tce({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? fk(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? dk(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, R.useRef)(i);
return (0, R.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = fk(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = dk(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function fk(e, t) {
+function dk(e, t) {
let n = null;
if (e) {
for (n = e.getFirstKey(); n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n !== e.getLastKey();) n = e.getKeyAfter(n);
@@ -31808,24 +31808,24 @@ function fk(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var pk = /*#__PURE__*/ (0, R.createContext)(null), mk = /*#__PURE__*/ (0, R.createContext)(null), hk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = VE(e, t, pk);
+var fk = /*#__PURE__*/ (0, R.createContext)(null), pk = /*#__PURE__*/ (0, R.createContext)(null), mk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = BE(e, t, fk);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, R.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ R.createElement(Qh, { content: n }, (n) => /*#__PURE__*/ R.createElement(nce, {
+ }) : n, [n, r]), /*#__PURE__*/ R.createElement(Qh, { content: n }, (n) => /*#__PURE__*/ R.createElement(rce, {
props: e,
collection: n,
tabsRef: t
}));
});
-function nce({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = tce({
+function rce({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = nce({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = cy({ within: !0 }), c = (0, R.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = ly({ within: !0 }), c = (0, R.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -31833,12 +31833,12 @@ function nce({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = zE({
+ ]), l = RE({
...e,
defaultClassName: "react-aria-Tabs",
values: c
}), u = jg(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(GE.div, {
+ return /*#__PURE__*/ R.createElement(WE.div, {
...H(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -31846,20 +31846,20 @@ function nce({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ R.createElement(RE, { values: [[pk, e], [mk, i]] }, l.children));
+ }, /*#__PURE__*/ R.createElement(LE, { values: [[fk, e], [pk, i]] }, l.children));
}
-var gk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- return (0, R.useContext)(mk) ? /*#__PURE__*/ R.createElement(rce, {
+var hk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ return (0, R.useContext)(pk) ? /*#__PURE__*/ R.createElement(ice, {
props: e,
forwardedRef: t
}) : /*#__PURE__*/ R.createElement(ug, e);
});
-function rce({ props: e, forwardedRef: t }) {
- let n = (0, R.useContext)(mk), { CollectionRoot: r } = (0, R.useContext)(ZE), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = BE(pk), o = Rh(t), { tabListProps: s } = bne({
+function ice({ props: e, forwardedRef: t }) {
+ let n = (0, R.useContext)(pk), { CollectionRoot: r } = (0, R.useContext)(XE), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = zE(fk), o = Rh(t), { tabListProps: s } = xne({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = zE({
+ }, n, o), c = RE({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -31868,29 +31868,29 @@ function rce({ props: e, forwardedRef: t }) {
state: n
}
}), l = jg(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ R.createElement(GE.div, {
+ return delete l.id, /*#__PURE__*/ R.createElement(WE.div, {
...H(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ R.createElement(QD, null, /*#__PURE__*/ R.createElement(r, {
+ }, /*#__PURE__*/ R.createElement(ZD, null, /*#__PURE__*/ R.createElement(r, {
collection: n.collection,
- persistedKeys: QE(n.selectionManager.focusedKey)
+ persistedKeys: ZE(n.selectionManager.focusedKey)
})));
}
-var _k = /*#__PURE__*/ og(class extends op {
+var gk = /*#__PURE__*/ og(class extends op {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, R.useContext)(mk), i = Rh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = vne({
+ let r = (0, R.useContext)(pk), i = Rh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = yne({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = cy(), { hoverProps: f, isHovered: p } = fy({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = ly(), { hoverProps: f, isHovered: p } = py({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = zE({
+ }), m = RE({
...e,
id: void 0,
children: n.rendered,
@@ -31903,7 +31903,7 @@ var _k = /*#__PURE__*/ og(class extends op {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? GE.a : GE.div, g = jg(e, { global: !0 });
+ }), h = n.props.href ? WE.a : WE.div, g = jg(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ R.createElement(h, {
...H(g, m, a, l, f),
ref: i,
@@ -31913,26 +31913,26 @@ var _k = /*#__PURE__*/ og(class extends op {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ R.createElement($D.Provider, { value: { isSelected: o } }, m.children));
-}), vk = /*#__PURE__*/ Gh(function(e, t) {
- let n = (0, R.useContext)(mk), r = Rh(t), i = n.selectedKey === e.id, [a, o] = (0, R.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ R.createElement(QD.Provider, { value: { isSelected: o } }, m.children));
+}), _k = /*#__PURE__*/ Gh(function(e, t) {
+ let n = (0, R.useContext)(pk), r = Rh(t), i = n.selectedKey === e.id, [a, o] = (0, R.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = vO(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ R.createElement(ice, {
+ let s = _O(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ R.createElement(ace, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function ice(e) {
- let t = (0, R.useContext)(mk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = xne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = cy(), d = t.selectedKey === e.id, f = _O(r) && !i, p = zE({
+function ace(e) {
+ let t = (0, R.useContext)(pk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Sne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ly(), d = t.selectedKey === e.id, f = gO(r) && !i, p = RE({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: tO(!d),
+ isInert: eO(!d),
isEntering: f,
isExiting: a,
state: t
@@ -31940,31 +31940,31 @@ function ice(e) {
}), m = jg(o, { global: !0 });
delete m.id;
let h = d ? H(m, s, c, p) : H(m, p);
- return /*#__PURE__*/ R.createElement(GE.div, {
+ return /*#__PURE__*/ R.createElement(WE.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: tO(!d || e.inert),
+ inert: eO(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ R.createElement(RE, { values: [[pk, null], [mk, null]] }, /*#__PURE__*/ R.createElement(ZE.Provider, { value: YE }, p.children)));
+ }, /*#__PURE__*/ R.createElement(LE, { values: [[fk, null], [pk, null]] }, /*#__PURE__*/ R.createElement(XE.Provider, { value: JE }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var ace = /*#__PURE__*/ (0, R.createContext)({}), oce = /*#__PURE__*/ (0, R.createContext)(null), sce = /*#__PURE__*/ Gh(function(e, t) {
- [e, t] = VE(e, t, oce);
- let { validationBehavior: n } = BE(oD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useRef)(null);
- [e, i] = VE(e, i, qE);
- let [a, o] = HE(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, R.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = tte({
- ...UE(e),
+var oce = /*#__PURE__*/ (0, R.createContext)({}), sce = /*#__PURE__*/ (0, R.createContext)(null), cce = /*#__PURE__*/ Gh(function(e, t) {
+ [e, t] = BE(e, t, sce);
+ let { validationBehavior: n } = zE(aD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useRef)(null);
+ [e, i] = BE(e, i, KE);
+ let [a, o] = VE(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, R.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = ete({
+ ...HE(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, R.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = zE({
+ }, [i]), h = RE({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -31974,7 +31974,7 @@ var ace = /*#__PURE__*/ (0, R.createContext)({}), oce = /*#__PURE__*/ (0, R.crea
},
defaultClassName: "react-aria-TextField"
}), g = jg(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ R.createElement(GE.div, {
+ return delete g.id, /*#__PURE__*/ R.createElement(WE.div, {
...g,
...h,
ref: t,
@@ -31983,38 +31983,38 @@ var ace = /*#__PURE__*/ (0, R.createContext)({}), oce = /*#__PURE__*/ (0, R.crea
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ R.createElement(RE, { values: [
- [$E, {
+ }, /*#__PURE__*/ R.createElement(LE, { values: [
+ [QE, {
...l,
ref: a
}],
- [dD, {
+ [uD, {
...u,
ref: m
}],
- [ace, {
+ [oce, {
...u,
ref: m
}],
- [uD, {
+ [lD, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [iD, { slots: {
+ [rD, { slots: {
description: d,
errorMessage: f
} }],
- [aD, p]
+ [iD, p]
] }, h.children));
});
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function cce({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, B.jsxs)(boe, {
+function lce({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, B.jsxs)(xoe, {
"data-label": "true",
...a,
- className: wE("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: CE("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, B.jsx)("span", {
@@ -32022,7 +32022,7 @@ function cce({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, B.jsx)(aae, {
+ n && /* @__PURE__ */ (0, B.jsx)(oae, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -32031,33 +32031,33 @@ function cce({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function lce({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, B.jsx)(woe, {
+function uce({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, B.jsx)(Toe, {
slot: e ? "errorMessage" : "description",
...n,
- className: wE("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: CE("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var yk = (0, R.createContext)({});
-function bk({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, B.jsx)(yk.Provider, {
+var vk = (0, R.createContext)({});
+function yk({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, B.jsx)(vk.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, B.jsx)(sce, {
+ children: /* @__PURE__ */ (0, B.jsx)(cce, {
...a,
"data-input-size": e,
- className: wE("group flex h-max w-full flex-col items-start gap-1", r),
+ className: CE("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-bk.displayName = "TextField";
-var xk = TE({
+yk.displayName = "TextField";
+var bk = wE({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -32086,44 +32086,44 @@ var xk = TE({
].join(" "),
icon: "size-5 shrink-0"
});
-function Sk({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, R.useContext)(yk), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, B.jsx)(koe, {
+function xk({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, R.useContext)(vk), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, B.jsx)(Aoe, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => wE(xk.field, d ? xk.fieldWithAddonSize[u] : xk.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => CE(bk.field, d ? bk.fieldWithAddonSize[u] : bk.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, B.jsxs)("div", {
- className: xk.content,
+ className: bk.content,
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
- className: xk.leftSection,
+ className: bk.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, B.jsx)(t, {
- className: xk.icon,
+ className: bk.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, B.jsx)(joe, {
+ }) : null, /* @__PURE__ */ (0, B.jsx)(Moe, {
ref: o,
...c,
- className: wE(xk.input, l.inputClassName, a)
+ className: CE(bk.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, B.jsx)(n, {
- className: xk.icon,
+ className: bk.icon,
"aria-hidden": !0
}) : null]
})
});
}
-Sk.displayName = "InputBase";
-function Ck({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
- return /* @__PURE__ */ (0, B.jsx)(bk, {
+xk.displayName = "InputBase";
+function Sk({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, B.jsx)(yk, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- e && /* @__PURE__ */ (0, B.jsx)(cce, {
+ e && /* @__PURE__ */ (0, B.jsx)(lce, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, B.jsx)(Sk, {
+ /* @__PURE__ */ (0, B.jsx)(xk, {
ref: c,
groupRef: l,
placeholder: r,
@@ -32132,17 +32132,17 @@ function Ck({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, B.jsx)(lce, {
+ t && /* @__PURE__ */ (0, B.jsx)(uce, {
isInvalid: d,
children: t
})
] })
});
}
-Ck.displayName = "Input";
+Sk.displayName = "Input";
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var wk = [
+var Ck = [
"max-w-[calc(100vw-32px)] overflow-y-auto",
"rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown",
"transition duration-150 ease-out",
@@ -32150,10 +32150,10 @@ var wk = [
"data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px]",
"data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left",
"data-[placement=left]:origin-right data-[placement=right]:origin-left"
-].join(" "), uce = "w-[266px]", dce = "flex w-full flex-col gap-1 outline-none", Tk = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), Ek = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), dce = "w-[266px]", fce = "flex w-full flex-col gap-1 outline-none", wk = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), Tk = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function fce(e) {
+function pce(e) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -32167,7 +32167,7 @@ function fce(e) {
})
});
}
-function pce(e) {
+function mce(e) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -32181,7 +32181,7 @@ function pce(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function mce(e, t, n) {
+function hce(e, t, n) {
(0, R.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -32195,7 +32195,7 @@ function mce(e, t, n) {
n
]);
}
-function hce(e, t) {
+function gce(e, t) {
let n = (0, R.useRef)(!1);
return (0, R.useEffect)(() => {
if (!e) return;
@@ -32209,33 +32209,33 @@ function hce(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var Dk = (0, R.createContext)("md");
-function Ok({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var Ek = (0, R.createContext)("md");
+function Dk({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, R.useRef)(null), u = (0, R.useRef)(null), [d, f] = (0, R.useState)(!1);
- mce(d, () => f(!1), [l, u]);
- let p = hce(d, l);
- return /* @__PURE__ */ (0, B.jsx)(vse, {
+ hce(d, () => f(!1), [l, u]);
+ let p = gce(d, l);
+ return /* @__PURE__ */ (0, B.jsx)(yse, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: wE("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)(tD, {
+ className: CE("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)(eD, {
ref: l,
- className: wE("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, B.jsx)(xse, {
- className: wE("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: CE("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
+ children: [/* @__PURE__ */ (0, B.jsx)(Sse, {
+ className: CE("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, B.jsx)(fce, { className: wE("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, B.jsx)(SO, {
+ }), /* @__PURE__ */ (0, B.jsx)(pce, { className: CE("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, B.jsx)(xO, {
ref: u,
isNonModal: !0,
offset: 4,
- className: wE(uce, wk, "p-2", n),
- children: /* @__PURE__ */ (0, B.jsx)(zoe, {
+ className: CE(dce, Ck, "p-2", n),
+ children: /* @__PURE__ */ (0, B.jsx)(Boe, {
items: a,
- className: wE(dce, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, B.jsx)(Dk.Provider, {
+ className: CE(fce, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, B.jsx)(Ek.Provider, {
value: r,
children: i
})
@@ -32243,31 +32243,31 @@ function Ok({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function kk({ className: e, children: t, ...n }) {
- let r = (0, R.useContext)(Dk);
- return /* @__PURE__ */ (0, B.jsx)(Hoe, {
+function Ok({ className: e, children: t, ...n }) {
+ let r = (0, R.useContext)(Ek);
+ return /* @__PURE__ */ (0, B.jsx)(Uoe, {
...n,
- className: (t) => wE(Tk, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => CE(wk, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function Ak({ className: e, children: t }) {
+function kk({ className: e, children: t }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
- className: wE("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: CE("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function jk({ className: e, children: t }) {
+function Ak({ className: e, children: t }) {
return /* @__PURE__ */ (0, B.jsx)("p", {
- className: wE("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: CE("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function Mk({ label: e, description: t, children: n }) {
+function jk({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: wE("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ className: CE("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, B.jsx)("p", {
@@ -32282,7 +32282,7 @@ function Mk({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var Nk = TE({
+var Mk = wE({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -32306,15 +32306,15 @@ var Nk = TE({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function Pk({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = wE(Nk.base, Nk.size[t], Nk.variant[e], a), l = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
+function Nk({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = CE(Mk.base, Mk.size[t], Mk.variant[e], a), l = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
n ? /* @__PURE__ */ (0, B.jsx)(n, {
- className: Nk.icon[t],
+ className: Mk.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, B.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, B.jsx)(r, {
- className: Nk.icon[t],
+ className: Mk.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -32341,14 +32341,14 @@ function Pk({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/settings/section.tsx
-function Fk({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+function Pk({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
let a = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [n ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, B.jsx)(jk, { children: e })
+ children: /* @__PURE__ */ (0, B.jsx)(Ak, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, B.jsx)(jk, { children: e }), /* @__PURE__ */ (0, B.jsx)(Ak, { children: i })] });
+ }) : /* @__PURE__ */ (0, B.jsx)(Ak, { children: e }), /* @__PURE__ */ (0, B.jsx)(kk, { children: i })] });
return r ? /* @__PURE__ */ (0, B.jsx)("form", {
id: t,
"aria-label": e,
@@ -32363,13 +32363,13 @@ function Fk({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function Ik({ children: e }) {
+function Fk({ children: e }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function Lk({ divided: e = !1, children: t }) {
+function Ik({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@ -32378,7 +32378,7 @@ function Lk({ divided: e = !1, children: t }) {
children: t
});
}
-function Rk({ status: e, children: t }) {
+function Lk({ status: e, children: t }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3",
children: [e ? /* @__PURE__ */ (0, B.jsx)("div", {
@@ -32387,34 +32387,34 @@ function Rk({ status: e, children: t }) {
}) : null, t]
});
}
-function zk({ role: e, children: t }) {
+function Rk({ role: e, children: t }) {
return /* @__PURE__ */ (0, B.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function Bk({ children: e }) {
+function zk({ children: e }) {
return /* @__PURE__ */ (0, B.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function Vk({ children: e }) {
+function Bk({ children: e }) {
return /* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function Hk({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, B.jsx)(Pk, {
+function Vk({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, B.jsx)(Nk, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: TT,
+ trailingIcon: wT,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, B.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -32422,13 +32422,13 @@ function Hk({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function Uk({ children: e }) {
+function Hk({ children: e }) {
return /* @__PURE__ */ (0, B.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function Wk({ term: e, children: t }) {
+function Uk({ term: e, children: t }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
children: [/* @__PURE__ */ (0, B.jsx)("dt", {
@@ -32440,7 +32440,7 @@ function Wk({ term: e, children: t }) {
})]
});
}
-function Gk({ summary: e, defaultOpen: t = !1, children: n }) {
+function Wk({ summary: e, defaultOpen: t = !1, children: n }) {
let r = (0, R.useId)(), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(!1), [s, c] = (0, R.useState)(t);
return /* @__PURE__ */ (0, B.jsxs)("details", {
ref: (e) => {
@@ -32453,7 +32453,7 @@ function Gk({ summary: e, defaultOpen: t = !1, children: n }) {
e.preventDefault(), !(!i.current || !a.current) && (Xe(i.current, a.current, !s), c(!s));
},
className: "flex w-fit cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [/* @__PURE__ */ (0, B.jsx)(_T, {
+ children: [/* @__PURE__ */ (0, B.jsx)(gT, {
"aria-hidden": !0,
className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
@@ -32468,7 +32468,7 @@ function Gk({ summary: e, defaultOpen: t = !1, children: n }) {
})]
});
}
-function gce({ name: e }) {
+function _ce({ name: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -32477,22 +32477,22 @@ function gce({ name: e }) {
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
}
-function Kk({ mark: e }) {
+function Gk({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, B.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, B.jsx)(gce, { name: e });
+ }) : /* @__PURE__ */ (0, B.jsx)(_ce, { name: e });
}
//#endregion
//#region src/react/activity/tasks.ts
-var qk = "/api/tasks", Jk = ["tasks"], _ce = (e, t) => W(`${qk}?${new URLSearchParams({
+var Kk = "/api/tasks", qk = ["tasks"], vce = (e, t) => W(`${Kk}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function Yk(...e) {
+function Jk(...e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);
return [...t.values()].sort((e, t) => {
@@ -32500,26 +32500,26 @@ function Yk(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var vce = 2e3, yce = 1e4, bce = (e) => e?.running.length ? vce : yce, Xk = (e) => W(qk, e);
-async function xce(e) {
+var yce = 2e3, bce = 1e4, xce = (e) => e?.running.length ? yce : bce, Yk = (e) => W(Kk, e);
+async function Sce(e) {
await p.fetchQuery({
- queryKey: Jk,
- queryFn: () => Xk(e)
+ queryKey: qk,
+ queryFn: () => Yk(e)
});
}
-var Zk = {
+var Xk = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Sce = {
+}, Cce = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, Cce = (e) => Sce[e] || e, wce = {
+}, wce = (e) => Cce[e] || e, Tce = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -32549,7 +32549,7 @@ var Zk = {
source: "来源",
cover_network: "封面连不上图片主机"
};
-function Tce(e) {
+function Ece(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -32558,7 +32558,7 @@ function Tce(e) {
}
return t;
}
-function Ece(e, t) {
+function Dce(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -32580,19 +32580,19 @@ function Ece(e, t) {
}
return n;
}
-var Dce = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), Qk = (e) => e.status === "pending" || e.status === "running";
-function Oce(e) {
+var Oce = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), Zk = (e) => e.status === "pending" || e.status === "running";
+function kce(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n, i = e.progress_total || 0;
- return [r, e.error || tA(e.result_summary) || (Qk(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
+ return [r, e.error || eA(e.result_summary) || (Zk(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
}
-function $k(e) {
+function Qk(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
let n = Math.floor(t / 60);
return n < 60 ? `${n} 分 ${t % 60} 秒` : `${Math.floor(n / 60)} 小时 ${n % 60} 分`;
}
-function eA(e) {
+function $k(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -32602,7 +32602,7 @@ function eA(e) {
minute: "2-digit"
});
}
-var kce = /* @__PURE__ */ new Set([
+var Ace = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -32611,23 +32611,23 @@ var kce = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function tA(e) {
- return Object.entries(e || {}).filter(([e, t]) => !kce.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${wce[e] || e} ${t}`).join(" · ");
+function eA(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !Ace.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Tce[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/resource-search.tsx
-function Ace({ className: e }) {
+function jce({ className: e }) {
return /* @__PURE__ */ (0, B.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Qe("") }
});
}
-function jce(e) {
+function Mce(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function nA({ initialCode: e, reason: t, choose: n }) {
- let [r, i] = (0, R.useState)(e), [a, o] = (0, R.useState)(() => jce(t)), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(null), [p, m] = (0, R.useState)(""), [h, g] = (0, R.useState)(""), _ = IE(), v = () => {
+function Nce({ initialCode: e, reason: t, choose: n }) {
+ let [r, i] = (0, R.useState)(e), [a, o] = (0, R.useState)(() => Mce(t)), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(null), [p, m] = (0, R.useState)(""), [h, g] = (0, R.useState)(""), _ = FE(), v = () => {
if (!r.trim() || _.busy) return;
let e = new URLSearchParams({
code: r.trim(),
@@ -32644,17 +32644,17 @@ function nA({ initialCode: e, reason: t, choose: n }) {
"aria-busy": !!_.busy,
className: "flex min-w-0 flex-col gap-4",
children: [
- t ? /* @__PURE__ */ (0, B.jsxs)(zk, { children: [
+ t ? /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
label: "搜索资源",
value: r,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
- leadingIcon: _.busy ? Ace : NT,
+ leadingIcon: _.busy ? jce : MT,
isReadOnly: !!_.busy,
"aria-busy": !!_.busy,
onChange: i,
@@ -32664,7 +32664,7 @@ function nA({ initialCode: e, reason: t, choose: n }) {
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "优先寻找" }), /* @__PURE__ */ (0, B.jsxs)(Ok, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Bk, { children: "优先寻找" }), /* @__PURE__ */ (0, B.jsxs)(Dk, {
"aria-label": "优先寻找",
selectedKey: a,
isDisabled: !!_.busy,
@@ -32672,15 +32672,15 @@ function nA({ initialCode: e, reason: t, choose: n }) {
e !== null && o(String(e));
},
children: [
- /* @__PURE__ */ (0, B.jsx)(kk, {
+ /* @__PURE__ */ (0, B.jsx)(Ok, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, B.jsx)(kk, {
+ /* @__PURE__ */ (0, B.jsx)(Ok, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, B.jsx)(kk, {
+ /* @__PURE__ */ (0, B.jsx)(Ok, {
id: "uncensored",
children: "无码"
})
@@ -32689,33 +32689,33 @@ function nA({ initialCode: e, reason: t, choose: n }) {
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, B.jsx)(Ck, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Sk, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: s,
onChange: c
- }), /* @__PURE__ */ (0, B.jsx)(Ck, {
+ }), /* @__PURE__ */ (0, B.jsx)(Sk, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
})]
}),
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "只查询已启用的自配索引器;最多显示 5 个有做种的候选。清晰度、字幕与无码标记取自来源标题。" }),
- _.busy ? /* @__PURE__ */ (0, B.jsx)(zk, {
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: "只查询已启用的自配索引器;最多显示 5 个有做种的候选。清晰度、字幕与无码标记取自来源标题。" }),
+ _.busy ? /* @__PURE__ */ (0, B.jsx)(Rk, {
role: "status",
children: "正在搜索资源"
}) : null,
- _.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: _.error }) : null,
- d?.error ? /* @__PURE__ */ (0, B.jsx)(zk, {
+ _.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: _.error }) : null,
+ d?.error ? /* @__PURE__ */ (0, B.jsx)(Rk, {
role: "status",
children: d.error
}) : null,
- d?.state === "ready" && !d.items.length ? /* @__PURE__ */ (0, B.jsx)(zk, {
+ d?.state === "ready" && !d.items.length ? /* @__PURE__ */ (0, B.jsx)(Rk, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- d?.warnings.map((e) => /* @__PURE__ */ (0, B.jsx)(zk, { children: e }, e)),
+ d?.warnings.map((e) => /* @__PURE__ */ (0, B.jsx)(Rk, { children: e }, e)),
d?.items.length ? /* @__PURE__ */ (0, B.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: d.items.map((e) => /* @__PURE__ */ (0, B.jsxs)("li", {
@@ -32725,7 +32725,7 @@ function nA({ initialCode: e, reason: t, choose: n }) {
className: "break-words text-body-2-medium text-text-primary",
children: e.name
}),
- /* @__PURE__ */ (0, B.jsx)(zk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: [
`${(e.size / 1024 ** 3).toFixed(2)} GiB`,
`${e.seeders} 个做种`,
e.resolution ? `${e.resolution}p` : "",
@@ -32751,23 +32751,23 @@ function nA({ initialCode: e, reason: t, choose: n }) {
}
//#endregion
//#region src/react/activity/downloads-panel.tsx
-var rA = "/api/downloads", iA = ["downloads"], Mce = "/api/downloads/cancel", Nce = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Pce = {
+var tA = "/api/downloads", nA = ["downloads"], Pce = "/api/downloads/cancel", Fce = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Ice = {
ingested: "lime",
failed: "rose",
cancelled: "yellow",
stalled: "yellow"
-}, Fce = {
+}, Lce = {
submitted: "已提交,远端开始下载后这里会显示进度。",
adopted: "这个磁力已经有任务了,接着跟进那一条,没有重复提交。",
adopted_remote: "远端已经有同一个任务,已接管,没有再扣配额。",
refused: "这个资源被判为违规,不再提交。",
failed: "提交没有成功。"
-}, Ice = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, aA = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
-function Lce({ prefill: e }) {
- let t = TS({
- queryKey: iA,
- queryFn: ({ signal: e }) => W(`${rA}?limit=50`, e),
- refetchInterval: (e) => Nce(e.state.data)
+}, Rce = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, rA = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
+function zce({ prefill: e }) {
+ let t = wS({
+ queryKey: nA,
+ queryFn: ({ signal: e }) => W(`${tA}?limit=50`, e),
+ refetchInterval: (e) => Fce(e.state.data)
}), n = t.data;
if (!n) return t.error ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
@@ -32779,7 +32779,7 @@ function Lce({ prefill: e }) {
tone: "error",
children: U(t.error)
}) : null,
- n.available ? r.length ? /* @__PURE__ */ (0, B.jsx)(Rce, {
+ n.available ? r.length ? /* @__PURE__ */ (0, B.jsx)(Bce, {
snapshot: n,
prefill: e
}) : /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -32792,15 +32792,15 @@ function Lce({ prefill: e }) {
n.tasks.length ? /* @__PURE__ */ (0, B.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: n.tasks.map((e) => /* @__PURE__ */ (0, B.jsx)(Bce, {
+ children: n.tasks.map((e) => /* @__PURE__ */ (0, B.jsx)(Hce, {
task: e,
writable: n.available
}, e.id))
}) : null
] });
}
-function Rce({ snapshot: e, prefill: t }) {
- let n = lS(), r = e.providers.filter((e) => e.configured), [i, a] = (0, R.useState)(r[0].key), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(t?.code ?? ""), [u, d] = (0, R.useState)(r[0].target), [f, p] = (0, R.useState)(null), m = IE(), h = (0, R.useRef)(null);
+function Bce({ snapshot: e, prefill: t }) {
+ let n = cS(), r = e.providers.filter((e) => e.configured), [i, a] = (0, R.useState)(r[0].key), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(t?.code ?? ""), [u, d] = (0, R.useState)(r[0].target), [f, p] = (0, R.useState)(null), m = FE(), h = (0, R.useRef)(null);
(0, R.useEffect)(() => {
t && h.current?.focus();
}, [t]);
@@ -32820,21 +32820,21 @@ function Rce({ snapshot: e, prefill: t }) {
title: t?.title,
origin: t?.origin
};
- p(null), m.run("submit", (e) => G(rA, r, "POST", e), (e) => {
- p(e), e.ok && s(""), n.invalidateQueries({ queryKey: iA });
+ p(null), m.run("submit", (e) => G(tA, r, "POST", e), (e) => {
+ p(e), e.ok && s(""), n.invalidateQueries({ queryKey: nA });
});
},
- children: /* @__PURE__ */ (0, B.jsxs)(Ak, { children: [
- /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
- /* @__PURE__ */ (0, B.jsx)(nA, {
+ children: /* @__PURE__ */ (0, B.jsxs)(kk, { children: [
+ /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Nce, {
initialCode: t?.code ?? "",
reason: t?.searchReason,
choose: (e, t) => {
s(e), l(t), h.current?.focus();
}
}),
- t?.title ? /* @__PURE__ */ (0, B.jsx)(zk, { children: `给「${t.title}」找来的资源,下载完由推送发现登记入库。` }) : null,
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ t?.title ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: `给「${t.title}」找来的资源,下载完由推送发现登记入库。` }) : null,
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
ref: h,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -32845,19 +32845,19 @@ function Rce({ snapshot: e, prefill: t }) {
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "下载到" }), /* @__PURE__ */ (0, B.jsx)(Ok, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Bk, { children: "下载到" }), /* @__PURE__ */ (0, B.jsx)(Dk, {
"aria-label": "下载到",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && _(String(e));
},
- children: r.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: r.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {
id: e.key,
children: e.label
}, e.key))
})]
}),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
label: "目标目录",
placeholder: g.target || "/云下载",
autoComplete: "off",
@@ -32866,7 +32866,7 @@ function Rce({ snapshot: e, prefill: t }) {
value: u,
onChange: d
}),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
@@ -32875,15 +32875,15 @@ function Rce({ snapshot: e, prefill: t }) {
onChange: l
})
] }),
- f ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ f ? /* @__PURE__ */ (0, B.jsx)(Ik, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(zce, { result: f })
+ children: /* @__PURE__ */ (0, B.jsx)(Vce, { result: f })
}) : null,
- m.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ m.error ? /* @__PURE__ */ (0, B.jsx)(Ik, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: m.error })
+ children: /* @__PURE__ */ (0, B.jsx)(zk, { children: m.error })
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Rk, {
+ /* @__PURE__ */ (0, B.jsx)(Lk, {
status: i === "115" ? "115 每提交一次扣一条离线配额,重新提交也算。" : void 0,
children: /* @__PURE__ */ (0, B.jsx)(J, {
type: "submit",
@@ -32895,23 +32895,23 @@ function Rce({ snapshot: e, prefill: t }) {
] })
});
}
-function zce({ result: e }) {
- let t = aA(e.task), n = Fce[e.outcome];
- return e.outcome === "failed" ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: t ? `${n}${t}` : n }) : e.outcome === "refused" ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: n }) : /* @__PURE__ */ (0, B.jsx)(zk, {
+function Vce({ result: e }) {
+ let t = rA(e.task), n = Lce[e.outcome];
+ return e.outcome === "failed" ? /* @__PURE__ */ (0, B.jsx)(zk, { children: t ? `${n}${t}` : n }) : e.outcome === "refused" ? /* @__PURE__ */ (0, B.jsx)(zk, { children: n }) : /* @__PURE__ */ (0, B.jsx)(Rk, {
role: "status",
children: n
});
}
-function Bce({ task: e, writable: t }) {
- let n = lS(), r = IE(), [i, a] = (0, R.useState)(!1), o = aA(e), s = e.state === "failed", c = [
+function Hce({ task: e, writable: t }) {
+ let n = cS(), r = FE(), [i, a] = (0, R.useState)(!1), o = rA(e), s = e.state === "failed", c = [
e.provider_label,
e.code,
e.target,
- eA(e.submitted_at)
+ $k(e.submitted_at)
].filter(Boolean).join(" · "), l = () => {
- n.invalidateQueries({ queryKey: iA });
+ n.invalidateQueries({ queryKey: nA });
}, u = () => {
- r.run("cancel", (t) => G(Mce, { id: e.id }, "POST", t), l);
+ r.run("cancel", (t) => G(Pce, { id: e.id }, "POST", t), l);
}, d = () => {
let t = {
magnet: e.source_uri,
@@ -32921,14 +32921,14 @@ function Bce({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => G(rA, t, "POST", e), l);
+ r.run("resubmit", (e) => G(tA, t, "POST", e), l);
}, f = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
};
return /* @__PURE__ */ (0, B.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: AE({
+ className: kE({
padding: "none",
bordered: "line",
className: s ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -32940,9 +32940,9 @@ function Bce({ task: e, writable: t }) {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, B.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
- children: Ice(e)
- }), /* @__PURE__ */ (0, B.jsx)(DE, {
- color: Pce[e.state] ?? "neutral",
+ children: Rce(e)
+ }), /* @__PURE__ */ (0, B.jsx)(EE, {
+ color: Ice[e.state] ?? "neutral",
children: e.state_label
})]
}),
@@ -32950,7 +32950,7 @@ function Bce({ task: e, writable: t }) {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: c
}),
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, B.jsx)(FE, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, B.jsx)(PE, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -32959,7 +32959,7 @@ function Bce({ task: e, writable: t }) {
className: "min-w-0 break-all text-caption-1-regular text-text-secondary",
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: r.error }) : null,
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2 pt-1",
children: [
@@ -32997,23 +32997,23 @@ function Bce({ task: e, writable: t }) {
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var Vce = {
+var Uce = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function oA({ status: e }) {
- return /* @__PURE__ */ (0, B.jsx)(DE, {
- color: Vce[e] ?? "neutral",
- children: Cce(e)
+function iA({ status: e }) {
+ return /* @__PURE__ */ (0, B.jsx)(EE, {
+ color: Uce[e] ?? "neutral",
+ children: wce(e)
});
}
-function Hce({ rows: e }) {
+function Wce({ rows: e }) {
return /* @__PURE__ */ (0, B.jsx)("ul", {
className: "flex min-w-0 flex-col",
children: e.map((e) => {
- let t = Oce(e);
+ let t = kce(e);
return /* @__PURE__ */ (0, B.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
@@ -33023,7 +33023,7 @@ function Hce({ rows: e }) {
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
- /* @__PURE__ */ (0, B.jsx)(oA, { status: e.status }),
+ /* @__PURE__ */ (0, B.jsx)(iA, { status: e.status }),
t ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: t
@@ -33033,12 +33033,12 @@ function Hce({ rows: e }) {
})
});
}
-function sA({ run: e, meta: t, children: n, footer: r, followups: i }) {
+function aA({ run: e, meta: t, children: n, footer: r, followups: i }) {
return /* @__PURE__ */ (0, B.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
"data-run-id": e.id,
- className: AE({
+ className: kE({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -33052,7 +33052,7 @@ function sA({ run: e, meta: t, children: n, footer: r, followups: i }) {
children: [/* @__PURE__ */ (0, B.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, B.jsx)(oA, { status: e.status })]
+ }), /* @__PURE__ */ (0, B.jsx)(iA, { status: e.status })]
}),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -33061,7 +33061,7 @@ function sA({ run: e, meta: t, children: n, footer: r, followups: i }) {
n
]
}),
- i?.length ? /* @__PURE__ */ (0, B.jsx)(Hce, { rows: i }) : null,
+ i?.length ? /* @__PURE__ */ (0, B.jsx)(Wce, { rows: i }) : null,
r ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
children: /* @__PURE__ */ (0, B.jsx)("p", {
@@ -33072,15 +33072,15 @@ function sA({ run: e, meta: t, children: n, footer: r, followups: i }) {
]
});
}
-function Uce({ run: e, followups: t }) {
- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = $k(e.elapsed_seconds), o = [Zk[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, B.jsx)(sA, {
+function Gce({ run: e, followups: t }) {
+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = Qk(e.elapsed_seconds), o = [Xk[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, B.jsx)(aA, {
run: e,
meta: o,
followups: t,
children: n > 0 ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, B.jsx)(FE, {
+ children: [/* @__PURE__ */ (0, B.jsx)(PE, {
label: i,
value: r,
max: n
@@ -33095,20 +33095,20 @@ function Uce({ run: e, followups: t }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, B.jsx)(ME, { label: i })
+ }) : /* @__PURE__ */ (0, B.jsx)(jE, { label: i })
});
}
-function cA({ run: e, followups: t, runs: n }) {
- let r = tA(e.result_summary), i = $k(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
- Zk[e.trigger] || e.trigger,
+function oA({ run: e, followups: t, runs: n }) {
+ let r = eA(e.result_summary), i = Qk(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
+ Xk[e.trigger] || e.trigger,
`近 ${n.length} 轮`,
- `${eA(a.finished_at)} – ${eA(e.finished_at)}`
+ `${$k(a.finished_at)} – ${$k(e.finished_at)}`
] : [
- Zk[e.trigger] || e.trigger,
- eA(e.finished_at),
+ Xk[e.trigger] || e.trigger,
+ $k(e.finished_at),
i && `用时 ${i}`
]).filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, B.jsx)(sA, {
+ return /* @__PURE__ */ (0, B.jsx)(aA, {
run: e,
meta: o,
footer: e.error,
@@ -33119,7 +33119,7 @@ function cA({ run: e, followups: t, runs: n }) {
}) : null
});
}
-function lA({ title: e, children: t }) {
+function sA({ title: e, children: t }) {
let n = (0, R.useId)();
return /* @__PURE__ */ (0, B.jsxs)("section", {
"aria-labelledby": n,
@@ -33131,41 +33131,41 @@ function lA({ title: e, children: t }) {
}), t]
});
}
-function uA({ live: e = !1, children: t }) {
+function cA({ live: e = !1, children: t }) {
return /* @__PURE__ */ (0, B.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function Wce({ prefill: e }) {
- let t = TS({
- queryKey: Jk,
- queryFn: ({ signal: e }) => Xk(e),
- refetchInterval: (e) => bce(e.state.data)
+function Kce({ prefill: e }) {
+ let t = wS({
+ queryKey: qk,
+ queryFn: ({ signal: e }) => Yk(e),
+ refetchInterval: (e) => xce(e.state.data)
}), n = t.data, r = n?.finished, [i, a] = (0, R.useState)([]), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(r);
- r !== c && (l(r), i.length && c && a(Yk(i, c)));
- let u = OS({
- mutationFn: ({ oldest: e }) => _ce(e),
+ r !== c && (l(r), i.length && c && a(Jk(i, c)));
+ let u = DS({
+ mutationFn: ({ oldest: e }) => vce(e),
onSuccess: (e, { shown: t }) => {
- a((n) => Yk(n, t, e.finished || [])), s(!!e.finished_has_more);
+ a((n) => Jk(n, t, e.finished || [])), s(!!e.finished_has_more);
}
}), d = t.error ? U(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, B.jsx)(ME, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
children: d || "读取任务中心失败"
}) });
- let f = Yk(n.finished || [], i), p = [
+ let f = Jk(n.finished || [], i), p = [
...n.running || [],
...n.skipped || [],
...f
- ], m = Tce(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {
+ ], m = Ece(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {
!u.isPending && v && u.mutate({
oldest: v,
shown: f
});
- }, x = _.filter((e) => m.get(e.id)?.some(Qk)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = Ece(w, (e) => Dce(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
- return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [
+ }, x = _.filter((e) => m.get(e.id)?.some(Zk)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = Dce(w, (e) => Oce(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
+ return /* @__PURE__ */ (0, B.jsxs)(ME, { children: [
d ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
children: d
@@ -33174,20 +33174,20 @@ function Wce({ prefill: e }) {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- E ? /* @__PURE__ */ (0, B.jsx)(jE, {
+ E ? /* @__PURE__ */ (0, B.jsx)(AE, {
shell: "plain",
- icon: OT,
+ icon: DT,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- /* @__PURE__ */ (0, B.jsx)(lA, {
+ /* @__PURE__ */ (0, B.jsx)(sA, {
title: "正在进行",
- children: S.length || x.length ? /* @__PURE__ */ (0, B.jsxs)(uA, {
+ children: S.length || x.length ? /* @__PURE__ */ (0, B.jsxs)(cA, {
live: !0,
- children: [S.map((e) => /* @__PURE__ */ (0, B.jsx)(Uce, {
+ children: [S.map((e) => /* @__PURE__ */ (0, B.jsx)(Gce, {
run: e,
followups: m.get(e.id)
- }, e.id)), x.map((e) => /* @__PURE__ */ (0, B.jsx)(cA, {
+ }, e.id)), x.map((e) => /* @__PURE__ */ (0, B.jsx)(oA, {
run: e,
followups: m.get(e.id)
}, e.id))]
@@ -33196,17 +33196,17 @@ function Wce({ prefill: e }) {
children: "没有任务在跑。"
})
}),
- C.length ? /* @__PURE__ */ (0, B.jsx)(lA, {
+ C.length ? /* @__PURE__ */ (0, B.jsx)(sA, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, B.jsx)(uA, { children: C.map((e) => /* @__PURE__ */ (0, B.jsx)(cA, {
+ children: /* @__PURE__ */ (0, B.jsx)(cA, { children: C.map((e) => /* @__PURE__ */ (0, B.jsx)(oA, {
run: e,
followups: m.get(e.id)
}, e.id)) })
}) : null,
- w.length || y ? /* @__PURE__ */ (0, B.jsxs)(lA, {
+ w.length || y ? /* @__PURE__ */ (0, B.jsxs)(sA, {
title: "最近完成",
children: [
- w.length ? /* @__PURE__ */ (0, B.jsx)(uA, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, B.jsx)(cA, {
+ w.length ? /* @__PURE__ */ (0, B.jsx)(cA, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, B.jsx)(oA, {
run: e,
runs: t,
followups: m.get(e.id)
@@ -33218,7 +33218,7 @@ function Wce({ prefill: e }) {
y ? /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: hT,
+ leadingIcon: mT,
className: "self-start",
...X(u.isPending),
onClick: b,
@@ -33227,15 +33227,15 @@ function Wce({ prefill: e }) {
]
}) : null
] }),
- /* @__PURE__ */ (0, B.jsx)(lA, {
+ /* @__PURE__ */ (0, B.jsx)(sA, {
title: "云下载",
- children: /* @__PURE__ */ (0, B.jsx)(Lce, { prefill: e })
+ children: /* @__PURE__ */ (0, B.jsx)(zce, { prefill: e })
})
] });
}
//#endregion
//#region src/react/components/use-stuck.ts
-function dA(e) {
+function lA(e) {
(0, R.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -33253,9 +33253,9 @@ function dA(e) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-function Gce({ title: e, children: t }) {
+function qce({ title: e, children: t }) {
let n = (0, R.useRef)(null);
- return dA(n), /* @__PURE__ */ (0, B.jsxs)("div", {
+ return lA(n), /* @__PURE__ */ (0, B.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -33268,52 +33268,52 @@ function Gce({ title: e, children: t }) {
}), t]
});
}
-function fA({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+function uA({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
let d = (0, R.useRef)(null);
- return dA(d), /* @__PURE__ */ (0, B.jsxs)("div", {
+ return lA(d), /* @__PURE__ */ (0, B.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: wE("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ className: CE("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
children: [
s,
/* @__PURE__ */ (0, B.jsx)("div", {
role: "group",
"aria-label": t,
"data-filter-row": "top",
- className: wE("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ className: CE("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
children: n
}),
/* @__PURE__ */ (0, B.jsx)("div", {
ref: u,
"data-filter-row": "bottom",
"aria-busy": l || void 0,
- className: wE("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: CE("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
})
]
});
}
-var Kce = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-function pA({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var Jce = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+function dA({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: wE(Kce, r),
+ className: CE(Jce, r),
onClick: n,
children: e
});
}
-var qce = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function mA({ children: e, onPress: t, busy: n = !1 }) {
+var Yce = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function fA({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: qce,
+ className: Yce,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -33324,7 +33324,7 @@ function mA({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/components/use-view-glide.ts
-function Jce(e, t, n) {
+function Xce(e, t, n) {
if (!t.contains(e)) return null;
let r = 0, i = 0;
for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;
@@ -33348,11 +33348,11 @@ function Jce(e, t, n) {
h: e.offsetHeight
};
}
-function hA(e, t, n, r, { axis: i = "x" } = {}) {
+function pA(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, R.useRef)(null), o = (0, R.useCallback)((r, o) => {
let s = e.current, c = t.current, l = s?.parentElement;
if (!s) return;
- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? Jce(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? Xce(u, l, i) : null;
if (!d || !d.w) {
s.hidden = !0;
return;
@@ -33394,7 +33394,7 @@ function hA(e, t, n, r, { axis: i = "x" } = {}) {
}
//#endregion
//#region src/react/components/use-moving-surface.ts
-var Yce = {
+var Zce = {
selection: {
type: oi,
duration: .16,
@@ -33406,7 +33406,7 @@ var Yce = {
bounce: 0
}
};
-function gA(e) {
+function mA(e) {
let [t, n] = (0, R.useState)(null);
return (0, R.useLayoutEffect)(() => {
if (!t) return;
@@ -33427,7 +33427,7 @@ function gA(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 = np(n, { transform: [r, E] }, Yce[e]);
+ l = np(n, { transform: [r, E] }, Zce[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -33464,25 +33464,25 @@ function gA(e) {
}
//#endregion
//#region src/react/components/segmented.tsx
-function _A(e) {
- let t = gA("selection");
- return /* @__PURE__ */ (0, B.jsx)(gk, {
+function hA(e) {
+ let t = mA("selection");
+ return /* @__PURE__ */ (0, B.jsx)(hk, {
...e,
ref: t
});
}
-function vA(e) {
- let t = gA("selection");
- return /* @__PURE__ */ (0, B.jsx)(BO, {
+function gA(e) {
+ let t = mA("selection");
+ return /* @__PURE__ */ (0, B.jsx)(zO, {
...e,
ref: t
});
}
-var yA = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", bA = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Xce = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", xA = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", SA = "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)", Zce = { "text-aa": 1.435 }, CA = /* @__PURE__ */ new Map();
-function wA(e) {
- let t = CA.get(e);
+var _A = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", vA = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Qce = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", yA = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", bA = "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)", $ce = { "text-aa": 1.435 }, xA = /* @__PURE__ */ new Map();
+function SA(e) {
+ let t = xA.get(e);
if (t) return t;
- let n = Zce[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, B.jsx)("svg", {
+ let n = $ce[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, B.jsx)("svg", {
"aria-hidden": !0,
viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,
className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,
@@ -33496,23 +33496,23 @@ function wA(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
- return r.displayName = `SpriteGlyph(${e})`, CA.set(e, r), r;
+ return r.displayName = `SpriteGlyph(${e})`, xA.set(e, r), r;
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var Qce = (e) => e === "videos", TA = () => /* @__PURE__ */ (0, B.jsx)("span", {
+var ele = (e) => e === "videos", CA = () => /* @__PURE__ */ (0, B.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
-function $ce(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Qce(t), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (0, R.useRef)(null), _ = hA(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = hA(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
+function tle(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = ele(t), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (0, R.useRef)(null), _ = pA(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = pA(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
return (0, R.useEffect)(() => {
c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);
- }, [c]), /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(EA, {
+ }, [c]), /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(wA, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, B.jsx)(fA, {
+ }), /* @__PURE__ */ (0, B.jsx)(uA, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -33532,13 +33532,13 @@ function $ce(e) {
"data-view-glide": "round",
"aria-hidden": "true"
})] }),
- top: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [n ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(ele, {
+ top: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [n ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(nle, {
keys: n,
view: t,
row: p,
glide: v,
onView: s.setView
- }), l ? /* @__PURE__ */ (0, B.jsx)(TA, {}) : null] }) : null, /* @__PURE__ */ (0, B.jsxs)("div", {
+ }), l ? /* @__PURE__ */ (0, B.jsx)(CA, {}) : null] }) : null, /* @__PURE__ */ (0, B.jsxs)("div", {
ref: m,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
@@ -33558,11 +33558,11 @@ function $ce(e) {
r !== e.k && s.setState(e.k);
},
children: e.label
- }, e.k)), /* @__PURE__ */ (0, B.jsx)(TA, {})]
+ }, e.k)), /* @__PURE__ */ (0, B.jsx)(CA, {})]
}), /* @__PURE__ */ (0, B.jsx)("div", {
ref: h,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, B.jsxs)(pA, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, B.jsxs)(dA, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -33574,10 +33574,10 @@ function $ce(e) {
}, e.k)) : null
})]
})] }),
- bottom: /* @__PURE__ */ (0, B.jsx)(tle, { ...e })
+ bottom: /* @__PURE__ */ (0, B.jsx)(rle, { ...e })
})] });
}
-function ele({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function nle({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -33619,7 +33619,7 @@ function ele({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function EA({ items: e, hidden: t, actions: n }) {
+function wA({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -33639,7 +33639,7 @@ function EA({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function tle(e) {
+function rle(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, B.jsxs)("button", {
@@ -33651,22 +33651,22 @@ function tle(e) {
dangerouslySetInnerHTML: { __html: L("chevron-left") }
}), /* @__PURE__ */ (0, B.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, B.jsx)(nle, {
+ /* @__PURE__ */ (0, B.jsx)(ile, {
text: n,
busy: r
}),
- t === "videos" && i ? /* @__PURE__ */ (0, B.jsx)(rle, {
+ t === "videos" && i ? /* @__PURE__ */ (0, B.jsx)(ale, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, B.jsx)(ile, {
+ t === "photos" && a ? /* @__PURE__ */ (0, B.jsx)(ole, {
head: a,
actions: o,
helpers: s
}) : null
] });
}
-function nle({ text: e, busy: t }) {
+function ile({ text: e, busy: t }) {
return /* @__PURE__ */ (0, B.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, B.jsx)("span", {
@@ -33676,22 +33676,22 @@ function nle({ text: e, busy: t }) {
}) : e
});
}
-function DA({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, B.jsx)(BO, {
+function TA({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, B.jsx)(zO, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: xA,
+ className: yA,
children: r.map(([e, t, n]) => {
- let r = wA(n);
- return /* @__PURE__ */ (0, B.jsx)(VO, {
+ let r = SA(n);
+ return /* @__PURE__ */ (0, B.jsx)(BO, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: SA,
+ className: bA,
children: /* @__PURE__ */ (0, B.jsx)("span", {
title: t,
className: "contents",
@@ -33701,7 +33701,7 @@ function DA({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function OA({ onPress: e, busy: t = !1 }) {
+function EA({ onPress: e, busy: t = !1 }) {
return /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-entity-batch": "",
@@ -33715,27 +33715,27 @@ function OA({ onPress: e, busy: t = !1 }) {
dangerouslySetInnerHTML: { __html: t ? Qe("正在换一批") : L("shuffle") }
});
}
-function rle({ head: e, actions: t }) {
+function ale({ head: e, actions: t }) {
return /* @__PURE__ */ (0, B.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(OA, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, B.jsx)(DA, {
+ /* @__PURE__ */ (0, B.jsx)(EA, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, B.jsx)(TA, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, B.jsx)(kA, {
+ /* @__PURE__ */ (0, B.jsx)(DA, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function kA({ sorts: e, onSort: t }) {
+function DA({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, B.jsx)(B.Fragment, { children: e.map((e) => {
- let n = wA(e.dir === "asc" ? "arrow-up" : "arrow-down");
+ let n = SA(e.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -33747,20 +33747,20 @@ function kA({ sorts: e, onSort: t }) {
}, e.key);
}) });
}
-function ile({ head: e, actions: t, helpers: n }) {
+function ole({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, R.useState)(!1), a = (0, R.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, R.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, B.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, B.jsx)(OA, {
+ e.shuffle ? /* @__PURE__ */ (0, B.jsx)(EA, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, B.jsx)(DA, {
+ /* @__PURE__ */ (0, B.jsx)(TA, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -33776,34 +33776,34 @@ function ile({ head: e, actions: t, helpers: n }) {
}
//#endregion
//#region src/react/catalog-filter/catalog-filter-page.tsx
-var AA = "";
-function ale(e) {
- let t = !e.tiers, n = fle(e.comboHost);
+var OA = "";
+function sle(e) {
+ let t = !e.tiers, n = mle(e.comboHost);
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(EA, {
+ n ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(wA, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, B.jsx)(cle, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, B.jsx)(ole, { ...e })
+ /* @__PURE__ */ (0, B.jsx)(ule, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, B.jsx)(cle, { ...e })
]
});
}
-function ole(e) {
- let { actions: t, helpers: n } = e, r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = hA(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function cle(e) {
+ let { actions: t, helpers: n } = e, r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = pA(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, R.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let l = !e.tiers, u = MA(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let l = !e.tiers, u = AA(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, R.useLayoutEffect)(() => {
Ue(o.current, "tagbar");
- }, [u]), /* @__PURE__ */ (0, B.jsx)(fA, {
+ }, [u]), /* @__PURE__ */ (0, B.jsx)(uA, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -33846,17 +33846,17 @@ function ole(e) {
}), /* @__PURE__ */ (0, B.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || l ? /* @__PURE__ */ (0, B.jsx)(jA, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, B.jsx)(sle, {
+ children: [e.empty || l ? /* @__PURE__ */ (0, B.jsx)(kA, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, B.jsx)(lle, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, B.jsx)(ule, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, B.jsx)(fle, { ...e })
});
}
-function sle({ tag: e, onPress: t }) {
- return /* @__PURE__ */ (0, B.jsxs)(pA, {
+function lle({ tag: e, onPress: t }) {
+ return /* @__PURE__ */ (0, B.jsxs)(dA, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -33867,12 +33867,12 @@ function sle({ tag: e, onPress: t }) {
})]
});
}
-function cle(e) {
+function ule(e) {
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = e.empty || !e.tiers, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useCallback)((e) => () => t.moreTops(e), [t]), c = MA(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = MA(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
+ }, i = e.empty || !e.tiers, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useCallback)((e) => () => t.moreTops(e), [t]), c = AA(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = AA(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
return (0, R.useEffect)(() => {
n.wireDrag(a.current), n.wireDrag(o.current);
}, [
@@ -33885,7 +33885,7 @@ function cle(e) {
children: [u ? /* @__PURE__ */ (0, B.jsx)("div", {
ref: a,
"data-catalog-tier": "performers",
- children: i ? /* @__PURE__ */ (0, B.jsx)(jA, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, B.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, B.jsx)(kA, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -33902,18 +33902,18 @@ function cle(e) {
}) : null, d ? /* @__PURE__ */ (0, B.jsx)("div", {
ref: o,
"data-catalog-tier": "studios",
- children: i ? /* @__PURE__ */ (0, B.jsx)(jA, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, B.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, B.jsx)(kA, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"data-entity-kind": "studio",
"data-entity-name": e.name,
onClick: () => t.openEntity("studio", e.name),
- children: [/* @__PURE__ */ (0, B.jsx)(lle, { studio: e }), e.name]
+ children: [/* @__PURE__ */ (0, B.jsx)(dle, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
-function lle({ studio: e }) {
+function dle({ studio: e }) {
let [t, n] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, B.jsx)("span", {
"data-tier-mark": "",
@@ -33927,7 +33927,7 @@ function lle({ studio: e }) {
}) : e.fallback
});
}
-function jA({ kind: e }) {
+function kA({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -33943,32 +33943,32 @@ function jA({ kind: e }) {
children: [/* @__PURE__ */ (0, B.jsx)("span", {}), /* @__PURE__ */ (0, B.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function ule({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+function fle({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
let [a, o] = (0, R.useState)(!1);
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(dle, { count: e }), /* @__PURE__ */ (0, B.jsxs)("span", {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(ple, { count: e }), /* @__PURE__ */ (0, B.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(OA, {
+ /* @__PURE__ */ (0, B.jsx)(EA, {
onPress: () => {
o(!0), i.reshuffle().finally(() => o(!1));
},
busy: a || t
}),
- n ? /* @__PURE__ */ (0, B.jsx)(DA, {
+ n ? /* @__PURE__ */ (0, B.jsx)(TA, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, B.jsx)(kA, {
+ /* @__PURE__ */ (0, B.jsx)(DA, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function dle({ count: e }) {
+function ple({ count: e }) {
let t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown}` : "";
return (0, R.useLayoutEffect)(() => {
if (!e) {
@@ -33976,7 +33976,7 @@ function dle({ count: e }) {
return;
}
let i = t.current;
- i && (AA && i.dataset.popCount === void 0 && (i.dataset.popCount = AA), AA = r, We(i, r));
+ i && (OA && i.dataset.popCount === void 0 && (i.dataset.popCount = OA), OA = r, We(i, r));
}, [e, r]), e ? /* @__PURE__ */ (0, B.jsx)("span", {
ref: t,
"data-catalog-readout": "",
@@ -33992,7 +33992,7 @@ function dle({ count: e }) {
})
}, "skeleton");
}
-function fle(e) {
+function mle(e) {
let [t, n] = (0, R.useState)(null);
return (0, R.useLayoutEffect)(() => {
if (!e) return;
@@ -34002,7 +34002,7 @@ function fle(e) {
};
}, [e]), t;
}
-function MA(e, t, n, r, i) {
+function AA(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -34048,7 +34048,7 @@ function MA(e, t, n, r, i) {
}
//#endregion
//#region src/react/components/grid-reveal.tsx
-function NA(e, t) {
+function jA(e, t) {
let [n, r] = (0, R.useState)(e ? "skeleton" : "none"), [i] = (0, R.useState)(() => e ? t() : ""), a = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
a.current && Fe(a.current);
@@ -34074,7 +34074,7 @@ function NA(e, t) {
fading: n === "fade"
};
}
-function PA({ message: e, onRetry: t }) {
+function MA({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -34088,7 +34088,7 @@ function PA({ message: e, onRetry: t }) {
}
//#endregion
//#region src/react/components/art-slot.tsx
-function FA({ artwork: e, identity: t = e.html, relayout: n }) {
+function NA({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, R.useState)({
identity: t,
artwork: e
@@ -34108,24 +34108,24 @@ function FA({ artwork: e, identity: t = e.html, relayout: n }) {
}
//#endregion
//#region src/react/components/media-card.tsx
-var ple = 9 / 16;
-function IA({ name: e }) {
+var hle = 9 / 16;
+function PA({ name: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
}
-var mle = {
+var gle = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
};
-function LA(e, t, n) {
- return t === "short" ? ple : b(n);
+function FA(e, t, n) {
+ return t === "short" ? hle : b(n);
}
-function hle(e) {
+function _le(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = j(e), s = i[0] || "", c = ie(e);
return {
avatar: r ? /* @__PURE__ */ (0, B.jsx)("div", {
@@ -34172,7 +34172,7 @@ function hle(e) {
})
};
}
-function gle() {
+function vle() {
return /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -34191,7 +34191,7 @@ function gle() {
})]
});
}
-function _le({ item: e, actions: t }) {
+function yle({ item: e, actions: t }) {
let [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)(!1), o = n?.id === e.id ? n.on : !!e.watch_later;
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-media-later": "",
@@ -34209,21 +34209,21 @@ function _le({ item: e, actions: t }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, B.jsx)(IA, { name: o ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, B.jsx)(PA, { name: o ? "check" : "bookmark-plus" })
})
});
}
-function RA(e, t) {
+function IA(e, t) {
let n = e?.querySelector("video.hv");
!n || !Number.isFinite(n.duration) || (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));
}
-function vle({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {
+function ble({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {
let l = (0, R.useRef)(null), u = (0, R.useRef)(e);
u.current = e;
let d = (0, R.useCallback)((e) => {
let t = u.current;
l.current && l.current !== e && le(l.current), l.current = e, e && (!t.medium || t.medium === "video") && fe(e, t);
- }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = A(e, h, !1, n.javImage), _ = h === "small" ? g.html : A(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v), b = f?.total_size ?? e.size, x = f?.total_duration ?? e.duration, S = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: C, who: w } = hle(e), T = (e.follow_tags || e.tags || []).slice(0, 3), E = [
+ }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = A(e, h, !1, n.javImage), _ = h === "small" ? g.html : A(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v), b = f?.total_size ?? e.size, x = f?.total_duration ?? e.duration, S = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: C, who: w } = _le(e), T = (e.follow_tags || e.tags || []).slice(0, 3), E = [
e.feedback === "dislike" && "dislike",
e.feedback === "seen" && "seen",
e.disposal === "trash" && "dispose",
@@ -34257,9 +34257,9 @@ function vle({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
c(e, r);
}, O = /* @__PURE__ */ (0, B.jsxs)("div", {
"data-media-pic": "",
- style: { "--card-ratio": String(LA(e, t, n)) },
+ style: { "--card-ratio": String(FA(e, t, n)) },
children: [
- g.html ? /* @__PURE__ */ (0, B.jsx)(FA, {
+ g.html ? /* @__PURE__ */ (0, B.jsx)(NA, {
artwork: g,
identity: _,
relayout: (e) => ce(e, h)
@@ -34273,11 +34273,11 @@ function vle({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, B.jsx)(IA, { name: "check" })
+ children: /* @__PURE__ */ (0, B.jsx)(PA, { name: "check" })
}),
/* @__PURE__ */ (0, B.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, B.jsx)(IA, { name: "trash" }), /* @__PURE__ */ (0, B.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, B.jsx)(PA, { name: "trash" }), /* @__PURE__ */ (0, B.jsx)("b", { children: "回收站" })]
}),
f ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-media-group": "",
@@ -34304,8 +34304,8 @@ function vle({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-media-scrub": "",
children: /* @__PURE__ */ (0, B.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, B.jsx)(gle, {}),
- /* @__PURE__ */ (0, B.jsx)(_le, {
+ /* @__PURE__ */ (0, B.jsx)(vle, {}),
+ /* @__PURE__ */ (0, B.jsx)(yle, {
item: e,
actions: s
}),
@@ -34315,27 +34315,27 @@ function vle({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), RA(l.current, -a);
+ e.stopPropagation(), IA(l.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, B.jsx)(IA, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, B.jsx)(PA, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), RA(l.current, a);
+ e.stopPropagation(), IA(l.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, B.jsx)(IA, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, B.jsx)(PA, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, B.jsx)(IA, { name: "expand" })
+ children: /* @__PURE__ */ (0, B.jsx)(PA, { name: "expand" })
})
]
})
@@ -34411,8 +34411,8 @@ function vle({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
]
});
}
-function yle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(!1), l = e.medium === "image" && e.location !== "online", u = String(e.name || ""), d = u.toLowerCase().endsWith(".url") ? "网址快捷方式" : mle[e.medium || ""] || "其它文件", f = l ? "pics" : d === "网址快捷方式" ? "globe" : "hard-drive", p = e.disposal === "trash" ? "restore" : "dispose", m = p === "restore" ? "还原" : "移入回收站", h = (t) => {
+function xle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
+ let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(!1), l = e.medium === "image" && e.location !== "online", u = String(e.name || ""), d = u.toLowerCase().endsWith(".url") ? "网址快捷方式" : gle[e.medium || ""] || "其它文件", f = l ? "pics" : d === "网址快捷方式" ? "globe" : "hard-drive", p = e.disposal === "trash" ? "restore" : "dispose", m = p === "restore" ? "还原" : "移入回收站", h = (t) => {
t.preventDefault(), t.stopPropagation(), !s && (c(!0), i.resourceOperation(e, p).catch(() => {}).finally(() => c(!1)));
}, g = (t) => {
if (o.current) {
@@ -34438,7 +34438,7 @@ function yle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
children: [
/* @__PURE__ */ (0, B.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, B.jsx)(IA, { name: f }), /* @__PURE__ */ (0, B.jsx)("b", { children: d })]
+ children: [/* @__PURE__ */ (0, B.jsx)(PA, { name: f }), /* @__PURE__ */ (0, B.jsx)("b", { children: d })]
}),
l ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-media-art": "thumb",
@@ -34450,11 +34450,11 @@ function yle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
}),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, B.jsx)(IA, { name: "check" })
+ children: /* @__PURE__ */ (0, B.jsx)(PA, { name: "check" })
}),
/* @__PURE__ */ (0, B.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, B.jsx)(IA, { name: "trash" }), /* @__PURE__ */ (0, B.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, B.jsx)(PA, { name: "trash" }), /* @__PURE__ */ (0, B.jsx)("b", { children: "回收站" })]
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -34464,7 +34464,7 @@ function yle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
onClick: h,
"aria-busy": s || void 0,
"aria-disabled": s || void 0,
- children: s ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", { dangerouslySetInnerHTML: { __html: Qe(p === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, B.jsx)("span", { children: _ })] }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(IA, { name: p === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, B.jsx)("span", { children: m })] })
+ children: s ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", { dangerouslySetInnerHTML: { __html: Qe(p === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, B.jsx)("span", { children: _ })] }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(PA, { name: p === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, B.jsx)("span", { children: m })] })
})
]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -34473,7 +34473,7 @@ function yle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, B.jsx)(IA, { name: f })
+ children: /* @__PURE__ */ (0, B.jsx)(PA, { name: f })
}), /* @__PURE__ */ (0, B.jsxs)("div", {
"data-media-text": "",
children: [/* @__PURE__ */ (0, B.jsx)("span", {
@@ -34502,17 +34502,17 @@ function yle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
})]
});
}
-function ble(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, B.jsx)(yle, { ...e }) : /* @__PURE__ */ (0, B.jsx)(vle, { ...e });
+function Sle(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, B.jsx)(xle, { ...e }) : /* @__PURE__ */ (0, B.jsx)(ble, { ...e });
}
-var zA = (0, R.memo)(ble), xle = 1100, Sle = 340, Cle = 5e3;
-function wle(e, t, n) {
+var LA = (0, R.memo)(Sle), Cle = 1100, wle = 340, Tle = 5e3;
+function Ele(e, t, n) {
return new Promise((r) => {
let i = new Image();
n && (i.referrerPolicy = n);
let a = !1, o = (e) => {
a || (a = !0, clearTimeout(c), i.onload = null, i.onerror = null, t.cancels.delete(s), r(e));
- }, s = () => o(!1), c = setTimeout(s, Cle);
+ }, s = () => o(!1), c = setTimeout(s, Tle);
t.cancels.add(s), i.onerror = s, i.onload = () => {
if (!i.naturalWidth) {
o(!1);
@@ -34522,7 +34522,7 @@ function wle(e, t, n) {
}, i.src = e;
});
}
-function BA({ load: e, canFlip: t, referrerPolicy: n }) {
+function RA({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, R.useState)([]), [a, o] = (0, R.useState)(0), [s, c] = (0, R.useState)(null), l = (0, R.useRef)({
live: !1,
generation: 0,
@@ -34564,11 +34564,11 @@ function BA({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => wle(t, e, n)));
+ let s = await Promise.all(a.map((t) => Ele(t, e, n)));
if (!r() || !u.current.canFlip()) return;
let d = a.filter((e, t) => s[t]);
d.length < 2 || (e.count = d.length, e.at = 0, i(d), o(0), c(null), f(420, () => {
- p(), e.cycle = setInterval(p, xle);
+ p(), e.cycle = setInterval(p, Cle);
}));
};
return (0, R.useEffect)(() => d, [d]), {
@@ -34577,7 +34577,7 @@ function BA({ load: e, canFlip: t, referrerPolicy: n }) {
leaving: s,
onPointerEnter: () => {
let e = l.current;
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(Sle, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(wle, () => {
e.armed = null, m();
});
},
@@ -34588,8 +34588,8 @@ function BA({ load: e, canFlip: t, referrerPolicy: n }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var VA = wA("play");
-function Tle({ src: e }) {
+var zA = SA("play");
+function Dle({ src: e }) {
let [t, n] = (0, R.useState)(!1);
return t ? null : /* @__PURE__ */ (0, B.jsx)("img", {
"data-mix-poster": "",
@@ -34602,8 +34602,8 @@ function Tle({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var HA = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
-function Ele({ faces: e, fallback: t, onOpenEntity: n }) {
+var BA = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
+function Ole({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, B.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, B.jsx)("button", {
@@ -34611,18 +34611,18 @@ function Ele({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${HA} cursor-pointer outline-none`,
+ className: `${BA} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: k(e.name, e, de(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, B.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${HA} mt-0.5`,
+ className: `${BA} mt-0.5`,
children: t
});
}
-function UA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
- let b = BA({
+function VA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
+ let b = RA({
load: i,
canFlip: a
}), x = (0, R.useRef)(b.onPointerLeave);
@@ -34649,11 +34649,11 @@ function UA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
style: d === void 0 ? void 0 : { "--card-ratio": String(d) },
className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden",
children: [
- f?.html ? /* @__PURE__ */ (0, B.jsx)(FA, {
+ f?.html ? /* @__PURE__ */ (0, B.jsx)(NA, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, B.jsx)(Tle, { src: r }, r) : /* @__PURE__ */ (0, B.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, B.jsx)(Dle, { src: r }, r) : /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -34683,7 +34683,7 @@ function UA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, B.jsxs)("span", {
"data-mix-badge": "",
className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",
- children: [/* @__PURE__ */ (0, B.jsx)(VA, {
+ children: [/* @__PURE__ */ (0, B.jsx)(zA, {
"aria-hidden": !0,
className: "size-3.75"
}), g ?? `${n} 个视频`]
@@ -34696,8 +34696,8 @@ function UA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, B.jsx)(VA, {})
- }) : /* @__PURE__ */ (0, B.jsx)(Ele, {
+ children: /* @__PURE__ */ (0, B.jsx)(zA, {})
+ }) : /* @__PURE__ */ (0, B.jsx)(Ole, {
faces: o,
fallback: e.slice(0, 1),
onOpenEntity: s
@@ -34721,20 +34721,20 @@ function UA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
-function WA(e) {
- if (e.mode === "items") return /* @__PURE__ */ (0, B.jsx)(Ole, { ...e });
- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${RC(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return /* @__PURE__ */ (0, B.jsx)(kle, { ...e }, t);
+function HA(e) {
+ if (e.mode === "items") return /* @__PURE__ */ (0, B.jsx)(Ale, { ...e });
+ let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${LC(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ return /* @__PURE__ */ (0, B.jsx)(jle, { ...e }, t);
}
-function Dle({ name: e }) {
+function kle({ name: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
}
-function Ole(e) {
- let { actions: t } = e, n = (0, R.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, B.jsx)(zA, {
+function Ale(e) {
+ let { actions: t } = e, n = (0, R.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, B.jsx)(LA, {
item: i,
variant: r,
layout: e.layout,
@@ -34754,15 +34754,15 @@ function Ole(e) {
children: i
});
}
-function kle(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Dre(e) : zC(e), s = i && e.initial ? {
+function jle(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Ore(e) : RC(e), s = i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
offset: 0
}],
pageParams: [0]
- } : void 0, c = kS({
+ } : void 0, c = OS({
queryKey: o.queryKey,
queryFn: ({ pageParam: e, signal: t }) => o.queryFn({
pageParam: e,
@@ -34775,7 +34775,7 @@ function kle(e) {
(0, R.useEffect)(() => {
c.isPending || l.current || (l.current = !0, e.settled?.(e.revision));
}, [c.isPending]);
- let { tiles: u, pageStarts: d } = (0, R.useMemo)(() => jre(c.data?.pages || [], {
+ let { tiles: u, pageStarts: d } = (0, R.useMemo)(() => Mre(c.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -34785,7 +34785,7 @@ function kle(e) {
e.mix,
a,
r.javImage
- ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), m = NA(c.isPending, e.skeletonHtml), h = (0, R.useRef)(null), g = Ale(e, c.data, u, d, h);
+ ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), m = jA(c.isPending, e.skeletonHtml), h = (0, R.useRef)(null), g = Mle(e, c.data, u, d, h);
(0, R.useLayoutEffect)(() => {
c.data && e.onCount?.(p, f);
}, [
@@ -34796,12 +34796,12 @@ function kle(e) {
let _ = (0, R.useCallback)((e, t) => n.open(e, t), [n]), v = (0, R.useCallback)((e, t) => n.openResource(e, t), [n]), y = (0, R.useCallback)((e) => n.openShort(e), [n]), b = (0, R.useCallback)(async () => {
let e = await c.fetchNextPage({ cancelRefetch: !1 });
if (e.isFetchNextPageError) throw e.error;
- }, [c.fetchNextPage]), x = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, B.jsx)(Mle, {
+ }, [c.fetchNextPage]), x = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, B.jsx)(Ple, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, B.jsx)(zA, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, B.jsx)(LA, {
item: i.item,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
layout: r,
@@ -34818,7 +34818,7 @@ function kle(e) {
"data-grid-reveal": m.fading ? "" : void 0,
children: [m.layer, (() => {
if (c.isPending) return null;
- if (!c.data) return /* @__PURE__ */ (0, B.jsx)(PA, {
+ if (!c.data) return /* @__PURE__ */ (0, B.jsx)(MA, {
message: Te(c.error),
onRetry: () => void c.refetch()
});
@@ -34835,15 +34835,15 @@ function kle(e) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: Pre(u, g).map((t) => /* @__PURE__ */ (0, B.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", {
+ children: Fre(u, g).map((t) => /* @__PURE__ */ (0, B.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", {
"data-media-grid": "",
children: t.tiles.map(x)
- }), t.strip ? /* @__PURE__ */ (0, B.jsx)(jle, {
+ }), t.strip ? /* @__PURE__ */ (0, B.jsx)(Nle, {
cut: t.strip,
props: e,
onOpen: y
}) : null] }, t.start))
- }), c.hasNextPage ? /* @__PURE__ */ (0, B.jsx)(GA, {
+ }), c.hasNextPage ? /* @__PURE__ */ (0, B.jsx)(UA, {
entity: i,
load: b,
enabled: () => e.canLoadMore?.() !== !1
@@ -34851,7 +34851,7 @@ function kle(e) {
})()]
});
}
-function GA({ entity: e, load: t, enabled: n, children: r }) {
+function UA({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, R.useRef)(null), a = (0, R.useRef)(!1), o = (0, R.useRef)(!1), [s, c] = (0, R.useState)({
busy: !1,
error: ""
@@ -34912,12 +34912,12 @@ function GA({ entity: e, load: t, enabled: n, children: r }) {
...f,
onClick: () => void u(!0),
dangerouslySetInnerHTML: { __html: Be("继续载入中…") }
- }), s.error ? /* @__PURE__ */ (0, B.jsx)(PA, {
+ }), s.error ? /* @__PURE__ */ (0, B.jsx)(MA, {
message: s.error,
onRetry: () => void u(!0)
}) : null] });
}
-function Ale(e, t, n, r, i) {
+function Mle(e, t, n, r, i) {
let [a, o] = (0, R.useState)([]), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(0), u = (0, R.useRef)(0), d = (0, R.useRef)([]);
return (0, R.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, R.useEffect)(() => {
let n = t?.pages.length || 0;
@@ -34926,7 +34926,7 @@ function Ale(e, t, n, r, i) {
let r = new AbortController();
d.current.push(r);
let i = n - 1;
- W(`/api/items?${Nre(e.filters || {}, l.current)}`, r.signal).then((e) => {
+ W(`/api/items?${Pre(e.filters || {}, l.current)}`, r.signal).then((e) => {
let t = e.items || [];
if (!t.length) {
l.current = 0;
@@ -34942,7 +34942,7 @@ function Ale(e, t, n, r, i) {
}, [t]), (0, R.useLayoutEffect)(() => {
if (!s) return;
c(null);
- let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = Mre(n.length - e, f, d);
+ let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = Nre(n.length - e, f, d);
if (!p.length) return;
let m = e + (p[Math.floor(Math.random() * p.length)] ?? 0);
l.current = s.more ? l.current + 18 : 0, o((e) => [...e, {
@@ -34952,7 +34952,7 @@ function Ale(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function jle({ cut: e, props: t, onOpen: n }) {
+function Nle({ cut: e, props: t, onOpen: n }) {
let r = (0, R.useRef)(null), { wireDrag: i } = t;
return (0, R.useEffect)(() => {
r.current && i(r.current);
@@ -34968,12 +34968,12 @@ function jle({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, B.jsx)(Dle, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, B.jsx)(kle, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, B.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, B.jsx)(zA, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, B.jsx)(LA, {
item: e,
variant: "short",
layout: t.layout,
@@ -34987,17 +34987,17 @@ function jle({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function KA(e, t, n) {
+function WA(e, t, n) {
return ne(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function Mle({ seed: e, layout: t, helpers: n, actions: r }) {
+function Ple({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, R.useRef)(/* @__PURE__ */ new Map()), a = (0, R.useRef)(t);
a.current = t;
let o = re(e, n.tagLabel), s = (0, R.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => BC(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), KA(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = KA(e, t, !1);
- return /* @__PURE__ */ (0, B.jsx)(UA, {
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => zC(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(n.map((e) => [String(e.id), WA(e, t, !0).html])), n.map((e) => String(e.id));
+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = WA(e, t, !1);
+ return /* @__PURE__ */ (0, B.jsx)(VA, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -35007,12 +35007,12 @@ function Mle({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : KA(e, {
+ artworkIdentity: c === "small" ? l.html : WA(e, {
...t,
size: "small"
}, !1).html,
relayoutArt: (e) => ce(e, c),
- ratio: LA(e, "grid", t),
+ ratio: FA(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -35024,31 +35024,31 @@ function Mle({ seed: e, layout: t, helpers: n, actions: r }) {
}
//#endregion
//#region src/react/media-sources.ts
-async function qA(e) {
+async function GA(e) {
await p.fetchQuery({
queryKey: l,
queryFn: () => d(e)
});
}
-var Nle = [
+var Fle = [
"local",
"115",
"pikpak"
-], Ple = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Fle = "/api/duplicates?limit=120", JA = ["duplicates"], YA = "/api/batch", XA = (e) => W(Fle, e);
-async function Ile(e) {
+], Ile = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Lle = "/api/duplicates?limit=120", KA = ["duplicates"], qA = "/api/batch", JA = (e) => W(Lle, e);
+async function Rle(e) {
await Promise.all([p.fetchQuery({
- queryKey: JA,
- queryFn: () => XA(e)
- }), qA(e)]);
+ queryKey: KA,
+ queryFn: () => JA(e)
+ }), GA(e)]);
}
-var ZA = {
+var YA = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, Lle = (e, t) => t.filter((t) => e.some((e) => e.location === t)), QA = (e, t) => Lle(e, t).filter((t) => e.some((e) => e.location !== t)), Rle = (e, t) => t.filter((t) => e.some((e) => QA(e.files, [t]).length));
-function zle(e, t) {
+}, zle = (e, t) => t.filter((t) => e.some((e) => e.location === t)), XA = (e, t) => zle(e, t).filter((t) => e.some((e) => e.location !== t)), Ble = (e, t) => t.filter((t) => e.some((e) => XA(e.files, [t]).length));
+function Vle(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -35067,47 +35067,47 @@ function zle(e, t) {
}
return n;
}
-function Ble(e, t) {
+function Hle(e, t) {
let n = new Set(t);
return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);
}
-async function $A(e, t) {
- for (let n = 0; n < e.length; n += 200) await G(YA, {
+async function ZA(e, t) {
+ for (let n = 0; n < e.length; n += 200) await G(qA, {
ids: e.slice(n, n + 200),
operation: t
});
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var ej = "/api/library-processing", tj = ["library-processing"], nj = (e) => W(ej, e);
-async function rj(e) {
+var QA = "/api/library-processing", $A = ["library-processing"], ej = (e) => W(QA, e);
+async function tj(e) {
await p.fetchQuery({
- queryKey: tj,
- queryFn: () => nj(e)
+ queryKey: $A,
+ queryFn: () => ej(e)
});
}
-var Vle = 2e3, Hle = 1e4, ij = "连接中断,正在重新读取处理进度";
-function Ule(e, t) {
- return e?.status === "running" ? Vle : t ? Hle : !1;
+var Ule = 2e3, Wle = 1e4, nj = "连接中断,正在重新读取处理进度";
+function Gle(e, t) {
+ return e?.status === "running" ? Ule : t ? Wle : !1;
}
-var Wle = {
+var Kle = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, aj = {
+}, rj = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function Gle(e) {
- let t = Object.entries(e).filter(([e, t]) => aj[e] && t > 0).map(([e, t]) => `${aj[e]} ${t} 部`);
+function qle(e) {
+ let t = Object.entries(e).filter(([e, t]) => rj[e] && t > 0).map(([e, t]) => `${rj[e]} ${t} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function oj(e) {
- let t = Wle[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+function ij(e) {
+ let t = Kle[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function Kle(e) {
+function Jle(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -35121,21 +35121,21 @@ function Kle(e) {
log: e.issues_log || ""
} : null;
}
-var sj = "peach.library-processing.announced", qle = 120;
-function Jle(e, t, n) {
+var aj = "peach.library-processing.announced", Yle = 120;
+function Xle(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < qle;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Yle;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(sj) === e.job_id) return;
- e.job_id && localStorage.setItem(sj, e.job_id);
+ if (e.job_id && localStorage.getItem(aj) === e.job_id) return;
+ e.job_id && localStorage.setItem(aj, e.job_id);
} catch {}
t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);
}
}
//#endregion
//#region src/react/media-repair/media-repair.ts
-var cj = "/api/media-repair", lj = ["media-repair"], uj = ["media-repair", "libraries"], Yle = {
+var oj = "/api/media-repair", sj = ["media-repair"], cj = ["media-repair", "libraries"], Zle = {
status: "idle",
library: "",
stage: "",
@@ -35147,33 +35147,33 @@ var cj = "/api/media-repair", lj = ["media-repair"], uj = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, dj = (e) => W(cj, e), fj = async (e) => (await W("/api/libraries", e)).libraries || [];
-async function Xle(e) {
+}, lj = (e) => W(oj, e), uj = async (e) => (await W("/api/libraries", e)).libraries || [];
+async function dj(e) {
await Promise.all([p.fetchQuery({
- queryKey: lj,
- queryFn: () => dj(e)
+ queryKey: sj,
+ queryFn: () => lj(e)
}), p.fetchQuery({
- queryKey: uj,
- queryFn: () => fj(e)
+ queryKey: cj,
+ queryFn: () => uj(e)
})]);
}
-var pj = (e) => Number(e).toLocaleString();
-function Zle(e) {
+var fj = (e) => Number(e).toLocaleString();
+function pj(e) {
if (e.status === "running") {
- let t = e.total ? `${pj(e.checked)} / ${pj(e.total)}` : "准备中";
+ let t = e.total ? `${fj(e.checked)} / ${fj(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${pj(e.repaired)} 部,${pj(e.failed)} 部修不了` : `修好 ${pj(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${fj(e.repaired)} 部,${fj(e.failed)} 部修不了` : `修好 ${fj(e.repaired)} 部` : "";
}
-var Qle = (e) => `${pj(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, $le = "/api/quality-goals?limit=200", mj = ["quality-goals"], hj = (e) => W($le, e);
-async function eue(e) {
+var mj = (e) => `${fj(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Qle = "/api/quality-goals?limit=200", hj = ["quality-goals"], gj = (e) => W(Qle, e);
+async function $le(e) {
await p.fetchQuery({
- queryKey: mj,
- queryFn: () => hj(e)
+ queryKey: hj,
+ queryFn: () => gj(e)
});
}
-var tue = (e) => e.has_cover ? M(e) : `/poster?id=${e.id}&c=4`;
-function gj(e, t, n = 1) {
+var eue = (e) => e.has_cover ? M(e) : `/poster?id=${e.id}&c=4`;
+function _j(e, t, n = 1) {
let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
if (n * 2 + 5 >= t) return r(1, t);
let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;
@@ -35193,21 +35193,21 @@ function gj(e, t, n = 1) {
t
];
}
-function _j(e, t) {
+function vj(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function vj(e, t) {
+function yj(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
//#region src/selection.ts
-function nue(e, t, n, r, i, a = i || !e.has(r)) {
+function tue(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
//#endregion
//#region src/react/time.ts
-function yj(e) {
+function bj(e) {
if (!e) return "";
let t = /[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`, n = new Date(t);
if (Number.isNaN(n.getTime())) return String(e).replace("T", " ").slice(0, 16);
@@ -35216,7 +35216,7 @@ function yj(e) {
}
//#endregion
//#region src/react/review/review.ts
-var rue = "/api/review", iue = "/api/review/decision", aue = "/api/review/genre", bj = ["review"], xj = {
+var nue = "/api/review", rue = "/api/review/decision", iue = "/api/review/genre", xj = ["review"], Sj = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -35226,15 +35226,15 @@ var rue = "/api/review", iue = "/api/review/decision", aue = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, oue = Object.keys(xj), sue = "metadata_fields", Sj = (e) => typeof e == "string" && Object.hasOwn(xj, e), cue = {
+}, aue = Object.keys(Sj), oue = "metadata_fields", Cj = (e) => typeof e == "string" && Object.hasOwn(Sj, e), sue = {
creator_tags: "creator",
western_identity: "creator"
};
-function lue(e, t) {
+function cue(e, t) {
let n = [["candidates", t ? "按候选数量" : "全部待复核"]];
return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;
}
-function Cj(e, t) {
+function wj(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -35251,43 +35251,43 @@ function Cj(e, t) {
}
return [...n.values()];
}
-function uue(e, t, n) {
- return n && Cj(e, t).find((e) => e.key === n)?.rows || e;
+function lue(e, t, n) {
+ return n && wj(e, t).find((e) => e.key === n)?.rows || e;
}
-function due(e, t) {
- let n = _j(e.length, 20), r = vj(t, n);
+function uue(e, t) {
+ let n = vj(e.length, 20), r = yj(t, n);
return {
page: r,
pages: n,
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function fue(e) {
+function due(e) {
return e.length ? [...new Set(e.flatMap((e) => e.candidates?.map((e) => e.source || "") || []))].filter((t) => t && e.every((e) => e.candidates?.filter((e) => e.source === t).length === 1)) : [];
}
-function pue(e, t, n, r, i, a) {
- return nue(e, t, n, r, i, a);
+function fue(e, t, n, r, i, a) {
+ return tue(e, t, n, r, i, a);
}
-function wj(e, t) {
+function Tj(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function Tj(e, t) {
+function Ej(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var Ej = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function mue(e, t) {
- let n = Tj(e, t), r = Ej(e, t);
+var Dj = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function pue(e, t) {
+ let n = Ej(e, t), r = Dj(e, t);
return r ? `${n} · ${r}` : n;
}
-var hue = (e) => e.reason || e.evidence || e.note || e.decision_note || "", gue = (e) => String(e.tags || "").split("|").filter(Boolean), _ue = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function vue(e) {
+var mue = (e) => e.reason || e.evidence || e.note || e.decision_note || "", hue = (e) => String(e.tags || "").split("|").filter(Boolean), gue = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function _ue(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function Dj(e, t, n, r) {
+function Oj(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -35303,19 +35303,19 @@ function Dj(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var yue = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Oj = (e) => W(rue, e), kj = (e) => G(iue, e), Aj = (e, t) => G(aue, {
+var vue = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", kj = (e) => W(nue, e), Aj = (e) => G(rue, e), yue = (e, t) => G(iue, {
genre: e,
tag: t
});
-async function jj(e) {
+async function bue(e) {
await p.fetchQuery({
- queryKey: bj,
- queryFn: () => Oj(e)
+ queryKey: xj,
+ queryFn: () => kj(e)
});
}
-function Mj(e, t) {
+function jj(e, t) {
let n = new Set(t);
- n.size && p.setQueryData(bj, (t) => {
+ n.size && p.setQueryData(xj, (t) => {
if (!t) return t;
let r = t.sections[e] || [], i = r.filter((e) => !n.has(String(e.item_key)));
return i.length === r.length ? t : {
@@ -35331,207 +35331,207 @@ function Mj(e, t) {
};
});
}
-var bue = () => p.invalidateQueries({
- queryKey: bj,
+var xue = () => p.invalidateQueries({
+ queryKey: xj,
exact: !0
});
-function xue(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${yj(e.fetched_at)} 的缓存` : e?.error || t;
+function Sue(e, t) {
+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${bj(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var Sue = "/api/links", Nj = "/api/links/check", Pj = "/api/links/prune", Fj = ["links"], Ij = ["links", "check"], Lj = ["links", "prune"], Rj = {
+var Cue = "/api/links", Mj = "/api/links/check", Nj = "/api/links/prune", Pj = ["links"], Fj = ["links", "check"], Ij = ["links", "prune"], Lj = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function zj(e) {
+async function Rj(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var Bj = (e) => W(Sue, e), Vj = (e) => G(Nj, { status_only: !0 }, "POST", e), Cue = ({ retry: e, checkId: t }) => zj(G(Nj, e ? {
+var zj = (e) => W(Cue, e), Bj = (e) => G(Mj, { status_only: !0 }, "POST", e), wue = ({ retry: e, checkId: t }) => Rj(G(Mj, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), Hj = (e) => W(Pj, e), wue = (e) => zj(G(Pj, {
+} : { restart: !0 })), Vj = (e) => W(Nj, e), Tue = (e) => Rj(G(Nj, {
confirm: !0,
check_id: e,
background: !0
-})), Uj = (e) => Number(e || 0).toLocaleString(), Tue = (e) => `已删除 ${Uj(e.removed)} 条;${e.marked ? `已隐退女优的 ${Uj(e.marked)} 条留作不可点的记录;` : ""}保留 ${Uj(e.recovered)} 条未确认失效的链接。`;
-function Eue(e) {
+})), Hj = (e) => Number(e || 0).toLocaleString(), Eue = (e) => `已删除 ${Hj(e.removed)} 条;${e.marked ? `已隐退女优的 ${Hj(e.marked)} 条留作不可点的记录;` : ""}保留 ${Hj(e.recovered)} 条未确认失效的链接。`;
+function Due(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${Uj(e.checked)} / ${Uj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${Hj(e.checked)} / ${Hj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/settings-panel/settings-data.ts
-var Wj = "/api/settings", Gj = "/api/follow/schedule", Kj = "/api/thumbnail-jobs", qj = ["settings"], Jj = ["follow-schedule"], Yj = ["thumbnail-jobs"], Due = (e) => W(Wj, e), Xj = (e) => W(Gj, e), Zj = (e) => W(Kj, e);
-function Oue(e = p) {
+var Uj = "/api/settings", Wj = "/api/follow/schedule", Gj = "/api/thumbnail-jobs", Kj = ["settings"], qj = ["follow-schedule"], Jj = ["thumbnail-jobs"], Oue = (e) => W(Uj, e), Yj = (e) => W(Wj, e), Xj = (e) => W(Gj, e);
+function kue(e = p) {
return e.fetchQuery({
- queryKey: Jj,
- queryFn: ({ signal: e }) => Xj(e),
+ queryKey: qj,
+ queryFn: ({ signal: e }) => Yj(e),
staleTime: 0
}).catch(() => null), e.fetchQuery({
- queryKey: Yj,
- queryFn: ({ signal: e }) => Zj(e),
+ queryKey: Jj,
+ queryFn: ({ signal: e }) => Xj(e),
staleTime: 0
}).catch(() => null), e.fetchQuery({
- queryKey: qj,
- queryFn: ({ signal: e }) => Due(e),
+ queryKey: Kj,
+ queryFn: ({ signal: e }) => Oue(e),
staleTime: 0
}).catch(() => null);
}
-function Qj() {
- return OS({
- mutationFn: (e) => G(Wj, e),
- onSuccess: (e) => p.setQueryData(qj, e)
+function Zj() {
+ return DS({
+ mutationFn: (e) => G(Uj, e),
+ onSuccess: (e) => p.setQueryData(Kj, e)
});
}
-function kue() {
- return OS({
- mutationFn: (e) => G(Gj, {
+function Aue() {
+ return DS({
+ mutationFn: (e) => G(Wj, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => p.setQueryData(Jj, e)
+ onSuccess: (e) => p.setQueryData(qj, e)
});
}
-function Aue() {
- return OS({
- mutationFn: (e) => G(Kj, { mode: e }),
- onSuccess: (e) => p.setQueryData(Yj, e)
+function jue() {
+ return DS({
+ mutationFn: (e) => G(Gj, { mode: e }),
+ onSuccess: (e) => p.setQueryData(Jj, e)
});
}
-function jue(e) {
- return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${yj(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${yj(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
-}
function Mue(e) {
+ return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${bj(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${bj(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
+}
+function Nue(e) {
return e.status === "running" ? "正在采集,进度在活动页查看。" : e.status === "failed" ? `上一轮采集停下了:${e.stopped || "原因未取得"}` : e.status === "complete" ? e.stopped ? "上一轮采集已按停。" : "上一轮采集已完成。" : e.mode === "off" ? "关闭时不采集;已经生成的图留在盘上,清理走数据管理页。" : "选定档位后从最近看过的片子开始采集。";
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var Nue = "/api/organize", Pue = "/api/organize/preview", Fue = "/api/organize/apply", Iue = "/api/organize/rollback", $j = ["organize"], eM = (e) => W(Nue, e);
-async function Lue(e) {
+var Pue = "/api/organize", Fue = "/api/organize/preview", Iue = "/api/organize/apply", Lue = "/api/organize/rollback", Qj = ["organize"], $j = (e) => W(Pue, e);
+async function Rue(e) {
await p.fetchQuery({
- queryKey: $j,
- queryFn: () => eM(e)
+ queryKey: Qj,
+ queryFn: () => $j(e)
});
}
-var Rue = (e) => G(Pue, e), zue = (e) => e.kind === "apply" ? G(Fue, {
+var zue = (e) => G(Fue, e), Bue = (e) => e.kind === "apply" ? G(Iue, {
...e.request,
confirm: !0
-}) : G(Iue, { confirm: !0 });
-async function Bue(e) {
- p.setQueryData($j, (t) => t && {
+}) : G(Lue, { confirm: !0 });
+async function Vue(e) {
+ p.setQueryData(Qj, (t) => t && {
...t,
templates: e
});
try {
- await G(Wj, { organizeTemplates: e });
+ await G(Uj, { organizeTemplates: e });
} catch {}
}
-var Vue = (e, t) => e && {
+var Hue = (e, t) => e && {
...e,
...t
-}, Hue = /目录模板|分隔符|盘符|`\.`/;
-function tM(e) {
+}, Uue = /目录模板|分隔符|盘符|`\.`/;
+function eM(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var nM = (e) => Number(e || 0).toLocaleString();
-function Uue(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${nM(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${nM(e.counts.change)} 个文件会改名或移动,${nM(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var tM = (e) => Number(e || 0).toLocaleString();
+function Wue(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${tM(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${tM(e.counts.change)} 个文件会改名或移动,${tM(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function rM(e) {
+function nM(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${nM(r)} 个文件${n ? `,${nM(n)} 行未能退回` : ""}。` : `已整理 ${nM(r)} 个文件${n ? `,${nM(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${tM(r)} 个文件${n ? `,${tM(n)} 行未能退回` : ""}。` : `已整理 ${tM(r)} 个文件${n ? `,${tM(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
-var iM = "/api/resource-sync/scan", aM = "/api/resource-sync/apply", oM = ["resource-sync", "scan"], sM = ["resource-sync", "apply"], cM = (e) => G(iM, {
+var rM = "/api/resource-sync/scan", iM = "/api/resource-sync/apply", aM = ["resource-sync", "scan"], oM = ["resource-sync", "apply"], sM = (e) => G(rM, {
background: !0,
status_only: !0
-}, "POST", e), Wue = () => G(iM, {
+}, "POST", e), Gue = () => G(rM, {
background: !0,
restart: !0
-}), lM = (e) => W(aM, e), Gue = (e) => G(aM, {
+}), cM = (e) => W(iM, e), Kue = (e) => G(iM, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), uM = (e) => (e?.sources ?? []).some((e) => Nle.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function Kue(e) {
- uM(p.getQueryData(u)) && await Promise.all([p.fetchQuery({
+}), lM = (e) => (e?.sources ?? []).some((e) => Fle.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function que(e) {
+ lM(p.getQueryData(u)) && await Promise.all([p.fetchQuery({
+ queryKey: aM,
+ queryFn: () => sM(e)
+ }), p.fetchQuery({
queryKey: oM,
queryFn: () => cM(e)
- }), p.fetchQuery({
- queryKey: sM,
- queryFn: () => lM(e)
})]);
}
-var que = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Jue = {
+var Jue = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Yue = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, dM = (e) => Number(e || 0).toLocaleString(), Yue = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", fM = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), pM = (e) => e.vanish ? `${dM(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", mM = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Xue = (e) => `将永久删除文件已不在盘上的 ${dM(fM(e))} 条记录和 ${dM(e.empty)} 个空文件夹,并清理 ${dM(e.cache?.files)} 个闲置缓存。${mM(e)}${pM(e)}`, Zue = (e) => `将永久删除文件已不在盘上的 ${dM(fM(e))} 条记录(含回收站里的)、${dM(e.empty)} 个空文件夹,并清理 ${dM(e.cache?.files)} 个闲置缓存。来源根目录保留。${mM(e)}${pM(e)}`, Que = (e) => e.online ? [
- `找不到文件 · 共 ${dM(e.total)} 项`,
- e.vanish ? `${dM(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${dM(e.empty)} 个` : "",
- e.unreadable ? `${dM(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${dM(e.total)} 项`;
-function hM(e) {
+}, uM = (e) => Number(e || 0).toLocaleString(), Xue = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", dM = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), fM = (e) => e.vanish ? `${uM(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", pM = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Zue = (e) => `将永久删除文件已不在盘上的 ${uM(dM(e))} 条记录和 ${uM(e.empty)} 个空文件夹,并清理 ${uM(e.cache?.files)} 个闲置缓存。${pM(e)}${fM(e)}`, Que = (e) => `将永久删除文件已不在盘上的 ${uM(dM(e))} 条记录(含回收站里的)、${uM(e.empty)} 个空文件夹,并清理 ${uM(e.cache?.files)} 个闲置缓存。来源根目录保留。${pM(e)}${fM(e)}`, $ue = (e) => e.online ? [
+ `找不到文件 · 共 ${uM(e.total)} 项`,
+ e.vanish ? `${uM(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${uM(e.empty)} 个` : "",
+ e.unreadable ? `${uM(e.unreadable)} 个目录读取失败,已跳过` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${uM(e.total)} 项`;
+function mM(e) {
let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.vanished || 0) + Number(e.reattached || 0) + Number(e.dirs_removed || 0) + Number(e.cache_removed || 0), a = t.length + n + r.length, o = t.slice(0, 3).map((e) => `「${e.name}」`).join("、") + (t.length > 3 ? " 等" : "");
return {
done: i,
left: a,
rest: [
- t.length ? `${dM(t.length)} 条记录没有删除(${o})` : "",
- n ? `${dM(n)} 个文件夹没有删除` : "",
- r.length ? `${dM(r.length)} 个缓存没有清理` : ""
+ t.length ? `${uM(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${uM(n)} 个文件夹没有删除` : "",
+ r.length ? `${uM(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var $ue = (e, t) => {
- let { rest: n } = hM(e), r = `已永久删除 ${dM(e.purged)} 条失效记录和 ${dM(e.dirs_removed)} 个空文件夹,清理 ${dM(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${dM(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${dM(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var ede = (e, t) => {
+ let { rest: n } = mM(e), r = `已永久删除 ${uM(e.purged)} 条失效记录和 ${uM(e.dirs_removed)} 个空文件夹,清理 ${uM(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${uM(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${uM(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, ede = "/api/review?counts=1", gM = ["review", "counts"], tde = "/api/ads?limit=1", _M = ["junk-summary"], vM = "/api/items?state=trash&limit=1", yM = ["trash-summary"], nde = [
+}, tde = "/api/review?counts=1", hM = ["review", "counts"], nde = "/api/ads?limit=1", gM = ["junk-summary"], _M = "/api/items?state=trash&limit=1", vM = ["trash-summary"], rde = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], bM = (e) => W(ede, e), xM = (e) => W(tde, e), SM = (e) => {
+], yM = (e) => W(tde, e), bM = (e) => W(nde, e), xM = (e) => {
let t = sessionStorage.getItem("peach.library");
- return W(t ? `${vM}&library=${encodeURIComponent(t)}` : vM, e);
-}, CM = (e) => Number(e || 0).toLocaleString();
-function rde(e) {
- let t = xj, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
+ return W(t ? `${_M}&library=${encodeURIComponent(t)}` : _M, e);
+}, SM = (e) => Number(e || 0).toLocaleString();
+function ide(e) {
+ let t = Sj, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
return a && i.push(`其余 ${a.toLocaleString()}`), {
figure: `${r.toLocaleString()} 条待复核`,
meta: i.join(" · ")
};
}
-function ide(e) {
+function ade(e) {
if (!e) return "";
- let t = nde.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${CM(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${CM(e.dismissed_total)}`), t.join(" · ");
-}
-var ade = [
- [gM, ({ signal: e }) => bM(e)],
- [mj, ({ signal: e }) => hj(e)],
- [yM, ({ signal: e }) => SM(e)],
+ let t = rde.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${SM(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${SM(e.dismissed_total)}`), t.join(" · ");
+}
+var ode = [
+ [hM, ({ signal: e }) => yM(e)],
+ [hj, ({ signal: e }) => gj(e)],
+ [vM, ({ signal: e }) => xM(e)],
+ [Pj, ({ signal: e }) => zj(e)],
[Fj, ({ signal: e }) => Bj(e)],
- [Ij, ({ signal: e }) => Vj(e)],
- [Lj, ({ signal: e }) => Hj(e)]
+ [Ij, ({ signal: e }) => Vj(e)]
];
-async function ode(e) {
- let t = location.hash === "#resource-sync", n = ade.map(([n, r]) => {
+async function sde(e) {
+ let t = location.hash === "#resource-sync", n = ode.map(([n, r]) => {
if (t) return p.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -35544,49 +35544,49 @@ async function ode(e) {
await Promise.all([
...n,
p.fetchQuery({
- queryKey: _M,
- queryFn: () => xM(e)
+ queryKey: gM,
+ queryFn: () => bM(e)
}),
p.fetchQuery({
- queryKey: JA,
- queryFn: () => XA(e)
+ queryKey: KA,
+ queryFn: () => JA(e)
}),
- qA(e).then(() => Kue(e)),
- rj(e),
- Xle(e),
- Lue(e)
+ GA(e).then(() => que(e)),
+ tj(e),
+ dj(e),
+ Rue(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
-var sde = [
+var cde = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], cde = [
+], lde = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function wM(e = {}) {
- return `${AE({
+function CM(e = {}) {
+ return `${kE({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var TM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", lde = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function EM({ interactive: e = !1 } = {}) {
- return AE({
+var wM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", ude = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function TM({ interactive: e = !1 } = {}) {
+ return kE({
padding: "none",
radius: "plain",
interactive: e,
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var ude = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function DM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var dde = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function EM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -35619,13 +35619,13 @@ function DM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta
})
] });
}
-function OM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function DM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",
children: [t ? /* @__PURE__ */ (0, B.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${sde[n % 4]} ${cde[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${cde[n % 4]} ${lde[n % 4]}`,
children: /* @__PURE__ */ (0, B.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -35647,9 +35647,9 @@ function OM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region src/react/components/menu-dialog.tsx
-function kM(e) {
- let t = gA("hover");
- return /* @__PURE__ */ (0, B.jsx)(NO, {
+function OM(e) {
+ let t = mA("hover");
+ return /* @__PURE__ */ (0, B.jsx)(MO, {
...e,
ref: t
});
@@ -35660,67 +35660,67 @@ function kM(e) {
}).medium;
//#endregion
//#region src/management.ts
-var dde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", fde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", pde = AE({
+var fde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", pde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", mde = kE({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), mde = {
+}), hde = {
split: "min-w-0 p-6",
stack: "flex min-h-30 min-w-0 flex-1 flex-col px-5 pt-5 pb-4 max-cleanup-tight:min-h-0 max-cleanup-tight:p-4.5"
-}, hde = {
+}, gde = {
split: "flex flex-wrap items-center justify-end gap-2 self-stretch p-6 max-[1001px]:justify-start max-[1001px]:pt-0",
stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"
-}, gde = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", _de = {
+}, _de = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", vde = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, vde = AE({
+}, yde = kE({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), AM = "border-t border-border-button-default p-4 first:border-t-0";
-function jM({ tone: e = "neutral", status: t, children: n }) {
+}), kM = "border-t border-border-button-default p-4 first:border-t-0";
+function AM({ tone: e = "neutral", status: t, children: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: `${gde} ${_de[e]}`,
+ className: `${_de} ${vde[e]}`,
children: [t ? /* @__PURE__ */ (0, B.jsx)("p", {
className: `mr-auto min-w-0 text-caption-1-regular ${e === "error" ? "text-text-error-primary" : "text-text-secondary"}`,
children: t
}) : null, n]
});
}
-function MM({ id: e, children: t }) {
+function jM({ id: e, children: t }) {
return /* @__PURE__ */ (0, B.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function NM({ id: e, gap: t = "none", children: n }) {
+function MM({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, B.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function PM({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function NM({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, B.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: `${pde} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ className: `${mde} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, B.jsx)("div", {
- className: mde[e],
+ className: hde[e],
children: a
}), i ? /* @__PURE__ */ (0, B.jsx)("footer", {
- className: hde[e],
+ className: gde[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function FM() {
+function PM() {
let e = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
ke(e.current);
@@ -35728,7 +35728,7 @@ function FM() {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var IM = TE({
+var FM = wE({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -35749,21 +35749,21 @@ var IM = TE({
small: "size-4 shrink-0"
}
});
-function LM({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function IM({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, B.jsx)("button", {
ref: i,
type: r,
- className: wE(IM.base, IM.size[t], n),
+ className: CE(FM.base, FM.size[t], n),
...a,
children: /* @__PURE__ */ (0, B.jsx)(e, {
- className: IM.icon[t],
+ className: FM.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function yde({ className: e }) {
+function bde({ className: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -35776,8 +35776,8 @@ function yde({ className: e }) {
children: /* @__PURE__ */ (0, B.jsx)("use", { href: "#i-folder-open" })
});
}
-var bde = "打开文件管理器失败,请重试";
-function RM({ path: e, prefix: t, className: n, onRevealed: r }) {
+var xde = "打开文件管理器失败,请重试";
+function LM({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, R.useState)(!1), [o, s] = (0, R.useState)(""), c = (0, R.useRef)(!0);
(0, R.useEffect)(() => () => {
c.current = !1;
@@ -35788,7 +35788,7 @@ function RM({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await G("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof zS ? e.message : bde);
+ c.current && s(e instanceof RS ? e.message : xde);
} finally {
c.current && a(!1);
}
@@ -35799,10 +35799,10 @@ function RM({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, B.jsxs)("p", {
- className: wE("min-w-0 break-all", n),
+ className: CE("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, B.jsx)(LM, {
- icon: yde,
+ }), /* @__PURE__ */ (0, B.jsx)(IM, {
+ icon: bde,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@ -35817,38 +35817,38 @@ function RM({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/components/task-progress.tsx
-function zM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function RM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : AE({
+ className: r ? "flex flex-col gap-1.5" : kE({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(FE, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(PE, {
label: e,
value: t,
max: n
}), /* @__PURE__ */ (0, B.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: e
- })] }) : /* @__PURE__ */ (0, B.jsx)(ME, { label: e })
+ })] }) : /* @__PURE__ */ (0, B.jsx)(jE, { label: e })
});
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function BM({ toast: e, mode: t, monitor: n }) {
- let r = t === "notice" || !!n, i = TS({
- queryKey: tj,
- queryFn: ({ signal: e }) => nj(e),
- refetchInterval: (e) => Ule(e.state.data, r)
+function zM({ toast: e, mode: t, monitor: n }) {
+ let r = t === "notice" || !!n, i = wS({
+ queryKey: $A,
+ queryFn: ({ signal: e }) => ej(e),
+ refetchInterval: (e) => Gle(e.state.data, r)
}), [a, o] = (0, R.useState)(null), s = (0, R.useRef)(void 0), c = i.data;
return (0, R.useEffect)(() => {
if (!c) return;
let n = s.current;
s.current = c.status;
let r = n === "running" && c.status !== "running";
- r && o(c), (r || t === "notice") && Jle(c, e, r);
+ r && o(c), (r || t === "notice") && Xle(c, e, r);
}, [
c,
t,
@@ -35861,29 +35861,29 @@ function BM({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var xde = [
+var Sde = [
{
label: "扫描并补全资料",
- icon: CT,
+ icon: ST,
command: {}
},
{
label: "只扫描",
- icon: DT,
+ icon: ET,
command: { stage: "scan" }
},
{
label: "只采集",
- icon: rae,
+ icon: iae,
command: { stage: "collect" }
}
-], Sde = wE(Tk, Ek, "text-body-2-medium"), Cde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", wde = (e) => {
+], Cde = CE(wk, Tk, "text-body-2-medium"), wde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Tde = (e) => {
let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;
if (!t && !n && !r && !i) return "";
let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];
return r && a.push(`${r} 个同名冲突交回人工`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;
-}, Tde = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + wde(e);
-function Ede({ busy: e, onRun: t }) {
+}, Ede = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Tde(e);
+function Dde({ busy: e, onRun: t }) {
let n = (0, R.useRef)(null), [r, i] = (0, R.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
@@ -35892,14 +35892,14 @@ function Ede({ busy: e, onRun: t }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, B.jsx)(J, {
- leadingIcon: CT,
+ leadingIcon: ST,
onClick: () => a({}),
...X(e),
children: "扫描并补全资料"
}), /* @__PURE__ */ (0, B.jsx)(J, {
ref: n,
iconOnly: !0,
- leadingIcon: hT,
+ leadingIcon: mT,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
@@ -35908,19 +35908,19 @@ function Ede({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, B.jsx)(SO, {
+ }), /* @__PURE__ */ (0, B.jsx)(xO, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: wk,
- children: /* @__PURE__ */ (0, B.jsx)(kM, {
+ className: Ck,
+ children: /* @__PURE__ */ (0, B.jsx)(OM, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: xde.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, B.jsxs)("button", {
+ children: Sde.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
- className: Sde,
+ className: Cde,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, B.jsx)(t, {
"aria-hidden": !0,
@@ -35930,8 +35930,8 @@ function Ede({ busy: e, onRun: t }) {
})
})] });
}
-function Dde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = Kle(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Gle(e.notes || {}), c = FM();
+function Ode({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = Jle(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = qle(e.notes || {}), c = PM();
return /* @__PURE__ */ (0, B.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@ -35939,7 +35939,7 @@ function Dde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "warning",
title: "处理较慢",
- children: Cde
+ children: wde
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
@@ -35951,7 +35951,7 @@ function Dde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, B.jsxs)(Gk, {
+ children: /* @__PURE__ */ (0, B.jsxs)(Wk, {
summary: a.label,
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "relative",
@@ -35982,7 +35982,7 @@ function Dde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, B.jsx)(RM, {
+ children: /* @__PURE__ */ (0, B.jsx)(LM, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -35996,13 +35996,13 @@ function Dde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
n?.status === "complete" ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "success",
title: "处理完成",
- children: Tde(n)
+ children: Ede(n)
}) : null,
e.status !== "running" && s ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, B.jsx)(RM, {
+ children: /* @__PURE__ */ (0, B.jsx)(LM, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -36014,38 +36014,38 @@ function Dde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function VM(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = BM(e), o = OS({
- mutationFn: (e) => G(ej, e),
+function BM(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = zM(e), o = DS({
+ mutationFn: (e) => G(QA, e),
onSuccess: (e) => {
- a(), p.setQueryData(tj, e), p.invalidateQueries({ queryKey: tj });
+ a(), p.setQueryData($A, e), p.invalidateQueries({ queryKey: $A });
}
});
(0, R.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? U(o.error) : r.isError ? r.data ? ij : U(r.error) : "", l = o.isPending || s.status === "running", u = oj(s), d = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? U(o.error) : r.isError ? r.data ? nj : U(r.error) : "", l = o.isPending || s.status === "running", u = ij(s), d = (e) => {
l || (o.reset(), o.mutate(e));
};
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, B.jsx)(PM, {
+ children: [/* @__PURE__ */ (0, B.jsx)(NM, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- /* @__PURE__ */ (0, B.jsx)(Pk, {
+ /* @__PURE__ */ (0, B.jsx)(Nk, {
href: "/scraping",
size: "small",
- trailingIcon: gT,
+ trailingIcon: hT,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, B.jsx)(Pk, {
+ s.candidates ? /* @__PURE__ */ (0, B.jsx)(Nk, {
href: "/review",
size: "small",
- trailingIcon: gT,
+ trailingIcon: hT,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Ede, {
+ /* @__PURE__ */ (0, B.jsx)(Dde, {
busy: l,
onRun: d
})
@@ -36053,12 +36053,12 @@ function VM(e) {
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(NM, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, B.jsx)(MM, { children: "扫描与采集" }),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: dde
+ children: fde
}),
- s.status === "running" ? /* @__PURE__ */ (0, B.jsx)(zM, {
+ s.status === "running" ? /* @__PURE__ */ (0, B.jsx)(RM, {
embedded: !0,
label: u,
value: s.checked,
@@ -36066,7 +36066,7 @@ function VM(e) {
}) : null
]
})
- }), /* @__PURE__ */ (0, B.jsx)(Dde, {
+ }), /* @__PURE__ */ (0, B.jsx)(Ode, {
state: s,
problem: c,
settled: i,
@@ -36082,20 +36082,20 @@ function VM(e) {
}
//#endregion
//#region src/react/background-job.ts
-var HM = 2e3, Ode = (e) => e, kde = (e, t) => t;
-function UM(e) {
- let { queryKey: t, jobOf: n = Ode, withJob: r = kde, idlePollMs: i } = e, [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(e);
+var VM = 2e3, kde = (e) => e, Ade = (e, t) => t;
+function HM(e) {
+ let { queryKey: t, jobOf: n = kde, withJob: r = Ade, idlePollMs: i } = e, [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(e);
(0, R.useEffect)(() => {
l.current = e;
});
- let u = TS({
+ let u = wS({
queryKey: t,
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? HM : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? VM : i ?? !1;
}
- }), d = OS({
+ }), d = DS({
mutationFn: (e) => l.current.start(e),
onSuccess: (e) => {
o(!0), c(null), l.current.onStarted?.(e), p.setQueryData(t, (t) => r(t, e)), p.invalidateQueries({
@@ -36124,32 +36124,32 @@ function UM(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var Ade = (e) => Oe[e] || e, WM = (e) => p.setQueryData(lj, e);
-function jde() {
- let e = TS({
- queryKey: lj,
- queryFn: ({ signal: e }) => dj(e),
- refetchInterval: (e) => e.state.data?.status === "running" && HM
- }), t = TS({
- queryKey: uj,
- queryFn: ({ signal: e }) => fj(e)
- }), [n, r] = (0, R.useState)(""), i = IE(), a = e.data ?? Yle, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
+var jde = (e) => Oe[e] || e, UM = (e) => p.setQueryData(sj, e);
+function Mde() {
+ let e = wS({
+ queryKey: sj,
+ queryFn: ({ signal: e }) => lj(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && VM
+ }), t = wS({
+ queryKey: cj,
+ queryFn: ({ signal: e }) => uj(e)
+ }), [n, r] = (0, R.useState)(""), i = FE(), a = e.data ?? Zle, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
c && je({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => WM(await G(cj, {
+ onConfirm: async () => UM(await G(oj, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => G(cj, { stop: !0 }, "POST", e), WM), d = Zle(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, u = () => void i.run("stop", (e) => G(oj, { stop: !0 }, "POST", e), UM), d = pj(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, B.jsx)(PM, {
+ children: [/* @__PURE__ */ (0, B.jsx)(NM, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Ok, {
+ footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Dk, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@ -36157,10 +36157,10 @@ function jde() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, B.jsxs)(kk, {
+ children: o.map((e) => /* @__PURE__ */ (0, B.jsxs)(Ok, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: Ade(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, B.jsx)(Gk, { mark: jde(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, B.jsx)(J, {
onClick: u,
@@ -36174,12 +36174,12 @@ function jde() {
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(NM, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, B.jsx)(MM, { children: "媒体修复" }),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: fde
+ children: pde
}),
- s && a.total ? /* @__PURE__ */ (0, B.jsx)(FE, {
+ s && a.total ? /* @__PURE__ */ (0, B.jsx)(PE, {
label: "修复进度",
value: a.checked,
max: a.total
@@ -36203,7 +36203,7 @@ function jde() {
f && a.missing_tool ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "warning",
title: "缺少 untrunc",
- children: Qle(a)
+ children: mj(a)
}) : null,
p ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
@@ -36215,7 +36215,7 @@ function jde() {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var GM = {
+var WM = {
md: {
box: "size-4",
glyph: "size-4",
@@ -36229,11 +36229,11 @@ var GM = {
gap: "gap-1.5"
}
};
-function KM({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = GM[t], c = n || r, l = o && !a;
+function GM({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = WM[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
- className: wE("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? wE("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : wE("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: CE("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? CE("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : CE("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -36257,36 +36257,36 @@ function KM({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function qM({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = GM[n];
- return /* @__PURE__ */ (0, B.jsx)(Doe, {
+function KM({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = WM[n];
+ return /* @__PURE__ */ (0, B.jsx)(Ooe, {
ref: r,
...i,
- className: (t) => wE("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(KM, {
+ className: (t) => CE("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ children: (e) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(GM, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, B.jsx)("span", {
- className: wE(a.label, "text-text-primary"),
+ className: CE(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function JM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function qM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
- className: wE("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, B.jsx)(Fse, {
+ className: CE("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, B.jsx)(Ise, {
ref: r,
...i,
- className: wE("bui-table", e === "sm" && "bui-table-sm", t)
+ className: CE("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
//#endregion
//#region src/react/components/row-click.ts
-var Mde = [
+var Nde = [
"a",
"button",
"input",
@@ -36299,15 +36299,15 @@ var Mde = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function YM(e, t) {
+function JM(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(Mde);
+ let r = n.closest(Nde);
return !r || !t.contains(r) || r === t;
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function XM({ children: e, follow: t = !1, onRowClick: n }) {
+function YM({ children: e, follow: t = !1, onRowClick: n }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
@@ -36315,15 +36315,15 @@ function XM({ children: e, follow: t = !1, onRowClick: n }) {
let t = e.target;
if (!(t instanceof Element)) return;
let r = t.closest("[role=\"row\"][data-key]");
- r && YM(e, r) && n(r.dataset.key);
+ r && JM(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var Nde = wA("unlink"), ZM = wA("rotate-cw"), Pde = "站点返回 404 或 410,确认这个地址不存在。", Fde = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Ide = "删除前会逐条重验一次;此操作不可撤销。", Lde = "暂时无法读取进度,正在重新连接…", QM = (e) => Number(e || 0).toLocaleString();
-function $M({ label: e, value: t, note: n }) {
+var Pde = SA("unlink"), XM = SA("rotate-cw"), Fde = "站点返回 404 或 410,确认这个地址不存在。", Ide = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Lde = "删除前会逐条重验一次;此操作不可撤销。", Rde = "暂时无法读取进度,正在重新连接…", ZM = (e) => Number(e || 0).toLocaleString();
+function QM({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@ -36342,11 +36342,11 @@ function $M({ label: e, value: t, note: n }) {
]
});
}
-function eN({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
+function $M({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
if (!t.length) return null;
let o = r ?? [], s = o.length > 0 && o.length === t.length;
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: AM,
+ className: kM,
children: [
/* @__PURE__ */ (0, B.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -36359,13 +36359,13 @@ function eN({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
className: "mb-3 text-caption-1-regular text-text-secondary",
children: n
}),
- /* @__PURE__ */ (0, B.jsx)(XM, { children: /* @__PURE__ */ (0, B.jsxs)(JM, {
+ /* @__PURE__ */ (0, B.jsx)(YM, { children: /* @__PURE__ */ (0, B.jsxs)(qM, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, B.jsxs)(rk, { children: [
- i ? /* @__PURE__ */ (0, B.jsx)(ik, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(nk, { children: [
+ i ? /* @__PURE__ */ (0, B.jsx)(rk, {
id: "pick",
- children: /* @__PURE__ */ (0, B.jsx)(qM, {
+ children: /* @__PURE__ */ (0, B.jsx)(KM, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -36373,44 +36373,44 @@ function eN({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, B.jsx)(ik, {
+ /* @__PURE__ */ (0, B.jsx)(rk, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, B.jsx)(ik, {
+ /* @__PURE__ */ (0, B.jsx)(rk, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, B.jsx)(ik, {
+ /* @__PURE__ */ (0, B.jsx)(rk, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, B.jsx)(ik, {
+ /* @__PURE__ */ (0, B.jsx)(rk, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, B.jsx)(ik, {
+ /* @__PURE__ */ (0, B.jsx)(rk, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: t.map((e) => /* @__PURE__ */ (0, B.jsxs)(lk, {
+ ] }), /* @__PURE__ */ (0, B.jsx)(ak, { children: t.map((e) => /* @__PURE__ */ (0, B.jsxs)(ck, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(qM, {
+ i ? /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)(KM, {
slot: null,
"aria-label": `选择 ${e.entity} 的${e.label || e.url}`,
isSelected: o.includes(e.id),
onChange: (t) => i(t ? [...o, e.id] : o.filter((t) => t !== e.id))
}) }) : null,
- /* @__PURE__ */ (0, B.jsx)(dk, { children: e.entity }),
- /* @__PURE__ */ (0, B.jsx)(dk, { children: Rj[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, B.jsx)(dk, { children: e.label || "" }),
- /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
+ /* @__PURE__ */ (0, B.jsx)(uk, { children: e.entity }),
+ /* @__PURE__ */ (0, B.jsx)(uk, { children: Lj[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, B.jsx)(uk, { children: e.label || "" }),
+ /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
className: "tabular-nums text-text-error-primary",
children: e.note
}) }),
- /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsxs)("a", {
+ /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -36420,7 +36420,7 @@ function eN({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
"data-middle-truncate": !0,
className: "min-w-0 truncate",
children: e.url
- }), /* @__PURE__ */ (0, B.jsx)(TT, {
+ }), /* @__PURE__ */ (0, B.jsx)(wT, {
"aria-hidden": !0,
className: "size-3.5 shrink-0"
})]
@@ -36432,27 +36432,27 @@ function eN({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
]
});
}
-function Rde() {
- let e = TS({
- queryKey: Fj,
- queryFn: ({ signal: e }) => Bj(e)
- }), [t, n] = (0, R.useState)([]), r = UM({
- queryKey: Lj,
- queryFn: ({ signal: e }) => Hj(e),
- start: wue,
+function zde() {
+ let e = wS({
+ queryKey: Pj,
+ queryFn: ({ signal: e }) => zj(e)
+ }), [t, n] = (0, R.useState)([]), r = HM({
+ queryKey: Ij,
+ queryFn: ({ signal: e }) => Vj(e),
+ start: Tue,
onFinish: () => {
p.invalidateQueries({
- queryKey: Fj,
+ queryKey: Pj,
exact: !0
}), p.invalidateQueries({
- queryKey: Ij,
+ queryKey: Fj,
exact: !0
});
}
- }), i = UM({
- queryKey: Ij,
- queryFn: ({ signal: e }) => Vj(e),
- start: Cue,
+ }), i = HM({
+ queryKey: Fj,
+ queryFn: ({ signal: e }) => Bj(e),
+ start: wue,
onStarted: () => {
r.dismiss(), n([]);
}
@@ -36482,7 +36482,7 @@ function Rde() {
else if (v) x = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "success",
title: "完成",
- children: Tue(v)
+ children: Eue(v)
});
else if (y) x = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
@@ -36492,7 +36492,7 @@ function Rde() {
else if (i.query.isError && a) x = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
title: "任务状态",
- children: Lde
+ children: Rde
});
else if (a?.status === "failed") x = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
@@ -36500,12 +36500,12 @@ function Rde() {
children: a.error || "检查失败"
});
else if (a && a.status !== "idle") {
- b = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, B.jsx)(zM, {
+ b = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, B.jsx)(RM, {
embedded: !0,
- label: Eue(a),
+ label: Due(a),
value: a.checked,
total: a.total
- }) : null, c ? /* @__PURE__ */ (0, B.jsx)(zM, {
+ }) : null, c ? /* @__PURE__ */ (0, B.jsx)(RM, {
embedded: !0,
label: r.job?.message || "正在重验并删除失效链接…",
value: r.job?.checked,
@@ -36513,38 +36513,38 @@ function Rde() {
}) : null] });
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
x = l || u.length || d.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
- className: vde,
+ className: yde,
children: [
- /* @__PURE__ */ (0, B.jsx)(eN, {
+ /* @__PURE__ */ (0, B.jsx)($M, {
title: "地址已失效",
items: u,
- hint: Pde
+ hint: Fde
}),
- /* @__PURE__ */ (0, B.jsx)(eN, {
+ /* @__PURE__ */ (0, B.jsx)($M, {
title: "本次未访问成功",
items: d,
- hint: Fde,
+ hint: Ide,
picked: f.length ? t : void 0,
onPick: f.length ? n : void 0,
children: f.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, B.jsxs)(jM, { children: [/* @__PURE__ */ (0, B.jsx)(J, {
- leadingIcon: ZM,
+ children: /* @__PURE__ */ (0, B.jsxs)(AM, { children: [/* @__PURE__ */ (0, B.jsx)(J, {
+ leadingIcon: XM,
disabled: !t.length,
...X(s),
onClick: () => g(t),
children: e
}), /* @__PURE__ */ (0, B.jsx)(J, {
- leadingIcon: ZM,
+ leadingIcon: XM,
...X(s),
onClick: () => g(f.map((e) => e.id)),
children: `全部重试(${f.length})`
})] })
}) : null
}),
- l && u.length ? /* @__PURE__ */ (0, B.jsx)(jM, {
+ l && u.length ? /* @__PURE__ */ (0, B.jsx)(AM, {
tone: "error",
- status: Ide,
+ status: Lde,
children: /* @__PURE__ */ (0, B.jsx)(J, {
variant: "danger",
...X(c),
@@ -36553,7 +36553,7 @@ function Rde() {
})
}) : null,
l && !u.length && !d.length ? /* @__PURE__ */ (0, B.jsx)("p", {
- className: `${AM} text-body-regular text-notification-success-foreground`,
+ className: `${kM} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -36564,21 +36564,21 @@ function Rde() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, B.jsx)(MM, {
+ /* @__PURE__ */ (0, B.jsx)(jM, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, B.jsxs)(PM, {
+ /* @__PURE__ */ (0, B.jsxs)(NM, {
layout: "stack",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, B.jsx)(J, {
- leadingIcon: Nde,
+ leadingIcon: Pde,
...X(s),
onClick: () => g(),
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
children: [
- /* @__PURE__ */ (0, B.jsx)(NM, {
+ /* @__PURE__ */ (0, B.jsx)(MM, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
@@ -36589,13 +36589,13 @@ function Rde() {
children: U(e.error)
}) : m ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, B.jsx)($M, {
+ children: [/* @__PURE__ */ (0, B.jsx)(QM, {
label: "链接总数",
- value: QM(m.total),
- note: `分布在 ${QM(m.entities)} 个女优、厂牌与系列`
- }), Object.entries(m.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, B.jsx)($M, {
- label: Rj[e] || e,
- value: QM(t)
+ value: ZM(m.total),
+ note: `分布在 ${ZM(m.entities)} 个女优、厂牌与系列`
+ }), Object.entries(m.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(QM, {
+ label: Lj[e] || e,
+ value: ZM(t)
}, e))]
}), h ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
@@ -36624,18 +36624,18 @@ function Rde() {
}
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
-var zde = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Bde = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Vde = 8;
-function Hde({ plan: e }) {
+var Bde = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Vde = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Hde = 8;
+function Ude({ plan: e }) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, Vde).map((e) => /* @__PURE__ */ (0, B.jsxs)("li", {
+ children: e.rows.slice(0, Hde).map((e) => /* @__PURE__ */ (0, B.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, B.jsx)("span", {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: tM(e.current_path)
+ children: eM(e.current_path)
}),
/* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
@@ -36645,7 +36645,7 @@ function Hde({ plan: e }) {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: tM(e.target_path)
+ children: eM(e.target_path)
})
]
}, e.current_path))
@@ -36654,10 +36654,10 @@ function Hde({ plan: e }) {
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
-function Ude({ toast: e, failure: t }) {
- let n = TS({
- queryKey: $j,
- queryFn: ({ signal: e }) => eM(e)
+function Wde({ toast: e, failure: t }) {
+ let n = wS({
+ queryKey: Qj,
+ queryFn: ({ signal: e }) => $j(e)
}), r = n.data, i = r?.locations ?? [], [a, o] = (0, R.useState)(""), s = i.some((e) => e.location === a) ? a : i[0]?.location ?? "", c = r?.templates?.[s], [l, u] = (0, R.useState)(null), d = l?.location === s ? l : {
location: s,
file: c?.file ?? "",
@@ -36669,9 +36669,9 @@ function Ude({ toast: e, failure: t }) {
location: s,
file_template: d.file.trim(),
dir_template: d.dir.trim()
- }), y = OS({
- mutationFn: Rue,
- onSuccess: (e, t) => void Bue({
+ }), y = DS({
+ mutationFn: zue,
+ onSuccess: (e, t) => void Vue({
...r?.templates ?? {},
[t.location]: {
file: t.file_template,
@@ -36679,29 +36679,29 @@ function Ude({ toast: e, failure: t }) {
}
}),
onError: (e) => {
- let t = Hue.test(U(e)) ? "dir" : "file";
+ let t = Uue.test(U(e)) ? "dir" : "file";
h(t), (t === "dir" ? _ : g).current?.focus();
}
- }), b = UM({
- queryKey: $j,
- queryFn: ({ signal: e }) => eM(e),
- start: zue,
+ }), b = HM({
+ queryKey: Qj,
+ queryFn: ({ signal: e }) => $j(e),
+ start: Bue,
jobOf: (e) => e,
- withJob: Vue,
+ withJob: Hue,
onStarted: () => y.reset(),
onFinish: (n) => {
if (p.invalidateQueries({
- queryKey: $j,
+ queryKey: Qj,
exact: !0
}), n.status !== "complete") return;
- let { text: r, failed: i } = rM(n);
+ let { text: r, failed: i } = nM(n);
i ? t("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : e(r.replace(/。$/, ""));
}
}), x = b.running || b.start.isPending, S = y.data, C = Number(S?.counts?.change || 0), w = I[s] || s, T = (r?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), E = () => {
y.isPending || !s || (h(null), y.mutate(v()));
}, D = () => void je({
title: "按模板整理文件",
- body: zde(w),
+ body: Bde(w),
confirmLabel: "整理文件",
onConfirm: () => b.start.mutateAsync({
kind: "apply",
@@ -36709,13 +36709,13 @@ function Ude({ toast: e, failure: t }) {
})
}), O = () => void je({
title: "回滚上一批整理",
- body: Bde,
+ body: Vde,
confirmLabel: "回滚整理",
onConfirm: () => b.start.mutateAsync({ kind: "rollback" })
}), k = null, A = b.job, j = b.outcome;
if (A?.status === "running") {
let e = A.message || A.stage || "正在整理文件…";
- k = /* @__PURE__ */ (0, B.jsx)(zM, {
+ k = /* @__PURE__ */ (0, B.jsx)(RM, {
embedded: !0,
label: e,
value: A.checked,
@@ -36727,7 +36727,7 @@ function Ude({ toast: e, failure: t }) {
children: j.error || "请查看任务记录,核对已处理的文件。"
});
else if (j) {
- let { text: e, failed: t } = rM(j);
+ let { text: e, failed: t } = nM(j);
k = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
@@ -36737,7 +36737,7 @@ function Ude({ toast: e, failure: t }) {
tone: "error",
title: "整理失败",
children: U(b.start.error)
- }) : y.isPending ? k = /* @__PURE__ */ (0, B.jsx)(zM, {
+ }) : y.isPending ? k = /* @__PURE__ */ (0, B.jsx)(RM, {
embedded: !0,
label: "正在按模板算计划…"
}) : y.isError ? k = /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -36747,9 +36747,9 @@ function Ude({ toast: e, failure: t }) {
}) : S && (k = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
title: "预览结果",
- children: Uue(S)
- }), C ? /* @__PURE__ */ (0, B.jsx)(Hde, { plan: S }) : null] }));
- return /* @__PURE__ */ (0, B.jsxs)(PM, {
+ children: Wue(S)
+ }), C ? /* @__PURE__ */ (0, B.jsx)(Ude, { plan: S }) : null] }));
+ return /* @__PURE__ */ (0, B.jsxs)(NM, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@ -36773,7 +36773,7 @@ function Ude({ toast: e, failure: t }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, B.jsx)(NM, {
+ /* @__PURE__ */ (0, B.jsx)(MM, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -36793,20 +36793,20 @@ function Ude({ toast: e, failure: t }) {
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- i.length ? /* @__PURE__ */ (0, B.jsx)(Ok, {
+ i.length ? /* @__PURE__ */ (0, B.jsx)(Dk, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: s || null,
onSelectionChange: (e) => {
e !== null && (o(String(e)), h(null), y.reset());
},
- children: i.map((e) => /* @__PURE__ */ (0, B.jsxs)(kk, {
+ children: i.map((e) => /* @__PURE__ */ (0, B.jsxs)(Ok, {
id: e.location,
textValue: I[e.location] || e.location,
- children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: Oe[e.location] || "database" }), I[e.location] || e.location]
+ children: [/* @__PURE__ */ (0, B.jsx)(Gk, { mark: Oe[e.location] || "database" }), I[e.location] || e.location]
}, e.location))
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: d.file,
@@ -36817,7 +36817,7 @@ function Ude({ toast: e, failure: t }) {
f({ file: e }), h(null);
}
}),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: d.dir,
@@ -36857,56 +36857,56 @@ function Ude({ toast: e, failure: t }) {
}
//#endregion
//#region src/react/data-cleanup/orphan-records.ts
-var Wde = "/api/orphan-records", Gde = "/api/orphan-records/attach", tN = ["orphan-records"], Kde = [
+var Gde = "/api/orphan-records", Kde = "/api/orphan-records/attach", eN = ["orphan-records"], qde = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], qde = (e) => W(Wde, e), Jde = (e, t) => G(Gde, {
+], Jde = (e) => W(Gde, e), Yde = (e, t) => G(Kde, {
id: e,
target: t
-}), Yde = (e) => G(YA, {
+}), Xde = (e) => G(qA, {
ids: [e],
operation: "delete"
-}), Xde = (e) => [
+}), Zde = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], nN = (e) => [...Kde.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Xde(e)].filter(Boolean).join(" · "), Zde = (e) => e ? `${Math.round(e / 60)} 分钟` : "", rN = (e) => [e.name, Zde(e.duration)].filter(Boolean).join(" · "), Qde = wA("play"), iN = () => p.invalidateQueries({
- queryKey: tN,
+], tN = (e) => [...qde.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Zde(e)].filter(Boolean).join(" · "), Qde = (e) => e ? `${Math.round(e / 60)} 分钟` : "", nN = (e) => [e.name, Qde(e.duration)].filter(Boolean).join(" · "), $de = SA("play"), rN = () => p.invalidateQueries({
+ queryKey: eN,
exact: !0
});
-function $de({ item: e, toast: t }) {
- let [n, r] = (0, R.useState)(e.candidates[0]?.id ?? null), i = OS({
- mutationFn: () => Jde(e.id, Number(n)),
+function efe({ item: e, toast: t }) {
+ let [n, r] = (0, R.useState)(e.candidates[0]?.id ?? null), i = DS({
+ mutationFn: () => Yde(e.id, Number(n)),
onSuccess: (e) => {
- t(`记录已接到新文件,批次 ${e.batch}`), iN();
+ t(`记录已接到新文件,批次 ${e.batch}`), rN();
},
onError: (e) => t(U(e))
- }), a = OS({
- mutationFn: () => Yde(e.id),
+ }), a = DS({
+ mutationFn: () => Xde(e.id),
onSuccess: (n) => {
- t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), iN();
+ t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), rN();
}
}), o = () => {
je({
title: "彻底删除",
- body: `将删除「${e.name}」这一条和它带的记录(${nN(e.records)})。此操作不可撤销。`,
+ body: `将删除「${e.name}」这一条和它带的记录(${tN(e.records)})。此操作不可撤销。`,
confirmLabel: "彻底删除",
danger: !0,
onConfirm: () => a.mutateAsync()
});
}, s = i.isPending || a.isPending;
- return /* @__PURE__ */ (0, B.jsxs)(lk, {
+ return /* @__PURE__ */ (0, B.jsxs)(ck, {
id: e.id,
children: [
- /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsxs)("span", {
+ /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, B.jsxs)("span", {
className: "relative inline-grid aspect-16/10 w-24 flex-none place-items-center max-cleanup-tight:hidden overflow-hidden rounded-lg border border-separator-border bg-background-tertiary-default text-text-tertiary",
- children: [/* @__PURE__ */ (0, B.jsx)(Qde, {
+ children: [/* @__PURE__ */ (0, B.jsx)($de, {
"aria-hidden": !0,
className: "size-5"
}), e.has_thumb ? /* @__PURE__ */ (0, B.jsx)("img", {
@@ -36928,27 +36928,27 @@ function $de({ item: e, toast: t }) {
})]
})]
}) }),
- /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
+ /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
className: "block min-w-44",
- children: nN(e.records)
+ children: tN(e.records)
}) }),
- /* @__PURE__ */ (0, B.jsx)(dk, { children: e.candidates.length ? /* @__PURE__ */ (0, B.jsx)(Ok, {
+ /* @__PURE__ */ (0, B.jsx)(uk, { children: e.candidates.length ? /* @__PURE__ */ (0, B.jsx)(Dk, {
"aria-label": `把 ${e.name} 的记录接到哪个文件`,
className: "w-64",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(Number(e));
},
- children: e.candidates.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: e.candidates.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {
id: e.id,
- textValue: rN(e),
- children: rN(e)
+ textValue: nN(e),
+ children: nN(e)
}, e.id))
}) : /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-text-secondary",
children: "没有番号或文件名对得上的文件"
}) }),
- /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsxs)("span", {
+ /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex flex-wrap gap-2",
children: [e.candidates.length ? /* @__PURE__ */ (0, B.jsx)(J, {
size: "small",
@@ -36968,23 +36968,23 @@ function $de({ item: e, toast: t }) {
]
});
}
-function efe({ toast: e }) {
- let t = TS({
- queryKey: tN,
- queryFn: ({ signal: e }) => qde(e)
+function tfe({ toast: e }) {
+ let t = wS({
+ queryKey: eN,
+ queryFn: ({ signal: e }) => Jde(e)
}), n = t.data?.items ?? [];
return !t.isError && !n.length ? null : /* @__PURE__ */ (0, B.jsxs)("section", {
id: "orphan-records",
"aria-labelledby": "orphan-records-title",
className: "flex scroll-mt-20 flex-col gap-4",
- children: [/* @__PURE__ */ (0, B.jsx)(MM, {
+ children: [/* @__PURE__ */ (0, B.jsx)(jM, {
id: "orphan-records-title",
children: "孤儿记录"
- }), /* @__PURE__ */ (0, B.jsxs)(PM, {
+ }), /* @__PURE__ */ (0, B.jsxs)(NM, {
layout: "stack",
labelledBy: "orphan-records-box",
children: [
- /* @__PURE__ */ (0, B.jsx)(NM, {
+ /* @__PURE__ */ (0, B.jsx)(MM, {
id: "orphan-records-box",
gap: "small",
children: "文件已消失的作品"
@@ -36997,28 +36997,28 @@ function efe({ toast: e }) {
tone: "error",
title: "孤儿记录读取失败",
children: U(t.error)
- }) : /* @__PURE__ */ (0, B.jsx)(XM, { children: /* @__PURE__ */ (0, B.jsxs)(JM, {
+ }) : /* @__PURE__ */ (0, B.jsx)(YM, { children: /* @__PURE__ */ (0, B.jsxs)(qM, {
"aria-label": "文件已消失的作品",
size: "sm",
- children: [/* @__PURE__ */ (0, B.jsxs)(rk, { children: [
- /* @__PURE__ */ (0, B.jsx)(ik, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(nk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(rk, {
id: "item",
isRowHeader: !0,
children: "作品"
}),
- /* @__PURE__ */ (0, B.jsx)(ik, {
+ /* @__PURE__ */ (0, B.jsx)(rk, {
id: "records",
children: "带的记录"
}),
- /* @__PURE__ */ (0, B.jsx)(ik, {
+ /* @__PURE__ */ (0, B.jsx)(rk, {
id: "target",
children: "接到"
}),
- /* @__PURE__ */ (0, B.jsx)(ik, {
+ /* @__PURE__ */ (0, B.jsx)(rk, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: n.map((t) => /* @__PURE__ */ (0, B.jsx)($de, {
+ ] }), /* @__PURE__ */ (0, B.jsx)(ak, { children: n.map((t) => /* @__PURE__ */ (0, B.jsx)(efe, {
item: t,
toast: e
}, t.id)) })]
@@ -37029,99 +37029,99 @@ function efe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var tfe = wA("git-compare"), nfe = wA("rotate-cw"), rfe = "暂时无法读取进度,正在重新连接…", aN = "清理失效条目", oN = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", sN = (e) => Number(e || 0).toLocaleString();
-function ife({ scan: e }) {
+var nfe = SA("git-compare"), rfe = SA("rotate-cw"), ife = "暂时无法读取进度,正在重新连接…", iN = "清理失效条目", aN = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", oN = (e) => Number(e || 0).toLocaleString();
+function afe({ scan: e }) {
let t = e.cache ?? {
files: 0,
bytes: 0
};
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", {
- className: oN,
+ className: aN,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, B.jsx)("article", {
- className: EM(),
- children: /* @__PURE__ */ (0, B.jsx)(DM, {
- label: Jue[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, B.jsx)(Kk, { mark: Oe[e.location] ?? "database" }),
+ className: TM(),
+ children: /* @__PURE__ */ (0, B.jsx)(EM, {
+ label: Yue[e.location] || "媒体来源",
+ mark: /* @__PURE__ */ (0, B.jsx)(Gk, { mark: Oe[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, B.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
- figure: e.online ? `${sN(e.missing)} 项` : "—",
- meta: Que(e),
+ figure: e.online ? `${oN(e.missing)} 项` : "—",
+ meta: $ue(e),
wrapMeta: !0
})
}, e.location))
}), /* @__PURE__ */ (0, B.jsxs)("div", {
- className: oN,
+ className: aN,
children: [
/* @__PURE__ */ (0, B.jsx)("article", {
- className: EM(),
- children: /* @__PURE__ */ (0, B.jsx)(DM, {
+ className: TM(),
+ children: /* @__PURE__ */ (0, B.jsx)(EM, {
label: "待永久删除",
- figure: `${sN(fM(e))} 项`,
+ figure: `${oN(dM(e))} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, B.jsx)("article", {
- className: EM(),
- children: /* @__PURE__ */ (0, B.jsx)(DM, {
+ className: TM(),
+ children: /* @__PURE__ */ (0, B.jsx)(EM, {
label: "将标为已消失",
- figure: `${sN(e.vanish)} 项`,
+ figure: `${oN(e.vanish)} 项`,
meta: "带个人记录,记录留着"
})
}),
/* @__PURE__ */ (0, B.jsx)("article", {
- className: EM(),
- children: /* @__PURE__ */ (0, B.jsx)(DM, {
+ className: TM(),
+ children: /* @__PURE__ */ (0, B.jsx)(EM, {
label: "空文件夹",
- figure: `${sN(e.empty)} 个`,
+ figure: `${oN(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, B.jsx)("article", {
- className: EM(),
- children: /* @__PURE__ */ (0, B.jsx)(DM, {
+ className: TM(),
+ children: /* @__PURE__ */ (0, B.jsx)(EM, {
label: "可清理的缓存",
- figure: `${sN(t.files)} 个`,
+ figure: `${oN(t.files)} 个`,
meta: t.files ? ye(t.bytes) : ""
})
})
]
})] });
}
-function afe({ toast: e }) {
- let t = UM({
- queryKey: sM,
- queryFn: ({ signal: e }) => lM(e),
- start: Gue,
+function ofe({ toast: e }) {
+ let t = HM({
+ queryKey: oM,
+ queryFn: ({ signal: e }) => cM(e),
+ start: Kue,
onFinish: (t) => {
if (p.invalidateQueries({
- queryKey: yM,
+ queryKey: vM,
exact: !0
}), p.invalidateQueries({
- queryKey: oM,
+ queryKey: aM,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = hM(t);
- r ? e(`已完成 ${sN(n)} 项,${sN(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
+ let { done: n, left: r } = mM(t);
+ r ? e(`已完成 ${oN(n)} 项,${oN(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = UM({
- queryKey: oM,
- queryFn: ({ signal: e }) => cM(e),
- start: Wue,
+ }), n = HM({
+ queryKey: aM,
+ queryFn: ({ signal: e }) => sM(e),
+ start: Gue,
onStarted: () => t.dismiss()
}), r = n.job, i = n.running || n.start.isPending, a = t.running || t.start.isPending, o = r?.status === "complete" || r?.status === "failed", s = i ? "扫描中" : o ? "重新扫描" : "检查文件", c = (e) => void je({
- title: aN,
- body: Zue(e),
- confirmLabel: aN,
+ title: iN,
+ body: Que(e),
+ confirmLabel: iN,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), l = t.outcome, u = (e) => {
- let t = hM(e).left > 0;
+ let t = mM(e).left > 0;
return /* @__PURE__ */ (0, B.jsx)(Y, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: $ue(e, ye)
+ children: ede(e, ye)
});
}, d = null, f = null;
if (l?.status === "failed") f = /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -37130,7 +37130,7 @@ function afe({ toast: e }) {
children: l.error || "请查看任务记录,核对已处理的文件。"
});
else if (l) f = u(l);
- else if (t.running) d = /* @__PURE__ */ (0, B.jsx)(zM, {
+ else if (t.running) d = /* @__PURE__ */ (0, B.jsx)(RM, {
embedded: !0,
label: t.job?.message || "正在复核并清理失效条目…"
});
@@ -37142,11 +37142,11 @@ function afe({ toast: e }) {
else if (n.query.isError && r) f = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
title: "任务状态",
- children: rfe
+ children: ife
});
else if (r?.status === "running") {
- let e = Yue(r);
- d = /* @__PURE__ */ (0, B.jsx)(zM, {
+ let e = Xue(r);
+ d = /* @__PURE__ */ (0, B.jsx)(RM, {
embedded: !0,
label: e,
value: r.completed_sources,
@@ -37163,13 +37163,13 @@ function afe({ toast: e }) {
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (r?.status === "complete") {
- let e = que(r);
+ let e = Jue(r);
f = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- /* @__PURE__ */ (0, B.jsx)(ife, { scan: r }),
+ /* @__PURE__ */ (0, B.jsx)(afe, { scan: r }),
e ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
title: "清理内容",
- children: Xue(r)
+ children: Zue(r)
}) : null,
/* @__PURE__ */ (0, B.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
@@ -37177,7 +37177,7 @@ function afe({ toast: e }) {
variant: "danger",
...X(a),
onClick: () => c(r),
- children: a ? "正在复核并清理…" : aN
+ children: a ? "正在复核并清理…" : iN
}) : /* @__PURE__ */ (0, B.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@ -37194,16 +37194,16 @@ function afe({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, B.jsx)(MM, {
+ /* @__PURE__ */ (0, B.jsx)(jM, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, B.jsxs)(PM, {
+ /* @__PURE__ */ (0, B.jsxs)(NM, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, B.jsx)(J, {
"data-resource-scan": !0,
- leadingIcon: o && !i ? nfe : tfe,
+ leadingIcon: o && !i ? rfe : nfe,
...X(i),
onClick: () => {
i || n.start.mutate();
@@ -37211,7 +37211,7 @@ function afe({ toast: e }) {
children: s
}),
children: [
- /* @__PURE__ */ (0, B.jsx)(NM, {
+ /* @__PURE__ */ (0, B.jsx)(MM, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -37237,16 +37237,16 @@ function afe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
-function cN(e, t) {
+function sN(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
-function lN({ section: e, label: t, icon: n, value: r, open: i }) {
+function cN({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
- className: EM({ interactive: !0 }),
+ className: TM({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, B.jsx)(DM, {
+ children: /* @__PURE__ */ (0, B.jsx)(EM, {
label: t,
icon: n,
figure: r.figure,
@@ -37254,80 +37254,80 @@ function lN({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var ofe = wA("square-check-big"), sfe = wA("sparkles"), cfe = wA("file-stack"), lfe = wA("file-archive"), ufe = wA("trash"), dfe = [
- gM,
- mj,
- JA
-], ffe = () => {
- for (let e of dfe) p.invalidateQueries({
+var sfe = SA("square-check-big"), cfe = SA("sparkles"), lfe = SA("file-stack"), ufe = SA("file-archive"), dfe = SA("trash"), ffe = [
+ hM,
+ hj,
+ KA
+], pfe = () => {
+ for (let e of ffe) p.invalidateQueries({
queryKey: e,
exact: !0
});
};
-function pfe({ toast: e, failure: t, open: n }) {
- let r = TS({
+function mfe({ toast: e, failure: t, open: n }) {
+ let r = wS({
+ queryKey: hM,
+ queryFn: ({ signal: e }) => yM(e)
+ }), i = wS({
+ queryKey: hj,
+ queryFn: ({ signal: e }) => gj(e)
+ }), a = wS({
+ queryKey: KA,
+ queryFn: ({ signal: e }) => JA(e)
+ }), o = wS({
queryKey: gM,
queryFn: ({ signal: e }) => bM(e)
- }), i = TS({
- queryKey: mj,
- queryFn: ({ signal: e }) => hj(e)
- }), a = TS({
- queryKey: JA,
- queryFn: ({ signal: e }) => XA(e)
- }), o = TS({
- queryKey: _M,
+ }), s = wS({
+ queryKey: vM,
queryFn: ({ signal: e }) => xM(e)
- }), s = TS({
- queryKey: yM,
- queryFn: ({ signal: e }) => SM(e)
- }), c = TS({
+ }), c = wS({
queryKey: u,
queryFn: ({ signal: e }) => f(e)
}), l = (t) => e(t);
- return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [
+ return /* @__PURE__ */ (0, B.jsxs)(ME, { children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
- className: ude,
+ className: dde,
children: [
- /* @__PURE__ */ (0, B.jsx)(lN, {
+ /* @__PURE__ */ (0, B.jsx)(cN, {
section: "review",
label: "人工复核",
- icon: ofe,
+ icon: sfe,
open: n,
- value: cN(r, rde)
+ value: sN(r, ide)
}),
- /* @__PURE__ */ (0, B.jsx)(lN, {
+ /* @__PURE__ */ (0, B.jsx)(cN, {
section: "quality",
label: "高清版",
- icon: sfe,
+ icon: cfe,
open: n,
- value: cN(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
+ value: sN(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, B.jsx)(lN, {
+ /* @__PURE__ */ (0, B.jsx)(cN, {
section: "duplicates",
label: "重复文件",
- icon: cfe,
+ icon: lfe,
open: n,
- value: cN(a, (e) => Number(e.total || 0) ? {
+ value: sN(a, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
meta: `可回收 ${ye(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, B.jsx)(lN, {
+ /* @__PURE__ */ (0, B.jsx)(cN, {
section: "ads",
label: "垃圾文件",
- icon: lfe,
+ icon: ufe,
open: n,
- value: cN(o, (e) => ({
+ value: sN(o, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: ide(e)
+ meta: ade(e)
}))
}),
- /* @__PURE__ */ (0, B.jsx)(lN, {
+ /* @__PURE__ */ (0, B.jsx)(cN, {
section: "trash",
label: "回收站",
- icon: ufe,
+ icon: dfe,
open: n,
- value: cN(s, (e) => ({
+ value: sN(s, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
meta: e.total ? `占用 ${ye(e.bytes || 0)}` : ""
}))
@@ -37340,31 +37340,31 @@ function pfe({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, B.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, B.jsx)(VM, {
+ children: /* @__PURE__ */ (0, B.jsx)(BM, {
toast: l,
monitor: !0,
- onComplete: ffe
+ onComplete: pfe
})
}),
/* @__PURE__ */ (0, B.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, B.jsx)(jde, {})
+ children: /* @__PURE__ */ (0, B.jsx)(Mde, {})
}),
- /* @__PURE__ */ (0, B.jsx)(Ude, {
+ /* @__PURE__ */ (0, B.jsx)(Wde, {
toast: l,
failure: t
})
]
}),
- /* @__PURE__ */ (0, B.jsx)(Rde, {}),
- /* @__PURE__ */ (0, B.jsx)(efe, { toast: l }),
- uM(c.data) ? /* @__PURE__ */ (0, B.jsx)(afe, { toast: e }) : null
+ /* @__PURE__ */ (0, B.jsx)(zde, {}),
+ /* @__PURE__ */ (0, B.jsx)(tfe, { toast: l }),
+ lM(c.data) ? /* @__PURE__ */ (0, B.jsx)(ofe, { toast: e }) : null
] });
}
//#endregion
//#region src/react/feed-new/feed-new.ts
-var uN = (e) => ["feed-new", e ?? "home"], mfe = 8, hfe = 1500;
-function gfe(e, t, n) {
+var lN = (e) => ["feed-new", e ?? "home"], hfe = 8, gfe = 1500;
+function _fe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -37375,32 +37375,32 @@ function gfe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function _fe(e, t, n) {
+async function vfe(e, t, n) {
let r = new URLSearchParams({ limit: "12" });
e && r.set("entity", String(e));
let i = await pe(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
- return n && o.length && await gfe(s, mfe, hfe), {
+ return n && o.length && await _fe(s, hfe, gfe), {
items: o,
html: s
};
}
-var dN = (e, t, n = !1) => ({
- queryKey: uN(e),
- queryFn: () => _fe(e, t, n),
+var uN = (e, t, n = !1) => ({
+ queryKey: lN(e),
+ queryFn: () => vfe(e, t, n),
staleTime: Infinity
-}), fN = (e, t) => pe("/api/feeds/discovery", {
+}), dN = (e, t) => pe("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function vfe(e) {
- p.removeQueries({ queryKey: uN(null) }), await p.fetchQuery(dN(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function yfe(e) {
+ p.removeQueries({ queryKey: lN(null) }), await p.fetchQuery(uN(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
//#endregion
//#region src/react/entity-page/entity-page.ts
-var yfe = [
+var bfe = [
"loc",
"creator",
"tag",
@@ -37410,51 +37410,51 @@ var yfe = [
"orient",
"sort",
"dir"
-], pN = {
+], fN = {
media: "videos",
set: 0
-}, mN = (e, t) => [
+}, pN = (e, t) => [
"entity",
e,
t
-], bfe = (e, t, n, r) => [
+], xfe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], hN = (e, t, n, r) => [
+], mN = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], gN = (e) => String(e || "").split(",").filter(Boolean), xfe = (e, t) => gN(e).includes(t);
-function _N(e, t, n, r, i = 0) {
+], hN = (e) => String(e || "").split(",").filter(Boolean), Sfe = (e, t) => hN(e).includes(t);
+function gN(e, t, n, r, i = 0) {
let a = new URLSearchParams();
a.set(e, t), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
- for (let t of yfe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ for (let t of bfe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function vN(e, t, n, r, i, a) {
- return await pe(`/api/items?${_N(e, t, n, r, i)}`, a ? { signal: a } : {});
+async function _N(e, t, n, r, i, a) {
+ return await pe(`/api/items?${gN(e, t, n, r, i)}`, a ? { signal: a } : {});
}
-var yN = (e) => {
+var vN = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = _N(e.kind, e.name, e.filters, t).toString();
+ }, n = gN(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: bfe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => vN(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: xfe(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => _N(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, bN = (e, t) => ({
- queryKey: mN(e, t),
+}, yN = (e, t) => ({
+ queryKey: pN(e, t),
queryFn: ({ signal: n }) => pe(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function Sfe(e, t, n, r, i, a) {
+function Cfe(e, t, n, r, i, a) {
let o = `kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`;
if (i) {
let e = `&limit=120&offset=${i}${a ? `&seed=${encodeURIComponent(a)}` : ""}`;
@@ -37463,10 +37463,10 @@ function Sfe(e, t, n, r, i, a) {
let s = r ? `&seed=${encodeURIComponent(r)}` : "";
return n ? `/api/photo-set?id=${n}&limit=120${s}` : r ? `/api/photos?${o}&limit=120${s}` : `/api/photos?${o}`;
}
-var xN = (e, t, n, r) => ({
- queryKey: hN(e, t, n, r),
+var bN = (e, t, n, r) => ({
+ queryKey: mN(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await pe(Sfe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await pe(Cfe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -37479,8 +37479,8 @@ var xN = (e, t, n, r) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), SN = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function Cfe(e) {
+}), xN = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function wfe(e) {
let { kind: t, name: n } = e;
for (let e of [
"entity",
@@ -37492,51 +37492,51 @@ async function Cfe(e) {
n
] });
await Promise.all([
- p.fetchQuery(bN(t, n)).then((t) => !t || t.error || !t.id ? null : (p.removeQueries({ queryKey: uN(Number(t.id)) }), p.fetchQuery(dN(Number(t.id), e.helpers.feedRowHtml, !0)))),
- p.fetchQuery(yN(e)),
- p.fetchInfiniteQuery(xN(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? p.fetchInfiniteQuery(xN(t, n, e.media.set, "")) : null
+ p.fetchQuery(yN(t, n)).then((t) => !t || t.error || !t.id ? null : (p.removeQueries({ queryKey: lN(Number(t.id)) }), p.fetchQuery(uN(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ p.fetchQuery(vN(e)),
+ p.fetchInfiniteQuery(bN(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? p.fetchInfiniteQuery(bN(t, n, e.media.set, "")) : null
]);
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var wfe = "/api/follow/authors", Tfe = "/api/follow/tags", Efe = (e) => [
+var Tfe = "/api/follow/authors", Efe = "/api/follow/tags", Dfe = (e) => [
"follow",
"authors",
e
-], Dfe = (e, t) => [
+], Ofe = (e, t) => [
"follow",
"tags",
e,
t
];
-function Ofe(e, t, n) {
+function kfe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${wfe}?${r}`;
+ return e && r.set("q", e), `${Tfe}?${r}`;
}
-function kfe(e, t, n, r) {
+function Afe(e, t, n, r) {
let i = new URLSearchParams({
types: "all",
limit: String(n),
offset: String(r)
});
- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Tfe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Efe}?${i}`;
}
-var Afe = (e, t, n, r) => W(Ofe(e, t, n), r), jfe = (e, t, n, r, i) => W(kfe(e, t, n, r), i), Mfe = "/api/index", CN = {
+var jfe = (e, t, n, r) => W(kfe(e, t, n), r), Mfe = (e, t, n, r, i) => W(Afe(e, t, n, r), i), Nfe = "/api/index", SN = {
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, Nfe = {
+}, Pfe = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, wN = [
+}, CN = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -37546,23 +37546,36 @@ var Afe = (e, t, n, r) => W(Ofe(e, t, n), r), jfe = (e, t, n, r, i) => W(kfe(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], TN = [
+], wN = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
+], TN = [
+ ["all", "全部"],
+ ["person", "个人"],
+ ["account", "发布账号"],
+ ["seller", "卖家"],
+ ["organization", "机构"],
+ ["platform", "平台"],
+ ["adult_performer", "成人出演者"],
+ ["model", "模特"],
+ ["artist", "艺术创作者"],
+ ["japanese_av", "日本 AV"],
+ ["western_adult", "西方成人发行"],
+ ["unknown", "待核验"]
], EN = {
people: 120,
tags: 180
}, DN = (e) => e !== "tags", ON = (e) => e === "studios" || e === "agencies";
function kN(e) {
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? TN : wN).some(([t]) => t === e.category);
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = e.kind === "tags" ? t === "online" ? wN : CN : TN, r = t === "local" && (e.kind === "creators" || e.kind === "performers"), i = n.some(([t]) => t === e.category);
return {
...e,
scope: t,
- category: e.kind === "tags" && n ? e.category : "all"
+ category: (e.kind === "tags" || r) && i ? e.category : "all"
};
}
function AN(e) {
@@ -37581,14 +37594,15 @@ function AN(e) {
} : {
what: "people",
kind: t,
- q: n
+ q: n,
+ ...i && i !== "all" ? { category: i } : {}
};
}
var jN = (e, t, n = "all") => [
"index",
e,
t,
- ...e === "tags" ? [n] : []
+ ...e === "tags" || n !== "all" ? [n] : []
];
function MN(e, t, n, r, i) {
let a = new URLSearchParams({
@@ -37596,7 +37610,7 @@ function MN(e, t, n, r, i) {
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${Mfe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${Nfe}?${a}`;
}
function NN(e) {
let t = e.what === "people" || e.what === "online-authors" ? EN.people : EN.tags, n = {
@@ -37606,8 +37620,8 @@ function NN(e) {
switch (e.what) {
case "people": return {
...n,
- queryKey: jN(e.kind, e.q),
- queryFn: ({ pageParam: n, signal: r }) => W(MN(e.kind, e.q, "all", t, n), r)
+ queryKey: jN(e.kind, e.q, e.category || "all"),
+ queryFn: ({ pageParam: n, signal: r }) => W(MN(e.kind, e.q, e.category || "all", t, n), r)
};
case "tags": return {
...n,
@@ -37616,17 +37630,17 @@ function NN(e) {
};
case "online-authors": return {
...n,
- queryKey: Efe(e.q),
- queryFn: ({ pageParam: n, signal: r }) => Afe(e.q, t, n, r)
+ queryKey: Dfe(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => jfe(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: Dfe(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => jfe(e.q, e.category, t, n, r)
+ queryKey: Ofe(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => Mfe(e.q, e.category, t, n, r)
};
}
}
-async function Pfe(e, t) {
+async function Ffe(e, t) {
let n = NN(AN(kN(e)));
p.removeQueries({
queryKey: n.queryKey,
@@ -37641,13 +37655,13 @@ async function Pfe(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var Ffe = (e) => e ? e.pages.flatMap((e) => e.items) : [], Ife = (e, t) => `${e}${t ? "+" : ""} 项`, PN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Lfe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Rfe = {
+var Ife = (e) => e ? e.pages.flatMap((e) => e.items) : [], Lfe = (e, t) => `${e}${t ? "+" : ""} 项`, PN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Rfe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), zfe = {
numeric: !0,
sensitivity: "base"
};
-function zfe(e, t) {
+function Bfe(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Rfe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", zfe))) {
let e = t(r.k).normalize("NFKC").trim().charAt(0).toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
a ? a.push(r) : n.set(i, [r]);
}
@@ -37667,18 +37681,18 @@ function FN({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var Bfe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
+var Vfe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
function IN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
return /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
...a,
"data-index-cell": "",
onClick: i,
- className: AE({
+ className: kE({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${Bfe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${Vfe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -37696,7 +37710,7 @@ function IN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
});
}
function LN({ kind: e, items: t, layout: n, props: r }) {
- let i = Nfe[e], a = ON(e), o = n === "big";
+ let i = Pfe[e], a = ON(e), o = n === "big";
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
@@ -37708,7 +37722,7 @@ function LN({ kind: e, items: t, layout: n, props: r }) {
"data-k": t.k,
"data-kind": i,
name: t.k,
- readout: Lfe(e, t),
+ readout: `${Rfe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: o,
onPress: () => r.openEntity(i, t.k),
children: /* @__PURE__ */ (0, B.jsx)(FN, {
@@ -37721,7 +37735,7 @@ function LN({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function Vfe({ items: e, layout: t, props: n }) {
+function Hfe({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-index-grid": "",
@@ -37745,13 +37759,13 @@ function Vfe({ items: e, layout: t, props: n }) {
}
//#endregion
//#region src/board-controls.ts
-function Hfe(e) {
+function Ufe(e) {
let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;
e.style.setProperty("--board-range-value", `${i}%`);
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox.ts
-var RN = "/vendor/swiper/14.2.0/", zN = null, Ufe = () => zN ??= Promise.all([new Promise((e, t) => {
+var RN = "/vendor/swiper/14.2.0/", zN = null, Wfe = () => zN ??= Promise.all([new Promise((e, t) => {
let n = `${RN}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
@@ -37770,7 +37784,7 @@ var RN = "/vendor/swiper/14.2.0/", zN = null, Ufe = () => zN ??= Promise.all([ne
})]).then(([, e]) => e).catch((e) => {
throw zN = null, e;
});
-function Wfe(e, t, n) {
+function Gfe(e, t, n) {
let r = "fit", i = () => t.slides?.[t.activeIndex]?.querySelector("img"), a = () => {
let e = i();
return !e?.naturalWidth || !e.naturalHeight ? 100 : Math.min(100, e.offsetWidth / e.naturalWidth * 100, e.offsetHeight / e.naturalHeight * 100);
@@ -37794,8 +37808,8 @@ function Wfe(e, t, n) {
var BN = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : ye(t)).replace(" ", "\xA0") : "大小未知";
-}, Gfe = (e) => e.asset?.name || e.name || "未命名图片";
-function Kfe(e, t) {
+}, Kfe = (e) => e.asset?.name || e.name || "未命名图片";
+function qfe(e, t) {
let n = e.asset;
if (n) return [I[n.location ?? ""] || n.location || "来源未知", BN(n.size)].join(" · ");
let r = (e.total ?? 0) > 1 ? `第 ${e.position} / ${e.total} 张` : "", i = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
@@ -37808,31 +37822,31 @@ function Kfe(e, t) {
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var VN = null, HN = null, qfe = 0;
-function Jfe() {
+var VN = null, HN = null, Jfe = 0;
+function Yfe() {
return (!HN || !VN?.isConnected) && (HN?.unmount(), VN = document.createElement("div"), VN.className = "peach-react", VN.dataset.photoLightboxHost = "", document.body.append(VN), HN = (0, ip.createRoot)(VN)), HN;
}
async function UN(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await Ufe();
+ r = await Wfe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = Jfe();
- (0, rp.flushSync)(() => i.render(/* @__PURE__ */ (0, B.jsx)(Yfe, {
+ let i = Yfe();
+ (0, rp.flushSync)(() => i.render(/* @__PURE__ */ (0, B.jsx)(Xfe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++qfe)));
+ }, ++Jfe)));
}
function WN() {
HN && (0, rp.flushSync)(() => HN.render(null));
}
-function Yfe({ slides: e, index: t, Swiper: n, host: r }) {
+function Xfe({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, R.useId)(), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (0, R.useRef)(null), [_, v] = (0, R.useState)(t), [y, b] = (0, R.useState)(100), [x, S] = (0, R.useState)({}), [C, w] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, R.useState)(!1), [D, O] = (0, R.useState)({
at: t,
text: ""
@@ -37875,7 +37889,7 @@ function Yfe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = Wfe(e, a, b);
+ i(t, 0), h.current = Gfe(e, a, b);
let m = tt(e, f.current, p.current), _ = (e = !1) => {
m.hide(), f.current?.setAttribute("aria-expanded", "false"), e && f.current && document.contains(f.current) && f.current.focus();
};
@@ -37898,7 +37912,7 @@ function Yfe({ slides: e, index: t, Swiper: n, host: r }) {
document.removeEventListener("keydown", x, !0), _(), y.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), h.current = null, g.current = null, e.close(), document.body.classList.remove("photolight-open");
};
}, []), (0, R.useLayoutEffect)(() => {
- m.current && Hfe(m.current);
+ m.current && Ufe(m.current);
}, [y]);
let k = e[_], A = k.asset ?? null, j = async (e) => {
if (!A || !r || e.getAttribute("aria-busy") === "true") return;
@@ -38073,10 +38087,10 @@ function Yfe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: Gfe(k)
+ children: Kfe(k)
}, _), /* @__PURE__ */ (0, B.jsx)("span", {
"data-photo-detail-meta": "",
- children: Kfe(k, x[_])
+ children: qfe(k, x[_])
})]
}),
/* @__PURE__ */ (0, B.jsx)("button", {
@@ -38115,16 +38129,16 @@ function Yfe({ slides: e, index: t, Swiper: n, host: r }) {
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
-function Xfe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, B.jsx)(Zfe, {
+function Zfe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, B.jsx)(Qfe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, B.jsx)(Qfe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, B.jsx)(tpe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, B.jsx)($fe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, B.jsx)(npe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-function Zfe({ roster: e, props: t }) {
+function Qfe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, R.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
@@ -38136,12 +38150,12 @@ function Zfe({ roster: e, props: t }) {
props: i
});
}
-function Qfe(e) {
- let t = NA(!e.items, e.skeletonHtml);
+function $fe(e) {
+ let t = jA(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
- children: [t.layer, e.items ? /* @__PURE__ */ (0, B.jsx)(WA, {
+ children: [t.layer, e.items ? /* @__PURE__ */ (0, B.jsx)(HA, {
mode: "entity",
entityKey: `${e.kind}:${e.name}`,
revision: e.revision,
@@ -38160,14 +38174,14 @@ function Qfe(e) {
}) : null]
});
}
-var $fe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var epe = (e) => Array.from({ length: e.n }, (t, n) => ({
sample: !0,
code: e.code,
position: n + 1,
total: e.n,
name: `${e.code} 样张 ${n + 1}`,
source: e.site_label || "官方样张"
-})), GN = (e) => e.sample === !0, KN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, qN = (e) => GN(e) ? `/sample-thumb?${KN(e)}` : `/photo-thumb?id=${e.id}`, epe = (e) => GN(e) ? {
+})), GN = (e) => e.sample === !0, KN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, qN = (e) => GN(e) ? `/sample-thumb?${KN(e)}` : `/photo-thumb?id=${e.id}`, tpe = (e) => GN(e) ? {
src: `/sample-image?${KN(e)}`,
thumb: qN(e),
name: e.name,
@@ -38181,14 +38195,14 @@ var $fe = (e) => Array.from({ length: e.n }, (t, n) => ({
name: e.name || "",
asset: e
};
-function tpe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, R.useMemo)(() => [...e.codeSets.flatMap($fe), ...e.items], [e]), [s, c] = (0, R.useState)(() => /* @__PURE__ */ new Set()), l = (0, R.useCallback)((e) => c((t) => {
+function npe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, R.useMemo)(() => [...e.codeSets.flatMap(epe), ...e.items], [e]), [s, c] = (0, R.useState)(() => /* @__PURE__ */ new Set()), l = (0, R.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, R.useCallback)((e) => {
- UN(e, o.map(epe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, B.jsx)(npe, {
+ UN(e, o.map(tpe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, B.jsx)(rpe, {
item: e,
index: t,
lost: s.has(t),
@@ -38227,7 +38241,7 @@ function tpe({ photos: e, props: t }) {
"data-local-wall": "",
children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))
}),
- e.hasMore ? /* @__PURE__ */ (0, B.jsx)(GA, {
+ e.hasMore ? /* @__PURE__ */ (0, B.jsx)(UA, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
@@ -38251,7 +38265,7 @@ function JN({ label: e, title: t, meta: n }) {
]
});
}
-function npe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function rpe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -38306,7 +38320,7 @@ function QN(e, t) {
y1: a + r
});
}
-function rpe(e, t) {
+function ipe(e, t) {
if (!ZN(e) || !(t > 0)) return YN(e);
let n = Math.min(e.width, e.height * t);
return XN({
@@ -38316,7 +38330,7 @@ function rpe(e, t) {
y1: e.height
});
}
-function ipe(e, t, n) {
+function ape(e, t, n) {
if (!ZN(t) || !(n > 0)) return YN(t);
let r = $N(e, t), i = QN({
width: r.x1 - r.x0,
@@ -38365,7 +38379,7 @@ function tP(e, t, n, r = null) {
y1: a + s / 2
}, n, r);
}
-function ape(e, t, n, r, i = null) {
+function ope(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
@@ -38374,7 +38388,7 @@ function ape(e, t, n, r, i = null) {
};
return $N(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function ope(e, t) {
+function spe(e, t) {
return ZN(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
@@ -38387,7 +38401,7 @@ function ope(e, t) {
height: 0
};
}
-function spe(e, t) {
+function cpe(e, t) {
if (!ZN(t)) return {
size: "cover",
position: "50% 50%"
@@ -38398,7 +38412,7 @@ function spe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function cpe(e, t) {
+function lpe(e, t) {
let n = Math.max(1, e.x1 - e.x0), r = Math.max(1, e.y1 - e.y0);
return {
left: `${-e.x0 / n * 100}%`,
@@ -38412,24 +38426,24 @@ function nP(e, t, n) {
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var lpe = {
+var upe = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal"
};
function rP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
let { isFocusVisible: a } = nh();
- return /* @__PURE__ */ (0, B.jsx)(LO, {
+ return /* @__PURE__ */ (0, B.jsx)(IO, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
"data-modal-motion": "",
"data-motion-instant": a || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, B.jsx)(ose, {
+ children: /* @__PURE__ */ (0, B.jsx)(sse, {
"data-modal-surface": "",
- className: `flex max-h-full w-full ${lpe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, B.jsx)(NO, {
+ className: `flex max-h-full w-full ${upe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, B.jsx)(MO, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
children: i
@@ -38446,7 +38460,7 @@ function iP({ children: e }) {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var upe = .02, aP = 1.08;
+var dpe = .02, aP = 1.08;
function oP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, R.useRef)(null), c = (0, R.useRef)(null), [l, u] = (0, R.useState)(!1);
(0, R.useEffect)(() => {
@@ -38480,14 +38494,14 @@ function oP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
i(eP(n.box, o.dx, o.dy, r));
return;
}
- i(ape(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
+ i(ope(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
}
function m(e) {
c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
}
function h(e) {
if (!n || !r) return;
- let a = Math.max(1, (n.x1 - n.x0) * upe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * dpe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
@@ -38499,7 +38513,7 @@ function oP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
(e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(tP(n, e.key === "-" ? 1 / aP : aP, r, t)));
}
- let g = n && r ? ope($N(n, r, t), r) : null, _ = g ? {
+ let g = n && r ? spe($N(n, r, t), r) : null, _ = g ? {
"--crop-l": `${g.left}%`,
"--crop-t": `${g.top}%`,
"--crop-w": `${g.width}%`,
@@ -38579,20 +38593,20 @@ function oP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var dpe = "/api/avatar-choices", sP = "/api/avatar-pick", fpe = "/api/avatar-code-cover", ppe = "/avatar-choice", cP = (e, t) => [
+var fpe = "/api/avatar-choices", sP = "/api/avatar-pick", ppe = "/api/avatar-code-cover", mpe = "/avatar-choice", cP = (e, t) => [
"avatar-choices",
e,
t
-], lP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, uP = (e, t, n, r = "") => `${ppe}${lP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), dP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", fP = (e, t, n) => W(dpe + lP(e, t), n), mpe = (e) => G(fpe, { code: e });
-function pP(e, t, n) {
+], lP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, uP = (e, t, n, r = "") => `${mpe}${lP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), dP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", hpe = (e, t, n) => W(fpe + lP(e, t), n), gpe = (e) => G(ppe, { code: e });
+function fP(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? ipe(e.focus, t, n) : QN(t, n);
+ return e.focus && r ? ape(e.focus, t, n) : QN(t, n);
}
-var hpe = (e) => e.crop && ZN({
+var _pe = (e) => e.crop && ZN({
width: e.width,
height: e.height
});
-async function gpe(e, t, n) {
+async function vpe(e, t, n) {
if (!("file" in n)) {
await G(sP, {
kind: e,
@@ -38608,32 +38622,32 @@ async function gpe(e, t, n) {
});
if (i.ok) return;
let a = await i.json().catch(() => null);
- throw new zS(a?.error || `请求失败(${i.status})`, i.status, a);
+ throw new RS(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function _pe(e, t) {
+function ype(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
return n.length ? `${e}:图库里按「${n.join("」「")}」找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:图库里没有这个名字,用下面两种方式换。`;
}
-var vpe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function ype(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${vpe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var bpe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function xpe(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${bpe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var mP = (e) => e.cast > 1, bpe = (e) => mP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, xpe = {
+var pP = (e) => e.cast > 1, Spe = (e) => pP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Cpe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
code: "番号封面"
};
-function Spe(e) {
+function wpe(e) {
if (e.startsWith("cover:")) return "封面";
let t = e.split(":")[2] || "";
if (t === "cover") return "封面";
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var Cpe = (e) => `${xpe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (mP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), wpe = 8, Tpe = 3 / 4;
-function Epe({ kind: e, entityId: t, name: n, onPicked: r }) {
+var Tpe = (e) => `${Cpe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (pP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Epe = 8, Dpe = 3 / 4;
+function Ope({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -38643,7 +38657,7 @@ function Epe({ kind: e, entityId: t, name: n, onPicked: r }) {
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, B.jsx)(Kie, {
+ children: /* @__PURE__ */ (0, B.jsx)(qie, {
"aria-hidden": !0,
className: "size-4"
})
@@ -38653,7 +38667,7 @@ function Epe({ kind: e, entityId: t, name: n, onPicked: r }) {
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, B.jsx)(Dpe, {
+ children: /* @__PURE__ */ (0, B.jsx)(kpe, {
kind: e,
entityId: t,
name: n,
@@ -38662,50 +38676,50 @@ function Epe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function Dpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, R.useRef)(null), o = FM(), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [m, h] = (0, R.useState)(null), g = cP(e, t), _ = (0, R.useRef)(!1), v = TS({
+function kpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, R.useRef)(null), o = PM(), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [m, h] = (0, R.useState)(null), g = cP(e, t), _ = (0, R.useRef)(!1), v = wS({
queryKey: g,
- queryFn: ({ signal: n }) => fP(e, t, n),
+ queryFn: ({ signal: n }) => hpe(e, t, n),
retryOnMount: !0
});
(0, R.useEffect)(() => () => {
_.current && p.removeQueries({ queryKey: cP(e, t) });
}, [e, t]);
- let y = OS({
- mutationFn: (n) => gpe(e, t, n),
+ let y = DS({
+ mutationFn: (n) => vpe(e, t, n),
onSuccess: () => {
_.current = !0, i(), r();
}
- }), b = OS({
- mutationFn: (e) => mpe(e),
+ }), b = DS({
+ mutationFn: (e) => gpe(e),
onSuccess: (e) => h(e)
});
function x(e) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", f(""), n && y.mutate({ file: n });
}
- let S = v.data, C = S?.choices ?? [], w = d || (y.error ? U(y.error) : "") || (!m && b.error ? U(b.error) : "") || (v.error ? U(v.error) : ""), T = y.isPending || b.isPending, E = m ? "" : ype(S);
+ let S = v.data, C = S?.choices ?? [], w = d || (y.error ? U(y.error) : "") || (!m && b.error ? U(b.error) : "") || (v.error ? U(v.error) : ""), T = y.isPending || b.isPending, E = m ? "" : xpe(S);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, B.jsx)(iP, { children: /* @__PURE__ */ (0, B.jsx)(FT, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, B.jsx)(iP, { children: /* @__PURE__ */ (0, B.jsx)(PT, { className: "size-6" }) }),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(rD, {
+ children: [/* @__PURE__ */ (0, B.jsx)(nD, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: m ? "框出头像那一块" : "更换头像"
- }), !m && C.length ? /* @__PURE__ */ (0, B.jsxs)(DE, {
+ }), !m && C.length ? /* @__PURE__ */ (0, B.jsxs)(EE, {
color: "soft",
children: [C.length, " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: m ? bpe(m) : _pe(n, S)
+ children: m ? Spe(m) : ype(n, S)
}),
E ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
@@ -38717,14 +38731,14 @@ function Dpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsx)(LM, {
- icon: bT,
+ /* @__PURE__ */ (0, B.jsx)(IM, {
+ icon: yT,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), m ? /* @__PURE__ */ (0, B.jsx)(kpe, {
+ }), m ? /* @__PURE__ */ (0, B.jsx)(jpe, {
kind: e,
entityId: t,
choice: m,
@@ -38748,7 +38762,7 @@ function Dpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"aria-busy": v.isPending || void 0,
"data-skeleton": v.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: v.isPending ? Array.from({ length: wpe }, (e, t) => /* @__PURE__ */ (0, B.jsxs)("span", {
+ children: v.isPending ? Array.from({ length: Epe }, (e, t) => /* @__PURE__ */ (0, B.jsxs)("span", {
"aria-hidden": !0,
"data-avatar-skeleton": !0,
className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",
@@ -38761,14 +38775,14 @@ function Dpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: Cpe(n),
+ title: Tpe(n),
...X(T),
onClick: () => {
T || (n.crop ? h(n) : y.mutate({ ref: n.ref }));
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, B.jsx)(Ope, {
+ /* @__PURE__ */ (0, B.jsx)(Ape, {
src: uP(e, t, n.ref, dP(n, n.ref)),
choice: n
}),
@@ -38778,15 +38792,15 @@ function Dpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, B.jsx)(DE, {
+ children: /* @__PURE__ */ (0, B.jsx)(EE, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- mP(n) ? /* @__PURE__ */ (0, B.jsx)("span", {
+ pP(n) ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, B.jsxs)(DE, {
+ children: /* @__PURE__ */ (0, B.jsxs)(EE, {
variant: "caption",
color: "gray",
children: [n.cast, " 人"]
@@ -38805,7 +38819,7 @@ function Dpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, B.jsx)(Ck, {
+ children: /* @__PURE__ */ (0, B.jsx)(Sk, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -38840,7 +38854,7 @@ function Dpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 items-center gap-2",
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, B.jsx)(Ck, {
+ children: /* @__PURE__ */ (0, B.jsx)(Sk, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -38860,7 +38874,7 @@ function Dpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function Ope({ src: e, choice: t }) {
+function Ape({ src: e, choice: t }) {
let n = (0, R.useRef)(null), [r, i] = (0, R.useState)(!1);
(0, R.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -38868,7 +38882,7 @@ function Ope({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = hpe(t) ? cpe(pP(t, a, Tpe), a) : null, s = r ? !0 : void 0;
+ }, o = _pe(t) ? lpe(fP(t, a, Dpe), a) : null, s = r ? !0 : void 0;
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
children: [/* @__PURE__ */ (0, B.jsx)("img", {
@@ -38893,12 +38907,12 @@ function Ope({ src: e, choice: t }) {
})]
});
}
-function kpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, R.useState)(o[0]), [l, u] = (0, R.useState)(null), [d, f] = (0, R.useState)(null), p = dP(n, s), m = uP(e, t, s, p), h = FM();
+function jpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, R.useState)(o[0]), [l, u] = (0, R.useState)(null), [d, f] = (0, R.useState)(null), p = dP(n, s), m = uP(e, t, s, p), h = PM();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? spe(d, l) : null;
+ let _ = d && l ? cpe(d, l) : null;
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {
ref: h,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
@@ -38909,7 +38923,7 @@ function kpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), ZN(e) && f(s === n.ref ? pP(n, e, 1) : QN(e, 1));
+ u(e), ZN(e) && f(s === n.ref ? fP(n, e, 1) : QN(e, 1));
},
onBox: f
}), o.length > 1 ? /* @__PURE__ */ (0, B.jsx)("div", {
@@ -38923,7 +38937,7 @@ function kpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
"data-crop-base": !0,
onClick: () => g(e),
className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",
- children: Spe(e)
+ children: wpe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -38957,7 +38971,7 @@ function kpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}
//#endregion
//#region src/react/feed-new/feed-new-row.tsx
-function hP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+function mP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
let a = (0, R.useRef)(null), o = e?.items.length ? e.html : "";
(0, R.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !o, e && i?.(!!o);
@@ -38991,12 +39005,12 @@ function hP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
-var Ape = {
+var Mpe = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function gP({ name: e }) {
- let t = Ape[e];
+function hP({ name: e }) {
+ let t = Mpe[e];
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
"aria-hidden": "true",
@@ -39006,19 +39020,19 @@ function gP({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function _P(e, t) {
+function gP(e, t) {
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
t.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left))}px`;
let i = n.bottom + 8;
t.style.top = `${i + r.height <= innerHeight - 8 ? i : Math.max(8, n.top - r.height - 8)}px`;
}
-var vP = (e) => !!e?.isConnected && e.matches(":popover-open");
-function yP(e, t, n, r) {
+var _P = (e) => !!e?.isConnected && e.matches(":popover-open");
+function vP(e, t, n, r) {
let i = (0, R.useRef)(r);
i.current = r, (0, R.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && vP(n.current) ? _P(t.current, n.current) : i.current();
+ t.current && _P(n.current) ? gP(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -39032,17 +39046,17 @@ function yP(e, t, n, r) {
n
]);
}
-function bP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function yP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)(!1), u = (0, R.useRef)(!1), d = (0, R.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, vP(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, _P(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), !(!s.current || !o.current || vP(s.current)) && (s.current.showPopover(), _P(o.current, s.current), l(!0));
+ clearTimeout(d.current), !(!s.current || !o.current || _P(s.current)) && (s.current.showPopover(), gP(o.current, s.current), l(!0));
}, m = () => {
clearTimeout(d.current), d.current = window.setTimeout(() => {
!u.current && !o.current?.matches(":hover,:focus-visible") && !s.current?.matches(":hover") && f();
}, 150);
};
- return yP(c, o, s, f), (0, R.useEffect)(() => {
+ return vP(c, o, s, f), (0, R.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -39068,7 +39082,7 @@ function bP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && vP(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && _P(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -39086,16 +39100,16 @@ function bP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function jpe({ following: e, busy: t, onToggle: n, tip: r }) {
+function Npe({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), [s, c] = (0, R.useState)(!1), l = (0, R.useRef)(!1), u = () => {
- vP(o.current) && o.current.hidePopover(), c(!1);
+ _P(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- l.current || !o.current || !i.current || vP(o.current) || (o.current.showPopover(), _P(i.current, o.current), c(!0));
+ l.current || !o.current || !i.current || _P(o.current) || (o.current.showPopover(), gP(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return yP(s, i, o, () => c(!1)), (0, R.useEffect)(() => {
- i.current && vP(o.current) && _P(i.current, o.current);
+ return vP(s, i, o, () => c(!1)), (0, R.useEffect)(() => {
+ i.current && _P(o.current) && gP(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, B.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -39104,7 +39118,7 @@ function jpe({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, B.jsx)(gP, { name: "rss" }),
+ /* @__PURE__ */ (0, B.jsx)(hP, { name: "rss" }),
/* @__PURE__ */ (0, B.jsx)("input", {
ref: a,
type: "checkbox",
@@ -39139,29 +39153,29 @@ function jpe({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function Mpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function Ppe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, B.jsxs)(Qoe, {
+ }, []), /* @__PURE__ */ (0, B.jsxs)($oe, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, B.jsx)(tD, {
+ children: [/* @__PURE__ */ (0, B.jsx)(eD, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, B.jsx)(gP, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, B.jsx)(SO, {
+ children: /* @__PURE__ */ (0, B.jsx)(hP, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, B.jsx)(xO, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: wk,
+ className: Ck,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, B.jsxs)(ese, {
+ children: /* @__PURE__ */ (0, B.jsxs)(tse, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(kO, {
+ /* @__PURE__ */ (0, B.jsx)(OO, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -39169,31 +39183,31 @@ function Mpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, B.jsxs)(jO, {
+ children: t.map((e) => /* @__PURE__ */ (0, B.jsxs)(AO, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, B.jsx)(gP, { name: "check" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "check" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, B.jsx)(Poe, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, B.jsx)(kO, { children: /* @__PURE__ */ (0, B.jsxs)(jO, {
+ /* @__PURE__ */ (0, B.jsx)(Foe, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, B.jsx)(OO, { children: /* @__PURE__ */ (0, B.jsxs)(AO, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, B.jsx)(gP, { name: "plus" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "plus" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var Npe = (e) => e === "studio" || e === "agency", Ppe = (e) => e === "performer" || e === "creator", Fpe = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
-function Ipe(e) {
+var Fpe = (e) => e === "studio" || e === "agency", Ipe = (e) => e === "performer" || e === "creator", Lpe = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
+function Rpe(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
-function xP(e) {
+function bP(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0
@@ -39204,13 +39218,13 @@ function xP(e) {
linked: !1
} : null;
}
-function SP(e, t) {
+function xP(e, t) {
let n = Ce(e, "performer"), r = be(t);
return r && [e.label, n].map(be).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var CP = (e) => ({ site: xe(e) });
-function Lpe(e, t) {
- let n = xP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var SP = (e) => ({ site: xe(e) });
+function zpe(e, t) {
+ let n = bP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -39220,7 +39234,7 @@ function Lpe(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${SP(e, n)} · ${t}`
+ title: `${xP(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -39231,8 +39245,8 @@ function Lpe(e, t) {
if (t === "performer" && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: SP(e, n),
- mark: CP(e)
+ title: xP(e, n),
+ mark: SP(e)
};
if (e.link_kind === "social") {
let t = me(r);
@@ -39240,7 +39254,7 @@ function Lpe(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : CP(e)
+ mark: t ? { brand: t } : SP(e)
};
}
return {
@@ -39248,13 +39262,13 @@ function Lpe(e, t) {
url: r,
title: e.label || "",
text: Ce(e, t, i),
- mark: CP(e)
+ mark: SP(e)
};
});
return [...r, ...a];
}
-var wP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function Rpe(e) {
+var CP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function Bpe(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -39311,14 +39325,14 @@ function Rpe(e) {
tags: e.tags
}), t;
}
-function zpe(e) {
+function Vpe(e) {
let t = e.length > 5 ? 4 : e.length;
return {
shown: e.slice(0, t),
rest: e.length - t
};
}
-function Bpe(e) {
+function Hpe(e) {
if (!e) return null;
let t = e.shown || [], n = [e.reading || "", ...t].filter(Boolean), r = (e.total || 0) - t.length;
return n.length || r > 0 ? {
@@ -39329,7 +39343,7 @@ function Bpe(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function Vpe(e) {
+function Upe(e) {
return te({
id: e.id,
hasImage: e.has_image,
@@ -39339,8 +39353,8 @@ function Vpe(e) {
focus: e.avatar_focus
});
}
-function Hpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- let s = Ppe(e), c = Npe(e), l = e === "performer" ? Rpe(n.profile) : [], u = Lpe(n, e), d = wP(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, R.useRef)(null), m = (0, R.useRef)(null);
+function Wpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ let s = Ipe(e), c = Fpe(e), l = e === "performer" ? Bpe(n.profile) : [], u = zpe(n, e), d = CP(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, R.useRef)(null), m = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
o.wireScroller(p.current);
}, [o, u.length]), (0, R.useEffect)(() => {
@@ -39353,7 +39367,7 @@ function Hpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, B.jsx)(Upe, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Gpe, {
kind: e,
name: t,
helpers: o,
@@ -39361,7 +39375,7 @@ function Hpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
company: c
}), s && n.id ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, B.jsx)(Epe, {
+ children: /* @__PURE__ */ (0, B.jsx)(Ope, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -39374,24 +39388,63 @@ function Hpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
"data-entity-title": "",
- children: [/* @__PURE__ */ (0, B.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, B.jsx)(Mpe, {
+ children: [/* @__PURE__ */ (0, B.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, B.jsx)(Ppe, {
current: n.canonical_name,
- choices: Ipe(n),
+ choices: Rpe(n),
onChoose: a.chooseName,
onAddAlias: a.addAlias
})]
}),
- /* @__PURE__ */ (0, B.jsx)(Wpe, {
+ /* @__PURE__ */ (0, B.jsx)(Kpe, {
kind: e,
entity: n,
actions: a
}),
+ n.identity_labels?.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
+ "data-identity-classification": "",
+ className: "flex min-w-0 flex-wrap gap-2 text-caption-1-regular text-text-secondary",
+ children: [
+ /* @__PURE__ */ (0, B.jsx)("span", { children: n.identity_labels.join(" · ") }),
+ !!n.classifications?.length && /* @__PURE__ */ (0, B.jsxs)("details", {
+ className: "min-w-0",
+ children: [/* @__PURE__ */ (0, B.jsx)("summary", {
+ className: "cursor-pointer",
+ children: "分类来源"
+ }), /* @__PURE__ */ (0, B.jsx)("ul", {
+ className: "break-words",
+ children: n.classifications.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("li", { children: [
+ e.label,
+ " · ",
+ e.status === "candidate" ? "待核验" : e.status === "rejected" ? "已排除" : "有来源",
+ " · ",
+ e.evidence,
+ e.source_url.startsWith("https://") ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [" ", /* @__PURE__ */ (0, B.jsx)("a", {
+ href: e.source_url,
+ target: "_blank",
+ rel: "noopener noreferrer",
+ children: "来源"
+ })] }) : null
+ ] }, t))
+ })]
+ }),
+ n.related_identities?.map((e) => /* @__PURE__ */ (0, B.jsxs)("button", {
+ type: "button",
+ className: "text-text-primary underline",
+ onClick: () => a.openEntity(e.kind, e.canonical_name),
+ children: [
+ e.relation === "same_person" ? "同一人" : "关联账号",
+ ":",
+ e.canonical_name
+ ]
+ }, e.id))
+ ]
+ }) : null,
u.length ? /* @__PURE__ */ (0, B.jsx)("div", {
ref: p,
"data-entity-links": "",
- children: u.map((e, t) => /* @__PURE__ */ (0, B.jsx)(Jpe, { link: e }, t))
+ children: u.map((e, t) => /* @__PURE__ */ (0, B.jsx)(Xpe, { link: e }, t))
}) : null,
- d.length || n.feed ? /* @__PURE__ */ (0, B.jsx)(Ype, {
+ d.length || n.feed ? /* @__PURE__ */ (0, B.jsx)(Zpe, {
entity: n,
actions: a,
helpers: o
@@ -39400,11 +39453,11 @@ function Hpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}),
l.length ? /* @__PURE__ */ (0, B.jsx)("dl", {
"data-entity-facts": "",
- children: l.map((e) => /* @__PURE__ */ (0, B.jsx)(Kpe, {
+ children: l.map((e) => /* @__PURE__ */ (0, B.jsx)(Jpe, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, B.jsx)(qpe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, B.jsx)(Ype, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -39423,7 +39476,7 @@ function Hpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onClick: () => a.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, B.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${ge(e.k.slice(0, 1))}</span>${Vpe(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${ge(e.k.slice(0, 1))}</span>${Upe(e)}` }
}), /* @__PURE__ */ (0, B.jsx)("span", {
"data-hero-costar-name": "",
children: e.k
@@ -39431,14 +39484,14 @@ function Hpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.k))
})
}) : null]
- }), i ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(hP, {
+ }), i ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(mP, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function Upe({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function Gpe({ kind: e, name: t, helpers: n, people: r, company: i }) {
let [a] = (0, R.useState)(() => `${n.portraitImg()}<span>${ge(t.slice(0, 1))}</span>`);
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-entity-portrait": r ? "round" : "square",
@@ -39447,8 +39500,8 @@ function Upe({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: a }
});
}
-function Wpe({ kind: e, entity: t, actions: n }) {
- let r = xP(t), i = (e, t) => (r) => {
+function Kpe({ kind: e, entity: t, actions: n }) {
+ let r = bP(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, B.jsx)("a", {
href: he("agency", r.name),
@@ -39457,36 +39510,36 @@ function Wpe({ kind: e, entity: t, actions: n }) {
children: r.name
}) : r.name : null, o = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer") {
- let e = Bpe(t.name_groups);
+ let e = Hpe(t.name_groups);
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-entity-alias": "meta",
children: [
/* @__PURE__ */ (0, B.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, B.jsx)(gP, { name: "film" }), /* @__PURE__ */ (0, B.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "film" }), /* @__PURE__ */ (0, B.jsx)("span", { children: o })]
}),
a ? /* @__PURE__ */ (0, B.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, B.jsx)(gP, { name: "briefcase" }), /* @__PURE__ */ (0, B.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "briefcase" }), /* @__PURE__ */ (0, B.jsx)("span", { children: a })]
}) : null,
e ? /* @__PURE__ */ (0, B.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, B.jsx)(gP, { name: "id-card" }),
+ /* @__PURE__ */ (0, B.jsx)(hP, { name: "id-card" }),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, B.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, B.jsx)(bP, {
+ e.rest > 0 ? /* @__PURE__ */ (0, B.jsx)(yP, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
label: `另外 ${e.rest} 个别名`,
heading: `${e.total} 个别名`,
- children: /* @__PURE__ */ (0, B.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, B.jsx)(Gpe, {
+ children: /* @__PURE__ */ (0, B.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, B.jsx)(qpe, {
label: e.label,
names: e.names
}, t)) })
@@ -39521,25 +39574,25 @@ function Wpe({ kind: e, entity: t, actions: n }) {
]
});
}
-function Gpe({ label: e, names: t }) {
+function qpe({ label: e, names: t }) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [e ? /* @__PURE__ */ (0, B.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, B.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, B.jsx)("small", { children: e.reading }) : null] }, t))
})] });
}
-function Kpe({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("dt", { children: [/* @__PURE__ */ (0, B.jsx)(gP, { name: e }), t] }), /* @__PURE__ */ (0, B.jsx)("dd", {
+function Jpe({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("dt", { children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: e }), t] }), /* @__PURE__ */ (0, B.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function qpe({ tags: e }) {
- let { shown: t, rest: n } = zpe(e);
+function Ype({ tags: e }) {
+ let { shown: t, rest: n } = Vpe(e);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, B.jsx)("span", {
"data-fact-tag": "",
children: e
- }, e)), n ? /* @__PURE__ */ (0, B.jsx)(bP, {
+ }, e)), n ? /* @__PURE__ */ (0, B.jsx)(yP, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -39554,10 +39607,10 @@ function qpe({ tags: e }) {
})
}) : null] });
}
-function TP({ mark: e }) {
+function wP({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, B.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, B.jsx)(gP, { name: e.brand })
+ children: /* @__PURE__ */ (0, B.jsx)(hP, { name: e.brand })
});
let t = L("globe") + ("site" in e ? `<img src="${ge(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, B.jsx)("span", {
@@ -39565,7 +39618,7 @@ function TP({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function Jpe({ link: e }) {
+function Xpe({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, B.jsx)("a", {
"data-link": "icon",
@@ -39574,19 +39627,19 @@ function Jpe({ link: e }) {
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, B.jsx)(TP, { mark: e.mark })
+ children: /* @__PURE__ */ (0, B.jsx)(wP, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, B.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, B.jsx)(TP, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, B.jsx)(wP, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, B.jsxs)("span", {
"data-link": "private",
title: "私人馆藏来源记录,不直接打开下载页",
- children: [/* @__PURE__ */ (0, B.jsx)(TP, { mark: { globe: !0 } }), /* @__PURE__ */ (0, B.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, B.jsx)(wP, { mark: { globe: !0 } }), /* @__PURE__ */ (0, B.jsxs)("span", {
"data-link-label": "",
children: ["来源 · ", e.label]
})]
@@ -39597,14 +39650,14 @@ function Jpe({ link: e }) {
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, B.jsx)(TP, { mark: e.mark }), /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [/* @__PURE__ */ (0, B.jsx)(wP, { mark: e.mark }), /* @__PURE__ */ (0, B.jsx)("span", {
"data-link-label": "",
children: e.text
})]
});
}
}
-function Ype({ entity: e, actions: t, helpers: n }) {
+function Zpe({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, R.useState)(!!e.feed?.following), [a, o] = (0, R.useState)(!1), s = (0, R.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -39622,47 +39675,47 @@ function Ype({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-entry-marks": "",
- children: [wP(e).map((e, t) => /* @__PURE__ */ (0, B.jsxs)("a", {
+ children: [CP(e).map((e, t) => /* @__PURE__ */ (0, B.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, B.jsx)(gP, { name: e.mark }) : /* @__PURE__ */ (0, B.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, B.jsx)(hP, { name: e.mark }) : /* @__PURE__ */ (0, B.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, B.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, B.jsx)(jpe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, B.jsx)(Npe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: Fpe(r)
+ tip: Lpe(r)
}) : null]
});
}
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
-function Xpe(e) {
- let { kind: t, name: n } = e, r = TS(bN(t, n)), i = !!r.data?.error, { actions: a } = e;
+function Qpe(e) {
+ let { kind: t, name: n } = e, r = wS(yN(t, n)), i = !!r.data?.error, { actions: a } = e;
return (0, R.useLayoutEffect)(() => {
i && a.missing();
- }, [a, i]), r.isError ? /* @__PURE__ */ (0, B.jsx)(PA, {
+ }, [a, i]), r.isError ? /* @__PURE__ */ (0, B.jsx)(MA, {
message: U(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i ? null : /* @__PURE__ */ (0, B.jsx)($pe, {
+ }) : !r.data || i ? null : /* @__PURE__ */ (0, B.jsx)(tme, {
...e,
entity: r.data
});
}
-function EP(e) {
+function TP(e) {
let [t, n] = (0, R.useState)({
key: e,
n: 1
@@ -39674,14 +39727,14 @@ function EP(e) {
};
return n(r), r.n;
}
-var Zpe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function Qpe(e, t) {
+var $pe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function eme(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function $pe(e) {
- let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = kS(xN(t, n, 0, "")).data?.pages[0], m = f && !f.error ? f : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || SN(m).length > 0, _ = a.media === "photos" && g ? a : pN, [v, y] = (0, R.useState)("people"), b = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [x, S] = (0, R.useState)(b);
+function tme(e) {
+ let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = OS(bN(t, n, 0, "")).data?.pages[0], m = f && !f.error ? f : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || xN(m).length > 0, _ = a.media === "photos" && g ? a : fN, [v, y] = (0, R.useState)("people"), b = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [x, S] = (0, R.useState)(b);
x !== b && (S(b), y("videos"));
- let C = l && v === "people" && u.length ? "people" : _.media, [w, T] = (0, R.useState)(0), E = yN(e), D = TS(E), O = EP(JSON.stringify([E.queryKey, w])), [k] = (0, R.useState)(() => (t === "performer" || t === "studio") && (e.jav || (D.data?.items || []).some((e) => e.is_jav)));
+ let C = l && v === "people" && u.length ? "people" : _.media, [w, T] = (0, R.useState)(0), E = vN(e), D = wS(E), O = TP(JSON.stringify([E.queryKey, w])), [k] = (0, R.useState)(() => (t === "performer" || t === "studio") && (e.jav || (D.data?.items || []).some((e) => e.is_jav)));
(0, R.useLayoutEffect)(() => {
s.javContext(k);
}, [s, k]);
@@ -39691,26 +39744,26 @@ function $pe(e) {
}, [e.layout, k]), j = {
jav: e.jav,
seed: e.seed
- }, M = (0, R.useCallback)((e, r) => vN(t, n, i, j, e, r), [O]), [N, ee] = (0, R.useState)({}), te = _.set, P = N[te] || "", F = kS({
- ...xN(t, n, te, P),
+ }, M = (0, R.useCallback)((e, r) => _N(t, n, i, j, e, r), [O]), [N, ee] = (0, R.useState)({}), te = _.set, P = N[te] || "", F = OS({
+ ...bN(t, n, te, P),
enabled: C === "photos"
- }), ne = F.data?.pages[0], re = EP(JSON.stringify(hN(t, n, te, P))), ie = (0, R.useMemo)(() => {
+ }), ne = F.data?.pages[0], re = TP(JSON.stringify(mN(t, n, te, P))), ie = (0, R.useMemo)(() => {
let e = F.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: re,
- codeSets: t.id ? [] : SN(t),
+ codeSets: t.id ? [] : xN(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
- }, [F.data, re]), ae = F.refetch, oe = F.fetchNextPage, se = TS({
- ...dN(d, o.feedRowHtml),
+ }, [F.data, re]), ae = F.refetch, oe = F.fetchNextPage, se = wS({
+ ...uN(d, o.feedRowHtml),
enabled: !!d
}), ce = (0, R.useRef)(e.feedRevision);
(0, R.useEffect)(() => {
- ce.current !== e.feedRevision && (ce.current = e.feedRevision, p.invalidateQueries({ queryKey: uN(d) }));
+ ce.current !== e.feedRevision && (ce.current = e.feedRevision, p.invalidateQueries({ queryKey: lN(d) }));
}, [d, e.feedRevision]);
let le = !!D.data;
(0, R.useEffect)(() => {
@@ -39727,12 +39780,12 @@ function $pe(e) {
ue.current = !1;
}, []);
let de = (0, R.useCallback)(async () => {
- await p.invalidateQueries({ queryKey: mN(t, n) }), await p.invalidateQueries({ queryKey: [
+ await p.invalidateQueries({ queryKey: pN(t, n) }), await p.invalidateQueries({ queryKey: [
"entity-items",
t,
n
] });
- }, [t, n]), fe = OS({
+ }, [t, n]), fe = DS({
mutationFn: (e) => pe("/api/entity-alias", {
method: "POST",
body: JSON.stringify({
@@ -39742,14 +39795,14 @@ function $pe(e) {
})
}),
onSuccess: () => de()
- }), I = OS({ mutationFn: ({ from: e, to: n }) => pe("/api/entity-name", {
+ }), I = DS({ mutationFn: ({ from: e, to: n }) => pe("/api/entity-name", {
method: "POST",
body: JSON.stringify({
kind: t,
name: e,
canonical: n
})
- }) }), me = OS({
+ }) }), me = DS({
mutationFn: (e) => pe("/api/feeds/source", {
method: "POST",
body: JSON.stringify({
@@ -39758,7 +39811,7 @@ function $pe(e) {
enabled: e
})
}),
- onSuccess: (e, r) => p.setQueryData(mN(t, n), (e) => e && {
+ onSuccess: (e, r) => p.setQueryData(pN(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -39806,10 +39859,10 @@ function $pe(e) {
let e = await pe("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- ue.current && await p.invalidateQueries({ queryKey: uN(d) });
+ ue.current && await p.invalidateQueries({ queryKey: lN(d) });
})();
},
- feedAction: fN,
+ feedAction: dN,
avatarPicked: () => {
s.avatarChanged(), de().then(() => {
ue.current && T((e) => e + 1);
@@ -39840,19 +39893,19 @@ function $pe(e) {
e === C && !_.set || (y(e === "people" ? "people" : "videos"), s.route(i, e === "photos" ? {
media: "photos",
set: 0
- } : pN));
+ } : fN));
},
setState: (e) => s.route({
...i,
state: e
- }, pN),
+ }, fN),
toggleTag: s.toggleTag,
clearFilter: s.clearFilter,
clearAll: s.clearAll,
setSort: s.setSort,
reshuffle: async () => {
if (C !== "photos") {
- let r = s.reshuffleVideos(), a = yN({
+ let r = s.reshuffleVideos(), a = vN({
kind: t,
name: n,
filters: {
@@ -39866,7 +39919,7 @@ function $pe(e) {
await p.fetchQuery(a).catch(() => null);
return;
}
- let r = Zpe(), a = await p.fetchInfiniteQuery(xN(t, n, te, r)).catch(() => null);
+ let r = $pe(), a = await p.fetchInfiniteQuery(bN(t, n, te, r)).catch(() => null);
!ue.current || !a?.pages[0] || a.pages[0].error || ee((e) => ({
...e,
[te]: r
@@ -39899,7 +39952,7 @@ function $pe(e) {
k: e.k,
label: ct(e.k),
n: e.n,
- selected: xfe(i.tag, e.k)
+ selected: Sfe(i.tag, e.k)
})), be = h || u.length ? {
label: u.length ? "页面视图" : "媒体类型",
people: u.length ? {
@@ -39925,9 +39978,9 @@ function $pe(e) {
if (C === "people") Ce = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
else if (C === "videos") {
we = !D.data;
- let e = gN(i.tag).map((e) => ct(e));
+ let e = hN(i.tag).map((e) => ct(e));
Ce = `视频 · ${(D.data?.total || 0).toLocaleString()}${e.length ? ` · ${e.join(" · ")}` : ""}`;
- } else ne && !ne.error ? Ce = xe ? `${ne.title} · ${(ne.total || 0).toLocaleString()} 张` : Qpe(ne, SN(ne).length) : we = F.isPending;
+ } else ne && !ne.error ? Ce = xe ? `${ne.title} · ${(ne.total || 0).toLocaleString()} 张` : eme(ne, xN(ne).length) : we = F.isPending;
let Te = (0, R.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -39944,7 +39997,7 @@ function $pe(e) {
u
]);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- /* @__PURE__ */ (0, B.jsx)(Hpe, {
+ /* @__PURE__ */ (0, B.jsx)(Wpe, {
kind: t,
name: n,
entity: r,
@@ -39954,7 +40007,7 @@ function $pe(e) {
actions: he,
helpers: ge
}, w),
- (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)($ce, {
+ (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(tle, {
kind: t,
name: n,
view: C,
@@ -39970,12 +40023,12 @@ function $pe(e) {
actions: _e,
helpers: ve
}), c.filter),
- (0, rp.createPortal)(C === "videos" && D.isError ? /* @__PURE__ */ (0, B.jsx)(PA, {
+ (0, rp.createPortal)(C === "videos" && D.isError ? /* @__PURE__ */ (0, B.jsx)(MA, {
message: U(D.error),
onRetry: () => {
D.refetch();
}
- }) : /* @__PURE__ */ (0, B.jsx)(Xfe, {
+ }) : /* @__PURE__ */ (0, B.jsx)(Zfe, {
kind: t,
name: n,
view: C,
@@ -40001,7 +40054,7 @@ function $pe(e) {
}
//#endregion
//#region src/react/components/collection-summary.tsx
-function DP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function EP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-collection-summary": "",
className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
@@ -40028,29 +40081,29 @@ function DP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var eme = wA("play"), tme = wA("file-stack"), nme = AE({
+var nme = SA("play"), rme = SA("file-stack"), ime = kE({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), OP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", kP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", AP = "font-mono text-caption-1-regular leading-5 text-text-secondary", jP = () => {
+}), DP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", OP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", kP = "font-mono text-caption-1-regular leading-5 text-text-secondary", AP = () => {
p.invalidateQueries({
- queryKey: JA,
+ queryKey: KA,
exact: !0
}), p.invalidateQueries({
- queryKey: yM,
+ queryKey: vM,
exact: !0
});
};
-function rme(e) {
+function ame(e) {
return e.identical ? /* @__PURE__ */ (0, B.jsx)("span", {
- className: `${kP} text-(--keep)`,
+ className: `${OP} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, B.jsx)("span", {
- className: `${kP} text-text-secondary`,
+ className: `${OP} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function ime({ file: e, openItem: t }) {
+function ome({ file: e, openItem: t }) {
let n = () => t(e.id);
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
@@ -40060,7 +40113,7 @@ function ime({ file: e, openItem: t }) {
onClick: n,
"aria-label": `预览 ${e.name}`,
className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",
- children: [/* @__PURE__ */ (0, B.jsx)(eme, {
+ children: [/* @__PURE__ */ (0, B.jsx)(nme, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, B.jsx)("img", {
@@ -40084,55 +40137,55 @@ function ime({ file: e, openItem: t }) {
}), e.is_largest || e.is_longest ? /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex flex-none gap-1",
children: [e.is_largest ? /* @__PURE__ */ (0, B.jsx)("i", {
- className: `${OP} not-italic bg-background-primary-hover text-text-secondary`,
+ className: `${DP} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, e.is_longest ? /* @__PURE__ */ (0, B.jsx)("i", {
- className: `${OP} not-italic bg-(--keep)/22 text-(--keep)`,
+ className: `${DP} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, B.jsxs)("span", {
- className: `${AP} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: Oe[e.location] || "database" }), /* @__PURE__ */ (0, B.jsx)("span", {
+ className: `${kP} flex min-w-0 items-center gap-1.5`,
+ children: [/* @__PURE__ */ (0, B.jsx)(Gk, { mark: Oe[e.location] || "database" }), /* @__PURE__ */ (0, B.jsx)("span", {
className: "whitespace-nowrap",
children: I[e.location] || e.location || e.drive
})]
}),
/* @__PURE__ */ (0, B.jsx)("span", {
- className: AP,
+ className: kP,
children: ye(e.size || 0)
}),
/* @__PURE__ */ (0, B.jsx)("span", {
- className: AP,
+ className: kP,
children: ve(e.duration)
}),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-middle-truncate": !0,
title: e.path ?? "",
- className: `${AP} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
+ className: `${kP} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
children: e.path ?? ""
})
]
});
}
-function ame({ openItem: e, toast: t, failure: n }) {
- let r = TS({
- queryKey: JA,
- queryFn: ({ signal: e }) => XA(e)
- }), i = TS({
+function sme({ openItem: e, toast: t, failure: n }) {
+ let r = wS({
+ queryKey: KA,
+ queryFn: ({ signal: e }) => JA(e)
+ }), i = wS({
queryKey: u,
queryFn: ({ signal: e }) => f(e)
- }), [a, o] = (0, R.useState)(""), s = OS({
- mutationFn: (e) => $A(e, "dispose"),
+ }), [a, o] = (0, R.useState)(""), s = DS({
+ mutationFn: (e) => ZA(e, "dispose"),
onSuccess: (e, r) => {
- jP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
+ AP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
try {
- await $A(r, "restore");
+ await ZA(r, "restore");
} catch (e) {
n("撤销移入回收站", e);
} finally {
- jP();
+ AP();
}
} });
},
@@ -40146,12 +40199,12 @@ function ame({ openItem: e, toast: t, failure: n }) {
children: r.error ? U(r.error) : "未取得重复文件列表,请刷新页面重试。"
})
});
- let l = c.groups ?? [], d = Ple(i.data), p = ({ groups: e, keep: t, key: n }) => {
+ let l = c.groups ?? [], d = Ile(i.data), p = ({ groups: e, keep: t, key: n }) => {
if (s.isPending) return;
- let r = zle(e, t);
+ let r = Vle(e, t);
r.length && je({
title: "移入回收站",
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${ZA[t] ?? ZA.largest}。文件共 ${ye(Ble(e, r))},记录可从回收站还原。`,
+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${YA[t] ?? YA.largest}。文件共 ${ye(Hle(e, r))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (o(n), s.mutateAsync(r))
});
@@ -40159,15 +40212,15 @@ function ame({ openItem: e, toast: t, failure: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, B.jsx)(DP, {
+ /* @__PURE__ */ (0, B.jsx)(EP, {
label: "重复内容",
figure: `${Number(c.total || 0).toLocaleString()} 组`,
detail: `${c.files} 个文件 · 可回收 ${ye(c.reclaimable)}`
}),
- l.length ? /* @__PURE__ */ (0, B.jsxs)(Gce, {
+ l.length ? /* @__PURE__ */ (0, B.jsxs)(qce, {
title: "批量保留",
children: [
- /* @__PURE__ */ (0, B.jsx)(mA, {
+ /* @__PURE__ */ (0, B.jsx)(fA, {
busy: a === "all:largest",
onPress: () => p({
groups: l,
@@ -40176,7 +40229,7 @@ function ame({ openItem: e, toast: t, failure: n }) {
}),
children: "全部保留最大"
}),
- /* @__PURE__ */ (0, B.jsx)(mA, {
+ /* @__PURE__ */ (0, B.jsx)(fA, {
busy: a === "all:longest",
onPress: () => p({
groups: l,
@@ -40185,7 +40238,7 @@ function ame({ openItem: e, toast: t, failure: n }) {
}),
children: "全部保留最长"
}),
- Rle(l, d).map((e) => /* @__PURE__ */ (0, B.jsx)(mA, {
+ Ble(l, d).map((e) => /* @__PURE__ */ (0, B.jsx)(fA, {
busy: a === `all:${e}`,
onPress: () => p({
groups: l,
@@ -40208,7 +40261,7 @@ function ame({ openItem: e, toast: t, failure: n }) {
let r = [t], i = (e) => `${n}:${e}`;
return /* @__PURE__ */ (0, B.jsxs)("section", {
"aria-label": t.code,
- className: nme,
+ className: ime,
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",
children: [
@@ -40220,9 +40273,9 @@ function ame({ openItem: e, toast: t, failure: n }) {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${t.count} 个 · 可回收 ${ye(t.reclaimable)}`
}),
- rme(t),
+ ame(t),
t.cross_drive ? /* @__PURE__ */ (0, B.jsx)("span", {
- className: `${kP} text-text-secondary`,
+ className: `${OP} text-text-secondary`,
children: `跨盘 ${t.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, B.jsxs)("span", {
@@ -40250,7 +40303,7 @@ function ame({ openItem: e, toast: t, failure: n }) {
}),
children: "留最长"
}),
- QA(t.files, d).map((e) => /* @__PURE__ */ (0, B.jsx)(J, {
+ XA(t.files, d).map((e) => /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
...m(i(e)),
@@ -40275,13 +40328,13 @@ function ame({ openItem: e, toast: t, failure: n }) {
]
})
]
- }), /* @__PURE__ */ (0, B.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, B.jsx)(ime, {
+ }), /* @__PURE__ */ (0, B.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, B.jsx)(ome, {
file: t,
openItem: e
}, t.id)) })]
}, `${t.code}-${n}`);
- }) : /* @__PURE__ */ (0, B.jsx)(jE, {
- icon: tme,
+ }) : /* @__PURE__ */ (0, B.jsx)(AE, {
+ icon: rme,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
})
@@ -40290,23 +40343,23 @@ function ame({ openItem: e, toast: t, failure: n }) {
}
//#endregion
//#region src/react/diagnostics/diagnostics.ts
-var MP = ["diagnostics"], NP = (e) => W("/api/diagnostics", e);
-async function ome(e) {
+var jP = ["diagnostics"], MP = (e) => W("/api/diagnostics", e);
+async function cme(e) {
await p.fetchQuery({
- queryKey: MP,
- queryFn: () => NP(e),
+ queryKey: jP,
+ queryFn: () => MP(e),
staleTime: 1e4
});
}
//#endregion
//#region src/react/diagnostics/diagnostics-page.tsx
-var PP = {
+var NP = {
ok: "正常",
warning: "需检查",
failed: "需处理",
unknown: "未取得",
disabled: "未配置"
-}, sme = [
+}, lme = [
["媒体库与挂载", ["media_mounts", "data_root"]],
["数据库与迁移", ["database", "schema"]],
["工具", ["ffmpeg"]],
@@ -40317,8 +40370,8 @@ var PP = {
"version"
]],
["后台任务", ["tasks"]]
-], FP = (e) => new Date(e).toLocaleString();
-function cme({ name: e, check: t, navigate: n, configure: r }) {
+], PP = (e) => new Date(e).toLocaleString();
+function ume({ name: e, check: t, navigate: n, configure: r }) {
let i = e === "security" ? "网络与访问" : e === "configured" ? "通用" : "媒体";
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border py-4 pr-3 last:border-b-0",
@@ -40330,7 +40383,7 @@ function cme({ name: e, check: t, navigate: n, configure: r }) {
children: t.label
}), /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: PP[t.status] ?? "未取得"
+ children: NP[t.status] ?? "未取得"
})]
}),
/* @__PURE__ */ (0, B.jsx)("p", {
@@ -40350,14 +40403,14 @@ function cme({ name: e, check: t, navigate: n, configure: r }) {
]
});
}
-function lme({ group: e, openItem: t, receipt: n }) {
- let r = IE(), i = FM(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
- return /* @__PURE__ */ (0, B.jsx)(Gk, {
+function dme({ group: e, openItem: t, receipt: n }) {
+ let r = FE(), i = PM(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
+ return /* @__PURE__ */ (0, B.jsx)(Wk, {
summary: `${e.label} · ${e.count === null ? "未取得" : `${e.count} 项`}`,
children: e.count === null ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
children: "清单未取得,请重新检查。"
- }) : e.items.length ? /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ }) : e.items.length ? /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2",
children: [e.truncated ? /* @__PURE__ */ (0, B.jsxs)("span", {
@@ -40392,20 +40445,20 @@ function lme({ group: e, openItem: t, receipt: n }) {
}) }, e.id))
})
})
- ] }) : /* @__PURE__ */ (0, B.jsx)(jE, {
- icon: tae,
+ ] }) : /* @__PURE__ */ (0, B.jsx)(AE, {
+ icon: nae,
title: "清单为空",
shell: "plain",
children: "没有需要处理的作品。"
})
});
}
-function ume(e) {
- let t = TS({
- queryKey: MP,
- queryFn: ({ signal: e }) => NP(e),
+function fme(e) {
+ let t = wS({
+ queryKey: jP,
+ queryFn: ({ signal: e }) => MP(e),
staleTime: 1e4
- }), n = IE(), [r, i] = (0, R.useState)(""), a = () => void n.run("refresh", async () => {
+ }), n = FE(), [r, i] = (0, R.useState)(""), a = () => void n.run("refresh", async () => {
let e = await t.refetch();
if (e.error) throw e.error;
return e.data;
@@ -40426,27 +40479,27 @@ function ume(e) {
tone: "error",
children: r
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Fk, {
+ /* @__PURE__ */ (0, B.jsx)(Pk, {
title: "库健康",
- children: /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [o.library.issue_at ? /* @__PURE__ */ (0, B.jsxs)("p", {
+ children: /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [o.library.issue_at ? /* @__PURE__ */ (0, B.jsxs)("p", {
className: "text-body-2-regular text-text-secondary",
- children: ["处理记录 · ", FP(o.library.issue_at)]
- }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, B.jsx)(lme, {
+ children: ["处理记录 · ", PP(o.library.issue_at)]
+ }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, B.jsx)(dme, {
group: n,
...e
}, t))] })
}),
- sme.map(([t, n]) => /* @__PURE__ */ (0, B.jsx)(Fk, {
+ lme.map(([t, n]) => /* @__PURE__ */ (0, B.jsx)(Pk, {
title: t,
- children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, B.jsx)(cme, {
+ children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, B.jsx)(ume, {
name: t,
check: o.checks[t],
...e
}, t) : null)
}, t)),
- /* @__PURE__ */ (0, B.jsx)(Fk, {
+ /* @__PURE__ */ (0, B.jsx)(Pk, {
title: "来源会话",
- children: /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [o.sources.map((e) => /* @__PURE__ */ (0, B.jsxs)("div", {
+ children: /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [o.sources.map((e) => /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
/* @__PURE__ */ (0, B.jsxs)("h3", {
@@ -40454,19 +40507,19 @@ function ume(e) {
children: [
e.label,
" · ",
- PP[e.status]
+ NP[e.status]
]
}),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-regular text-text-primary",
children: e.reason
}),
- /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [/* @__PURE__ */ (0, B.jsx)(Wk, {
+ /* @__PURE__ */ (0, B.jsxs)(Hk, { children: [/* @__PURE__ */ (0, B.jsx)(Uk, {
term: "上次解析成功",
- children: e.last_success_at ? FP(e.last_success_at) : "未取得"
- }), /* @__PURE__ */ (0, B.jsx)(Wk, {
+ children: e.last_success_at ? PP(e.last_success_at) : "未取得"
+ }), /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "冷却截止",
- children: e.cooldown_until ? FP(e.cooldown_until) : "未在冷却"
+ children: e.cooldown_until ? PP(e.cooldown_until) : "未在冷却"
})] })
]
}, e.source)), /* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsx)(J, {
@@ -40494,21 +40547,21 @@ function ume(e) {
}
//#endregion
//#region src/react/feed-new/feed-new-page.tsx
-function dme({ host: e, revision: t, helpers: n, actions: r }) {
- let i = TS(dN(null, n.feedRowHtml)), a = (0, R.useRef)(t);
+function pme({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = wS(uN(null, n.feedRowHtml)), a = (0, R.useRef)(t);
return (0, R.useEffect)(() => {
- a.current !== t && (a.current = t, p.invalidateQueries({ queryKey: uN(null) }));
- }, [t]), (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(hP, {
+ a.current !== t && (a.current = t, p.invalidateQueries({ queryKey: lN(null) }));
+ }, [t]), (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(mP, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: fN,
+ act: dN,
settled: r.settled
}), e);
}
//#endregion
//#region src/follow-sort.ts
-var IP = [
+var FP = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -40516,7 +40569,7 @@ var IP = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], fme = "checked", LP = {
+], mme = "checked", IP = {
checked: "desc",
added: "desc",
name: "asc",
@@ -40524,32 +40577,32 @@ var IP = [
source: "asc",
provider: "asc",
status: "asc"
-}, pme = (e) => IP.some(([t]) => t === e);
-function RP(e, t) {
- let n = pme(e) ? e : fme;
+}, hme = (e) => FP.some(([t]) => t === e);
+function LP(e, t) {
+ let n = hme(e) ? e : mme;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : LP[n]
+ dir: t === "asc" || t === "desc" ? t : IP[n]
};
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var zP = "/api/follow", BP = "/api/follow/credentials", VP = "/api/follow/check", HP = "/api/follow/source", UP = "/api/follow/resolve", mme = "/api/follow/suggest", WP = "/api/follow/author-alias", hme = "/api/follow/credential", GP = "/api/follow/status", gme = "/api/feeds", KP = "/api/feeds/source", _me = "/api/feeds/check", vme = "/api/feeds/lookup", qP = ["follow-manage"], JP = ["follow-manage", "credentials"], yme = ["follow-manage", "check"], bme = ["follow-manage", "resolve"], YP = ["follow-manage", "feeds"], xme = (e) => [
+var RP = "/api/follow", zP = "/api/follow/credentials", BP = "/api/follow/check", VP = "/api/follow/source", HP = "/api/follow/resolve", gme = "/api/follow/suggest", UP = "/api/follow/author-alias", _me = "/api/follow/credential", WP = "/api/follow/status", vme = "/api/feeds", GP = "/api/feeds/source", yme = "/api/feeds/check", bme = "/api/feeds/lookup", KP = ["follow-manage"], qP = ["follow-manage", "credentials"], xme = ["follow-manage", "check"], Sme = ["follow-manage", "resolve"], JP = ["follow-manage", "feeds"], Cme = (e) => [
"follow-manage",
"suggest",
e
-], XP = [["default", "默认视图"], ["table", "表格视图"]], ZP = [
+], YP = [["default", "默认视图"], ["table", "表格视图"]], XP = [
10,
20,
50,
100
-], Sme = Object.fromEntries(IP), QP = {
+], wme = Object.fromEntries(FP), ZP = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, Cme = (e) => XP.some(([t]) => t === e), wme = (e) => ZP.includes(Number(e)) ? Number(e) : 20, Tme = {
+}, Tme = (e) => YP.some(([t]) => t === e), Eme = (e) => XP.includes(Number(e)) ? Number(e) : 20, Dme = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -40557,25 +40610,25 @@ var zP = "/api/follow", BP = "/api/follow/credentials", VP = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, Eme = (e, t) => `按${Sme[e]}${Tme[e][t === "asc" ? 0 : 1]}排序`;
-function $P(e) {
+}, Ome = (e, t) => `按${wme[e]}${Dme[e][t === "asc" ? 0 : 1]}排序`;
+function QP(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function Dme(e) {
+function kme(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var eF = (e) => e.last_status === "error" || e.last_status === "unauthorized", tF = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), nF = {
- source: tF,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || tF(e, t),
- status: (e, t) => $P(e) - $P(t) || tF(e, t)
-}, rF = (e) => Date.parse(e || "") || 0, iF = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function aF(e, t = []) {
+var $P = (e) => e.last_status === "error" || e.last_status === "unauthorized", eF = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), tF = {
+ source: eF,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || eF(e, t),
+ status: (e, t) => QP(e) - QP(t) || eF(e, t)
+}, nF = (e) => Date.parse(e || "") || 0, rF = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function iF(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || iF(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || rF(e.label), r = e.find((e) => e.entity_name);
if (r) return r.entity_name;
let i = t.find((t) => `name:${t.canonical_key}` === e[0]?.author_key);
- if (i) return iF(i.canonical_name);
+ if (i) return rF(i.canonical_name);
let a = e.find((e) => e.official_avatar_url);
if (a && n(a)) return n(a);
let o = e.map(n).filter(Boolean);
@@ -40583,18 +40636,18 @@ function aF(e, t = []) {
let s = (e) => (e.match(/[A-Z]/g) || []).length;
return o.reduce((e, t) => s(t) > s(e) ? t : e, o[0]);
}
-function oF(e) {
+function aF(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function sF(e) {
+function oF(e) {
let t = e.find((e) => e.official_avatar_url), n = e.find((e) => e.avatar_url), r = t?.official_avatar_url || n?.avatar_url || "";
return {
src: r,
fallback: t && n && n.avatar_url !== r && n.avatar_url || ""
};
}
-function cF(e) {
+function sF(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -40602,32 +40655,32 @@ function cF(e) {
}
return t.map((e) => n.get(e));
}
-function Ome(e, t, n, r = []) {
- let i = cF(e), a = n === LP[t] ? 1 : -1, o = (e) => aF(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = nF[t];
+function Ame(e, t, n, r = []) {
+ let i = sF(e), a = n === IP[t] ? 1 : -1, o = (e) => iF(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = tF[t];
if (c) {
for (let e of i) e.sort((e, t) => a * c(e, t));
return i.sort((e, t) => a * c(e[0], t[0]) || s(e, t));
}
- let l = (e) => Math.max(...e.map((e) => rF(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => rF(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => nF(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => nF(e.created_at)));
return i.sort((e, n) => t === "name" ? a * s(e, n) : t === "sources" ? a * (n.length - e.length) || s(e, n) : t === "added" ? a * (u(n) - u(e)) || s(e, n) : a * (l(n) - l(e)) || s(e, n));
}
-function kme(e, t, n, r = []) {
+function jme(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = aF(e, r);
+ let t = iF(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = nF[t];
+ }), a = tF[t];
if (a) {
- let e = n === LP[t] ? 1 : -1;
+ let e = n === IP[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function lF(e, t, n) {
- let r = _j(e, t), i = vj(n, r), a = (i - 1) * t;
+function cF(e, t, n) {
+ let r = vj(e, t), i = yj(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -40636,91 +40689,91 @@ function lF(e, t, n) {
end: Math.min(a + t, e)
};
}
-function Ame(e, t) {
+function Mme(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function uF(e, t) {
+function lF(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
all: t.length > 0 && n === t.length,
some: n > 0 && n < t.length
};
}
-function dF(e, t, n) {
+function uF(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var fF = (e) => W(`${zP}?summary=1`, e), pF = (e) => W(BP, e), jme = (e) => W(VP, e), Mme = (e) => W(UP, e), Nme = (e, t) => W(`${mme}?q=${encodeURIComponent(e)}`, t), mF = (e) => G(VP, {
+var dF = (e) => W(`${RP}?summary=1`, e), fF = (e) => W(zP, e), Nme = (e) => W(BP, e), Pme = (e) => W(HP, e), Fme = (e, t) => W(`${gme}?q=${encodeURIComponent(e)}`, t), pF = (e) => G(BP, {
...e?.length ? { sources: e } : {},
background: !0
-}), Pme = (e) => G(UP, {
+}), Ime = (e) => G(HP, {
lines: e,
background: !0
-}), hF = (e, t) => G(HP, {
+}), mF = (e, t) => G(VP, {
action: "enabled",
id: e,
enabled: t
-}), gF = (e) => G(HP, {
+}), hF = (e) => G(VP, {
action: "remove",
id: e
-}), Fme = (e) => G(HP, {
+}), Lme = (e) => G(VP, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), _F = (e, t) => G(WP, {
+}), gF = (e, t) => G(UP, {
action: "add",
canonical: e,
alias: t
-}), Ime = (e) => G(WP, {
+}), Rme = (e) => G(UP, {
action: "remove",
alias: e
-}), Lme = (e, t) => G(hme, {
+}), zme = (e, t) => G(_me, {
provider: e,
values: t
-}), Rme = (e, t) => G(GP, {
+}), Bme = (e, t) => G(WP, {
item: e,
to: t
-}), zme = () => W(`${zP}?status=new&limit=1000`);
-async function vF(e) {
- let t = await W(gme, e);
+}), Vme = () => W(`${RP}?status=new&limit=1000`);
+async function _F(e) {
+ let t = await W(vme, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var yF = (e, t, n) => G(KP, {
+var vF = (e, t, n) => G(GP, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), bF = (e, t) => G(KP, {
+}, "POST", n), yF = (e, t) => G(GP, {
action: "remove",
id: e
-}, "POST", t), xF = (e, t) => G(_me, t?.length ? { sources: t } : { all: !0 }, "POST", e), Bme = (e, t) => W(`${vme}?q=${encodeURIComponent(e)}`, t), Vme = (e, t, n) => G(KP, {
+}, "POST", t), bF = (e, t) => G(yme, t?.length ? { sources: t } : { all: !0 }, "POST", e), Hme = (e, t) => W(`${bme}?q=${encodeURIComponent(e)}`, t), Ume = (e, t, n) => G(GP, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
-async function Hme(e, t = "") {
+async function Wme(e, t = "") {
await Promise.all([
p.fetchQuery({
- queryKey: qP,
- queryFn: () => fF(e)
+ queryKey: KP,
+ queryFn: () => dF(e)
}),
p.fetchQuery({
- queryKey: JP,
- queryFn: () => pF(e)
+ queryKey: qP,
+ queryFn: () => fF(e)
}),
t === "feeds" ? p.fetchQuery({
- queryKey: YP,
- queryFn: () => vF(e)
+ queryKey: JP,
+ queryFn: () => _F(e)
}) : null
]);
}
-function SF(e, t) {
- p.setQueryData(qP, (n) => n && {
+function xF(e, t) {
+ p.setQueryData(KP, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -40728,24 +40781,24 @@ function SF(e, t) {
} : n)
});
}
-function CF(e) {
+function SF(e) {
let t = new Set(e);
- p.setQueryData(qP, (e) => e && {
+ p.setQueryData(KP, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var wF = () => p.invalidateQueries({
- queryKey: qP,
+var CF = () => p.invalidateQueries({
+ queryKey: KP,
exact: !0
});
-function Ume(e) {
+function Gme(e) {
let t = e.results || [], n = (e) => t.reduce((t, n) => t + (e(n) || 0), 0), r = n((e) => e.added), i = n((e) => e.updated), a = n((e) => e.skipped_compilations), o = n((e) => e.skipped) - a, s = n((e) => e.history_skipped), c = n((e) => e.probed), l = t.filter((e) => e.ok && !e.added && !e.updated).length, u = t.filter((e) => !e.ok).length, d = [];
r && d.push(`新增 ${r} 条`), i && d.push(`更新 ${i} 条`), o && d.push(`跳过 ${o} 条无资源`), a && d.push(`排除 ${a} 个超大合集`), s && d.push(`跳过 ${s} 条超出首次采集范围的历史内容`), c && d.push(`回查 ${c} 条`), l && d.push(`${l} 个来源没有更新`), d.length || d.push("没有任何更新");
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var Wme = (e) => (e?.results || []).filter((e) => !e.ok), Gme = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", TF = (e) => e.last_checked_at ? yj(e.last_checked_at) : "未检查", Kme = /* @__PURE__ */ new Set([
+var Kme = (e) => (e?.results || []).filter((e) => !e.ok), qme = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", wF = (e) => e.last_checked_at ? bj(e.last_checked_at) : "未检查", Jme = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -40758,50 +40811,50 @@ var Wme = (e) => (e?.results || []).filter((e) => !e.ok), Gme = (e) => (e?.resul
"gofile",
"f95zone",
"simpcity"
-]), EF = (e) => Kme.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", qme = {
+]), TF = (e) => Jme.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Yme = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, DF = (e) => !!e.present && !e.missing.length, Jme = [
+}, EF = (e) => !!e.present && !e.missing.length, Xme = [
["", "全部"],
["new", "未看"],
["saved", "已保存"],
["ignored", "已忽略"]
-], Yme = [
+], Zme = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
-], OF = {
+], DF = {
new: ["从新到旧", "从旧到新"],
hot: ["从高到低", "从低到高"],
dur: ["从长到短", "从短到长"]
};
-function kF(e, t) {
+function OF(e, t) {
let n = (e) => encodeURIComponent(e.join(","));
return `/api/follow?limit=300&offset=${t}` + (e.status ? `&status=${e.status}` : "") + (e.author ? `&author=${n([e.author])}` : "") + (e.provider ? `&provider=${n([e.provider])}` : "") + (e.tags.length ? `&tag=${n(e.tags)}` : "") + (e.work ? `&work=${n([e.work])}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);
}
-function AF(e, t) {
+function kF(e, t) {
return {
queryKey: [
"follow-feed",
- kF(e, 0),
+ OF(e, 0),
t
],
- queryFn: ({ pageParam: t, signal: n }) => W(kF(e, t), n),
+ queryFn: ({ pageParam: t, signal: n }) => W(OF(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,
- placeholderData: AS.keepPreviousData
+ placeholderData: kS.keepPreviousData
};
}
-var jF = ["follow-feed", "credentials"], MF = (e) => W(BP, e).catch(() => ({ providers: [] }));
-async function Xme(e, t) {
- let n = AF(e.view, e.revision);
+var AF = ["follow-feed", "credentials"], jF = (e) => W(zP, e).catch(() => ({ providers: [] }));
+async function Qme(e, t) {
+ let n = kF(e.view, e.revision);
p.removeQueries({
queryKey: n.queryKey,
exact: !0
}), p.removeQueries({
- queryKey: jF,
+ queryKey: AF,
exact: !0
}), await Promise.all([p.fetchInfiniteQuery({
queryKey: n.queryKey,
@@ -40812,11 +40865,11 @@ async function Xme(e, t) {
initialPageParam: 0,
getNextPageParam: n.getNextPageParam
}), p.fetchQuery({
- queryKey: jF,
- queryFn: () => MF(t)
+ queryKey: AF,
+ queryFn: () => jF(t)
})]);
}
-function NF(e) {
+function MF(e) {
if (!e?.pages.length) return null;
let t = e.pages, n = t[t.length - 1];
return {
@@ -40825,10 +40878,10 @@ function NF(e) {
groups: t.flatMap((e) => e.groups || [])
};
}
-function PF(e, t, n) {
+function NF(e, t, n) {
return [...e].sort((e, r) => Ee(n, t(e)) - Ee(n, t(r)) || String(t(e)).localeCompare(String(t(r))));
}
-function FF(e) {
+function PF(e) {
let t = /* @__PURE__ */ new Set();
return [
e.primary,
@@ -40836,14 +40889,14 @@ function FF(e) {
...e.duplicates
].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));
}
-function Zme(e) {
+function $me(e) {
let t = p.getQueryCache().findAll({ queryKey: ["follow-feed"] }).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt);
for (let n of t) {
let t = n.state.data;
if (!Array.isArray(t?.pages) || !t.pages.length) continue;
let r = t.pages[t.pages.length - 1];
for (let n of t.pages) for (let t of n.groups || []) {
- let n = FF(t).find((t) => t.id === e);
+ let n = PF(t).find((t) => t.id === e);
if (n) return {
item: n,
group: t,
@@ -40854,7 +40907,7 @@ function Zme(e) {
}
return null;
}
-function Qme(e) {
+function ehe(e) {
p.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -40864,7 +40917,7 @@ function Qme(e) {
...t,
groups: (t.groups || []).map((t) => {
let n = (t) => t.id === e.id ? e : t;
- return FF(t).some((t) => t.id === e.id) ? {
+ return PF(t).some((t) => t.id === e.id) ? {
...t,
primary: n(t.primary),
variants: t.variants.map(n),
@@ -40874,39 +40927,39 @@ function Qme(e) {
}))
});
}
-function $me(e, t) {
+function the(e, t) {
p.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
- }, (n) => n && UF(n, null, e, t));
+ }, (n) => n && HF(n, null, e, t));
}
-function IF(e) {
- return FF(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
+function FF(e) {
+ return PF(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
}
-function LF(e) {
+function IF(e) {
let t = /* @__PURE__ */ new Set(), n = e.media_items || [];
return n.length ? n.forEach((e) => {
(e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind);
}) : (e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind), t;
}
-function RF(e) {
+function LF(e) {
let t = /* @__PURE__ */ new Set();
- return FF(e).forEach((e) => LF(e).forEach((e) => t.add(e))), t;
+ return PF(e).forEach((e) => IF(e).forEach((e) => t.add(e))), t;
}
-function zF(e, t) {
+function RF(e, t) {
let n = t === "images" ? "image" : "video";
- return IF(e).find((e) => LF(e).has(n)) || e.primary;
+ return FF(e).find((e) => IF(e).has(n)) || e.primary;
}
-function BF(e) {
- return IF(e).filter((e) => e.playable && e.media_kind === "video");
+function zF(e) {
+ return FF(e).filter((e) => e.playable && e.media_kind === "video");
}
-var VF = {
+var BF = {
video: "个视频",
image: "张图片",
mixed: "个媒体"
};
-function ehe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
- let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${VF[s] || VF.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
+function nhe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
+ let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${BF[s] || BF.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,
@@ -40915,14 +40968,14 @@ function ehe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r
faces: d.length > 1 ? d.slice(0, i) : []
};
}
-function the(e) {
+function rhe(e) {
let t = e.filter((e) => e.can_backfill).map((e) => (e.backfill_page || 0) + 1);
if (!t.length) return "";
let n = Math.max(...t), r = Math.min(...t);
return n <= 1 ? "每个来源都只抓了第 1 页" : r === n ? `每个来源都抓到第 ${n} 页` : `已抓到第 ${r}–${n} 页`;
}
-function HF(e, t, n) {
- return e === t ? OF[e] ? {
+function VF(e, t, n) {
+ return e === t ? DF[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
@@ -40930,13 +40983,13 @@ function HF(e, t, n) {
dir: "desc"
};
}
-function nhe(e, t, n, r) {
- let i = HF(e, n, r);
+function ihe(e, t, n, r) {
+ let i = VF(e, n, r);
if (!i) return "";
- let a = OF[i.sort];
+ let a = DF[i.sort];
return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;
}
-function UF(e, t, n, r) {
+function HF(e, t, n, r) {
let i = "", a = e.pages.map((e) => ({
...e,
groups: (e.groups || []).flatMap((e) => {
@@ -40966,7 +41019,7 @@ function UF(e, t, n, r) {
})
};
}
-function rhe(e, t) {
+function ahe(e, t) {
let n = [];
return e.author && n.push({
kind: "创作者",
@@ -40986,7 +41039,7 @@ function rhe(e, t) {
label: e
})), n;
}
-function ihe(e, t) {
+function ohe(e, t) {
return t.kind === "创作者" ? {
...e,
author: ""
@@ -41001,7 +41054,7 @@ function ihe(e, t) {
tags: e.tags.filter((e) => e !== t.key)
};
}
-function ahe(e, t) {
+function she(e, t) {
for (let n of e) {
let e = n.primary?.tag_types?.[t];
if (e) return e;
@@ -41010,7 +41063,7 @@ function ahe(e, t) {
}
//#endregion
//#region src/sidebar.ts
-var ohe = [
+var che = [
"",
"follow",
"jav",
@@ -41019,7 +41072,7 @@ var ohe = [
"studios",
"flagged",
"manage"
-], she = [
+], lhe = [
"playlists",
"immerse",
"stats",
@@ -41029,77 +41082,77 @@ var ohe = [
"follow-manage",
"quality"
];
-[...ohe, ...she];
-function che(e) {
+[...che, ...lhe];
+function uhe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);
return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);
}
//#endregion
//#region src/react/follow-feed/follow-marks.ts
-var WF = (e) => typeof e == "string" ? e : "", GF = (e) => e.aliases;
-function KF(e, t = "") {
- let n = EF(e);
+var UF = (e) => typeof e == "string" ? e : "", WF = (e) => e.aliases;
+function GF(e, t = "") {
+ let n = TF(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${ge(t)}"${t ? ` title="${ge(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-var qF = (e, t) => aF(e, GF(t));
-function JF(e, t) {
- let { src: n, fallback: r } = sF(e), i = oF(t);
+var KF = (e, t) => iF(e, WF(t));
+function qF(e, t) {
+ let { src: n, fallback: r } = oF(e), i = aF(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${ge(i)}</span>`;
let a = r ? ` data-fallbacks="${ge(r)}"` : "";
return `<img class="favatar" src="${ge(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${ge(i)}" data-drop-class="favatar none">`;
}
-function YF(e, t, n) {
- let r = GF(n), i = e.credit, a = i?.poster;
+function JF(e, t, n) {
+ let r = WF(n), i = e.credit, a = i?.poster;
if (!a) {
- let n = aF(t, r);
+ let n = iF(t, r);
return {
- author: n || WF(e.author) || WF(e.source_label) || "创作者未取得",
- avatar: JF(t, n),
+ author: n || UF(e.author) || UF(e.source_label) || "创作者未取得",
+ avatar: qF(t, n),
credited: ""
};
}
- let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && aF(c, r) || a;
+ let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && iF(c, r) || a;
return {
author: l,
- avatar: JF(c, l),
+ avatar: qF(c, l),
credited: i.credited || ""
};
}
-function XF(e, t = e.primary) {
+function YF(e, t = e.primary) {
let n = [], r = (e, t) => `<small class="javedition" data-follow-edition="${e}">${t}</small>`;
e.primary.variant_kind === "wip" ? n.push(r("wip", "WIP")) : e.has_wip && n.push(r("has-wip", "含 WIP"));
- let i = WF(e.primary.version);
+ let i = UF(e.primary.version);
i && n.push(r("version", ge(i)));
- let a = WF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = UF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function ZF(e, t = e.primary) {
+function XF(e, t = e.primary) {
let n = new Map([
e.primary,
...e.variants,
...e.duplicates
].filter((e) => e.provider !== t.provider).map((e) => [e.provider, e.provider_label || e.provider]));
if (!n.size) return "";
- let r = [...n].map(([e, t]) => KF(e, t) || `<span>${ge(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => GF(e, t) || `<span>${ge(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${ge([...n.values()].join("、"))}">另见 ${r}</span>`;
}
-function QF(e, t) {
- let n = WF(e.media_error);
+function ZF(e, t) {
+ let n = UF(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var $F = (e) => e.published_at ? yj(e.published_at) : "时间未取得", eI = /* @__PURE__ */ new Set(), tI = [], nI = null;
-function rI() {
- if (nI = null, !tI.length) return;
- let e = tI.splice(0, 200);
+var QF = (e) => e.published_at ? bj(e.published_at) : "时间未取得", $F = /* @__PURE__ */ new Set(), eI = [], tI = null;
+function nI() {
+ if (tI = null, !eI.length) return;
+ let e = eI.splice(0, 200);
pe("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), tI.length && (nI = setTimeout(rI, 800));
+ }).catch(() => {}), eI.length && (tI = setTimeout(nI, 800));
}
-function lhe(e, t, n, r) {
+function dhe(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- eI.has(i) || (eI.add(i), tI.push(t === null ? {
+ $F.has(i) || ($F.add(i), eI.push(t === null ? {
item: e,
width: n,
height: r
@@ -41108,15 +41161,15 @@ function lhe(e, t, n, r) {
width: n,
height: r,
media: t
- }), nI ||= setTimeout(rI, 800));
+ }), tI ||= setTimeout(nI, 800));
}
//#endregion
//#region src/react/follow-feed/follow-card.tsx
-var uhe = (e) => Number(e) > 0;
-function dhe(e) {
+var fhe = (e) => Number(e) > 0;
+function phe(e) {
return /^\d{4}-/.test(e) ? e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10) : e;
}
-function fhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {
+function mhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {
let [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(!1);
return a ? null : /* @__PURE__ */ (0, B.jsx)("img", {
src: s ? t : e,
@@ -41134,8 +41187,8 @@ function fhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {
} : void 0
});
}
-function phe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = zF(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => lhe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? BF(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ehe({
+function hhe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = RF(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => dhe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? zF(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = nhe({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -41143,7 +41196,7 @@ function phe(e) {
limit: 9
}), S = (0, R.useRef)(x.faces);
S.current = x.faces;
- let C = BA({
+ let C = RA({
load: async () => S.current,
canFlip: () => S.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -41151,7 +41204,7 @@ function phe(e) {
w.current = C.onPointerLeave;
let T = (0, R.useCallback)((e) => {
e && (e._stopHover = () => w.current());
- }, []), E = YF(u, n, i), D = $F(u), O = (u.tags || []).slice(0, 3), k = QF(u, i), A = ZF(t, u), j = u.status === "saved", M = (e) => {
+ }, []), E = JF(u, n, i), D = QF(u), O = (u.tags || []).slice(0, 3), k = ZF(u, i), A = XF(t, u), j = u.status === "saved", M = (e) => {
if (!e.target.closest("[data-media-tag]")) {
if (o || e.shiftKey || e.ctrlKey || e.metaKey) {
e.preventDefault(), l.toggleSelection(u.id, e.shiftKey);
@@ -41184,7 +41237,7 @@ function phe(e) {
}), /* @__PURE__ */ (0, B.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, B.jsx)(fhe, {
+ p ? /* @__PURE__ */ (0, B.jsx)(mhe, {
src: p,
fallback: m,
width: _?.width,
@@ -41192,7 +41245,7 @@ function phe(e) {
onLearn: v
}, p) : /* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: KF(u.resource_provider || u.provider) }
+ dangerouslySetInnerHTML: { __html: GF(u.resource_provider || u.provider) }
}),
x.faces.length > 1 ? /* @__PURE__ */ (0, B.jsx)("div", {
"data-mix-faces": "",
@@ -41211,7 +41264,7 @@ function phe(e) {
"data-media-badge": "",
title: u.provider_label,
"aria-label": `来源:${u.provider_label || ""}`,
- dangerouslySetInnerHTML: { __html: KF(u.provider) }
+ dangerouslySetInnerHTML: { __html: GF(u.provider) }
}),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-media-check": "",
@@ -41220,7 +41273,7 @@ function phe(e) {
},
dangerouslySetInnerHTML: { __html: L("check") }
}),
- uhe(u.duration) ? /* @__PURE__ */ (0, B.jsx)("span", {
+ fhe(u.duration) ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-media-duration": "",
children: ve(u.duration)
}) : null,
@@ -41302,7 +41355,7 @@ function phe(e) {
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: XF(t, u) + ge(u.title) }
+ dangerouslySetInnerHTML: { __html: YF(t, u) + ge(u.title) }
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
"data-follow-byline": "",
@@ -41313,7 +41366,7 @@ function phe(e) {
}), /* @__PURE__ */ (0, B.jsx)("time", {
dateTime: u.published_at || "",
title: D,
- children: dhe(D)
+ children: phe(D)
})]
}),
E.credited ? /* @__PURE__ */ (0, B.jsx)("div", {
@@ -41349,10 +41402,10 @@ function phe(e) {
]
});
}
-var mhe = (0, R.memo)(phe), iI = () => /* @__PURE__ */ (0, B.jsx)("span", {
+var ghe = (0, R.memo)(hhe), rI = () => /* @__PURE__ */ (0, B.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), hhe = wA("settings"), ghe = wA("chevron-down"), _he = wA("history"), vhe = [[
+}), _he = SA("settings"), vhe = SA("chevron-down"), yhe = SA("history"), bhe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -41361,19 +41414,19 @@ var mhe = (0, R.memo)(phe), iI = () => /* @__PURE__ */ (0, B.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function yhe(e, t, n) {
+function xhe(e, t, n) {
return (0, R.useMemo)(() => {
let r = e?.groups || [], i = e?.counts || {}, a = e?.sources || [], o = e?.facets || {}, s = new Set(o.authors || []), c = new Map(a.map((e) => [e.provider, e.provider_label || e.provider])), l = new Map((o.providers || []).map((e) => [e, c.get(e) || e])), u = new Map(o.tags || []), d = /* @__PURE__ */ new Map();
a.forEach((e) => {
e.author_key && (d.has(e.author_key) || d.set(e.author_key, []), d.get(e.author_key).push(e));
});
- let f = PF([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = PF(o.works || [], (e) => e[0], n).slice(0, 24);
+ let f = NF([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = NF(o.works || [], (e) => e[0], n).slice(0, 24);
t.work && !p.some((e) => e[0] === t.work) && p.push([
t.work,
t.work,
0
]);
- let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = PF([...u], (e) => e[0], n).slice(0, 20);
+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = NF([...u], (e) => e[0], n).slice(0, 20);
t.tags.forEach((e) => {
h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);
});
@@ -41381,7 +41434,7 @@ function yhe(e, t, n) {
videos: 0,
images: 0
};
- r.forEach((e) => RF(e).forEach((e) => {
+ r.forEach((e) => LF(e).forEach((e) => {
g[e === "image" ? "images" : "videos"] += 1;
}));
let _ = t.media === "images" ? "image" : "video";
@@ -41396,7 +41449,7 @@ function yhe(e, t, n) {
workRows: p,
allCount: m,
mediaCounts: g,
- visible: r.filter((e) => RF(e).has(_)),
+ visible: r.filter((e) => LF(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]])),
@@ -41409,15 +41462,15 @@ function yhe(e, t, n) {
n
]);
}
-function bhe(e) {
- let { view: t, seed: n, revision: r, actions: i } = e, a = AF(t, r), o = kS(a), s = TS({
- queryKey: jF,
- queryFn: ({ signal: e }) => MF(e)
- }), c = (0, R.useMemo)(() => NF(o.data), [o.data]), l = (0, R.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, R.useMemo)(() => ({
+function She(e) {
+ let { view: t, seed: n, revision: r, actions: i } = e, a = kF(t, r), o = OS(a), s = wS({
+ queryKey: AF,
+ queryFn: ({ signal: e }) => jF(e)
+ }), c = (0, R.useMemo)(() => MF(o.data), [o.data]), l = (0, R.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, R.useMemo)(() => ({
sources: c?.sources || [],
aliases: c?.author_aliases || [],
credentials: l
- }), [c, l]), d = yhe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, R.useMemo)(() => che(d.visible.flatMap(FF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);
+ }), [c, l]), d = xhe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, R.useMemo)(() => uhe(d.visible.flatMap(PF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);
(0, R.useEffect)(() => {
p && i.loaded(m);
}, [
@@ -41425,20 +41478,20 @@ function bhe(e) {
m,
i
]);
- let h = xhe(e, !!c);
- if (!c) return o.isError ? /* @__PURE__ */ (0, B.jsx)(PA, {
+ let h = Che(e, !!c);
+ if (!c) return o.isError ? /* @__PURE__ */ (0, B.jsx)(MA, {
message: Te(o.error),
onRetry: () => void o.refetch()
}) : null;
let g = (e) => i.route({
...t,
...e
- }), _ = rhe({
+ }), _ = ahe({
...t,
author: d.author,
provider: d.provider
}, {
- authors: new Map([...d.authorSources].map(([e, t]) => [e, qF(t, u)])),
+ authors: new Map([...d.authorSources].map(([e, t]) => [e, KF(t, u)])),
providers: d.providers,
works: d.workNames
}), v = t.status ? d.counts[t.status] || 0 : d.allCount, y = d.sources.some((e) => e.can_backfill);
@@ -41458,7 +41511,7 @@ function bhe(e) {
"data-follow-head-actions": "",
children: [/* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
- leadingIcon: hhe,
+ leadingIcon: _he,
"data-follow-manage": "",
onClick: i.openManage,
children: "管理关注"
@@ -41475,20 +41528,20 @@ function bhe(e) {
}) : null]
})]
}),
- /* @__PURE__ */ (0, B.jsx)(She, {
+ /* @__PURE__ */ (0, B.jsx)(whe, {
facets: d,
pressed: d.author,
context: u,
props: e,
onPick: (e) => g({ author: d.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, B.jsx)(Che, {
+ /* @__PURE__ */ (0, B.jsx)(The, {
rows: d.workRows,
pressed: t.work,
props: e,
onPick: (e) => g({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, B.jsx)(whe, {
+ /* @__PURE__ */ (0, B.jsx)(Ehe, {
facets: d,
view: t,
total: v,
@@ -41496,9 +41549,9 @@ function bhe(e) {
props: e,
route: g
}),
- /* @__PURE__ */ (0, B.jsx)(The, {
+ /* @__PURE__ */ (0, B.jsx)(Dhe, {
conditions: _,
- onDrop: (e) => i.route(ihe(t, e)),
+ onDrop: (e) => i.route(ohe(t, e)),
onClear: () => g({
author: "",
provider: "",
@@ -41506,11 +41559,11 @@ function bhe(e) {
tags: []
})
}),
- d.broken.length ? /* @__PURE__ */ (0, B.jsx)(Ehe, {
+ d.broken.length ? /* @__PURE__ */ (0, B.jsx)(Ohe, {
count: d.broken.length,
onManage: i.openManage
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Dhe, {
+ /* @__PURE__ */ (0, B.jsx)(khe, {
pending: f,
facets: d,
data: c,
@@ -41521,19 +41574,19 @@ function bhe(e) {
"data-follow-pagination": "",
children: [c.has_more ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-page-action": "",
- children: /* @__PURE__ */ (0, B.jsxs)(GA, {
+ children: /* @__PURE__ */ (0, B.jsxs)(UA, {
entity: !0,
enabled: () => !h.busyRef.current,
load: async () => {
await o.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, B.jsx)(ghe, { className: "size-3.5" }), "加载更多"]
+ children: [/* @__PURE__ */ (0, B.jsx)(vhe, { className: "size-3.5" }), "加载更多"]
}, o.data?.pages.length)
}) : null, y ? /* @__PURE__ */ (0, B.jsxs)("span", {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
- leadingIcon: h.olderBusy ? void 0 : _he,
+ leadingIcon: h.olderBusy ? void 0 : yhe,
"data-follow-older": "",
"aria-busy": h.busy || void 0,
onClick: () => void h.start(!0),
@@ -41543,14 +41596,14 @@ function bhe(e) {
}), /* @__PURE__ */ (0, B.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"
}), /* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-backfill": "",
- children: the(d.sources)
+ children: rhe(d.sources)
})]
}) : null]
}) : null
]
})] });
}
-function xhe(e, t) {
+function Che(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, R.useState)(0), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(!1), f = (0, R.useRef)(!1), m = (0, R.useRef)(null), h = (0, R.useRef)({
helpers: n,
actions: r
@@ -41565,7 +41618,7 @@ function xhe(e, t) {
return h.current.helpers.jobProgress({
host: e,
active: () => t,
- read: (e) => W(VP, e),
+ read: (e) => W(BP, e),
busy: (e) => {
t && (f.current = e, s(e));
},
@@ -41590,7 +41643,7 @@ function xhe(e, t) {
f.current = !0, l(e ? "older" : "check");
let t = !1;
try {
- let n = await G(VP, e ? {
+ let n = await G(BP, e ? {
older: !0,
background: !0
} : { background: !0 });
@@ -41608,7 +41661,7 @@ function xhe(e, t) {
olderBusy: c === "older" || u && o
};
}
-function She({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function whe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
r.helpers.wireDrag(a.current);
@@ -41625,16 +41678,16 @@ function She({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
onClick: () => i(r),
children: [/* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: JF(a, qF(a, n)) }
+ dangerouslySetInnerHTML: { __html: qF(a, KF(a, n)) }
}), /* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-name": "",
- children: qF(a, n)
+ children: KF(a, n)
})]
}, r);
})
}) : null;
}
-function Che({ rows: e, pressed: t, props: n, onPick: r }) {
+function The({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -41655,13 +41708,13 @@ function Che({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function whe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = hA(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = hA(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function Ehe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+ let { helpers: o, actions: s } = i, c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = pA(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = pA(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, R.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
}, [o]);
let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";
- return /* @__PURE__ */ (0, B.jsx)(fA, {
+ return /* @__PURE__ */ (0, B.jsx)(uA, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -41713,7 +41766,7 @@ function whe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: L(i) }
}, e);
})
- }), /* @__PURE__ */ (0, B.jsx)(iI, {})] }) : null, /* @__PURE__ */ (0, B.jsxs)("div", {
+ }), /* @__PURE__ */ (0, B.jsx)(rI, {})] }) : null, /* @__PURE__ */ (0, B.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
@@ -41722,7 +41775,7 @@ function whe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"aria-label": "状态",
"data-entity-states": "",
onPointerLeave: h.leave,
- children: [Jme.map(([e, n]) => /* @__PURE__ */ (0, B.jsx)("button", {
+ children: [Xme.map(([e, n]) => /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-entity-state": e,
"data-follow-filter": e,
@@ -41733,7 +41786,7 @@ function whe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), v ? /* @__PURE__ */ (0, B.jsx)(iI, {}) : null]
+ }, e)), v ? /* @__PURE__ */ (0, B.jsx)(rI, {}) : null]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
ref: p,
"data-entity-tags": "",
@@ -41746,13 +41799,13 @@ function whe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
title: n,
"aria-label": `来源:${n}`,
onClick: () => a({ provider: e.provider === t ? "" : t }),
- dangerouslySetInnerHTML: { __html: KF(t) }
+ dangerouslySetInnerHTML: { __html: GF(t) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, B.jsx)(iI, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, B.jsxs)(pA, {
+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, B.jsx)(rI, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, B.jsxs)(dA, {
"data-follow-tag": n,
"data-entity-press": "",
- "data-tag-cat": `r34-${ahe(e.groups, n)}`,
+ "data-tag-cat": `r34-${she(e.groups, n)}`,
pressed: t.tags.includes(n),
onPress: () => a({ tags: t.tags.includes(n) ? t.tags.filter((e) => e !== n) : [...t.tags, n] }),
children: [ct(n), r ? /* @__PURE__ */ (0, B.jsx)("span", {
@@ -41770,11 +41823,11 @@ function whe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
}), /* @__PURE__ */ (0, B.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(OA, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(DA, {
+ /* @__PURE__ */ (0, B.jsx)(EA, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(TA, {
label: "图片布局",
value: i.photoLayout,
- options: vhe,
+ options: bhe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
@@ -41791,17 +41844,17 @@ function whe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: L("captions-off") }
})]
})] }) : null,
- Yme.map(([e, n]) => {
- let r = t.sort === e, i = wA(t.dir === "asc" ? "arrow-up" : "arrow-down");
+ Zme.map(([e, n]) => {
+ let r = t.sort === e, i = SA(t.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"data-entity-sort": e,
"data-follow-sort": e,
"data-entity-press": "",
"aria-pressed": r,
- "aria-label": nhe(e, n, t.sort, t.dir) || void 0,
+ "aria-label": ihe(e, n, t.sort, t.dir) || void 0,
onClick: () => {
- let n = HF(e, t.sort, t.dir);
+ let n = VF(e, t.sort, t.dir);
n && a(n);
},
children: [n, r ? /* @__PURE__ */ (0, B.jsx)(i, { className: "size-3.5" }) : null]
@@ -41811,7 +41864,7 @@ function whe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
})] })
});
}
-function The({ conditions: e, onDrop: t, onClear: n }) {
+function Dhe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -41836,7 +41889,7 @@ function The({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function Ehe({ count: e, onManage: t }) {
+function Ohe({ count: e, onManage: t }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-follow-broken": "",
onClick: (e) => {
@@ -41845,12 +41898,12 @@ function Ehe({ count: e, onManage: t }) {
dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${L("alert")}<span>${e} 个来源上次检查失败,去<button type="button" class="flink" data-follow-manage>管理关注</button>看原因。</span></div>` }
});
}
-function Dhe({ pending: e, facets: t, data: n, context: r, props: i }) {
- let { view: a, helpers: o } = i, s = a.media === "images", c = NA(e, () => o.listSkeletonHtml(a.media));
+function khe({ pending: e, facets: t, data: n, context: r, props: i }) {
+ let { view: a, helpers: o } = i, s = a.media === "images", c = jA(e, () => o.listSkeletonHtml(a.media));
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": c.fading ? "" : void 0,
- children: [c.layer, e ? null : /* @__PURE__ */ (0, B.jsx)(Ohe, {
+ children: [c.layer, e ? null : /* @__PURE__ */ (0, B.jsx)(Ahe, {
facets: t,
data: n,
context: r,
@@ -41859,38 +41912,38 @@ function Dhe({ pending: e, facets: t, data: n, context: r, props: i }) {
})]
});
}
-function Ohe({ facets: e, data: t, context: n, props: r, images: i }) {
- let { view: a, actions: o } = r, s = jhe(r), c = i ? {
+function Ahe({ facets: e, data: t, context: n, props: r, images: i }) {
+ let { view: a, actions: o } = r, s = Nhe(r), c = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
} : {}, l;
return l = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), c = i?.author_key && e.authorSources.get(i.author_key) || [], l = t.primary.id;
- return /* @__PURE__ */ (0, B.jsx)(mhe, {
+ return /* @__PURE__ */ (0, B.jsx)(ghe, {
group: t,
authorSources: c,
media: a.media,
context: n,
- selected: r.selected.has(aI(t, a)),
+ selected: r.selected.has(iI(t, a)),
selectMode: r.selectMode,
- busy: s.busy.get(aI(t, a)) || "",
- failure: s.failures.get(aI(t, a)) || "",
+ busy: s.busy.get(iI(t, a)) || "",
+ failure: s.failures.get(iI(t, a)) || "",
actions: o,
onStatus: s.status,
onSave: s.save
}, `${l}:${a.media}`);
- }) : /* @__PURE__ */ (0, B.jsx)(khe, { data: t }), /* @__PURE__ */ (0, B.jsx)("div", {
+ }) : /* @__PURE__ */ (0, B.jsx)(jhe, { data: t }), /* @__PURE__ */ (0, B.jsx)("div", {
"data-follow-list": "",
"data-follow-wall": i ? "" : void 0,
...c,
children: l
});
}
-function aI(e, t) {
- return zF(e, t.media).id;
+function iI(e, t) {
+ return RF(e, t.media).id;
}
-function khe({ data: e }) {
+function jhe({ data: e }) {
let t = (e.groups || []).length ? Pe("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源或标签后再试。") : (e.sources || []).length ? Pe("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : Pe("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-follow-empty": "",
@@ -41898,36 +41951,36 @@ function khe({ data: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-var Ahe = {
+var Mhe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function jhe(e) {
- let { view: t, revision: n, actions: r } = e, [i, a] = (0, R.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Map()), c = AF(t, n).queryKey, l = (e, t, n) => n((n) => {
+function Nhe(e) {
+ let { view: t, revision: n, actions: r } = e, [i, a] = (0, R.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Map()), c = kF(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
}), u = (e, n) => {
- p.setQueryData(c, (r) => r && UF(r, t, e, n));
+ p.setQueryData(c, (r) => r && HF(r, t, e, n));
}, d = () => void p.invalidateQueries({
queryKey: c,
exact: !0
}), f = (e) => {
- let t = NF(p.getQueryData(c));
+ let t = MF(p.getQueryData(c));
for (let n of t?.groups || []) for (let t of [
n.primary,
...n.variants,
...n.duplicates
]) if (t.id === e) return t.status;
return "new";
- }, m = OS({
- mutationFn: ({ id: e, to: t }) => G(GP, {
+ }, m = DS({
+ mutationFn: ({ id: e, to: t }) => G(WP, {
item: e,
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(Ahe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
- await G(GP, {
+ u(t, n), d(), r.toast(Mhe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ await G(WP, {
item: t,
to: i
}), u(t, i), d();
@@ -41937,7 +41990,7 @@ function jhe(e) {
l(t, Te(e), s), r.failure("更新关注状态", e);
},
onSettled: (e, t, { id: n }) => l(n, "", a)
- }), h = OS({
+ }), h = DS({
mutationFn: (e) => G("/api/follow/save", { item: e }),
onSuccess: (e, t) => {
u(t, "saved"), d(), r.toast("已保存到账本");
@@ -41972,8 +42025,8 @@ function jhe(e) {
}
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function oI({ provider: e, label: t }) {
- let n = EF(e), [r, i] = (0, R.useState)(!1);
+function aI({ provider: e, label: t }) {
+ let n = TF(e), [r, i] = (0, R.useState)(!1);
return !n || r ? t ? /* @__PURE__ */ (0, B.jsx)(B.Fragment, { children: t }) : null : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("img", {
src: n,
alt: "",
@@ -41982,10 +42035,10 @@ function oI({ provider: e, label: t }) {
loading: "lazy",
onError: () => i(!0),
className: "size-3.5 shrink-0 rounded-sm object-contain"
- }), t ? /* @__PURE__ */ (0, B.jsx)(q_, { children: t }) : null] });
+ }), t ? /* @__PURE__ */ (0, B.jsx)(J_, { children: t }) : null] });
}
-function sI({ group: e, name: t }) {
- let { src: n, fallback: r } = sF(e), [i, a] = (0, R.useState)(0), o = [n, r].filter(Boolean)[i];
+function oI({ group: e, name: t }) {
+ let { src: n, fallback: r } = oF(e), [i, a] = (0, R.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, B.jsx)("img", {
src: o,
alt: "",
@@ -41998,18 +42051,18 @@ function sI({ group: e, name: t }) {
}) : /* @__PURE__ */ (0, B.jsx)("span", {
title: "没有可用头像",
className: "inline-grid size-8 shrink-0 place-items-center rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary",
- children: oF(t)
+ children: aF(t)
});
}
-function cI({ source: e }) {
- let t = eF(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
- return /* @__PURE__ */ (0, B.jsx)(DE, {
+function sI({ source: e }) {
+ let t = $P(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+ return /* @__PURE__ */ (0, B.jsx)(EE, {
variant: "caption",
color: t,
- children: Dme(e)
+ children: kme(e)
});
}
-function lI({ source: e }) {
+function cI({ source: e }) {
return /* @__PURE__ */ (0, B.jsxs)("a", {
href: e.url,
target: "_blank",
@@ -42024,11 +42077,11 @@ function lI({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var uI = wE(Tk, Ek, "text-body-2-medium"), Mhe = "粘贴来源链接,或输入创作者名、id…", Nhe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Phe = "识别中…", Fhe = "站内没有查到来源", dI = (e, t) => `${e}:${t.url}`;
-function Ihe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
+var lI = CE(wk, Tk, "text-body-2-medium"), Phe = "粘贴来源链接,或输入创作者名、id…", Fhe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Ihe = "识别中…", Lhe = "站内没有查到来源", uI = (e, t) => `${e}:${t.url}`;
+function Rhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, R.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, B.jsxs)(SO, {
+ }, [t, r]), /* @__PURE__ */ (0, B.jsxs)(xO, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -42040,17 +42093,17 @@ function Ihe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: wE(wk, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: CE(Ck, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在查找建议" })
+ children: /* @__PURE__ */ (0, B.jsx)(jE, { label: "正在查找建议" })
}) : null, n.map((e, t) => /* @__PURE__ */ (0, B.jsxs)(R.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, B.jsx)("div", {
className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",
children: e.group
}), /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? wE(uI, "bg-background-secondary-default") : uI,
+ className: t === r ? CE(lI, "bg-background-secondary-default") : lI,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -42070,7 +42123,7 @@ function Ihe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
})] }, `${e.group}-${e.value}`))]
});
}
-function Lhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+function zhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
let i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {
let i = new Set(t);
r ? i.delete(e) : i.add(e), n(i);
@@ -42078,20 +42131,20 @@ function Lhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(J, {
ref: i,
variant: "secondary",
- leadingIcon: nae,
+ leadingIcon: rae,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, B.jsx)(SO, {
+ }), /* @__PURE__ */ (0, B.jsx)(xO, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: wk,
- children: /* @__PURE__ */ (0, B.jsxs)(NO, {
+ className: Ck,
+ children: /* @__PURE__ */ (0, B.jsxs)(MO, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -42107,16 +42160,16 @@ function Lhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, B.jsx)(Rk, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(qM, {
+ children: [/* @__PURE__ */ (0, B.jsx)(KM, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, B.jsx)(oI, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, B.jsx)(aI, { provider: e.provider }), e.provider_label]
})
}), n ? /* @__PURE__ */ (0, B.jsx)(J, {
variant: "ghost",
@@ -42132,7 +42185,7 @@ function Lhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function Rhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function Bhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
if (e.kind === "error") return /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: e.line,
@@ -42140,7 +42193,7 @@ function Rhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
});
let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: AE({
+ className: kE({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-2 p-4"
@@ -42151,15 +42204,15 @@ function Rhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: e.line
}),
a.length ? a.map((e) => {
- let n = dI(t, e);
- return /* @__PURE__ */ (0, B.jsx)(qM, {
+ let n = uI(t, e);
+ return /* @__PURE__ */ (0, B.jsx)(KM, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
children: /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, B.jsx)(oI, { provider: e.provider }),
+ /* @__PURE__ */ (0, B.jsx)(aI, { provider: e.provider }),
/* @__PURE__ */ (0, B.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@ -42175,22 +42228,22 @@ function Rhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: Fhe }),
+ }) : /* @__PURE__ */ (0, B.jsx)(Rk, { children: Lhe }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, B.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, B.jsx)(Hk, {
+ }), /* @__PURE__ */ (0, B.jsx)(Vk, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, B.jsx)(zk, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
-function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+function Vhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
let [a, o] = (0, R.useState)(""), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(!1), [p, m] = (0, R.useState)(null), [h, g] = (0, R.useState)(-1), _ = (0, R.useRef)(null), v = (0, R.useRef)(null), [y, b] = (0, R.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, R.useState)(""), [T, E] = (0, R.useState)(0);
(0, R.useEffect)(() => {
let e = a.trim();
@@ -42201,19 +42254,19 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
let t = setTimeout(() => u(e), 250);
return () => clearTimeout(t);
}, [a]);
- let D = TS({
- queryKey: xme(l),
- queryFn: ({ signal: e }) => Nme(l, e),
+ let D = wS({
+ queryKey: Cme(l),
+ queryFn: ({ signal: e }) => Fme(l, e),
enabled: l.length > 0 && d
}), O = (0, R.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({
value: t.value,
matched: t.matched || "",
n: t.n || 0,
group: e.label
- }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = UM({
- queryKey: bme,
- queryFn: ({ signal: e }) => Mme(e),
- start: (e) => Pme([e]),
+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = HM({
+ queryKey: Sme,
+ queryFn: ({ signal: e }) => Pme(e),
+ start: (e) => Ime([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
onError: (e) => w(U(e)),
onFinish: (e) => {
@@ -42247,14 +42300,14 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
}, re = j?.results || [], ie = re.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: dI(t, e)
- })).filter((e) => !x.has(e.key))), ae = OS({
+ key: uI(t, e)
+ })).filter((e) => !x.has(e.key))), ae = DS({
mutationFn: async (e) => {
let t = [], n = [];
E(0);
for (let r of e) {
try {
- let e = await Fme(r.candidate);
+ let e = await Lme(r.candidate);
n.push(e.source);
} catch (e) {
t.push(`${r.candidate.label}:${U(e)}`);
@@ -42262,7 +42315,7 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
E((e) => e + 1);
}
if (n.length) try {
- await mF(n);
+ await pF(n);
} catch (e) {
t.push(U(e));
}
@@ -42272,7 +42325,7 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
};
},
onSuccess: (e) => {
- if (wF(), e.failures.length) {
+ if (CF(), e.failures.length) {
w(e.failures.join(";"));
return;
}
@@ -42281,7 +42334,7 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onError: (e) => w(U(e))
}), oe = e.suggestions || [], se = !s.includes("/");
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: AE({
+ className: kE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42301,15 +42354,15 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
let t = e.relatedTarget;
!e.currentTarget.contains(t) && !v.current?.contains(t) && f(!1);
},
- children: [/* @__PURE__ */ (0, B.jsx)(Ck, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Sk, {
"aria-label": "来源链接、名字或 id",
- placeholder: Mhe,
+ placeholder: Phe,
value: a,
- leadingIcon: NT,
+ leadingIcon: MT,
isDisabled: n,
onChange: o,
onKeyDown: ne
- }), P ? /* @__PURE__ */ (0, B.jsx)(Ihe, {
+ }), P ? /* @__PURE__ */ (0, B.jsx)(Rhe, {
field: _,
menu: v,
options: O,
@@ -42319,7 +42372,7 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onClose: F
}) : null]
}),
- /* @__PURE__ */ (0, B.jsx)(Lhe, {
+ /* @__PURE__ */ (0, B.jsx)(zhe, {
credentials: t,
hidden: y,
onHidden: b,
@@ -42337,9 +42390,9 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
/* @__PURE__ */ (0, B.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [A || M.isPending ? /* @__PURE__ */ (0, B.jsx)(zM, {
+ children: [A || M.isPending ? /* @__PURE__ */ (0, B.jsx)(RM, {
embedded: !0,
- label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : se ? Nhe : Phe),
+ label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : se ? Fhe : Ihe),
value: k?.checked,
total: k?.total
}) : null, C ? /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -42351,8 +42404,8 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
re.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, B.jsx)(Vk, { children: "查找结果" }),
- re.map((e, t) => /* @__PURE__ */ (0, B.jsx)(Rhe, {
+ /* @__PURE__ */ (0, B.jsx)(Bk, { children: "查找结果" }),
+ re.map((e, t) => /* @__PURE__ */ (0, B.jsx)(Bhe, {
row: e,
at: t,
hidden: y,
@@ -42407,16 +42460,16 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var Bhe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, fI = (e) => e.alias;
-function Vhe(e, t, n) {
+var Hhe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, dI = (e) => e.alias;
+function Uhe(e, t, n) {
let r = n ? `name:${n}` : "", i = r ? e.find((e) => e.author_key === r) : e.find((e) => e.author_name === t || e.entity_name === t);
return i ? e.filter((e) => e.author_key === i.author_key) : [];
}
-function pI({ sources: e, name: t, canonicalKey: n }) {
+function fI({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(sI, {
- group: Vhe(e, t, n),
+ children: [/* @__PURE__ */ (0, B.jsx)(oI, {
+ group: Uhe(e, t, n),
name: t
}), /* @__PURE__ */ (0, B.jsx)("b", {
className: "text-body-medium",
@@ -42424,15 +42477,15 @@ function pI({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
- let [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), p = OS({
+function Whe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+ let [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), p = DS({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await _F(n.canonical, n.alias);
+ await gF(n.canonical, n.alias);
} catch (n) {
- throw t && wF(), Error(`${U(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && CF(), Error(`${U(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -42442,19 +42495,19 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- c(""), o(/* @__PURE__ */ new Set()), wF(), i(`已合并 ${e.done} 组创作者别名`);
+ c(""), o(/* @__PURE__ */ new Set()), CF(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => c(U(e))
- }), m = OS({
- mutationFn: (e) => _F(e.canonical, e.alias),
+ }), m = DS({
+ mutationFn: (e) => gF(e.canonical, e.alias),
onSuccess: () => {
- c(""), u(""), f(""), wF(), i("已保存创作者别名");
+ c(""), u(""), f(""), CF(), i("已保存创作者别名");
},
onError: (e) => c(U(e))
- }), h = OS({
- mutationFn: (e) => Ime(e),
+ }), h = DS({
+ mutationFn: (e) => Rme(e),
onSuccess: () => {
- c(""), wF(), i("已移除创作者别名");
+ c(""), CF(), i("已移除创作者别名");
},
onError: (e) => c(U(e))
}), g = (e, t) => {
@@ -42464,9 +42517,9 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => p.mutateAsync(e)
});
- }, _ = t.filter((e) => a.has(fI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);
+ }, _ = t.filter((e) => a.has(dI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: AE({
+ className: kE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42477,10 +42530,10 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "手动添加别名" }), /* @__PURE__ */ (0, B.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, B.jsx)(Bk, { children: "手动添加别名" }), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: l,
@@ -42488,7 +42541,7 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: d,
@@ -42509,13 +42562,13 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: s }) : null,
+ s ? /* @__PURE__ */ (0, B.jsx)(zk, { children: s }) : null,
t.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(Vk, { children: "待合并" }),
+ /* @__PURE__ */ (0, B.jsx)(Bk, { children: "待合并" }),
/* @__PURE__ */ (0, B.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -42537,44 +42590,44 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, B.jsx)(XM, { children: /* @__PURE__ */ (0, B.jsxs)(JM, {
+ }), /* @__PURE__ */ (0, B.jsx)(YM, { children: /* @__PURE__ */ (0, B.jsxs)(qM, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, B.jsxs)(rk, { children: [
- /* @__PURE__ */ (0, B.jsx)(ik, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(nk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(rk, {
id: "select",
- children: /* @__PURE__ */ (0, B.jsx)(qM, {
+ children: /* @__PURE__ */ (0, B.jsx)(KM, {
slot: null,
isSelected: v,
isIndeterminate: _.length > 0 && !v,
"aria-label": "全选待合并别名",
- onChange: (e) => o(e ? new Set(t.map(fI)) : /* @__PURE__ */ new Set())
+ onChange: (e) => o(e ? new Set(t.map(dI)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, B.jsx)(ik, {
+ /* @__PURE__ */ (0, B.jsx)(rk, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, B.jsx)(ik, {
+ /* @__PURE__ */ (0, B.jsx)(rk, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, B.jsx)(ik, {
+ /* @__PURE__ */ (0, B.jsx)(rk, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, B.jsx)(ik, {
+ /* @__PURE__ */ (0, B.jsx)(rk, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: t.map((e) => {
- let t = fI(e);
- return /* @__PURE__ */ (0, B.jsxs)(lk, {
+ ] }), /* @__PURE__ */ (0, B.jsx)(ak, { children: t.map((e) => {
+ let t = dI(e);
+ return /* @__PURE__ */ (0, B.jsxs)(ck, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(qM, {
+ /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)(KM, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -42583,16 +42636,16 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(pI, {
+ /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)(fI, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, B.jsx)(dk, { children: e.alias }),
- /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
+ /* @__PURE__ */ (0, B.jsx)(uk, { children: e.alias }),
+ /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
disabled: r,
@@ -42609,27 +42662,27 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "已保存别名" }), /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [/* @__PURE__ */ (0, B.jsx)(Bk, { children: "已保存别名" }), /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, B.jsx)(XM, { children: /* @__PURE__ */ (0, B.jsxs)(JM, {
+ }), e.length ? /* @__PURE__ */ (0, B.jsx)(YM, { children: /* @__PURE__ */ (0, B.jsxs)(qM, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, B.jsxs)(rk, { children: [/* @__PURE__ */ (0, B.jsx)(ik, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(nk, { children: [/* @__PURE__ */ (0, B.jsx)(rk, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, B.jsx)(ik, {
+ }), /* @__PURE__ */ (0, B.jsx)(rk, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)(lk, {
+ })] }), /* @__PURE__ */ (0, B.jsx)(ak, { children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)(ck, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(pI, {
+ children: [/* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)(fI, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
children: e.aliases.map((e) => /* @__PURE__ */ (0, B.jsxs)("span", {
className: "inline-flex items-center gap-1 rounded-md bg-background-secondary-default px-1.5 py-1 text-caption-1-medium text-text-secondary",
@@ -42637,13 +42690,13 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: bT,
+ leadingIcon: yT,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
...X(h.isPending),
onClick: () => void je({
title: "移除创作者别名",
- body: Bhe(e.name),
+ body: Hhe(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => h.mutateAsync(e.name)
})
@@ -42651,9 +42704,9 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, B.jsx)(jE, {
+ }) }) : /* @__PURE__ */ (0, B.jsx)(AE, {
shell: "plain",
- icon: FT,
+ icon: PT,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})]
@@ -42663,33 +42716,33 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var Uhe = "这些账号信息存在哪里", Whe = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Ghe = "将清除这个来源在本机和共享副本中的登录凭据。", Khe = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function qhe(e, t) {
+var Ghe = "这些账号信息存在哪里", Khe = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", qhe = "将清除这个来源在本机和共享副本中的登录凭据。", Jhe = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function Yhe(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function Jhe({ row: e }) {
- if (DF(e)) return /* @__PURE__ */ (0, B.jsx)(DE, {
+function Xhe({ row: e }) {
+ if (EF(e)) return /* @__PURE__ */ (0, B.jsx)(EE, {
variant: "caption",
color: "lime",
children: "已配置"
});
let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";
- return /* @__PURE__ */ (0, B.jsx)(DE, {
+ return /* @__PURE__ */ (0, B.jsx)(EE, {
variant: "caption",
color: t,
- children: qme[e.requirement] || ""
+ children: Yme[e.requirement] || ""
});
}
-function Yhe({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, R.useState)({}), [a, o] = (0, R.useState)(""), s = DF(e), c = OS({
- mutationFn: (t) => Lme(e.provider, t),
+function Zhe({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, R.useState)({}), [a, o] = (0, R.useState)(""), s = EF(e), c = DS({
+ mutationFn: (t) => zme(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
return;
}
o(""), i({}), p.invalidateQueries({
- queryKey: JP,
+ queryKey: qP,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -42705,17 +42758,17 @@ function Yhe({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, B.jsxs)(zk, { children: [e.why, e.where ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [" ", /* @__PURE__ */ (0, B.jsx)(Hk, {
+ /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [e.why, e.where ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [" ", /* @__PURE__ */ (0, B.jsx)(Vk, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, B.jsx)(zk, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: e.howto }) : null,
/* @__PURE__ */ (0, B.jsx)("div", {
className: "flex w-full flex-col gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, B.jsx)(Ck, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, B.jsx)(Sk, {
type: "password",
label: n,
- placeholder: qhe(e, n),
+ placeholder: Yhe(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -42743,7 +42796,7 @@ function Yhe({ row: e, readOnly: t, toast: n }) {
...X(c.isPending),
onClick: () => void je({
title: "清除来源凭据",
- body: Ghe,
+ body: qhe,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -42751,9 +42804,9 @@ function Yhe({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, B.jsx)(zk, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, B.jsx)(RM, {
+ a ? /* @__PURE__ */ (0, B.jsx)(zk, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ e.path ? /* @__PURE__ */ (0, B.jsx)(LM, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -42761,18 +42814,18 @@ function Yhe({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "凭据文件权限过宽",
- children: Khe
+ children: Jhe
}) : null
]
});
}
-function Xhe({ row: e, readOnly: t, toast: n }) {
+function Qhe({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
/* @__PURE__ */ (0, B.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, B.jsx)(oI, { provider: e.provider })
+ children: /* @__PURE__ */ (0, B.jsx)(aI, { provider: e.provider })
}),
/* @__PURE__ */ (0, B.jsx)("b", {
className: "text-body-medium text-text-primary",
@@ -42782,8 +42835,8 @@ function Xhe({ row: e, readOnly: t, toast: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e.nature
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Jhe, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, B.jsx)(DE, {
+ /* @__PURE__ */ (0, B.jsx)(Xhe, { row: e }),
+ e.missing.length ? /* @__PURE__ */ (0, B.jsx)(EE, {
variant: "caption",
color: "rose",
children: `缺 ${e.missing.join("、")}`
@@ -42792,13 +42845,13 @@ function Xhe({ row: e, readOnly: t, toast: n }) {
});
return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, B.jsx)(zk, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: e.why }) : null]
}) : /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, /* @__PURE__ */ (0, B.jsx)(Gk, {
- summary: DF(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !DF(e),
- children: /* @__PURE__ */ (0, B.jsx)(Yhe, {
+ children: [r, /* @__PURE__ */ (0, B.jsx)(Wk, {
+ summary: EF(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !EF(e),
+ children: /* @__PURE__ */ (0, B.jsx)(Zhe, {
row: e,
readOnly: t,
toast: n
@@ -42806,10 +42859,10 @@ function Xhe({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function Zhe({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !DF(e));
+function $he({ data: e, readOnly: t, toast: n }) {
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !EF(e));
return r.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
- className: AE({
+ className: kE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42844,12 +42897,12 @@ function Zhe({ data: e, readOnly: t, toast: n }) {
className: "text-body-medium text-text-secondary",
children: e.title
}), /* @__PURE__ */ (0, B.jsx)("div", {
- className: AE({
+ className: kE({
variant: "outlined",
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: e.rows.map((e) => /* @__PURE__ */ (0, B.jsx)(Xhe, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, B.jsx)(Qhe, {
row: e,
readOnly: t,
toast: n
@@ -42861,13 +42914,13 @@ function Zhe({ data: e, readOnly: t, toast: n }) {
children: [
/* @__PURE__ */ (0, B.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: Uhe
+ children: Ghe
}),
/* @__PURE__ */ (0, B.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: Whe
+ children: Khe
}),
- /* @__PURE__ */ (0, B.jsx)(RM, {
+ /* @__PURE__ */ (0, B.jsx)(LM, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -42876,16 +42929,16 @@ function Zhe({ data: e, readOnly: t, toast: n }) {
]
})
]
- }) : /* @__PURE__ */ (0, B.jsx)(jE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(AE, {
shell: "plain",
- icon: sae,
+ icon: cae,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
}
//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function mI() {
+function pI() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -42898,24 +42951,24 @@ function mI() {
group: (e) => e
};
}
-function hI(e, t) {
+function mI(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function gI(e, t) {
+function hI(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: hI(n, t[e])
+ [e]: mI(n, t[e])
}));
};
}
-function _I(e) {
+function gI(e) {
return e instanceof Function;
}
-function Qhe(e) {
+function ege(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function $he(e, t) {
+function tge(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -42925,7 +42978,7 @@ function $he(e, t) {
};
return r(e), n;
}
-function vI(e, t, n) {
+function _I(e, t, n) {
let r = [], i;
return (a) => {
let o;
@@ -42947,21 +43000,21 @@ function vI(e, t, n) {
return i;
};
}
-function yI(e, t, n, r) {
+function vI(e, t, n, r) {
return {
debug: () => e?.debugAll ?? e[t],
key: !1,
onChange: r
};
}
-function ege(e, t, n, r) {
+function nge(e, t, n, r) {
let i = {
id: `${t.id}_${n.id}`,
row: t,
column: n,
getValue: () => t.getValue(r),
renderValue: () => i.getValue() ?? e.options.renderFallbackValue,
- getContext: vI(() => [
+ getContext: _I(() => [
e,
n,
t,
@@ -42973,13 +43026,13 @@ function ege(e, t, n, r) {
cell: r,
getValue: r.getValue,
renderValue: r.renderValue
- }), yI(e.options, "debugCells", "cell.getContext"))
+ }), vI(e.options, "debugCells", "cell.getContext"))
};
return e._features.forEach((r) => {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function tge(e, t, n, r) {
+function rge(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -42996,17 +43049,17 @@ function tge(e, t, n, r) {
depth: n,
columnDef: i,
columns: [],
- getFlatColumns: vI(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], yI(e.options, "debugColumns", "column.getFlatColumns")),
- getLeafColumns: vI(() => [e._getOrderColumnsFn()], (e) => {
+ getFlatColumns: _I(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], vI(e.options, "debugColumns", "column.getFlatColumns")),
+ getLeafColumns: _I(() => [e._getOrderColumnsFn()], (e) => {
var t;
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
- }, yI(e.options, "debugColumns", "column.getLeafColumns"))
+ }, vI(e.options, "debugColumns", "column.getLeafColumns"))
};
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var bI = "debugHeaders";
-function xI(e, t, n) {
+var yI = "debugHeaders";
+function bI(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -43034,42 +43087,42 @@ function xI(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var nge = { createTable: (e) => {
- e.getHeaderGroups = vI(() => [
+var ige = { createTable: (e) => {
+ e.getHeaderGroups = _I(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (t, n, r, i) => {
let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
- return SI(t, [
+ return xI(t, [
...a,
...s,
...o
], e);
- }, yI(e.options, bI, "getHeaderGroups")), e.getCenterHeaderGroups = vI(() => [
+ }, vI(e.options, yI, "getHeaderGroups")), e.getCenterHeaderGroups = _I(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), SI(t, n, e, "center")), yI(e.options, bI, "getCenterHeaderGroups")), e.getLeftHeaderGroups = vI(() => [
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), xI(t, n, e, "center")), vI(e.options, yI, "getCenterHeaderGroups")), e.getLeftHeaderGroups = _I(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => SI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), yI(e.options, bI, "getLeftHeaderGroups")), e.getRightHeaderGroups = vI(() => [
+ ], (t, n, r) => xI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), vI(e.options, yI, "getLeftHeaderGroups")), e.getRightHeaderGroups = _I(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => SI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), yI(e.options, bI, "getRightHeaderGroups")), e.getFooterGroups = vI(() => [e.getHeaderGroups()], (e) => [...e].reverse(), yI(e.options, bI, "getFooterGroups")), e.getLeftFooterGroups = vI(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), yI(e.options, bI, "getLeftFooterGroups")), e.getCenterFooterGroups = vI(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), yI(e.options, bI, "getCenterFooterGroups")), e.getRightFooterGroups = vI(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), yI(e.options, bI, "getRightFooterGroups")), e.getFlatHeaders = vI(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yI(e.options, bI, "getFlatHeaders")), e.getLeftFlatHeaders = vI(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yI(e.options, bI, "getLeftFlatHeaders")), e.getCenterFlatHeaders = vI(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yI(e.options, bI, "getCenterFlatHeaders")), e.getRightFlatHeaders = vI(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yI(e.options, bI, "getRightFlatHeaders")), e.getCenterLeafHeaders = vI(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (t, n, r) => xI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), vI(e.options, yI, "getRightHeaderGroups")), e.getFooterGroups = _I(() => [e.getHeaderGroups()], (e) => [...e].reverse(), vI(e.options, yI, "getFooterGroups")), e.getLeftFooterGroups = _I(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), vI(e.options, yI, "getLeftFooterGroups")), e.getCenterFooterGroups = _I(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), vI(e.options, yI, "getCenterFooterGroups")), e.getRightFooterGroups = _I(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), vI(e.options, yI, "getRightFooterGroups")), e.getFlatHeaders = _I(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), vI(e.options, yI, "getFlatHeaders")), e.getLeftFlatHeaders = _I(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), vI(e.options, yI, "getLeftFlatHeaders")), e.getCenterFlatHeaders = _I(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), vI(e.options, yI, "getCenterFlatHeaders")), e.getRightFlatHeaders = _I(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), vI(e.options, yI, "getRightFlatHeaders")), e.getCenterLeafHeaders = _I(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), yI(e.options, bI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = vI(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), vI(e.options, yI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = _I(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), yI(e.options, bI, "getLeftLeafHeaders")), e.getRightLeafHeaders = vI(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), vI(e.options, yI, "getLeftLeafHeaders")), e.getRightLeafHeaders = _I(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), yI(e.options, bI, "getRightLeafHeaders")), e.getLeafHeaders = vI(() => [
+ }), vI(e.options, yI, "getRightLeafHeaders")), e.getLeafHeaders = _I(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -43077,9 +43130,9 @@ var nge = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), yI(e.options, bI, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), vI(e.options, yI, "getLeafHeaders"));
} };
-function SI(e, t, n, r) {
+function xI(e, t, n, r) {
let i = 0, a = function(e, t) {
t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
var n;
@@ -43097,7 +43150,7 @@ function SI(e, t, n, r) {
let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
else {
- let i = xI(n, c, {
+ let i = bI(n, c, {
id: [
r,
t,
@@ -43114,7 +43167,7 @@ function SI(e, t, n, r) {
i.headers.push(e), e.headerGroup = i;
}), o.push(i), t > 0 && s(a, t - 1);
};
- s(t.map((e, t) => xI(n, e, {
+ s(t.map((e, t) => bI(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -43132,7 +43185,7 @@ function SI(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var rge = (e, t, n, r, i, a, o) => {
+var age = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -43153,7 +43206,7 @@ var rge = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => $he(s.subRows, (e) => e.subRows),
+ getLeafRows: () => tge(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -43164,95 +43217,95 @@ var rge = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: vI(() => [e.getAllLeafColumns()], (t) => t.map((t) => ege(e, s, t, t.id)), yI(e.options, "debugRows", "getAllCells")),
- _getAllCellsByColumnId: vI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), yI(e.options, "debugRows", "getAllCellsByColumnId"))
+ getAllCells: _I(() => [e.getAllLeafColumns()], (t) => t.map((t) => nge(e, s, t, t.id)), vI(e.options, "debugRows", "getAllCells")),
+ _getAllCellsByColumnId: _I(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), vI(e.options, "debugRows", "getAllCellsByColumnId"))
};
for (let t = 0; t < e._features.length; t++) {
let n = e._features[t];
n == null || n.createRow == null || n.createRow(s, e);
}
return s;
-}, ige = { createColumn: (e, t) => {
+}, oge = { createColumn: (e, t) => {
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
};
-} }, CI = (e, t, n) => {
+} }, SI = (e, t, n) => {
var r, i;
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
return !!((i = e.getValue(t)) != null && (i = i.toString()) != null && (i = i.toLowerCase()) != null && i.includes(a));
};
-CI.autoRemove = (e) => NI(e);
-var wI = (e, t, n) => {
+SI.autoRemove = (e) => MI(e);
+var CI = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-wI.autoRemove = (e) => NI(e);
-var TI = (e, t, n) => {
+CI.autoRemove = (e) => MI(e);
+var wI = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-TI.autoRemove = (e) => NI(e);
-var EI = (e, t, n) => e.getValue(t)?.includes(n);
-EI.autoRemove = (e) => NI(e);
-var DI = (e, t, n) => !n.some((n) => {
+wI.autoRemove = (e) => MI(e);
+var TI = (e, t, n) => e.getValue(t)?.includes(n);
+TI.autoRemove = (e) => MI(e);
+var EI = (e, t, n) => !n.some((n) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-DI.autoRemove = (e) => NI(e) || !(e != null && e.length);
-var OI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-OI.autoRemove = (e) => NI(e) || !(e != null && e.length);
-var kI = (e, t, n) => e.getValue(t) === n;
-kI.autoRemove = (e) => NI(e);
-var AI = (e, t, n) => e.getValue(t) == n;
-AI.autoRemove = (e) => NI(e);
-var jI = (e, t, n) => {
+EI.autoRemove = (e) => MI(e) || !(e != null && e.length);
+var DI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
+DI.autoRemove = (e) => MI(e) || !(e != null && e.length);
+var OI = (e, t, n) => e.getValue(t) === n;
+OI.autoRemove = (e) => MI(e);
+var kI = (e, t, n) => e.getValue(t) == n;
+kI.autoRemove = (e) => MI(e);
+var AI = (e, t, n) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-jI.resolveFilterValue = (e) => {
+AI.resolveFilterValue = (e) => {
let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
if (a > o) {
let e = a;
a = o, o = e;
}
return [a, o];
-}, jI.autoRemove = (e) => NI(e) || NI(e[0]) && NI(e[1]);
-var MI = {
- includesString: CI,
- includesStringSensitive: wI,
- equalsString: TI,
- arrIncludes: EI,
- arrIncludesAll: DI,
- arrIncludesSome: OI,
- equals: kI,
- weakEquals: AI,
- inNumberRange: jI
+}, AI.autoRemove = (e) => MI(e) || MI(e[0]) && MI(e[1]);
+var jI = {
+ includesString: SI,
+ includesStringSensitive: CI,
+ equalsString: wI,
+ arrIncludes: TI,
+ arrIncludesAll: EI,
+ arrIncludesSome: DI,
+ equals: OI,
+ weakEquals: kI,
+ inNumberRange: AI
};
-function NI(e) {
+function MI(e) {
return e == null || e === "";
}
-var age = {
+var sge = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: gI("columnFilters", e),
+ onColumnFiltersChange: hI("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? MI.includesString : typeof n == "number" ? MI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? MI.equals : Array.isArray(n) ? MI.arrIncludes : MI.weakEquals;
- }, e.getFilterFn = () => _I(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? MI[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
+ return typeof n == "string" ? jI.includesString : typeof n == "number" ? jI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? jI.equals : Array.isArray(n) ? jI.arrIncludes : jI.weakEquals;
+ }, e.getFilterFn = () => gI(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? jI[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
var n;
return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
t.setColumnFilters((t) => {
- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = hI(n, i ? i.value : void 0);
- if (PI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = mI(n, i ? i.value : void 0);
+ if (NI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
let o = {
id: e.id,
value: a
@@ -43267,19 +43320,19 @@ var age = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => hI(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => mI(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && PI(t.getFilterFn(), e.value, t));
+ return !(t && NI(t.getFilterFn(), e.value, t));
}));
}, e.resetColumnFilters = (t) => {
e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
}
};
-function PI(e, t, n) {
+function NI(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var FI = {
+var PI = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -43315,7 +43368,7 @@ var FI = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!Qhe(n)) return;
+ if (!ege(n)) return;
if (n.length === 1) return n[0];
let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
@@ -43323,7 +43376,7 @@ var FI = {
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
count: (e, t) => t.length
-}, oge = {
+}, cge = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -43336,7 +43389,7 @@ var FI = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: gI("grouping", e),
+ onGroupingChange: hI("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -43349,11 +43402,11 @@ var FI = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return FI.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return FI.extent;
+ if (typeof n == "number") return PI.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return PI.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return _I(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? FI[e.columnDef.aggregationFn];
+ return gI(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? PI[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -43375,27 +43428,27 @@ var FI = {
};
}
};
-function sge(e, t, n) {
+function lge(e, t, n) {
if (!(t != null && t.length) || !n) return e;
let r = e.filter((e) => !t.includes(e.id));
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
}
-var cge = {
+var uge = {
getInitialState: (e) => ({
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: gI("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: hI("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = vI((e) => [VI(t, e)], (t) => t.findIndex((t) => t.id === e.id), yI(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => VI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = VI(t, n);
+ e.getIndex = _I((e) => [BI(t, e)], (t) => t.findIndex((t) => t.id === e.id), vI(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => BI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
+ let r = BI(t, n);
return r[r.length - 1]?.id === e.id;
};
},
createTable: (e) => {
e.setColumnOrder = (t) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(t), e.resetColumnOrder = (t) => {
e.setColumnOrder(t ? [] : e.initialState.columnOrder ?? []);
- }, e._getOrderColumnsFn = vI(() => [
+ }, e._getOrderColumnsFn = _I(() => [
e.getState().columnOrder,
e.getState().grouping,
e.options.groupedColumnMode
@@ -43410,18 +43463,18 @@ var cge = {
}
i = [...i, ...n];
}
- return sge(i, t, n);
- }, yI(e.options, "debugTable", "_getOrderColumnsFn"));
+ return lge(i, t, n);
+ }, vI(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, II = () => ({
+}, FI = () => ({
left: [],
right: []
-}), lge = {
+}), dge = {
getInitialState: (e) => ({
- columnPinning: II(),
+ columnPinning: FI(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: gI("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: hI("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -43445,75 +43498,75 @@ var cge = {
};
},
createRow: (e, t) => {
- e.getCenterVisibleCells = vI(() => [
+ e.getCenterVisibleCells = _I(() => [
e._getAllVisibleCells(),
t.getState().columnPinning.left,
t.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.column.id));
- }, yI(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = vI(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ }, vI(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = _I(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "left"
- })), yI(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = vI(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ })), vI(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = _I(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "right"
- })), yI(t.options, "debugRows", "getRightVisibleCells"));
+ })), vI(t.options, "debugRows", "getRightVisibleCells"));
},
createTable: (e) => {
- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? II() : e.initialState?.columnPinning ?? II()), e.getIsSomeColumnsPinned = (t) => {
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? FI() : e.initialState?.columnPinning ?? FI()), e.getIsSomeColumnsPinned = (t) => {
let n = e.getState().columnPinning;
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
- }, e.getLeftLeafColumns = vI(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), yI(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = vI(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), yI(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = vI(() => [
+ }, e.getLeftLeafColumns = _I(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), vI(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = _I(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), vI(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = _I(() => [
e.getAllLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.id));
- }, yI(e.options, "debugColumns", "getCenterLeafColumns"));
+ }, vI(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function uge(e) {
+function fge(e) {
return e || (typeof document < "u" ? document : null);
}
-var LI = {
+var II = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, RI = () => ({
+}, LI = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), dge = {
- getDefaultColumnDef: () => LI,
+}), pge = {
+ getDefaultColumnDef: () => II,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: RI(),
+ columnSizingInfo: LI(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: gI("columnSizing", e),
- onColumnSizingInfoChange: gI("columnSizingInfo", e)
+ onColumnSizingChange: hI("columnSizing", e),
+ onColumnSizingInfoChange: hI("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? LI.minSize, n ?? e.columnDef.size ?? LI.size), e.columnDef.maxSize ?? LI.maxSize);
- }, e.getStart = vI((e) => [
+ return Math.min(Math.max(e.columnDef.minSize ?? II.minSize, n ?? e.columnDef.size ?? II.size), e.columnDef.maxSize ?? II.maxSize);
+ }, e.getStart = _I((e) => [
e,
- VI(t, e),
+ BI(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), yI(t.options, "debugColumns", "getStart")), e.getAfter = vI((e) => [
+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), vI(t.options, "debugColumns", "getStart")), e.getAfter = _I((e) => [
e,
- VI(t, e),
+ BI(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), yI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), vI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
let { [e.id]: n, ...r } = t;
return r;
@@ -43535,8 +43588,8 @@ var LI = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), BI(a) && a.touches && a.touches.length > 1)) return;
- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = BI(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ if (!r || !i || (a.persist == null || a.persist(), zI(a) && a.touches && a.touches.length > 1)) return;
+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = zI(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
typeof n == "number" && (t.setColumnSizingInfo((e) => {
let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
return e.columnSizingStart.forEach((e) => {
@@ -43561,7 +43614,7 @@ var LI = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = uge(n), m = {
+ }, p = fge(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -43571,8 +43624,8 @@ var LI = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = fge() ? { passive: !1 } : !1;
- BI(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
+ }, g = mge() ? { passive: !1 } : !1;
+ zI(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
...e,
startOffset: c,
startSize: o,
@@ -43588,12 +43641,12 @@ var LI = {
e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
}, e.resetHeaderSizeInfo = (t) => {
- e.setColumnSizingInfo(t ? RI() : e.initialState.columnSizingInfo ?? RI());
+ e.setColumnSizingInfo(t ? LI() : e.initialState.columnSizingInfo ?? LI());
}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
}
-}, zI = null;
-function fge() {
- if (typeof zI == "boolean") return zI;
+}, RI = null;
+function mge() {
+ if (typeof RI == "boolean") return RI;
let e = !1;
try {
let t = { get passive() {
@@ -43603,17 +43656,17 @@ function fge() {
} catch {
e = !1;
}
- return zI = e, zI;
+ return RI = e, RI;
}
-function BI(e) {
+function zI(e) {
return e.type === "touchstart";
}
-var pge = {
+var hge = {
getInitialState: (e) => ({
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: gI("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: hI("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -43628,7 +43681,7 @@ var pge = {
};
},
createRow: (e, t) => {
- e._getAllVisibleCells = vI(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), yI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = vI(() => [
+ e._getAllVisibleCells = _I(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), vI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = _I(() => [
e.getLeftVisibleCells(),
e.getCenterVisibleCells(),
e.getRightVisibleCells()
@@ -43636,10 +43689,10 @@ var pge = {
...e,
...t,
...n
- ], yI(t.options, "debugRows", "getVisibleCells"));
+ ], vI(t.options, "debugRows", "getVisibleCells"));
},
createTable: (e) => {
- let t = (t, n) => vI(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), yI(e.options, "debugColumns", t));
+ let t = (t, n) => _I(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), vI(e.options, "debugColumns", t));
e.getVisibleFlatColumns = t("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = t("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = t("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = t("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = t("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
e.setColumnVisibility(t ? {} : e.initialState.columnVisibility ?? {});
}, e.toggleAllColumnsVisible = (t) => {
@@ -43652,20 +43705,20 @@ var pge = {
};
}
};
-function VI(e, t) {
+function BI(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var mge = { createTable: (e) => {
+var gge = { createTable: (e) => {
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
};
-} }, hge = {
+} }, _ge = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: gI("globalFilter", e),
+ onGlobalFilterChange: hI("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -43677,22 +43730,22 @@ var mge = { createTable: (e) => {
e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
},
createTable: (e) => {
- e.getGlobalAutoFilterFn = () => MI.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => jI.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return _I(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? MI[t];
+ return gI(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? jI[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, gge = {
+}, vge = {
getInitialState: (e) => ({
expanded: {},
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: gI("expanded", e),
+ onExpandedChange: hI("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -43763,18 +43816,18 @@ var mge = { createTable: (e) => {
};
};
}
-}, HI = 0, UI = 10, WI = () => ({
- pageIndex: HI,
- pageSize: UI
-}), _ge = {
+}, VI = 0, HI = 10, UI = () => ({
+ pageIndex: VI,
+ pageSize: HI
+}), yge = {
getInitialState: (e) => ({
...e,
pagination: {
- ...WI(),
+ ...UI(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: gI("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: hI("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -43790,11 +43843,11 @@ var mge = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => hI(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? WI() : e.initialState.pagination ?? WI());
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => mI(t, e)), e.resetPagination = (t) => {
+ e.setPagination(t ? UI() : e.initialState.pagination ?? UI());
}, e.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = hI(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = mI(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
return r = Math.max(0, Math.min(r, i)), {
...n,
pageIndex: r
@@ -43802,13 +43855,13 @@ var mge = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? HI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? HI);
+ e.setPageIndex(t ? VI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? VI);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? UI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? UI);
+ e.setPageSize(t ? HI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? HI);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, hI(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, mI(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -43816,28 +43869,28 @@ var mge = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = hI(t, e.options.pageCount ?? -1);
+ let r = mI(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
};
- }), e.getPageOptions = vI(() => [e.getPageCount()], (e) => {
+ }), e.getPageOptions = _I(() => [e.getPageCount()], (e) => {
let t = [];
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
- }, yI(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
+ }, vI(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
let { pageIndex: t } = e.getState().pagination, n = e.getPageCount();
return n === -1 || n !== 0 && t < n - 1;
}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
}
-}, GI = () => ({
+}, WI = () => ({
top: [],
bottom: []
-}), vge = {
+}), bge = {
getInitialState: (e) => ({
- rowPinning: GI(),
+ rowPinning: WI(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: gI("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: hI("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -43876,7 +43929,7 @@ var mge = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? GI() : e.initialState?.rowPinning ?? GI()), e.getIsSomeRowsPinned = (t) => {
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? WI() : e.initialState?.rowPinning ?? WI()), e.getIsSomeRowsPinned = (t) => {
let n = e.getState().rowPinning;
return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
@@ -43885,22 +43938,22 @@ var mge = { createTable: (e) => {
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
...e,
position: r
- })), e.getTopRows = vI(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), yI(e.options, "debugRows", "getTopRows")), e.getBottomRows = vI(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), yI(e.options, "debugRows", "getBottomRows")), e.getCenterRows = vI(() => [
+ })), e.getTopRows = _I(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), vI(e.options, "debugRows", "getTopRows")), e.getBottomRows = _I(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), vI(e.options, "debugRows", "getBottomRows")), e.getCenterRows = _I(() => [
e.getRowModel().rows,
e.getState().rowPinning.top,
e.getState().rowPinning.bottom
], (e, t, n) => {
let r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
return e.filter((e) => !r.has(e.id));
- }, yI(e.options, "debugRows", "getCenterRows"));
+ }, vI(e.options, "debugRows", "getCenterRows"));
}
-}, yge = {
+}, xge = {
getInitialState: (e) => ({
rowSelection: {},
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: gI("rowSelection", e),
+ onRowSelectionChange: hI("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -43919,21 +43972,21 @@ var mge = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- KI(i, t.id, r, !0, e);
+ GI(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = vI(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? qI(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = _I(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? KI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, yI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = vI(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? qI(e, n) : {
+ }, vI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = _I(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? KI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, yI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = vI(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? qI(e, n) : {
+ }, vI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = _I(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? KI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, yI(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
+ }, vI(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
let t = e.getFilteredRowModel().flatRows, { rowSelection: n } = e.getState(), r = !!(t.length && Object.keys(n).length);
return r && t.some((e) => e.getCanSelect() && !n[e.id]) && (r = !1), r;
}, e.getIsAllPageRowsSelected = () => {
@@ -43957,17 +44010,17 @@ var mge = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return KI(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return GI(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return JI(e, n);
+ return qI(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return YI(e, n) === "some";
+ return JI(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return YI(e, n) === "all";
+ return JI(e, n) === "all";
}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
let t = e.getCanSelect();
return (n) => {
@@ -43975,16 +44028,16 @@ var mge = { createTable: (e) => {
};
};
}
-}, KI = (e, t, n, r, i) => {
+}, GI = (e, t, n, r, i) => {
var a;
let o = i.getRow(t, !0);
- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => KI(e, t.id, n, r, i));
+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => GI(e, t.id, n, r, i));
};
-function qI(e, t) {
+function KI(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = JI(e, n);
+ let o = qI(e, n);
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
...e,
subRows: a(e.subRows)
@@ -43997,32 +44050,32 @@ function qI(e, t) {
rowsById: i
};
}
-function JI(e, t) {
+function qI(e, t) {
return t[e.id] ?? !1;
}
-function YI(e, t, n) {
+function JI(e, t, n) {
var r;
if (!((r = e.subRows) != null && r.length)) return !1;
let i = !0, a = !1;
return e.subRows.forEach((e) => {
- if (!(a && !i) && (e.getCanSelect() && (JI(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = YI(e, t);
+ if (!(a && !i) && (e.getCanSelect() && (qI(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
+ let n = JI(e, t);
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
}
}), i ? "all" : a ? "some" : !1;
}
-var XI = /([0-9]+)/gm, bge = (e, t, n) => $I(QI(e.getValue(n)).toLowerCase(), QI(t.getValue(n)).toLowerCase()), xge = (e, t, n) => $I(QI(e.getValue(n)), QI(t.getValue(n))), Sge = (e, t, n) => ZI(QI(e.getValue(n)).toLowerCase(), QI(t.getValue(n)).toLowerCase()), Cge = (e, t, n) => ZI(QI(e.getValue(n)), QI(t.getValue(n))), wge = (e, t, n) => {
+var YI = /([0-9]+)/gm, Sge = (e, t, n) => QI(ZI(e.getValue(n)).toLowerCase(), ZI(t.getValue(n)).toLowerCase()), Cge = (e, t, n) => QI(ZI(e.getValue(n)), ZI(t.getValue(n))), wge = (e, t, n) => XI(ZI(e.getValue(n)).toLowerCase(), ZI(t.getValue(n)).toLowerCase()), Tge = (e, t, n) => XI(ZI(e.getValue(n)), ZI(t.getValue(n))), Ege = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, Tge = (e, t, n) => ZI(e.getValue(n), t.getValue(n));
-function ZI(e, t) {
+}, Dge = (e, t, n) => XI(e.getValue(n), t.getValue(n));
+function XI(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function QI(e) {
+function ZI(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function $I(e, t) {
- let n = e.split(XI).filter(Boolean), r = t.split(XI).filter(Boolean);
+function QI(e, t) {
+ let n = e.split(YI).filter(Boolean), r = t.split(YI).filter(Boolean);
for (; n.length && r.length;) {
let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
if (isNaN(o[0])) {
@@ -44036,22 +44089,22 @@ function $I(e, t) {
}
return n.length - r.length;
}
-var eL = {
- alphanumeric: bge,
- alphanumericCaseSensitive: xge,
- text: Sge,
- textCaseSensitive: Cge,
- datetime: wge,
- basic: Tge
-}, Ege = [
- nge,
- pge,
- cge,
- lge,
+var $I = {
+ alphanumeric: Sge,
+ alphanumericCaseSensitive: Cge,
+ text: wge,
+ textCaseSensitive: Tge,
+ datetime: Ege,
+ basic: Dge
+}, Oge = [
ige,
- age,
- mge,
hge,
+ uge,
+ dge,
+ oge,
+ sge,
+ gge,
+ _ge,
{
getInitialState: (e) => ({
sorting: [],
@@ -44062,7 +44115,7 @@ var eL = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: gI("sorting", e),
+ onSortingChange: hI("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -44070,13 +44123,13 @@ var eL = {
let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
for (let t of n) {
let n = t?.getValue(e.id);
- if (Object.prototype.toString.call(n) === "[object Date]") return eL.datetime;
- if (typeof n == "string" && (r = !0, n.split(XI).length > 1)) return eL.alphanumeric;
+ if (Object.prototype.toString.call(n) === "[object Date]") return $I.datetime;
+ if (typeof n == "string" && (r = !0, n.split(YI).length > 1)) return $I.alphanumeric;
}
- return r ? eL.text : eL.basic;
+ return r ? $I.text : $I.basic;
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
if (!e) throw Error();
- return _I(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? eL[e.columnDef.sortingFn];
+ return gI(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? $I[e.columnDef.sortingFn];
}, e.toggleSorting = (n, r) => {
let i = e.getNextSortingOrder(), a = n != null;
t.setSorting((o) => {
@@ -44113,15 +44166,15 @@ var eL = {
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
}
},
- oge,
- gge,
- _ge,
+ cge,
vge,
yge,
- dge
+ bge,
+ xge,
+ pge
];
-function Dge(e) {
- let t = [...Ege, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
+function kge(e) {
+ let t = [...Oge, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
...r,
...e
}, a = { ...e.initialState ?? {} };
@@ -44147,7 +44200,7 @@ function Dge(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = hI(e, n.options);
+ let t = mI(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -44162,7 +44215,7 @@ function Dge(e) {
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();
return r;
},
- _getDefaultColumnDef: vI(() => [n.options.defaultColumn], (e) => (e ??= {}, {
+ _getDefaultColumnDef: _I(() => [n.options.defaultColumn], (e) => (e ??= {}, {
header: (e) => {
let t = e.header.column.columnDef;
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
@@ -44173,20 +44226,20 @@ function Dge(e) {
},
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
...e
- }), yI(e, "debugColumns", "_getDefaultColumnDef")),
+ }), vI(e, "debugColumns", "_getDefaultColumnDef")),
_getColumnDefs: () => n.options.columns,
- getAllColumns: vI(() => [n._getColumnDefs()], (e) => {
+ getAllColumns: _I(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = tge(n, e, i, r), o = e;
+ let a = rge(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
return t(e);
- }, yI(e, "debugColumns", "getAllColumns")),
- getAllFlatColumns: vI(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), yI(e, "debugColumns", "getAllFlatColumns")),
- _getAllFlatColumnsById: vI(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), yI(e, "debugColumns", "getAllFlatColumnsById")),
- getAllLeafColumns: vI(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), yI(e, "debugColumns", "getAllLeafColumns")),
+ }, vI(e, "debugColumns", "getAllColumns")),
+ getAllFlatColumns: _I(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), vI(e, "debugColumns", "getAllFlatColumns")),
+ _getAllFlatColumnsById: _I(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), vI(e, "debugColumns", "getAllFlatColumnsById")),
+ getAllLeafColumns: _I(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), vI(e, "debugColumns", "getAllLeafColumns")),
getColumn: (e) => n._getAllFlatColumnsById()[e]
};
Object.assign(n, c);
@@ -44196,8 +44249,8 @@ function Dge(e) {
}
return n;
}
-function tL() {
- return (e) => vI(() => [e.options.data], (t) => {
+function eL() {
+ return (e) => _I(() => [e.options.data], (t) => {
let n = {
rows: [],
flatRows: [],
@@ -44206,7 +44259,7 @@ function tL() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = rge(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = age(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
var s;
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
@@ -44215,9 +44268,9 @@ function tL() {
return o;
};
return n.rows = r(t), n;
- }, yI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
+ }, vI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function Oge(e) {
+function Age(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -44228,8 +44281,8 @@ function Oge(e) {
rowsById: e.rowsById
};
}
-function nL(e) {
- return (e) => vI(() => [
+function tL(e) {
+ return (e) => _I(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
e.options.paginateExpandedRows ? void 0 : e.getState().expanded
@@ -44242,7 +44295,7 @@ function nL(e) {
rows: a,
flatRows: o,
rowsById: s
- } : Oge({
+ } : Age({
rows: a,
flatRows: o,
rowsById: s
@@ -44251,32 +44304,32 @@ function nL(e) {
u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);
};
return u.rows.forEach(d), u;
- }, yI(e.options, "debugTable", "getPaginationRowModel"));
+ }, vI(e.options, "debugTable", "getPaginationRowModel"));
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function rL(e, t) {
- return e ? kge(e) ? /*#__PURE__*/ R.createElement(e, t) : e : null;
+function nL(e, t) {
+ return e ? jge(e) ? /*#__PURE__*/ R.createElement(e, t) : e : null;
}
-function kge(e) {
- return Age(e) || typeof e == "function" || jge(e);
+function jge(e) {
+ return Mge(e) || typeof e == "function" || Nge(e);
}
-function Age(e) {
+function Mge(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function jge(e) {
+function Nge(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function iL(e) {
+function rL(e) {
let t = {
state: {},
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = R.useState(() => ({ current: Dge(t) })), [r, i] = R.useState(() => n.current.initialState);
+ }, [n] = R.useState(() => ({ current: kge(t) })), [r, i] = R.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -44291,7 +44344,7 @@ function iL(e) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var Mge = TE({
+var Pge = wE({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -44353,23 +44406,23 @@ var Mge = TE({
}
}
});
-function Nge({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = Mge[t];
+function Fge({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = Pge[t];
return /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
- className: wE("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? wE("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: CE("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? CE("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, B.jsx)("span", {
- className: wE("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
- children: /* @__PURE__ */ (0, B.jsx)("span", { className: wE("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
+ className: CE("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
+ children: /* @__PURE__ */ (0, B.jsx)("span", { className: CE("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
})
});
}
-function aL({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, B.jsx)(Cse, {
+function iL({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, B.jsx)(wse, {
ref: i,
...a,
- className: (t) => wE("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Nge, {
+ className: (t) => CE("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ children: (e) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Fge, {
state: e,
size: n,
shape: r
@@ -44381,8 +44434,8 @@ function aL({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var oL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Pge = "输入女优名,到 JavDB 找她的演员页";
-function Fge(e, t) {
+var aL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Ige = "输入女优名,到 JavDB 找她的演员页";
+function Lge(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e.candidates) t.has(r.id) && r.held_by && n.set(r.held_by.id, r.held_by.name);
if (n.size > 1) return {
@@ -44401,10 +44454,10 @@ function Fge(e, t) {
blocked: !1
};
}
-function Ige({ card: e, picked: t, onPick: n }) {
+function Rge({ card: e, picked: t, onPick: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(qM, {
+ children: [/* @__PURE__ */ (0, B.jsx)(KM, {
isSelected: t,
onChange: n,
children: /* @__PURE__ */ (0, B.jsxs)("span", {
@@ -44414,7 +44467,7 @@ function Ige({ card: e, picked: t, onPick: n }) {
className: "min-w-0 break-words",
children: e.names.join("、")
}),
- e.record ? /* @__PURE__ */ (0, B.jsx)(DE, {
+ e.record ? /* @__PURE__ */ (0, B.jsx)(EE, {
variant: "caption",
color: "neutral",
children: e.record
@@ -44425,16 +44478,16 @@ function Ige({ card: e, picked: t, onPick: n }) {
}) : null
]
})
- }), /* @__PURE__ */ (0, B.jsx)(Hk, {
+ }), /* @__PURE__ */ (0, B.jsx)(Vk, {
href: e.url,
children: e.id
})]
});
}
-function Lge({ readOnly: e, toast: t, onAdded: n }) {
- let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), l = IE(), u = () => {
+function zge({ readOnly: e, toast: t, onAdded: n }) {
+ let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), l = FE(), u = () => {
let t = r.trim();
- !t || e || l.run("lookup", (e) => Bme(t, e), (e) => {
+ !t || e || l.run("lookup", (e) => Hme(t, e), (e) => {
o(e), c(new Set(e.suggested));
});
}, d = (e) => {
@@ -44442,12 +44495,12 @@ function Lge({ readOnly: e, toast: t, onAdded: n }) {
}, f = () => {
o(null), c(/* @__PURE__ */ new Set()), l.setError("");
}, p = () => {
- a && l.run("follow", (e) => Vme(a.q, [...s], e), (e) => {
+ a && l.run("follow", (e) => Ume(a.q, [...s], e), (e) => {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
- }, m = a ? Fge(a, s) : null;
+ }, m = a ? Lge(a, s) : null;
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: AE({
+ className: kE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -44460,11 +44513,11 @@ function Lge({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, B.jsx)(Ck, {
+ children: /* @__PURE__ */ (0, B.jsx)(Sk, {
"aria-label": "女优名",
- placeholder: Pge,
+ placeholder: Ige,
value: r,
- leadingIcon: NT,
+ leadingIcon: MT,
isDisabled: e,
onChange: i,
onKeyDown: d
@@ -44485,16 +44538,16 @@ function Lge({ readOnly: e, toast: t, onAdded: n }) {
a ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, B.jsx)(Vk, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, B.jsx)(Ige, {
+ /* @__PURE__ */ (0, B.jsx)(Bk, { children: "JavDB 上的演员卡" }),
+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, B.jsx)(Rge, {
card: e,
picked: s.has(e.id),
onPick: (t) => c((n) => {
let r = new Set(n);
return t ? r.add(e.id) : r.delete(e.id), r;
})
- }, e.id)) : /* @__PURE__ */ (0, B.jsx)(zk, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, B.jsx)(zk, {
+ }, e.id)) : /* @__PURE__ */ (0, B.jsx)(Rk, { children: "JavDB 上没有搜到这个名字。" }),
+ a.candidates.length ? /* @__PURE__ */ (0, B.jsx)(Rk, {
role: "status",
children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
}) : null,
@@ -44521,19 +44574,19 @@ function Lge({ readOnly: e, toast: t, onAdded: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var Rge = Object.fromEntries(Object.entries(QP).map(([e, t]) => [t, e])), sL = 740;
-function zge() {
+var Bge = Object.fromEntries(Object.entries(ZP).map(([e, t]) => [t, e])), oL = 740;
+function Vge() {
let [e, t] = (0, R.useState)(!1), n = (0, R.useRef)(null), r = (0, R.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < sL));
- r.observe(e), n.current = r, t(e.clientWidth < sL);
+ let r = new ResizeObserver(() => t(e.clientWidth < oL));
+ r.observe(e), n.current = r, t(e.clientWidth < oL);
}, []);
return (0, R.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var Bge = {
+var Hge = {
select: "选择",
author: "创作者",
source: "来源",
@@ -44542,7 +44595,7 @@ var Bge = {
checked: "上次检查",
actions: "操作"
};
-function cL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function sL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, B.jsxs)("nav", {
"aria-label": r,
className: "flex flex-wrap items-center justify-center gap-2",
@@ -44556,7 +44609,7 @@ function cL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
}),
/* @__PURE__ */ (0, B.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: gj(e, t).map((t, r) => /* @__PURE__ */ (0, B.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, B.jsx)("span", {
+ children: _j(e, t).map((t, r) => /* @__PURE__ */ (0, B.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -44579,22 +44632,22 @@ function cL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
]
});
}
-function Vge({ source: e, selected: t, onToggle: n, handlers: r }) {
+function Uge({ source: e, selected: t, onToggle: n, handlers: r }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
onClick: (e) => {
- YM(e, e.currentTarget) && n(!t);
+ JM(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, B.jsx)(qM, {
+ /* @__PURE__ */ (0, B.jsx)(KM, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
/* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, B.jsx)(lI, { source: e }), e.last_error ? /* @__PURE__ */ (0, B.jsx)("small", {
+ children: [/* @__PURE__ */ (0, B.jsx)(cI, { source: e }), e.last_error ? /* @__PURE__ */ (0, B.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.last_error
}) : null]
@@ -44602,17 +44655,17 @@ function Vge({ source: e, selected: t, onToggle: n, handlers: r }) {
/* @__PURE__ */ (0, B.jsx)("span", {
className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",
title: e.provider_label,
- children: /* @__PURE__ */ (0, B.jsx)(oI, {
+ children: /* @__PURE__ */ (0, B.jsx)(aI, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, B.jsx)(cI, { source: e }),
+ /* @__PURE__ */ (0, B.jsx)(sI, { source: e }),
/* @__PURE__ */ (0, B.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: TF(e)
+ children: wF(e)
}),
- /* @__PURE__ */ (0, B.jsx)(aL, {
+ /* @__PURE__ */ (0, B.jsx)(iL, {
"aria-label": `启用 ${e.label}`,
isSelected: e.enabled,
isDisabled: r.readOnly,
@@ -44624,7 +44677,7 @@ function Vge({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: jT,
+ leadingIcon: AT,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
...X(r.busy),
@@ -44633,7 +44686,7 @@ function Vge({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: wT,
+ leadingIcon: CT,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -44642,11 +44695,11 @@ function Vge({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function Hge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
- let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(eF).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = uF(r, c);
+function Wge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
+ let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter($P).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = lF(r, c);
return /* @__PURE__ */ (0, B.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: AE({
+ className: kE({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
@@ -44656,7 +44709,7 @@ function Hge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, B.jsx)(sI, {
+ /* @__PURE__ */ (0, B.jsx)(oI, {
group: e,
name: t
}),
@@ -44668,7 +44721,7 @@ function Hge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: jT,
+ leadingIcon: AT,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
...X(i.busy),
@@ -44677,7 +44730,7 @@ function Hge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, B.jsx)(oI, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, B.jsx)(q_, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, B.jsx)(aI, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, B.jsx)(J_, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@ -44686,7 +44739,7 @@ function Hge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: yT,
+ leadingIcon: vT,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
@@ -44697,7 +44750,7 @@ function Hge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? vT : hT,
+ leadingIcon: n ? _T : mT,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
@@ -44707,7 +44760,7 @@ function Hge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, B.jsx)(Vge, {
+ children: e.map((e) => /* @__PURE__ */ (0, B.jsx)(Uge, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -44716,37 +44769,37 @@ function Hge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
})]
});
}
-function Uge(e) {
- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, R.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, R.useState)(/* @__PURE__ */ new Set()), [x, S] = zge(), [C, w] = (0, R.useState)(""), T = (0, R.useMemo)(() => Ome(g, n, r, _), [
+function Gge(e) {
+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, R.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, R.useState)(/* @__PURE__ */ new Set()), [x, S] = Vge(), [C, w] = (0, R.useState)(""), T = (0, R.useMemo)(() => Ame(g, n, r, _), [
g,
n,
r,
_
- ]), E = (0, R.useMemo)(() => kme(T, n, r, _), [
+ ]), E = (0, R.useMemo)(() => jme(T, n, r, _), [
T,
n,
r,
_
- ]), { job: D, running: O, outcome: k, start: A } = UM({
- queryKey: yme,
- queryFn: ({ signal: e }) => jme(e),
- start: (e) => mF(e),
+ ]), { job: D, running: O, outcome: k, start: A } = HM({
+ queryKey: xme,
+ queryFn: ({ signal: e }) => Nme(e),
+ start: (e) => pF(e),
onError: (e) => w(U(e)),
onFinish: (e) => {
- wF(), m(e.status === "failed" ? e.error || "检查失败" : Ume(e));
+ CF(), m(e.status === "failed" ? e.error || "检查失败" : Gme(e));
}
}), j = (e) => {
O || A.isPending || (w(""), A.mutate(e));
- }, M = (e, t) => p(dF(s, [e], t)), N = (e, t) => p(dF(s, e, t)), ee = OS({
- mutationFn: (e) => gF(e),
+ }, M = (e, t) => p(uF(s, [e], t)), N = (e, t) => p(uF(s, e, t)), ee = DS({
+ mutationFn: (e) => hF(e),
onSuccess: (e, t) => {
- CF([t]), p(dF(s, [t], !1)), m("已取消关注来源");
+ SF([t]), p(uF(s, [t], !1)), m("已取消关注来源");
},
onError: (e) => w(U(e))
- }), te = OS({
- mutationFn: (e) => hF(e.id, e.enabled),
+ }), te = DS({
+ mutationFn: (e) => mF(e.id, e.enabled),
onSuccess: (e, t) => {
- SF(t.id, { enabled: t.enabled }), w("");
+ xF(t.id, { enabled: t.enabled }), w("");
},
onError: (e) => w(U(e))
}), P = (e) => void je({
@@ -44755,10 +44808,10 @@ function Uge(e) {
confirmLabel: "取消关注来源",
danger: !0,
onConfirm: () => ee.mutateAsync(e.id)
- }), F = OS({
+ }), F = DS({
mutationFn: async (e) => {
let t = await Se(e.ids, 4, async (t) => {
- e.action === "remove" ? await gF(t) : await hF(t, e.action === "enabled");
+ e.action === "remove" ? await hF(t) : await mF(t, e.action === "enabled");
});
return {
...e,
@@ -44767,9 +44820,9 @@ function Uge(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") CF(e.done);
- else for (let t of e.done) SF(t, { enabled: e.action === "enabled" });
- p(dF(s, e.done, !1));
+ if (e.action === "remove") SF(e.done);
+ else for (let t of e.done) xF(t, { enabled: e.action === "enabled" });
+ p(uF(s, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
w(`${t.length}/${e.ids.length} 个来源未更新:${U(t[0]?.error)}`);
@@ -44780,20 +44833,20 @@ function Uge(e) {
m(`已${n} ${e.done.length} 个关注来源`);
},
onError: (e) => w(U(e))
- }), ne = OS({
+ }), ne = DS({
mutationFn: async (e) => {
- let t = ((await zme()).groups || []).flatMap((e) => [
+ let t = ((await Vme()).groups || []).flatMap((e) => [
e.primary,
...e.variants,
...e.duplicates
]).filter((e) => e.status === "new").map((e) => e.id);
return {
ids: t,
- failed: (await Se(t, 6, (t) => Rme(t, e))).filter((e) => !e.ok)
+ failed: (await Se(t, 6, (t) => Bme(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
- if (wF(), e.failed.length) {
+ if (CF(), e.failed.length) {
w(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
@@ -44818,12 +44871,12 @@ function Uge(e) {
readOnly: c
};
let ae = ie.current, oe = (0, R.useMemo)(() => {
- let e = mI(), t = (e) => () => Bge[e] || e;
+ let e = pI(), t = (e) => () => Hge[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, B.jsx)(qM, {
+ cell: (e) => /* @__PURE__ */ (0, B.jsx)(KM, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -44835,7 +44888,7 @@ function Uge(e) {
header: t("author"),
cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(sI, {
+ children: [/* @__PURE__ */ (0, B.jsx)(oI, {
group: e.row.original.group,
name: e.row.original.author
}), /* @__PURE__ */ (0, B.jsx)("span", {
@@ -44849,7 +44902,7 @@ function Uge(e) {
header: t("source"),
cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, B.jsx)(lI, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, B.jsx)("small", {
+ children: [/* @__PURE__ */ (0, B.jsx)(cI, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, B.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.row.original.source.last_error
}) : null]
@@ -44860,18 +44913,18 @@ function Uge(e) {
header: t("provider"),
cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, B.jsx)(oI, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, B.jsx)(aI, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, B.jsx)(cI, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, B.jsx)(sI, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => TF(e.row.original.source)
+ cell: (e) => wF(e.row.original.source)
}),
e.display({
id: "actions",
@@ -44879,7 +44932,7 @@ function Uge(e) {
cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, B.jsx)(aL, {
+ /* @__PURE__ */ (0, B.jsx)(iL, {
"aria-label": `启用 ${e.row.original.source.label}`,
isSelected: e.row.original.source.enabled,
isDisabled: ae.readOnly,
@@ -44889,7 +44942,7 @@ function Uge(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: jT,
+ leadingIcon: AT,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
disabled: !e.row.original.source.enabled || ae.readOnly,
...X(ae.busy),
@@ -44899,7 +44952,7 @@ function Uge(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: wT,
+ leadingIcon: CT,
"aria-label": `移除 ${e.row.original.source.label}`,
disabled: ae.readOnly,
onClick: () => ie.current.remove(e.row.original.source)
@@ -44909,12 +44962,12 @@ function Uge(e) {
})
];
}, [ae]), se = (0, R.useMemo)(() => {
- let e = Rge[n];
+ let e = Bge[n];
return e ? [{
id: e,
desc: r === "desc"
}] : [];
- }, [n, r]), ce = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), le = a === "table", ue = lF(le ? E.length : T.length, o, i), de = iL({
+ }, [n, r]), ce = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), le = a === "table", ue = cF(le ? E.length : T.length, o, i), de = rL({
data: E,
columns: oe,
getRowId: (e) => String(e.source.id),
@@ -44931,7 +44984,7 @@ function Uge(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(se) : e)[0];
if (!t) return;
- let n = QP[t.id];
+ let n = ZP[t.id];
n && l(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -44945,11 +44998,11 @@ function Uge(e) {
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === o ? n.pageIndex !== t.pageIndex && u(n.pageIndex + 1) : f(n.pageSize);
},
- getCoreRowModel: tL(),
- getPaginationRowModel: nL()
- }), fe = de.getRowModel().rows, I = le ? fe.map((e) => e.original.source.id) : T.slice(ue.start, ue.end).flatMap((e) => e.map((e) => e.id)), pe = uF(s, I), me = [...s], he = Wme(k), ge = Gme(k), _e = T.length > 0 && y.size >= T.length;
+ getCoreRowModel: eL(),
+ getPaginationRowModel: tL()
+ }), fe = de.getRowModel().rows, I = le ? fe.map((e) => e.original.source.id) : T.slice(ue.start, ue.end).flatMap((e) => e.map((e) => e.id)), pe = lF(s, I), me = [...s], he = Kme(k), ge = qme(k), _e = T.length > 0 && y.size >= T.length;
return g.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
- className: AE({
+ className: kE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -44968,7 +45021,7 @@ function Uge(e) {
}),
/* @__PURE__ */ (0, B.jsx)(J, {
variant: "primary",
- leadingIcon: jT,
+ leadingIcon: AT,
disabled: c,
"aria-label": "检查全部",
iconOnly: S,
@@ -44983,28 +45036,28 @@ function Uge(e) {
children: [/* @__PURE__ */ (0, B.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: cae,
- "aria-label": XP[0][1],
+ leadingIcon: lae,
+ "aria-label": YP[0][1],
"aria-pressed": !le,
onClick: () => d("default")
}), /* @__PURE__ */ (0, B.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: dae,
- "aria-label": XP[1][1],
+ leadingIcon: fae,
+ "aria-label": YP[1][1],
"aria-pressed": le,
onClick: () => d("table")
})]
}),
- /* @__PURE__ */ (0, B.jsx)(Ok, {
+ /* @__PURE__ */ (0, B.jsx)(Dk, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- l(t, LP[t]);
+ l(t, IP[t]);
},
- children: IP.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: FP.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Ok, {
id: e,
children: t
}, e))
@@ -45012,14 +45065,14 @@ function Uge(e) {
/* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: r === "asc" ? Jie : qie,
- "aria-label": Eme(n, r),
+ leadingIcon: r === "asc" ? Yie : Jie,
+ "aria-label": Ome(n, r),
onClick: () => l(n, r === "asc" ? "desc" : "asc")
}),
le ? null : /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
iconOnly: S,
- leadingIcon: _e ? hT : vT,
+ leadingIcon: _e ? mT : _T,
"aria-label": _e ? "全部展开" : "全部收起",
onClick: () => b(_e ? /* @__PURE__ */ new Set() : new Set(T.map((e) => String(e[0].author_key || e[0].id)))),
children: _e ? "全部展开" : "全部收起"
@@ -45030,7 +45083,7 @@ function Uge(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- O ? /* @__PURE__ */ (0, B.jsx)(zM, {
+ O ? /* @__PURE__ */ (0, B.jsx)(RM, {
embedded: !0,
label: D?.message || (D?.total ? `${D.older ? "抓取历史" : "检查更新"}:已完成 ${D.checked || 0}/${D.total} 个来源` : "正在准备检查任务"),
value: D?.checked,
@@ -45056,7 +45109,7 @@ function Uge(e) {
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsxs)(sS, {
+ /* @__PURE__ */ (0, B.jsxs)(oS, {
label: "关注来源批量操作",
visible: me.length > 0,
count: `已选 ${me.length} 个来源`,
@@ -45116,10 +45169,10 @@ function Uge(e) {
})
]
}),
- le ? /* @__PURE__ */ (0, B.jsx)(XM, {
+ le ? /* @__PURE__ */ (0, B.jsx)(YM, {
follow: !0,
onRowClick: (e) => M(Number(e), !s.has(Number(e))),
- children: /* @__PURE__ */ (0, B.jsxs)(JM, {
+ children: /* @__PURE__ */ (0, B.jsxs)(qM, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: se[0] ? {
@@ -45130,9 +45183,9 @@ function Uge(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, B.jsx)(rk, { children: de.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in QP, n = rL(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, B.jsx)(ik, {
+ children: [/* @__PURE__ */ (0, B.jsx)(nk, { children: de.getHeaderGroups()[0].headers.map((e) => {
+ let t = e.column.id in ZP, n = nL(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, B.jsx)(rk, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -45141,20 +45194,20 @@ function Uge(e) {
children: [n, /* @__PURE__ */ (0, B.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, B.jsx)(pce, {})
+ children: /* @__PURE__ */ (0, B.jsx)(mce, {})
})]
- }) : /* @__PURE__ */ (0, B.jsx)(q_, { children: n })
+ }) : /* @__PURE__ */ (0, B.jsx)(J_, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, B.jsx)(ok, {
+ }) }), /* @__PURE__ */ (0, B.jsx)(ak, {
renderEmptyState: () => "这一页没有来源",
- children: fe.map((e) => /* @__PURE__ */ (0, B.jsx)(lk, {
+ children: fe.map((e) => /* @__PURE__ */ (0, B.jsx)(ck, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, B.jsx)(dk, { children: rL(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, B.jsx)(uk, { children: nL(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(qM, {
+ }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(KM, {
isSelected: pe.all,
isIndeterminate: pe.some,
onChange: (e) => N(I, e),
@@ -45164,9 +45217,9 @@ function Uge(e) {
className: "flex flex-col gap-3",
children: T.slice(ue.start, ue.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, B.jsx)(Hge, {
+ return /* @__PURE__ */ (0, B.jsx)(Wge, {
group: e,
- name: aF(e, _),
+ name: iF(e, _),
handlers: ae,
selected: s,
open: !y.has(t),
@@ -45186,19 +45239,19 @@ function Uge(e) {
className: "text-body-2-regular text-text-secondary",
children: `${ue.start + 1}–${ue.end} / ${ue.total} ${le ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, B.jsx)(Ok, {
+ /* @__PURE__ */ (0, B.jsx)(Dk, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(o),
onSelectionChange: (e) => {
e !== null && de.setPageSize(Number(e));
},
- children: ZP.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: XP.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {
id: String(e),
children: `每页 ${e} ${le ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, B.jsx)(cL, {
+ /* @__PURE__ */ (0, B.jsx)(sL, {
page: ue.page,
pages: ue.pages,
onPage: (e) => de.setPageIndex(e - 1)
@@ -45247,11 +45300,11 @@ function Uge(e) {
]
}) : null
]
- }) : /* @__PURE__ */ (0, B.jsx)(jE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(AE, {
shell: "plain",
- icon: MT,
+ icon: jT,
title: "还没有关注来源",
- actions: /* @__PURE__ */ (0, B.jsx)(kE, {
+ actions: /* @__PURE__ */ (0, B.jsx)(OE, {
variant: "primary",
size: "small",
href: "/follow-manage?tab=add",
@@ -45262,7 +45315,7 @@ function Uge(e) {
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
-var Wge = {
+var Kge = {
select: "选择",
name: "名称",
kind: "类型",
@@ -45272,33 +45325,33 @@ var Wge = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, Gge = /* @__PURE__ */ new Set(["select", "actions"]), lL = () => p.invalidateQueries({
- queryKey: YP,
+}, qge = /* @__PURE__ */ new Set(["select", "actions"]), cL = () => p.invalidateQueries({
+ queryKey: JP,
exact: !0
-}), uL = (e) => e.name || e.url, Kge = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
-function qge(e) {
+}), lL = (e) => e.name || e.url, Jge = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
+function Yge(e) {
try {
return new URL(e).hostname.replace(/^www\./, "");
} catch {
return e;
}
}
-function Jge({ source: e }) {
- return e.last_error ? /* @__PURE__ */ (0, B.jsx)(DE, {
+function Xge({ source: e }) {
+ return e.last_error ? /* @__PURE__ */ (0, B.jsx)(EE, {
variant: "caption",
color: "rose",
children: "拉取失败"
- }) : e.enabled ? /* @__PURE__ */ (0, B.jsx)(DE, {
+ }) : e.enabled ? /* @__PURE__ */ (0, B.jsx)(EE, {
variant: "caption",
color: "lime",
children: "正常"
- }) : /* @__PURE__ */ (0, B.jsx)(DE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(EE, {
variant: "caption",
color: "neutral",
children: "已暂停"
});
}
-function Yge({ source: e }) {
+function Zge({ source: e }) {
let t = e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
@@ -45307,31 +45360,31 @@ function Yge({ source: e }) {
} : null;
return /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${oL}`,
- dangerouslySetInnerHTML: { __html: k(uL(e), t, null, "performer") }
+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${aL}`,
+ dangerouslySetInnerHTML: { __html: k(lL(e), t, null, "performer") }
});
}
-var Xge = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
-function Zge(e) {
+var Qge = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
+function $ge(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
for (let { entity_id: r } of e) r !== null && (t.has(r) ? n.add(r) : t.add(r));
return n;
}
-function dL(e, t) {
+function uL(e, t) {
let n = e.length === 1 ? e[0] : null;
return je({
title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
- body: n ? `将移除订阅源「${uL(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
+ body: n ? `将移除订阅源「${lL(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
confirmLabel: n ? "移除订阅源" : "移除所选订阅源",
danger: !0,
onConfirm: t
});
}
-function Qge({ readOnly: e, toast: t }) {
- let n = TS({
- queryKey: YP,
- queryFn: ({ signal: e }) => vF(e)
- }), r = IE(), i = n.data, a = (0, R.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, R.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, R.useState)(1), [u, d] = (0, R.useState)(20), f = lF(a.length, u, c);
+function e_e({ readOnly: e, toast: t }) {
+ let n = wS({
+ queryKey: JP,
+ queryFn: ({ signal: e }) => _F(e)
+ }), r = FE(), i = n.data, a = (0, R.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, R.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, R.useState)(1), [u, d] = (0, R.useState)(20), f = cF(a.length, u, c);
(0, R.useEffect)(() => {
l((e) => Math.min(e, f.pages));
}, [f.pages]), (0, R.useEffect)(() => {
@@ -45340,10 +45393,10 @@ function Qge({ readOnly: e, toast: t }) {
return n.size === e.size ? e : n;
});
}, [a]);
- let p = OS({
+ let p = DS({
mutationFn: async (e) => {
let t = await Se(e.ids, 4, async (t) => {
- e.action === "remove" ? await bF(t) : await yF(t, e.action === "enabled");
+ e.action === "remove" ? await yF(t) : await vF(t, e.action === "enabled");
});
return {
...e,
@@ -45352,13 +45405,13 @@ function Qge({ readOnly: e, toast: t }) {
},
onSuccess: (e) => {
let n = e.results.filter((e) => !e.ok), i = e.ids.length - n.length;
- if (s(/* @__PURE__ */ new Set()), lL(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
+ if (s(/* @__PURE__ */ new Set()), cL(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
let e = n[0];
r.setError(`${n.length} 条没有写入:${e.ok ? "" : U(e.error)}`);
}
},
onError: (e) => r.setError(U(e))
- }), m = (0, R.useMemo)(() => Zge(a), [a]), h = (0, R.useRef)({
+ }), m = (0, R.useMemo)(() => $ge(a), [a]), h = (0, R.useRef)({
readOnly: e,
shared: m,
busy: null,
@@ -45370,34 +45423,34 @@ function Qge({ readOnly: e, toast: t }) {
readOnly: e,
shared: m,
busy: r.busy,
- toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => yF(e.id, t, n), () => void lL()),
- fetch: (e) => void r.run(`check-${e.id}`, (t) => xF(t, [e.id]), () => void lL()),
- remove: (e) => void dL([e], async () => {
- await bF(e.id), t(`已移除订阅源「${uL(e)}」`), lL();
+ toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => vF(e.id, t, n), () => void cL()),
+ fetch: (e) => void r.run(`check-${e.id}`, (t) => bF(t, [e.id]), () => void cL()),
+ remove: (e) => void uL([e], async () => {
+ await yF(e.id), t(`已移除订阅源「${lL(e)}」`), cL();
})
};
let g = (0, R.useMemo)(() => {
- let e = mI(), t = (e) => () => Wge[e] || e;
+ let e = pI(), t = (e) => () => Kge[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, B.jsx)(qM, {
+ cell: (e) => /* @__PURE__ */ (0, B.jsx)(KM, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
- "aria-label": `选择 ${uL(e.row.original)}`
+ "aria-label": `选择 ${lL(e.row.original)}`
})
}),
- e.accessor(uL, {
+ e.accessor(lL, {
id: "name",
header: t("name"),
cell: (e) => {
- let t = Xge(e.row.original, h.current.shared);
+ let t = Qge(e.row.original, h.current.shared);
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
children: [
- /* @__PURE__ */ (0, B.jsx)(Yge, { source: e.row.original }),
+ /* @__PURE__ */ (0, B.jsx)(Zge, { source: e.row.original }),
e.getValue(),
t ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -45425,15 +45478,15 @@ function Qge({ readOnly: e, toast: t }) {
rel: "noreferrer noopener",
title: "打开来源页面",
className: "text-text-primary underline-offset-2 hover:underline",
- children: qge(e.getValue())
+ children: Yge(e.getValue())
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, B.jsx)(Jge, { source: e.row.original })
+ cell: (e) => /* @__PURE__ */ (0, B.jsx)(Xge, { source: e.row.original })
}),
- e.accessor((e) => Kge(e.interval_minutes), {
+ e.accessor((e) => Jge(e.interval_minutes), {
id: "interval",
header: t("interval"),
cell: (e) => /* @__PURE__ */ (0, B.jsx)("span", {
@@ -45441,7 +45494,7 @@ function Qge({ readOnly: e, toast: t }) {
children: e.getValue()
})
}),
- e.accessor((e) => e.last_fetched_at ? yj(e.last_fetched_at) : "还没拉过", {
+ e.accessor((e) => e.last_fetched_at ? bj(e.last_fetched_at) : "还没拉过", {
id: "fetched",
header: t("fetched"),
cell: (e) => /* @__PURE__ */ (0, B.jsx)("span", {
@@ -45463,8 +45516,8 @@ function Qge({ readOnly: e, toast: t }) {
cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, B.jsx)(aL, {
- "aria-label": `启用 ${uL(e.row.original)}`,
+ /* @__PURE__ */ (0, B.jsx)(iL, {
+ "aria-label": `启用 ${lL(e.row.original)}`,
isSelected: e.row.original.enabled,
isDisabled: h.current.readOnly,
onChange: (t) => h.current.toggle(e.row.original, t)
@@ -45473,8 +45526,8 @@ function Qge({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: jT,
- "aria-label": `拉取 ${uL(e.row.original)}`,
+ leadingIcon: AT,
+ "aria-label": `拉取 ${lL(e.row.original)}`,
disabled: h.current.readOnly,
...X(h.current.busy === `check-${e.row.original.id}`),
onClick: () => h.current.fetch(e.row.original)
@@ -45483,8 +45536,8 @@ function Qge({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: wT,
- "aria-label": `移除 ${uL(e.row.original)}`,
+ leadingIcon: CT,
+ "aria-label": `移除 ${lL(e.row.original)}`,
disabled: h.current.readOnly,
onClick: () => h.current.remove(e.row.original)
})
@@ -45492,7 +45545,7 @@ function Qge({ readOnly: e, toast: t }) {
})
})
];
- }, []), _ = (0, R.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), v = iL({
+ }, []), _ = (0, R.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), v = rL({
data: a,
columns: g,
getRowId: (e) => String(e.id),
@@ -45508,27 +45561,27 @@ function Qge({ readOnly: e, toast: t }) {
let t = typeof e == "function" ? e(_) : e;
s(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
},
- getCoreRowModel: tL(),
- getPaginationRowModel: nL()
+ getCoreRowModel: eL(),
+ getPaginationRowModel: tL()
});
if (!i) return n.error ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "打不开订阅源",
children: U(n.error)
- }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: "正在读订阅源。" });
- let y = () => void r.run("check", (e) => xF(e), () => void lL()), b = (e) => s((t) => {
+ }) : /* @__PURE__ */ (0, B.jsx)(Rk, { children: "正在读订阅源。" });
+ let y = () => void r.run("check", (e) => bF(e), () => void cL()), b = (e) => s((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
}), x = a.filter((e) => o.has(e.id)), S = a.filter((e) => e.last_error);
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, B.jsx)(Lge, {
+ children: [/* @__PURE__ */ (0, B.jsx)(zge, {
readOnly: e,
toast: t,
- onAdded: () => void lL()
+ onAdded: () => void cL()
}), /* @__PURE__ */ (0, B.jsxs)("section", {
"aria-label": "JAV 订阅列表",
- className: AE({
+ className: kE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -45556,11 +45609,11 @@ function Qge({ readOnly: e, toast: t }) {
className: "flex flex-col gap-3",
children: [S.map((e) => /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
- title: `${uL(e)} 拉取失败`,
+ title: `${lL(e)} 拉取失败`,
children: e.last_error
- }, e.id)), r.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: r.error }) : null]
+ }, e.id)), r.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: r.error }) : null]
}) : null,
- /* @__PURE__ */ (0, B.jsxs)(sS, {
+ /* @__PURE__ */ (0, B.jsxs)(oS, {
visible: x.length > 0,
label: "订阅源批量操作",
count: `已选 ${x.length} 条订阅源`,
@@ -45592,7 +45645,7 @@ function Qge({ readOnly: e, toast: t }) {
size: "small",
disabled: e,
...X(p.isPending),
- onClick: () => void dL(x, () => p.mutateAsync({
+ onClick: () => void uL(x, () => p.mutateAsync({
ids: x.map((e) => e.id),
action: "remove"
})),
@@ -45606,26 +45659,26 @@ function Qge({ readOnly: e, toast: t }) {
})
]
}),
- a.length ? /* @__PURE__ */ (0, B.jsx)(XM, {
+ a.length ? /* @__PURE__ */ (0, B.jsx)(YM, {
onRowClick: (e) => b(Number(e)),
- children: /* @__PURE__ */ (0, B.jsxs)(JM, {
+ children: /* @__PURE__ */ (0, B.jsxs)(qM, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, B.jsx)(rk, { children: v.getHeaderGroups()[0].headers.map((e) => {
- let t = rL(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, B.jsx)(ik, {
+ children: [/* @__PURE__ */ (0, B.jsx)(nk, { children: v.getHeaderGroups()[0].headers.map((e) => {
+ let t = nL(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, B.jsx)(rk, {
id: e.id,
isRowHeader: e.column.id === "name",
- children: Gge.has(e.column.id) ? /* @__PURE__ */ (0, B.jsx)(q_, { children: t }) : t
+ children: qge.has(e.column.id) ? /* @__PURE__ */ (0, B.jsx)(J_, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, B.jsx)(ok, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, B.jsx)(lk, {
+ }) }), /* @__PURE__ */ (0, B.jsx)(ak, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, B.jsx)(ck, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, B.jsx)(dk, { children: rL(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, B.jsx)(uk, { children: nL(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
- }) : /* @__PURE__ */ (0, B.jsx)(jE, {
- icon: MT,
+ }) : /* @__PURE__ */ (0, B.jsx)(AE, {
+ icon: jT,
title: "还没有订阅源",
shell: "plain",
children: "在上面按女优名添加,或在人物页点「订阅新作」。"
@@ -45637,19 +45690,19 @@ function Qge({ readOnly: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: `${f.start + 1}–${f.end} / ${f.total} 个订阅源`
}),
- /* @__PURE__ */ (0, B.jsx)(Ok, {
+ /* @__PURE__ */ (0, B.jsx)(Dk, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(u),
onSelectionChange: (e) => {
e !== null && (d(Number(e)), l(1));
},
- children: ZP.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: XP.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {
id: String(e),
children: `每页 ${e} 条`
}, e))
}),
- /* @__PURE__ */ (0, B.jsx)(cL, {
+ /* @__PURE__ */ (0, B.jsx)(sL, {
label: "JAV 订阅分页",
page: f.page,
pages: f.pages,
@@ -45671,29 +45724,29 @@ function Qge({ readOnly: e, toast: t }) {
}
//#endregion
//#region src/react/wants/resource-cache.ts
-var fL = "peach.want-resources.v1", pL = 864e5;
-function mL(e, t = Date.now()) {
+var dL = "peach.want-resources.v1", fL = 864e5;
+function pL(e, t = Date.now()) {
let n = Date.parse(e || ""), r = new Date(t), i = new Date(Date.UTC(r.getFullYear(), r.getMonth(), r.getDate())), a = i.getUTCDate();
i.setUTCHours(0, 0, 0, 0), i.setUTCDate(1), i.setUTCMonth(i.getUTCMonth() - 3);
let o = new Date(Date.UTC(i.getUTCFullYear(), i.getUTCMonth() + 1, 0)).getUTCDate();
- return i.setUTCDate(Math.min(a, o)), Number.isFinite(n) && n < i.getTime() ? 365 * pL : 7 * pL;
+ return i.setUTCDate(Math.min(a, o)), Number.isFinite(n) && n < i.getTime() ? 365 * fL : 7 * fL;
}
-function hL() {
+function mL() {
try {
- let e = JSON.parse(localStorage.getItem(fL) || "[]");
+ let e = JSON.parse(localStorage.getItem(dL) || "[]");
return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items)) : [];
} catch {
return [];
}
}
-function $ge(e, t) {
- let n = hL().find((t) => t.code === e);
- return n && Date.now() - n.saved < mL(t) ? n : void 0;
+function t_e(e, t) {
+ let n = mL().find((t) => t.code === e);
+ return n && Date.now() - n.saved < pL(t) ? n : void 0;
}
-function e_e(e, t) {
+function n_e(e, t) {
if (t.state === "ready") try {
- let n = hL().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem(fL, JSON.stringify([{
+ let n = mL().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
+ localStorage.setItem(dL, JSON.stringify([{
code: e,
saved: Number.isFinite(r) ? r : Date.now(),
result: t
@@ -45702,7 +45755,7 @@ function e_e(e, t) {
}
//#endregion
//#region src/react/wants/want-magnets.tsx
-function gL({ icon: e, children: t }) {
+function hL({ icon: e, children: t }) {
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "inline-flex items-center gap-1",
children: [/* @__PURE__ */ (0, B.jsx)(e, {
@@ -45711,8 +45764,8 @@ function gL({ icon: e, children: t }) {
}), t]
});
}
-function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a }) {
- let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(typeof IntersectionObserver > "u"), [l, u] = (0, R.useState)([]), d = IE(), f = lS(), p = (0, R.useRef)(!1), m = (0, R.useMemo)(() => $ge(e.code || "", e.release_date), [e.code, e.release_date]);
+function r_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a }) {
+ let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(typeof IntersectionObserver > "u"), [l, u] = (0, R.useState)([]), d = FE(), f = cS(), p = (0, R.useRef)(!1), m = (0, R.useMemo)(() => t_e(e.code || "", e.release_date), [e.code, e.release_date]);
(0, R.useEffect)(() => {
if (!o.current || s) return;
let e = new IntersectionObserver((t) => {
@@ -45720,7 +45773,7 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}, { rootMargin: "100px" });
return e.observe(o.current), () => e.disconnect();
}, [s]);
- let h = TS({
+ let h = wS({
queryKey: [
"want-magnets",
e.id,
@@ -45728,15 +45781,15 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
],
queryFn: async ({ signal: t }) => {
let n = p.current, r = await W(`/api/wants/magnets?id=${e.id}${n ? "&refresh=1" : ""}`, t);
- return p.current = n && r.state === "busy", e_e(e.code || "", r), r;
+ return p.current = n && r.state === "busy", n_e(e.code || "", r), r;
},
initialData: m?.result,
initialDataUpdatedAt: m?.saved,
enabled: s,
retry: !1,
- staleTime: (t) => Date.now() - t.state.dataUpdatedAt < (t.state.data?.state === "error" ? 6e4 : mL(e.release_date)) ? Infinity : 0,
+ staleTime: (t) => Date.now() - t.state.dataUpdatedAt < (t.state.data?.state === "error" ? 6e4 : pL(e.release_date)) ? Infinity : 0,
gcTime: 864e5,
- refetchOnMount: (t) => Date.now() - t.state.dataUpdatedAt >= (t.state.data?.state === "error" ? 6e4 : mL(e.release_date)) && "always",
+ refetchOnMount: (t) => Date.now() - t.state.dataUpdatedAt >= (t.state.data?.state === "error" ? 6e4 : pL(e.release_date)) && "always",
refetchOnWindowFocus: !1,
refetchInterval: (e) => e.state.data?.state === "busy" && 3e3
});
@@ -45745,7 +45798,7 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}, [h.data?.source_url, a]);
let g = n?.providers.find((e) => e.key === r && e.configured), _ = (r) => {
t || !n?.available || !g || r.protocol !== "magnet" || d.run(r.id, async (t) => {
- let n = await G(rA, {
+ let n = await G(tA, {
magnet: r.uri,
provider: g.key,
target: g.target,
@@ -45756,7 +45809,7 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
if (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");
return n;
}, (e) => {
- u((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), f.invalidateQueries({ queryKey: iA });
+ u((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), f.invalidateQueries({ queryKey: nA });
});
}, v = (e) => {
d.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -45774,7 +45827,7 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}), /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: jT,
+ leadingIcon: AT,
...X(y),
onClick: () => {
y || (p.current = !0, h.refetch());
@@ -45782,7 +45835,7 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
children: "重新查询"
})]
}),
- y ? /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在查找资源链接…" }) : null,
+ y ? /* @__PURE__ */ (0, B.jsx)(jE, { label: "正在查找资源链接…" }) : null,
b ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "资源链接未取得",
@@ -45811,18 +45864,18 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
className: "flex min-w-0 flex-1 flex-col gap-1",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(DE, {
+ children: [/* @__PURE__ */ (0, B.jsx)(EE, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: /* @__PURE__ */ (0, B.jsxs)("span", {
className: "inline-flex items-center gap-1",
- children: [e.protocol === "magnet" ? /* @__PURE__ */ (0, B.jsx)(hae, {
+ children: [e.protocol === "magnet" ? /* @__PURE__ */ (0, B.jsx)(gae, {
"aria-hidden": !0,
className: "size-3.5"
- }) : e.protocol === "ed2k" ? /* @__PURE__ */ (0, B.jsx)($ie, {
+ }) : e.protocol === "ed2k" ? /* @__PURE__ */ (0, B.jsx)(eae, {
"aria-hidden": !0,
className: "size-3.5"
- }) : /* @__PURE__ */ (0, B.jsx)(kT, {
+ }) : /* @__PURE__ */ (0, B.jsx)(OT, {
"aria-hidden": !0,
className: "size-3.5"
}), e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ed2k" : "网页链接"]
@@ -45834,24 +45887,24 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap gap-x-3 gap-y-1 break-words text-caption-1-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, B.jsx)(gL, {
- icon: kT,
+ /* @__PURE__ */ (0, B.jsx)(hL, {
+ icon: OT,
children: e.source
}),
- /* @__PURE__ */ (0, B.jsx)(gL, {
- icon: DT,
+ /* @__PURE__ */ (0, B.jsx)(hL, {
+ icon: ET,
children: e.size || "大小未知"
}),
- e.files ? /* @__PURE__ */ (0, B.jsx)(gL, {
- icon: eae,
+ e.files ? /* @__PURE__ */ (0, B.jsx)(hL, {
+ icon: tae,
children: e.files.replaceAll("個", "个")
}) : null,
- /* @__PURE__ */ (0, B.jsx)(gL, {
- icon: Yie,
+ /* @__PURE__ */ (0, B.jsx)(hL, {
+ icon: Xie,
children: e.date ? `${e.source === "JavDB 评论" ? "评论" : "收录"} ${e.date}` : "日期未知"
}),
- e.attributes.map((e) => /* @__PURE__ */ (0, B.jsx)(gL, {
- icon: AT,
+ e.attributes.map((e) => /* @__PURE__ */ (0, B.jsx)(hL, {
+ icon: kT,
children: e
}, e))
]
@@ -45859,11 +45912,11 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(kE, {
+ /* @__PURE__ */ (0, B.jsx)(OE, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: TT,
+ trailingIcon: wT,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -45872,7 +45925,7 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
/* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: Qie,
+ leadingIcon: $ie,
...X(d.busy === `copy:${e.id}`),
onClick: () => v(e),
children: "复制链接"
@@ -45880,7 +45933,7 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
e.protocol === "magnet" ? /* @__PURE__ */ (0, B.jsx)(J, {
variant: "primary",
size: "small",
- leadingIcon: xT,
+ leadingIcon: bT,
disabled: t || !n?.available || !g || r,
...X(d.busy === e.id),
onClick: () => _(e),
@@ -45893,7 +45946,7 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, B.jsx)(Gk, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, B.jsx)(Wk, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, B.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -45906,41 +45959,41 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}
//#endregion
//#region src/react/wants/wants.ts
-var _L = "/api/wants", vL = ["wants"], n_e = (e) => [
+var gL = "/api/wants", _L = ["wants"], i_e = (e) => [
"wants",
"follow",
e
-], r_e = [
+], a_e = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], i_e = (e) => W(_L, e), a_e = (e, t) => W(`${_L}?follow=${encodeURIComponent(e)}`, t), yL = (e, t) => G(_L, {
+], o_e = (e) => W(gL, e), s_e = (e, t) => W(`${gL}?follow=${encodeURIComponent(e)}`, t), vL = (e, t) => G(gL, {
action: "add",
...e
-}, "POST", t), bL = (e, t) => G(_L, {
+}, "POST", t), yL = (e, t) => G(gL, {
action: "remove",
ids: e
-}, "POST", t), o_e = (e, t) => G(_L, {
+}, "POST", t), c_e = (e, t) => G(gL, {
action: "reset",
ids: e
-}, "POST", t), xL = () => p.invalidateQueries({ queryKey: vL }), SL = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function s_e(e) {
+}, "POST", t), bL = () => p.invalidateQueries({ queryKey: _L }), xL = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function l_e(e) {
return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";
}
//#endregion
//#region src/react/wants/want-list.tsx
-var c_e = {
+var u_e = {
code: "手动添加",
feed: "Feed 新作",
follow: "关注"
-}, CL = (e) => [
+}, SL = (e) => [
e.release_date,
e.studio,
e.performers,
- c_e[e.origin]
+ u_e[e.origin]
].filter(Boolean).join(" · ");
-function l_e({ want: e }) {
+function d_e({ want: e }) {
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default max-sm:w-24",
children: [/* @__PURE__ */ (0, B.jsx)("span", {
@@ -45956,37 +46009,37 @@ function l_e({ want: e }) {
}) : null]
});
}
-function u_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {
+function f_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {
let [l, u] = (0, R.useState)(""), d = e.link || l || (e.code ? `https://javdb.com/search?q=${encodeURIComponent(e.code)}&f=all` : "");
return /* @__PURE__ */ (0, B.jsxs)("li", {
"data-want-id": e.id,
- className: AE({
+ className: kE({
bordered: "soft",
className: "flex flex-col gap-4 max-sm:p-4"
}),
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 items-start gap-4 max-sm:gap-3",
- children: [/* @__PURE__ */ (0, B.jsx)(l_e, { want: e }), /* @__PURE__ */ (0, B.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, B.jsx)(d_e, { want: e }), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-1",
children: [
/* @__PURE__ */ (0, B.jsxs)("p", {
className: "flex min-w-0 flex-wrap items-baseline gap-x-2",
children: [/* @__PURE__ */ (0, B.jsx)("b", {
className: "text-headline-medium text-text-primary",
- children: SL(e)
+ children: xL(e)
}), e.code && e.title ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "min-w-0 truncate text-body-2-regular text-text-secondary",
children: e.title
}) : null]
}),
- CL(e) ? /* @__PURE__ */ (0, B.jsx)("p", {
+ SL(e) ? /* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: CL(e)
+ children: SL(e)
}) : null,
!e.code || e.phase === "unreleased" || e.phase === "acquired" ? /* @__PURE__ */ (0, B.jsx)("p", {
"data-want-note": "",
className: "text-caption-1-regular text-text-secondary",
- children: s_e(e)
+ children: l_e(e)
}) : null,
e.scrape_error ? /* @__PURE__ */ (0, B.jsxs)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -45995,11 +46048,11 @@ function u_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "mt-1 flex flex-wrap items-center gap-2",
children: [
- d ? /* @__PURE__ */ (0, B.jsx)(kE, {
+ d ? /* @__PURE__ */ (0, B.jsx)(OE, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: TT,
+ trailingIcon: wT,
href: d,
target: "_blank",
rel: "noopener noreferrer",
@@ -46008,7 +46061,7 @@ function u_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
e.phase === "searching" || e.phase === "given_up" ? /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: xT,
+ leadingIcon: bT,
disabled: t,
onClick: a,
children: "云下载"
@@ -46024,7 +46077,7 @@ function u_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
/* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: wT,
+ leadingIcon: CT,
disabled: t,
...X(n === `remove:${e.id}`),
onClick: i,
@@ -46034,7 +46087,7 @@ function u_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
})
]
})]
- }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, B.jsx)(t_e, {
+ }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, B.jsx)(r_e, {
want: e,
readOnly: t,
downloads: o,
@@ -46044,36 +46097,36 @@ function u_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
}) : null]
});
}
-function d_e({ readOnly: e, toast: t, cloudDownload: n }) {
- let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(""), s = IE(), c = TS({
- queryKey: vL,
- queryFn: ({ signal: e }) => i_e(e),
+function p_e({ readOnly: e, toast: t, cloudDownload: n }) {
+ let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(""), s = FE(), c = wS({
+ queryKey: _L,
+ queryFn: ({ signal: e }) => o_e(e),
refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1
}), l = () => {
let n = r.trim();
- !n || e || s.run("add", (e) => yL({ code: n }, e), (e) => {
- t(e.created ? `已加入想要:${SL(e.want)}` : `${SL(e.want)} 已经在想要里`), i(""), xL();
+ !n || e || s.run("add", (e) => vL({ code: n }, e), (e) => {
+ t(e.created ? `已加入想要:${xL(e.want)}` : `${xL(e.want)} 已经在想要里`), i(""), bL();
});
}, u = (e) => {
e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), l());
}, d = (e) => {
- s.run(`remove:${e.id}`, (t) => bL([e.id], t), () => {
- t(`已移除:${SL(e)}`), xL();
+ s.run(`remove:${e.id}`, (t) => yL([e.id], t), () => {
+ t(`已移除:${xL(e)}`), bL();
});
}, f = (e) => {
- s.run(`reset:${e.id}`, (t) => o_e([e.id], t), () => {
- t(`${SL(e)} 回到待找`), xL();
+ s.run(`reset:${e.id}`, (t) => c_e([e.id], t), () => {
+ t(`${xL(e)} 回到待找`), bL();
});
- }, p = c.data, m = p?.items || [], h = TS({
- queryKey: iA,
- queryFn: ({ signal: e }) => W(`${rA}?limit=100`, e),
+ }, p = c.data, m = p?.items || [], h = wS({
+ queryKey: nA,
+ queryFn: ({ signal: e }) => W(`${tA}?limit=100`, e),
enabled: m.some((e) => e.code && (e.phase === "searching" || e.phase === "given_up"))
}), g = h.data?.providers.filter((e) => e.configured) || [], _ = g.find((e) => e.key === a)?.key || g[0]?.key || "";
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-8",
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
- className: AE({
+ className: kE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -46086,7 +46139,7 @@ function d_e({ readOnly: e, toast: t, cloudDownload: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-64 grow max-sm:min-w-0",
- children: /* @__PURE__ */ (0, B.jsx)(Ck, {
+ children: /* @__PURE__ */ (0, B.jsx)(Sk, {
"aria-label": "番号",
placeholder: "输入番号,例如 SSIS-950",
value: r,
@@ -46102,7 +46155,7 @@ function d_e({ readOnly: e, toast: t, cloudDownload: n }) {
children: "添加"
})]
}),
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
s.error ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "这一次没有完成",
@@ -46115,7 +46168,7 @@ function d_e({ readOnly: e, toast: t, cloudDownload: n }) {
title: "想要清单读取失败",
children: U(c.error)
}) : null,
- p?.scraping ? /* @__PURE__ */ (0, B.jsx)(zk, {
+ p?.scraping ? /* @__PURE__ */ (0, B.jsx)(Rk, {
role: "status",
children: "正在给刚加入的番号取资料与封面。"
}) : null,
@@ -46126,16 +46179,16 @@ function d_e({ readOnly: e, toast: t, cloudDownload: n }) {
className: "text-body-medium text-text-primary",
children: "下载到"
}),
- /* @__PURE__ */ (0, B.jsx)(Ok, {
+ /* @__PURE__ */ (0, B.jsx)(Dk, {
"aria-label": "下载到",
selectedKey: _,
onSelectionChange: (e) => o(String(e)),
- children: g.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: g.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {
id: e.key,
children: e.label
}, e.key))
}),
- /* @__PURE__ */ (0, B.jsx)(zk, { children: g.find((e) => e.key === _)?.target || "使用已配置的目标目录" })
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: g.find((e) => e.key === _)?.target || "使用已配置的目标目录" })
]
}) : null,
h.error ? /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -46151,13 +46204,13 @@ function d_e({ readOnly: e, toast: t, cloudDownload: n }) {
tone: "neutral",
children: "云下载只在账本写入端可用。"
}) : null,
- p && !m.length ? /* @__PURE__ */ (0, B.jsx)(jE, {
+ p && !m.length ? /* @__PURE__ */ (0, B.jsx)(AE, {
shell: "plain",
- icon: uae,
+ icon: dae,
title: "还没有想要的作品",
children: "在上面输入番号,或在 Feed 新作卡、关注详情上点「想要」。"
}) : null,
- r_e.map(([r, i]) => {
+ a_e.map(([r, i]) => {
let a = m.filter((e) => e.phase === r);
return a.length ? /* @__PURE__ */ (0, B.jsxs)("section", {
"aria-label": i,
@@ -46171,7 +46224,7 @@ function d_e({ readOnly: e, toast: t, cloudDownload: n }) {
})]
}), /* @__PURE__ */ (0, B.jsx)("ul", {
className: "flex flex-col gap-4",
- children: a.map((r) => /* @__PURE__ */ (0, B.jsx)(u_e, {
+ children: a.map((r) => /* @__PURE__ */ (0, B.jsx)(f_e, {
want: r,
readOnly: e,
busy: s.busy,
@@ -46194,16 +46247,16 @@ function d_e({ readOnly: e, toast: t, cloudDownload: n }) {
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var wL = [
+var CL = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"],
["wants", "JAV 入库"],
["source", "来源和凭证"]
-], TL = (e) => wL.some(([t]) => t === e);
-function EL({ term: e, figure: t, unit: n }) {
+], wL = (e) => CL.some(([t]) => t === e);
+function TL({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: AE({
+ className: kE({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
@@ -46219,23 +46272,23 @@ function EL({ term: e, figure: t, unit: n }) {
})]
});
}
-function f_e(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, R.useState)(TL(e.tab) ? e.tab : "list"), [d, f] = (0, R.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, R.useState)(() => RP(e.sort, e.dir).sort), [h, g] = (0, R.useState)(() => RP(e.sort, e.dir).dir), [_, v] = (0, R.useState)(Cme(e.layout) ? e.layout : "default"), [y, b] = (0, R.useState)(wme(e.pageSize)), [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), C = TS({
+function m_e(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, R.useState)(wL(e.tab) ? e.tab : "list"), [d, f] = (0, R.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, R.useState)(() => LP(e.sort, e.dir).sort), [h, g] = (0, R.useState)(() => LP(e.sort, e.dir).dir), [_, v] = (0, R.useState)(Tme(e.layout) ? e.layout : "default"), [y, b] = (0, R.useState)(Eme(e.pageSize)), [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), C = wS({
+ queryKey: KP,
+ queryFn: ({ signal: e }) => dF(e)
+ }), w = wS({
queryKey: qP,
queryFn: ({ signal: e }) => fF(e)
- }), w = TS({
+ }), T = wS({
queryKey: JP,
- queryFn: ({ signal: e }) => pF(e)
- }), T = TS({
- queryKey: YP,
- queryFn: ({ signal: e }) => vF(e)
+ queryFn: ({ signal: e }) => _F(e)
}), E = C.data || { sources: [] }, D = w.data || {
root: "",
providers: []
}, O = E.sources;
(0, R.useEffect)(() => {
S((e) => {
- let t = Ame(e, O);
+ let t = Mme(e, O);
return t.size === e.size ? e : t;
});
}, [O]);
@@ -46245,10 +46298,10 @@ function f_e(e) {
tab: e.tab ?? l,
page: e.page ?? d,
sort: n === "checked" ? "" : n,
- dir: r === LP[n] ? "" : r
+ dir: r === IP[n] ? "" : r
});
- }, A = cF(O), j = O.filter(eF).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !DF(e)).length, ee = new Set((T.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
- return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [
+ }, A = sF(O), j = O.filter($P).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !EF(e)).length, ee = new Set((T.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
+ return /* @__PURE__ */ (0, B.jsxs)(ME, { children: [
o ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "warning",
title: "本机只能浏览",
@@ -46263,64 +46316,64 @@ function f_e(e) {
children: s
}) : null,
/* @__PURE__ */ (0, B.jsxs)("div", {
- className: lde,
+ className: ude,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, B.jsx)(EL, {
+ /* @__PURE__ */ (0, B.jsx)(TL, {
term: "关注创作者",
figure: A.length,
unit: "位"
}),
- /* @__PURE__ */ (0, B.jsx)(EL, {
+ /* @__PURE__ */ (0, B.jsx)(TL, {
term: "启用来源",
figure: M,
unit: `/ ${O.length}`
}),
- /* @__PURE__ */ (0, B.jsx)(EL, {
+ /* @__PURE__ */ (0, B.jsx)(TL, {
term: "检查失败",
figure: j,
unit: "个来源"
}),
- /* @__PURE__ */ (0, B.jsx)(EL, {
+ /* @__PURE__ */ (0, B.jsx)(TL, {
term: "未看更新",
figure: E.counts?.new || 0,
unit: "条"
}),
- /* @__PURE__ */ (0, B.jsx)(EL, {
+ /* @__PURE__ */ (0, B.jsx)(TL, {
term: "JAV 订阅",
figure: ee,
unit: "位"
}),
- /* @__PURE__ */ (0, B.jsx)(EL, {
+ /* @__PURE__ */ (0, B.jsx)(TL, {
term: "未看新作",
figure: T.data?.unread || 0,
unit: "条"
})
]
}),
- /* @__PURE__ */ (0, B.jsxs)(hk, {
+ /* @__PURE__ */ (0, B.jsxs)(mk, {
selectedKey: l,
onSelectionChange: (e) => {
let t = String(e);
- TL(t) && (u(t), k({ tab: t }));
+ wL(t) && (u(t), k({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, B.jsx)(gk, {
+ /* @__PURE__ */ (0, B.jsx)(hk, {
"aria-label": "关注管理区域",
"data-section-nav": !0,
"data-section-items": !0,
className: "flex max-w-full flex-nowrap overflow-x-auto",
- children: wL.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(_k, {
+ children: CL.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(gk, {
id: e,
className: "cursor-pointer whitespace-nowrap",
children: e === "source" && N ? `${t}(${N})` : t
}, e))
}),
- /* @__PURE__ */ (0, B.jsx)(vk, {
+ /* @__PURE__ */ (0, B.jsx)(_k, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, B.jsx)(Uge, {
+ children: /* @__PURE__ */ (0, B.jsx)(Gge, {
data: E,
sort: p,
dir: h,
@@ -46350,10 +46403,10 @@ function f_e(e) {
}
})
}),
- /* @__PURE__ */ (0, B.jsxs)(vk, {
+ /* @__PURE__ */ (0, B.jsxs)(_k, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, B.jsx)(zhe, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Vhe, {
data: E,
credentials: D,
readOnly: o,
@@ -46361,7 +46414,7 @@ function f_e(e) {
openCredentials: () => {
u("source"), k({ tab: "source" });
}
- }), /* @__PURE__ */ (0, B.jsx)(Hhe, {
+ }), /* @__PURE__ */ (0, B.jsx)(Whe, {
groups: E.author_aliases || [],
readOnly: o,
toast: r,
@@ -46369,27 +46422,27 @@ function f_e(e) {
sources: E.sources
})]
}),
- /* @__PURE__ */ (0, B.jsx)(vk, {
+ /* @__PURE__ */ (0, B.jsx)(_k, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, B.jsx)(Qge, {
+ children: /* @__PURE__ */ (0, B.jsx)(e_e, {
readOnly: o,
toast: r
})
}),
- /* @__PURE__ */ (0, B.jsx)(vk, {
+ /* @__PURE__ */ (0, B.jsx)(_k, {
id: "wants",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, B.jsx)(d_e, {
+ children: /* @__PURE__ */ (0, B.jsx)(p_e, {
readOnly: o,
toast: r,
cloudDownload: a
})
}),
- /* @__PURE__ */ (0, B.jsx)(vk, {
+ /* @__PURE__ */ (0, B.jsx)(_k, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, B.jsx)(Zhe, {
+ children: /* @__PURE__ */ (0, B.jsx)($he, {
data: D,
readOnly: o,
toast: r
@@ -46401,15 +46454,15 @@ function f_e(e) {
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function DL({ value: e }) {
+function EL({ value: e }) {
return /* @__PURE__ */ (0, B.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
children: e.toLocaleString()
});
}
-var p_e = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
-function OL({ tabs: e, value: t, label: n, onChange: r }) {
+var h_e = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
+function DL({ tabs: e, value: t, label: n, onChange: r }) {
let i = (0, R.useRef)(null), a = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
let e = i.current;
@@ -46437,14 +46490,14 @@ function OL({ tabs: e, value: t, label: n, onChange: r }) {
},
className: "relative mb-5.5 flex flex-none gap-1 overflow-x-auto border-b border-border-button-default max-board-narrow:gap-0",
children: [e.map((e) => {
- let n = e.symbol ? wA(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? SA(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
role: "tab",
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: p_e,
+ className: h_e,
onClick: () => {
i || r(e.value);
},
@@ -46460,12 +46513,12 @@ function OL({ tabs: e, value: t, label: n, onChange: r }) {
}
//#endregion
//#region src/react/index/index-tags.tsx
-var kL = () => /* @__PURE__ */ (0, B.jsx)("span", {
+var OL = () => /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
-function m_e({ tag: e, actions: t }) {
+function g_e({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
@@ -46476,7 +46529,7 @@ function m_e({ tag: e, actions: t }) {
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, B.jsx)(kL, {}),
+ /* @__PURE__ */ (0, B.jsx)(OL, {}),
/* @__PURE__ */ (0, B.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -46488,23 +46541,23 @@ function m_e({ tag: e, actions: t }) {
]
});
}
-function h_e({ groups: e, actions: t }) {
+function __e({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, B.jsxs)("section", {
"data-alpha-group": r,
- className: AE({
+ className: kE({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
children: [/* @__PURE__ */ (0, B.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, B.jsx)(DL, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, B.jsx)(EL, { value: n.length })]
}), /* @__PURE__ */ (0, B.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, B.jsx)(m_e, {
+ children: n.map((e) => /* @__PURE__ */ (0, B.jsx)(g_e, {
tag: e,
actions: t
}, e.k))
@@ -46512,8 +46565,8 @@ function h_e({ groups: e, actions: t }) {
}, e))
});
}
-var g_e = "\xA0";
-function __e({ tags: e, actions: t }) {
+var v_e = "\xA0";
+function y_e({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
@@ -46525,7 +46578,7 @@ function __e({ tags: e, actions: t }) {
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex cursor-pointer items-center rounded-lg border px-3 py-1.25 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [e.label + g_e, /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [e.label + v_e, /* @__PURE__ */ (0, B.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
@@ -46533,7 +46586,7 @@ function __e({ tags: e, actions: t }) {
}, e.k))
});
}
-var v_e = [[
+var b_e = [[
"cloud",
"标签云",
"tags"
@@ -46542,16 +46595,16 @@ var v_e = [[
"字母表",
"text-aa"
]];
-function y_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
- return /* @__PURE__ */ (0, B.jsx)(fA, {
+function x_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
+ return /* @__PURE__ */ (0, B.jsx)(uA, {
label: "标签筛选",
topLabel: "标签类型",
- top: e.map(([e, r]) => /* @__PURE__ */ (0, B.jsxs)(pA, {
+ top: e.map(([e, r]) => /* @__PURE__ */ (0, B.jsxs)(dA, {
"data-tag-pill": "",
"data-tag-cat": e === "all" ? "all" : PN(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, B.jsx)(kL, {}), r]
+ children: [/* @__PURE__ */ (0, B.jsx)(OL, {}), r]
}, e)),
bottom: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsx)("span", {
@@ -46570,19 +46623,19 @@ function y_e({ categories: e, category: t, online: n, readout: r, letters: i, vi
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, B.jsx)(BO, {
+ /* @__PURE__ */ (0, B.jsx)(zO, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${xA}`,
- children: v_e.map(([e, t, n]) => {
- let r = wA(n);
- return /* @__PURE__ */ (0, B.jsx)(VO, {
+ className: `ml-auto ${yA}`,
+ children: b_e.map(([e, t, n]) => {
+ let r = SA(n);
+ return /* @__PURE__ */ (0, B.jsx)(BO, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: SA,
+ className: bA,
children: /* @__PURE__ */ (0, B.jsx)("span", {
title: t,
className: "contents",
@@ -46594,13 +46647,13 @@ function y_e({ categories: e, category: t, online: n, readout: r, letters: i, vi
] })
});
}
-function b_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, B.jsxs)(sS, {
+function S_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, B.jsxs)(oS, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e} 个标签`,
children: [
- /* @__PURE__ */ (0, B.jsx)(qM, {
+ /* @__PURE__ */ (0, B.jsx)(KM, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, B.jsxs)("span", {
@@ -46632,7 +46685,7 @@ function b_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/index/index-page.tsx
-var x_e = [{
+var C_e = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -46640,7 +46693,7 @@ var x_e = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], AL = [{
+}], kL = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -46648,7 +46701,7 @@ var x_e = [{
value: "online",
label: "在线",
symbol: "rss"
-}], S_e = {
+}], w_e = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -46668,20 +46721,20 @@ var x_e = [{
"layout-grid"
]]
};
-function C_e({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, B.jsx)(vA, {
- "aria-label": `${CN[e]}索引版式`,
+function T_e({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, B.jsx)(gA, {
+ "aria-label": `${SN[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${yA}`,
- children: S_e[ON(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = wA(n);
- return /* @__PURE__ */ (0, B.jsx)(VO, {
+ className: `flex-none max-board-narrow:order-3 ${_A}`,
+ children: w_e[ON(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = SA(n);
+ return /* @__PURE__ */ (0, B.jsx)(BO, {
value: e,
"aria-label": t,
- className: Xce,
+ className: Qce,
children: /* @__PURE__ */ (0, B.jsx)("span", {
title: t,
className: "contents",
@@ -46691,8 +46744,8 @@ function C_e({ kind: e, layout: t, onChange: n }) {
})
});
}
-var w_e = wA("search");
-function T_e({ label: e, value: t, onQuery: n }) {
+var E_e = SA("search");
+function D_e({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, R.useState)(t), a = (0, R.useRef)(!1), o = (0, R.useRef)(void 0);
(0, R.useEffect)(() => () => clearTimeout(o.current), []);
let s = (e) => {
@@ -46707,15 +46760,15 @@ function T_e({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, B.jsx)(bk, {
+ children: /* @__PURE__ */ (0, B.jsx)(yk, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, B.jsx)(Sk, {
+ children: /* @__PURE__ */ (0, B.jsx)(xk, {
type: "search",
- leadingIcon: w_e,
+ leadingIcon: E_e,
spellCheck: !1,
autoComplete: "off",
onKeyDown: (e) => {
@@ -46725,14 +46778,14 @@ function T_e({ label: e, value: t, onQuery: n }) {
})
});
}
-function E_e(e) {
+function O_e(e) {
let [t, n] = (0, R.useState)(() => kN({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [r, i] = (0, R.useState)(e.layout), [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)("any"), l = (0, R.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = CN[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";
+ })), [r, i] = (0, R.useState)(e.layout), [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)("any"), l = (0, R.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = SN[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";
(0, R.useEffect)(() => {
e.selectMode || o(/* @__PURE__ */ new Set());
}, [e.selectMode]);
@@ -46742,7 +46795,7 @@ function E_e(e) {
...r
};
y(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, x = NN(AN(t)), S = kS({
+ }, x = NN(AN(t)), S = OS({
queryKey: x.queryKey,
queryFn: ({ pageParam: e, signal: t }) => x.queryFn({
pageParam: e,
@@ -46750,22 +46803,22 @@ function E_e(e) {
}),
initialPageParam: 0,
getNextPageParam: x.getNextPageParam,
- placeholderData: v ? AS.keepPreviousData : void 0
- }), C = Ffe(S.data), w = !!S.hasNextPage && !S.isPlaceholderData, T = Ife(C.length, !!S.hasNextPage);
+ placeholderData: v ? kS.keepPreviousData : void 0
+ }), C = Ife(S.data), w = !!S.hasNextPage && !S.isPlaceholderData, T = Lfe(C.length, !!S.hasNextPage);
(0, R.useLayoutEffect)(() => {
l.current && se(l.current);
}, [r]);
let E = (0, R.useMemo)(() => u === "tags" ? C.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [C, u]), D = (0, R.useMemo)(() => u === "tags" && p === "alphabet" ? zfe(E, (t) => e.tagLabel(t)) : [], [
+ })) : [], [C, u]), D = (0, R.useMemo)(() => u === "tags" && p === "alphabet" ? Bfe(E, (t) => e.tagLabel(t)) : [], [
E,
p,
u
]), O = (t) => {
i(t), e.savePreference({ layout: t });
- }, k = u === "tags" ? /* @__PURE__ */ (0, B.jsx)(OL, {
- tabs: AL,
+ }, k = u === "tags" ? /* @__PURE__ */ (0, B.jsx)(DL, {
+ tabs: kL,
value: f,
label: "词表",
onChange: (e) => {
@@ -46775,15 +46828,18 @@ function E_e(e) {
view: e === "online" ? "alphabet" : p
});
}
- }) : u === "performers" ? /* @__PURE__ */ (0, B.jsx)(OL, {
- tabs: AL,
+ }) : u === "performers" ? /* @__PURE__ */ (0, B.jsx)(DL, {
+ tabs: kL,
value: f,
label: "名册",
onChange: (t) => {
- t === "online" && e.exitSelectMode(), b({ scope: t });
+ t === "online" && e.exitSelectMode(), b({
+ scope: t,
+ category: "all"
+ });
}
- }) : ON(u) ? /* @__PURE__ */ (0, B.jsx)(OL, {
- tabs: x_e,
+ }) : ON(u) ? /* @__PURE__ */ (0, B.jsx)(DL, {
+ tabs: C_e,
value: u,
label: "公司类型",
onChange: (e) => b({ kind: e })
@@ -46800,7 +46856,7 @@ function E_e(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
});
- }, j = (g ? TN : wN).filter(([e]) => e === "all" || Number(S.data?.pages[0]?.categories?.[e] || 0) > 0);
+ }, j = (g ? wN : CN).filter(([e]) => e === "all" || Number(S.data?.pages[0]?.categories?.[e] || 0) > 0);
return /* @__PURE__ */ (0, B.jsxs)("div", {
ref: l,
"data-index-page": u,
@@ -46820,7 +46876,7 @@ function E_e(e) {
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: S.isPending ? "" : T
}) : null,
- DN(u) ? /* @__PURE__ */ (0, B.jsx)(C_e, {
+ DN(u) ? /* @__PURE__ */ (0, B.jsx)(T_e, {
kind: u,
layout: r,
onChange: O
@@ -46829,7 +46885,7 @@ function E_e(e) {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, B.jsx)(T_e, {
+ /* @__PURE__ */ (0, B.jsx)(D_e, {
label: `过滤${h}`,
value: d,
onQuery: (e) => {
@@ -46839,7 +46895,18 @@ function E_e(e) {
]
}),
k,
- u === "tags" ? /* @__PURE__ */ (0, B.jsx)(y_e, {
+ (u === "creators" || u === "performers") && f === "local" ? /* @__PURE__ */ (0, B.jsx)("div", {
+ "aria-label": "身份分类",
+ className: "mb-4 flex flex-wrap gap-2",
+ children: TN.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(J, {
+ variant: m === e ? "primary" : "secondary",
+ size: "small",
+ "aria-pressed": m === e,
+ onClick: () => b({ category: e }),
+ children: t
+ }, e))
+ }) : null,
+ u === "tags" ? /* @__PURE__ */ (0, B.jsx)(x_e, {
categories: j,
category: m,
online: g,
@@ -46864,8 +46931,8 @@ function E_e(e) {
mode: p
}) }
});
- if (S.isError) return /* @__PURE__ */ (0, B.jsx)(jE, {
- icon: wA("search"),
+ if (S.isError) return /* @__PURE__ */ (0, B.jsx)(AE, {
+ icon: SA("search"),
title: `没能读取${h}`,
actions: /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
@@ -46874,13 +46941,13 @@ function E_e(e) {
}),
children: Te(S.error)
});
- if (!C.length) return /* @__PURE__ */ (0, B.jsx)(O_e, {
+ if (!C.length) return /* @__PURE__ */ (0, B.jsx)(A_e, {
kind: u,
- filtered: !!d || u === "tags" && m !== "all",
+ filtered: !!d || m !== "all",
online: g || _,
configurable: e.configurable
});
- if (_) return /* @__PURE__ */ (0, B.jsx)(Vfe, {
+ if (_) return /* @__PURE__ */ (0, B.jsx)(Hfe, {
items: C,
layout: r,
props: e
@@ -46896,10 +46963,10 @@ function E_e(e) {
picked: a,
press: A
};
- return p === "alphabet" ? /* @__PURE__ */ (0, B.jsx)(h_e, {
+ return p === "alphabet" ? /* @__PURE__ */ (0, B.jsx)(__e, {
groups: D,
actions: t
- }) : /* @__PURE__ */ (0, B.jsx)(__e, {
+ }) : /* @__PURE__ */ (0, B.jsx)(y_e, {
tags: E,
actions: t
});
@@ -46914,13 +46981,13 @@ function E_e(e) {
disabled: S.isFetchingNextPage,
"aria-busy": S.isFetchingNextPage || void 0,
onClick: () => void S.fetchNextPage(),
- children: S.isFetchingNextPage ? /* @__PURE__ */ (0, B.jsx)(ME, {
+ children: S.isFetchingNextPage ? /* @__PURE__ */ (0, B.jsx)(jE, {
inline: !0,
label: "继续载入中…"
}) : "载入更多"
})
}) : null,
- u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, B.jsx)(b_e, {
+ u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, B.jsx)(S_e, {
count: a.size,
match: s,
onMatch: c,
@@ -46933,31 +47000,31 @@ function E_e(e) {
]
});
}
-var D_e = {
+var k_e = {
tags: "标签",
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所"
};
-function O_e({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, B.jsx)(jE, {
- icon: wA("search"),
+function A_e({ kind: e, filtered: t, online: n, configurable: r }) {
+ if (t) return /* @__PURE__ */ (0, B.jsx)(AE, {
+ icon: SA("search"),
title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, B.jsx)(kE, {
+ actions: /* @__PURE__ */ (0, B.jsx)(OE, {
variant: "primary",
href: "/?loc=&thumb=0",
children: "查看全部内容"
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : D_e[e], a = /* @__PURE__ */ (0, B.jsx)(kE, {
+ let i = n && e === "performers" ? "创作者" : k_e[e], a = /* @__PURE__ */ (0, B.jsx)(OE, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, B.jsx)(jE, {
- icon: wA(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, B.jsx)(AE, {
+ icon: SA(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
actions: n ? a : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [r ? /* @__PURE__ */ (0, B.jsx)(J, {
variant: "primary",
@@ -46967,15 +47034,15 @@ function O_e({ kind: e, filtered: t, online: n, configurable: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var jL = {
+var AL = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, k_e = (e) => jL[e.junk_kind || "other"] || jL.other;
-function A_e(e) {
+}, j_e = (e) => AL[e.junk_kind || "other"] || AL.other;
+function M_e(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -46986,21 +47053,21 @@ function A_e(e) {
glyph: "check"
};
}
-var ML = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), j_e = (e, t) => [
+var jL = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), N_e = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function M_e({ kind: e, view: t }) {
+function P_e({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function N_e(e, t) {
- let n = await W(`/api/ads?${M_e(e)}`, t);
+async function F_e(e, t) {
+ let n = await W(`/api/ads?${P_e(e)}`, t);
return {
...n,
items: n.items || []
@@ -47008,19 +47075,19 @@ async function N_e(e, t) {
}
//#endregion
//#region src/react/junk-queue/junk-card.tsx
-function NL({ name: e }) {
+function ML({ name: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
}
-var PL = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function P_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
- let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), d = e.junk_kind || "other", [f, p] = k_e(e), m = String(e.name || ""), h = A_e(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
- t.target.closest("[data-junk-actions]") || PL(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
+var NL = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function I_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
+ let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), d = e.junk_kind || "other", [f, p] = j_e(e), m = String(e.name || ""), h = M_e(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
+ t.target.closest("[data-junk-actions]") || NL(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
- if (t.stopPropagation(), PL(r, t)) {
+ if (t.stopPropagation(), NL(r, t)) {
t.preventDefault(), a.toggleSelection(e.id, t.shiftKey);
return;
}
@@ -47062,7 +47129,7 @@ function P_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [
/* @__PURE__ */ (0, B.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, B.jsx)(NL, { name: p }), /* @__PURE__ */ (0, B.jsx)("b", { children: f })]
+ children: [/* @__PURE__ */ (0, B.jsx)(ML, { name: p }), /* @__PURE__ */ (0, B.jsx)("b", { children: f })]
}),
g ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-media-art": "thumb",
@@ -47074,7 +47141,7 @@ function P_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
}),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, B.jsx)(NL, { name: "check" })
+ children: /* @__PURE__ */ (0, B.jsx)(ML, { name: "check" })
})
]
}),
@@ -47111,7 +47178,7 @@ function P_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [s === "reveal" ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: Qe("正在定位") }
- }) : /* @__PURE__ */ (0, B.jsx)(NL, { name: "folder-open" }), /* @__PURE__ */ (0, B.jsx)("span", {
+ }) : /* @__PURE__ */ (0, B.jsx)(ML, { name: "folder-open" }), /* @__PURE__ */ (0, B.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -47123,7 +47190,7 @@ function P_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": h.label,
...S(h.operation),
onClick: x(h.operation),
- children: [/* @__PURE__ */ (0, B.jsx)(NL, { name: h.glyph }), /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [/* @__PURE__ */ (0, B.jsx)(ML, { name: h.glyph }), /* @__PURE__ */ (0, B.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
@@ -47135,7 +47202,7 @@ function P_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": "移入回收站",
...S("dispose"),
onClick: x("dispose"),
- children: [/* @__PURE__ */ (0, B.jsx)(NL, { name: "trash" }), /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [/* @__PURE__ */ (0, B.jsx)(ML, { name: "trash" }), /* @__PURE__ */ (0, B.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -47150,7 +47217,7 @@ function P_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var F_e = (0, R.memo)(P_e), FL = [
+var L_e = (0, R.memo)(I_e), PL = [
[
"",
"全部",
@@ -47187,53 +47254,53 @@ var F_e = (0, R.memo)(P_e), FL = [
"hard-drive"
]
];
-function IL(e = "", t = "pending") {
+function FL(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function I_e(e) {
+function R_e(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: IL("", "pending")
+ href: FL("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: IL("", "dismissed")
+ href: FL("", "dismissed")
};
}
-var L_e = (e) => e === "dismissed" ? "已排除" : "待判断";
+var z_e = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
//#region src/react/junk-queue/junk-count.tsx
-function LL({ name: e }) {
+function IL({ name: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
}
-function RL({ scope: e, count: t }) {
+function LL({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [" ", /* @__PURE__ */ (0, B.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function R_e({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = FM(), a = (0, R.useRef)(null), { kind: o, view: s } = e, c = hA(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? FL.map(([e]) => ML(t, e)).join(",") : ""}`), l = I_e(s), u = (e) => {
+function B_e({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = PM(), a = (0, R.useRef)(null), { kind: o, view: s } = e, c = pA(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? PL.map(([e]) => jL(t, e)).join(",") : ""}`), l = R_e(s), u = (e) => {
let t = e.target.closest("a");
- !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || IL()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || FL()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, B.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, B.jsx)(DP, {
- label: L_e(s),
+ children: /* @__PURE__ */ (0, B.jsx)(EP, {
+ label: z_e(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -47253,17 +47320,17 @@ function R_e({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- FL.map(([e, n, r]) => /* @__PURE__ */ (0, B.jsxs)("a", {
- href: IL(e, s),
+ PL.map(([e, n, r]) => /* @__PURE__ */ (0, B.jsxs)("a", {
+ href: FL(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, B.jsx)(LL, { name: r }),
+ /* @__PURE__ */ (0, B.jsx)(IL, { name: r }),
n,
- /* @__PURE__ */ (0, B.jsx)(RL, {
+ /* @__PURE__ */ (0, B.jsx)(LL, {
scope: e,
- count: t ? ML(t, e) : 0
+ count: t ? jL(t, e) : 0
})
]
}, e || "all")),
@@ -47277,9 +47344,9 @@ function R_e({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-current": s === "dismissed" ? "page" : void 0,
onPointerEnter: s === "dismissed" ? void 0 : c.hover,
children: [
- /* @__PURE__ */ (0, B.jsx)(LL, { name: l.glyph }),
+ /* @__PURE__ */ (0, B.jsx)(IL, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, B.jsx)(RL, {
+ /* @__PURE__ */ (0, B.jsx)(LL, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -47292,33 +47359,33 @@ function R_e({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var z_e = wA("check"), B_e = (e, t) => e[1] === t.view && e[2] === t.kind;
-function V_e(e) {
+var V_e = SA("check"), H_e = (e, t) => e[1] === t.view && e[2] === t.kind;
+function U_e(e) {
let t = {
kind: e.kind,
view: e.view
- }, n = TS({
- queryKey: j_e(t, e.revision),
- queryFn: ({ signal: e }) => N_e(t, e),
- placeholderData: (e, n) => n && B_e(n.queryKey, t) ? e : void 0
+ }, n = wS({
+ queryKey: N_e(t, e.revision),
+ queryFn: ({ signal: e }) => F_e(t, e),
+ placeholderData: (e, n) => n && H_e(n.queryKey, t) ? e : void 0
});
(0, R.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = H_e(e.countRow), i = n.isPending;
+ let r = W_e(e.countRow), i = n.isPending;
(0, R.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, R.useLayoutEffect)(() => {
r && n.data && Ue(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(R_e, {
+ let { navigate: a } = e.actions, o = r ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(B_e, {
route: t,
page: n.data,
failed: n.isError && !n.data,
onNavigate: a
}), r) : null;
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [o, /* @__PURE__ */ (0, B.jsx)(U_e, {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [o, /* @__PURE__ */ (0, B.jsx)(G_e, {
props: e,
data: n.data,
pending: i,
@@ -47326,7 +47393,7 @@ function V_e(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function H_e(e) {
+function W_e(e) {
let [t, n] = (0, R.useState)(null);
return (0, R.useLayoutEffect)(() => {
if (!e) return;
@@ -47336,8 +47403,8 @@ function H_e(e) {
};
}, [e]), t;
}
-function U_e({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = NA(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, R.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, R.useCallback)(() => {
+function G_e({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = jA(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, R.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, R.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -47345,14 +47412,14 @@ function U_e({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-grid-reveal": a.fading ? "" : void 0,
children: [a.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, B.jsx)(PA, {
+ if (!t) return /* @__PURE__ */ (0, B.jsx)(MA, {
message: Te(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, B.jsx)(jE, {
- icon: z_e,
+ return /* @__PURE__ */ (0, B.jsx)(AE, {
+ icon: V_e,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
});
@@ -47361,7 +47428,7 @@ function U_e({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, B.jsx)(F_e, {
+ children: u.map((t) => /* @__PURE__ */ (0, B.jsx)(L_e, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -47369,11 +47436,11 @@ function U_e({ props: e, data: t, pending: n, error: r, retry: i }) {
helpers: e.helpers,
actions: e.actions
}, t.id))
- }), u.length < l.length ? /* @__PURE__ */ (0, B.jsx)(W_e, { onMore: f }, s) : null] });
+ }), u.length < l.length ? /* @__PURE__ */ (0, B.jsx)(K_e, { onMore: f }, s) : null] });
})()]
});
}
-function W_e({ onMore: e }) {
+function K_e({ onMore: e }) {
let t = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
let n = t.current;
@@ -47391,12 +47458,12 @@ function W_e({ onMore: e }) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var zL = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", G_e = {
- gray: `${zL} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${zL} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${zL} border-current/35 bg-background-tertiary-error text-text-error-primary`
+var RL = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", q_e = {
+ gray: `${RL} border-separator-border bg-background-secondary-default text-text-secondary`,
+ warning: `${RL} border-current/35 bg-status-yellow-background text-status-yellow-text`,
+ error: `${RL} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
-function K_e({ value: e, max: t }) {
+function J_e({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, B.jsxs)("svg", {
role: "progressbar",
@@ -47424,16 +47491,16 @@ function K_e({ value: e, max: t }) {
})]
});
}
-function q_e(e) {
- let { job: t } = BM(e), n = t.data, r = t.isError ? n ? ij : U(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+function Y_e(e) {
+ let { job: t } = zM(e), n = t.data, r = t.isError ? n ? nj : U(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
if (!r && !o && !a) return null;
- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : oj(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? oae : Zie;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : ij(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? sae : Qie;
return /* @__PURE__ */ (0, B.jsxs)("aside", {
role: a ? "alert" : "status",
- className: G_e[s],
+ className: q_e[s],
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, B.jsx)(K_e, {
+ children: [o && l ? /* @__PURE__ */ (0, B.jsx)(J_e, {
value: c,
max: l
}) : /* @__PURE__ */ (0, B.jsx)(d, {
@@ -47443,42 +47510,42 @@ function q_e(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, B.jsx)(Pk, {
+ }), /* @__PURE__ */ (0, B.jsx)(Nk, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: gT,
+ trailingIcon: hT,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region src/react/playlists/playlists.ts
-var J_e = "/api/playlists", BL = "/api/playlist", VL = ["playlists"], HL = (e) => W(J_e, e);
-async function Y_e(e) {
+var X_e = "/api/playlists", zL = "/api/playlist", BL = ["playlists"], VL = (e) => W(X_e, e);
+async function Z_e(e) {
await p.fetchQuery({
- queryKey: VL,
- queryFn: () => HL(e),
+ queryKey: BL,
+ queryFn: () => VL(e),
staleTime: 0
});
}
-var UL = () => p.invalidateQueries({
- queryKey: VL,
+var HL = () => p.invalidateQueries({
+ queryKey: BL,
exact: !0
-}), X_e = (e) => e.current_asset_id || e.preview_asset_id || null, WL = (e) => `/poster?id=${e}&c=4`, Z_e = (e) => G(BL, {
+}), Q_e = (e) => e.current_asset_id || e.preview_asset_id || null, UL = (e) => `/poster?id=${e}&c=4`, $_e = (e) => G(zL, {
action: "create",
name: e,
asset_ids: []
-}), GL = (e, t) => G(BL, {
+}), WL = (e, t) => G(zL, {
action: "rename",
id: e,
name: t
-}), KL = (e) => G(BL, {
+}), GL = (e) => G(zL, {
action: "delete",
id: e
-}), Q_e = (e) => W(`${BL}?id=${e}`).catch(() => null);
-function $_e(e) {
+}), eve = (e) => W(`${zL}?id=${e}`).catch(() => null);
+function tve(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return G(BL, {
+ return G(zL, {
action: "create",
name: e.name,
asset_ids: t,
@@ -47488,18 +47555,18 @@ function $_e(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var eve = wA("ellipsis"), tve = wA("pencil"), nve = wA("trash"), rve = wA("playlist"), qL = wE(Tk, Ek, "text-body-2-medium"), JL = "播放列表名称不能为空", YL = (e) => async () => {
+var nve = SA("ellipsis"), rve = SA("pencil"), ive = SA("trash"), ave = SA("playlist"), KL = CE(wk, Tk, "text-body-2-medium"), qL = "播放列表名称不能为空", JL = (e) => async () => {
try {
await e();
} finally {
- UL();
+ HL();
}
};
-function ive({ toast: e }) {
- let [t, n] = (0, R.useState)(""), [r, i] = (0, R.useState)(""), a = OS({
- mutationFn: (e) => Z_e(e),
+function ove({ toast: e }) {
+ let [t, n] = (0, R.useState)(""), [r, i] = (0, R.useState)(""), a = DS({
+ mutationFn: (e) => $_e(e),
onSuccess: (t) => {
- n(""), i(""), UL(), e("已新建播放列表", { undo: YL(() => KL(t.playlist.id)) });
+ n(""), i(""), HL(), e("已新建播放列表", { undo: JL(() => GL(t.playlist.id)) });
},
onError: (e) => i(U(e) || "新建失败")
});
@@ -47509,7 +47576,7 @@ function ive({ toast: e }) {
onSubmit: (e) => {
if (e.preventDefault(), !a.isPending) {
if (!t.trim()) {
- i(JL);
+ i(qL);
return;
}
a.mutate(t);
@@ -47518,7 +47585,7 @@ function ive({ toast: e }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none",
- children: /* @__PURE__ */ (0, B.jsx)(Ck, {
+ children: /* @__PURE__ */ (0, B.jsx)(Sk, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@ -47537,7 +47604,7 @@ function ive({ toast: e }) {
})]
});
}
-function ave({ target: e, close: t, toast: n }) {
+function sve({ target: e, close: t, toast: n }) {
let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(""), s = (0, R.useRef)(null);
(0, R.useEffect)(() => {
if (!e) return;
@@ -47547,10 +47614,10 @@ function ave({ target: e, close: t, toast: n }) {
});
return () => cancelAnimationFrame(t);
}, [e]);
- let c = OS({
- mutationFn: ({ row: e, value: t }) => GL(e.id, t),
+ let c = DS({
+ mutationFn: ({ row: e, value: t }) => WL(e.id, t),
onSuccess: (e, { row: r }) => {
- t(), UL(), n("已重命名播放列表", { undo: YL(() => GL(r.id, r.name)) });
+ t(), HL(), n("已重命名播放列表", { undo: JL(() => WL(r.id, r.name)) });
},
onError: (e) => o(U(e))
});
@@ -47566,7 +47633,7 @@ function ave({ target: e, close: t, toast: n }) {
if (t.preventDefault(), !e || c.isPending) return;
let n = r.trim();
if (!n) {
- o(JL);
+ o(qL);
return;
}
c.mutate({
@@ -47577,11 +47644,11 @@ function ave({ target: e, close: t, toast: n }) {
className: "flex min-h-0 flex-col",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-4 p-5",
- children: [/* @__PURE__ */ (0, B.jsx)(rD, {
+ children: [/* @__PURE__ */ (0, B.jsx)(nD, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, B.jsx)(Ck, {
+ }), /* @__PURE__ */ (0, B.jsx)(Sk, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@ -47609,7 +47676,7 @@ function ave({ target: e, close: t, toast: n }) {
})
});
}
-function ove({ name: e, onRename: t, onDelete: n }) {
+function cve({ name: e, onRename: t, onDelete: n }) {
let r = (0, R.useRef)(null), [i, a] = (0, R.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -47623,33 +47690,33 @@ function ove({ name: e, onRename: t, onDelete: n }) {
"data-playlist-menu": "",
onClick: () => a(!0),
className: "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-2lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary aria-expanded:bg-background-primary-hover aria-expanded:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, B.jsx)(eve, {
+ children: /* @__PURE__ */ (0, B.jsx)(nve, {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, B.jsx)(SO, {
+ }), /* @__PURE__ */ (0, B.jsx)(xO, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: wk,
- children: /* @__PURE__ */ (0, B.jsxs)(kM, {
+ className: Ck,
+ children: /* @__PURE__ */ (0, B.jsxs)(OM, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
- className: qL,
+ className: KL,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, B.jsx)(tve, {
+ children: [/* @__PURE__ */ (0, B.jsx)(rve, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "编辑名称"]
}), /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
- className: qL,
+ className: KL,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, B.jsx)(nve, {
+ children: [/* @__PURE__ */ (0, B.jsx)(ive, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "删除播放列表"]
@@ -47657,13 +47724,13 @@ function ove({ name: e, onRename: t, onDelete: n }) {
})
})] });
}
-function sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
- let a = TS({
- queryKey: VL,
- queryFn: ({ signal: e }) => HL(e)
+function lve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
+ let a = wS({
+ queryKey: BL,
+ queryFn: ({ signal: e }) => VL(e)
}), [o, s] = (0, R.useState)(null), c = (0, R.useRef)(i);
(0, R.useEffect)(() => {
- c.current !== i && (c.current = i, UL());
+ c.current !== i && (c.current = i, HL());
}, [i]);
let l = a.data;
if (!l) return /* @__PURE__ */ (0, B.jsx)("div", {
@@ -47681,8 +47748,8 @@ function sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
confirmLabel: "删除播放列表",
danger: !0,
onConfirm: async () => {
- let t = await Q_e(e.id);
- await KL(e.id), UL(), r("已删除播放列表", t ? { undo: YL(() => $_e(t)) } : void 0);
+ let t = await eve(e.id);
+ await GL(e.id), HL(), r("已删除播放列表", t ? { undo: JL(() => tve(t)) } : void 0);
}
});
};
@@ -47697,38 +47764,38 @@ function sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
}), /* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "保存 Mix,按自己的顺序继续播放。"
- })] }), /* @__PURE__ */ (0, B.jsx)(ive, { toast: r })]
+ })] }), /* @__PURE__ */ (0, B.jsx)(ove, { toast: r })]
}),
u.length ? /* @__PURE__ */ (0, B.jsx)("div", {
"data-playlist-grid": "",
className: "card-grid-cover gap-4.5",
children: u.map((r) => {
- let i = X_e(r);
- return /* @__PURE__ */ (0, B.jsx)(UA, {
+ let i = Q_e(r);
+ return /* @__PURE__ */ (0, B.jsx)(VA, {
"data-playlist-card": String(r.id),
name: r.name,
caption: r.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
count: r.item_count,
- poster: r.preview_asset_id ? WL(r.preview_asset_id) : null,
- flipImages: async () => (r.preview_ids || []).map(WL),
+ poster: r.preview_asset_id ? UL(r.preview_asset_id) : null,
+ flipImages: async () => (r.preview_ids || []).map(UL),
canFlip: n,
faces: r.faces || [],
onOpenEntity: t,
...i ? { onOpen: () => e(r.id, i) } : {},
openLabel: `打开播放列表 ${r.name}`,
- menu: /* @__PURE__ */ (0, B.jsx)(ove, {
+ menu: /* @__PURE__ */ (0, B.jsx)(cve, {
name: r.name,
onRename: () => s(r),
onDelete: () => d(r)
})
}, r.id);
})
- }) : /* @__PURE__ */ (0, B.jsx)(jE, {
- icon: rve,
+ }) : /* @__PURE__ */ (0, B.jsx)(AE, {
+ icon: ave,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
}),
- /* @__PURE__ */ (0, B.jsx)(ave, {
+ /* @__PURE__ */ (0, B.jsx)(sve, {
target: o,
close: () => s(null),
toast: r
@@ -47738,11 +47805,11 @@ function sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
}
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function cve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
+function uve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
let o = () => t(e.id);
return /* @__PURE__ */ (0, B.jsxs)("li", {
"data-goal-id": e.id,
- className: AE({
+ className: kE({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
@@ -47758,7 +47825,7 @@ function cve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
}), /* @__PURE__ */ (0, B.jsx)("img", {
- src: tue(e),
+ src: eue(e),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -47816,38 +47883,38 @@ function cve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
})]
});
}
-function lve(e) {
- let t = TS({
- queryKey: mj,
- queryFn: ({ signal: e }) => hj(e)
+function dve(e) {
+ let t = wS({
+ queryKey: hj,
+ queryFn: ({ signal: e }) => gj(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, B.jsx)(ME, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "高清版目标读取失败",
children: t.error ? U(t.error) : "未取得高清版目标,请刷新页面重试。"
}) });
let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, B.jsxs)(NE, { children: [/* @__PURE__ */ (0, B.jsx)(DP, {
+ return r.length ? /* @__PURE__ */ (0, B.jsxs)(ME, { children: [/* @__PURE__ */ (0, B.jsx)(EP, {
label: "待升级",
figure: `${n.total} 部作品`,
flush: !0
}), /* @__PURE__ */ (0, B.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, B.jsx)(cve, {
+ children: r.map((t) => /* @__PURE__ */ (0, B.jsx)(uve, {
item: t,
...e
}, t.id))
- })] }) : /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(jE, {
+ })] }) : /* @__PURE__ */ (0, B.jsx)(ME, { children: /* @__PURE__ */ (0, B.jsx)(AE, {
shell: "plain",
- icon: gae,
+ icon: _ae,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-function uve(e) {
- let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = fue(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
+function fve(e) {
+ let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = due(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
@@ -47855,29 +47922,29 @@ function uve(e) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, B.jsx)(Ok, {
+ /* @__PURE__ */ (0, B.jsx)(Dk, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Ok, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, B.jsxs)(Ok, {
+ i.length > 1 ? /* @__PURE__ */ (0, B.jsxs)(Dk, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, B.jsx)(kk, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Ok, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ }), i.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@ -47885,7 +47952,7 @@ function uve(e) {
/* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: yT,
+ leadingIcon: vT,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -47896,12 +47963,12 @@ function uve(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), /* @__PURE__ */ (0, B.jsxs)(sS, {
+ }), /* @__PURE__ */ (0, B.jsxs)(oS, {
label: "复核所选项目",
visible: c.size > 0,
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, B.jsxs)(Ok, {
+ b ? /* @__PURE__ */ (0, B.jsxs)(Dk, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -47909,10 +47976,10 @@ function uve(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, B.jsx)(kk, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Ok, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ }), y.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {
id: e,
children: e
}, e))]
@@ -47948,7 +48015,7 @@ function uve(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var dve = {
+var pve = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -47958,14 +48025,14 @@ var dve = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, XL = "reviewgenretags";
-function fve({ tags: e }) {
+}, YL = "reviewgenretags";
+function mve({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, B.jsx)("datalist", {
- id: XL,
+ id: YL,
children: e.map((e) => /* @__PURE__ */ (0, B.jsx)("option", { value: e }, e))
}) : null;
}
-function ZL({ candidate: e, selectable: t = !1 }) {
+function XL({ candidate: e, selectable: t = !1 }) {
let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
@@ -48002,7 +48069,7 @@ function ZL({ candidate: e, selectable: t = !1 }) {
children: [
/* @__PURE__ */ (0, B.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: dve[e] || e
+ children: pve[e] || e
}),
/* @__PURE__ */ (0, B.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
@@ -48017,36 +48084,36 @@ function ZL({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function pve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function hve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, B.jsx)(ZL, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, B.jsx)(BO, {
+ children: /* @__PURE__ */ (0, B.jsx)(XL, { candidate: a[0] })
+ }) : /* @__PURE__ */ (0, B.jsx)(zO, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, B.jsx)(VO, {
+ children: a.map((e) => /* @__PURE__ */ (0, B.jsx)(BO, {
value: e.candidate_key,
className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",
- children: /* @__PURE__ */ (0, B.jsx)(ZL, {
+ children: /* @__PURE__ */ (0, B.jsx)(XL, {
candidate: e,
selectable: !0
})
}, e.candidate_key))
}) : null;
}
-function mve({ genre: e, tags: t, locked: n, toast: r }) {
- let [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), c = OS({
- mutationFn: (t) => Aj(e, t),
+function gve({ genre: e, tags: t, locked: n, toast: r }) {
+ let [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), c = DS({
+ mutationFn: (t) => yue(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
s(t.error || "服务端拒绝了这次收录");
return;
}
- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await bue();
+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await xue();
},
onError: (e) => s(U(e))
}), l = () => {
@@ -48065,16 +48132,16 @@ function mve({ genre: e, tags: t, locked: n, toast: r }) {
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, B.jsx)(bk, {
+ /* @__PURE__ */ (0, B.jsx)(yk, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, B.jsx)(Sk, {
+ children: /* @__PURE__ */ (0, B.jsx)(xk, {
size: "small",
- list: t.length ? XL : void 0,
+ list: t.length ? YL : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -48106,8 +48173,8 @@ function mve({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function hve({ row: e, tags: t, locked: n, toast: r }) {
- let i = _ue(e);
+function _ve({ row: e, tags: t, locked: n, toast: r }) {
+ let i = gue(e);
return i.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
@@ -48115,7 +48182,7 @@ function hve({ row: e, tags: t, locked: n, toast: r }) {
children: [/* @__PURE__ */ (0, B.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, B.jsx)(mve, {
+ }), i.map((e) => /* @__PURE__ */ (0, B.jsx)(gve, {
genre: e,
tags: t,
locked: n,
@@ -48125,9 +48192,9 @@ function hve({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var QL = (e = "") => /^https?:\/\//i.test(e) ? e : "", gve = (e = "") => QL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function $L({ url: e }) {
- let t = gve(e || ""), [n, r] = (0, R.useState)(!1);
+var ZL = (e = "") => /^https?:\/\//i.test(e) ? e : "", vve = (e = "") => ZL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+function QL({ url: e }) {
+ let t = vve(e || ""), [n, r] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
children: t && !n ? /* @__PURE__ */ (0, B.jsx)("img", {
@@ -48142,7 +48209,7 @@ function $L({ url: e }) {
})
});
}
-function eR({ asset: e, openItem: t }) {
+function $L({ asset: e, openItem: t }) {
let n = e.name || "";
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
@@ -48158,7 +48225,7 @@ function eR({ asset: e, openItem: t }) {
}) : /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "无封面"
- }), /* @__PURE__ */ (0, B.jsx)(q_, { children: `打开原视频 ${n}` })]
+ }), /* @__PURE__ */ (0, B.jsx)(J_, { children: `打开原视频 ${n}` })]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-1",
children: [/* @__PURE__ */ (0, B.jsx)("b", {
@@ -48168,21 +48235,21 @@ function eR({ asset: e, openItem: t }) {
}), /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: lae,
+ leadingIcon: uae,
onClick: () => t(e.id),
children: "打开原视频"
})]
})]
});
}
-function _ve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+function yve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"aria-label": `打开创作者页:${t}`,
onClick: () => i(e, t),
- className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${oL}`,
+ className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${aL}`,
dangerouslySetInnerHTML: { __html: r }
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
@@ -48198,8 +48265,8 @@ function _ve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
})]
});
}
-function vve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = QL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+function bve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
+ let o = ZL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, B.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
@@ -48209,10 +48276,10 @@ function vve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [o ? /* @__PURE__ */ (0, B.jsx)(kE, {
+ children: [o ? /* @__PURE__ */ (0, B.jsx)(OE, {
variant: "secondary",
size: "small",
- trailingIcon: TT,
+ trailingIcon: wT,
href: o,
target: "_blank",
rel: "noopener noreferrer",
@@ -48224,7 +48291,7 @@ function vve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, B.jsx)($L, { url: e.preview_url }),
+ /* @__PURE__ */ (0, B.jsx)(QL, { url: e.preview_url }),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
@@ -48267,7 +48334,7 @@ function vve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
]
});
}
-function yve({ assets: e, picked: t, onPicked: n, locked: r }) {
+function xve({ assets: e, picked: t, onPicked: n, locked: r }) {
let [i, a] = (0, R.useState)(null), o = new Set(t), s = (t, s) => {
if (r) return;
let c = new Set(o);
@@ -48323,7 +48390,7 @@ function yve({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, B.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, B.jsx)(KM, {
+ children: /* @__PURE__ */ (0, B.jsx)(GM, {
size: "sm",
state: {
isSelected: n,
@@ -48334,7 +48401,7 @@ function yve({ assets: e, picked: t, onPicked: n, locked: r }) {
}
})
}),
- /* @__PURE__ */ (0, B.jsx)(q_, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
+ /* @__PURE__ */ (0, B.jsx)(J_, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
]
}, e.id);
})
@@ -48343,19 +48410,19 @@ function yve({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var bve = AE({
+var Sve = kE({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), tR = "flex min-h-6 min-w-0 items-center", xve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function Sve(e) {
- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, R.useRef)(!1), m = FM(), h = FM(), g = t === "metadata_fields", _ = cue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = mue(t, n), x = Ej(t, n), S = Tj(t, n), C = hue(n), w = gue(n), T = wj(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", A = E.length > 1 ? /* @__PURE__ */ (0, B.jsx)("div", {
+}), eR = "flex min-h-6 min-w-0 items-center", Cve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+function wve(e) {
+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, R.useRef)(!1), m = PM(), h = PM(), g = t === "metadata_fields", _ = sue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = pue(t, n), x = Dj(t, n), S = Ej(t, n), C = mue(n), w = hue(n), T = Tj(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", A = E.length > 1 ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex flex-col gap-3",
- children: E.map((e) => /* @__PURE__ */ (0, B.jsx)(eR, {
+ children: E.map((e) => /* @__PURE__ */ (0, B.jsx)($L, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : y ? /* @__PURE__ */ (0, B.jsx)(_ve, {
+ }) : y ? /* @__PURE__ */ (0, B.jsx)(yve, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -48366,14 +48433,14 @@ function Sve(e) {
image_version: n.image_version,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, B.jsx)(eR, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, B.jsx)($L, {
openItem: f.openItem,
asset: {
id: n.asset_id,
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, j = g ? /* @__PURE__ */ (0, B.jsx)(pve, {
+ }) : null, j = g ? /* @__PURE__ */ (0, B.jsx)(hve, {
row: n,
fieldName: x,
value: r.candidateKey,
@@ -48382,7 +48449,7 @@ function Sve(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, B.jsx)(yve, {
+ }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, B.jsx)(xve, {
assets: D,
picked: r.assets,
locked: s,
@@ -48390,21 +48457,21 @@ function Sve(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, B.jsx)(jE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(AE, {
shell: "inset",
- icon: iae,
+ icon: aae,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, B.jsx)(vve, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, B.jsx)(bve, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, B.jsx)($L, { url: n.preview_url }), M = y ? A : x ? /* @__PURE__ */ (0, B.jsxs)("h4", {
- className: `${tR} flex-wrap gap-2`,
- children: [/* @__PURE__ */ (0, B.jsx)(DE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(QL, { url: n.preview_url }), M = y ? A : x ? /* @__PURE__ */ (0, B.jsxs)("h4", {
+ className: `${eR} flex-wrap gap-2`,
+ children: [/* @__PURE__ */ (0, B.jsx)(EE, {
variant: "caption",
color: "blue",
children: x
@@ -48414,7 +48481,7 @@ function Sve(e) {
children: S
})]
}) : /* @__PURE__ */ (0, B.jsx)("h4", {
- className: tR,
+ className: eR,
children: /* @__PURE__ */ (0, B.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
@@ -48424,20 +48491,20 @@ function Sve(e) {
return /* @__PURE__ */ (0, B.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
- className: `${bve} ${xve(t)} overflow-hidden`,
+ className: `${Sve} ${Cve(t)} overflow-hidden`,
children: [
/* @__PURE__ */ (0, B.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
s ? null : /* @__PURE__ */ (0, B.jsx)("span", {
- className: `${tR} shrink-0`,
+ className: `${eR} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, B.jsx)(qM, {
+ children: /* @__PURE__ */ (0, B.jsx)(KM, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@ -48447,7 +48514,7 @@ function Sve(e) {
className: "min-w-0 flex-1",
children: M
}),
- O ? /* @__PURE__ */ (0, B.jsx)(DE, {
+ O ? /* @__PURE__ */ (0, B.jsx)(EE, {
variant: "caption",
color: "neutral",
children: n.decision
@@ -48471,7 +48538,7 @@ function Sve(e) {
!y && A ? A : null,
w.length || t === "creator_tags" ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex flex-wrap gap-1",
- children: w.length ? w.map((e) => /* @__PURE__ */ (0, B.jsx)(DE, {
+ children: w.length ? w.map((e) => /* @__PURE__ */ (0, B.jsx)(EE, {
variant: "caption",
color: "soft",
children: e
@@ -48481,7 +48548,7 @@ function Sve(e) {
})
}) : null,
j,
- /* @__PURE__ */ (0, B.jsx)(hve, {
+ /* @__PURE__ */ (0, B.jsx)(_ve, {
row: n,
tags: u,
locked: s,
@@ -48543,8 +48610,8 @@ function Sve(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var Cve = "flex cursor-pointer items-center justify-between gap-2";
-function wve({ page: e, pages: t, onPage: n }) {
+var Tve = "flex cursor-pointer items-center justify-between gap-2";
+function Eve({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, B.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
@@ -48558,7 +48625,7 @@ function wve({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, B.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: gj(e, t).map((t, r) => /* @__PURE__ */ (0, B.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, B.jsx)("span", {
+ children: _j(e, t).map((t, r) => /* @__PURE__ */ (0, B.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -48581,48 +48648,48 @@ function wve({ page: e, pages: t, onPage: n }) {
]
});
}
-function Tve(e) {
+function Dve(e) {
let [t, n] = (0, R.useState)(() => matchMedia("(max-width:900px)").matches);
(0, R.useEffect)(() => {
let e = matchMedia("(max-width:900px)"), t = () => n(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let { route: r, openItem: i, openEntity: a, revealSource: o, toast: s, readOnly: c, readOnlyMessage: l, writerUrl: u } = e, [d, f] = (0, R.useState)(Sj(e.category) ? e.category : sue), [p, m] = (0, R.useState)("candidates"), [h, g] = (0, R.useState)(""), [_, v] = (0, R.useState)(1), [y, b] = (0, R.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, R.useState)(/* @__PURE__ */ new Map()), [C, w] = (0, R.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, R.useState)(""), D = (0, R.useRef)(null), [O, k] = (0, R.useState)(0), [A, j] = (0, R.useState)(""), M = (0, R.useRef)(!0);
+ let { route: r, openItem: i, openEntity: a, revealSource: o, toast: s, readOnly: c, readOnlyMessage: l, writerUrl: u } = e, [d, f] = (0, R.useState)(Cj(e.category) ? e.category : oue), [p, m] = (0, R.useState)("candidates"), [h, g] = (0, R.useState)(""), [_, v] = (0, R.useState)(1), [y, b] = (0, R.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, R.useState)(/* @__PURE__ */ new Map()), [C, w] = (0, R.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, R.useState)(""), D = (0, R.useRef)(null), [O, k] = (0, R.useState)(0), [A, j] = (0, R.useState)(""), M = (0, R.useRef)(!0);
(0, R.useEffect)(() => () => {
M.current = !1;
}, []);
- let N = TS({
- queryKey: bj,
- queryFn: ({ signal: e }) => Oj(e)
+ let N = wS({
+ queryKey: xj,
+ queryFn: ({ signal: e }) => kj(e)
}).data || {
sections: {},
counts: {}
- }, ee = N.sections[d] || [], te = d === "metadata_fields", P = c, F = lue(ee, te), ne = F.some(([e]) => e === p) ? p : "candidates", re = Cj(ee, ne), ie = re.some((e) => e.key === h) ? h : "", ae = due(uue(ee, ne, ie), _), oe = ae.rows.map((e) => e.item_key), se = new Set(oe), ce = re.map((e) => ({
+ }, ee = N.sections[d] || [], te = d === "metadata_fields", P = c, F = cue(ee, te), ne = F.some(([e]) => e === p) ? p : "candidates", re = wj(ee, ne), ie = re.some((e) => e.key === h) ? h : "", ae = uue(lue(ee, ne, ie), _), oe = ae.rows.map((e) => e.item_key), se = new Set(oe), ce = re.map((e) => ({
...e,
rows: e.rows.filter((e) => se.has(e.item_key))
- })).filter((e) => e.rows.length), le = (e) => x.get(e.item_key) || vue(e), ue = ee.filter((e) => y.has(e.item_key)), de = (e) => {
+ })).filter((e) => e.rows.length), le = (e) => x.get(e.item_key) || _ue(e), ue = ee.filter((e) => y.has(e.item_key)), de = (e) => {
let t = new Set(e);
b((e) => new Set([...e].filter((e) => !t.has(e)))), S((e) => new Map([...e].filter(([e]) => !t.has(e)))), w((e) => new Map([...e].filter(([e]) => !t.has(e))));
}, fe = (e, t) => w((n) => new Map(n).set(e, t)), I = (e) => {
f(e), m("candidates"), g(""), v(1), b(/* @__PURE__ */ new Set()), S(/* @__PURE__ */ new Map()), w(/* @__PURE__ */ new Map()), E(""), D.current = null, r({ category: e === "metadata_fields" ? "" : e });
- }, pe = OS({
- mutationFn: ({ row: e, status: t }) => kj(Dj(d, e, t, le(e))),
+ }, pe = DS({
+ mutationFn: ({ row: e, status: t }) => Aj(Oj(d, e, t, le(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
fe(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- Mj(d, [t.item_key]), de([t.item_key]), s(yue(n));
+ jj(d, [t.item_key]), de([t.item_key]), s(vue(n));
},
onError: (e, { row: t }) => fe(t.item_key, U(e))
- }), me = OS({
+ }), me = DS({
mutationFn: async (e) => {
let t = ue, n = [], r = [];
for (let [i, a] of t.entries()) {
if (!M.current) break;
E(`正在处理 ${i} / ${t.length}`);
try {
- let t = await kj(Dj(d, a, e, le(a)));
+ let t = await Aj(Oj(d, a, e, le(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@ -48636,7 +48703,7 @@ function Tve(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- Mj(d, t), de(t), n.forEach(([e, t]) => fe(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ jj(d, t), de(t), n.forEach(([e, t]) => fe(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
E(U(e));
@@ -48666,7 +48733,7 @@ function Tve(e) {
k(e), j("");
let t = await o(e);
M.current && (k(0), j(t));
- }, ve = xue(N.mirror, l), ye = N.genre_tags || [], be = {
+ }, ve = Sue(N.mirror, l), ye = N.genre_tags || [], be = {
openItem: i,
openEntity: a,
onReveal: _e,
@@ -48674,7 +48741,7 @@ function Tve(e) {
revealNote: A,
toast: s
};
- return /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsxs)("div", {
+ return /* @__PURE__ */ (0, B.jsx)(ME, { children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
P ? /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -48690,13 +48757,13 @@ function Tve(e) {
}) : void 0,
children: ve
}) : null,
- /* @__PURE__ */ (0, B.jsx)(fve, { tags: ye }),
- /* @__PURE__ */ (0, B.jsxs)(hk, {
+ /* @__PURE__ */ (0, B.jsx)(mve, { tags: ye }),
+ /* @__PURE__ */ (0, B.jsxs)(mk, {
orientation: t ? "horizontal" : "vertical",
selectedKey: d,
onSelectionChange: (e) => {
let t = String(e);
- Sj(t) && I(t);
+ Cj(t) && I(t);
},
className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
@@ -48705,27 +48772,27 @@ function Tve(e) {
children: [/* @__PURE__ */ (0, B.jsx)("h2", {
id: "reviewcategories",
children: "复核分类"
- }), /* @__PURE__ */ (0, B.jsx)(gk, {
+ }), /* @__PURE__ */ (0, B.jsx)(hk, {
"aria-labelledby": "reviewcategories",
"data-section-items": !0,
className: "flex review-split:flex-col review-split:items-stretch",
- children: oue.map((e) => {
+ children: aue.map((e) => {
let t = Number(N.counts[e] || 0);
- return /* @__PURE__ */ (0, B.jsxs)(_k, {
+ return /* @__PURE__ */ (0, B.jsxs)(gk, {
id: e,
- className: Cve,
- children: [xj[e], t ? /* @__PURE__ */ (0, B.jsx)("span", {
+ className: Tve,
+ children: [Sj[e], t ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, B.jsxs)(vk, {
+ }), /* @__PURE__ */ (0, B.jsxs)(_k, {
id: d,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- ee.length && !P ? /* @__PURE__ */ (0, B.jsx)(uve, {
+ ee.length && !P ? /* @__PURE__ */ (0, B.jsx)(fve, {
groupOptions: F,
groupBy: ne,
onGroupBy: (e) => {
@@ -48741,7 +48808,7 @@ function Tve(e) {
onSelected: b,
selectedRows: ue,
metadata: te,
- approvable: ue.every((e) => wj(d, e)),
+ approvable: ue.every((e) => Tj(d, e)),
busy: me.isPending,
feedback: T,
onUnifySource: ge,
@@ -48766,7 +48833,7 @@ function Tve(e) {
})]
}) : null, /* @__PURE__ */ (0, B.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, B.jsx)(Sve, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, B.jsx)(wve, {
category: d,
row: e,
choice: le(e),
@@ -48774,7 +48841,7 @@ function Tve(e) {
selected: y.has(e.item_key),
onSelect: (t, n) => b((r) => {
let i = new Set(r);
- return D.current = pue(i, oe, D.current, e.item_key, t, n), i;
+ return D.current = fue(i, oe, D.current, e.item_key, t, n), i;
}),
locked: P,
busy: pe.isPending && pe.variables?.row.item_key === e.item_key,
@@ -48789,12 +48856,12 @@ function Tve(e) {
handlers: be
}, e.item_key))
})]
- }, e.key)) : /* @__PURE__ */ (0, B.jsx)(jE, {
- icon: Xie,
+ }, e.key)) : /* @__PURE__ */ (0, B.jsx)(AE, {
+ icon: Zie,
title: "此分类没有待复核项目",
children: "可切换分类查看其他候选。"
}),
- /* @__PURE__ */ (0, B.jsx)(wve, {
+ /* @__PURE__ */ (0, B.jsx)(Eve, {
page: ae.page,
pages: ae.pages,
onPage: v
@@ -48807,9 +48874,13 @@ function Tve(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var Eve = "/api/scraping", Dve = "/api/scraping/settings", Ove = "/api/scraping/check", nR = "/api/scraping/cover", kve = "/api/scraping/amane-bridge", Ave = "/api/scraping/amane-bridge/check", jve = "/api/scraping/amane-bridge/rebuild", rR = ["scraping"], iR = ["scraping", "cover"], aR = ["scraping", "amane-bridge"], oR = (e) => W(Eve, e), sR = (e) => W(nR, e), cR = (e) => W(kve, e);
-async function Mve(e) {
+var Ove = "/api/scraping", kve = "/api/scraping/settings", Ave = "/api/scraping/check", tR = "/api/scraping/cover", jve = "/api/scraping/amane-bridge", Mve = "/api/scraping/amane-bridge/check", Nve = "/api/scraping/amane-bridge/rebuild", nR = ["scraping"], rR = ["scraping", "cover"], iR = ["scraping", "amane-bridge"], aR = (e) => W(Ove, e), oR = (e) => W(tR, e), sR = (e) => W(jve, e);
+async function Pve(e) {
await Promise.all([
+ p.fetchQuery({
+ queryKey: nR,
+ queryFn: () => aR(e)
+ }),
p.fetchQuery({
queryKey: rR,
queryFn: () => oR(e)
@@ -48817,20 +48888,16 @@ async function Mve(e) {
p.fetchQuery({
queryKey: iR,
queryFn: () => sR(e)
- }),
- p.fetchQuery({
- queryKey: aR,
- queryFn: () => cR(e)
})
]);
}
-function Nve(e, t) {
+function Fve(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.message ? `。${e.message}` : "");
}
//#endregion
//#region src/react/scraping/scraping-page.tsx
-var Pve = [["peach", "Peach 代理"], ["direct", "直接连接"]], lR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function uR({ source: e }) {
+var Ive = [["peach", "Peach 代理"], ["direct", "直接连接"]], cR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function lR({ source: e }) {
let t = [
"javten",
"fc2ppvdb",
@@ -48848,16 +48915,16 @@ function uR({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function Fve() {
- return /* @__PURE__ */ (0, B.jsx)(uR, { source: "github" });
+function Lve() {
+ return /* @__PURE__ */ (0, B.jsx)(lR, { source: "github" });
}
-function Ive({ source: e, toast: t }) {
- let [n, r] = (0, R.useState)(e.network), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(lR[0][0]), [u, d] = (0, R.useState)(""), [f, m] = (0, R.useState)(""), h = (0, R.useRef)(null);
+function Rve({ source: e, toast: t }) {
+ let [n, r] = (0, R.useState)(e.network), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(cR[0][0]), [u, d] = (0, R.useState)(""), [f, m] = (0, R.useState)(""), h = (0, R.useRef)(null);
function g() {
a(""), s(""), d(""), m(""), h.current && (h.current.value = "");
}
- let _ = OS({
- mutationFn: (t) => G(Dve, {
+ let _ = DS({
+ mutationFn: (t) => G(kve, {
source: e.source,
network: n,
cookie: i,
@@ -48865,12 +48932,12 @@ function Ive({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- p.setQueryData(rR, (t) => t && {
+ p.setQueryData(nR, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), g(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), v = OS({ mutationFn: () => G(Ove, { source: e.source }) }), y = _.isPending || v.isPending, b = (e) => {
+ }), v = DS({ mutationFn: () => G(Ave, { source: e.source }) }), y = _.isPending || v.isPending, b = (e) => {
e.preventDefault(), !y && (v.reset(), _.mutate(!1));
}, x = () => {
y || (v.reset(), _.mutate(!0));
@@ -48895,43 +48962,43 @@ function Ive({ source: e, toast: t }) {
}
}
let w = f || (_.error ? U(_.error) : "") || (v.error ? U(v.error) : ""), T = v.data?.results ?? [], E = n === "peach" || e.accepts_cookie || e.browser || !!w || T.length > 0;
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Pk, {
title: e.label,
onSubmit: b,
aside: /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, B.jsx)(uR, { source: e.source }), /* @__PURE__ */ (0, B.jsx)(Hk, {
+ children: [/* @__PURE__ */ (0, B.jsx)(lR, { source: e.source }), /* @__PURE__ */ (0, B.jsx)(Vk, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [/* @__PURE__ */ (0, B.jsx)(Mk, {
+ /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [/* @__PURE__ */ (0, B.jsx)(jk, {
label: "来源性质",
children: e.nature || "公开页面"
- }), /* @__PURE__ */ (0, B.jsx)(Mk, {
+ }), /* @__PURE__ */ (0, B.jsx)(jk, {
label: "连接方式",
- children: /* @__PURE__ */ (0, B.jsx)(Ok, {
+ children: /* @__PURE__ */ (0, B.jsx)(Dk, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: Pve.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: Ive.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Ok, {
id: e,
children: t
}, e))
})
})] }),
- E ? /* @__PURE__ */ (0, B.jsxs)(Lk, {
+ E ? /* @__PURE__ */ (0, B.jsxs)(Ik, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, B.jsx)(Pk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Nk, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: gT,
+ trailingIcon: hT,
children: "配置 Peach 代理"
})
}) : null,
@@ -48944,20 +49011,20 @@ function Ive({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, B.jsx)(vA, {
+ /* @__PURE__ */ (0, B.jsx)(gA, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), g();
},
- className: yA,
- children: lR.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(VO, {
+ className: _A,
+ children: cR.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(BO, {
value: e,
- className: bA,
+ className: vA,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, B.jsx)(Ck, {
+ c === "paste" ? /* @__PURE__ */ (0, B.jsx)(Sk, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -48966,7 +49033,7 @@ function Ive({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(Vk, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, B.jsx)(Bk, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, B.jsx)(J, {
@@ -48992,14 +49059,14 @@ function Ive({ source: e, toast: t }) {
]
})
] }) : null,
- w ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: w }) : null,
+ w ? /* @__PURE__ */ (0, B.jsx)(zk, { children: w }) : null,
T.map((t) => /* @__PURE__ */ (0, B.jsx)(Y, {
tone: t.ok ? "success" : "error",
- children: Nve(t, e.label)
+ children: Fve(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [
+ /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
onClick: x,
@@ -49021,26 +49088,26 @@ function Ive({ source: e, toast: t }) {
]
});
}
-function Lve({ toast: e }) {
- let [t, n] = (0, R.useState)(""), { running: r, outcome: i, start: a } = UM({
- queryKey: iR,
- queryFn: ({ signal: e }) => sR(e),
- start: () => G(nR, { code: t }),
+function zve({ toast: e }) {
+ let [t, n] = (0, R.useState)(""), { running: r, outcome: i, start: a } = HM({
+ queryKey: rR,
+ queryFn: ({ signal: e }) => oR(e),
+ start: () => G(tR, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? U(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, B.jsx)(Fk, {
+ return /* @__PURE__ */ (0, B.jsx)(Pk, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ children: /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, B.jsx)(Ck, {
+ children: /* @__PURE__ */ (0, B.jsx)(Sk, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -49055,7 +49122,7 @@ function Lve({ toast: e }) {
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在抓取封面" }) : null,
+ r ? /* @__PURE__ */ (0, B.jsx)(jE, { label: "正在抓取封面" }) : null,
s ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
children: s
@@ -49067,11 +49134,11 @@ function Lve({ toast: e }) {
] })
});
}
-function Rve({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = UM({
- queryKey: aR,
- queryFn: ({ signal: e }) => cR(e),
- start: () => G(jve, {}),
+function Bve({ toast: e }) {
+ let { query: t, running: n, outcome: r, start: i } = HM({
+ queryKey: iR,
+ queryFn: ({ signal: e }) => sR(e),
+ start: () => G(Nve, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -49080,45 +49147,45 @@ function Rve({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = OS({ mutationFn: () => G(Ave, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, B.jsx)(Fk, {
+ }), a = DS({ mutationFn: () => G(Mve, {}) }), o = t.data;
+ if (!o) return t.error ? /* @__PURE__ */ (0, B.jsx)(Pk, {
title: "amane",
- children: /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
+ children: /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
children: U(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? U(i.error) : a.error ? U(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Pk, {
title: "amane",
- aside: /* @__PURE__ */ (0, B.jsx)(Hk, {
+ aside: /* @__PURE__ */ (0, B.jsx)(Vk, {
href: o.repository,
- leadingIcon: Fve,
+ leadingIcon: Lve,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [
- /* @__PURE__ */ (0, B.jsx)(Wk, {
+ /* @__PURE__ */ (0, B.jsxs)(Hk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "已安装版本",
children: o.installed_version || "未安装"
}),
- /* @__PURE__ */ (0, B.jsx)(Wk, {
+ /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, B.jsx)(Wk, {
+ /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, B.jsx)(Wk, {
+ /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "内置站点",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, B.jsxs)(Lk, {
+ /* @__PURE__ */ (0, B.jsxs)(Ik, {
divided: !0,
children: [
- /* @__PURE__ */ (0, B.jsxs)(zk, { children: [
+ /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [
"已安装版本:",
o.installed_version || "未安装",
"。amane(",
@@ -49127,7 +49194,7 @@ function Rve({ toast: e }) {
o.version,
" 版本,不随上游自动升级。"
] }),
- n ? /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在重建运行环境" }) : null,
+ n ? /* @__PURE__ */ (0, B.jsx)(jE, { label: "正在重建运行环境" }) : null,
c ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
children: c
@@ -49138,7 +49205,7 @@ function Rve({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [/* @__PURE__ */ (0, B.jsx)(J, {
+ /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [/* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -49155,23 +49222,23 @@ function Rve({ toast: e }) {
]
});
}
-function zve({ toast: e }) {
- let t = TS({
- queryKey: rR,
- queryFn: ({ signal: e }) => oR(e)
+function Vve({ toast: e }) {
+ let t = wS({
+ queryKey: nR,
+ queryFn: ({ signal: e }) => aR(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, B.jsxs)(NE, { children: [
+ return n ? /* @__PURE__ */ (0, B.jsxs)(ME, { children: [
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, B.jsx)(Lve, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, B.jsx)(Ive, {
+ /* @__PURE__ */ (0, B.jsx)(zve, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, B.jsx)(Rve, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, B.jsx)(Rve, { toast: e })
- ] }) : /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
+ /* @__PURE__ */ (0, B.jsx)(Bve, { toast: e })
+ ] }) : /* @__PURE__ */ (0, B.jsx)(ME, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "采集来源读取失败",
children: t.error ? U(t.error) : "读取采集来源失败"
@@ -49179,21 +49246,21 @@ function zve({ toast: e }) {
}
//#endregion
//#region src/react/search/search.ts
-var dR = /* @__PURE__ */ new Set([
+var uR = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), fR = /* @__PURE__ */ new Set(["asset"]), pR = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function Bve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
+]), dR = /* @__PURE__ */ new Set(["asset"]), fR = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function Hve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
let s = 0, c = [], l = (e) => {
let t = {
...e,
index: s++
};
return c.push(t), t;
- }, u = t.filter((t) => !e || pR(t).includes(pR(e)));
+ }, u = t.filter((t) => !e || fR(t).includes(fR(e)));
if (!e) {
let e = u.length ? {
label: "搜索记录",
@@ -49231,7 +49298,7 @@ function Bve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
kind: e.kind,
item: t
}))
- }), h = p.filter((e) => !fR.has(e.kind)).map(m), g = p.filter((e) => fR.has(e.kind)).map(m);
+ }), h = p.filter((e) => !dR.has(e.kind)).map(m), g = p.filter((e) => dR.has(e.kind)).map(m);
return {
tabs: d && a.length > 1 ? [...a] : null,
recent: f,
@@ -49240,17 +49307,17 @@ function Bve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: c
};
}
-function Vve(e, t, n = Math.random) {
+function Uve(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
[r[e], r[t]] = [r[t], r[e]];
}
- return r.filter((e) => !t.some((t) => pR(t) === pR(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => fR(t) === fR(e))).slice(0, 5);
}
//#endregion
//#region src/react/search/search-page.tsx
-var Hve = () => ({
+var Wve = () => ({
history: [],
pool: [],
poolRequest: 0,
@@ -49265,7 +49332,7 @@ var Hve = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), mR = (e) => Bve({
+}), pR = (e) => Hve({
query: e.query,
history: e.history,
picks: e.picks,
@@ -49273,18 +49340,18 @@ var Hve = () => ({
groups: e.groups,
tabs: e.tabs,
kind: e.kind
-}), Uve = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), hR = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
+}), Gve = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), mR = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
-function Wve(e) {
+function Kve(e) {
let t = (0, R.useRef)(e);
t.current = e;
let n = (0, R.useRef)(null);
- n.current ??= Hve();
+ n.current ??= Wve();
let r = n.current, i = (0, R.useRef)(null), [, a] = (0, R.useReducer)((e) => e + 1, 0), o = (0, R.useRef)(null);
- o.current ??= Gve(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= qve(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, R.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus();
@@ -49297,7 +49364,7 @@ function Wve(e) {
let e = i.current?.closest("[data-search-menu]");
r.rewind && e && (e.scrollTop = 0), r.rewind = !1, r.reveal && i.current?.querySelector("[data-search-option][data-active]")?.scrollIntoView({ block: "nearest" }), r.reveal = !1;
});
- let c = mR(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, B.jsx)(qve, {
+ let c = pR(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, B.jsx)(Yve, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -49317,7 +49384,7 @@ function Wve(e) {
"data-search-root": "",
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, B.jsx)(Kve, {
+ c.tabs ? /* @__PURE__ */ (0, B.jsx)(Jve, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -49338,7 +49405,7 @@ function Wve(e) {
]
});
}
-function Gve(e, t, n, r) {
+function qve(e, t, n, r) {
let i = () => e().input, a = () => document.activeElement === i(), o = () => t.history.slice(0, e().historyLimit), s = (n) => {
t.history = n.slice(0, e().historyLimit);
}, c = async () => {
@@ -49352,7 +49419,7 @@ function Gve(e, t, n, r) {
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- !t || !e().historyLimit || (s([t, ...o().filter((e) => pR(e) !== pR(t))]), G("/api/search-history", { query: t }).catch(() => null));
+ !t || !e().historyLimit || (s([t, ...o().filter((e) => fR(e) !== fR(t))]), G("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -49385,9 +49452,9 @@ function Gve(e, t, n, r) {
let i = n();
i && e().helpers.dismiss(i), t.active = -1, r();
}, m = () => {
- t.query = i().value.trim(), t.picks = t.query ? [] : Vve(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : Uve(t.pool, o()), t.active = -1;
let a = n();
- a && (Uve(mR(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (Gve(pR(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, h = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -49399,7 +49466,7 @@ function Gve(e, t, n, r) {
!n || e === t.kind || (t.kind = e, clearTimeout(t.timer), m(), t.rewind = !0, d(n, e).then(() => {
a() && t.kind === e && m();
}));
- }, _ = () => f() ? mR(t).options : [], v = (e) => {
+ }, _ = () => f() ? pR(t).options : [], v = (e) => {
let n = _();
return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;
}, y = (t, n) => {
@@ -49412,7 +49479,7 @@ function Gve(e, t, n, r) {
i().blur(), e().actions.openItem(t.item.id);
return;
}
- if (t.type === "suggest" && dR.has(t.kind)) {
+ if (t.type === "suggest" && uR.has(t.kind)) {
b(t.kind, t.value);
return;
}
@@ -49464,12 +49531,12 @@ function Gve(e, t, n, r) {
await G("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => pR(t) !== pR(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => fR(t) !== fR(e))), t.active = -1, r();
},
pickKind: g
};
}
-function Kve({ tabs: e, kind: t, onPick: n, wire: r }) {
+function Jve({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, R.useRef)(null);
(0, R.useLayoutEffect)(() => {
r(i.current);
@@ -49481,7 +49548,7 @@ function Kve({ tabs: e, kind: t, onPick: n, wire: r }) {
"aria-selected": t === e,
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, B.jsx)(DL, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, B.jsx)(EL, { value: i }) : null]
}, e || "all");
return /* @__PURE__ */ (0, B.jsxs)("div", {
ref: i,
@@ -49491,8 +49558,8 @@ function Kve({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var gR = (e) => e.preventDefault();
-function qve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+var hR = (e) => e.preventDefault();
+function Yve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -49504,28 +49571,28 @@ function qve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, B.jsx)(hR, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, B.jsx)(mR, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, B.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: gR,
+ onMouseDown: hR,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, B.jsx)(hR, { name: "x" })
+ children: /* @__PURE__ */ (0, B.jsx)(mR, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = dR.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = uR.has(c) ? c : void 0;
if (c === "asset") {
let e = [s.who, s.code ? s.title : ""].filter(Boolean).join(" · ");
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-search-option": "work",
"data-open-item": s.id,
...o,
- children: [/* @__PURE__ */ (0, B.jsx)(_R, {
+ children: [/* @__PURE__ */ (0, B.jsx)(gR, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, B.jsxs)("span", {
@@ -49551,7 +49618,7 @@ function qve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- /* @__PURE__ */ (0, B.jsx)(vR, {
+ /* @__PURE__ */ (0, B.jsx)(_R, {
item: s,
kind: c
}),
@@ -49571,11 +49638,11 @@ function qve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-open-work": e.id,
"aria-label": `打开 ${e.code || s.value}`,
- onMouseDown: gR,
+ onMouseDown: hR,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, B.jsx)(_R, {
+ children: /* @__PURE__ */ (0, B.jsx)(gR, {
card: e,
helpers: n
})
@@ -49589,7 +49656,7 @@ function qve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, B.jsx)(vR, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, B.jsx)(_R, {
item: s,
kind: c
}) : null,
@@ -49602,13 +49669,13 @@ function qve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function _R({ card: e, helpers: t }) {
+function gR({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, B.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function vR({ item: e, kind: t }) {
+function _R({ item: e, kind: t }) {
let n = {
id: e.entity_id,
has_image: e.has_image,
@@ -49623,24 +49690,24 @@ function vR({ item: e, kind: t }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var yR = "/api/configuration", Jve = "/api/pick-folder", bR = ["configuration"], xR = (e) => W(yR, e);
-async function SR(e) {
+var vR = "/api/configuration", Xve = "/api/pick-folder", yR = ["configuration"], bR = (e) => W(vR, e);
+async function xR(e) {
await p.fetchQuery({
- queryKey: bR,
- queryFn: () => xR(e)
+ queryKey: yR,
+ queryFn: () => bR(e)
});
}
//#endregion
//#region src/configuration-copy.ts
-var Yve = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", Xve = "仅填域名;留空使用默认地址";
+var Zve = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", Qve = "仅填域名;留空使用默认地址";
//#endregion
//#region src/react/settings/entry-links-settings.tsx
-function Zve({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e.sites), i = IE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+function $ve({ initial: e, receipt: t }) {
+ let [n, r] = (0, R.useState)(e.sites), i = FE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Pk, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -49649,9 +49716,9 @@ function Zve({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: Yve }),
- n.map((e) => /* @__PURE__ */ (0, B.jsx)(Ck, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: Zve }),
+ n.map((e) => /* @__PURE__ */ (0, B.jsx)(Sk, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -49660,10 +49727,10 @@ function Zve({ initial: e, receipt: t }) {
placeholder: e.default_host,
onChange: (t) => a(e.key, t),
validationBehavior: "aria",
- hint: Xve
+ hint: Qve
}, e.key)),
- i.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ i.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
type: "submit",
...X(i.busy === "save"),
children: "保存配置"
@@ -49672,21 +49739,21 @@ function Zve({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function Qve({ data: e, receipt: t }) {
+function eye({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.startup ? /* @__PURE__ */ (0, B.jsx)($ve, {
+ children: [e.startup ? /* @__PURE__ */ (0, B.jsx)(tye, {
startup: e.startup,
receipt: t
- }) : null, e.entry_links ? /* @__PURE__ */ (0, B.jsx)(Zve, {
+ }) : null, e.entry_links ? /* @__PURE__ */ (0, B.jsx)($ve, {
initial: e.entry_links,
receipt: t
}) : null]
});
}
-function $ve({ startup: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e.enabled), [i, a] = (0, R.useState)(e.silent), [o, s] = (0, R.useState)(e.desktop), c = IE(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+function tye({ startup: e, receipt: t }) {
+ let [n, r] = (0, R.useState)(e.enabled), [i, a] = (0, R.useState)(e.silent), [o, s] = (0, R.useState)(e.desktop), c = FE(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, B.jsxs)(Pk, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => G("/api/configuration/startup", {
@@ -49696,30 +49763,30 @@ function $ve({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
- /* @__PURE__ */ (0, B.jsx)(Mk, {
+ /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(jk, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, B.jsx)(aL, {
+ children: /* @__PURE__ */ (0, B.jsx)(iL, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, B.jsx)(Mk, {
+ /* @__PURE__ */ (0, B.jsx)(jk, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",
- children: /* @__PURE__ */ (0, B.jsx)(aL, {
+ children: /* @__PURE__ */ (0, B.jsx)(iL, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, B.jsx)(Mk, {
+ /* @__PURE__ */ (0, B.jsx)(jk, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, B.jsx)(aL, {
+ children: /* @__PURE__ */ (0, B.jsx)(iL, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -49727,11 +49794,11 @@ function $ve({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, B.jsxs)(Lk, {
+ e.message || c.error ? /* @__PURE__ */ (0, B.jsxs)(Ik, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, B.jsx)(zk, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
type: "submit",
disabled: !e.available,
...X(c.busy === "save"),
@@ -49742,23 +49809,23 @@ function $ve({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var CR = /* @__PURE__ */ new Set([
+var SR = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), eye = [
+]), nye = [
65,
67,
90
-], wR = 120;
-function tye({ initial: e, initialJob: t }) {
+], CR = 120;
+function rye({ initial: e, initialJob: t }) {
let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, R.useState)(""), c = IE(), l = (0, R.useRef)(!1), u = (0, R.useRef)(!0), d = CR.has(i.state);
+ }), [o, s] = (0, R.useState)(""), c = FE(), l = (0, R.useRef)(!1), u = (0, R.useRef)(!0), d = SR.has(i.state);
(0, R.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
@@ -49775,7 +49842,7 @@ function tye({ initial: e, initialJob: t }) {
(0, R.useEffect)(() => {
i.state !== "ready" || l.current || (l.current = !0, p());
}, [i.state]), (0, R.useEffect)(() => {
- let e = new AbortController(), t = CR.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ let e = new AbortController(), t = SR.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
let t = await W("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
@@ -49788,9 +49855,9 @@ function tye({ initial: e, initialJob: t }) {
let n = await W("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= wR && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= CR && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < wR && (n = setTimeout(c, t));
+ !e.signal.aborted && o < CR && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@ -49804,57 +49871,57 @@ function tye({ initial: e, initialJob: t }) {
state: "error"
}), c.setError(U(t));
}), g = c.error || o, _ = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Pk, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [
- /* @__PURE__ */ (0, B.jsx)(Wk, {
+ /* @__PURE__ */ (0, B.jsxs)(Hk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, B.jsx)(Wk, {
+ /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, B.jsx)(Wk, {
+ /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, B.jsx)(Wk, {
+ /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, B.jsxs)(Lk, {
+ /* @__PURE__ */ (0, B.jsxs)(Ik, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, B.jsxs)(zk, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, B.jsxs)(Rk, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
n.state === "available" && !g ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : g || n.state === "error" ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: g || n.message }) : /* @__PURE__ */ (0, B.jsx)(zk, {
+ }) : g || n.state === "error" ? /* @__PURE__ */ (0, B.jsx)(zk, { children: g || n.message }) : /* @__PURE__ */ (0, B.jsx)(Rk, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, B.jsx)(zk, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, B.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(FE, {
+ /* @__PURE__ */ (0, B.jsx)(PE, {
label: "更新准备进度",
value: i.progress,
- stops: eye
+ stops: nye
}),
- /* @__PURE__ */ (0, B.jsxs)(zk, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, B.jsx)(zk, { children: _ })
+ /* @__PURE__ */ (0, B.jsxs)(Rk, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: _ })
]
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsxs)(Rk, {
- status: /* @__PURE__ */ (0, B.jsx)(Hk, {
+ /* @__PURE__ */ (0, B.jsxs)(Lk, {
+ status: /* @__PURE__ */ (0, B.jsx)(Vk, {
href: n.release_url,
children: "查看发布页"
}),
@@ -49881,105 +49948,105 @@ function tye({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var nye = [
+var iye = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function rye({ data: e, receipt: t, reopenTutorial: n }) {
+function aye({ data: e, receipt: t, reopenTutorial: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, B.jsx)(aye, {
+ e.automatic_updates ? /* @__PURE__ */ (0, B.jsx)(sye, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, B.jsx)(tye, {
+ e.updates ? /* @__PURE__ */ (0, B.jsx)(rye, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, B.jsx)(oye, { facts: e.facts }),
- /* @__PURE__ */ (0, B.jsx)(Fk, {
+ /* @__PURE__ */ (0, B.jsx)(cye, { facts: e.facts }),
+ /* @__PURE__ */ (0, B.jsx)(Pk, {
title: "系统诊断",
- children: /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsx)(Pk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsx)(Nk, {
href: "/diagnostics",
children: "打开系统诊断"
}) }) })
}),
- /* @__PURE__ */ (0, B.jsx)(iye, {
+ /* @__PURE__ */ (0, B.jsx)(oye, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, B.jsx)(sye, {
+ e.uninstall ? /* @__PURE__ */ (0, B.jsx)(lye, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function iye({ receipt: e, reopenTutorial: t }) {
- let n = IE();
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+function oye({ receipt: e, reopenTutorial: t }) {
+ let n = FE();
+ return /* @__PURE__ */ (0, B.jsxs)(Pk, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [/* @__PURE__ */ (0, B.jsx)(zk, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: n.error }) : null] }), /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(Ik, { children: [/* @__PURE__ */ (0, B.jsx)(Rk, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: n.error }) : null] }), /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...X(n.busy === "reopen"),
children: "重新打开教程"
}) })]
});
}
-function aye({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e.mode), [i, a] = (0, R.useState)(e.interval_hours), o = IE(e.error), s = (r) => {
+function sye({ initial: e, receipt: t }) {
+ let [n, r] = (0, R.useState)(e.mode), [i, a] = (0, R.useState)(e.interval_hours), o = FE(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => G("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Pk, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
- /* @__PURE__ */ (0, B.jsx)(Mk, {
+ /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(jk, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, B.jsx)(aL, {
+ children: /* @__PURE__ */ (0, B.jsx)(iL, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, B.jsx)(Mk, {
+ /* @__PURE__ */ (0, B.jsx)(jk, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, B.jsx)(aL, {
+ children: /* @__PURE__ */ (0, B.jsx)(iL, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, B.jsx)(Mk, {
+ /* @__PURE__ */ (0, B.jsx)(jk, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, B.jsx)(Ok, {
+ children: /* @__PURE__ */ (0, B.jsx)(Dk, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: nye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: iye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Ok, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ o.error ? /* @__PURE__ */ (0, B.jsx)(Ik, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: o.error })
+ children: /* @__PURE__ */ (0, B.jsx)(zk, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
type: "submit",
disabled: !e.available,
...X(o.busy === "save"),
@@ -49988,19 +50055,19 @@ function aye({ initial: e, receipt: t }) {
]
});
}
-function oye({ facts: e }) {
- return /* @__PURE__ */ (0, B.jsx)(Fk, {
+function cye({ facts: e }) {
+ return /* @__PURE__ */ (0, B.jsx)(Pk, {
title: "运行信息",
- children: /* @__PURE__ */ (0, B.jsx)(Uk, { children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)(Wk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Hk, { children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)(Uk, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, B.jsx)(Hk, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, B.jsx)(Vk, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function sye({ uninstall: e, receipt: t }) {
+function lye({ uninstall: e, receipt: t }) {
let [n, r] = (0, R.useState)(!1), [i, a] = (0, R.useState)(""), o = () => void je({
title: "卸载 Peach",
danger: !0,
@@ -50014,26 +50081,26 @@ function sye({ uninstall: e, receipt: t }) {
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Pk, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
- e.available ? /* @__PURE__ */ (0, B.jsx)(zk, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, B.jsx)(qM, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
+ e.available ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, B.jsx)(KM, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, B.jsx)(Gk, {
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, B.jsx)(RM, {
+ children: c.map((e) => /* @__PURE__ */ (0, B.jsx)(LM, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, B.jsx)(Rk, {
+ ] }), /* @__PURE__ */ (0, B.jsx)(Lk, {
status: s ? /* @__PURE__ */ (0, B.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@ -50049,7 +50116,7 @@ function sye({ uninstall: e, receipt: t }) {
}
//#endregion
//#region src/react/restart-redirect.ts
-var cye = 8e3, lye = [
+var uye = 8e3, dye = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -50068,32 +50135,32 @@ var cye = 8e3, lye = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], uye = [
+], fye = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function dye() {
+function pye() {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, B.jsxs)(zk, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, B.jsx)(Hk, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(Rk, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, B.jsx)(Vk, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, B.jsxs)(Gk, {
+ })] }), /* @__PURE__ */ (0, B.jsxs)(Wk, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
/* @__PURE__ */ (0, B.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: lye.map((e) => /* @__PURE__ */ (0, B.jsxs)("li", {
+ children: dye.map((e) => /* @__PURE__ */ (0, B.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, B.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: uye.map(([t, n]) => /* @__PURE__ */ (0, B.jsxs)("div", {
+ children: fye.map(([t, n]) => /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, B.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -50114,9 +50181,9 @@ function dye() {
/* @__PURE__ */ (0, B.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, B.jsxs)(zk, { children: [
+ /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, B.jsx)(Hk, {
+ /* @__PURE__ */ (0, B.jsx)(Vk, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -50128,15 +50195,15 @@ function dye() {
}
//#endregion
//#region src/react/settings/download-settings.tsx
-var fye = "/api/configuration/downloads", TR = "/api/configuration/downloads/check", pye = "/api/configuration/downloads/folder", mye = "/api/configuration/downloads/pikpak/login", hye = "/api/configuration/downloads/pikpak/logout", ER = "/api/configuration/downloads/pikpak/browser-login", DR = 2e3;
-function gye({ initial: e, receipt: t }) {
+var mye = "/api/configuration/downloads", wR = "/api/configuration/downloads/check", hye = "/api/configuration/downloads/folder", gye = "/api/configuration/downloads/pikpak/login", _ye = "/api/configuration/downloads/pikpak/logout", TR = "/api/configuration/downloads/pikpak/browser-login", ER = 2e3;
+function vye({ initial: e, receipt: t }) {
let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(""), o = n.pikpak.logged_in || !!i.trim();
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(_ye, {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(yye, {
state: n,
settle: r,
receipt: t,
pikpakAccount: o
- }), /* @__PURE__ */ (0, B.jsx)(yye, {
+ }), /* @__PURE__ */ (0, B.jsx)(xye, {
state: n,
settle: r,
receipt: t,
@@ -50144,8 +50211,8 @@ function gye({ initial: e, receipt: t }) {
setUsername: a
})] });
}
-function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
- let [i, a] = (0, R.useState)(e.config), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(String(e.config.wait_hours)), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(""), [m, h] = (0, R.useState)(OR), [g, _] = (0, R.useState)(""), [v, y] = (0, R.useState)(!1), b = IE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
+function yye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
+ let [i, a] = (0, R.useState)(e.config), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(String(e.config.wait_hours)), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(""), [m, h] = (0, R.useState)(DR), [g, _] = (0, R.useState)(""), [v, y] = (0, R.useState)(!1), b = FE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
...i,
targets: {
...i.targets,
@@ -50174,8 +50241,8 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
target: !e.config.targets[115],
root: !e.config.pikpak_root
};
- b.run("auto", (e) => W(TR, e), (e) => w(e, t), (e) => _(U(e)));
- }, []), /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ b.run("auto", (e) => W(wR, e), (e) => w(e, t), (e) => _(U(e)));
+ }, []), /* @__PURE__ */ (0, B.jsxs)(Pk, {
title: "云下载",
onSubmit: (e) => {
if (e.preventDefault(), C) {
@@ -50188,19 +50255,19 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
token: o,
pikpak_account: r
};
- b.run("save", (e) => G(fye, f, "POST", e), (e) => {
+ b.run("save", (e) => G(mye, f, "POST", e), (e) => {
let { report: r, ...i } = e;
t(i), a(i.config), l(String(i.config.wait_hours)), s(""), r ? w(r, {
address: !i.config.clouddrive_address,
target: u,
root: !i.config.pikpak_root
- }, i.config.targets[115] ?? "") : (d(null), p(""), h(OR), y(!1), _("")), n("已保存配置");
+ }, i.config.targets[115] ?? "") : (d(null), p(""), h(DR), y(!1), _("")), n("已保存配置");
}, (e) => _(U(e)));
},
children: [
- /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,再由推送发现登记入库,不经过这台电脑。 115 每个任务扣一条离线配额(年费会员每月 1500 条、月费 200 条),被判违规的资源不重试。" }),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: "把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,再由推送发现登记入库,不经过这台电脑。 115 每个任务扣一条离线配额(年费会员每月 1500 条、月费 200 条),被判违规的资源不重试。" }),
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
label: "CloudDrive2 地址",
placeholder: "留空自动探测本机 19798 / 29798",
autoComplete: "off",
@@ -50212,7 +50279,7 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
clouddrive_address: e
})
}),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
label: "CloudDrive2 API 令牌",
type: "password",
autoComplete: "off",
@@ -50223,7 +50290,7 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: s
}),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
label: "115 目标目录",
placeholder: "留空时按推送发现自动填写",
autoComplete: "off",
@@ -50235,7 +50302,7 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: (e) => S("115", e)
}),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
label: "PikPak 目标目录",
placeholder: "以 / 开头的网盘路径",
autoComplete: "off",
@@ -50247,7 +50314,7 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, B.jsx)(Ok, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Bk, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, B.jsx)(Dk, {
"aria-label": "PikPak 根目录对应的媒体文件夹",
selectedKey: i.pikpak_root || null,
isDisabled: !e.available,
@@ -50256,13 +50323,13 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
...i,
pikpak_root: e === null ? "" : String(e)
}),
- children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {
id: e,
children: e
}, e))
- }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]
+ }) : /* @__PURE__ */ (0, B.jsx)(Rk, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]
}),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
label: "等待上限(小时)",
type: "number",
inputMode: "numeric",
@@ -50273,11 +50340,11 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
onChange: l
})
] }),
- b.busy === "auto" ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ b.busy === "auto" ? /* @__PURE__ */ (0, B.jsx)(Ik, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在检查 CloudDrive2" })
+ children: /* @__PURE__ */ (0, B.jsx)(jE, { label: "正在检查 CloudDrive2" })
}) : null,
- u ? /* @__PURE__ */ (0, B.jsx)(vye, {
+ u ? /* @__PURE__ */ (0, B.jsx)(bye, {
report: u,
detected: f,
suggested: m,
@@ -50289,7 +50356,7 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("folder", (e) => G(pye, t, "POST", e), (t) => {
+ b.run("folder", (e) => G(hye, t, "POST", e), (t) => {
d(t), h((t) => ({
...t,
target: {
@@ -50301,11 +50368,11 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
} : void 0,
creating: b.busy === "folder"
}) : null,
- g || b.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ g || b.error ? /* @__PURE__ */ (0, B.jsx)(Ik, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: g || b.error })
+ children: /* @__PURE__ */ (0, B.jsx)(zk, { children: g || b.error })
}) : null,
- /* @__PURE__ */ (0, B.jsxs)(Rk, {
+ /* @__PURE__ */ (0, B.jsxs)(Lk, {
status: e.available ? void 0 : "云下载只在账本写入端可用。",
children: [/* @__PURE__ */ (0, B.jsx)(J, {
onClick: () => {
@@ -50320,7 +50387,7 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("check", (e) => G(TR, t, "POST", e), (t) => w(t, e), (e) => _(U(e)));
+ b.run("check", (e) => G(wR, t, "POST", e), (t) => w(t, e), (e) => _(U(e)));
},
disabled: !e.available,
...X(b.busy === "check"),
@@ -50335,25 +50402,25 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
]
});
}
-var OR = {
+var DR = {
target: null,
root: "",
saved: !1
};
-function vye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
+function bye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
let a = n.target;
- return /* @__PURE__ */ (0, B.jsxs)(Lk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Ik, {
divided: !0,
- children: [/* @__PURE__ */ (0, B.jsxs)(Uk, { children: [
- t ? /* @__PURE__ */ (0, B.jsx)(Wk, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(Hk, { children: [
+ t ? /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "CloudDrive2 地址",
children: `探测到 ${t},保存配置后生效`
}) : null,
- a?.exists ? /* @__PURE__ */ (0, B.jsx)(Wk, {
+ a?.exists ? /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "115 目标目录",
children: n.saved ? `已按推送发现填入 ${a.path}` : `按推送发现填入 ${a.path},保存配置后生效`
}) : null,
- a && !a.exists ? /* @__PURE__ */ (0, B.jsxs)(Wk, {
+ a && !a.exists ? /* @__PURE__ */ (0, B.jsxs)(Uk, {
term: "115 目标目录",
children: [`${a.path} 不存在`, r ? /* @__PURE__ */ (0, B.jsx)(J, {
size: "small",
@@ -50362,49 +50429,49 @@ function vye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
children: "新建这个目录"
}) : null]
}) : null,
- n.root ? /* @__PURE__ */ (0, B.jsx)(Wk, {
+ n.root ? /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "PikPak 根目录",
children: `按推送发现填入 ${n.root},保存配置后生效`
}) : null,
- e.permissions.length ? /* @__PURE__ */ (0, B.jsx)(Wk, {
+ e.permissions.length ? /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "离线权限",
children: e.missing.length ? `缺少:${e.missing.join("、")}` : "齐全"
}) : null,
- e.folder ? /* @__PURE__ */ (0, B.jsx)(Wk, {
+ e.folder ? /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "目标目录",
children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`
}) : null,
- e.quota ? /* @__PURE__ */ (0, B.jsx)(Wk, {
+ e.quota ? /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "115 离线配额",
children: `本月还剩 ${e.quota.left} 条,共 ${e.quota.total} 条`
}) : null
- ] }), e.problems.map((e) => /* @__PURE__ */ (0, B.jsx)(Bk, { children: e }, e))]
+ ] }), e.problems.map((e) => /* @__PURE__ */ (0, B.jsx)(zk, { children: e }, e))]
});
}
-function yye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
- let [a, o] = (0, R.useState)(""), [s, c] = (0, R.useState)(!1), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = IE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
+function xye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
+ let [a, o] = (0, R.useState)(""), [s, c] = (0, R.useState)(!1), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = FE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
(0, R.useEffect)(() => {
if (!v) return;
let e = new AbortController(), r, i = async () => {
try {
- let r = await W(ER, e.signal);
+ let r = await W(TR, e.signal);
if (e.signal.aborted || (t(r), r.pikpak_browser.state === "done" ? n("已登录 PikPak") : r.pikpak_browser.state !== "waiting" && m(r.pikpak_browser.message), r.pikpak_browser.state !== "waiting")) return;
} catch (t) {
if (e.signal.aborted) return;
f(U(t));
}
- r = setTimeout(i, DR);
+ r = setTimeout(i, ER);
};
- return r = setTimeout(i, DR), () => {
+ return r = setTimeout(i, ER), () => {
e.abort(), clearTimeout(r);
};
}, [v]);
let y = () => {
- m(""), h.run("browser", (e) => G(ER, {}, "POST", e), (e) => {
+ m(""), h.run("browser", (e) => G(TR, {}, "POST", e), (e) => {
t(e), f("");
}, (e) => f(U(e)));
}, b = () => {
- h.run("cancel", (e) => G(`${ER}/cancel`, {}, "POST", e), (e) => {
+ h.run("cancel", (e) => G(`${TR}/cancel`, {}, "POST", e), (e) => {
t(e), f(""), m(e.pikpak_browser.message);
}, (e) => f(U(e)));
}, x = (e) => {
@@ -50414,7 +50481,7 @@ function yye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
password: a,
remember: s
};
- h.run("login", (e) => G(mye, i, "POST", e), (e) => {
+ h.run("login", (e) => G(gye, i, "POST", e), (e) => {
if (t(e.settings), f(""), !e.ok) {
u(e.captcha_url ?? "");
return;
@@ -50422,11 +50489,11 @@ function yye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
u(""), o(""), n("已登录 PikPak");
}, (e) => f(U(e)));
}, S = () => {
- h.run("logout", (e) => G(hye, {}, "POST", e), (e) => {
+ h.run("logout", (e) => G(_ye, {}, "POST", e), (e) => {
t(e), f(""), n("已登出 PikPak");
}, (e) => f(U(e)));
}, C = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
label: "账号",
placeholder: "邮箱或手机号",
autoComplete: "username",
@@ -50435,7 +50502,7 @@ function yye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: i
}),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
label: "密码",
type: "password",
autoComplete: "current-password",
@@ -50444,7 +50511,7 @@ function yye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: o
}),
- /* @__PURE__ */ (0, B.jsx)(qM, {
+ /* @__PURE__ */ (0, B.jsx)(KM, {
isSelected: s,
isDisabled: !e.available,
onChange: c,
@@ -50455,7 +50522,7 @@ function yye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
title: "需要人机验证",
extra: /* @__PURE__ */ (0, B.jsx)("div", {
className: "pt-2",
- children: /* @__PURE__ */ (0, B.jsx)(Hk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Vk, {
href: l,
children: "打开 PikPak 验证页"
})
@@ -50468,32 +50535,32 @@ function yye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
...X(h.busy === "login"),
children: "登录"
}), T = _.state === "timeout" || _.state === "failed";
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Pk, {
title: "PikPak 账号",
onSubmit: x,
children: [
- g.logged_in ? /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [/* @__PURE__ */ (0, B.jsx)(Wk, {
+ g.logged_in ? /* @__PURE__ */ (0, B.jsxs)(Hk, { children: [/* @__PURE__ */ (0, B.jsx)(Uk, {
term: "账号",
children: g.username || "已登录"
- }), g.method === "browser" ? /* @__PURE__ */ (0, B.jsx)(Wk, {
+ }), g.method === "browser" ? /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "登录方式",
children: "浏览器登录,由 Peach 续期"
- }) : /* @__PURE__ */ (0, B.jsx)(Wk, {
+ }) : /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "密码",
children: g.remember ? "已保存,登录过期时自动重新登录" : "未保存,登录过期后需要回到这里重新登录"
- })] }) : _.available ? /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "「用浏览器登录」会打开一个 Peach 专用的浏览器窗口,在里面登录 PikPak。Peach 读到登录状态后关掉窗口,之后由 Peach 续期;续期失败时回到这里重新登录。" }),
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。" }),
- p ? T ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: p }) : /* @__PURE__ */ (0, B.jsx)(zk, {
+ })] }) : _.available ? /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: "「用浏览器登录」会打开一个 Peach 专用的浏览器窗口,在里面登录 PikPak。Peach 读到登录状态后关掉窗口,之后由 Peach 续期;续期失败时回到这里重新登录。" }),
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。" }),
+ p ? T ? /* @__PURE__ */ (0, B.jsx)(zk, { children: p }) : /* @__PURE__ */ (0, B.jsx)(Rk, {
role: "status",
children: p
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Gk, {
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
summary: "用账号密码登录",
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
C,
/* @__PURE__ */ (0, B.jsx)("div", {
className: "flex justify-end",
@@ -50502,13 +50569,13 @@ function yye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
]
})
})
- ] }) : /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [/* @__PURE__ */ (0, B.jsx)(zk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),
- d || h.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ ] }) : /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [/* @__PURE__ */ (0, B.jsx)(Rk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),
+ d || h.error ? /* @__PURE__ */ (0, B.jsx)(Ik, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: d || h.error })
+ children: /* @__PURE__ */ (0, B.jsx)(zk, { children: d || h.error })
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Rk, {
- status: !g.logged_in && v ? /* @__PURE__ */ (0, B.jsx)(ME, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
+ /* @__PURE__ */ (0, B.jsx)(Lk, {
+ status: !g.logged_in && v ? /* @__PURE__ */ (0, B.jsx)(jE, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
children: g.logged_in ? /* @__PURE__ */ (0, B.jsx)(J, {
onClick: S,
disabled: !e.available,
@@ -50532,7 +50599,7 @@ function yye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
}
//#endregion
//#region src/react/settings/folder-rows.tsx
-function bye({ className: e }) {
+function Sye({ className: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -50545,12 +50612,12 @@ function bye({ className: e }) {
children: /* @__PURE__ */ (0, B.jsx)("use", { href: "#i-folder-search" })
});
}
-var kR = [
+var OR = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], AR = (e) => Oe[e] || "database", xye = (e) => e === "115" || e === "pikpak";
-function Sye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
+], kR = (e) => Oe[e] || "database", Cye = (e) => e === "115" || e === "pikpak";
+function wye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
let [a, o] = (0, R.useState)(e), [s, c] = (0, R.useState)([]), [l, u] = (0, R.useState)(null), [d, f] = (0, R.useState)(null), p = (0, R.useRef)(!1), m = (0, R.useRef)([]);
(0, R.useLayoutEffect)(() => {
l !== null && (m.current[l]?.focus(), u(null));
@@ -50593,14 +50660,14 @@ function Sye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick:
}
};
}
-function Cye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, children: c }) {
+function Tye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, children: c }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-folder-row": !0,
className: "@container flex flex-col gap-3 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
className: "min-w-0 flex-1",
"aria-label": e,
placeholder: "本机文件夹路径",
@@ -50611,14 +50678,14 @@ function Cye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
isInvalid: !!r,
hint: r || void 0
}),
- /* @__PURE__ */ (0, B.jsx)(LM, {
- icon: bye,
+ /* @__PURE__ */ (0, B.jsx)(IM, {
+ icon: Sye,
"aria-label": "选择文件夹",
onClick: o,
...X(a)
}),
- s ? /* @__PURE__ */ (0, B.jsx)(LM, {
- icon: bT,
+ s ? /* @__PURE__ */ (0, B.jsx)(IM, {
+ icon: yT,
"aria-label": "移除这个文件夹",
onClick: s
}) : null
@@ -50629,25 +50696,25 @@ function Cye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
})]
});
}
-function wye({ index: e, value: t, onChange: n, options: r = kR }) {
+function Eye({ index: e, value: t, onChange: n, options: r = OR }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "媒体来源" }), /* @__PURE__ */ (0, B.jsx)(Ok, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Bk, { children: "媒体来源" }), /* @__PURE__ */ (0, B.jsx)(Dk, {
"aria-label": `媒体来源 ${e + 1}`,
selectedKey: t,
onSelectionChange: (e) => {
e !== null && n(String(e));
},
- children: r.map(([e, t]) => /* @__PURE__ */ (0, B.jsxs)(kk, {
+ children: r.map(([e, t]) => /* @__PURE__ */ (0, B.jsxs)(Ok, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: AR(e) }), t]
+ children: [/* @__PURE__ */ (0, B.jsx)(Gk, { mark: kR(e) }), t]
}, e))
})]
});
}
-function Tye({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
- return /* @__PURE__ */ (0, B.jsx)(Ck, {
+function Dye({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
+ return /* @__PURE__ */ (0, B.jsx)(Sk, {
label: n,
placeholder: r,
value: e,
@@ -50656,42 +50723,42 @@ function Tye({ value: e, onChange: t, label: n = "Windows 中的对应路径", p
}
//#endregion
//#region src/react/settings/indexer-settings.tsx
-var jR = "/api/configuration/indexers";
-function Eye({ receipt: e }) {
- let t = TS({
+var AR = "/api/configuration/indexers";
+function Oye({ receipt: e }) {
+ let t = wS({
queryKey: ["indexers"],
- queryFn: ({ signal: e }) => W(jR, e)
+ queryFn: ({ signal: e }) => W(AR, e)
});
- return t.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: U(t.error) }) : t.data ? /* @__PURE__ */ (0, B.jsx)(Dye, {
+ return t.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: U(t.error) }) : t.data ? /* @__PURE__ */ (0, B.jsx)(kye, {
initial: t.data,
receipt: e
}) : null;
}
-function Dye({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e.indexers), i = IE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+function kye({ initial: e, receipt: t }) {
+ let [n, r] = (0, R.useState)(e.indexers), i = FE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Pk, {
title: "资源索引器",
onSubmit: (e) => {
- e.preventDefault(), i.run("save", (e) => G(jR, { indexers: n }, "POST", e), (e) => {
+ e.preventDefault(), i.run("save", (e) => G(AR, { indexers: n }, "POST", e), (e) => {
r(e.indexers), t("已保存索引器");
});
},
- children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "用户自配索引器。填写 Prowlarr 或 Jackett 提供的 Torznab API 地址,在活动页「云下载」中按番号搜索。" }),
+ children: [/* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: "用户自配索引器。填写 Prowlarr 或 Jackett 提供的 Torznab API 地址,在活动页「云下载」中按番号搜索。" }),
n.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4",
children: [
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
label: `索引器 ${t + 1} 名称`,
value: e.name,
maxLength: 80,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { name: t })
}),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
label: `索引器 ${t + 1} API 地址`,
value: e.url,
type: "url",
@@ -50700,7 +50767,7 @@ function Dye({ initial: e, receipt: t }) {
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { url: t })
}),
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
label: `索引器 ${t + 1} API key`,
type: "password",
autoComplete: "new-password",
@@ -50709,13 +50776,13 @@ function Dye({ initial: e, receipt: t }) {
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { api_key: t })
}),
- /* @__PURE__ */ (0, B.jsx)(qM, {
+ /* @__PURE__ */ (0, B.jsx)(KM, {
isSelected: e.enabled,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { enabled: t }),
children: "启用 · 用户自配索引器"
}),
- e.api_key_set ? /* @__PURE__ */ (0, B.jsx)(qM, {
+ e.api_key_set ? /* @__PURE__ */ (0, B.jsx)(KM, {
isSelected: !!e.clear_api_key,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { clear_api_key: t }),
@@ -50729,8 +50796,8 @@ function Dye({ initial: e, receipt: t }) {
}) })
]
}, e.key)),
- i.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, B.jsxs)(Rk, {
+ i.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, B.jsxs)(Lk, {
status: "保存后生效;关闭或移除索引器会停止向它查询。",
children: [/* @__PURE__ */ (0, B.jsx)(J, {
type: "button",
@@ -50753,7 +50820,7 @@ function Dye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var MR = [
+var jR = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -50797,13 +50864,13 @@ var MR = [
["star", "收藏"],
["tags", "主题"]
];
-function Oye(e) {
+function Aye(e) {
let t = e === "local" ? "" : Oe[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var NR = "auto";
-function kye({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(e), [l, u] = Oye(n);
+var MR = "auto";
+function jye({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(e), [l, u] = Aye(n);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(J, {
ref: i,
variant: "secondary",
@@ -50817,35 +50884,35 @@ function kye({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, B.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: e || l }), ((e) => e && MR.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, B.jsx)(Gk, { mark: e || l }), ((e) => e && jR.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, B.jsx)(SO, {
+ }), /* @__PURE__ */ (0, B.jsx)(xO, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: wk,
- children: /* @__PURE__ */ (0, B.jsxs)(NO, {
+ className: Ck,
+ children: /* @__PURE__ */ (0, B.jsxs)(MO, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, B.jsx)(rD, {
+ /* @__PURE__ */ (0, B.jsx)(nD, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, B.jsx)(BO, {
+ /* @__PURE__ */ (0, B.jsx)(zO, {
"aria-label": "候选图标",
- value: s || NR,
- onChange: (e) => c(e === NR ? "" : e),
+ value: s || MR,
+ onChange: (e) => c(e === MR ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: MR.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(VO, {
- value: e || NR,
+ children: jR.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(BO, {
+ value: e || MR,
"aria-label": e ? t : u,
className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",
- children: /* @__PURE__ */ (0, B.jsx)(Kk, { mark: e || l })
- }, e || NR))
+ children: /* @__PURE__ */ (0, B.jsx)(Gk, { mark: e || l })
+ }, e || MR))
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -50867,15 +50934,15 @@ function kye({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var Aye = "/api/configuration/push-discovery", jye = "/api/configuration/push-discovery/secret";
-function Mye({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.prefixes), [o, s] = (0, R.useState)(""), c = IE(), l = FM(), u = n.media_roots, [d, f] = (0, R.useState)(e), p = (e, n) => {
+var Mye = "/api/configuration/push-discovery", Nye = "/api/configuration/push-discovery/secret";
+function Pye({ initial: e, receipt: t }) {
+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.prefixes), [o, s] = (0, R.useState)(""), c = FE(), l = PM(), u = n.media_roots, [d, f] = (0, R.useState)(e), p = (e, n) => {
r(e), f(e), a(e.prefixes), s(""), t(n);
}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Pk, {
title: "推送发现",
onSubmit: (e) => {
e.preventDefault();
@@ -50885,14 +50952,14 @@ function Mye({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => G(Aye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(U(e)));
+ c.run("save", (e) => G(Mye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(U(e)));
},
children: [
- /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
- /* @__PURE__ */ (0, B.jsx)(Mk, {
+ /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(jk, {
label: "新文件落地就入库",
description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",
- children: /* @__PURE__ */ (0, B.jsx)(aL, {
+ children: /* @__PURE__ */ (0, B.jsx)(iL, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@ -50902,10 +50969,10 @@ function Mye({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, B.jsx)(Mk, {
+ /* @__PURE__ */ (0, B.jsx)(jk, {
label: "监视本机文件夹",
description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",
- children: /* @__PURE__ */ (0, B.jsx)(aL, {
+ children: /* @__PURE__ */ (0, B.jsx)(iL, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@ -50915,10 +50982,10 @@ function Mye({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, B.jsx)(Mk, {
+ /* @__PURE__ */ (0, B.jsx)(jk, {
label: "接收 CloudDrive2 通知",
description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",
- children: /* @__PURE__ */ (0, B.jsx)(aL, {
+ children: /* @__PURE__ */ (0, B.jsx)(iL, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@ -50929,30 +50996,30 @@ function Mye({ initial: e, receipt: t }) {
})
})
] }),
- d.enabled ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ d.enabled ? /* @__PURE__ */ (0, B.jsx)(Ik, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [d.watch_local ? /* @__PURE__ */ (0, B.jsx)(Wk, {
+ children: /* @__PURE__ */ (0, B.jsxs)(Hk, { children: [d.watch_local ? /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "本机文件夹监视",
children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"
- }) : null, /* @__PURE__ */ (0, B.jsx)(Wk, {
+ }) : null, /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "已入库",
children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`
})] })
}) : null,
- d.enabled && d.cloud ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, B.jsx)(Ik, {
divided: !0,
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, B.jsx)(Vk, { children: "CloudDrive2 配置内容" }),
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
+ /* @__PURE__ */ (0, B.jsx)(Bk, { children: "CloudDrive2 配置内容" }),
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
d.config_toml ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsx)(J, {
size: "small",
onClick: () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));
},
children: "复制配置"
- }) }), /* @__PURE__ */ (0, B.jsx)(Gk, {
+ }) }), /* @__PURE__ */ (0, B.jsx)(Wk, {
summary: "查看这段配置",
children: /* @__PURE__ */ (0, B.jsx)("div", {
className: "relative",
@@ -50963,17 +51030,17 @@ function Mye({ initial: e, receipt: t }) {
children: d.config_toml
})
})
- })] }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
+ })] }) : /* @__PURE__ */ (0, B.jsx)(Rk, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
]
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, B.jsx)(Ik, {
divided: !0,
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, B.jsx)(Vk, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
+ /* @__PURE__ */ (0, B.jsx)(Bk, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
/* @__PURE__ */ (0, B.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -50981,7 +51048,7 @@ function Mye({ initial: e, receipt: t }) {
children: i.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -50990,19 +51057,19 @@ function Mye({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, B.jsx)(Ok, {
+ /* @__PURE__ */ (0, B.jsx)(Dk, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: u.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {
id: e,
children: e
}, e))
}),
- /* @__PURE__ */ (0, B.jsx)(LM, {
- icon: bT,
+ /* @__PURE__ */ (0, B.jsx)(IM, {
+ icon: yT,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
@@ -51020,15 +51087,15 @@ function Mye({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ o || c.error ? /* @__PURE__ */ (0, B.jsx)(Ik, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: o || c.error })
+ children: /* @__PURE__ */ (0, B.jsx)(zk, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, B.jsxs)(Rk, {
+ /* @__PURE__ */ (0, B.jsxs)(Lk, {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, B.jsx)(J, {
onClick: () => {
- c.run("secret", (e) => G(jye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(U(e)));
+ c.run("secret", (e) => G(Nye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(U(e)));
},
disabled: !n.available,
...X(c.busy === "secret"),
@@ -51045,29 +51112,29 @@ function Mye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var Nye = (e) => kR.find(([t]) => t === e)?.[1] ?? e, Pye = async (e) => (await G(Jve, { initial: e })).path, PR = (e = "") => ({
+var Fye = (e) => OR.find(([t]) => t === e)?.[1] ?? e, Iye = async (e) => (await G(Xve, { initial: e })).path, NR = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function Fye(e) {
- let t = e.media_sources?.filter((e) => kR.some(([t]) => t === e.location));
+function Lye(e) {
+ let t = e.media_sources?.filter((e) => OR.some(([t]) => t === e.location));
return t?.length ? t.map((e) => ({
path: e.path,
location: e.location,
root: e.root,
library: e.library || "",
library_icon: e.library_icon || ""
- })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => PR(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => NR(e));
}
-var Iye = (e) => !(e instanceof zS) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Lye({ data: e, receipt: t }) {
+var Rye = (e) => !(e instanceof RS) || e.status !== 400 ? null : e.body?.errors ?? null;
+function zye({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.editable ? /* @__PURE__ */ (0, B.jsx)(Rye, {
+ e.editable ? /* @__PURE__ */ (0, B.jsx)(Bye, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -51075,33 +51142,33 @@ function Lye({ data: e, receipt: t }) {
title: "只读",
children: e.notice
}),
- /* @__PURE__ */ (0, B.jsx)(Bye, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, B.jsx)(Mye, {
+ /* @__PURE__ */ (0, B.jsx)(Hye, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, B.jsx)(Pye, {
initial: e.push_discovery,
receipt: t
}) : null,
- e.downloads ? /* @__PURE__ */ (0, B.jsx)(gye, {
+ e.downloads ? /* @__PURE__ */ (0, B.jsx)(vye, {
initial: e.downloads,
receipt: t
}) : null,
- e.downloads ? /* @__PURE__ */ (0, B.jsx)(Eye, { receipt: t }) : null
+ e.downloads ? /* @__PURE__ */ (0, B.jsx)(Oye, { receipt: t }) : null
]
});
}
-function Rye({ data: e, receipt: t }) {
- let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = Sye({
- initial: () => Fye(e),
- blank: () => PR(),
- pickFolder: Pye,
+function Bye({ data: e, receipt: t }) {
+ let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = wye({
+ initial: () => Lye(e),
+ blank: () => NR(),
+ pickFolder: Iye,
describe: U
- }), [d, f] = (0, R.useState)(String(e.port)), [p, m] = (0, R.useState)(!1), [h, g] = (0, R.useState)(""), [_, v] = (0, R.useState)(""), [y, b] = (0, R.useState)(null), x = (0, R.useRef)(e.revision), S = IE();
+ }), [d, f] = (0, R.useState)(String(e.port)), [p, m] = (0, R.useState)(!1), [h, g] = (0, R.useState)(""), [_, v] = (0, R.useState)(""), [y, b] = (0, R.useState)(null), x = (0, R.useRef)(e.revision), S = FE();
(0, R.useEffect)(() => {
if (!y) return;
- let e = setTimeout(() => location.assign(y.url), cye);
+ let e = setTimeout(() => location.assign(y.url), uye);
return () => clearTimeout(e);
}, [y]);
let C = (r) => {
- r.preventDefault(), v(""), S.run("save", (t) => G(yR, {
+ r.preventDefault(), v(""), S.run("save", (t) => G(vR, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -51110,18 +51177,18 @@ function Rye({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, s([]), g(""), t("已保存配置"), b(e);
}, (e) => {
- let t = Iye(e);
+ let t = Rye(e);
s(t?.media_dirs ?? []), g(t?.port ?? ""), t || v(U(e));
});
};
- if (y) return /* @__PURE__ */ (0, B.jsx)(Fk, {
+ if (y) return /* @__PURE__ */ (0, B.jsx)(Pk, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsxs)(Y, {
+ children: /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsxs)(Y, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, B.jsx)(Pk, {
+ /* @__PURE__ */ (0, B.jsx)(Nk, {
href: y.url,
size: "small",
children: "进入馆藏"
@@ -51130,20 +51197,20 @@ function Rye({ data: e, receipt: t }) {
]
}) })
});
- let w = n.some((e) => xye(e.location)), T = w ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ let w = n.some((e) => Cye(e.location)), T = w ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
+ return /* @__PURE__ */ (0, B.jsxs)(Pk, {
title: "这台电脑",
onSubmit: C,
- children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ children: [/* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, B.jsx)(Vk, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, B.jsx)(Bk, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, B.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
className: "flex flex-col gap-3",
- children: n.map((t, i) => /* @__PURE__ */ (0, B.jsxs)(Cye, {
+ children: n.map((t, i) => /* @__PURE__ */ (0, B.jsxs)(Tye, {
label: `媒体文件夹 ${i + 1}`,
path: t.path,
onPath: (e) => r(i, { path: e }),
@@ -51153,7 +51220,7 @@ function Rye({ data: e, receipt: t }) {
onPick: () => void l(i),
onRemove: n.length > 1 ? () => a(i) : void 0,
children: [
- /* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
@@ -51162,19 +51229,19 @@ function Rye({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "媒体库图标" }), /* @__PURE__ */ (0, B.jsx)(kye, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Bk, { children: "媒体库图标" }), /* @__PURE__ */ (0, B.jsx)(jye, {
label: `媒体库图标 ${i + 1}`,
value: t.library_icon,
kind: t.location,
onChange: (e) => r(i, { library_icon: e })
})]
}),
- /* @__PURE__ */ (0, B.jsx)(wye, {
+ /* @__PURE__ */ (0, B.jsx)(Eye, {
index: i,
value: t.location,
onChange: (e) => r(i, { location: e })
}),
- e.windows === !1 ? /* @__PURE__ */ (0, B.jsx)(Tye, {
+ e.windows === !1 ? /* @__PURE__ */ (0, B.jsx)(Dye, {
value: t.root,
onChange: (e) => r(i, { root: e })
}) : null
@@ -51188,18 +51255,18 @@ function Rye({ data: e, receipt: t }) {
})
]
}),
- w ? /* @__PURE__ */ (0, B.jsx)(dye, {}) : null,
- T.map((e) => /* @__PURE__ */ (0, B.jsxs)(zk, { children: [
+ w ? /* @__PURE__ */ (0, B.jsx)(pye, {}) : null,
+ T.map((e) => /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, B.jsxs)(Hk, {
+ /* @__PURE__ */ (0, B.jsxs)(Vk, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, B.jsx)(zk, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, B.jsx)(Ck, {
+ e.windows === !1 ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, B.jsx)(Sk, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -51209,7 +51276,7 @@ function Rye({ data: e, receipt: t }) {
isInvalid: !!h,
hint: h || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, B.jsx)(qM, {
+ /* @__PURE__ */ (0, B.jsx)(KM, {
isSelected: p,
onChange: m,
children: "保存后扫描并补全资料"
@@ -51219,7 +51286,7 @@ function Rye({ data: e, receipt: t }) {
title: "没有保存",
children: _
}) : null
- ] }), /* @__PURE__ */ (0, B.jsx)(Rk, {
+ ] }), /* @__PURE__ */ (0, B.jsx)(Lk, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, B.jsx)(J, {
type: "submit",
@@ -51229,7 +51296,7 @@ function Rye({ data: e, receipt: t }) {
})]
});
}
-function zye({ online: e }) {
+function Vye({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, B.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -51253,21 +51320,21 @@ function zye({ online: e }) {
}), "未检测"]
});
}
-function Bye({ data: e }) {
- let t = e.media_sources, n = IE();
- return t ? /* @__PURE__ */ (0, B.jsxs)(Fk, {
+function Hye({ data: e }) {
+ let t = e.media_sources, n = FE();
+ return t ? /* @__PURE__ */ (0, B.jsxs)(Pk, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, B.jsx)(Uk, { children: t.map((e, t) => /* @__PURE__ */ (0, B.jsxs)(Wk, {
- term: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: AR(e.location) }), Nye(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, B.jsx)(zye, { online: e.online })]
+ /* @__PURE__ */ (0, B.jsx)(Hk, { children: t.map((e, t) => /* @__PURE__ */ (0, B.jsxs)(Uk, {
+ term: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Gk, { mark: kR(e.location) }), Fye(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, B.jsx)(Vye, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ n.error ? /* @__PURE__ */ (0, B.jsx)(Ik, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: n.error })
+ children: /* @__PURE__ */ (0, B.jsx)(zk, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
- onClick: () => void n.run("refresh", (e) => xR(e), (e) => p.setQueryData(bR, e)),
+ /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ onClick: () => void n.run("refresh", (e) => bR(e), (e) => p.setQueryData(yR, e)),
...X(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -51276,8 +51343,8 @@ function Bye({ data: e }) {
}
//#endregion
//#region src/react/settings/password-pair.tsx
-function Vye({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Ck, {
+function Uye({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Sk, {
id: "access-password",
type: "password",
label: e,
@@ -51290,7 +51357,7 @@ function Vye({ label: e, password: t, confirmation: n, onPassword: r, onConfirma
validationBehavior: "aria",
isInvalid: !a && !!o,
hint: a ? s : o || s
- }), /* @__PURE__ */ (0, B.jsx)(Ck, {
+ }), /* @__PURE__ */ (0, B.jsx)(Sk, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -51307,13 +51374,13 @@ function Vye({ label: e, password: t, confirmation: n, onPassword: r, onConfirma
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var Hye = {
+var Wye = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function Uye({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)({}), m = (0, R.useRef)(null), h = IE(), g = (e) => {
+function Gye({ initial: e, receipt: t }) {
+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)({}), m = (0, R.useRef)(null), h = FE(), g = (e) => {
e.preventDefault();
let f = {};
if (n.mode === "password" && !i && (f.current_password = "请输入当前访问密码"), u || ((o.length < 8 || o.length > 256) && (f.password = "访问密码需为 8–256 个字符"), o !== c && (f.confirmation = "两次输入的密码不一致")), p(f), Object.keys(f).length) {
@@ -51330,28 +51397,28 @@ function Uye({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof zS ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof RS ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(U(e));
});
- }, _ = Hye[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ }, _ = Wye[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, B.jsxs)(Pk, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, B.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
- _ ? /* @__PURE__ */ (0, B.jsx)(zk, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
+ _ ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, B.jsx)(qM, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, B.jsx)(KM, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, B.jsx)(Ck, {
+ n.mode === "password" ? /* @__PURE__ */ (0, B.jsx)(Sk, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -51364,7 +51431,7 @@ function Uye({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, B.jsx)(Vye, {
+ v ? /* @__PURE__ */ (0, B.jsx)(Uye, {
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
password: o,
confirmation: c,
@@ -51380,9 +51447,9 @@ function Uye({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, B.jsx)(Rk, {
+ }), v ? /* @__PURE__ */ (0, B.jsx)(Lk, {
status: "保存后立即生效。",
children: /* @__PURE__ */ (0, B.jsx)(J, {
type: "submit",
@@ -51394,19 +51461,19 @@ function Uye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var Wye = 2e3, Gye = [["quick", "临时链接"], ["named", "命名隧道"]], Kye = {
+var Kye = 2e3, qye = [["quick", "临时链接"], ["named", "命名隧道"]], Jye = {
quick: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。",
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
-function qye({ revision: e, initial: t, receipt: n }) {
- let [r, i] = (0, R.useState)(t), [a, o] = (0, R.useState)(e), [s, c] = (0, R.useState)(t.mode), [l, u] = (0, R.useState)(t.hostname), [d, f] = (0, R.useState)(""), [m, h] = (0, R.useState)({}), g = IE(), _ = r.state === "starting" || r.state === "running", v = r.named_available && s === "named";
+function Yye({ revision: e, initial: t, receipt: n }) {
+ let [r, i] = (0, R.useState)(t), [a, o] = (0, R.useState)(e), [s, c] = (0, R.useState)(t.mode), [l, u] = (0, R.useState)(t.hostname), [d, f] = (0, R.useState)(""), [m, h] = (0, R.useState)({}), g = FE(), _ = r.state === "starting" || r.state === "running", v = r.named_available && s === "named";
(0, R.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- xR(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (p.setQueryData(bR, t), i(t.tunnel), o(t.revision));
+ bR(e.signal).then((t) => {
+ e.signal.aborted || !t.tunnel || (p.setQueryData(yR, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, Wye);
+ }, Kye);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -51421,30 +51488,30 @@ function qye({ revision: e, initial: t, receipt: n }) {
}, "POST", e), (e) => {
i(e), o(e.revision), c(e.mode), u(e.hostname), f(""), n(e);
}, (e) => {
- let t = e instanceof zS ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof RS ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? h(n) : g.setError(U(e));
});
};
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Pk, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), y("save", _, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
- r.named_available ? /* @__PURE__ */ (0, B.jsx)(vA, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
+ r.named_available ? /* @__PURE__ */ (0, B.jsx)(gA, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: _,
onChange: (e) => c(e),
- className: yA,
- children: Gye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(VO, {
+ className: _A,
+ children: qye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(BO, {
value: e,
- className: bA,
+ className: vA,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, B.jsx)(zk, { children: Kye[v ? "named" : "quick"] }),
- v ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Ck, {
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: Jye[v ? "named" : "quick"] }),
+ v ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Sk, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -51455,7 +51522,7 @@ function qye({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!m.hostname,
hint: m.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"
- }), /* @__PURE__ */ (0, B.jsx)(Ck, {
+ }), /* @__PURE__ */ (0, B.jsx)(Sk, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -51475,7 +51542,7 @@ function qye({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, B.jsx)(Hk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Vk, {
href: r.url,
children: r.url
})
@@ -51485,9 +51552,9 @@ function qye({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: r.error }) : null,
- g.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: g.error }) : null
- ] }), /* @__PURE__ */ (0, B.jsxs)(Rk, {
+ r.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: r.error }) : null,
+ g.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: g.error }) : null
+ ] }), /* @__PURE__ */ (0, B.jsxs)(Lk, {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
children: [/* @__PURE__ */ (0, B.jsx)(J, {
onClick: () => y("toggle", !_, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
@@ -51503,24 +51570,24 @@ function qye({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var Jye = [
+var Xye = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function Yye({ data: e, receipt: t }) {
+function Zye({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, B.jsx)(Xye, {
+ e.peach_proxy ? /* @__PURE__ */ (0, B.jsx)(Qye, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, B.jsx)(Uye, {
+ e.access ? /* @__PURE__ */ (0, B.jsx)(Gye, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, B.jsx)(qye, {
+ e.tunnel ? /* @__PURE__ */ (0, B.jsx)(Yye, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -51528,9 +51595,9 @@ function Yye({ data: e, receipt: t }) {
]
});
}
-function Xye({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.mode), [o, s] = (0, R.useState)(""), c = IE();
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+function Qye({ initial: e, receipt: t }) {
+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.mode), [o, s] = (0, R.useState)(""), c = FE();
+ return /* @__PURE__ */ (0, B.jsxs)(Pk, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -51542,25 +51609,25 @@ function Xye({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsx)(Mk, {
+ /* @__PURE__ */ (0, B.jsx)(Fk, { children: /* @__PURE__ */ (0, B.jsx)(jk, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, B.jsx)(Ok, {
+ children: /* @__PURE__ */ (0, B.jsx)(Dk, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: Jye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: Xye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Ok, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, B.jsxs)(Lk, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, B.jsxs)(Ik, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, B.jsx)(Ck, {
+ i === "proxy" ? /* @__PURE__ */ (0, B.jsx)(Sk, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -51574,10 +51641,10 @@ function Xye({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
type: "submit",
...X(c.busy === "save"),
children: "保存配置"
@@ -51587,10 +51654,10 @@ function Xye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function Zye({ receipt: e, reopenTutorial: t }) {
- let n = TS({
- queryKey: bR,
- queryFn: ({ signal: e }) => xR(e)
+function $ye({ receipt: e, reopenTutorial: t }) {
+ let n = wS({
+ queryKey: yR,
+ queryFn: ({ signal: e }) => bR(e)
}), r = n.data;
if (!r) return /* @__PURE__ */ (0, B.jsx)("div", {
className: "configpage",
@@ -51611,22 +51678,22 @@ function Zye({ receipt: e, reopenTutorial: t }) {
className: "configgroup",
children: "通用"
}) : null,
- a ? /* @__PURE__ */ (0, B.jsx)(Qve, { ...i }) : null,
+ a ? /* @__PURE__ */ (0, B.jsx)(eye, { ...i }) : null,
/* @__PURE__ */ (0, B.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, B.jsx)(Lye, { ...i }),
+ /* @__PURE__ */ (0, B.jsx)(zye, { ...i }),
o ? /* @__PURE__ */ (0, B.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- o ? /* @__PURE__ */ (0, B.jsx)(Yye, { ...i }) : null,
+ o ? /* @__PURE__ */ (0, B.jsx)(Zye, { ...i }) : null,
/* @__PURE__ */ (0, B.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ (0, B.jsx)(rye, {
+ /* @__PURE__ */ (0, B.jsx)(aye, {
...i,
reopenTutorial: t
})
@@ -51635,14 +51702,14 @@ function Zye({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var Qye = "/api/stats", FR = ["stats"], IR = (e) => W(Qye, e);
-async function $ye(e) {
+var ebe = "/api/stats", PR = ["stats"], FR = (e) => W(ebe, e);
+async function tbe(e) {
await p.fetchQuery({
- queryKey: FR,
- queryFn: () => IR(e)
+ queryKey: PR,
+ queryFn: () => FR(e)
});
}
-var LR = (e, t) => t ? Math.round(e / t * 100) : 0, ebe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, RR = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, zR = (e) => (e.max_reached || 0) * 100, tbe = (e) => e.kind === "online" ? "在线直接观看" : RR(e) < zR(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", nbe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, rbe = (e) => Math.max(1, ...e) * 1.1, ibe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), abe = {
+var IR = (e, t) => t ? Math.round(e / t * 100) : 0, nbe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, LR = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, RR = (e) => (e.max_reached || 0) * 100, rbe = (e) => e.kind === "online" ? "在线直接观看" : LR(e) < RR(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", ibe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, abe = (e) => Math.max(1, ...e) * 1.1, obe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), sbe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -51650,18 +51717,18 @@ var LR = (e, t) => t ? Math.round(e / t * 100) : 0, ebe = (e) => e >= 3600 ? `${
audio: "音频",
account: "账号",
other: "其它文件"
-}, obe = (e) => e.map((e) => ({
- name: abe[e.k] ?? e.k,
+}, cbe = (e) => e.map((e) => ({
+ name: sbe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), sbe = {
+})).sort((e, t) => t.value - e.value), lbe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, BR = (e, t = {}) => e.map((e) => ({
+}, zR = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), cbe = (e) => BR(e, sbe), lbe = [
+})), ube = (e) => zR(e, lbe), dbe = [
[
1,
1,
@@ -51697,49 +51764,49 @@ var LR = (e, t) => t ? Math.round(e / t * 100) : 0, ebe = (e) => e >= 3600 ? `${
Infinity,
"≥10 次"
]
-], ube = (e) => lbe.map(([t, n, r]) => ({
+], fbe = (e) => dbe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), dbe = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
-function VR(e) {
- return typeof e == "string" && dbe.includes(e);
+})), pbe = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
+function BR(e) {
+ return typeof e == "string" && pbe.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
-var fbe = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
-function HR(e) {
- return typeof e == "string" && fbe.has(e);
+var mbe = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
+function VR(e) {
+ return typeof e == "string" && mbe.has(e);
}
-function UR(e) {
+function HR(e) {
return typeof e == "string" && e.startsWith("data-");
}
-function WR(e) {
+function UR(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (HR(n) || UR(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (VR(n) || HR(n)) && (t[n] = e[n]);
return t;
}
-function GR(e) {
+function WR(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, R.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return WR(t);
+ return UR(t);
}
- return typeof e == "object" && !Array.isArray(e) ? WR(e) : null;
+ return typeof e == "object" && !Array.isArray(e) ? UR(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
-function KR(e) {
+function GR(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (HR(n) || UR(n) || VR(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (VR(n) || HR(n) || BR(n)) && (t[n] = e[n]);
return t;
}
-function pbe(e) {
- return e == null ? null : /*#__PURE__*/ (0, R.isValidElement)(e) ? KR(e.props) : typeof e == "object" && !Array.isArray(e) ? KR(e) : null;
+function hbe(e) {
+ return e == null ? null : /*#__PURE__*/ (0, R.isValidElement)(e) ? GR(e.props) : typeof e == "object" && !Array.isArray(e) ? GR(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var mbe = [
+var gbe = [
"children",
"width",
"height",
@@ -51749,25 +51816,25 @@ var mbe = [
"title",
"desc"
];
-function qR() {
- return qR = Object.assign ? Object.assign.bind() : function(e) {
+function KR() {
+ return KR = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, qR.apply(null, arguments);
+ }, KR.apply(null, arguments);
}
-function hbe(e, t) {
+function _be(e, t) {
if (e == null) return {};
- var n, r, i = gbe(e, t);
+ var n, r, i = vbe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function gbe(e, t) {
+function vbe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -51776,14 +51843,14 @@ function gbe(e, t) {
}
return n;
}
-var JR = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = hbe(e, mbe), d = a || {
+var qR = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = _be(e, gbe), d = a || {
width: r,
height: i,
x: 0,
y: 0
}, f = Sh("recharts-surface", o);
- return /*#__PURE__*/ R.createElement("svg", qR({}, KR(u), {
+ return /*#__PURE__*/ R.createElement("svg", KR({}, GR(u), {
className: f,
width: r,
height: i,
@@ -51791,26 +51858,26 @@ var JR = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,
ref: t
}), /*#__PURE__*/ R.createElement("title", null, c), /*#__PURE__*/ R.createElement("desc", null, l), n);
-}), _be = ["children", "className"];
-function YR() {
- return YR = Object.assign ? Object.assign.bind() : function(e) {
+}), ybe = ["children", "className"];
+function JR() {
+ return JR = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, YR.apply(null, arguments);
+ }, JR.apply(null, arguments);
}
-function vbe(e, t) {
+function bbe(e, t) {
if (e == null) return {};
- var n, r, i = ybe(e, t);
+ var n, r, i = xbe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function ybe(e, t) {
+function xbe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -51819,39 +51886,39 @@ function ybe(e, t) {
}
return n;
}
-var XR = /*#__PURE__*/ R.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = vbe(e, _be), a = Sh("recharts-layer", r);
- return /*#__PURE__*/ R.createElement("g", YR({ className: a }, KR(i), { ref: t }), n);
-}), ZR = /*#__PURE__*/ (0, R.createContext)(null), bbe = () => (0, R.useContext)(ZR);
+var YR = /*#__PURE__*/ R.forwardRef((e, t) => {
+ var { children: n, className: r } = e, i = bbe(e, ybe), a = Sh("recharts-layer", r);
+ return /*#__PURE__*/ R.createElement("g", JR({ className: a }, GR(i), { ref: t }), n);
+}), XR = /*#__PURE__*/ (0, R.createContext)(null), Sbe = () => (0, R.useContext)(XR);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
-function QR(e) {
+function ZR(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
-var $R = Math.cos, ez = Math.sin, tz = Math.sqrt, nz = Math.PI;
-nz / 2;
-var rz = 2 * nz, iz = Math.PI, az = 2 * iz, oz = 1e-6, xbe = az - oz;
-function sz(e) {
+var QR = Math.cos, $R = Math.sin, ez = Math.sqrt, tz = Math.PI;
+tz / 2;
+var nz = 2 * tz, rz = Math.PI, iz = 2 * rz, az = 1e-6, Cbe = iz - az;
+function oz(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function Sbe(e) {
+function wbe(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
- if (t > 15) return sz;
+ if (t > 15) return oz;
let n = 10 ** t;
return function(e) {
this._ += e[0];
for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
};
}
-var cz = class {
+var sz = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? sz : Sbe(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? oz : wbe(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -51872,18 +51939,18 @@ var cz = class {
if (e = +e, t = +t, n = +n, r = +r, i = +i, i < 0) throw Error(`negative radius: ${i}`);
let a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;
- else if (d > oz) {
- if (!(Math.abs(u * s - c * l) > oz) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
+ else if (d > az) {
+ if (!(Math.abs(u * s - c * l) > az) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
else {
- let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((iz - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > oz && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
+ let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((rz - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > az && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
}
}
}
arc(e, t, n, r, i, a) {
if (e = +e, t = +t, n = +n, a = !!a, n < 0) throw Error(`negative radius: ${n}`);
let o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
- this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > oz || Math.abs(this._y1 - l) > oz) && this._append`L${c},${l}`, n && (d < 0 && (d = d % az + az), d > xbe ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > oz && this._append`A${n},${n},0,${+(d >= iz)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
+ this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > az || Math.abs(this._y1 - l) > az) && this._append`L${c},${l}`, n && (d < 0 && (d = d % iz + iz), d > Cbe ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > az && this._append`A${n},${n},0,${+(d >= rz)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
}
rect(e, t, n, r) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
@@ -51892,10 +51959,10 @@ var cz = class {
return this._;
}
};
-cz.prototype;
+sz.prototype;
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js
-function lz(e) {
+function cz(e) {
let t = 3;
return e.digits = function(n) {
if (!arguments.length) return t;
@@ -51906,18 +51973,18 @@ function lz(e) {
t = e;
}
return e;
- }, () => new cz(t);
+ }, () => new sz(t);
}
Array.prototype.slice;
-function uz(e) {
+function lz(e) {
return typeof e == "object" && "length" in e ? e : Array.from(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linear.js
-function dz(e) {
+function uz(e) {
this._context = e;
}
-dz.prototype = {
+uz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -51940,33 +52007,33 @@ dz.prototype = {
}
}
};
-function fz(e) {
- return new dz(e);
+function dz(e) {
+ return new uz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js
-function pz(e) {
+function fz(e) {
return e[0];
}
-function mz(e) {
+function pz(e) {
return e[1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js
-function hz(e, t) {
- var n = QR(!0), r = null, i = fz, a = null, o = lz(s);
- e = typeof e == "function" ? e : e === void 0 ? pz : QR(e), t = typeof t == "function" ? t : t === void 0 ? mz : QR(t);
+function mz(e, t) {
+ var n = ZR(!0), r = null, i = dz, a = null, o = cz(s);
+ e = typeof e == "function" ? e : e === void 0 ? fz : ZR(e), t = typeof t == "function" ? t : t === void 0 ? pz : ZR(t);
function s(s) {
- var c, l = (s = uz(s)).length, u, d = !1, f;
+ var c, l = (s = lz(s)).length, u, d = !1, f;
for (r ?? (a = i(f = o())), c = 0; c <= l; ++c) !(c < l && n(u = s[c], c, s)) === d && ((d = !d) ? a.lineStart() : a.lineEnd()), d && a.point(+e(u, c, s), +t(u, c, s));
if (f) return a = null, f + "" || null;
}
return s.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : QR(+t), s) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : ZR(+t), s) : e;
}, s.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : QR(+e), s) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : ZR(+e), s) : t;
}, s.defined = function(e) {
- return arguments.length ? (n = typeof e == "function" ? e : QR(!!e), s) : n;
+ return arguments.length ? (n = typeof e == "function" ? e : ZR(!!e), s) : n;
}, s.curve = function(e) {
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
}, s.context = function(e) {
@@ -51975,11 +52042,11 @@ function hz(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js
-function gz(e, t, n) {
- var r = null, i = QR(!0), a = null, o = fz, s = null, c = lz(l);
- e = typeof e == "function" ? e : e === void 0 ? pz : QR(+e), t = typeof t == "function" ? t : QR(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? mz : QR(+n);
+function hz(e, t, n) {
+ var r = null, i = ZR(!0), a = null, o = dz, s = null, c = cz(l);
+ e = typeof e == "function" ? e : e === void 0 ? fz : ZR(+e), t = typeof t == "function" ? t : ZR(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? pz : ZR(+n);
function l(l) {
- var u, d, f, p = (l = uz(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
+ var u, d, f, p = (l = lz(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
for (a ?? (s = o(g = c())), u = 0; u <= p; ++u) {
if (!(u < p && i(m = l[u], u, l)) === h) {
if (h = !h) d = u, s.areaStart(), s.lineStart();
@@ -51993,20 +52060,20 @@ function gz(e, t, n) {
if (g) return s = null, g + "" || null;
}
function u() {
- return hz().defined(i).curve(o).context(a);
+ return mz().defined(i).curve(o).context(a);
}
return l.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : QR(+t), r = null, l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : ZR(+t), r = null, l) : e;
}, l.x0 = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : QR(+t), l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : ZR(+t), l) : e;
}, l.x1 = function(e) {
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : QR(+e), l) : r;
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : ZR(+e), l) : r;
}, l.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : QR(+e), n = null, l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : ZR(+e), n = null, l) : t;
}, l.y0 = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : QR(+e), l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : ZR(+e), l) : t;
}, l.y1 = function(e) {
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : QR(+e), l) : n;
+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : ZR(+e), l) : n;
}, l.lineX0 = l.lineY0 = function() {
return u().x(e).y(t);
}, l.lineY1 = function() {
@@ -52014,7 +52081,7 @@ function gz(e, t, n) {
}, l.lineX1 = function() {
return u().x(r).y(t);
}, l.defined = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : QR(!!e), l) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : ZR(!!e), l) : i;
}, l.curve = function(e) {
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
}, l.context = function(e) {
@@ -52023,7 +52090,7 @@ function gz(e, t, n) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js
-var _z = class {
+var gz = class {
constructor(e, t) {
this._context = e, this._x = t;
}
@@ -52050,70 +52117,70 @@ var _z = class {
this._x0 = e, this._y0 = t;
}
};
-function Cbe(e) {
- return new _z(e, !0);
+function Tbe(e) {
+ return new gz(e, !0);
}
-function wbe(e) {
- return new _z(e, !1);
+function Ebe(e) {
+ return new gz(e, !1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js
-var vz = { draw(e, t) {
- let n = tz(t / nz);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, rz);
-} }, Tbe = { draw(e, t) {
- let n = tz(t / 5) / 2;
+var _z = { draw(e, t) {
+ let n = ez(t / tz);
+ e.moveTo(n, 0), e.arc(0, 0, n, 0, nz);
+} }, Dbe = { draw(e, t) {
+ let n = ez(t / 5) / 2;
e.moveTo(-3 * n, -n), e.lineTo(-n, -n), e.lineTo(-n, -3 * n), e.lineTo(n, -3 * n), e.lineTo(n, -n), e.lineTo(3 * n, -n), e.lineTo(3 * n, n), e.lineTo(n, n), e.lineTo(n, 3 * n), e.lineTo(-n, 3 * n), e.lineTo(-n, n), e.lineTo(-3 * n, n), e.closePath();
-} }, yz = tz(1 / 3), Ebe = yz * 2, Dbe = { draw(e, t) {
- let n = tz(t / Ebe), r = n * yz;
+} }, vz = ez(1 / 3), Obe = vz * 2, kbe = { draw(e, t) {
+ let n = ez(t / Obe), r = n * vz;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, Obe = { draw(e, t) {
- let n = tz(t), r = -n / 2;
+} }, Abe = { draw(e, t) {
+ let n = ez(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, kbe = .8908130915292852, bz = ez(nz / 10) / ez(7 * nz / 10), Abe = ez(rz / 10) * bz, jbe = -$R(rz / 10) * bz, Mbe = { draw(e, t) {
- let n = tz(t * kbe), r = Abe * n, i = jbe * n;
+} }, jbe = .8908130915292852, yz = $R(tz / 10) / $R(7 * tz / 10), Mbe = $R(nz / 10) * yz, Nbe = -QR(nz / 10) * yz, Pbe = { draw(e, t) {
+ let n = ez(t * jbe), r = Mbe * n, i = Nbe * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
- let a = rz * t / 5, o = $R(a), s = ez(a);
+ let a = nz * t / 5, o = QR(a), s = $R(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, xz = tz(3), Nbe = { draw(e, t) {
- let n = -tz(t / (xz * 3));
- e.moveTo(0, n * 2), e.lineTo(-xz * n, -n), e.lineTo(xz * n, -n), e.closePath();
-} }, Sz = -.5, Cz = tz(3) / 2, wz = 1 / tz(12), Pbe = (wz / 2 + 1) * 3, Fbe = { draw(e, t) {
- let n = tz(t / Pbe), r = n / 2, i = n * wz, a = r, o = n * wz + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(Sz * r - Cz * i, Cz * r + Sz * i), e.lineTo(Sz * a - Cz * o, Cz * a + Sz * o), e.lineTo(Sz * s - Cz * c, Cz * s + Sz * c), e.lineTo(Sz * r + Cz * i, Sz * i - Cz * r), e.lineTo(Sz * a + Cz * o, Sz * o - Cz * a), e.lineTo(Sz * s + Cz * c, Sz * c - Cz * s), e.closePath();
+} }, bz = ez(3), Fbe = { draw(e, t) {
+ let n = -ez(t / (bz * 3));
+ e.moveTo(0, n * 2), e.lineTo(-bz * n, -n), e.lineTo(bz * n, -n), e.closePath();
+} }, xz = -.5, Sz = ez(3) / 2, Cz = 1 / ez(12), Ibe = (Cz / 2 + 1) * 3, Lbe = { draw(e, t) {
+ let n = ez(t / Ibe), r = n / 2, i = n * Cz, a = r, o = n * Cz + n, s = -a, c = o;
+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(xz * r - Sz * i, Sz * r + xz * i), e.lineTo(xz * a - Sz * o, Sz * a + xz * o), e.lineTo(xz * s - Sz * c, Sz * s + xz * c), e.lineTo(xz * r + Sz * i, xz * i - Sz * r), e.lineTo(xz * a + Sz * o, xz * o - Sz * a), e.lineTo(xz * s + Sz * c, xz * c - Sz * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function Ibe(e, t) {
- let n = null, r = lz(i);
- e = typeof e == "function" ? e : QR(e || vz), t = typeof t == "function" ? t : QR(t === void 0 ? 64 : +t);
+function Rbe(e, t) {
+ let n = null, r = cz(i);
+ e = typeof e == "function" ? e : ZR(e || _z), t = typeof t == "function" ? t : ZR(t === void 0 ? 64 : +t);
function i() {
let i;
if (n ||= i = r(), e.apply(this, arguments).draw(n, +t.apply(this, arguments)), i) return n = null, i + "" || null;
}
return i.type = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : QR(t), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : ZR(t), i) : e;
}, i.size = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : QR(+e), i) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : ZR(+e), i) : t;
}, i.context = function(e) {
return arguments.length ? (n = e ?? null, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/noop.js
-function Tz() {}
+function wz() {}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js
-function Ez(e, t, n) {
+function Tz(e, t, n) {
e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
}
-function Dz(e) {
+function Ez(e) {
this._context = e;
}
-Dz.prototype = {
+Ez.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -52125,7 +52192,7 @@ Dz.prototype = {
},
lineEnd: function() {
switch (this._point) {
- case 3: Ez(this, this._x1, this._y1);
+ case 3: Tz(this, this._x1, this._y1);
case 2: this._context.lineTo(this._x1, this._y1);
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
@@ -52139,22 +52206,22 @@ Dz.prototype = {
this._point = 2;
break;
case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
- default: Ez(this, e, t);
+ default: Tz(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Lbe(e) {
- return new Dz(e);
+function zbe(e) {
+ return new Ez(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js
-function Oz(e) {
+function Dz(e) {
this._context = e;
}
-Oz.prototype = {
- areaStart: Tz,
- areaEnd: Tz,
+Dz.prototype = {
+ areaStart: wz,
+ areaEnd: wz,
lineStart: function() {
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
},
@@ -52180,20 +52247,20 @@ Oz.prototype = {
case 2:
this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
break;
- default: Ez(this, e, t);
+ default: Tz(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Rbe(e) {
- return new Oz(e);
+function Bbe(e) {
+ return new Dz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js
-function kz(e) {
+function Oz(e) {
this._context = e;
}
-kz.prototype = {
+Oz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -52220,22 +52287,22 @@ kz.prototype = {
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
break;
case 3: this._point = 4;
- default: Ez(this, e, t);
+ default: Tz(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function zbe(e) {
- return new kz(e);
+function Vbe(e) {
+ return new Oz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js
-function Az(e) {
+function kz(e) {
this._context = e;
}
-Az.prototype = {
- areaStart: Tz,
- areaEnd: Tz,
+kz.prototype = {
+ areaStart: wz,
+ areaEnd: wz,
lineStart: function() {
this._point = 0;
},
@@ -52246,30 +52313,30 @@ Az.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function Bbe(e) {
- return new Az(e);
+function Hbe(e) {
+ return new kz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js
-function jz(e) {
+function Az(e) {
return e < 0 ? -1 : 1;
}
-function Mz(e, t, n) {
+function jz(e, t, n) {
var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
- return (jz(a) + jz(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
+ return (Az(a) + Az(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
}
-function Nz(e, t) {
+function Mz(e, t) {
var n = e._x1 - e._x0;
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
}
-function Pz(e, t, n) {
+function Nz(e, t, n) {
var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
}
-function Fz(e) {
+function Pz(e) {
this._context = e;
}
-Fz.prototype = {
+Pz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -52284,7 +52351,7 @@ Fz.prototype = {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
- case 3: Pz(this, this._t0, Nz(this, this._t0));
+ case 3: Nz(this, this._t0, Mz(this, this._t0));
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
},
@@ -52299,24 +52366,24 @@ Fz.prototype = {
this._point = 2;
break;
case 2:
- this._point = 3, Pz(this, Nz(this, n = Mz(this, e, t)), n);
+ this._point = 3, Nz(this, Mz(this, n = jz(this, e, t)), n);
break;
- default: Pz(this, this._t0, n = Mz(this, e, t));
+ default: Nz(this, this._t0, n = jz(this, e, t));
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
}
}
};
-function Iz(e) {
- this._context = new Lz(e);
+function Fz(e) {
+ this._context = new Iz(e);
}
-(Iz.prototype = Object.create(Fz.prototype)).point = function(e, t) {
- Fz.prototype.point.call(this, t, e);
+(Fz.prototype = Object.create(Pz.prototype)).point = function(e, t) {
+ Pz.prototype.point.call(this, t, e);
};
-function Lz(e) {
+function Iz(e) {
this._context = e;
}
-Lz.prototype = {
+Iz.prototype = {
moveTo: function(e, t) {
this._context.moveTo(t, e);
},
@@ -52330,18 +52397,18 @@ Lz.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function Vbe(e) {
- return new Fz(e);
+function Ube(e) {
+ return new Pz(e);
}
-function Hbe(e) {
- return new Iz(e);
+function Wbe(e) {
+ return new Fz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js
-function Rz(e) {
+function Lz(e) {
this._context = e;
}
-Rz.prototype = {
+Lz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -52355,7 +52422,7 @@ Rz.prototype = {
var e = this._x, t = this._y, n = e.length;
if (n) {
if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
- else for (var r = zz(e), i = zz(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
+ else for (var r = Rz(e), i = Rz(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
}
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
},
@@ -52363,7 +52430,7 @@ Rz.prototype = {
this._x.push(+e), this._y.push(+t);
}
};
-function zz(e) {
+function Rz(e) {
var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
@@ -52371,15 +52438,15 @@ function zz(e) {
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
return [i, a];
}
-function Ube(e) {
- return new Rz(e);
+function Gbe(e) {
+ return new Lz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js
-function Bz(e, t) {
+function zz(e, t) {
this._context = e, this._t = t;
}
-Bz.prototype = {
+zz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -52407,78 +52474,78 @@ Bz.prototype = {
this._x = e, this._y = t;
}
};
-function Wbe(e) {
- return new Bz(e, .5);
+function Kbe(e) {
+ return new zz(e, .5);
}
-function Gbe(e) {
- return new Bz(e, 0);
+function qbe(e) {
+ return new zz(e, 0);
}
-function Kbe(e) {
- return new Bz(e, 1);
+function Jbe(e) {
+ return new zz(e, 1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js
-function Vz(e, t) {
+function Bz(e, t) {
if ((o = e.length) > 1) for (var n = 1, r, i, a = e[t[0]], o, s = a.length; n < o; ++n) for (i = a, a = e[t[n]], r = 0; r < s; ++r) a[r][1] += a[r][0] = isNaN(i[r][1]) ? i[r][0] : i[r][1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/order/none.js
-function Hz(e) {
+function Vz(e) {
for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;
return n;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js
-function qbe(e, t) {
+function Ybe(e, t) {
return e[t];
}
-function Jbe(e) {
+function Xbe(e) {
let t = [];
return t.key = e, t;
}
-function Ybe() {
- var e = QR([]), t = Hz, n = Vz, r = qbe;
+function Zbe() {
+ var e = ZR([]), t = Vz, n = Bz, r = Ybe;
function i(i) {
- var a = Array.from(e.apply(this, arguments), Jbe), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), Xbe), o, s = a.length, c = -1, l;
for (let e of i) for (o = 0, ++c; o < s; ++o) (a[o][c] = [0, +r(e, a[o].key, c, i)]).data = e;
- for (o = 0, l = uz(t(a)); o < s; ++o) a[l[o]].index = o;
+ for (o = 0, l = lz(t(a)); o < s; ++o) a[l[o]].index = o;
return n(a, l), a;
}
return i.keys = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : QR(Array.from(t)), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : ZR(Array.from(t)), i) : e;
}, i.value = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : QR(+e), i) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : ZR(+e), i) : r;
}, i.order = function(e) {
- return arguments.length ? (t = e == null ? Hz : typeof e == "function" ? e : QR(Array.from(e)), i) : t;
+ return arguments.length ? (t = e == null ? Vz : typeof e == "function" ? e : ZR(Array.from(e)), i) : t;
}, i.offset = function(e) {
- return arguments.length ? (n = e ?? Vz, i) : n;
+ return arguments.length ? (n = e ?? Bz, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function Xbe(e, t) {
+function Qbe(e, t) {
if ((r = e.length) > 0) {
for (var n, r, i = 0, a = e[0].length, o; i < a; ++i) {
for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0;
if (o) for (n = 0; n < r; ++n) e[n][i][1] /= o;
}
- Vz(e, t);
+ Bz(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function Zbe(e, t) {
+function $be(e, t) {
if ((i = e.length) > 0) {
for (var n = 0, r = e[t[0]], i, a = r.length; n < a; ++n) {
for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;
r[n][1] += r[n][0] = -s / 2;
}
- Vz(e, t);
+ Bz(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function Qbe(e, t) {
+function exe(e, t) {
if (!(!((o = e.length) > 0) || !((a = (i = e[t[0]]).length) > 0))) {
for (var n = 0, r = 1, i, a, o; r < a; ++r) {
for (var s = 0, c = 0, l = 0; s < o; ++s) {
@@ -52490,53 +52557,53 @@ function Qbe(e, t) {
}
i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
}
- i[r - 1][1] += i[r - 1][0] = n, Vz(e, t);
+ i[r - 1][1] += i[r - 1][0] = n, Bz(e, t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
-function Uz(e) {
+function Hz(e) {
return e === "__proto__";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var $be = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
-function Wz(e) {
+var txe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+function Uz(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : $be.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : txe.test(e);
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
-function Gz(e) {
+function Wz(e) {
return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs
-function Kz(e) {
+function Gz(e) {
return typeof e == "symbol" || e instanceof Symbol;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function exe(e) {
- return e == null ? "" : qz(e);
+function nxe(e) {
+ return e == null ? "" : Kz(e);
}
-function qz(e) {
+function Kz(e) {
if (typeof e == "string") return e;
- if (Array.isArray(e)) return e.map(qz).join(",");
- if (Kz(e)) return e.toString();
+ if (Array.isArray(e)) return e.map(Kz).join(",");
+ if (Gz(e)) return e.toString();
let t = e + "";
return t === "0" && Object.is(Number(e), -0) ? "-0" : t;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toPath.mjs
-function Jz(e) {
- if (Array.isArray(e)) return e.map(Gz);
+function qz(e) {
+ if (Array.isArray(e)) return e.map(Wz);
if (typeof e == "symbol") return [e];
- e = exe(e);
+ e = nxe(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -52564,100 +52631,100 @@ function Jz(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
-function Yz(e, t, n) {
+function Jz(e, t, n) {
if (e == null) return n;
switch (typeof t) {
case "string": {
- if (Uz(t)) return n;
+ if (Hz(t)) return n;
let r = e[t];
- return r === void 0 ? Wz(t) && !Object.hasOwn(e, t) ? Yz(e, Jz(t), n) : n : r;
+ return r === void 0 ? Uz(t) && !Object.hasOwn(e, t) ? Jz(e, qz(t), n) : n : r;
}
case "number":
case "symbol": {
- typeof t == "number" && (t = Gz(t));
+ typeof t == "number" && (t = Wz(t));
let r = e[t];
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return txe(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), Uz(t)) return n;
+ if (Array.isArray(t)) return rxe(e, t, n);
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), Hz(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function txe(e, t, n) {
+function rxe(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
- if (r == null || Uz(t[e])) return n;
+ if (r == null || Hz(t[e])) return n;
r = r[t[e]];
}
return r === void 0 ? n : r;
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var nxe = 4;
-function Xz(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : nxe), n = Math.round(e * t) / t;
+var ixe = 4;
+function Yz(e) {
+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ixe), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
-function Zz(e) {
+function Xz(e) {
var t = [...arguments].slice(1);
return e.reduce((e, n, r) => {
var i = t[r - 1];
- return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + Xz(i) + n;
+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + Yz(i) + n;
}, "");
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var Qz = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, $z = (e) => typeof e == "number" && e != +e, eB = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !$z(e), tB = (e) => Z(e) || typeof e == "string", rxe = 0, nB = (e) => {
- var t = ++rxe;
+var Zz = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, Qz = (e) => typeof e == "number" && e != +e, $z = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !Qz(e), eB = (e) => Z(e) || typeof e == "string", axe = 0, tB = (e) => {
+ var t = ++axe;
return `${e || ""}${t}`;
-}, rB = function(e, t) {
+}, nB = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, r = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
if (!Z(e) && typeof e != "string") return n;
var i;
- if (eB(e)) {
+ if ($z(e)) {
if (t == null) return n;
var a = e.indexOf("%");
i = t * parseFloat(e.slice(0, a)) / 100;
} else i = +e;
- return $z(i) && (i = n), r && t != null && i > t && (i = t), i;
-}, iB = (e) => {
+ return Qz(i) && (i = n), r && t != null && i > t && (i = t), i;
+}, rB = (e) => {
if (!Array.isArray(e)) return !1;
for (var t = e.length, n = {}, r = 0; r < t; r++) if (!n[String(e[r])]) n[String(e[r])] = !0;
else return !0;
return !1;
};
-function aB(e, t, n) {
- return Z(e) && Z(t) ? Xz(e + n * (t - e)) : t;
+function iB(e, t, n) {
+ return Z(e) && Z(t) ? Yz(e + n * (t - e)) : t;
}
-function oB(e, t, n) {
- if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : Yz(e, t)) === n);
+function aB(e, t, n) {
+ if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : Jz(e, t)) === n);
}
-var sB = (e) => e == null, cB = (e) => sB(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
-function lB(e) {
+var oB = (e) => e == null, sB = (e) => oB(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
+function cB(e) {
return e != null;
}
-function uB() {}
+function lB() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var ixe = [
+var oxe = [
"type",
"size",
"sizeType"
];
-function dB() {
- return dB = Object.assign ? Object.assign.bind() : function(e) {
+function uB() {
+ return uB = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, dB.apply(null, arguments);
+ }, uB.apply(null, arguments);
}
-function fB(e, t) {
+function dB(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52667,30 +52734,30 @@ function fB(e, t) {
}
return n;
}
-function pB(e) {
+function fB(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? fB(Object(n), !0).forEach(function(t) {
- axe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fB(Object(n)).forEach(function(t) {
+ t % 2 ? dB(Object(n), !0).forEach(function(t) {
+ sxe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function axe(e, t, n) {
- return (t = oxe(t)) in e ? Object.defineProperty(e, t, {
+function sxe(e, t, n) {
+ return (t = cxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function oxe(e) {
- var t = sxe(e, "string");
+function cxe(e) {
+ var t = lxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function sxe(e, t) {
+function lxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52700,16 +52767,16 @@ function sxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function cxe(e, t) {
+function uxe(e, t) {
if (e == null) return {};
- var n, r, i = lxe(e, t);
+ var n, r, i = dxe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function lxe(e, t) {
+function dxe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -52718,68 +52785,68 @@ function lxe(e, t) {
}
return n;
}
-var mB = {
- symbolCircle: vz,
- symbolCross: Tbe,
- symbolDiamond: Dbe,
- symbolSquare: Obe,
- symbolStar: Mbe,
- symbolTriangle: Nbe,
- symbolWye: Fbe
-}, uxe = Math.PI / 180, dxe = (e) => mB[`symbol${cB(e)}`] || vz, fxe = (e, t, n) => {
+var pB = {
+ symbolCircle: _z,
+ symbolCross: Dbe,
+ symbolDiamond: kbe,
+ symbolSquare: Abe,
+ symbolStar: Pbe,
+ symbolTriangle: Fbe,
+ symbolWye: Lbe
+}, fxe = Math.PI / 180, pxe = (e) => pB[`symbol${sB(e)}`] || _z, mxe = (e, t, n) => {
if (t === "area") return e;
switch (n) {
case "cross": return 5 * e * e / 9;
case "diamond": return .5 * e * e / Math.sqrt(3);
case "square": return e * e;
case "star":
- var r = 18 * uxe;
+ var r = 18 * fxe;
return 1.25 * e * e * (Math.tan(r) - Math.tan(r * 2) * Math.tan(r) ** 2);
case "triangle": return Math.sqrt(3) * e * e / 4;
case "wye": return (21 - 10 * Math.sqrt(3)) * e * e / 8;
default: return Math.PI * e * e / 4;
}
-}, pxe = (e, t) => {
- mB[`symbol${cB(e)}`] = t;
-}, hB = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = pB(pB({}, cxe(e, ixe)), {}, {
+}, hxe = (e, t) => {
+ pB[`symbol${sB(e)}`] = t;
+}, mB = (e) => {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = fB(fB({}, uxe(e, oxe)), {}, {
type: t,
size: n,
sizeType: r
}), a = "circle";
typeof t == "string" && (a = t);
var o = () => {
- var e = dxe(a), t = Ibe().type(e).size(fxe(n, r, a))();
+ var e = pxe(a), t = Rbe().type(e).size(mxe(n, r, a))();
if (t !== null) return t;
- }, { className: s, cx: c, cy: l } = i, u = KR(i);
- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ R.createElement("path", dB({}, u, {
+ }, { className: s, cx: c, cy: l } = i, u = GR(i);
+ return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ R.createElement("path", uB({}, u, {
className: Sh("recharts-symbols", s),
transform: `translate(${c}, ${l})`,
d: o()
})) : null;
};
-hB.registerSymbol = pxe;
+mB.registerSymbol = hxe;
//#endregion
//#region node_modules/recharts/es6/util/types.js
-var gB = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, _B = (e, t) => {
+var hB = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, gB = (e, t) => {
if (!e || typeof e == "function" || typeof e == "boolean") return null;
var n = e;
if (/*#__PURE__*/ (0, R.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;
var r = {};
return Object.keys(n).forEach((e) => {
- VR(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
+ BR(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, mxe = (e, t, n) => (r) => (e(t, n, r), null), vB = (e, t, n) => {
+}, gxe = (e, t, n) => (r) => (e(t, n, r), null), _B = (e, t, n) => {
if (e === null || typeof e != "object" && typeof e != "function") return null;
var r = null;
return Object.keys(e).forEach((i) => {
var a = e[i];
- VR(i) && typeof a == "function" && (r ||= {}, r[i] = mxe(a, t, n));
+ BR(i) && typeof a == "function" && (r ||= {}, r[i] = gxe(a, t, n));
}), r;
};
//#endregion
//#region node_modules/recharts/es6/util/resolveDefaultProps.js
-function yB(e, t) {
+function vB(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52789,30 +52856,30 @@ function yB(e, t) {
}
return n;
}
-function hxe(e) {
+function _xe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? yB(Object(n), !0).forEach(function(t) {
- gxe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yB(Object(n)).forEach(function(t) {
+ t % 2 ? vB(Object(n), !0).forEach(function(t) {
+ vxe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function gxe(e, t, n) {
- return (t = _xe(t)) in e ? Object.defineProperty(e, t, {
+function vxe(e, t, n) {
+ return (t = yxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function _xe(e) {
- var t = vxe(e, "string");
+function yxe(e) {
+ var t = bxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function vxe(e, t) {
+function bxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52822,22 +52889,22 @@ function vxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function bB(e, t) {
- var n = hxe({}, e), r = t;
+function yB(e, t) {
+ var n = _xe({}, e), r = t;
return Object.keys(t).reduce((e, t) => (e[t] === void 0 && r[t] !== void 0 && (e[t] = r[t]), e), n);
}
//#endregion
//#region node_modules/recharts/es6/component/DefaultLegendContent.js
-function xB() {
- return xB = Object.assign ? Object.assign.bind() : function(e) {
+function bB() {
+ return bB = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, xB.apply(null, arguments);
+ }, bB.apply(null, arguments);
}
-function SB(e, t) {
+function xB(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52847,30 +52914,30 @@ function SB(e, t) {
}
return n;
}
-function CB(e) {
+function SB(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? SB(Object(n), !0).forEach(function(t) {
- yxe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SB(Object(n)).forEach(function(t) {
+ t % 2 ? xB(Object(n), !0).forEach(function(t) {
+ xxe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yxe(e, t, n) {
- return (t = bxe(t)) in e ? Object.defineProperty(e, t, {
+function xxe(e, t, n) {
+ return (t = Sxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bxe(e) {
- var t = xxe(e, "string");
+function Sxe(e) {
+ var t = Cxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xxe(e, t) {
+function Cxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52880,7 +52947,7 @@ function xxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var wB = 32, Sxe = {
+var CB = 32, wxe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -52888,20 +52955,20 @@ var wB = 32, Sxe = {
verticalAlign: "middle",
labelStyle: {}
};
-function Cxe(e) {
+function Txe(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function wxe(e) {
- var { data: t, iconType: n, inactiveColor: r } = e, i = wB / 2, a = wB / 6, o = wB / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
+function Exe(e) {
+ var { data: t, iconType: n, inactiveColor: r } = e, i = CB / 2, a = CB / 6, o = CB / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ R.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
- strokeDasharray: Cxe(t.payload),
+ strokeDasharray: Txe(t.payload),
x1: 0,
y1: i,
- x2: wB,
+ x2: CB,
y2: i,
className: "recharts-legend-icon"
});
@@ -52911,35 +52978,35 @@ function wxe(e) {
stroke: s,
d: `M0,${i}h${o}
A${a},${a},0,1,1,${2 * o},${i}
- H${wB}M${2 * o},${i}
+ H${CB}M${2 * o},${i}
A${a},${a},0,1,1,${o},${i}`,
className: "recharts-legend-icon"
});
if (c === "rect") return /*#__PURE__*/ R.createElement("path", {
stroke: "none",
fill: s,
- d: `M0,${wB / 8}h${wB}v${wB * 3 / 4}h${-wB}z`,
+ d: `M0,${CB / 8}h${CB}v${CB * 3 / 4}h${-CB}z`,
className: "recharts-legend-icon"
});
if (/*#__PURE__*/ R.isValidElement(t.legendIcon)) {
- var l = CB({}, t);
+ var l = SB({}, t);
return delete l.legendIcon, /*#__PURE__*/ R.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ R.createElement(hB, {
+ return /*#__PURE__*/ R.createElement(mB, {
fill: s,
cx: i,
cy: i,
- size: wB,
+ size: CB,
sizeType: "diameter",
type: c
});
}
-function Txe(e) {
+function Dxe(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
- width: wB,
- height: wB
+ width: CB,
+ height: CB
}, l = {
display: r === "horizontal" ? "inline-block" : "block",
marginRight: 10
@@ -52955,20 +53022,20 @@ function Txe(e) {
inactive: t.inactive
});
if (t.type === "none") return null;
- var p = typeof s == "object" ? CB({}, s) : {};
+ var p = typeof s == "object" ? SB({}, s) : {};
p.color = t.inactive ? a : p.color || t.color;
var m = d ? d(t.value, t, r) : t.value;
- return /*#__PURE__*/ R.createElement("li", xB({
+ return /*#__PURE__*/ R.createElement("li", bB({
className: f,
style: l,
key: `legend-item-${r}`
- }, vB(e, t, r)), /*#__PURE__*/ R.createElement(JR, {
+ }, _B(e, t, r)), /*#__PURE__*/ R.createElement(qR, {
width: n,
height: n,
viewBox: c,
style: u,
"aria-label": `${m} legend icon`
- }, /*#__PURE__*/ R.createElement(wxe, {
+ }, /*#__PURE__*/ R.createElement(Exe, {
data: t,
iconType: o,
inactiveColor: a
@@ -52978,8 +53045,8 @@ function Txe(e) {
}, m));
});
}
-var Exe = (e) => {
- var t = bB(e, Sxe), { payload: n, layout: r, align: i } = t;
+var Oxe = (e) => {
+ var t = yB(e, wxe), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -52989,11 +53056,11 @@ var Exe = (e) => {
return /*#__PURE__*/ R.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ R.createElement(Txe, xB({}, t, { payload: n })));
+ }, /*#__PURE__*/ R.createElement(Dxe, bB({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function Dxe(e, t) {
+function kxe(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -53003,77 +53070,77 @@ function Dxe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function Oxe(e, t) {
+function Axe(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
}
//#endregion
//#region node_modules/es-toolkit/dist/function/identity.mjs
-function TB(e) {
+function wB(e) {
return e;
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function kxe(e) {
+function jxe(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
-function EB(e) {
- return e != null && typeof e != "function" && kxe(e.length);
+function TB(e) {
+ return e != null && typeof e != "function" && jxe(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function Axe(e) {
+function Mxe(e) {
return function(t) {
- return Yz(t, e);
+ return Jz(t, e);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
-function DB(e) {
+function EB(e) {
return e == null || typeof e != "object" && typeof e != "function";
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function jxe(e) {
+function Nxe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function Mxe(e) {
+function Pxe(e) {
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
-function OB(e) {
+function DB(e) {
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs
-var Nxe = "[object RegExp]", kB = "[object String]", AB = "[object Number]", jB = "[object Boolean]", MB = "[object Arguments]", Pxe = "[object Symbol]", Fxe = "[object Date]", Ixe = "[object Map]", Lxe = "[object Set]", Rxe = "[object Array]", zxe = "[object ArrayBuffer]", Bxe = "[object Object]", Vxe = "[object DataView]", Hxe = "[object Uint8Array]", Uxe = "[object Uint8ClampedArray]", Wxe = "[object Uint16Array]", Gxe = "[object Uint32Array]", Kxe = "[object Int8Array]", qxe = "[object Int16Array]", Jxe = "[object Int32Array]", Yxe = "[object Float32Array]", Xxe = "[object Float64Array]", NB = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var Fxe = "[object RegExp]", OB = "[object String]", kB = "[object Number]", AB = "[object Boolean]", jB = "[object Arguments]", Ixe = "[object Symbol]", Lxe = "[object Date]", Rxe = "[object Map]", zxe = "[object Set]", Bxe = "[object Array]", Vxe = "[object ArrayBuffer]", Hxe = "[object Object]", Uxe = "[object DataView]", Wxe = "[object Uint8Array]", Gxe = "[object Uint8ClampedArray]", Kxe = "[object Uint16Array]", qxe = "[object Uint32Array]", Jxe = "[object Int8Array]", Yxe = "[object Int16Array]", Xxe = "[object Int32Array]", Zxe = "[object Float32Array]", Qxe = "[object Float64Array]", MB = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
return this;
})();
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isBuffer.mjs
-function Zxe(e) {
- return NB.Buffer !== void 0 && NB.Buffer.isBuffer(e);
+function $xe(e) {
+ return MB.Buffer !== void 0 && MB.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function Qxe(e, t) {
- return PB(e, void 0, e, /* @__PURE__ */ new Map(), t);
+function eSe(e, t) {
+ return NB(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
-function PB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
+function NB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let a = i?.(e, t, n, r);
if (a !== void 0) return a;
- if (DB(e)) return e;
+ if (EB(e)) return e;
if (r.has(e)) return r.get(e);
if (Array.isArray(e)) {
let t = Array(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = PB(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = NB(e[a], a, n, r, i);
return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
}
if (e instanceof Date) return new Date(e.getTime());
@@ -53084,132 +53151,132 @@ function PB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
if (e instanceof Map) {
let t = /* @__PURE__ */ new Map();
r.set(e, t);
- for (let [a, o] of e) t.set(a, PB(o, a, n, r, i));
+ for (let [a, o] of e) t.set(a, NB(o, a, n, r, i));
return t;
}
if (e instanceof Set) {
let t = /* @__PURE__ */ new Set();
r.set(e, t);
- for (let a of e) t.add(PB(a, void 0, n, r, i));
+ for (let a of e) t.add(NB(a, void 0, n, r, i));
return t;
}
- if (Zxe(e)) return e.subarray();
- if (jxe(e)) {
+ if ($xe(e)) return e.subarray();
+ if (Nxe(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = PB(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = NB(e[a], a, n, r, i);
return t;
}
if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
if (e instanceof DataView) {
let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
- return r.set(e, t), FB(t, e, n, r, i), t;
+ return r.set(e, t), PB(t, e, n, r, i), t;
}
if (typeof File < "u" && e instanceof File) {
let t = new File([e], e.name, { type: e.type });
- return r.set(e, t), FB(t, e, n, r, i), t;
+ return r.set(e, t), PB(t, e, n, r, i), t;
}
if (typeof Blob < "u" && e instanceof Blob) {
let t = new Blob([e], { type: e.type });
- return r.set(e, t), FB(t, e, n, r, i), t;
+ return r.set(e, t), PB(t, e, n, r, i), t;
}
if (e instanceof Error) {
let t = structuredClone(e);
- return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, FB(t, e, n, r, i), t;
+ return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, PB(t, e, n, r, i), t;
}
if (e instanceof Boolean) {
let t = new Boolean(e.valueOf());
- return r.set(e, t), FB(t, e, n, r, i), t;
+ return r.set(e, t), PB(t, e, n, r, i), t;
}
if (e instanceof Number) {
let t = new Number(e.valueOf());
- return r.set(e, t), FB(t, e, n, r, i), t;
+ return r.set(e, t), PB(t, e, n, r, i), t;
}
if (e instanceof String) {
let t = new String(e.valueOf());
- return r.set(e, t), FB(t, e, n, r, i), t;
+ return r.set(e, t), PB(t, e, n, r, i), t;
}
- if (typeof e == "object" && $xe(e)) {
+ if (typeof e == "object" && tSe(e)) {
let t = Object.create(Object.getPrototypeOf(e));
- return r.set(e, t), FB(t, e, n, r, i), t;
+ return r.set(e, t), PB(t, e, n, r, i), t;
}
return e;
}
-function FB(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...Mxe(t)];
+function PB(e, t, n = e, r, i) {
+ let a = [...Object.keys(t), ...Pxe(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
- (c == null || c.writable) && (e[s] = PB(t[s], s, n, r, i));
+ (c == null || c.writable) && (e[s] = NB(t[s], s, n, r, i));
}
}
-function $xe(e) {
- switch (OB(e)) {
- case MB:
- case Rxe:
- case zxe:
- case Vxe:
+function tSe(e) {
+ switch (DB(e)) {
case jB:
- case Fxe:
- case Yxe:
- case Xxe:
- case Kxe:
- case qxe:
- case Jxe:
- case Ixe:
- case AB:
case Bxe:
- case Nxe:
+ case Vxe:
+ case Uxe:
+ case AB:
case Lxe:
+ case Zxe:
+ case Qxe:
+ case Jxe:
+ case Yxe:
+ case Xxe:
+ case Rxe:
case kB:
- case Pxe:
case Hxe:
- case Uxe:
+ case Fxe:
+ case zxe:
+ case OB:
+ case Ixe:
case Wxe:
- case Gxe: return !0;
+ case Gxe:
+ case Kxe:
+ case qxe: return !0;
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
-function eSe(e) {
- return PB(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
+function nSe(e) {
+ return NB(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/eq.mjs
-function IB(e, t) {
+function FB(e, t) {
return e === t || Number.isNaN(e) && Number.isNaN(t);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
-function LB(e) {
+function IB(e) {
return e !== null && (typeof e == "object" || typeof e == "function");
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs
-function RB(e, t, n) {
- return typeof n == "function" ? zB(e, t, function e(t, r, i, a, o, s) {
+function LB(e, t, n) {
+ return typeof n == "function" ? RB(e, t, function e(t, r, i, a, o, s) {
let c = n(t, r, i, a, o, s);
- return c === void 0 ? zB(t, r, e, s, !1) : !!c;
- }, /* @__PURE__ */ new Map(), !0) : RB(e, t, () => void 0);
+ return c === void 0 ? RB(t, r, e, s, !1) : !!c;
+ }, /* @__PURE__ */ new Map(), !0) : LB(e, t, () => void 0);
}
-function zB(e, t, n, r, i = !1) {
+function RB(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return tSe(e, t, n, r, i);
- case "function": return Object.keys(t).length > 0 ? zB(e, { ...t }, n, r, i) : IB(e, t);
- default: return LB(e) && i ? typeof t != "string" || t === "" : IB(e, t);
+ case "object": return rSe(e, t, n, r, i);
+ case "function": return Object.keys(t).length > 0 ? RB(e, { ...t }, n, r, i) : FB(e, t);
+ default: return IB(e) && i ? typeof t != "string" || t === "" : FB(e, t);
}
}
-function tSe(e, t, n, r, i = !1) {
+function rSe(e, t, n, r, i = !1) {
if (t == null) return !0;
- if (Array.isArray(t)) return BB(e, t, n, r);
- if (t instanceof Map) return nSe(e, t, n, r);
- if (t instanceof Set) return rSe(e, t, n, r);
+ if (Array.isArray(t)) return zB(e, t, n, r);
+ if (t instanceof Map) return iSe(e, t, n, r);
+ if (t instanceof Set) return aSe(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
- if (i) DB(e) && (e = Object(e));
+ if (i) EB(e) && (e = Object(e));
else {
- let t = OB(e);
+ let t = DB(e);
if (t !== "[object Object]" && t !== "[object Arguments]") return !1;
}
if (a.length === 0) return !0;
@@ -53225,13 +53292,13 @@ function tSe(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function nSe(e, t, n, r) {
+function iSe(e, t, n, r) {
if (t.size === 0) return !0;
if (!(e instanceof Map)) return !1;
for (let [i, a] of t.entries()) if (n(e.get(i), a, i, e, t, r) === !1) return !1;
return !0;
}
-function BB(e, t, n, r) {
+function zB(e, t, n, r) {
if (t.length === 0) return !0;
if (!Array.isArray(e)) return !1;
let i = /* @__PURE__ */ new Set();
@@ -53249,40 +53316,40 @@ function BB(e, t, n, r) {
}
return !0;
}
-function rSe(e, t, n, r) {
- return t.size === 0 || e instanceof Set && BB([...e], [...t], n, r);
+function aSe(e, t, n, r) {
+ return t.size === 0 || e instanceof Set && zB([...e], [...t], n, r);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs
-function VB(e, t) {
- return RB(e, t, () => void 0);
+function BB(e, t) {
+ return LB(e, t, () => void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function iSe(e) {
- return e = eSe(e), (t) => VB(t, e);
+function oSe(e) {
+ return e = nSe(e), (t) => BB(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function aSe(e, t) {
- return Qxe(e, (n, r, i, a) => {
+function sSe(e, t) {
+ return eSe(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
- if (OB(e) === "[object Object]" && typeof e.constructor != "function") {
+ if (DB(e) === "[object Object]" && typeof e.constructor != "function") {
let t = {};
- return a.set(e, t), FB(t, e, i, a), t;
+ return a.set(e, t), PB(t, e, i, a), t;
}
switch (Object.prototype.toString.call(e)) {
- case AB:
case kB:
- case jB: {
+ case OB:
+ case AB: {
let t = new e.constructor(e?.valueOf());
- return FB(t, e), t;
+ return PB(t, e), t;
}
- case MB: {
+ case jB: {
let t = {};
- return FB(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
+ return PB(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
}
default: return;
}
@@ -53291,79 +53358,79 @@ function aSe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function oSe(e) {
- return aSe(e);
+function cSe(e) {
+ return sSe(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var sSe = /^(?:0|[1-9]\d*)$/;
-function HB(e, t = 2 ** 53 - 1) {
+var lSe = /^(?:0|[1-9]\d*)$/;
+function VB(e, t = 2 ** 53 - 1) {
switch (typeof e) {
case "number": return Number.isInteger(e) && e >= 0 && e < t;
case "symbol": return !1;
- case "string": return sSe.test(e);
+ case "string": return lSe.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function cSe(e) {
- return typeof e == "object" && !!e && OB(e) === "[object Arguments]";
+function uSe(e) {
+ return typeof e == "object" && !!e && DB(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function lSe(e, t) {
+function dSe(e, t) {
let n;
- if (n = Array.isArray(t) ? t : typeof t == "string" && Wz(t) && !(t in Object(e)) ? Jz(t) : [t], n.length === 0) return !1;
+ if (n = Array.isArray(t) ? t : typeof t == "string" && Uz(t) && !(t in Object(e)) ? qz(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
- let t = Gz(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || cSe(r)) && HB(t) && Number(t) < r.length)) return !1;
+ let t = Wz(n[e]);
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || uSe(r)) && VB(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function uSe(e, t) {
+function fSe(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
- case "number": e = Gz(e);
+ case "number": e = Wz(e);
}
- return t = oSe(t), function(n) {
- let r = Yz(n, e);
- return r === void 0 ? lSe(n, e) : t === void 0 ? r === void 0 : VB(r, t);
+ return t = cSe(t), function(n) {
+ let r = Jz(n, e);
+ return r === void 0 ? dSe(n, e) : t === void 0 ? r === void 0 : BB(r, t);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs
-function UB(e) {
- if (e == null) return TB;
+function HB(e) {
+ if (e == null) return wB;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? uSe(e[0], e[1]) : iSe(e);
- default: return Axe(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? fSe(e[0], e[1]) : oSe(e);
+ default: return Mxe(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function dSe(e) {
+function pSe(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
-function WB(e, t = TB) {
- return EB(e) ? Dxe(Array.from(e), Oxe(UB(t), 1)).map(dSe) : [];
+function UB(e, t = wB) {
+ return TB(e) ? kxe(Array.from(e), Axe(HB(t), 1)).map(pSe) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
-function GB(e, t, n) {
- return t === !0 ? WB(e, n) : typeof t == "function" ? WB(e, t) : e;
+function WB(e, t, n) {
+ return t === !0 ? UB(e, n) : typeof t == "function" ? UB(e, t) : e;
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var fSe = /* @__PURE__ */ Ct(((e) => {
+var mSe = /* @__PURE__ */ Ct(((e) => {
var t = At(), n = Jh();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -53408,60 +53475,60 @@ var fSe = /* @__PURE__ */ Ct(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), pSe = /* @__PURE__ */ Ct(((e, t) => {
- t.exports = fSe();
-})), KB = /*#__PURE__*/ (0, R.createContext)(null), mSe = pSe(), hSe = (e) => e, qB = () => {
- var e = (0, R.useContext)(KB);
- return e ? e.store.dispatch : hSe;
-}, JB = () => {}, gSe = () => JB, _Se = (e, t) => e === t;
+})), hSe = /* @__PURE__ */ Ct(((e, t) => {
+ t.exports = mSe();
+})), GB = /*#__PURE__*/ (0, R.createContext)(null), gSe = hSe(), _Se = (e) => e, KB = () => {
+ var e = (0, R.useContext)(GB);
+ return e ? e.store.dispatch : _Se;
+}, qB = () => {}, vSe = () => qB, ySe = (e, t) => e === t;
function Q(e) {
- var t = (0, R.useContext)(KB), n = (0, R.useMemo)(() => t ? (t) => {
+ var t = (0, R.useContext)(GB), n = (0, R.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
- } : JB, [t, e]);
- return (0, mSe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : gSe, t ? t.store.getState : JB, t ? t.store.getState : JB, n, _Se);
+ } : qB, [t, e]);
+ return (0, gSe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : vSe, t ? t.store.getState : qB, t ? t.store.getState : qB, n, ySe);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function vSe(e, t = `expected a function, instead received ${typeof e}`) {
+function bSe(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function ySe(e, t = `expected an object, instead received ${typeof e}`) {
+function xSe(e, t = `expected an object, instead received ${typeof e}`) {
if (typeof e != "object") throw TypeError(t);
}
-function bSe(e, t = "expected all items to be functions, instead received the following types: ") {
+function SSe(e, t = "expected all items to be functions, instead received the following types: ") {
if (!e.every((e) => typeof e == "function")) {
let n = e.map((e) => typeof e == "function" ? `function ${e.name || "unnamed"}()` : typeof e).join(", ");
throw TypeError(`${t}[${n}]`);
}
}
-var YB = (e) => Array.isArray(e) ? e : [e];
-function xSe(e) {
+var JB = (e) => Array.isArray(e) ? e : [e];
+function CSe(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return bSe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return SSe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function SSe(e, t) {
+function wSe(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var CSe = class {
+var TSe = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, wSe = typeof WeakRef < "u" ? WeakRef : CSe, TSe = 0, XB = 1;
-function ZB() {
+}, ESe = typeof WeakRef < "u" ? WeakRef : TSe, DSe = 0, YB = 1;
+function XB() {
return {
- s: TSe,
+ s: DSe,
v: void 0,
o: null,
p: null
};
}
-function QB(e, t = {}) {
- let n = ZB(), { resultEqualityCheck: r } = t, i, a = 0;
+function ZB(e, t = {}) {
+ let n = XB(), { resultEqualityCheck: r } = t, i, a = 0;
function o() {
let t = n, { length: o } = arguments;
for (let e = 0, n = o; e < n; e++) {
@@ -53470,43 +53537,43 @@ function QB(e, t = {}) {
let e = t.o;
e === null && (t.o = e = /* @__PURE__ */ new WeakMap());
let r = e.get(n);
- r === void 0 ? (t = ZB(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = XB(), e.set(n, t)) : t = r;
} else {
let e = t.p;
e === null && (t.p = e = /* @__PURE__ */ new Map());
let r = e.get(n);
- r === void 0 ? (t = ZB(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = XB(), e.set(n, t)) : t = r;
}
}
let s = t, c;
- if (t.s === XB) c = t.v;
+ if (t.s === YB) c = t.v;
else if (c = e.apply(null, arguments), a++, r) {
let e = i?.deref?.() ?? i;
- e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new wSe(c) : c;
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new ESe(c) : c;
}
- return s.s = XB, s.v = c, c;
+ return s.s = YB, s.v = c, c;
}
return o.clearCache = () => {
- n = ZB(), o.resetResultsCount();
+ n = XB(), o.resetResultsCount();
}, o.resultsCount = () => a, o.resetResultsCount = () => {
a = 0;
}, o;
}
-function ESe(e, ...t) {
+function OSe(e, ...t) {
let n = typeof e == "function" ? {
memoize: e,
memoizeOptions: t
} : e, r = (...e) => {
let t = 0, r = 0, i, a = {}, o = e.pop();
- typeof o == "object" && (a = o, o = e.pop()), vSe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
- let { memoize: s, memoizeOptions: c = [], argsMemoize: l = QB, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
+ typeof o == "object" && (a = o, o = e.pop()), bSe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
+ let { memoize: s, memoizeOptions: c = [], argsMemoize: l = ZB, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = YB(c), p = YB(u), m = xSe(e), h = s(function() {
+ }, f = JB(c), p = JB(u), m = CSe(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
- let e = SSe(m, arguments);
+ let e = wSe(m, arguments);
return i = h.apply(null, e), i;
}, ...p);
return Object.assign(g, {
@@ -53528,14 +53595,14 @@ function ESe(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ ESe(QB), DSe = Object.assign((e, t = $) => {
- ySe(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
+var $ = /* @__PURE__ */ OSe(ZB), kSe = Object.assign((e, t = $) => {
+ xSe(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
let n = Object.keys(e);
return t(n.map((t) => e[t]), (...e) => e.reduce((e, t, r) => (e[n[r]] = t, e), {}));
-}, { withTypes: () => DSe });
+}, { withTypes: () => kSe });
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function OSe(e, t = 1) {
+function ASe(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -53546,17 +53613,17 @@ function OSe(e, t = 1) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
-function $B(e, t, n) {
- return LB(n) && (typeof t == "number" && EB(n) && HB(t) && t < n.length || typeof t == "string" && t in n) ? IB(n[t], e) : !1;
+function QB(e, t, n) {
+ return IB(n) && (typeof t == "number" && TB(n) && VB(t) && t < n.length || typeof t == "string" && t in n) ? FB(n[t], e) : !1;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
-function eV(e) {
+function $B(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var kSe = (e, t, n) => {
+var jSe = (e, t, n) => {
if (e !== t) {
- let r = eV(e), i = eV(t);
+ let r = $B(e), i = $B(t);
if (r === i && r === 0) {
if (e < t) return n === "desc" ? 1 : -1;
if (e > t) return n === "desc" ? -1 : 1;
@@ -53564,15 +53631,15 @@ var kSe = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, ASe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, jSe = /^\w*$/;
-function MSe(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || Kz(e) ? !0 : typeof e == "string" && (jSe.test(e) || !ASe.test(e)) || t != null && Object.hasOwn(t, e);
+}, MSe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, NSe = /^\w*$/;
+function PSe(e, t) {
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || Gz(e) ? !0 : typeof e == "string" && (NSe.test(e) || !MSe.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function NSe(e, t, n, r) {
+function FSe(e, t, n, r) {
if (e == null) return [];
- n = r ? void 0 : n, Array.isArray(e) || (e = EB(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
+ n = r ? void 0 : n, Array.isArray(e) || (e = TB(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
let i = (e, t) => {
let n = e, r = 0;
for (; r < t.length && n != null; ++r) n = n[t[r]];
@@ -53580,16 +53647,16 @@ function NSe(e, t, n, r) {
}, a = (e, t) => {
if (e == null) return t;
if (t != null) return typeof e == "object" && "key" in e ? Object.hasOwn(t, e.key) ? t[e.key] : i(t, e.path) : typeof e == "function" ? e(t) : Array.isArray(e) ? i(t, e) : t[e];
- }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || MSe(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || PSe(e) ? e : {
key: e,
- path: Jz(e)
+ path: qz(e)
}));
return e.map((e) => ({
original: e,
criteria: o.map((t) => a(t, e))
})).slice().sort((e, t) => {
for (let r = 0; r < o.length; r++) {
- let i = kSe(e.criteria[r], t.criteria[r], n[r]);
+ let i = jSe(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -53597,25 +53664,25 @@ function NSe(e, t, n, r) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
-function tV(e, ...t) {
+function eV(e, ...t) {
let n = t.length;
- return n > 1 && $B(e, t[0], t[1]) ? t = [] : n > 2 && $B(t[0], t[1], t[2]) && (t = [t[0]]), NSe(e, OSe(t), ["asc"]);
+ return n > 1 && QB(e, t[0], t[1]) ? t = [] : n > 2 && QB(t[0], t[1], t[2]) && (t = [t[0]]), FSe(e, ASe(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var nV = (e) => e.legend.settings, PSe = (e) => e.legend.size, FSe = $([(e) => e.legend.payload, nV], (e, t) => {
+var tV = (e) => e.legend.settings, ISe = (e) => e.legend.size, LSe = $([(e) => e.legend.payload, tV], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
- return n ? tV(r, n) : r;
+ return n ? eV(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function ISe() {
- return Q(FSe);
+function RSe() {
+ return Q(LSe);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
-var rV = 1;
-function iV() {
+var nV = 1;
+function rV() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, R.useState)({
height: 0,
left: 0,
@@ -53630,7 +53697,7 @@ function iV() {
top: r.top,
width: r.width
};
- (Math.abs(i.height - t.height) > rV || Math.abs(i.left - t.left) > rV || Math.abs(i.top - t.top) > rV || Math.abs(i.width - t.width) > rV) && n({
+ (Math.abs(i.height - t.height) > nV || Math.abs(i.left - t.left) > nV || Math.abs(i.top - t.top) > nV || Math.abs(i.width - t.width) > nV) && n({
height: i.height,
left: i.left,
top: i.top,
@@ -53647,26 +53714,26 @@ function iV() {
}
//#endregion
//#region node_modules/redux/dist/redux.mjs
-function aV(e) {
+function iV(e) {
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
}
-var oV = typeof Symbol == "function" && Symbol.observable || "@@observable", sV = () => Math.random().toString(36).substring(7).split("").join("."), cV = {
- INIT: `@@redux/INIT${/* @__PURE__ */ sV()}`,
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ sV()}`,
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${sV()}`
+var aV = typeof Symbol == "function" && Symbol.observable || "@@observable", oV = () => Math.random().toString(36).substring(7).split("").join("."), sV = {
+ INIT: `@@redux/INIT${/* @__PURE__ */ oV()}`,
+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ oV()}`,
+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${oV()}`
};
-function lV(e) {
+function cV(e) {
if (typeof e != "object" || !e) return !1;
let t = e;
for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
}
-function uV(e, t, n) {
- if (typeof e != "function") throw Error(aV(2));
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(aV(0));
+function lV(e, t, n) {
+ if (typeof e != "function") throw Error(iV(2));
+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(iV(0));
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
- if (typeof n != "function") throw Error(aV(1));
- return n(uV)(e, t);
+ if (typeof n != "function") throw Error(iV(1));
+ return n(lV)(e, t);
}
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
function l() {
@@ -53675,27 +53742,27 @@ function uV(e, t, n) {
}));
}
function u() {
- if (c) throw Error(aV(3));
+ if (c) throw Error(iV(3));
return i;
}
function d(e) {
- if (typeof e != "function") throw Error(aV(4));
- if (c) throw Error(aV(5));
+ if (typeof e != "function") throw Error(iV(4));
+ if (c) throw Error(iV(5));
let t = !0;
l();
let n = s++;
return o.set(n, e), function() {
if (t) {
- if (c) throw Error(aV(6));
+ if (c) throw Error(iV(6));
t = !1, l(), o.delete(n), a = null;
}
};
}
function f(e) {
- if (!lV(e)) throw Error(aV(7));
- if (e.type === void 0) throw Error(aV(8));
- if (typeof e.type != "string") throw Error(aV(17));
- if (c) throw Error(aV(9));
+ if (!cV(e)) throw Error(iV(7));
+ if (e.type === void 0) throw Error(iV(8));
+ if (typeof e.type != "string") throw Error(iV(17));
+ if (c) throw Error(iV(9));
try {
c = !0, i = r(i, e);
} finally {
@@ -53706,41 +53773,41 @@ function uV(e, t, n) {
}), e;
}
function p(e) {
- if (typeof e != "function") throw Error(aV(10));
- r = e, f({ type: cV.REPLACE });
+ if (typeof e != "function") throw Error(iV(10));
+ r = e, f({ type: sV.REPLACE });
}
function m() {
let e = d;
return {
subscribe(t) {
- if (typeof t != "object" || !t) throw Error(aV(11));
+ if (typeof t != "object" || !t) throw Error(iV(11));
function n() {
let e = t;
e.next && e.next(u());
}
return n(), { unsubscribe: e(n) };
},
- [oV]() {
+ [aV]() {
return this;
}
};
}
- return f({ type: cV.INIT }), {
+ return f({ type: sV.INIT }), {
dispatch: f,
subscribe: d,
getState: u,
replaceReducer: p,
- [oV]: m
+ [aV]: m
};
}
-function dV(e) {
+function uV(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
- if (n(void 0, { type: cV.INIT }) === void 0) throw Error(aV(12));
- if (n(void 0, { type: cV.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(aV(13));
+ if (n(void 0, { type: sV.INIT }) === void 0) throw Error(iV(12));
+ if (n(void 0, { type: sV.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(iV(13));
});
}
-function fV(e) {
+function dV(e) {
let t = Object.keys(e), n = {};
for (let r = 0; r < t.length; r++) {
let i = t[r];
@@ -53748,7 +53815,7 @@ function fV(e) {
}
let r = Object.keys(n), i;
try {
- dV(n);
+ uV(n);
} catch (e) {
i = e;
}
@@ -53757,124 +53824,124 @@ function fV(e) {
let a = !1, o = {};
for (let i = 0; i < r.length; i++) {
let s = r[i], c = n[s], l = e[s], u = c(l, t);
- if (u === void 0) throw t && t.type, Error(aV(14));
+ if (u === void 0) throw t && t.type, Error(iV(14));
o[s] = u, a ||= u !== l;
}
return a ||= r.length !== Object.keys(e).length, a ? o : e;
};
}
-function pV(...e) {
+function fV(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function mV(...e) {
+function pV(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
- throw Error(aV(15));
+ throw Error(iV(15));
}, o = {
getState: i.getState,
dispatch: (e, ...t) => a(e, ...t)
};
- return a = pV(...e.map((e) => e(o)))(i.dispatch), {
+ return a = fV(...e.map((e) => e(o)))(i.dispatch), {
...i,
dispatch: a
};
};
}
-function hV(e) {
- return lV(e) && "type" in e && typeof e.type == "string";
+function mV(e) {
+ return cV(e) && "type" in e && typeof e.type == "string";
}
//#endregion
//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs
-var gV = Symbol.for("immer-nothing"), _V = Symbol.for("immer-draftable"), vV = Symbol.for("immer-state");
-function yV(e, ...t) {
+var hV = Symbol.for("immer-nothing"), gV = Symbol.for("immer-draftable"), _V = Symbol.for("immer-state");
+function vV(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var bV = Object, xV = bV.getPrototypeOf, SV = "constructor", CV = "prototype", wV = "configurable", TV = "enumerable", EV = "writable", DV = "value", OV = (e) => !!e && !!e[vV];
-function kV(e) {
- return e ? jV(e) || LV(e) || !!e[_V] || !!e[SV]?.[_V] || RV(e) || zV(e) : !1;
+var yV = Object, bV = yV.getPrototypeOf, xV = "constructor", SV = "prototype", CV = "configurable", wV = "enumerable", TV = "writable", EV = "value", DV = (e) => !!e && !!e[_V];
+function OV(e) {
+ return e ? AV(e) || IV(e) || !!e[gV] || !!e[xV]?.[gV] || LV(e) || RV(e) : !1;
}
-var LSe = bV[CV][SV].toString(), AV = /* @__PURE__ */ new WeakMap();
-function jV(e) {
- if (!e || !BV(e)) return !1;
- let t = xV(e);
- if (t === null || t === bV[CV]) return !0;
- let n = bV.hasOwnProperty.call(t, SV) && t[SV];
+var zSe = yV[SV][xV].toString(), kV = /* @__PURE__ */ new WeakMap();
+function AV(e) {
+ if (!e || !zV(e)) return !1;
+ let t = bV(e);
+ if (t === null || t === yV[SV]) return !0;
+ let n = yV.hasOwnProperty.call(t, xV) && t[xV];
if (n === Object) return !0;
- if (!VV(n)) return !1;
- let r = AV.get(n);
- return r === void 0 && (r = Function.toString.call(n), AV.set(n, r)), r === LSe;
+ if (!BV(n)) return !1;
+ let r = kV.get(n);
+ return r === void 0 && (r = Function.toString.call(n), kV.set(n, r)), r === zSe;
}
-function MV(e, t, n = !0) {
- NV(e) === 0 ? (n ? Reflect.ownKeys(e) : bV.keys(e)).forEach((n) => {
+function jV(e, t, n = !0) {
+ MV(e) === 0 ? (n ? Reflect.ownKeys(e) : yV.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function NV(e) {
- let t = e[vV];
- return t ? t.type_ : LV(e) ? 1 : RV(e) ? 2 : zV(e) ? 3 : 0;
+function MV(e) {
+ let t = e[_V];
+ return t ? t.type_ : IV(e) ? 1 : LV(e) ? 2 : RV(e) ? 3 : 0;
}
-var PV = (e, t, n = NV(e)) => n === 2 ? e.has(t) : bV[CV].hasOwnProperty.call(e, t), FV = (e, t, n = NV(e)) => n === 2 ? e.get(t) : e[t], IV = (e, t, n, r = NV(e)) => {
+var NV = (e, t, n = MV(e)) => n === 2 ? e.has(t) : yV[SV].hasOwnProperty.call(e, t), PV = (e, t, n = MV(e)) => n === 2 ? e.get(t) : e[t], FV = (e, t, n, r = MV(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function RSe(e, t) {
+function BSe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-var LV = Array.isArray, RV = (e) => e instanceof Map, zV = (e) => e instanceof Set, BV = (e) => typeof e == "object", VV = (e) => typeof e == "function", HV = (e) => typeof e == "boolean";
-function zSe(e) {
+var IV = Array.isArray, LV = (e) => e instanceof Map, RV = (e) => e instanceof Set, zV = (e) => typeof e == "object", BV = (e) => typeof e == "function", VV = (e) => typeof e == "boolean";
+function VSe(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
-var UV = (e) => e.copy_ || e.base_, WV = (e) => e.modified_ ? e.copy_ : e.base_;
-function GV(e, t) {
- if (RV(e)) return new Map(e);
- if (zV(e)) return new Set(e);
- if (LV(e)) return Array[CV].slice.call(e);
- let n = jV(e);
+var HV = (e) => e.copy_ || e.base_, UV = (e) => e.modified_ ? e.copy_ : e.base_;
+function WV(e, t) {
+ if (LV(e)) return new Map(e);
+ if (RV(e)) return new Set(e);
+ if (IV(e)) return Array[SV].slice.call(e);
+ let n = AV(e);
if (t === !0 || t === "class_only" && !n) {
- let t = bV.getOwnPropertyDescriptors(e);
- delete t[vV];
+ let t = yV.getOwnPropertyDescriptors(e);
+ delete t[_V];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
- a[EV] === !1 && (a[EV] = !0, a[wV] = !0), (a.get || a.set) && (t[i] = {
- [wV]: !0,
- [EV]: !0,
- [TV]: a[TV],
- [DV]: e[i]
+ a[TV] === !1 && (a[TV] = !0, a[CV] = !0), (a.get || a.set) && (t[i] = {
+ [CV]: !0,
+ [TV]: !0,
+ [wV]: a[wV],
+ [EV]: e[i]
});
}
- return bV.create(xV(e), t);
+ return yV.create(bV(e), t);
}
{
- let t = xV(e);
+ let t = bV(e);
if (t !== null && n) return { ...e };
- let r = bV.create(t);
- return bV.assign(r, e);
- }
-}
-function KV(e, t = !1) {
- return JV(e) || OV(e) || !kV(e) ? e : (NV(e) > 1 && bV.defineProperties(e, {
- set: qV,
- add: qV,
- clear: qV,
- delete: qV
- }), bV.freeze(e), t && MV(e, (e, t) => {
- KV(t, !0);
+ let r = yV.create(t);
+ return yV.assign(r, e);
+ }
+}
+function GV(e, t = !1) {
+ return qV(e) || DV(e) || !OV(e) ? e : (MV(e) > 1 && yV.defineProperties(e, {
+ set: KV,
+ add: KV,
+ clear: KV,
+ delete: KV
+ }), yV.freeze(e), t && jV(e, (e, t) => {
+ GV(t, !0);
}, !1), e);
}
-function BSe() {
- yV(2);
+function HSe() {
+ vV(2);
}
-var qV = { [DV]: BSe };
-function JV(e) {
- return e === null || !BV(e) || bV.isFrozen(e);
+var KV = { [EV]: HSe };
+function qV(e) {
+ return e === null || !zV(e) || yV.isFrozen(e);
}
-var YV = "MapSet", XV = "Patches", ZV = "ArrayMethods", QV = {};
-function $V(e) {
- let t = QV[e];
- return t || yV(0, e), t;
+var JV = "MapSet", YV = "Patches", XV = "ArrayMethods", ZV = {};
+function QV(e) {
+ let t = ZV[e];
+ return t || vV(0, e), t;
}
-var eH = (e) => !!QV[e], tH, nH = () => tH, VSe = (e, t) => ({
+var $V = (e) => !!ZV[e], eH, tH = () => eH, USe = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -53882,114 +53949,114 @@ var eH = (e) => !!QV[e], tH, nH = () => tH, VSe = (e, t) => ({
unfinalizedDrafts_: 0,
handledSet_: /* @__PURE__ */ new Set(),
processedForPatches_: /* @__PURE__ */ new Set(),
- mapSetPlugin_: eH(YV) ? $V(YV) : void 0,
- arrayMethodsPlugin_: eH(ZV) ? $V(ZV) : void 0
+ mapSetPlugin_: $V(JV) ? QV(JV) : void 0,
+ arrayMethodsPlugin_: $V(XV) ? QV(XV) : void 0
});
-function rH(e, t) {
- t && (e.patchPlugin_ = $V(XV), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function nH(e, t) {
+ t && (e.patchPlugin_ = QV(YV), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
-function iH(e) {
- aH(e), e.drafts_.forEach(HSe), e.drafts_ = null;
+function rH(e) {
+ iH(e), e.drafts_.forEach(WSe), e.drafts_ = null;
}
-function aH(e) {
- e === tH && (tH = e.parent_);
+function iH(e) {
+ e === eH && (eH = e.parent_);
}
-var oH = (e) => tH = VSe(tH, e);
-function HSe(e) {
- let t = e[vV];
+var aH = (e) => eH = USe(eH, e);
+function WSe(e) {
+ let t = e[_V];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function sH(e, t) {
+function oH(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
if (e !== void 0 && e !== n) {
- n[vV].modified_ && (iH(t), yV(4)), kV(e) && (e = cH(t, e));
+ n[_V].modified_ && (rH(t), vV(4)), OV(e) && (e = sH(t, e));
let { patchPlugin_: r } = t;
- r && r.generateReplacementPatches_(n[vV].base_, e, t);
- } else e = cH(t, n);
- return USe(t, e, !0), iH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === gV ? void 0 : e;
-}
-function cH(e, t) {
- if (JV(t)) return t;
- let n = t[vV];
- if (!n) return pH(t, e.handledSet_, e);
- if (!uH(n, e)) return t;
+ r && r.generateReplacementPatches_(n[_V].base_, e, t);
+ } else e = sH(t, n);
+ return GSe(t, e, !0), rH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === hV ? void 0 : e;
+}
+function sH(e, t) {
+ if (qV(t)) return t;
+ let n = t[_V];
+ if (!n) return fH(t, e.handledSet_, e);
+ if (!lH(n, e)) return t;
if (!n.modified_) return n.base_;
if (!n.finalized_) {
let { callbacks_: t } = n;
if (t) for (; t.length > 0;) t.pop()(e);
- fH(n, e);
+ dH(n, e);
}
return n.copy_;
}
-function USe(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && KV(t, n);
+function GSe(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && GV(t, n);
}
-function lH(e) {
+function cH(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var uH = (e, t) => e.scope_ === t, WSe = [];
-function dH(e, t, n, r) {
- let i = UV(e), a = e.type_;
- if (r !== void 0 && FV(i, r, a) === t) {
- IV(i, r, n, a);
+var lH = (e, t) => e.scope_ === t, KSe = [];
+function uH(e, t, n, r) {
+ let i = HV(e), a = e.type_;
+ if (r !== void 0 && PV(i, r, a) === t) {
+ FV(i, r, n, a);
return;
}
if (!e.draftLocations_) {
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
- MV(i, (e, n) => {
- if (OV(n)) {
+ jV(i, (e, n) => {
+ if (DV(n)) {
let r = t.get(n) || [];
r.push(e), t.set(n, r);
}
});
}
- let o = e.draftLocations_.get(t) ?? WSe;
- for (let e of o) IV(i, e, n, a);
+ let o = e.draftLocations_.get(t) ?? KSe;
+ for (let e of o) FV(i, e, n, a);
}
-function GSe(e, t, n) {
+function qSe(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
- if (!i || !uH(i, r)) return;
+ if (!i || !lH(i, r)) return;
r.mapSetPlugin_?.fixSetContents(i);
- let a = WV(i);
- dH(e, i.draft_ ?? i, a, n), fH(i, r);
+ let a = UV(i);
+ uH(e, i.draft_ ?? i, a, n), dH(i, r);
});
}
-function fH(e, t) {
+function dH(e, t) {
if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {
let { patchPlugin_: n } = t;
if (n) {
let r = n.getPath(e);
r && n.generatePatches_(e, r, t);
}
- lH(e);
+ cH(e);
}
}
-function KSe(e, t, n) {
+function JSe(e, t, n) {
let { scope_: r } = e;
- if (OV(n)) {
- let i = n[vV];
- uH(i, r) && i.callbacks_.push(function() {
- yH(e), dH(e, n, WV(i), t);
+ if (DV(n)) {
+ let i = n[_V];
+ lH(i, r) && i.callbacks_.push(function() {
+ vH(e), uH(e, n, UV(i), t);
});
- } else kV(n) && e.callbacks_.push(function() {
- let i = UV(e);
- e.type_ === 3 ? i.has(n) && pH(n, r.handledSet_, r) : FV(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && pH(FV(e.copy_, t, e.type_), r.handledSet_, r);
+ } else OV(n) && e.callbacks_.push(function() {
+ let i = HV(e);
+ e.type_ === 3 ? i.has(n) && fH(n, r.handledSet_, r) : PV(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && fH(PV(e.copy_, t, e.type_), r.handledSet_, r);
});
}
-function pH(e, t, n) {
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || OV(e) || t.has(e) || !kV(e) || JV(e) ? e : (t.add(e), MV(e, (r, i) => {
- if (OV(i)) {
- let t = i[vV];
- uH(t, n) && (IV(e, r, WV(t), e.type_), lH(t));
- } else kV(i) && pH(i, t, n);
+function fH(e, t, n) {
+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || DV(e) || t.has(e) || !OV(e) || qV(e) ? e : (t.add(e), jV(e, (r, i) => {
+ if (DV(i)) {
+ let t = i[_V];
+ lH(t, n) && (FV(e, r, UV(t), e.type_), cH(t));
+ } else OV(i) && fH(i, t, n);
}), e);
}
-function qSe(e, t) {
- let n = LV(e), r = {
+function YSe(e, t) {
+ let n = IV(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : nH(),
+ scope_: t ? t.scope_ : tH(),
modified_: !1,
finalized_: !1,
assigned_: void 0,
@@ -54000,108 +54067,108 @@ function qSe(e, t) {
revoke_: null,
isManual_: !1,
callbacks_: void 0
- }, i = r, a = mH;
- n && (i = [r], a = hH);
+ }, i = r, a = pH;
+ n && (i = [r], a = mH);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, [s, r];
}
-var mH = {
+var pH = {
get(e, t) {
- if (t === vV) return e;
+ if (t === _V) return e;
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
- let i = UV(e);
- if (!PV(i, t, e.type_)) return YSe(e, i, t);
+ let i = HV(e);
+ if (!NV(i, t, e.type_)) return ZSe(e, i, t);
let a = i[t];
- if (e.finalized_ || !kV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && zSe(t)) return a;
- if (a === gH(e.base_, t) || JSe(e, t, a)) {
- yH(e);
- let n = e.type_ === 1 ? +t : t, r = bH(e.scope_, a, e, n);
+ if (e.finalized_ || !OV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && VSe(t)) return a;
+ if (a === hH(e.base_, t) || XSe(e, t, a)) {
+ vH(e);
+ let n = e.type_ === 1 ? +t : t, r = yH(e.scope_, a, e, n);
return e.copy_[n] = r;
}
return a;
},
has(e, t) {
- return t in UV(e);
+ return t in HV(e);
},
ownKeys(e) {
- return Reflect.ownKeys(UV(e));
+ return Reflect.ownKeys(HV(e));
},
set(e, t, n) {
- let r = _H(UV(e), t);
+ let r = gH(HV(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = gH(UV(e), t), i = r?.[vV];
+ let r = hH(HV(e), t), i = r?.[_V];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (RSe(n, r) && (n !== void 0 || PV(e.base_, t, e.type_))) return !0;
- yH(e), vH(e);
+ if (BSe(n, r) && (n !== void 0 || NV(e.base_, t, e.type_))) return !0;
+ vH(e), _H(e);
}
- return e.copy_[t] === n && (n !== void 0 || PV(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), KSe(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || NV(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), JSe(e, t, n), !0);
},
deleteProperty(e, t) {
- return yH(e), gH(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), vH(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
+ return vH(e), hH(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), _H(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = UV(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = HV(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
- [EV]: !0,
- [wV]: e.type_ !== 1 || t !== "length",
- [TV]: r[TV],
- [DV]: n[t]
+ [TV]: !0,
+ [CV]: e.type_ !== 1 || t !== "length",
+ [wV]: r[wV],
+ [EV]: n[t]
};
},
defineProperty() {
- yV(11);
+ vV(11);
},
getPrototypeOf(e) {
- return xV(e.base_);
+ return bV(e.base_);
},
setPrototypeOf() {
- yV(12);
+ vV(12);
}
-}, hH = {};
-for (let e in mH) {
- let t = mH[e];
- hH[e] = function() {
+}, mH = {};
+for (let e in pH) {
+ let t = pH[e];
+ mH[e] = function() {
let e = arguments;
return e[0] = e[0][0], t.apply(this, e);
};
}
-hH.deleteProperty = function(e, t) {
- return hH.set.call(this, e, t, void 0);
-}, hH.set = function(e, t, n) {
- return mH.set.call(this, e[0], t, n, e[0]);
+mH.deleteProperty = function(e, t) {
+ return mH.set.call(this, e, t, void 0);
+}, mH.set = function(e, t, n) {
+ return pH.set.call(this, e[0], t, n, e[0]);
};
-function gH(e, t) {
- let n = e[vV];
- return (n ? UV(n) : e)[t];
+function hH(e, t) {
+ let n = e[_V];
+ return (n ? HV(n) : e)[t];
}
-function JSe(e, t, n) {
- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !kV(n) || n[vV] ? !1 : e.baseRefs_.has(n);
+function XSe(e, t, n) {
+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !OV(n) || n[_V] ? !1 : e.baseRefs_.has(n);
}
-function YSe(e, t, n) {
- let r = _H(t, n);
- return r ? DV in r ? r[DV] : r.get?.call(e.draft_) : void 0;
+function ZSe(e, t, n) {
+ let r = gH(t, n);
+ return r ? EV in r ? r[EV] : r.get?.call(e.draft_) : void 0;
}
-function _H(e, t) {
+function gH(e, t) {
if (!(t in e)) return;
- let n = xV(e);
+ let n = bV(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = xV(n);
+ n = bV(n);
}
}
-function vH(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && vH(e.parent_));
+function _H(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && _H(e.parent_));
}
-function yH(e) {
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), GV(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+function vH(e) {
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), WV(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
-var XSe = class {
+var QSe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
- if (VV(e) && !VV(t)) {
+ if (BV(e) && !BV(t)) {
let n = t;
t = e;
let r = this;
@@ -54109,30 +54176,30 @@ var XSe = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- VV(t) || yV(6), n !== void 0 && !VV(n) && yV(7);
+ BV(t) || vV(6), n !== void 0 && !BV(n) && vV(7);
let r;
- if (kV(e)) {
- let i = oH(this), a = bH(i, e, void 0), o = !0;
+ if (OV(e)) {
+ let i = aH(this), a = yH(i, e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? iH(i) : aH(i);
+ o ? rH(i) : iH(i);
}
- return rH(i, n), sH(r, i);
+ return nH(i, n), oH(r, i);
}
- if (!e || !BV(e)) {
- if (r = t(e), r === void 0 && (r = e), r === gV && (r = void 0), this.autoFreeze_ && KV(r, !0), n) {
+ if (!e || !zV(e)) {
+ if (r = t(e), r === void 0 && (r = e), r === hV && (r = void 0), this.autoFreeze_ && GV(r, !0), n) {
let t = [], i = [];
- $V(XV).generateReplacementPatches_(e, r, {
+ QV(YV).generateReplacementPatches_(e, r, {
patches_: t,
inversePatches_: i
}), n(t, i);
}
return r;
}
- yV(1, e);
+ vV(1, e);
}, this.produceWithPatches = (e, t) => {
- if (VV(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
+ if (BV(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
return [
this.produce(e, t, (e, t) => {
@@ -54141,18 +54208,18 @@ var XSe = class {
n,
r
];
- }, HV(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), HV(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), HV(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
+ }, VV(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), VV(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), VV(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- kV(e) || yV(8), OV(e) && (e = xH(e));
- let t = oH(this), n = bH(t, e, void 0);
- return n[vV].isManual_ = !0, aH(t), n;
+ OV(e) || vV(8), DV(e) && (e = bH(e));
+ let t = aH(this), n = yH(t, e, void 0);
+ return n[_V].isManual_ = !0, iH(t), n;
}
finishDraft(e, t) {
- let n = e && e[vV];
- (!n || !n.isManual_) && yV(9);
+ let n = e && e[_V];
+ (!n || !n.isManual_) && vV(9);
let { scope_: r } = n;
- return rH(r, t), sH(void 0, r);
+ return nH(r, t), oH(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -54176,48 +54243,48 @@ var XSe = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = $V(XV).applyPatches_;
- return OV(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = QV(YV).applyPatches_;
+ return DV(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function bH(e, t, n, r) {
- let [i, a] = RV(t) ? $V(YV).proxyMap_(t, n) : zV(t) ? $V(YV).proxySet_(t, n) : qSe(t, n);
- return (n?.scope_ ?? nH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? GSe(n, a, r) : a.callbacks_.push(function(e) {
+function yH(e, t, n, r) {
+ let [i, a] = LV(t) ? QV(JV).proxyMap_(t, n) : RV(t) ? QV(JV).proxySet_(t, n) : YSe(t, n);
+ return (n?.scope_ ?? tH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? qSe(n, a, r) : a.callbacks_.push(function(e) {
e.mapSetPlugin_?.fixSetContents(a);
let { patchPlugin_: t } = e;
a.modified_ && t && t.generatePatches_(a, [], e);
}), i;
}
-function xH(e) {
- return OV(e) || yV(10, e), SH(e);
+function bH(e) {
+ return DV(e) || vV(10, e), xH(e);
}
-function SH(e) {
- if (!kV(e) || JV(e)) return e;
- let t = e[vV], n, r = !0;
+function xH(e) {
+ if (!OV(e) || qV(e)) return e;
+ let t = e[_V], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = GV(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = GV(e, !0);
- return MV(n, (e, t) => {
- IV(n, e, SH(t));
+ t.finalized_ = !0, n = WV(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = WV(e, !0);
+ return jV(n, (e, t) => {
+ FV(n, e, xH(t));
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var CH = new XSe().produce;
+var SH = new QSe().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
-function wH(e) {
+function CH(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var ZSe = wH(), QSe = wH, $Se = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
- if (arguments.length !== 0) return typeof arguments[0] == "object" ? pV : pV.apply(null, arguments);
+var $Se = CH(), eCe = CH, tCe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? fV : fV.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
-function TH(e, t) {
+function wH(e, t) {
function n(...n) {
if (t) {
let r = t(...n);
- if (!r) throw Error(oU(0));
+ if (!r) throw Error(aU(0));
return {
type: e,
payload: r.payload,
@@ -54230,9 +54297,9 @@ function TH(e, t) {
payload: n[0]
};
}
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => hV(t) && t.type === e, n;
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => mV(t) && t.type === e, n;
}
-var EH = class e extends Array {
+var TH = class e extends Array {
constructor(...t) {
super(...t), Object.setPrototypeOf(this, e.prototype);
}
@@ -54246,29 +54313,29 @@ var EH = class e extends Array {
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
}
};
-function DH(e) {
- return kV(e) ? CH(e, () => {}) : e;
+function EH(e) {
+ return OV(e) ? SH(e, () => {}) : e;
}
-function OH(e, t, n) {
+function DH(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function eCe(e) {
+function nCe(e) {
return typeof e == "boolean";
}
-var tCe = () => function(e) {
- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new EH();
- return t && (eCe(t) ? a.push(ZSe) : a.push(QSe(t.extraArgument))), a;
-}, kH = "RTK_autoBatch", AH = () => (e) => ({
+var rCe = () => function(e) {
+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new TH();
+ return t && (nCe(t) ? a.push($Se) : a.push(eCe(t.extraArgument))), a;
+}, OH = "RTK_autoBatch", kH = () => (e) => ({
payload: e,
- meta: { [kH]: !0 }
-}), jH = (e) => (t) => {
+ meta: { [OH]: !0 }
+}), AH = (e) => (t) => {
setTimeout(t, e);
-}, nCe = (e, t) => (n) => {
+}, iCe = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
-}, MH = (e = { type: "raf" }) => (t) => (...n) => {
- let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? nCe(window.requestAnimationFrame, 100) : jH(10) : e.type === "callback" ? e.queueNotification : jH(e.timeout), l = () => {
+}, jH = (e = { type: "raf" }) => (t) => (...n) => {
+ let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? iCe(window.requestAnimationFrame, 100) : AH(10) : e.type === "callback" ? e.queueNotification : AH(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -54280,37 +54347,37 @@ var tCe = () => function(e) {
},
dispatch(e) {
try {
- return i = !e?.meta?.[kH], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
+ return i = !e?.meta?.[OH], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
} finally {
i = !0;
}
}
});
-}, rCe = (e) => function(t) {
- let { autoBatch: n = !0 } = t ?? {}, r = new EH(e);
- return n && r.push(MH(typeof n == "object" ? n : void 0)), r;
+}, aCe = (e) => function(t) {
+ let { autoBatch: n = !0 } = t ?? {}, r = new TH(e);
+ return n && r.push(jH(typeof n == "object" ? n : void 0)), r;
};
-function iCe(e) {
- let t = tCe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function oCe(e) {
+ let t = rCe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
if (typeof n == "function") c = n;
- else if (lV(n)) c = fV(n);
- else throw Error(oU(1));
+ else if (cV(n)) c = dV(n);
+ else throw Error(aU(1));
let l;
l = typeof r == "function" ? r(t) : t();
- let u = pV;
- i && (u = $Se({
+ let u = fV;
+ i && (u = tCe({
trace: !1,
...typeof i == "object" && i
}));
- let d = rCe(mV(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
- return uV(c, o, p);
+ let d = aCe(pV(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ return lV(c, o, p);
}
-function NH(e) {
+function MH(e) {
let t = {}, n = [], r, i = {
addCase(e, n) {
let r = typeof e == "string" ? e : e.type;
- if (!r) throw Error(oU(28));
- if (r in t) throw Error(oU(29));
+ if (!r) throw Error(aU(28));
+ if (r in t) throw Error(aU(29));
return t[r] = n, i;
},
addAsyncThunk(e, r) {
@@ -54335,25 +54402,25 @@ function NH(e) {
r
];
}
-function aCe(e) {
+function sCe(e) {
return typeof e == "function";
}
-function oCe(e, t) {
- let [n, r, i] = NH(t), a;
- if (aCe(e)) a = () => DH(e());
+function cCe(e, t) {
+ let [n, r, i] = MH(t), a;
+ if (sCe(e)) a = () => EH(e());
else {
- let t = DH(e);
+ let t = EH(e);
a = () => t;
}
function o(e = a(), t) {
let o = [n[t.type], ...r.filter(({ matcher: e }) => e(t)).map(({ reducer: e }) => e)];
return o.filter((e) => !!e).length === 0 && (o = [i]), o.reduce((e, n) => {
if (n) {
- if (OV(e)) {
+ if (DV(e)) {
let r = n(e, t);
return r === void 0 ? e : r;
}
- if (kV(e)) return CH(e, (e) => n(e, t));
+ if (OV(e)) return SH(e, (e) => n(e, t));
{
let r = n(e, t);
if (r === void 0) {
@@ -54368,20 +54435,20 @@ function oCe(e, t) {
}
return o.getInitialState = a, o;
}
-var sCe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", cCe = (e = 21) => {
+var lCe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", uCe = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += sCe[Math.random() * 64 | 0];
+ for (; n--;) t += lCe[Math.random() * 64 | 0];
return t;
-}, lCe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function uCe(e, t) {
+}, dCe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function fCe(e, t) {
return `${e}/${t}`;
}
-function dCe({ creators: e } = {}) {
- let t = e?.asyncThunk?.[lCe];
+function pCe({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[dCe];
return function(e) {
let { name: n, reducerPath: r = n } = e;
- if (!n) throw Error(oU(11));
- let i = (typeof e.reducers == "function" ? e.reducers(pCe()) : e.reducers) || {}, a = Object.keys(i), o = {
+ if (!n) throw Error(aU(11));
+ let i = (typeof e.reducers == "function" ? e.reducers(hCe()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -54389,8 +54456,8 @@ function dCe({ creators: e } = {}) {
}, s = {
addCase(e, t) {
let n = typeof e == "string" ? e : e.type;
- if (!n) throw Error(oU(12));
- if (n in o.sliceCaseReducersByType) throw Error(oU(13));
+ if (!n) throw Error(aU(12));
+ if (n in o.sliceCaseReducersByType) throw Error(aU(13));
return o.sliceCaseReducersByType[n] = t, s;
},
addMatcher(e, t) {
@@ -54409,17 +54476,17 @@ function dCe({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: uCe(n, r),
+ type: fCe(n, r),
createNotation: typeof e.reducers == "function"
};
- hCe(a) ? _Ce(o, a, s, t) : mCe(o, a, s);
+ _Ce(a) ? yCe(o, a, s, t) : gCe(o, a, s);
});
function c() {
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? NH(e.extraReducers) : [e.extraReducers], i = {
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? MH(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return oCe(e.initialState, (e) => {
+ return cCe(e.initialState, (e) => {
for (let t in i) e.addCase(t, i[t]);
for (let t of o.sliceMatchers) e.addMatcher(t.matcher, t.reducer);
for (let t of n) e.addMatcher(t.matcher, t.reducer);
@@ -54436,12 +54503,12 @@ function dCe({ creators: e } = {}) {
function h(t, n = !1) {
function r(e) {
let i = e[t];
- return i === void 0 && n && (i = OH(d, r, m)), i;
+ return i === void 0 && n && (i = DH(d, r, m)), i;
}
function i(t = l) {
- return OH(OH(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
+ return DH(DH(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = fCe(a, t, () => OH(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = mCe(a, t, () => DH(d, t, m), n);
return r;
});
}
@@ -54475,15 +54542,15 @@ function dCe({ creators: e } = {}) {
return g;
};
}
-function fCe(e, t, n, r) {
+function mCe(e, t, n, r) {
function i(i, ...a) {
let o = t(i);
return o === void 0 && r && (o = n()), e(o, ...a);
}
return i.unwrapped = e, i;
}
-var PH = /* @__PURE__ */ dCe();
-function pCe() {
+var NH = /* @__PURE__ */ pCe();
+function hCe() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -54507,57 +54574,57 @@ function pCe() {
asyncThunk: e
};
}
-function mCe({ type: e, reducerName: t, createNotation: n }, r, i) {
+function gCe({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !gCe(r)) throw Error(oU(17));
+ if (n && !vCe(r)) throw Error(aU(17));
a = r.reducer, o = r.prepare;
} else a = r;
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? TH(e, o) : TH(e));
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? wH(e, o) : wH(e));
}
-function hCe(e) {
+function _Ce(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function gCe(e) {
+function vCe(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function _Ce({ type: e, reducerName: t }, n, r, i) {
- if (!i) throw Error(oU(18));
+function yCe({ type: e, reducerName: t }, n, r, i) {
+ if (!i) throw Error(aU(18));
let { payloadCreator: a, fulfilled: o, pending: s, rejected: c, settled: l, options: u } = n, d = i(e, a, u);
r.exposeAction(t, d), o && r.addCase(d.fulfilled, o), s && r.addCase(d.pending, s), c && r.addCase(d.rejected, c), l && r.addMatcher(d.settled, l), r.exposeCaseReducer(t, {
- fulfilled: o || FH,
- pending: s || FH,
- rejected: c || FH,
- settled: l || FH
+ fulfilled: o || PH,
+ pending: s || PH,
+ rejected: c || PH,
+ settled: l || PH
});
}
-function FH() {}
-var vCe = "task", IH = "listener", LH = "completed", RH = "cancelled", yCe = `task-${RH}`, bCe = `task-${LH}`, zH = `${IH}-${RH}`, xCe = `${IH}-${LH}`, BH = class {
+function PH() {}
+var bCe = "task", FH = "listener", IH = "completed", LH = "cancelled", xCe = `task-${LH}`, SCe = `task-${IH}`, RH = `${FH}-${LH}`, CCe = `${FH}-${IH}`, zH = class {
constructor(e) {
- this.code = e, this.message = `${vCe} ${RH} (reason: ${e})`;
+ this.code = e, this.message = `${bCe} ${LH} (reason: ${e})`;
}
code;
name = "TaskAbortError";
message;
-}, VH = (e, t) => {
- if (typeof e != "function") throw TypeError(oU(32));
-}, HH = () => {}, UH = (e, t = HH) => (e.catch(t), e), WH = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), GH = (e) => {
- if (e.aborted) throw new BH(e.reason);
+}, BH = (e, t) => {
+ if (typeof e != "function") throw TypeError(aU(32));
+}, VH = () => {}, HH = (e, t = VH) => (e.catch(t), e), UH = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), WH = (e) => {
+ if (e.aborted) throw new zH(e.reason);
};
-function KH(e, t) {
- let n = HH;
+function GH(e, t) {
+ let n = VH;
return new Promise((r, i) => {
- let a = () => i(new BH(e.reason));
+ let a = () => i(new zH(e.reason));
if (e.aborted) {
a();
return;
}
- n = WH(e, a), t.finally(() => n()).then(r, i);
+ n = UH(e, a), t.finally(() => n()).then(r, i);
}).finally(() => {
- n = HH;
+ n = VH;
});
}
-var SCe = async (e, t) => {
+var wCe = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -54565,40 +54632,40 @@ var SCe = async (e, t) => {
};
} catch (e) {
return {
- status: e instanceof BH ? "cancelled" : "rejected",
+ status: e instanceof zH ? "cancelled" : "rejected",
error: e
};
} finally {
t?.();
}
-}, qH = (e) => (t) => UH(KH(e, t).then((t) => (GH(e), t))), JH = (e) => {
- let t = qH(e);
+}, KH = (e) => (t) => HH(GH(e, t).then((t) => (WH(e), t))), qH = (e) => {
+ let t = KH(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: YH } = Object, XH = {}, ZH = "listenerMiddleware", CCe = (e, t) => {
- let n = (t) => WH(e, () => t.abort(e.reason));
+}, { assign: JH } = Object, YH = {}, XH = "listenerMiddleware", TCe = (e, t) => {
+ let n = (t) => UH(e, () => t.abort(e.reason));
return (r, i) => {
- VH(r, "taskExecutor");
+ BH(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = SCe(async () => {
- GH(e), GH(a.signal);
+ let o = wCe(async () => {
+ WH(e), WH(a.signal);
let t = await r({
- pause: qH(a.signal),
- delay: JH(a.signal),
+ pause: KH(a.signal),
+ delay: qH(a.signal),
signal: a.signal
});
- return GH(a.signal), t;
- }, () => a.abort(bCe));
- return i?.autoJoin && t.push(o.catch(HH)), {
- result: qH(e)(o),
+ return WH(a.signal), t;
+ }, () => a.abort(SCe));
+ return i?.autoJoin && t.push(o.catch(VH)), {
+ result: KH(e)(o),
cancel() {
- a.abort(yCe);
+ a.abort(xCe);
}
};
};
-}, wCe = (e, t) => {
+}, ECe = (e, t) => {
let n = async (n, r) => {
- GH(t);
+ WH(t);
let i = () => {}, a = [new Promise((t, r) => {
let a = e({
predicate: n,
@@ -54616,47 +54683,47 @@ var SCe = async (e, t) => {
})];
r != null && a.push(new Promise((e) => setTimeout(e, r, null)));
try {
- let e = await KH(t, Promise.race(a));
- return GH(t), e;
+ let e = await GH(t, Promise.race(a));
+ return WH(t), e;
} finally {
i();
}
};
- return ((e, t) => UH(n(e, t)));
-}, QH = (e) => {
+ return ((e, t) => HH(n(e, t)));
+}, ZH = (e) => {
let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;
- if (t) i = TH(t).match;
+ if (t) i = wH(t).match;
else if (n) t = n.type, i = n.match;
else if (r) i = r;
- else if (!i) throw Error(oU(21));
- return VH(a, "options.listener"), {
+ else if (!i) throw Error(aU(21));
+ return BH(a, "options.listener"), {
predicate: i,
type: t,
effect: a
};
-}, $H = /* @__PURE__ */ YH((e) => {
- let { type: t, predicate: n, effect: r } = QH(e);
+}, QH = /* @__PURE__ */ JH((e) => {
+ let { type: t, predicate: n, effect: r } = ZH(e);
return {
- id: cCe(),
+ id: uCe(),
effect: r,
type: t,
predicate: n,
pending: /* @__PURE__ */ new Set(),
unsubscribe: () => {
- throw Error(oU(22));
+ throw Error(aU(22));
}
};
-}, { withTypes: () => $H }), eU = (e, t) => {
- let { type: n, effect: r, predicate: i } = QH(t);
+}, { withTypes: () => QH }), $H = (e, t) => {
+ let { type: n, effect: r, predicate: i } = ZH(t);
return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);
-}, tU = (e) => {
+}, eU = (e) => {
e.pending.forEach((e) => {
- e.abort(zH);
+ e.abort(RH);
});
-}, TCe = (e, t) => () => {
- for (let e of t.keys()) tU(e);
+}, DCe = (e, t) => () => {
+ for (let e of t.keys()) eU(e);
e.clear();
-}, nU = (e, t, n) => {
+}, tU = (e, t, n) => {
try {
e(t, n);
} catch (e) {
@@ -54664,74 +54731,74 @@ var SCe = async (e, t) => {
throw e;
}, 0);
}
-}, rU = /* @__PURE__ */ YH(/* @__PURE__ */ TH(`${ZH}/add`), { withTypes: () => rU }), ECe = /* @__PURE__ */ TH(`${ZH}/removeAll`), iU = /* @__PURE__ */ YH(/* @__PURE__ */ TH(`${ZH}/remove`), { withTypes: () => iU }), DCe = (...e) => {
- console.error(`${ZH}/error`, ...e);
-}, aU = (e = {}) => {
+}, nU = /* @__PURE__ */ JH(/* @__PURE__ */ wH(`${XH}/add`), { withTypes: () => nU }), OCe = /* @__PURE__ */ wH(`${XH}/removeAll`), rU = /* @__PURE__ */ JH(/* @__PURE__ */ wH(`${XH}/remove`), { withTypes: () => rU }), kCe = (...e) => {
+ console.error(`${XH}/error`, ...e);
+}, iU = (e = {}) => {
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = (e) => {
let t = n.get(e) ?? 0;
n.set(e, t + 1);
}, i = (e) => {
let t = n.get(e) ?? 1;
t === 1 ? n.delete(e) : n.set(e, t - 1);
- }, { extra: a, onError: o = DCe } = e;
- VH(o, "onError");
+ }, { extra: a, onError: o = kCe } = e;
+ BH(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
- e.unsubscribe(), t?.cancelActive && tU(e);
+ e.unsubscribe(), t?.cancelActive && eU(e);
}), c = ((e) => {
- let n = eU(t, e) ?? $H(e);
+ let n = $H(t, e) ?? QH(e);
return s(n);
});
- YH(c, { withTypes: () => c });
+ JH(c, { withTypes: () => c });
let l = (e) => {
- let n = eU(t, e);
- return n && (n.unsubscribe(), e.cancelActive && tU(n)), !!n;
+ let n = $H(t, e);
+ return n && (n.unsubscribe(), e.cancelActive && eU(n)), !!n;
};
- YH(l, { withTypes: () => l });
+ JH(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = wCe(c, u.signal), f = [];
+ let u = new AbortController(), d = ECe(c, u.signal), f = [];
try {
- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, YH({}, s, {
+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, JH({}, s, {
getOriginalState: l,
condition: (e, t) => d(e, t).then(Boolean),
take: d,
- delay: JH(u.signal),
- pause: qH(u.signal),
+ delay: qH(u.signal),
+ pause: KH(u.signal),
extra: a,
signal: u.signal,
- fork: CCe(u.signal, f),
+ fork: TCe(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
},
cancelActiveListeners: () => {
e.pending.forEach((e, t, n) => {
- e !== u && (e.abort(zH), n.delete(e));
+ e !== u && (e.abort(RH), n.delete(e));
});
},
cancel: () => {
- u.abort(zH), e.pending.delete(u);
+ u.abort(RH), e.pending.delete(u);
},
throwIfCancelled: () => {
- GH(u.signal);
+ WH(u.signal);
}
})));
} catch (e) {
- e instanceof BH || nU(o, e, { raisedBy: "effect" });
+ e instanceof zH || tU(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(xCe), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(CCe), i(e), e.pending.delete(u);
}
- }, d = TCe(t, n);
+ }, d = DCe(t, n);
return {
middleware: (e) => (n) => (r) => {
- if (!hV(r)) return n(r);
- if (rU.match(r)) return c(r.payload);
- if (ECe.match(r)) {
+ if (!mV(r)) return n(r);
+ if (nU.match(r)) return c(r.payload);
+ if (OCe.match(r)) {
d();
return;
}
- if (iU.match(r)) return l(r.payload);
+ if (rU.match(r)) return l(r.payload);
let i = e.getState(), a = () => {
- if (i === XH) throw Error(oU(23));
+ if (i === YH) throw Error(aU(23));
return i;
}, s;
try {
@@ -54742,13 +54809,13 @@ var SCe = async (e, t) => {
try {
s = t.predicate(r, n, i);
} catch (e) {
- s = !1, nU(o, e, { raisedBy: "predicate" });
+ s = !1, tU(o, e, { raisedBy: "predicate" });
}
s && u(t, r, e, a);
}
}
} finally {
- i = XH;
+ i = YH;
}
return s;
},
@@ -54757,12 +54824,12 @@ var SCe = async (e, t) => {
clearListeners: d
};
};
-function oU(e) {
+function aU(e) {
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
}
//#endregion
//#region node_modules/recharts/es6/state/layoutSlice.js
-var sU = PH({
+var oU = NH({
name: "chartLayout",
initialState: {
layoutType: "horizontal",
@@ -54790,23 +54857,23 @@ var sU = PH({
e.scale = t.payload;
}
}
-}), { setMargin: OCe, setLayout: kCe, setChartSize: ACe, setScale: jCe } = sU.actions, MCe = sU.reducer;
+}), { setMargin: ACe, setLayout: jCe, setChartSize: MCe, setScale: NCe } = oU.actions, PCe = oU.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
-function cU(e, t, n) {
+function sU(e, t, n) {
return Array.isArray(e) && e && t + n !== 0 ? e.slice(t, n + 1) : e;
}
//#endregion
//#region node_modules/recharts/es6/util/isWellBehavedNumber.js
-function lU(e) {
+function cU(e) {
return Number.isFinite(e);
}
-function uU(e) {
+function lU(e) {
return typeof e == "number" && e > 0 && Number.isFinite(e);
}
//#endregion
//#region node_modules/recharts/es6/util/ChartUtils.js
-function dU(e, t) {
+function uU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54816,30 +54883,30 @@ function dU(e, t) {
}
return n;
}
-function fU(e) {
+function dU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? dU(Object(n), !0).forEach(function(t) {
- NCe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dU(Object(n)).forEach(function(t) {
+ t % 2 ? uU(Object(n), !0).forEach(function(t) {
+ FCe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function NCe(e, t, n) {
- return (t = PCe(t)) in e ? Object.defineProperty(e, t, {
+function FCe(e, t, n) {
+ return (t = ICe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function PCe(e) {
- var t = FCe(e, "string");
+function ICe(e) {
+ var t = LCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function FCe(e, t) {
+function LCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54849,63 +54916,63 @@ function FCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function pU(e, t, n) {
- return sB(e) || sB(t) ? n : tB(t) ? Yz(e, t, n) : typeof t == "function" ? t(e) : n;
+function fU(e, t, n) {
+ return oB(e) || oB(t) ? n : eB(t) ? Jz(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var ICe = (e, t, n) => {
+var RCe = (e, t, n) => {
if (t && n) {
var { width: r, height: i } = n, { align: a, verticalAlign: o, layout: s } = t;
- if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return fU(fU({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return fU(fU({}, e), {}, { [o]: e[o] + (i || 0) });
+ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return dU(dU({}, e), {}, { [a]: e[a] + (r || 0) });
+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return dU(dU({}, e), {}, { [o]: e[o] + (i || 0) });
}
return e;
-}, mU = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", hU = (e, t, n, r) => {
+}, pU = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", mU = (e, t, n, r) => {
if (r) return e.map((e) => e.coordinate);
var i, a, o = e.map((e) => (e.coordinate === t && (i = !0), e.coordinate === n && (a = !0), e.coordinate));
return i || o.push(t), a || o.push(n), o;
-}, gU = (e, t, n) => {
+}, hU = (e, t, n) => {
if (!e) return null;
var { duplicateDomain: r, type: i, range: a, scale: o, realScaleType: s, isCategorical: c, categoricalDomain: l, tickCount: u, ticks: d, niceTicks: f, axisType: p } = e;
if (!o) return null;
var m = s === "scaleBand" && o.bandwidth ? o.bandwidth() / 2 : 2, h = (t || n) && i === "category" && o.bandwidth ? o.bandwidth() / m : 0;
- return h = p === "angleAxis" && a && a.length >= 2 ? Qz(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
+ return h = p === "angleAxis" && a && a.length >= 2 ? Zz(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
var n = r ? r.indexOf(e) : e, i = o.map(n);
- return lU(i) ? {
+ return cU(i) ? {
coordinate: i + h,
value: e,
offset: h,
index: t
} : null;
- }).filter(lB) : c && l ? l.map((e, t) => {
+ }).filter(cB) : c && l ? l.map((e, t) => {
var n = o.map(e);
- return lU(n) ? {
+ return cU(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(lB) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
+ }).filter(cB) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
- return lU(n) ? {
+ return cU(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(lB) : o.domain().map((e, t) => {
+ }).filter(cB) : o.domain().map((e, t) => {
var n = o.map(e);
- return lU(n) ? {
+ return cU(n) ? {
coordinate: n + h,
value: r ? r[e] : e,
index: t,
offset: h
} : null;
- }).filter(lB);
-}, _U = (e, t) => {
+ }).filter(cB);
+}, gU = (e, t) => {
if (!t || t.length !== 2 || !Z(t[0]) || !Z(t[1])) return e;
var n = Math.min(t[0], t[1]), r = Math.max(t[0], t[1]), i = [e[0], e[1]];
return (!Z(e[0]) || e[0] < n) && (i[0] = n), (!Z(e[1]) || e[1] > r) && (i[1] = r), i[0] > r && (i[0] = r), i[1] < n && (i[1] = n), i;
-}, LCe = {
+}, zCe = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -54913,16 +54980,16 @@ var ICe = (e, t, n) => {
if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0, o = 0; o < t; ++o) {
var s = e[o]?.[r];
if (s != null) {
- var c = s[1], l = s[0], u = $z(c) ? l : c;
+ var c = s[1], l = s[0], u = Qz(c) ? l : c;
u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);
}
}
}
},
- expand: Xbe,
- none: Vz,
- silhouette: Zbe,
- wiggle: Qbe,
+ expand: Qbe,
+ none: Bz,
+ silhouette: $be,
+ wiggle: exe,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -54930,70 +54997,70 @@ var ICe = (e, t, n) => {
if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0; a < t; ++a) {
var o = e[a]?.[r];
if (o != null) {
- var s = $z(o[1]) ? o[0] : o[1];
+ var s = Qz(o[1]) ? o[0] : o[1];
s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);
}
}
}
}
-}, RCe = (e, t, n) => {
- var r = LCe[n] ?? Vz, i = Ybe().keys(t).value((e, t) => Number(pU(e, t, 0))).order(Hz).offset(r)(e);
+}, BCe = (e, t, n) => {
+ var r = zCe[n] ?? Bz, i = Zbe().keys(t).value((e, t) => Number(fU(e, t, 0))).order(Vz).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
- var a = pU(e[i], t[r], 0);
+ var a = fU(e[i], t[r], 0);
Array.isArray(a) && a.length === 2 && Z(a[0]) && Z(a[1]) && (n[0] = a[0], n[1] = a[1]);
});
}), i;
};
-function vU(e) {
+function _U(e) {
return e == null ? void 0 : String(e);
}
-function yU(e) {
+function vU(e) {
var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;
if (t.type === "category") {
- if (!t.allowDuplicatedCategory && t.dataKey && !sB(i[t.dataKey])) {
- var s = oB(n, "value", i[t.dataKey]);
+ if (!t.allowDuplicatedCategory && t.dataKey && !oB(i[t.dataKey])) {
+ var s = aB(n, "value", i[t.dataKey]);
if (s) return s.coordinate + r / 2;
}
return n != null && n[a] ? n[a].coordinate + r / 2 : null;
}
- var c = pU(i, sB(o) ? t.dataKey : o), l = t.scale.map(c);
+ var c = fU(i, oB(o) ? t.dataKey : o), l = t.scale.map(c);
return Z(l) ? l : null;
}
-var bU = (e) => {
+var yU = (e) => {
var { axis: t, ticks: n, offset: r, bandSize: i, entry: a, index: o } = e;
if (t.type === "category") return n[o] ? n[o].coordinate + r : null;
- var s = pU(a, t.dataKey, t.scale.domain()[o]);
- if (sB(s)) return null;
+ var s = fU(a, t.dataKey, t.scale.domain()[o]);
+ if (oB(s)) return null;
var c = t.scale.map(s);
return Z(c) ? c - i / 2 + r : null;
-}, xU = (e) => {
+}, bU = (e) => {
var { numericAxis: t } = e, n = t.scale.domain();
if (t.type === "number") {
var r = Math.min(n[0], n[1]), i = Math.max(n[0], n[1]);
return r <= 0 && i >= 0 ? 0 : i < 0 ? i : r;
}
return n[0];
-}, zCe = (e) => {
+}, VCe = (e) => {
var t = e.flat(2).filter(Z);
return [Math.min(...t), Math.max(...t)];
-}, BCe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], VCe = (e, t, n) => {
- if (e != null) return BCe(Object.keys(e).reduce((r, i) => {
+}, HCe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], UCe = (e, t, n) => {
+ if (e != null) return HCe(Object.keys(e).reduce((r, i) => {
var a = e[i];
if (!a) return r;
var { stackedData: o } = a, s = o.reduce((e, r) => {
- var i = zCe(cU(r, t, n));
- return !lU(i[0]) || !lU(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
+ var i = VCe(sU(r, t, n));
+ return !cU(i[0]) || !cU(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
}, [Infinity, -Infinity]);
return [Math.min(s[0], r[0]), Math.max(s[1], r[1])];
}, [Infinity, -Infinity]));
-}, SU = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, CU = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, wU = (e, t, n) => {
+}, xU = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, SU = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, CU = (e, t, n) => {
if (e && e.scale && e.scale.bandwidth) {
var r = e.scale.bandwidth();
if (!n || r > 0) return r;
}
if (e && t && t.length >= 2) {
- for (var i = tV(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
+ for (var i = eV(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
var c = i[o], l = i[o - 1];
a = Math.min((c?.coordinate || 0) - (l?.coordinate || 0), a);
}
@@ -55001,26 +55068,26 @@ var bU = (e) => {
}
return n ? void 0 : 0;
};
-function TU(e) {
+function wU(e) {
var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;
- return fU(fU({}, t), {}, {
+ return dU(dU({}, t), {}, {
dataKey: n,
payload: r,
value: i,
name: a
});
}
-function EU(e, t) {
+function TU(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
-var HCe = (e, t) => {
+var WCe = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, UCe = (e, t) => t === "centric" ? e.angle : e.radius, DU = (e) => e.layout.width, OU = (e) => e.layout.height, WCe = (e) => e.layout.scale, kU = (e) => e.layout.margin, AU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), jU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), GCe = "data-recharts-item-index";
+}, GCe = (e, t) => t === "centric" ? e.angle : e.radius, EU = (e) => e.layout.width, DU = (e) => e.layout.height, KCe = (e) => e.layout.scale, OU = (e) => e.layout.margin, kU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), AU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), qCe = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
-function MU(e, t) {
+function jU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55030,30 +55097,30 @@ function MU(e, t) {
}
return n;
}
-function NU(e) {
+function MU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? MU(Object(n), !0).forEach(function(t) {
- KCe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : MU(Object(n)).forEach(function(t) {
+ t % 2 ? jU(Object(n), !0).forEach(function(t) {
+ JCe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function KCe(e, t, n) {
- return (t = qCe(t)) in e ? Object.defineProperty(e, t, {
+function JCe(e, t, n) {
+ return (t = YCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qCe(e) {
- var t = JCe(e, "string");
+function YCe(e) {
+ var t = XCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function JCe(e, t) {
+function XCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55063,58 +55130,58 @@ function JCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var YCe = (e) => e.brush.height;
-function XCe(e) {
- return jU(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
-}
-function ZCe(e) {
- return jU(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
-}
+var ZCe = (e) => e.brush.height;
function QCe(e) {
- return AU(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
+ return AU(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
function $Ce(e) {
- return AU(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
+ return AU(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+}
+function ewe(e) {
+ return kU(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-var PU = $([
+function twe(e) {
+ return kU(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
+}
+var NU = $([
+ EU,
DU,
OU,
- kU,
- YCe,
- XCe,
ZCe,
QCe,
$Ce,
- nV,
- PSe
+ ewe,
+ twe,
+ tV,
+ ISe
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
right: (n.right || 0) + a
- }, d = NU(NU({}, {
+ }, d = MU(MU({}, {
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = ICe(d, c, l);
+ d.bottom += r, d = RCe(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
- return NU(NU({ brushBottom: f }, d), {}, {
+ return MU(MU({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), ewe = $(PU, (e) => ({
+}), nwe = $(NU, (e) => ({
x: e.left,
y: e.top,
width: e.width,
height: e.height
-})), FU = $(DU, OU, (e, t) => ({
+})), PU = $(EU, DU, (e, t) => ({
x: 0,
y: 0,
width: e,
height: t
-})), twe = /*#__PURE__*/ (0, R.createContext)(null), IU = () => (0, R.useContext)(twe) != null, LU = (e) => e.brush, RU = $([
- LU,
- PU,
- kU
+})), rwe = /*#__PURE__*/ (0, R.createContext)(null), FU = () => (0, R.useContext)(rwe) != null, IU = (e) => e.brush, LU = $([
+ IU,
+ NU,
+ OU
], (e, t, n) => ({
height: e.height,
x: Z(e.x) ? e.x : t.left,
@@ -55123,7 +55190,7 @@ var PU = $([
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function nwe(e, t, { signal: n, edges: r } = {}) {
+function iwe(e, t, { signal: n, edges: r } = {}) {
let i, a = null, o = r != null && r.includes("leading"), s = r == null || r.includes("trailing"), c = () => {
a !== null && (e.apply(i, a), i = void 0, a = null);
}, l = () => {
@@ -55148,11 +55215,11 @@ function nwe(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function rwe(e, t = 0, n = {}) {
+function awe(e, t = 0, n = {}) {
typeof n != "object" && (n = {});
let { leading: r = !1, trailing: i = !0, maxWait: a } = n, o = [, ,];
r && (o[0] = "leading"), i && (o[1] = "trailing");
- let s, c = null, l = nwe(function(...t) {
+ let s, c = null, l = iwe(function(...t) {
s = e.apply(this, t), c = null;
}, t, { edges: o }), u = function(...t) {
return a != null && (c === null && (c = Date.now()), Date.now() - c >= a) ? ((r || i) && (s = e.apply(this, t)), c = Date.now(), l.cancel(), l.schedule(), s) : (l.apply(this, t), s);
@@ -55161,9 +55228,9 @@ function rwe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function iwe(e, t = 0, n = {}) {
+function owe(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return rwe(e, t, {
+ return awe(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -55171,7 +55238,7 @@ function iwe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/recharts/es6/util/LogUtils.js
-var zU = function(e, t) {
+var RU = function(e, t) {
var n = [...arguments].slice(2);
if (typeof console < "u" && console.warn && (t === void 0 && console.warn("LogUtils requires an error message argument"), !e)) {
if (t === void 0) console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
@@ -55180,7 +55247,7 @@ var zU = function(e, t) {
console.warn(t.replace(/%s/g, () => n[r++]));
}
}
-}, BU = {
+}, zU = {
width: "100%",
height: "100%",
debounce: 0,
@@ -55189,45 +55256,45 @@ var zU = function(e, t) {
width: -1,
height: -1
}
-}, VU = (e, t, n) => {
- var { width: r = BU.width, height: i = BU.height, aspect: a, maxHeight: o } = n, s = eB(r) ? e : Number(r), c = eB(i) ? t : Number(i);
+}, BU = (e, t, n) => {
+ var { width: r = zU.width, height: i = zU.height, aspect: a, maxHeight: o } = n, s = $z(r) ? e : Number(r), c = $z(i) ? t : Number(i);
return a && a > 0 && (s ? c = s / a : c && (s = c * a), o && c != null && c > o && (c = o)), {
calculatedWidth: s,
calculatedHeight: c
};
-}, awe = {
+}, swe = {
width: 0,
height: 0,
overflow: "visible"
-}, owe = {
+}, cwe = {
width: 0,
overflowX: "visible"
-}, swe = {
+}, lwe = {
height: 0,
overflowY: "visible"
-}, cwe = {}, lwe = (e) => {
- var { width: t, height: n } = e, r = eB(t), i = eB(n);
- return r && i ? awe : r ? owe : i ? swe : cwe;
+}, uwe = {}, dwe = (e) => {
+ var { width: t, height: n } = e, r = $z(t), i = $z(n);
+ return r && i ? swe : r ? cwe : i ? lwe : uwe;
};
-function uwe(e) {
+function fwe(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = BU.width, a = BU.height) : i === void 0 ? i = r && r > 0 ? void 0 : BU.width : a === void 0 && (a = r && r > 0 ? void 0 : BU.height), {
+ return i === void 0 && a === void 0 ? (i = zU.width, a = zU.height) : i === void 0 ? i = r && r > 0 ? void 0 : zU.width : a === void 0 && (a = r && r > 0 ? void 0 : zU.height), {
width: i,
height: a
};
}
//#endregion
//#region node_modules/recharts/es6/component/ResponsiveContainer.js
-function HU() {
- return HU = Object.assign ? Object.assign.bind() : function(e) {
+function VU() {
+ return VU = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, HU.apply(null, arguments);
+ }, VU.apply(null, arguments);
}
-function UU(e, t) {
+function HU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55237,30 +55304,30 @@ function UU(e, t) {
}
return n;
}
-function WU(e) {
+function UU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? UU(Object(n), !0).forEach(function(t) {
- dwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UU(Object(n)).forEach(function(t) {
+ t % 2 ? HU(Object(n), !0).forEach(function(t) {
+ pwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function dwe(e, t, n) {
- return (t = fwe(t)) in e ? Object.defineProperty(e, t, {
+function pwe(e, t, n) {
+ return (t = mwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fwe(e) {
- var t = pwe(e, "string");
+function mwe(e) {
+ var t = hwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function pwe(e, t) {
+function hwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55270,19 +55337,19 @@ function pwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var GU = /*#__PURE__*/ (0, R.createContext)(BU.initialDimension);
-function mwe(e) {
- return uU(e.width) && uU(e.height);
+var WU = /*#__PURE__*/ (0, R.createContext)(zU.initialDimension);
+function gwe(e) {
+ return lU(e.width) && lU(e.height);
}
-function KU(e) {
+function GU(e) {
var { children: t, width: n, height: r } = e, i = (0, R.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return mwe(i) ? /*#__PURE__*/ R.createElement(GU.Provider, { value: i }, t) : null;
+ return gwe(i) ? /*#__PURE__*/ R.createElement(WU.Provider, { value: i }, t) : null;
}
-var qU = () => (0, R.useContext)(GU), hwe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { aspect: n, initialDimension: r = BU.initialDimension, width: i, height: a, minWidth: o = BU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = BU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, R.useRef)(null), g = (0, R.useRef)();
+var KU = () => (0, R.useContext)(WU), _we = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { aspect: n, initialDimension: r = zU.initialDimension, width: i, height: a, minWidth: o = zU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = zU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, R.useRef)(null), g = (0, R.useRef)();
g.current = p, (0, R.useImperativeHandle)(t, () => h.current);
var [_, v] = (0, R.useState)({
containerWidth: r.width,
@@ -55297,7 +55364,7 @@ var qU = () => (0, R.useContext)(GU), hwe = /*#__PURE__*/ (0, R.forwardRef)((e,
});
}, []);
(0, R.useEffect)(() => {
- if (h.current == null || typeof ResizeObserver > "u") return uB;
+ if (h.current == null || typeof ResizeObserver > "u") return lB;
var e = (e) => {
var t, n = e[0];
if (n != null) {
@@ -55305,7 +55372,7 @@ var qU = () => (0, R.useContext)(GU), hwe = /*#__PURE__*/ (0, R.forwardRef)((e,
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = iwe(e, u, {
+ u > 0 && (e = owe(e, u, {
trailing: !0,
leading: !1
}));
@@ -55315,17 +55382,17 @@ var qU = () => (0, R.useContext)(GU), hwe = /*#__PURE__*/ (0, R.forwardRef)((e,
};
}, [y, u]);
var { containerWidth: b, containerHeight: x } = _;
- zU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
- var { calculatedWidth: S, calculatedHeight: C } = VU(b, x, {
+ RU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
+ var { calculatedWidth: S, calculatedHeight: C } = BU(b, x, {
width: i,
height: a,
aspect: n,
maxHeight: c
});
- return zU(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ R.createElement("div", {
+ return RU(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ R.createElement("div", {
id: d ? `${d}` : void 0,
className: Sh("recharts-responsive-container", f),
- style: WU(WU({}, m), {}, {
+ style: UU(UU({}, m), {}, {
width: i,
height: a,
minWidth: o,
@@ -55333,30 +55400,30 @@ var qU = () => (0, R.useContext)(GU), hwe = /*#__PURE__*/ (0, R.forwardRef)((e,
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ R.createElement("div", { style: lwe({
+ }, /*#__PURE__*/ R.createElement("div", { style: dwe({
width: i,
height: a
- }) }, /*#__PURE__*/ R.createElement(KU, {
+ }) }, /*#__PURE__*/ R.createElement(GU, {
width: S,
height: C
}, l)));
-}), JU = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = qU();
- if (uU(n.width) && uU(n.height)) return e.children;
- var { width: r, height: i } = uwe({
+}), qU = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = KU();
+ if (lU(n.width) && lU(n.height)) return e.children;
+ var { width: r, height: i } = fwe({
width: e.width,
height: e.height,
aspect: e.aspect
- }), { calculatedWidth: a, calculatedHeight: o } = VU(void 0, void 0, {
+ }), { calculatedWidth: a, calculatedHeight: o } = BU(void 0, void 0, {
width: r,
height: i,
aspect: e.aspect,
maxHeight: e.maxHeight
});
- return Z(a) && Z(o) ? /*#__PURE__*/ R.createElement(KU, {
+ return Z(a) && Z(o) ? /*#__PURE__*/ R.createElement(GU, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ R.createElement(hwe, HU({}, e, {
+ }, e.children) : /*#__PURE__*/ R.createElement(_we, VU({}, e, {
width: r,
height: i,
ref: t
@@ -55364,7 +55431,7 @@ var qU = () => (0, R.useContext)(GU), hwe = /*#__PURE__*/ (0, R.forwardRef)((e,
});
//#endregion
//#region node_modules/recharts/es6/context/chartLayoutContext.js
-function YU(e) {
+function JU(e) {
if (e) return {
x: e.x,
y: e.y,
@@ -55374,15 +55441,15 @@ function YU(e) {
height: e.height
};
}
-var XU = () => {
- var e = IU(), t = Q(ewe), n = Q(RU), r = Q(LU)?.padding;
+var YU = () => {
+ var e = FU(), t = Q(nwe), n = Q(LU), r = Q(IU)?.padding;
return !e || !n || !r ? t : {
width: n.width - r.left - r.right,
height: n.height - r.top - r.bottom,
x: r.left,
y: r.top
};
-}, gwe = {
+}, vwe = {
top: 0,
bottom: 0,
left: 0,
@@ -55390,16 +55457,16 @@ var XU = () => {
width: 0,
height: 0,
brushBottom: 0
-}, ZU = () => Q(PU) ?? gwe, QU = () => Q(DU), $U = () => Q(OU), _we = () => Q((e) => e.layout.margin), eW = (e) => e.layout.layoutType, tW = () => Q(eW), nW = () => {
- var e = tW();
+}, XU = () => Q(NU) ?? vwe, ZU = () => Q(EU), QU = () => Q(DU), ywe = () => Q((e) => e.layout.margin), $U = (e) => e.layout.layoutType, eW = () => Q($U), tW = () => {
+ var e = eW();
if (e === "horizontal" || e === "vertical") return e;
-}, rW = (e) => {
+}, nW = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, iW = () => Q(rW), vwe = () => tW() !== void 0, aW = (e) => {
- var t = qB(), n = IU(), { width: r, height: i } = e, a = qU(), o = r, s = i;
+}, rW = () => Q(nW), bwe = () => eW() !== void 0, iW = (e) => {
+ var t = KB(), n = FU(), { width: r, height: i } = e, a = KU(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, R.useEffect)(() => {
- !n && uU(o) && uU(s) && t(ACe({
+ !n && lU(o) && lU(s) && t(MCe({
width: o,
height: s
}));
@@ -55409,64 +55476,64 @@ var XU = () => {
o,
s
]), null;
-}, oW = Symbol.for("immer-nothing"), sW = Symbol.for("immer-draftable"), cW = Symbol.for("immer-state");
-function lW(e, ...t) {
+}, aW = Symbol.for("immer-nothing"), oW = Symbol.for("immer-draftable"), sW = Symbol.for("immer-state");
+function cW(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var uW = Object.getPrototypeOf;
-function dW(e) {
- return !!e && !!e[cW];
+var lW = Object.getPrototypeOf;
+function uW(e) {
+ return !!e && !!e[sW];
}
-function fW(e) {
- return e ? mW(e) || Array.isArray(e) || !!e[sW] || !!e.constructor?.[sW] || yW(e) || bW(e) : !1;
+function dW(e) {
+ return e ? pW(e) || Array.isArray(e) || !!e[oW] || !!e.constructor?.[oW] || vW(e) || yW(e) : !1;
}
-var ywe = Object.prototype.constructor.toString(), pW = /* @__PURE__ */ new WeakMap();
-function mW(e) {
+var xwe = Object.prototype.constructor.toString(), fW = /* @__PURE__ */ new WeakMap();
+function pW(e) {
if (!e || typeof e != "object") return !1;
let t = Object.getPrototypeOf(e);
if (t === null || t === Object.prototype) return !0;
let n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
if (n === Object) return !0;
if (typeof n != "function") return !1;
- let r = pW.get(n);
- return r === void 0 && (r = Function.toString.call(n), pW.set(n, r)), r === ywe;
+ let r = fW.get(n);
+ return r === void 0 && (r = Function.toString.call(n), fW.set(n, r)), r === xwe;
}
-function hW(e, t, n = !0) {
- gW(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
+function mW(e, t, n = !0) {
+ hW(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function gW(e) {
- let t = e[cW];
- return t ? t.type_ : Array.isArray(e) ? 1 : yW(e) ? 2 : bW(e) ? 3 : 0;
+function hW(e) {
+ let t = e[sW];
+ return t ? t.type_ : Array.isArray(e) ? 1 : vW(e) ? 2 : yW(e) ? 3 : 0;
}
-function _W(e, t) {
- return gW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
+function gW(e, t) {
+ return hW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
}
-function vW(e, t, n) {
- let r = gW(e);
+function _W(e, t, n) {
+ let r = hW(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function bwe(e, t) {
+function Swe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function yW(e) {
+function vW(e) {
return e instanceof Map;
}
-function bW(e) {
+function yW(e) {
return e instanceof Set;
}
-function xW(e) {
+function bW(e) {
return e.copy_ || e.base_;
}
-function SW(e, t) {
- if (yW(e)) return new Map(e);
- if (bW(e)) return new Set(e);
+function xW(e, t) {
+ if (vW(e)) return new Map(e);
+ if (yW(e)) return new Set(e);
if (Array.isArray(e)) return Array.prototype.slice.call(e);
- let n = mW(e);
+ let n = pW(e);
if (t === !0 || t === "class_only" && !n) {
let t = Object.getOwnPropertyDescriptors(e);
- delete t[cW];
+ delete t[sW];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
@@ -55477,40 +55544,40 @@ function SW(e, t) {
value: e[i]
});
}
- return Object.create(uW(e), t);
+ return Object.create(lW(e), t);
}
{
- let t = uW(e);
+ let t = lW(e);
if (t !== null && n) return { ...e };
let r = Object.create(t);
return Object.assign(r, e);
}
}
-function CW(e, t = !1) {
- return TW(e) || dW(e) || !fW(e) ? e : (gW(e) > 1 && Object.defineProperties(e, {
- set: wW,
- add: wW,
- clear: wW,
- delete: wW
- }), Object.freeze(e), t && Object.values(e).forEach((e) => CW(e, !0)), e);
+function SW(e, t = !1) {
+ return wW(e) || uW(e) || !dW(e) ? e : (hW(e) > 1 && Object.defineProperties(e, {
+ set: CW,
+ add: CW,
+ clear: CW,
+ delete: CW
+ }), Object.freeze(e), t && Object.values(e).forEach((e) => SW(e, !0)), e);
}
-function xwe() {
- lW(2);
+function Cwe() {
+ cW(2);
}
-var wW = { value: xwe };
-function TW(e) {
+var CW = { value: Cwe };
+function wW(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var Swe = {};
-function EW(e) {
- let t = Swe[e];
- return t || lW(0, e), t;
+var wwe = {};
+function TW(e) {
+ let t = wwe[e];
+ return t || cW(0, e), t;
}
-var DW;
-function OW() {
- return DW;
+var EW;
+function DW() {
+ return EW;
}
-function Cwe(e, t) {
+function Twe(e, t) {
return {
drafts_: [],
parent_: e,
@@ -55519,62 +55586,62 @@ function Cwe(e, t) {
unfinalizedDrafts_: 0
};
}
-function kW(e, t) {
- t && (EW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function OW(e, t) {
+ t && (TW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+}
+function kW(e) {
+ AW(e), e.drafts_.forEach(Ewe), e.drafts_ = null;
}
function AW(e) {
- jW(e), e.drafts_.forEach(wwe), e.drafts_ = null;
+ e === EW && (EW = e.parent_);
}
function jW(e) {
- e === DW && (DW = e.parent_);
+ return EW = Twe(EW, e);
}
-function MW(e) {
- return DW = Cwe(DW, e);
-}
-function wwe(e) {
- let t = e[cW];
+function Ewe(e) {
+ let t = e[sW];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function NW(e, t) {
+function MW(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
- return e !== void 0 && e !== n ? (n[cW].modified_ && (AW(t), lW(4)), fW(e) && (e = PW(t, e), t.parent_ || IW(t, e)), t.patches_ && EW("Patches").generateReplacementPatches_(n[cW].base_, e, t.patches_, t.inversePatches_)) : e = PW(t, n, []), AW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === oW ? void 0 : e;
+ return e !== void 0 && e !== n ? (n[sW].modified_ && (kW(t), cW(4)), dW(e) && (e = NW(t, e), t.parent_ || FW(t, e)), t.patches_ && TW("Patches").generateReplacementPatches_(n[sW].base_, e, t.patches_, t.inversePatches_)) : e = NW(t, n, []), kW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === aW ? void 0 : e;
}
-function PW(e, t, n) {
- if (TW(t)) return t;
- let r = e.immer_.shouldUseStrictIteration(), i = t[cW];
- if (!i) return hW(t, (r, a) => FW(e, i, t, r, a, n), r), t;
+function NW(e, t, n) {
+ if (wW(t)) return t;
+ let r = e.immer_.shouldUseStrictIteration(), i = t[sW];
+ if (!i) return mW(t, (r, a) => PW(e, i, t, r, a, n), r), t;
if (i.scope_ !== e) return t;
- if (!i.modified_) return IW(e, i.base_, !0), i.base_;
+ if (!i.modified_) return FW(e, i.base_, !0), i.base_;
if (!i.finalized_) {
i.finalized_ = !0, i.scope_.unfinalizedDrafts_--;
let t = i.copy_, a = t, o = !1;
- i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), hW(a, (r, a) => FW(e, i, t, r, a, n, o), r), IW(e, t, !1), n && e.patches_ && EW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
+ i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), mW(a, (r, a) => PW(e, i, t, r, a, n, o), r), FW(e, t, !1), n && e.patches_ && TW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
}
return i.copy_;
}
-function FW(e, t, n, r, i, a, o) {
+function PW(e, t, n, r, i, a, o) {
if (i == null || typeof i != "object" && !o) return;
- let s = TW(i);
+ let s = wW(i);
if (!(s && !o)) {
- if (dW(i)) {
- let o = PW(e, i, a && t && t.type_ !== 3 && !_W(t.assigned_, r) ? a.concat(r) : void 0);
- if (vW(n, r, o), dW(o)) e.canAutoFreeze_ = !1;
+ if (uW(i)) {
+ let o = NW(e, i, a && t && t.type_ !== 3 && !gW(t.assigned_, r) ? a.concat(r) : void 0);
+ if (_W(n, r, o), uW(o)) e.canAutoFreeze_ = !1;
else return;
} else o && n.add(i);
- if (fW(i) && !s) {
+ if (dW(i) && !s) {
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;
- PW(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (yW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && IW(e, i);
+ NW(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (vW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && FW(e, i);
}
}
}
-function IW(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && CW(t, n);
+function FW(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && SW(t, n);
}
-function Twe(e, t) {
+function Dwe(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : OW(),
+ scope_: t ? t.scope_ : DW(),
modified_: !1,
finalized_: !1,
assigned_: {},
@@ -55584,41 +55651,41 @@ function Twe(e, t) {
copy_: null,
revoke_: null,
isManual_: !1
- }, i = r, a = LW;
- n && (i = [r], a = RW);
+ }, i = r, a = IW;
+ n && (i = [r], a = LW);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, s;
}
-var LW = {
+var IW = {
get(e, t) {
- if (t === cW) return e;
- let n = xW(e);
- if (!_W(n, t)) return Ewe(e, n, t);
+ if (t === sW) return e;
+ let n = bW(e);
+ if (!gW(n, t)) return Owe(e, n, t);
let r = n[t];
- return e.finalized_ || !fW(r) ? r : r === zW(e.base_, t) ? (HW(e), e.copy_[t] = UW(r, e)) : r;
+ return e.finalized_ || !dW(r) ? r : r === RW(e.base_, t) ? (VW(e), e.copy_[t] = HW(r, e)) : r;
},
has(e, t) {
- return t in xW(e);
+ return t in bW(e);
},
ownKeys(e) {
- return Reflect.ownKeys(xW(e));
+ return Reflect.ownKeys(bW(e));
},
set(e, t, n) {
- let r = BW(xW(e), t);
+ let r = zW(bW(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = zW(xW(e), t), i = r?.[cW];
+ let r = RW(bW(e), t), i = r?.[sW];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (bwe(n, r) && (n !== void 0 || _W(e.base_, t))) return !0;
- HW(e), VW(e);
+ if (Swe(n, r) && (n !== void 0 || gW(e.base_, t))) return !0;
+ VW(e), BW(e);
}
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_[t] = !0, !0);
},
deleteProperty(e, t) {
- return zW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, HW(e), VW(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
+ return RW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, VW(e), BW(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = xW(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = bW(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
writable: !0,
configurable: e.type_ !== 1 || t !== "length",
@@ -55627,48 +55694,48 @@ var LW = {
};
},
defineProperty() {
- lW(11);
+ cW(11);
},
getPrototypeOf(e) {
- return uW(e.base_);
+ return lW(e.base_);
},
setPrototypeOf() {
- lW(12);
+ cW(12);
}
-}, RW = {};
-hW(LW, (e, t) => {
- RW[e] = function() {
+}, LW = {};
+mW(IW, (e, t) => {
+ LW[e] = function() {
return arguments[0] = arguments[0][0], t.apply(this, arguments);
};
-}), RW.deleteProperty = function(e, t) {
- return RW.set.call(this, e, t, void 0);
-}, RW.set = function(e, t, n) {
- return LW.set.call(this, e[0], t, n, e[0]);
+}), LW.deleteProperty = function(e, t) {
+ return LW.set.call(this, e, t, void 0);
+}, LW.set = function(e, t, n) {
+ return IW.set.call(this, e[0], t, n, e[0]);
};
-function zW(e, t) {
- let n = e[cW];
- return (n ? xW(n) : e)[t];
+function RW(e, t) {
+ let n = e[sW];
+ return (n ? bW(n) : e)[t];
}
-function Ewe(e, t, n) {
- let r = BW(t, n);
+function Owe(e, t, n) {
+ let r = zW(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
-function BW(e, t) {
+function zW(e, t) {
if (!(t in e)) return;
- let n = uW(e);
+ let n = lW(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = uW(n);
+ n = lW(n);
}
}
-function VW(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && VW(e.parent_));
+function BW(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && BW(e.parent_));
}
-function HW(e) {
- e.copy_ ||= SW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
+function VW(e) {
+ e.copy_ ||= xW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var Dwe = class {
+var kwe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -55679,25 +55746,25 @@ var Dwe = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- typeof t != "function" && lW(6), n !== void 0 && typeof n != "function" && lW(7);
+ typeof t != "function" && cW(6), n !== void 0 && typeof n != "function" && cW(7);
let r;
- if (fW(e)) {
- let i = MW(this), a = UW(e, void 0), o = !0;
+ if (dW(e)) {
+ let i = jW(this), a = HW(e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? AW(i) : jW(i);
+ o ? kW(i) : AW(i);
}
- return kW(i, n), NW(r, i);
+ return OW(i, n), MW(r, i);
}
if (!e || typeof e != "object") {
- if (r = t(e), r === void 0 && (r = e), r === oW && (r = void 0), this.autoFreeze_ && CW(r, !0), n) {
+ if (r = t(e), r === void 0 && (r = e), r === aW && (r = void 0), this.autoFreeze_ && SW(r, !0), n) {
let t = [], i = [];
- EW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
+ TW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
}
return r;
}
- lW(1, e);
+ cW(1, e);
}, this.produceWithPatches = (e, t) => {
if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
@@ -55711,15 +55778,15 @@ var Dwe = class {
}, typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof e?.useStrictShallowCopy == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy), typeof e?.useStrictIteration == "boolean" && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- fW(e) || lW(8), dW(e) && (e = Owe(e));
- let t = MW(this), n = UW(e, void 0);
- return n[cW].isManual_ = !0, jW(t), n;
+ dW(e) || cW(8), uW(e) && (e = Awe(e));
+ let t = jW(this), n = HW(e, void 0);
+ return n[sW].isManual_ = !0, AW(t), n;
}
finishDraft(e, t) {
- let n = e && e[cW];
- (!n || !n.isManual_) && lW(9);
+ let n = e && e[sW];
+ (!n || !n.isManual_) && cW(9);
let { scope_: r } = n;
- return kW(r, t), NW(void 0, r);
+ return OW(r, t), MW(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -55743,35 +55810,35 @@ var Dwe = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = EW("Patches").applyPatches_;
- return dW(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = TW("Patches").applyPatches_;
+ return uW(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function UW(e, t) {
- let n = yW(e) ? EW("MapSet").proxyMap_(e, t) : bW(e) ? EW("MapSet").proxySet_(e, t) : Twe(e, t);
- return (t ? t.scope_ : OW()).drafts_.push(n), n;
+function HW(e, t) {
+ let n = vW(e) ? TW("MapSet").proxyMap_(e, t) : yW(e) ? TW("MapSet").proxySet_(e, t) : Dwe(e, t);
+ return (t ? t.scope_ : DW()).drafts_.push(n), n;
}
-function Owe(e) {
- return dW(e) || lW(10, e), WW(e);
+function Awe(e) {
+ return uW(e) || cW(10, e), UW(e);
}
-function WW(e) {
- if (!fW(e) || TW(e)) return e;
- let t = e[cW], n, r = !0;
+function UW(e) {
+ if (!dW(e) || wW(e)) return e;
+ let t = e[sW], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = SW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = SW(e, !0);
- return hW(n, (e, t) => {
- vW(n, e, WW(t));
+ t.finalized_ = !0, n = xW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = xW(e, !0);
+ return mW(n, (e, t) => {
+ _W(n, e, UW(t));
}, r), t && (t.finalized_ = !1), n;
}
-new Dwe().produce;
-function GW(e) {
+new kwe().produce;
+function WW(e) {
return e;
}
//#endregion
//#region node_modules/recharts/es6/state/legendSlice.js
-var KW = PH({
+var GW = NH({
name: "legend",
initialState: {
settings: {
@@ -55795,43 +55862,43 @@ var KW = PH({
},
addLegendPayload: {
reducer(e, t) {
- e.payload.push(GW(t.payload));
+ e.payload.push(WW(t.payload));
},
- prepare: AH()
+ prepare: kH()
},
replaceLegendPayload: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = xH(e).payload.indexOf(GW(n));
- i > -1 && (e.payload[i] = GW(r));
+ var { prev: n, next: r } = t.payload, i = bH(e).payload.indexOf(WW(n));
+ i > -1 && (e.payload[i] = WW(r));
},
- prepare: AH()
+ prepare: kH()
},
removeLegendPayload: {
reducer(e, t) {
- var n = xH(e).payload.indexOf(GW(t.payload));
+ var n = bH(e).payload.indexOf(WW(t.payload));
n > -1 && e.payload.splice(n, 1);
},
- prepare: AH()
+ prepare: kH()
}
}
-}), { setLegendSize: qW, setLegendSettings: kwe, addLegendPayload: JW, replaceLegendPayload: YW, removeLegendPayload: XW } = KW.actions, Awe = KW.reducer, jwe = /* @__PURE__ */ Ct(((e) => {
+}), { setLegendSize: KW, setLegendSettings: jwe, addLegendPayload: qW, replaceLegendPayload: JW, removeLegendPayload: YW } = GW.actions, Mwe = GW.reducer, Nwe = /* @__PURE__ */ Ct(((e) => {
var t = At();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ Ct(((e, t) => {
- t.exports = jwe();
+ t.exports = Nwe();
})))();
-function Mwe(e) {
+function Pwe(e) {
e();
}
-function Nwe() {
+function Fwe() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- Mwe(() => {
+ Pwe(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -55853,12 +55920,12 @@ function Nwe() {
}
};
}
-var ZW = {
+var XW = {
notify() {},
get: () => []
};
-function Pwe(e, t) {
- let n, r = ZW, i = 0, a = !1;
+function Iwe(e, t) {
+ let n, r = XW, i = 0, a = !1;
function o(e) {
u();
let t = r.subscribe(e), n = !1;
@@ -55876,10 +55943,10 @@ function Pwe(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = Nwe());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = Fwe());
}
function d() {
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = ZW);
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = XW);
}
function f() {
a || (a = !0, u());
@@ -55898,44 +55965,44 @@ function Pwe(e, t) {
};
return m;
}
-var Fwe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Iwe = typeof navigator < "u" && navigator.product === "ReactNative", Lwe = Fwe || Iwe ? R.useLayoutEffect : R.useEffect;
-function QW(e, t) {
+var Lwe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Rwe = typeof navigator < "u" && navigator.product === "ReactNative", zwe = Lwe || Rwe ? R.useLayoutEffect : R.useEffect;
+function ZW(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function Rwe(e, t) {
- if (QW(e, t)) return !0;
+function Bwe(e, t) {
+ if (ZW(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
let n = Object.keys(e), r = Object.keys(t);
if (n.length !== r.length) return !1;
- for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !QW(e[n[r]], t[n[r]])) return !1;
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !ZW(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var zwe = /* @__PURE__ */ Symbol.for("react-redux-context"), Bwe = typeof globalThis < "u" ? globalThis : {};
-function Vwe() {
+var Vwe = /* @__PURE__ */ Symbol.for("react-redux-context"), Hwe = typeof globalThis < "u" ? globalThis : {};
+function Uwe() {
if (!R.createContext) return {};
- let e = Bwe[zwe] ??= /* @__PURE__ */ new Map(), t = e.get(R.createContext);
+ let e = Hwe[Vwe] ??= /* @__PURE__ */ new Map(), t = e.get(R.createContext);
return t || (t = R.createContext(null), e.set(R.createContext, t)), t;
}
-var Hwe = /* @__PURE__ */ Vwe();
-function Uwe(e) {
+var Wwe = /* @__PURE__ */ Uwe();
+function Gwe(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = R.useMemo(() => {
- let e = Pwe(i);
+ let e = Iwe(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = R.useMemo(() => i.getState(), [i]);
- Lwe(() => {
+ zwe(() => {
let { subscription: e } = a;
return e.onStateChange = e.notifyNestedSubs, e.trySubscribe(), o !== i.getState() && e.notifyNestedSubs(), () => {
e.tryUnsubscribe(), e.onStateChange = void 0;
};
}, [a, o]);
- let s = n || Hwe;
+ let s = n || Wwe;
return /* @__PURE__ */ R.createElement(s.Provider, { value: a }, t);
}
-var Wwe = Uwe, Gwe = /* @__PURE__ */ new Set([
+var Kwe = Gwe, qwe = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -55958,29 +56025,29 @@ var Wwe = Uwe, Gwe = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function Kwe(e, t) {
+function Jwe(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
-function $W(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (Gwe.has(n)) {
+function QW(e, t) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (qwe.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!Rwe(e[n], t[n])) return !1;
- } else if (!Kwe(e[n], t[n])) return !1;
+ if (!Bwe(e[n], t[n])) return !1;
+ } else if (!Jwe(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var qwe = ["contextPayload"];
-function eG() {
- return eG = Object.assign ? Object.assign.bind() : function(e) {
+var Ywe = ["contextPayload"];
+function $W() {
+ return $W = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, eG.apply(null, arguments);
+ }, $W.apply(null, arguments);
}
-function tG(e, t) {
+function eG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55990,30 +56057,30 @@ function tG(e, t) {
}
return n;
}
-function nG(e) {
+function tG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? tG(Object(n), !0).forEach(function(t) {
- Jwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tG(Object(n)).forEach(function(t) {
+ t % 2 ? eG(Object(n), !0).forEach(function(t) {
+ Xwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Jwe(e, t, n) {
- return (t = Ywe(t)) in e ? Object.defineProperty(e, t, {
+function Xwe(e, t, n) {
+ return (t = Zwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Ywe(e) {
- var t = Xwe(e, "string");
+function Zwe(e) {
+ var t = Qwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Xwe(e, t) {
+function Qwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56023,16 +56090,16 @@ function Xwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Zwe(e, t) {
+function $we(e, t) {
if (e == null) return {};
- var n, r, i = Qwe(e, t);
+ var n, r, i = eTe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Qwe(e, t) {
+function eTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56041,36 +56108,36 @@ function Qwe(e, t) {
}
return n;
}
-function $we(e) {
+function tTe(e) {
return e.value;
}
-function eTe(e) {
- var { contextPayload: t } = e, n = Zwe(e, qwe), r = GB(t, e.payloadUniqBy, $we), i = nG(nG({}, n), {}, { payload: r });
- return /*#__PURE__*/ R.isValidElement(e.content) ? /*#__PURE__*/ R.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ R.createElement(e.content, i) : /*#__PURE__*/ R.createElement(Exe, i);
+function nTe(e) {
+ var { contextPayload: t } = e, n = $we(e, Ywe), r = WB(t, e.payloadUniqBy, tTe), i = tG(tG({}, n), {}, { payload: r });
+ return /*#__PURE__*/ R.isValidElement(e.content) ? /*#__PURE__*/ R.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ R.createElement(e.content, i) : /*#__PURE__*/ R.createElement(Oxe, i);
}
-function tTe(e, t, n, r, i, a) {
+function rTe(e, t, n, r, i, a) {
var { layout: o, align: s, verticalAlign: c } = t, l, u;
- return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), nG(nG({}, l), u);
+ return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), tG(tG({}, l), u);
}
-function nTe(e) {
- var t = qB();
+function iTe(e) {
+ var t = KB();
return (0, R.useEffect)(() => {
- t(kwe(e));
+ t(jwe(e));
}, [t, e]), null;
}
-function rTe(e) {
- var t = qB();
- return (0, R.useEffect)(() => (t(qW(e)), () => {
- t(qW({
+function aTe(e) {
+ var t = KB();
+ return (0, R.useEffect)(() => (t(KW(e)), () => {
+ t(KW({
width: 0,
height: 0
}));
}), [t, e]), null;
}
-function iTe(e, t, n, r) {
+function oTe(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var aTe = {
+var sTe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -56078,28 +56145,28 @@ var aTe = {
layout: "horizontal",
verticalAlign: "bottom"
};
-function oTe(e) {
- var t = bB(e, aTe), n = ISe(), r = bbe(), i = _we(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = iV([n]), d = QU(), f = $U();
+function cTe(e) {
+ var t = yB(e, sTe), n = RSe(), r = Sbe(), i = ywe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = rV([n]), d = ZU(), f = QU();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = iTe(t.layout, o, a, p), h = c ? s : nG(nG({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = oTe(t.layout, o, a, p), h = c ? s : tG(tG({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
- }, tTe(s, t, i, d, f, l)), s), g = c ?? r;
+ }, rTe(s, t, i, d, f, l)), s), g = c ?? r;
if (g == null || n == null) return null;
var _ = /*#__PURE__*/ R.createElement("div", {
className: "recharts-legend-wrapper",
style: h,
ref: u
- }, /*#__PURE__*/ R.createElement(nTe, {
+ }, /*#__PURE__*/ R.createElement(iTe, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ R.createElement(rTe, {
+ }), !c && /*#__PURE__*/ R.createElement(aTe, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ R.createElement(eTe, eG({}, t, m, {
+ }), /*#__PURE__*/ R.createElement(nTe, $W({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
@@ -56107,20 +56174,20 @@ function oTe(e) {
})));
return /*#__PURE__*/ (0, rp.createPortal)(_, g);
}
-var rG = /*#__PURE__*/ R.memo(oTe, $W);
-rG.displayName = "Legend";
+var nG = /*#__PURE__*/ R.memo(cTe, QW);
+nG.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
-function iG() {
- return iG = Object.assign ? Object.assign.bind() : function(e) {
+function rG() {
+ return rG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, iG.apply(null, arguments);
+ }, rG.apply(null, arguments);
}
-function aG(e, t) {
+function iG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56130,30 +56197,30 @@ function aG(e, t) {
}
return n;
}
-function oG(e) {
+function aG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? aG(Object(n), !0).forEach(function(t) {
- sTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : aG(Object(n)).forEach(function(t) {
+ t % 2 ? iG(Object(n), !0).forEach(function(t) {
+ lTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : iG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function sTe(e, t, n) {
- return (t = cTe(t)) in e ? Object.defineProperty(e, t, {
+function lTe(e, t, n) {
+ return (t = uTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function cTe(e) {
- var t = lTe(e, "string");
+function uTe(e) {
+ var t = dTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lTe(e, t) {
+function dTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56163,10 +56230,10 @@ function lTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function uTe(e) {
- return Array.isArray(e) && tB(e[0]) && tB(e[1]) ? e.join(" ~ ") : e;
+function fTe(e) {
+ return Array.isArray(e) && eB(e[0]) && eB(e[1]) ? e.join(" ~ ") : e;
}
-var sG = {
+var oG = {
separator: " : ",
contentStyle: {
margin: 0,
@@ -56184,30 +56251,30 @@ var sG = {
labelStyle: {},
accessibilityLayer: !1
};
-function dTe(e, t) {
- return t == null ? e : tV(e, t);
+function pTe(e, t) {
+ return t == null ? e : eV(e, t);
}
-var fTe = (e) => {
- var { separator: t = sG.separator, contentStyle: n, itemStyle: r, labelStyle: i = sG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = sG.accessibilityLayer } = e, p = () => {
+var mTe = (e) => {
+ var { separator: t = oG.separator, contentStyle: n, itemStyle: r, labelStyle: i = oG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = oG.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = dTe(a, s).map((e, n) => {
+ }, n = pTe(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || uTe, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || fTe, { value: s, name: c } = e, l = s, u = c;
if (i) {
var d = i(s, c, e, n, a);
if (Array.isArray(d)) [l, u] = d;
else if (d != null) l = d;
else return null;
}
- var f = oG(oG({}, sG.itemStyle), {}, { color: e.color || sG.itemStyle.color }, r);
+ var f = aG(aG({}, oG.itemStyle), {}, { color: e.color || oG.itemStyle.color }, r);
return /*#__PURE__*/ R.createElement("li", {
className: "recharts-tooltip-item",
key: `tooltip-item-${n}`,
style: f
- }, tB(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, tB(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
+ }, eB(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, eB(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
});
return /*#__PURE__*/ R.createElement("ul", {
className: "recharts-tooltip-item-list",
@@ -56215,30 +56282,30 @@ var fTe = (e) => {
}, n);
}
return null;
- }, m = oG(oG({}, sG.contentStyle), n), h = oG({ margin: 0 }, i), g = !sB(u), _ = g ? u : "", v = Sh("recharts-default-tooltip", c), y = Sh("recharts-tooltip-label", l);
+ }, m = aG(aG({}, oG.contentStyle), n), h = aG({ margin: 0 }, i), g = !oB(u), _ = g ? u : "", v = Sh("recharts-default-tooltip", c), y = Sh("recharts-tooltip-label", l);
g && d && a != null && (_ = d(u, a));
var b = f ? {
role: "status",
"aria-live": "assertive"
} : {};
- return /*#__PURE__*/ R.createElement("div", iG({
+ return /*#__PURE__*/ R.createElement("div", rG({
className: v,
style: m
}, b), /*#__PURE__*/ R.createElement("p", {
className: y,
style: h
}, /*#__PURE__*/ R.isValidElement(_) ? _ : `${_}`), p());
-}, cG = "recharts-tooltip-wrapper", pTe = { visibility: "hidden" };
-function mTe(e) {
+}, sG = "recharts-tooltip-wrapper", hTe = { visibility: "hidden" };
+function gTe(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
- return Sh(cG, {
- [`${cG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
- [`${cG}-left`]: Z(n) && t && Z(t.x) && n < t.x,
- [`${cG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
- [`${cG}-top`]: Z(r) && t && Z(t.y) && r < t.y
+ return Sh(sG, {
+ [`${sG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
+ [`${sG}-left`]: Z(n) && t && Z(t.x) && n < t.x,
+ [`${sG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
+ [`${sG}-top`]: Z(r) && t && Z(t.y) && r < t.y
});
}
-function lG(e) {
+function cG(e) {
var { allowEscapeViewBox: t, coordinate: n, key: r, offset: i, position: a, reverseDirection: o, tooltipDimension: s, viewBox: c, viewBoxDimension: l } = e;
if (a && Z(a[r])) return a[r];
var u = n[r] - s - (i > 0 ? i : 0), d = n[r] + i;
@@ -56246,13 +56313,13 @@ function lG(e) {
var f = c[r];
return f == null ? 0 : o[r] ? Math.max(u < f ? d : u, f) : l == null ? 0 : d + s > f + l ? Math.max(u, f) : Math.max(d, f);
}
-function hTe(e) {
+function _Te(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function gTe(e) {
+function vTe(e) {
var { allowEscapeViewBox: t, coordinate: n, offsetTop: r, offsetLeft: i, position: a, reverseDirection: o, tooltipBox: s, useTranslate3d: c, viewBox: l } = e, u, d, f;
- return s.height > 0 && s.width > 0 && n ? (d = lG({
+ return s.height > 0 && s.width > 0 && n ? (d = cG({
allowEscapeViewBox: t,
coordinate: n,
key: "x",
@@ -56262,7 +56329,7 @@ function gTe(e) {
tooltipDimension: s.width,
viewBox: l,
viewBoxDimension: l.width
- }), f = lG({
+ }), f = cG({
allowEscapeViewBox: t,
coordinate: n,
key: "y",
@@ -56272,27 +56339,27 @@ function gTe(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = hTe({
+ }), u = _Te({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = pTe, {
+ })) : u = hTe, {
cssProperties: u,
- cssClasses: mTe({
+ cssClasses: gTe({
translateX: d,
translateY: f,
coordinate: n
})
};
}
-var uG = {
+var lG = {
devToolsEnabled: !0,
isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)
};
//#endregion
//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js
-function dG() {
- var [e, t] = (0, R.useState)(() => uG.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
+function uG() {
+ var [e, t] = (0, R.useState)(() => lG.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
return (0, R.useEffect)(() => {
if (window.matchMedia) {
var e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {
@@ -56306,7 +56373,7 @@ function dG() {
}
//#endregion
//#region node_modules/recharts/es6/component/TooltipBoundingBox.js
-function fG(e, t) {
+function dG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56316,30 +56383,30 @@ function fG(e, t) {
}
return n;
}
-function pG(e) {
+function fG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? fG(Object(n), !0).forEach(function(t) {
- _Te(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fG(Object(n)).forEach(function(t) {
+ t % 2 ? dG(Object(n), !0).forEach(function(t) {
+ yTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function _Te(e, t, n) {
- return (t = vTe(t)) in e ? Object.defineProperty(e, t, {
+function yTe(e, t, n) {
+ return (t = bTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function vTe(e) {
- var t = yTe(e, "string");
+function bTe(e) {
+ var t = xTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function yTe(e, t) {
+function xTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56349,11 +56416,11 @@ function yTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function bTe(e) {
+function STe(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function xTe(e) {
- var t = dG(), [n, r] = R.useState(() => ({
+function CTe(e) {
+ var t = uG(), [n, r] = R.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
x: 0,
@@ -56373,8 +56440,8 @@ function xTe(e) {
return document.addEventListener("keydown", t), () => {
document.removeEventListener("keydown", t);
};
- }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(pG(pG({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = gTe({
+ }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(fG(fG({}, n), {}, { dismissed: !1 }));
+ var { cssClasses: i, cssProperties: a } = vTe({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -56387,7 +56454,7 @@ function xTe(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = pG(pG({}, e.hasPortalFromProps ? {} : pG(pG({ transition: bTe({
+ }), o = fG(fG({}, e.hasPortalFromProps ? {} : fG(fG({ transition: STe({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -56407,19 +56474,19 @@ function xTe(e) {
ref: e.innerRef
}, e.children);
}
-var STe = /*#__PURE__*/ R.memo(xTe), mG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var wTe = /*#__PURE__*/ R.memo(CTe), pG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
-function hG() {
- return hG = Object.assign ? Object.assign.bind() : function(e) {
+function mG() {
+ return mG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, hG.apply(null, arguments);
+ }, mG.apply(null, arguments);
}
-function gG(e, t) {
+function hG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56429,30 +56496,30 @@ function gG(e, t) {
}
return n;
}
-function _G(e) {
+function gG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? gG(Object(n), !0).forEach(function(t) {
- CTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gG(Object(n)).forEach(function(t) {
+ t % 2 ? hG(Object(n), !0).forEach(function(t) {
+ TTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function CTe(e, t, n) {
- return (t = wTe(t)) in e ? Object.defineProperty(e, t, {
+function TTe(e, t, n) {
+ return (t = ETe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function wTe(e) {
- var t = TTe(e, "string");
+function ETe(e) {
+ var t = DTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function TTe(e, t) {
+function DTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56462,40 +56529,40 @@ function TTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var vG = {
- curveBasisClosed: Rbe,
- curveBasisOpen: zbe,
- curveBasis: Lbe,
- curveBumpX: Cbe,
- curveBumpY: wbe,
- curveLinearClosed: Bbe,
- curveLinear: fz,
- curveMonotoneX: Vbe,
- curveMonotoneY: Hbe,
- curveNatural: Ube,
- curveStep: Wbe,
- curveStepAfter: Kbe,
- curveStepBefore: Gbe
-}, yG = (e) => lU(e.x) && lU(e.y), bG = (e) => e.base != null && yG(e.base) && yG(e), xG = (e) => e.x, SG = (e) => e.y, ETe = (e, t) => {
+var _G = {
+ curveBasisClosed: Bbe,
+ curveBasisOpen: Vbe,
+ curveBasis: zbe,
+ curveBumpX: Tbe,
+ curveBumpY: Ebe,
+ curveLinearClosed: Hbe,
+ curveLinear: dz,
+ curveMonotoneX: Ube,
+ curveMonotoneY: Wbe,
+ curveNatural: Gbe,
+ curveStep: Kbe,
+ curveStepAfter: Jbe,
+ curveStepBefore: qbe
+}, vG = (e) => cU(e.x) && cU(e.y), yG = (e) => e.base != null && vG(e.base) && vG(e), bG = (e) => e.x, xG = (e) => e.y, OTe = (e, t) => {
if (typeof e == "function") return e;
- var n = `curve${cB(e)}`;
+ var n = `curve${sB(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
- var r = vG[`${n}${t === "vertical" ? "Y" : "X"}`];
+ var r = _G[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return vG[n] || fz;
-}, CG = {
+ return _G[n] || dz;
+}, SG = {
connectNulls: !1,
type: "linear"
-}, DTe = (e) => {
- var { type: t = CG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = CG.connectNulls } = e, o = ETe(t, i), s = a ? n.filter(yG) : n;
+}, kTe = (e) => {
+ var { type: t = SG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = SG.connectNulls } = e, o = OTe(t, i), s = a ? n.filter(vG) : n;
if (Array.isArray(r)) {
- var c, l = n.map((e, t) => _G(_G({}, e), {}, { base: r[t] }));
- return c = i === "vertical" ? gz().y(SG).x1(xG).x0((e) => e.base.x) : gz().x(xG).y1(SG).y0((e) => e.base.y), c.defined(bG).curve(o)(a ? l.filter(bG) : l);
+ var c, l = n.map((e, t) => gG(gG({}, e), {}, { base: r[t] }));
+ return c = i === "vertical" ? hz().y(xG).x1(bG).x0((e) => e.base.x) : hz().x(bG).y1(xG).y0((e) => e.base.y), c.defined(yG).curve(o)(a ? l.filter(yG) : l);
}
- return (i === "vertical" && Z(r) ? gz().y(SG).x1(xG).x0(r) : Z(r) ? gz().x(xG).y1(SG).y0(r) : hz().x(xG).y(SG)).defined(yG).curve(o)(s);
-}, wG = (e) => {
- var { className: t, points: n, path: r, pathRef: i } = e, a = tW();
+ return (i === "vertical" && Z(r) ? hz().y(xG).x1(bG).x0(r) : Z(r) ? hz().x(bG).y1(xG).y0(r) : mz().x(bG).y(xG)).defined(vG).curve(o)(s);
+}, CG = (e) => {
+ var { className: t, points: n, path: r, pathRef: i } = e, a = eW();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@ -56503,13 +56570,13 @@ var vG = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? DTe(o) : r;
- return /*#__PURE__*/ R.createElement("path", hG({}, WR(e), _B(e), {
+ }, s = n && n.length ? kTe(o) : r;
+ return /*#__PURE__*/ R.createElement("path", mG({}, UR(e), gB(e), {
className: Sh("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, OTe = [
+}, ATe = [
"x",
"y",
"top",
@@ -56518,16 +56585,16 @@ var vG = {
"height",
"className"
];
-function TG() {
- return TG = Object.assign ? Object.assign.bind() : function(e) {
+function wG() {
+ return wG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, TG.apply(null, arguments);
+ }, wG.apply(null, arguments);
}
-function EG(e, t) {
+function TG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56537,30 +56604,30 @@ function EG(e, t) {
}
return n;
}
-function kTe(e) {
+function jTe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? EG(Object(n), !0).forEach(function(t) {
- ATe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : EG(Object(n)).forEach(function(t) {
+ t % 2 ? TG(Object(n), !0).forEach(function(t) {
+ MTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : TG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ATe(e, t, n) {
- return (t = jTe(t)) in e ? Object.defineProperty(e, t, {
+function MTe(e, t, n) {
+ return (t = NTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function jTe(e) {
- var t = MTe(e, "string");
+function NTe(e) {
+ var t = PTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function MTe(e, t) {
+function PTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56570,16 +56637,16 @@ function MTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function NTe(e, t) {
+function FTe(e, t) {
if (e == null) return {};
- var n, r, i = PTe(e, t);
+ var n, r, i = ITe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function PTe(e, t) {
+function ITe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56588,8 +56655,8 @@ function PTe(e, t) {
}
return n;
}
-var FTe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, ITe = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = NTe(e, OTe), l = kTe({
+var LTe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, RTe = (e) => {
+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = FTe(e, ATe), l = jTe({
x: t,
y: n,
top: r,
@@ -56597,14 +56664,14 @@ var FTe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, ITe = (e) => {
width: a,
height: o
}, c);
- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ R.createElement("path", TG({}, KR(l), {
+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ R.createElement("path", wG({}, GR(l), {
className: Sh("recharts-cross", s),
- d: FTe(t, n, a, o, r, i)
+ d: LTe(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function LTe(e, t, n, r) {
+function zTe(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -56617,7 +56684,7 @@ function LTe(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/animation/util.js
-function DG(e, t) {
+function EG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56627,30 +56694,30 @@ function DG(e, t) {
}
return n;
}
-function OG(e) {
+function DG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? DG(Object(n), !0).forEach(function(t) {
- RTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DG(Object(n)).forEach(function(t) {
+ t % 2 ? EG(Object(n), !0).forEach(function(t) {
+ BTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : EG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function RTe(e, t, n) {
- return (t = zTe(t)) in e ? Object.defineProperty(e, t, {
+function BTe(e, t, n) {
+ return (t = VTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function zTe(e) {
- var t = BTe(e, "string");
+function VTe(e) {
+ var t = HTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function BTe(e, t) {
+function HTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56660,10 +56727,10 @@ function BTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var VTe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), kG = (e, t, n) => e.map((e) => `${VTe(e)} ${t}ms ${n}`).join(","), HTe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), AG = (e, t) => Object.keys(t).reduce((n, r) => OG(OG({}, n), {}, { [r]: e(r, t[r]) }), {});
+var UTe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), OG = (e, t, n) => e.map((e) => `${UTe(e)} ${t}ms ${n}`).join(","), WTe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), kG = (e, t) => Object.keys(t).reduce((n, r) => DG(DG({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
-function jG(e, t) {
+function AG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56673,30 +56740,30 @@ function jG(e, t) {
}
return n;
}
-function MG(e) {
+function jG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? jG(Object(n), !0).forEach(function(t) {
- UTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jG(Object(n)).forEach(function(t) {
+ t % 2 ? AG(Object(n), !0).forEach(function(t) {
+ GTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function UTe(e, t, n) {
- return (t = WTe(t)) in e ? Object.defineProperty(e, t, {
+function GTe(e, t, n) {
+ return (t = KTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function WTe(e) {
- var t = GTe(e, "string");
+function KTe(e) {
+ var t = qTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function GTe(e, t) {
+function qTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56706,51 +56773,51 @@ function GTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var NG = (e, t, n) => e + (t - e) * n, PG = (e) => {
+var MG = (e, t, n) => e + (t - e) * n, NG = (e) => {
var { from: t, to: n } = e;
return t !== n;
-}, FG = (e, t, n) => {
- var r = AG((t, n) => {
- if (PG(n)) {
+}, PG = (e, t, n) => {
+ var r = kG((t, n) => {
+ if (NG(n)) {
var [r, i] = e(n.from, n.to, n.velocity);
- return MG(MG({}, n), {}, {
+ return jG(jG({}, n), {}, {
from: r,
velocity: i
});
}
return n;
}, t);
- return n < 1 ? AG((e, t) => PG(t) && r[e] != null ? MG(MG({}, t), {}, {
- velocity: NG(t.velocity, r[e].velocity, n),
- from: NG(t.from, r[e].from, n)
- }) : t, t) : FG(e, r, n - 1);
+ return n < 1 ? kG((e, t) => NG(t) && r[e] != null ? jG(jG({}, t), {}, {
+ velocity: MG(t.velocity, r[e].velocity, n),
+ from: MG(t.from, r[e].from, n)
+ }) : t, t) : PG(e, r, n - 1);
};
-function KTe(e, t, n, r, i, a) {
- var o, s = r.reduce((n, r) => MG(MG({}, n), {}, { [r]: {
+function JTe(e, t, n, r, i, a) {
+ var o, s = r.reduce((n, r) => jG(jG({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
to: t[r]
- } }), {}), c = () => AG((e, t) => t.from, s), l = () => !Object.values(s).filter(PG).length, u = null, d = (r) => {
+ } }), {}), c = () => kG((e, t) => t.from, s), l = () => !Object.values(s).filter(NG).length, u = null, d = (r) => {
o ||= r;
var f = (r - o) / n.dt;
- s = FG(n, s, f), i(MG(MG(MG({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
+ s = PG(n, s, f), i(jG(jG(jG({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
};
return () => (u = a.setTimeout(d), () => {
var e;
(e = u) == null || e();
});
}
-function qTe(e, t, n, r, i, a, o) {
+function YTe(e, t, n, r, i, a, o) {
var s = null, c = i.reduce((n, r) => {
var i = e[r], a = t[r];
- return i == null || a == null ? n : MG(MG({}, n), {}, { [r]: [i, a] });
+ return i == null || a == null ? n : jG(jG({}, n), {}, { [r]: [i, a] });
}, {}), l, u = (i) => {
l ||= i;
- var d = (i - l) / r, f = AG((e, t) => NG(...t, n(d)), c);
- if (a(MG(MG(MG({}, e), t), f)), d < 1) s = o.setTimeout(u);
+ var d = (i - l) / r, f = kG((e, t) => MG(...t, n(d)), c);
+ if (a(jG(jG(jG({}, e), t), f)), d < 1) s = o.setTimeout(u);
else {
- var p = AG((e, t) => NG(...t, n(1)), c);
- a(MG(MG(MG({}, e), t), p));
+ var p = kG((e, t) => MG(...t, n(1)), c);
+ a(jG(jG(jG({}, e), t), p));
}
};
return () => (s = o.setTimeout(u), () => {
@@ -56758,15 +56825,15 @@ function qTe(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var JTe = (e, t, n, r, i, a) => {
- var o = HTe(e, t);
- return n == null ? () => (i(MG(MG({}, e), t)), () => {}) : n.isStepper === !0 ? KTe(e, t, n, o, i, a) : qTe(e, t, n, r, o, i, a);
-}, IG = (e, t) => [
+var XTe = (e, t, n, r, i, a) => {
+ var o = WTe(e, t);
+ return n == null ? () => (i(jG(jG({}, e), t)), () => {}) : n.isStepper === !0 ? JTe(e, t, n, o, i, a) : YTe(e, t, n, r, o, i, a);
+}, FG = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], LG = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), RG = (e, t) => (n) => LG(IG(e, t), n), YTe = (e, t) => (n) => LG([...IG(e, t).map((e, t) => e * t).slice(1), 0], n), XTe = (e) => {
+], IG = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), LG = (e, t) => (n) => IG(FG(e, t), n), ZTe = (e, t) => (n) => IG([...FG(e, t).map((e, t) => e * t).slice(1), 0], n), QTe = (e) => {
var t, n = e.split("(");
if (n.length !== 2 || n[0] !== "cubic-bezier") return null;
var r = (t = n[1]) == null || (t = t.split(")")[0]) == null ? void 0 : t.split(",");
@@ -56778,7 +56845,7 @@ var JTe = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, ZTe = function() {
+}, $Te = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -56812,7 +56879,7 @@ var JTe = (e, t, n, r, i, a) => {
1
];
default:
- var t = XTe(e[0]);
+ var t = QTe(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -56821,8 +56888,8 @@ var JTe = (e, t, n, r, i, a) => {
1,
1
];
-}, QTe = (e, t, n, r) => {
- var i = RG(e, n), a = RG(t, r), o = YTe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, eEe = (e, t, n, r) => {
+ var i = LG(e, n), a = LG(t, r), o = ZTe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
for (var t = e > 1 ? 1 : e, n = t, r = 0; r < 8; ++r) {
var c = i(n) - t, l = o(n);
if (Math.abs(c - t) < 1e-4 || l < 1e-4) return a(n);
@@ -56831,29 +56898,29 @@ var JTe = (e, t, n, r, i, a) => {
return a(n);
};
return c.isStepper = !1, c;
-}, zG = function() {
- return QTe(...ZTe(...arguments));
-}, $Te = function() {
+}, RG = function() {
+ return eEe(...$Te(...arguments));
+}, tEe = function() {
var { stiff: e = 100, damping: t = 8, dt: n = 17 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = (r, i, a) => {
var o = a + (-(r - i) * e - a * t) * n / 1e3, s = a * n / 1e3 + r;
return Math.abs(s - i) < 1e-4 && Math.abs(o) < 1e-4 ? [i, 0] : [s, o];
};
return r.isStepper = !0, r.dt = n, r;
-}, eEe = (e) => {
+}, nEe = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
- case "linear": return zG(e);
- case "spring": return $Te();
- default: if (e.split("(")[0] === "cubic-bezier") return zG(e);
+ case "linear": return RG(e);
+ case "spring": return tEe();
+ default: if (e.split("(")[0] === "cubic-bezier") return RG(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function tEe(e) {
+function rEe(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -56884,7 +56951,7 @@ function tEe(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var nEe = class {
+var iEe = class {
setTimeout(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = performance.now(), r = null, i = (a) => {
a - n >= t ? e(a) : typeof requestAnimationFrame == "function" && (r = requestAnimationFrame(i));
@@ -56896,14 +56963,14 @@ var nEe = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function rEe() {
- return tEe(new nEe());
+function aEe() {
+ return rEe(new iEe());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var iEe = /*#__PURE__*/ (0, R.createContext)(rEe);
-function aEe(e, t) {
- var n = (0, R.useContext)(iEe);
+var oEe = /*#__PURE__*/ (0, R.createContext)(aEe);
+function sEe(e, t) {
+ var n = (0, R.useContext)(oEe);
return (0, R.useMemo)(() => t ?? n(e), [
e,
t,
@@ -56912,7 +56979,7 @@ function aEe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var oEe = {
+var cEe = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -56920,14 +56987,14 @@ var oEe = {
canBegin: !0,
onAnimationEnd: () => {},
onAnimationStart: () => {}
-}, BG = { t: 0 }, VG = { t: 1 };
-function HG(e) {
- var t = bB(e, oEe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = dG(), d = n === "auto" ? !uG.isSsr && !u : n, f = aEe(t.animationId, t.animationManager), [p, m] = (0, R.useState)(d ? BG : VG), h = (0, R.useRef)(null);
+}, zG = { t: 0 }, BG = { t: 1 };
+function VG(e) {
+ var t = yB(e, cEe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = uG(), d = n === "auto" ? !lG.isSsr && !u : n, f = sEe(t.animationId, t.animationManager), [p, m] = (0, R.useState)(d ? zG : BG), h = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
- d || m(VG);
+ d || m(BG);
}, [d]), (0, R.useEffect)(() => {
- if (!d || !r) return uB;
- var e = JTe(BG, VG, eEe(a), i, m, f.getTimeoutController());
+ if (!d || !r) return lB;
+ var e = XTe(zG, BG, nEe(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -56952,14 +57019,14 @@ function HG(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
-function UG(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, R.useRef)(nB(t)), r = (0, R.useRef)(e);
- return r.current !== e && (n.current = nB(t), r.current = e), n.current;
+function HG(e) {
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, R.useRef)(tB(t)), r = (0, R.useRef)(e);
+ return r.current !== e && (n.current = tB(t), r.current = e), n.current;
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var sEe = ["radius"], cEe = ["radius"], lEe, uEe, dEe, fEe, pEe, mEe, hEe, gEe, _Ee, vEe;
-function WG(e, t) {
+var lEe = ["radius"], uEe = ["radius"], dEe, fEe, pEe, mEe, hEe, gEe, _Ee, vEe, yEe, bEe;
+function UG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56969,30 +57036,30 @@ function WG(e, t) {
}
return n;
}
-function GG(e) {
+function WG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? WG(Object(n), !0).forEach(function(t) {
- yEe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : WG(Object(n)).forEach(function(t) {
+ t % 2 ? UG(Object(n), !0).forEach(function(t) {
+ xEe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yEe(e, t, n) {
- return (t = bEe(t)) in e ? Object.defineProperty(e, t, {
+function xEe(e, t, n) {
+ return (t = SEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bEe(e) {
- var t = xEe(e, "string");
+function SEe(e) {
+ var t = CEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xEe(e, t) {
+function CEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57002,25 +57069,25 @@ function xEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function KG() {
- return KG = Object.assign ? Object.assign.bind() : function(e) {
+function GG() {
+ return GG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, KG.apply(null, arguments);
+ }, GG.apply(null, arguments);
}
-function qG(e, t) {
+function KG(e, t) {
if (e == null) return {};
- var n, r, i = SEe(e, t);
+ var n, r, i = wEe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function SEe(e, t) {
+function wEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57029,11 +57096,11 @@ function SEe(e, t) {
}
return n;
}
-function JG(e, t) {
+function qG(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var YG = (e, t, n, r, i) => {
- var a = Xz(n), o = Xz(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
+var JG = (e, t, n, r, i) => {
+ var a = Yz(n), o = Yz(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
if (s > 0 && Array.isArray(i)) {
for (var f = [
0,
@@ -57044,44 +57111,44 @@ var YG = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = Zz(lEe ||= JG([
+ d = Xz(dEe ||= qG([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += Zz(uEe ||= JG([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += Xz(fEe ||= qG([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += Zz(dEe ||= JG([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += Xz(pEe ||= qG([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += Zz(fEe ||= JG([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += Xz(mEe ||= qG([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += Zz(pEe ||= JG([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += Xz(hEe ||= qG([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += Zz(mEe ||= JG([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += Xz(gEe ||= qG([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += Zz(hEe ||= JG([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += Xz(_Ee ||= qG([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += Zz(gEe ||= JG([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += Xz(vEe ||= qG([
"A ",
",",
",0,0,",
@@ -57091,8 +57158,8 @@ var YG = (e, t, n, r, i) => {
]), f[3], f[3], u, e, t + r - c * f[3])), d += "Z";
} else if (s > 0 && i === +i && i > 0) {
var g = Math.min(s, i);
- d = Zz(_Ee ||= JG(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
- } else d = Zz(vEe ||= JG([
+ d = Xz(yEe ||= qG(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
+ } else d = Xz(bEe ||= qG([
"M ",
",",
" h ",
@@ -57101,7 +57168,7 @@ var YG = (e, t, n, r, i) => {
" Z"
]), e, t, n, r, -n);
return d;
-}, XG = {
+}, YG = {
x: 0,
y: 0,
width: 0,
@@ -57112,15 +57179,15 @@ var YG = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, ZG = (e) => {
- var t = bB(e, XG), n = (0, R.useRef)(null), [r, i] = (0, R.useState)(-1);
+}, XG = (e) => {
+ var t = yB(e, YG), n = (0, R.useRef)(null), [r, i] = (0, R.useState)(-1);
(0, R.useEffect)(() => {
if (n.current && n.current.getTotalLength) try {
var e = n.current.getTotalLength();
e && i(e);
} catch {}
}, []);
- var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, R.useRef)(s), _ = (0, R.useRef)(c), v = (0, R.useRef)(a), y = (0, R.useRef)(o), b = UG((0, R.useMemo)(() => ({
+ var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, R.useRef)(s), _ = (0, R.useRef)(c), v = (0, R.useRef)(a), y = (0, R.useRef)(o), b = HG((0, R.useMemo)(() => ({
x: a,
y: o,
width: s,
@@ -57136,19 +57203,19 @@ var YG = (e, t, n, r, i) => {
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
var x = Sh("recharts-rectangle", u);
if (!h) {
- var S = KR(t), { radius: C } = S, w = qG(S, sEe);
- return /*#__PURE__*/ R.createElement("path", KG({}, w, {
- x: Xz(a),
- y: Xz(o),
- width: Xz(s),
- height: Xz(c),
+ var S = GR(t), { radius: C } = S, w = KG(S, lEe);
+ return /*#__PURE__*/ R.createElement("path", GG({}, w, {
+ x: Yz(a),
+ y: Yz(o),
+ width: Yz(s),
+ height: Yz(c),
radius: typeof l == "number" ? l : void 0,
className: x,
- d: YG(a, o, s, c, l)
+ d: JG(a, o, s, c, l)
}));
}
- var T = g.current, E = _.current, D = v.current, O = y.current, k = `0px ${r === -1 ? 1 : r}px`, A = `${r}px ${r}px`, j = kG(["strokeDasharray"], f, typeof d == "string" ? d : XG.animationEasing);
- return /*#__PURE__*/ R.createElement(HG, {
+ var T = g.current, E = _.current, D = v.current, O = y.current, k = `0px ${r === -1 ? 1 : r}px`, A = `${r}px ${r}px`, j = OG(["strokeDasharray"], f, typeof d == "string" ? d : YG.animationEasing);
+ return /*#__PURE__*/ R.createElement(VG, {
animationId: b,
key: b,
canBegin: r > 0,
@@ -57157,24 +57224,24 @@ var YG = (e, t, n, r, i) => {
isActive: h,
begin: p
}, (e) => {
- var r = aB(T, s, e), i = aB(E, c, e), u = aB(D, a, e), d = aB(O, o, e);
+ var r = iB(T, s, e), i = iB(E, c, e), u = iB(D, a, e), d = iB(O, o, e);
n.current && (g.current = r, _.current = i, v.current = u, y.current = d);
var f = m ? e > 0 ? {
transition: j,
strokeDasharray: A
- } : { strokeDasharray: k } : { strokeDasharray: A }, p = KR(t), { radius: h } = p, b = qG(p, cEe);
- return /*#__PURE__*/ R.createElement("path", KG({}, b, {
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = GR(t), { radius: h } = p, b = KG(p, uEe);
+ return /*#__PURE__*/ R.createElement("path", GG({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
- d: YG(u, d, r, i, l),
+ d: JG(u, d, r, i, l),
ref: n,
- style: GG(GG({}, f), t.style)
+ style: WG(WG({}, f), t.style)
}));
});
};
//#endregion
//#region node_modules/recharts/es6/util/PolarUtils.js
-function QG(e, t) {
+function ZG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -57184,30 +57251,30 @@ function QG(e, t) {
}
return n;
}
-function $G(e) {
+function QG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? QG(Object(n), !0).forEach(function(t) {
- CEe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : QG(Object(n)).forEach(function(t) {
+ t % 2 ? ZG(Object(n), !0).forEach(function(t) {
+ TEe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ZG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function CEe(e, t, n) {
- return (t = wEe(t)) in e ? Object.defineProperty(e, t, {
+function TEe(e, t, n) {
+ return (t = EEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function wEe(e) {
- var t = TEe(e, "string");
+function EEe(e) {
+ var t = DEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function TEe(e, t) {
+function DEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57217,10 +57284,10 @@ function TEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var eK = Math.PI / 180, tK = (e) => e * Math.PI / 180, EEe = (e) => e * 180 / Math.PI, nK = (e, t, n, r) => ({
- x: e + Math.cos(-eK * r) * n,
- y: t + Math.sin(-eK * r) * n
-}), DEe = function(e, t) {
+var $G = Math.PI / 180, eK = (e) => e * Math.PI / 180, OEe = (e) => e * 180 / Math.PI, tK = (e, t, n, r) => ({
+ x: e + Math.cos(-$G * r) * n,
+ y: t + Math.sin(-$G * r) * n
+}), kEe = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -57231,11 +57298,11 @@ var eK = Math.PI / 180, tK = (e) => e * Math.PI / 180, EEe = (e) => e * 180 / Ma
brushBottom: 0
};
return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;
-}, OEe = (e, t) => {
+}, AEe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, kEe = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = OEe({
+}, jEe = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = AEe({
x: n,
y: r
}, {
@@ -57249,25 +57316,25 @@ var eK = Math.PI / 180, tK = (e) => e * Math.PI / 180, EEe = (e) => e * 180 / Ma
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: EEe(c),
+ angle: OEe(c),
angleInRadian: c
};
-}, AEe = (e) => {
+}, MEe = (e) => {
var { startAngle: t, endAngle: n } = e, r = Math.floor(t / 360), i = Math.floor(n / 360), a = Math.min(r, i);
return {
startAngle: t - a * 360,
endAngle: n - a * 360
};
-}, jEe = (e, t) => {
+}, NEe = (e, t) => {
var { startAngle: n, endAngle: r } = t, i = Math.floor(n / 360), a = Math.floor(r / 360);
return e + Math.min(i, a) * 360;
-}, MEe = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = kEe({
+}, PEe = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = jEe({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = AEe(t), u = a, d;
+ var { startAngle: c, endAngle: l } = MEe(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -57277,17 +57344,17 @@ var eK = Math.PI / 180, tK = (e) => e * Math.PI / 180, EEe = (e) => e * 180 / Ma
for (; u < l;) u += 360;
d = u >= l && u <= c;
}
- return d ? $G($G({}, t), {}, {
+ return d ? QG(QG({}, t), {}, {
radius: i,
- angle: jEe(u, t)
+ angle: NEe(u, t)
}) : null;
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js
-function rK(e) {
+function nK(e) {
var { cx: t, cy: n, radius: r, startAngle: i, endAngle: a } = e;
return {
- points: [nK(t, n, r, i), nK(t, n, r, a)],
+ points: [tK(t, n, r, i), tK(t, n, r, a)],
cx: t,
cy: n,
radius: r,
@@ -57297,29 +57364,29 @@ function rK(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var NEe, PEe, FEe, IEe, LEe, REe, zEe;
-function iK() {
- return iK = Object.assign ? Object.assign.bind() : function(e) {
+var FEe, IEe, LEe, REe, zEe, BEe, VEe;
+function rK() {
+ return rK = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, iK.apply(null, arguments);
+ }, rK.apply(null, arguments);
}
-function aK(e, t) {
+function iK(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var BEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), oK = (e) => {
- var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / eK, d = c ? i : i + a * u, f = nK(t, n, l, d), p = nK(t, n, r, d), m = c ? i - a * u : i;
+var HEe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) => {
+ var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / $G, d = c ? i : i + a * u, f = tK(t, n, l, d), p = tK(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
circleTangency: p,
- lineTangency: nK(t, n, l * Math.cos(u * eK), m),
+ lineTangency: tK(t, n, l * Math.cos(u * $G), m),
theta: u
};
-}, sK = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = BEe(a, o), c = a + s, l = nK(t, n, i, a), u = nK(t, n, i, c), d = Zz(NEe ||= aK([
+}, oK = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = HEe(a, o), c = a + s, l = tK(t, n, i, a), u = tK(t, n, i, c), d = Xz(FEe ||= iK([
"M ",
",",
"\n A ",
@@ -57331,8 +57398,8 @@ var BEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), oK = (e) =>
"\n "
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
- var f = nK(t, n, r, a), p = nK(t, n, r, c);
- d += Zz(PEe ||= aK([
+ var f = tK(t, n, r, a), p = tK(t, n, r, c);
+ d += Xz(IEe ||= iK([
"L ",
",",
"\n A ",
@@ -57343,14 +57410,14 @@ var BEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), oK = (e) =>
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += Zz(FEe ||= aK([
+ } else d += Xz(LEe ||= iK([
"L ",
",",
" Z"
]), t, n);
return d;
-}, VEe = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = Qz(l - c), { circleTangency: d, lineTangency: f, theta: p } = oK({
+}, UEe = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = Zz(l - c), { circleTangency: d, lineTangency: f, theta: p } = aK({
cx: t,
cy: n,
radius: i,
@@ -57358,7 +57425,7 @@ var BEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), oK = (e) =>
sign: u,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: m, lineTangency: h, theta: g } = oK({
+ }), { circleTangency: m, lineTangency: h, theta: g } = aK({
cx: t,
cy: n,
radius: i,
@@ -57367,7 +57434,7 @@ var BEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), oK = (e) =>
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? Zz(IEe ||= aK([
+ if (_ < 0) return o ? Xz(REe ||= iK([
"M ",
",",
"\n a",
@@ -57377,7 +57444,7 @@ var BEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), oK = (e) =>
",",
",0,0,1,",
",0\n "
- ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : sK({
+ ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : oK({
cx: t,
cy: n,
innerRadius: r,
@@ -57385,7 +57452,7 @@ var BEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), oK = (e) =>
startAngle: c,
endAngle: l
});
- var v = Zz(LEe ||= aK([
+ var v = Xz(zEe ||= iK([
"M ",
",",
"\n A",
@@ -57407,7 +57474,7 @@ var BEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), oK = (e) =>
"\n "
]), f.x, f.y, a, a, +(u < 0), d.x, d.y, i, i, +(_ > 180), +(u < 0), m.x, m.y, a, a, +(u < 0), h.x, h.y);
if (r > 0) {
- var { circleTangency: y, lineTangency: b, theta: x } = oK({
+ var { circleTangency: y, lineTangency: b, theta: x } = aK({
cx: t,
cy: n,
radius: r,
@@ -57416,7 +57483,7 @@ var BEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), oK = (e) =>
isExternal: !0,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: S, lineTangency: C, theta: w } = oK({
+ }), { circleTangency: S, lineTangency: C, theta: w } = aK({
cx: t,
cy: n,
radius: r,
@@ -57427,7 +57494,7 @@ var BEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), oK = (e) =>
cornerIsExternal: s
}), T = s ? Math.abs(c - l) : Math.abs(c - l) - x - w;
if (T < 0 && a === 0) return `${v}L${t},${n}Z`;
- v += Zz(REe ||= aK([
+ v += Xz(BEe ||= iK([
"L",
",",
"\n A",
@@ -57448,13 +57515,13 @@ var BEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), oK = (e) =>
",",
"Z"
]), C.x, C.y, a, a, +(u < 0), S.x, S.y, r, r, +(T > 180), +(u > 0), y.x, y.y, a, a, +(u < 0), b.x, b.y);
- } else v += Zz(zEe ||= aK([
+ } else v += Xz(VEe ||= iK([
"L",
",",
"Z"
]), t, n);
return v;
-}, HEe = {
+}, WEe = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -57464,10 +57531,10 @@ var BEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), oK = (e) =>
cornerRadius: 0,
forceCornerRadius: !1,
cornerIsExternal: !1
-}, cK = (e) => {
- var t = bB(e, HEe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+}, sK = (e) => {
+ var t = yB(e, WEe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
if (a < i || l === u) return null;
- var f = Sh("recharts-sector", d), p = a - i, m = rB(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? VEe({
+ var f = Sh("recharts-sector", d), p = a - i, m = nB(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? UEe({
cx: n,
cy: r,
innerRadius: i,
@@ -57477,7 +57544,7 @@ var BEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), oK = (e) =>
cornerIsExternal: c,
startAngle: l,
endAngle: u
- }) : sK({
+ }) : oK({
cx: n,
cy: r,
innerRadius: i,
@@ -57485,14 +57552,14 @@ var BEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), oK = (e) =>
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ R.createElement("path", iK({}, KR(t), {
+ return /*#__PURE__*/ R.createElement("path", rK({}, GR(t), {
className: f,
d: h
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function UEe(e, t, n) {
+function GEe(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -57507,9 +57574,9 @@ function UEe(e, t, n) {
x: n.left + n.width,
y: t.y
}];
- if (gB(t)) {
+ if (hB(t)) {
if (e === "centric") {
- var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = nK(r, i, a, s), l = nK(r, i, o, s);
+ var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = tK(r, i, a, s), l = tK(r, i, o, s);
return [{
x: c.x,
y: c.y
@@ -57518,30 +57585,30 @@ function UEe(e, t, n) {
y: l.y
}];
}
- return rK(t);
+ return nK(t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function WEe(e) {
- return Kz(e) ? NaN : Number(e);
+function KEe(e) {
+ return Gz(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
-function lK(e) {
- return e ? (e = WEe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+function cK(e) {
+ return e ? (e = KEe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/range.mjs
-function uK(e, t, n) {
- n && typeof n != "number" && $B(e, t, n) && (t = n = void 0), e = lK(e), t === void 0 ? (t = e, e = 0) : t = lK(t), n = n === void 0 ? e < t ? 1 : -1 : lK(n);
+function lK(e, t, n) {
+ n && typeof n != "number" && QB(e, t, n) && (t = n = void 0), e = cK(e), t === void 0 ? (t = e, e = 0) : t = cK(t), n = n === void 0 ? e < t ? 1 : -1 : cK(n);
let r = Math.max(Math.ceil((t - e) / (n || 1)), 0), i = Array(r);
for (let t = 0; t < r; t++) i[t] = e, e += n;
return i;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/dataSelectors.js
-var dK = (e) => e.chartData, fK = $([dK], (e) => {
+var uK = (e) => e.chartData, dK = $([uK], (e) => {
var t = e.chartData == null ? 0 : e.chartData.length - 1;
return {
chartData: e.chartData,
@@ -57549,35 +57616,35 @@ var dK = (e) => e.chartData, fK = $([dK], (e) => {
dataEndIndex: t,
dataStartIndex: 0
};
-}), pK = (e, t, n, r) => r ? fK(e) : dK(e), mK = (e, t, n) => n ? fK(e) : dK(e);
+}), fK = (e, t, n, r) => r ? dK(e) : uK(e), pK = (e, t, n) => n ? dK(e) : uK(e);
//#endregion
//#region node_modules/recharts/es6/util/isDomainSpecifiedByUser.js
-function hK(e) {
+function mK(e) {
if (Array.isArray(e) && e.length === 2) {
var [t, n] = e;
- if (lU(t) && lU(n)) return !0;
+ if (cU(t) && cU(n)) return !0;
}
return !1;
}
-function gK(e, t, n) {
+function hK(e, t, n) {
return n ? e : [Math.min(e[0], t[0]), Math.max(e[1], t[1])];
}
-function _K(e, t) {
+function gK(e, t) {
if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {
var [n, r] = e, i, a;
- if (lU(n)) i = n;
+ if (cU(n)) i = n;
else if (typeof n == "function") return;
- if (lU(r)) a = r;
+ if (cU(r)) a = r;
else if (typeof r == "function") return;
var o = [i, a];
- if (hK(o)) return o;
+ if (mK(o)) return o;
}
}
-function GEe(e, t, n) {
+function qEe(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
- if (hK(r)) return gK(r, t, n);
+ if (mK(r)) return hK(r, t, n);
} catch {}
if (Array.isArray(e) && e.length === 2) {
var [i, a] = e, o, s;
@@ -57586,8 +57653,8 @@ function GEe(e, t, n) {
else if (typeof i == "function") try {
t != null && (o = i(t?.[0]));
} catch {}
- else if (typeof i == "string" && SU.test(i)) {
- var c = SU.exec(i);
+ else if (typeof i == "string" && xU.test(i)) {
+ var c = xU.exec(i);
if (c == null || c[1] == null || t == null) o = void 0;
else {
var l = +c[1];
@@ -57599,8 +57666,8 @@ function GEe(e, t, n) {
else if (typeof a == "function") try {
t != null && (s = a(t?.[1]));
} catch {}
- else if (typeof a == "string" && CU.test(a)) {
- var u = CU.exec(a);
+ else if (typeof a == "string" && SU.test(a)) {
+ var u = SU.exec(a);
if (u == null || u[1] == null || t == null) s = void 0;
else {
var d = +u[1];
@@ -57608,13 +57675,13 @@ function GEe(e, t, n) {
}
} else s = t?.[1];
var f = [o, s];
- if (hK(f)) return t == null ? f : gK(f, t, n);
+ if (mK(f)) return t == null ? f : hK(f, t, n);
}
}
}
//#endregion
//#region node_modules/recharts/es6/util/scale/util/arithmetic.js
-var vK = /* @__PURE__ */ Dt((/* @__PURE__ */ Ct(((e, t) => {
+var _K = /* @__PURE__ */ Dt((/* @__PURE__ */ Ct(((e, t) => {
(function(e) {
var n = 1e9, r = {
precision: 20,
@@ -57990,75 +58057,75 @@ var vK = /* @__PURE__ */ Dt((/* @__PURE__ */ Ct(((e, t) => {
}) : t !== void 0 && t.exports ? t.exports = r : (e ||= typeof self < "u" && self && self.self == self ? self : Function("return this")(), e.Decimal = r);
})(e);
})))());
-function yK(e) {
- return e === 0 ? 1 : Math.floor(new vK.default(e).abs().log(10).toNumber()) + 1;
+function vK(e) {
+ return e === 0 ? 1 : Math.floor(new _K.default(e).abs().log(10).toNumber()) + 1;
}
-function bK(e, t, n) {
- for (var r = new vK.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
+function yK(e, t, n) {
+ for (var r = new _K.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
return a;
}
//#endregion
//#region node_modules/recharts/es6/util/scale/getNiceTickValues.js
-var xK = (e) => {
+var bK = (e) => {
var [t, n] = e, [r, i] = [t, n];
return t > n && ([r, i] = [n, t]), [r, i];
+}, xK = (e, t, n) => {
+ if (e.lte(0)) return new _K.default(0);
+ var r = vK(e.toNumber()), i = new _K.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new _K.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
+ return t ? new _K.default(s.toNumber()) : new _K.default(Math.ceil(s.toNumber()));
}, SK = (e, t, n) => {
- if (e.lte(0)) return new vK.default(0);
- var r = yK(e.toNumber()), i = new vK.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new vK.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
- return t ? new vK.default(s.toNumber()) : new vK.default(Math.ceil(s.toNumber()));
-}, CK = (e, t, n) => {
- if (e.lte(0)) return new vK.default(0);
+ if (e.lte(0)) return new _K.default(0);
var r = [
1,
2,
2.5,
5
- ], i = e.toNumber(), a = Math.floor(new vK.default(i).abs().log(10).toNumber()), o = new vK.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
+ ], i = e.toNumber(), a = Math.floor(new _K.default(i).abs().log(10).toNumber()), o = new _K.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
if (c === -1 && (o = o.mul(10), c = 0), c += n, c >= r.length) {
var l = Math.floor(c / r.length);
- c %= r.length, o = o.mul(new vK.default(10).pow(l));
+ c %= r.length, o = o.mul(new _K.default(10).pow(l));
}
- var u = r[c] ?? 1, d = new vK.default(u).mul(o);
- return t ? d : new vK.default(Math.ceil(d.toNumber()));
-}, KEe = (e, t, n) => {
- var r = new vK.default(1), i = new vK.default(e);
+ var u = r[c] ?? 1, d = new _K.default(u).mul(o);
+ return t ? d : new _K.default(Math.ceil(d.toNumber()));
+}, JEe = (e, t, n) => {
+ var r = new _K.default(1), i = new _K.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
- a < 1 ? (r = new vK.default(10).pow(yK(e) - 1), i = new vK.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new vK.default(Math.floor(e)));
- } else e === 0 ? i = new vK.default(Math.floor((t - 1) / 2)) : n || (i = new vK.default(Math.floor(e)));
- for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new vK.default(c - o).mul(r)).toNumber());
+ a < 1 ? (r = new _K.default(10).pow(vK(e) - 1), i = new _K.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new _K.default(Math.floor(e)));
+ } else e === 0 ? i = new _K.default(Math.floor((t - 1) / 2)) : n || (i = new _K.default(Math.floor(e)));
+ for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new _K.default(c - o).mul(r)).toNumber());
return s;
-}, wK = function(e, t, n, r) {
- var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : SK;
+}, CK = function(e, t, n, r) {
+ var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : xK;
if (!Number.isFinite((t - e) / (n - 1))) return {
- step: new vK.default(0),
- tickMin: new vK.default(0),
- tickMax: new vK.default(0)
- };
- var o = a(new vK.default(t).sub(e).div(n - 1), r, i), s;
- e <= 0 && t >= 0 ? s = new vK.default(0) : (s = new vK.default(e).add(t).div(2), s = s.sub(new vK.default(s).mod(o)));
- var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new vK.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
- return u > n ? wK(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
+ step: new _K.default(0),
+ tickMin: new _K.default(0),
+ tickMax: new _K.default(0)
+ };
+ var o = a(new _K.default(t).sub(e).div(n - 1), r, i), s;
+ e <= 0 && t >= 0 ? s = new _K.default(0) : (s = new _K.default(e).add(t).div(2), s = s.sub(new _K.default(s).mod(o)));
+ var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new _K.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
+ return u > n ? CK(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
step: o,
- tickMin: s.sub(new vK.default(c).mul(o)),
- tickMax: s.add(new vK.default(l).mul(o))
+ tickMin: s.sub(new _K.default(c).mul(o)),
+ tickMax: s.add(new _K.default(l).mul(o))
});
-}, TK = function(e) {
- var [t, n] = e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", o = Math.max(r, 2), [s, c] = xK([t, n]);
+}, wK = function(e) {
+ var [t, n] = e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", o = Math.max(r, 2), [s, c] = bK([t, n]);
if (s === -Infinity || c === Infinity) {
var l = c === Infinity ? [s, ...Array(r - 1).fill(Infinity)] : [...Array(r - 1).fill(-Infinity), c];
return t > n ? l.reverse() : l;
}
- if (s === c) return KEe(s, r, i);
- var { step: u, tickMin: d, tickMax: f } = wK(s, c, o, i, 0, a === "snap125" ? CK : SK), p = bK(d, f.add(new vK.default(.1).mul(u)), u);
+ if (s === c) return JEe(s, r, i);
+ var { step: u, tickMin: d, tickMax: f } = CK(s, c, o, i, 0, a === "snap125" ? SK : xK), p = yK(d, f.add(new _K.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
-}, EK = function(e, t) {
- var [n, r] = e, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", [o, s] = xK([n, r]);
+}, TK = function(e, t) {
+ var [n, r] = e, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", [o, s] = bK([n, r]);
if (o === -Infinity || s === Infinity) return [n, r];
if (o === s) return [o];
- var c = a === "snap125" ? CK : SK, l = Math.max(t, 2), u = c(new vK.default(s).sub(o).div(l - 1), i, 0), d = [...bK(new vK.default(o), new vK.default(s), u), s];
+ var c = a === "snap125" ? SK : xK, l = Math.max(t, 2), u = c(new _K.default(s).sub(o).div(l - 1), i, 0), d = [...yK(new _K.default(o), new _K.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, DK = (e) => e.rootProps.maxBarSize, OK = (e) => e.rootProps.barGap, kK = (e) => e.rootProps.barCategoryGap, AK = (e) => e.rootProps.barSize, jK = (e) => e.rootProps.stackOffset, MK = (e) => e.rootProps.reverseStackOrder, NK = (e) => e.options.chartName, PK = (e) => e.rootProps.syncId, FK = (e) => e.rootProps.syncMethod, IK = (e) => e.options.eventEmitter, qEe = (e) => e.rootProps.baseValue, LK = {
+}, EK = (e) => e.rootProps.maxBarSize, DK = (e) => e.rootProps.barGap, OK = (e) => e.rootProps.barCategoryGap, kK = (e) => e.rootProps.barSize, AK = (e) => e.rootProps.stackOffset, jK = (e) => e.rootProps.reverseStackOrder, MK = (e) => e.options.chartName, NK = (e) => e.rootProps.syncId, PK = (e) => e.rootProps.syncMethod, FK = (e) => e.options.eventEmitter, YEe = (e) => e.rootProps.baseValue, IK = {
grid: -100,
barBackground: -50,
area: 100,
@@ -58071,7 +58138,7 @@ var xK = (e) => {
cursorLine: 1100,
activeDot: 1200,
label: 2e3
-}, RK = {
+}, LK = {
allowDecimals: !1,
allowDuplicatedCategory: !0,
allowDataOverflow: !1,
@@ -58092,8 +58159,8 @@ var xK = (e) => {
tickLine: !0,
tickSize: 8,
type: "auto",
- zIndex: LK.axis
-}, zK = {
+ zIndex: IK.axis
+}, RK = {
allowDataOverflow: !1,
allowDecimals: !1,
allowDuplicatedCategory: !0,
@@ -58112,19 +58179,19 @@ var xK = (e) => {
tickCount: 5,
tickLine: !0,
type: "auto",
- zIndex: LK.axis
-}, BK = (e, t) => {
+ zIndex: IK.axis
+}, zK = (e, t) => {
if (!(!e || !t)) return e != null && e.reversed ? [t[1], t[0]] : t;
};
//#endregion
//#region node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js
-function VK(e, t, n) {
+function BK(e, t, n) {
if (n !== "auto") return n;
- if (e != null) return mU(e, t) ? "category" : "number";
+ if (e != null) return pU(e, t) ? "category" : "number";
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js
-function HK(e, t) {
+function VK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -58134,30 +58201,30 @@ function HK(e, t) {
}
return n;
}
-function UK(e) {
+function HK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? HK(Object(n), !0).forEach(function(t) {
- JEe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HK(Object(n)).forEach(function(t) {
+ t % 2 ? VK(Object(n), !0).forEach(function(t) {
+ XEe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : VK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function JEe(e, t, n) {
- return (t = YEe(t)) in e ? Object.defineProperty(e, t, {
+function XEe(e, t, n) {
+ return (t = ZEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function YEe(e) {
- var t = XEe(e, "string");
+function ZEe(e) {
+ var t = QEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function XEe(e, t) {
+function QEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58167,81 +58234,81 @@ function XEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var WK = {
- allowDataOverflow: RK.allowDataOverflow,
- allowDecimals: RK.allowDecimals,
+var UK = {
+ allowDataOverflow: LK.allowDataOverflow,
+ allowDecimals: LK.allowDecimals,
allowDuplicatedCategory: !1,
dataKey: void 0,
domain: void 0,
- id: RK.angleAxisId,
+ id: LK.angleAxisId,
includeHidden: !1,
name: void 0,
- reversed: RK.reversed,
- scale: RK.scale,
- tick: RK.tick,
+ reversed: LK.reversed,
+ scale: LK.scale,
+ tick: LK.tick,
tickCount: void 0,
ticks: void 0,
- type: RK.type,
+ type: LK.type,
unit: void 0,
niceTicks: "auto"
-}, GK = {
- allowDataOverflow: zK.allowDataOverflow,
- allowDecimals: zK.allowDecimals,
- allowDuplicatedCategory: zK.allowDuplicatedCategory,
+}, WK = {
+ allowDataOverflow: RK.allowDataOverflow,
+ allowDecimals: RK.allowDecimals,
+ allowDuplicatedCategory: RK.allowDuplicatedCategory,
dataKey: void 0,
domain: void 0,
- id: zK.radiusAxisId,
- includeHidden: zK.includeHidden,
+ id: RK.radiusAxisId,
+ includeHidden: RK.includeHidden,
name: void 0,
- reversed: zK.reversed,
- scale: zK.scale,
- tick: zK.tick,
- tickCount: zK.tickCount,
+ reversed: RK.reversed,
+ scale: RK.scale,
+ tick: RK.tick,
+ tickCount: RK.tickCount,
ticks: void 0,
- type: zK.type,
+ type: RK.type,
unit: void 0,
niceTicks: "auto"
-}, KK = $([(e, t) => {
+}, GK = $([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, rW], (e, t) => {
+}, nW], (e, t) => {
if (e != null) return e;
- var n = VK(t, "angleAxis", WK.type) ?? "category";
- return UK(UK({}, WK), {}, { type: n });
-}), qK = $([(e, t) => e.polarAxis.radiusAxis[t], rW], (e, t) => {
+ var n = BK(t, "angleAxis", UK.type) ?? "category";
+ return HK(HK({}, UK), {}, { type: n });
+}), KK = $([(e, t) => e.polarAxis.radiusAxis[t], nW], (e, t) => {
if (e != null) return e;
- var n = VK(t, "radiusAxis", GK.type) ?? "category";
- return UK(UK({}, GK), {}, { type: n });
-}), JK = (e) => e.polarOptions, YK = $([
+ var n = BK(t, "radiusAxis", WK.type) ?? "category";
+ return HK(HK({}, WK), {}, { type: n });
+}), qK = (e) => e.polarOptions, JK = $([
+ EU,
DU,
- OU,
- PU
-], DEe), XK = $([JK, YK], (e, t) => {
- if (e != null) return rB(e.innerRadius, t, 0);
-}), ZK = $([JK, YK], (e, t) => {
- if (e != null) return rB(e.outerRadius, t, t * .8);
-}), QK = $([JK], (e) => {
+ NU
+], kEe), YK = $([qK, JK], (e, t) => {
+ if (e != null) return nB(e.innerRadius, t, 0);
+}), XK = $([qK, JK], (e, t) => {
+ if (e != null) return nB(e.outerRadius, t, t * .8);
+}), ZK = $([qK], (e) => {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), ZEe = $([KK, QK], BK), $K = $([
+}), $Ee = $([GK, ZK], zK), QK = $([
+ JK,
YK,
- XK,
- ZK
+ XK
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), QEe = $([qK, $K], BK), eq = $([
- eW,
- JK,
+}), eDe = $([KK, QK], zK), $K = $([
+ $U,
+ qK,
+ YK,
XK,
- ZK,
- DU,
- OU
+ EU,
+ DU
], (e, t, n, r, i, a) => {
if (!(e !== "centric" && e !== "radial" || t == null || n == null || r == null)) {
var { cx: o, cy: s, startAngle: c, endAngle: l } = t;
return {
- cx: rB(o, i, i / 2),
- cy: rB(s, a, a / 2),
+ cx: nB(o, i, i / 2),
+ cy: nB(s, a, a / 2),
innerRadius: n,
outerRadius: r,
startAngle: c,
@@ -58249,22 +58316,22 @@ var WK = {
clockWise: !1
};
}
-}), tq = (e, t) => t, nq = (e, t, n) => n;
+}), eq = (e, t) => t, tq = (e, t, n) => n;
//#endregion
//#region node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js
-function rq(e) {
+function nq(e) {
return e?.id;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js
-function iq(e, t, n) {
+function rq(e, t, n) {
var { chartData: r = [] } = t, { allowDuplicatedCategory: i, dataKey: a } = n, o = /* @__PURE__ */ new Map();
return e.forEach((e) => {
var t = e.data ?? r;
if (t != null && t.length !== 0) {
- var n = rq(e);
+ var n = nq(e);
t.forEach((t, r) => {
- var s = a == null || i ? r : String(pU(t, a, null)), c = pU(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
+ var s = a == null || i ? r : String(fU(t, a, null)), c = fU(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
Object.assign(l, { [n]: c }), o.set(s, l);
});
}
@@ -58272,18 +58339,18 @@ function iq(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/state/types/StackedGraphicalItem.js
-function aq(e) {
+function iq(e) {
return "stackId" in e && e.stackId != null && e.dataKey != null;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js
-var oq = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
+var aq = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
//#endregion
//#region node_modules/recharts/es6/state/selectors/arrayEqualityCheck.js
-function sq(e, t) {
+function oq(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function $Ee(e, t) {
+function tDe(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -58292,13 +58359,13 @@ function $Ee(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js
-var cq = (e) => {
- var t = eW(e);
+var sq = (e) => {
+ var t = $U(e);
return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";
-}, lq = (e) => e.tooltip.settings.axisId;
+}, cq = (e) => e.tooltip.settings.axisId;
//#endregion
//#region node_modules/recharts/es6/util/scale/RechartsScale.js
-function uq(e) {
+function lq(e) {
if (e != null) {
var t = e.ticks, n = e.bandwidth, r = e.range(), i = [Math.min(...r), Math.max(...r)];
return {
@@ -58339,13 +58406,13 @@ function uq(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js
-var dq = (e, t) => {
+var uq = (e, t) => {
if (t != null) switch (e) {
case "linear":
- if (!hK(t)) {
+ if (!mK(t)) {
for (var n, r, i = 0; i < t.length; i++) {
var a = t[i];
- lU(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
+ cU(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
}
return n !== void 0 && r !== void 0 ? [n, r] : void 0;
}
@@ -58355,14 +58422,14 @@ var dq = (e, t) => {
};
//#endregion
//#region node_modules/d3-array/src/ascending.js
-function fq(e, t) {
+function dq(e, t) {
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
}
//#endregion
//#region node_modules/d3-array/src/bisector.js
-function pq(e) {
+function fq(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = eDe(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = nDe(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -58388,15 +58455,15 @@ function pq(e) {
right: i
};
}
-function eDe(e) {
- return (t, n) => fq(e(t), n);
+function nDe(e) {
+ return (t, n) => dq(e(t), n);
}
//#endregion
//#region node_modules/d3-array/src/number.js
-function mq(e) {
+function pq(e) {
return e === null ? NaN : +e;
}
-function* tDe(e, t) {
+function* rDe(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -58405,52 +58472,52 @@ function* tDe(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/bisect.js
-var hq = pq(fq), gq = hq.right;
-hq.left, pq(mq).center;
+var mq = fq(dq), hq = mq.right;
+mq.left, fq(pq).center;
//#endregion
//#region node_modules/internmap/src/index.js
-var _q = class extends Map {
- constructor(e, t = iDe) {
+var gq = class extends Map {
+ constructor(e, t = oDe) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
}), e != null) for (let [t, n] of e) this.set(t, n);
}
get(e) {
- return super.get(vq(this, e));
+ return super.get(_q(this, e));
}
has(e) {
- return super.has(vq(this, e));
+ return super.has(_q(this, e));
}
set(e, t) {
- return super.set(nDe(this, e), t);
+ return super.set(iDe(this, e), t);
}
delete(e) {
- return super.delete(rDe(this, e));
+ return super.delete(aDe(this, e));
}
};
-function vq({ _intern: e, _key: t }, n) {
+function _q({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function nDe({ _intern: e, _key: t }, n) {
+function iDe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function rDe({ _intern: e, _key: t }, n) {
+function aDe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function iDe(e) {
+function oDe(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
//#region node_modules/d3-array/src/ticks.js
-var yq = Math.sqrt(50), bq = Math.sqrt(10), xq = Math.sqrt(2);
-function Sq(e, t, n) {
+var vq = Math.sqrt(50), yq = Math.sqrt(10), bq = Math.sqrt(2);
+function xq(e, t, n) {
var r, i = -1, a, o, s;
if (t = +t, e = +e, n = +n, e === t && n > 0) return [e];
- if ((r = t < e) && (a = e, e = t, t = a), (s = Cq(e, t, n)) === 0 || !isFinite(s)) return [];
+ if ((r = t < e) && (a = e, e = t, t = a), (s = Sq(e, t, n)) === 0 || !isFinite(s)) return [];
if (s > 0) {
let n = Math.round(e / s), r = Math.round(t / s);
for (n * s < e && ++n, r * s > t && --r, o = Array(a = r - n + 1); ++i < a;) o[i] = (n + i) * s;
@@ -58461,17 +58528,17 @@ function Sq(e, t, n) {
}
return r && o.reverse(), o;
}
-function Cq(e, t, n) {
+function Sq(e, t, n) {
var r = (t - e) / Math.max(0, n), i = Math.floor(Math.log(r) / Math.LN10), a = r / 10 ** i;
- return i >= 0 ? (a >= yq ? 10 : a >= bq ? 5 : a >= xq ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= yq ? 10 : a >= bq ? 5 : a >= xq ? 2 : 1);
+ return i >= 0 ? (a >= vq ? 10 : a >= yq ? 5 : a >= bq ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= vq ? 10 : a >= yq ? 5 : a >= bq ? 2 : 1);
}
-function wq(e, t, n) {
+function Cq(e, t, n) {
var r = Math.abs(t - e) / Math.max(0, n), i = 10 ** Math.floor(Math.log(r) / Math.LN10), a = r / i;
- return a >= yq ? i *= 10 : a >= bq ? i *= 5 : a >= xq && (i *= 2), t < e ? -i : i;
+ return a >= vq ? i *= 10 : a >= yq ? i *= 5 : a >= bq && (i *= 2), t < e ? -i : i;
}
//#endregion
//#region node_modules/d3-array/src/max.js
-function Tq(e, t) {
+function wq(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
else {
@@ -58482,7 +58549,7 @@ function Tq(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function Eq(e, t) {
+function Tq(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
else {
@@ -58493,36 +58560,36 @@ function Eq(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/quickselect.js
-function Dq(e, t, n = 0, r = e.length - 1, i = fq) {
+function Eq(e, t, n = 0, r = e.length - 1, i = dq) {
for (; r > n;) {
if (r - n > 600) {
let a = r - n + 1, o = t - n + 1, s = Math.log(a), c = .5 * Math.exp(2 * s / 3), l = .5 * Math.sqrt(s * c * (a - c) / a) * (o - a / 2 < 0 ? -1 : 1);
- Dq(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
+ Eq(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
}
let a = e[t], o = n, s = r;
- for (Oq(e, n, t), i(e[r], a) > 0 && Oq(e, n, r); o < s;) {
- for (Oq(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
+ for (Dq(e, n, t), i(e[r], a) > 0 && Dq(e, n, r); o < s;) {
+ for (Dq(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
for (; i(e[s], a) > 0;) --s;
}
- i(e[n], a) === 0 ? Oq(e, n, s) : (++s, Oq(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
+ i(e[n], a) === 0 ? Dq(e, n, s) : (++s, Dq(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
}
return e;
}
-function Oq(e, t, n) {
+function Dq(e, t, n) {
let r = e[t];
e[t] = e[n], e[n] = r;
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function aDe(e, t, n) {
- if (e = Float64Array.from(tDe(e, n)), r = e.length) {
- if ((t = +t) <= 0 || r < 2) return Eq(e);
- if (t >= 1) return Tq(e);
- var r, i = (r - 1) * t, a = Math.floor(i), o = Tq(Dq(e, a).subarray(0, a + 1));
- return o + (Eq(e.subarray(a + 1)) - o) * (i - a);
+function sDe(e, t, n) {
+ if (e = Float64Array.from(rDe(e, n)), r = e.length) {
+ if ((t = +t) <= 0 || r < 2) return Tq(e);
+ if (t >= 1) return wq(e);
+ var r, i = (r - 1) * t, a = Math.floor(i), o = wq(Eq(e, a).subarray(0, a + 1));
+ return o + (Tq(e.subarray(a + 1)) - o) * (i - a);
}
}
-function oDe(e, t, n = mq) {
+function cDe(e, t, n = pq) {
if (r = e.length) {
if ((t = +t) <= 0 || r < 2) return +n(e[0], 0, e);
if (t >= 1) return +n(e[r - 1], r - 1, e);
@@ -58532,14 +58599,14 @@ function oDe(e, t, n = mq) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function sDe(e, t, n) {
+function lDe(e, t, n) {
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
return a;
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function kq(e, t) {
+function Oq(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -58550,7 +58617,7 @@ function kq(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/init.js
-function Aq(e, t) {
+function kq(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -58560,7 +58627,7 @@ function Aq(e, t) {
}
return this;
}
-function jq(e, t) {
+function Aq(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -58572,20 +58639,20 @@ function jq(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/ordinal.js
-var Mq = Symbol("implicit");
-function Nq() {
- var e = new _q(), t = [], n = [], r = Mq;
+var jq = Symbol("implicit");
+function Mq() {
+ var e = new gq(), t = [], n = [], r = jq;
function i(i) {
let a = e.get(i);
if (a === void 0) {
- if (r !== Mq) return r;
+ if (r !== jq) return r;
e.set(i, a = t.push(i) - 1);
}
return n[a % n.length];
}
return i.domain = function(n) {
if (!arguments.length) return t.slice();
- t = [], e = new _q();
+ t = [], e = new gq();
for (let r of n) e.has(r) || e.set(r, t.push(r) - 1);
return i;
}, i.range = function(e) {
@@ -58593,18 +58660,18 @@ function Nq() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return Nq(t, n).unknown(r);
- }, Aq.apply(i, arguments), i;
+ return Mq(t, n).unknown(r);
+ }, kq.apply(i, arguments), i;
}
//#endregion
//#region node_modules/d3-scale/src/band.js
-function Pq() {
- var e = Nq().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
+function Nq() {
+ var e = Mq().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
delete e.unknown;
function d() {
var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;
a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));
- var m = sDe(e).map(function(e) {
+ var m = lDe(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -58630,32 +58697,32 @@ function Pq() {
}, e.align = function(e) {
return arguments.length ? (u = Math.max(0, Math.min(1, e)), d()) : u;
}, e.copy = function() {
- return Pq(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
- }, Aq.apply(d(), arguments);
+ return Nq(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
+ }, kq.apply(d(), arguments);
}
-function Fq(e) {
+function Pq(e) {
var t = e.copy;
return e.padding = e.paddingOuter, delete e.paddingInner, delete e.paddingOuter, e.copy = function() {
- return Fq(t());
+ return Pq(t());
}, e;
}
-function cDe() {
- return Fq(Pq.apply(null, arguments).paddingInner(1));
+function uDe() {
+ return Pq(Nq.apply(null, arguments).paddingInner(1));
}
//#endregion
//#region node_modules/d3-color/src/define.js
-function Iq(e, t, n) {
+function Fq(e, t, n) {
e.prototype = t.prototype = n, n.constructor = e;
}
-function Lq(e, t) {
+function Iq(e, t) {
var n = Object.create(e.prototype);
for (var r in t) n[r] = t[r];
return n;
}
//#endregion
//#region node_modules/d3-color/src/color.js
-function Rq() {}
-var zq = .7, Bq = 1 / zq, Vq = "\\s*([+-]?\\d+)\\s*", Hq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Uq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", lDe = /^#([0-9a-f]{3,8})$/, uDe = RegExp(`^rgb\\(${Vq},${Vq},${Vq}\\)$`), dDe = RegExp(`^rgb\\(${Uq},${Uq},${Uq}\\)$`), fDe = RegExp(`^rgba\\(${Vq},${Vq},${Vq},${Hq}\\)$`), pDe = RegExp(`^rgba\\(${Uq},${Uq},${Uq},${Hq}\\)$`), mDe = RegExp(`^hsl\\(${Hq},${Uq},${Uq}\\)$`), hDe = RegExp(`^hsla\\(${Hq},${Uq},${Uq},${Hq}\\)$`), Wq = {
+function Lq() {}
+var Rq = .7, zq = 1 / Rq, Bq = "\\s*([+-]?\\d+)\\s*", Vq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Hq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", dDe = /^#([0-9a-f]{3,8})$/, fDe = RegExp(`^rgb\\(${Bq},${Bq},${Bq}\\)$`), pDe = RegExp(`^rgb\\(${Hq},${Hq},${Hq}\\)$`), mDe = RegExp(`^rgba\\(${Bq},${Bq},${Bq},${Vq}\\)$`), hDe = RegExp(`^rgba\\(${Hq},${Hq},${Hq},${Vq}\\)$`), gDe = RegExp(`^hsl\\(${Vq},${Hq},${Hq}\\)$`), _De = RegExp(`^hsla\\(${Vq},${Hq},${Hq},${Vq}\\)$`), Uq = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -58805,170 +58872,170 @@ var zq = .7, Bq = 1 / zq, Vq = "\\s*([+-]?\\d+)\\s*", Hq = "\\s*([+-]?(?:\\d*\\.
yellow: 16776960,
yellowgreen: 10145074
};
-Iq(Rq, qq, {
+Fq(Lq, Kq, {
copy(e) {
return Object.assign(new this.constructor(), this, e);
},
displayable() {
return this.rgb().displayable();
},
- hex: Gq,
- formatHex: Gq,
- formatHex8: gDe,
- formatHsl: _De,
- formatRgb: Kq,
- toString: Kq
+ hex: Wq,
+ formatHex: Wq,
+ formatHex8: vDe,
+ formatHsl: yDe,
+ formatRgb: Gq,
+ toString: Gq
});
-function Gq() {
+function Wq() {
return this.rgb().formatHex();
}
-function gDe() {
+function vDe() {
return this.rgb().formatHex8();
}
-function _De() {
- return iJ(this).formatHsl();
+function yDe() {
+ return rJ(this).formatHsl();
}
-function Kq() {
+function Gq() {
return this.rgb().formatRgb();
}
-function qq(e) {
+function Kq(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = lDe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Jq(t) : n === 3 ? new Zq(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Yq(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Yq(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = uDe.exec(e)) ? new Zq(t[1], t[2], t[3], 1) : (t = dDe.exec(e)) ? new Zq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = fDe.exec(e)) ? Yq(t[1], t[2], t[3], t[4]) : (t = pDe.exec(e)) ? Yq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = mDe.exec(e)) ? rJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = hDe.exec(e)) ? rJ(t[1], t[2] / 100, t[3] / 100, t[4]) : Wq.hasOwnProperty(e) ? Jq(Wq[e]) : e === "transparent" ? new Zq(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = dDe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? qq(t) : n === 3 ? new Xq(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Jq(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Jq(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = fDe.exec(e)) ? new Xq(t[1], t[2], t[3], 1) : (t = pDe.exec(e)) ? new Xq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = mDe.exec(e)) ? Jq(t[1], t[2], t[3], t[4]) : (t = hDe.exec(e)) ? Jq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = gDe.exec(e)) ? nJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = _De.exec(e)) ? nJ(t[1], t[2] / 100, t[3] / 100, t[4]) : Uq.hasOwnProperty(e) ? qq(Uq[e]) : e === "transparent" ? new Xq(NaN, NaN, NaN, 0) : null;
}
-function Jq(e) {
- return new Zq(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
+function qq(e) {
+ return new Xq(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
}
-function Yq(e, t, n, r) {
- return r <= 0 && (e = t = n = NaN), new Zq(e, t, n, r);
+function Jq(e, t, n, r) {
+ return r <= 0 && (e = t = n = NaN), new Xq(e, t, n, r);
}
-function vDe(e) {
- return e instanceof Rq || (e = qq(e)), e ? (e = e.rgb(), new Zq(e.r, e.g, e.b, e.opacity)) : new Zq();
+function bDe(e) {
+ return e instanceof Lq || (e = Kq(e)), e ? (e = e.rgb(), new Xq(e.r, e.g, e.b, e.opacity)) : new Xq();
}
-function Xq(e, t, n, r) {
- return arguments.length === 1 ? vDe(e) : new Zq(e, t, n, r ?? 1);
+function Yq(e, t, n, r) {
+ return arguments.length === 1 ? bDe(e) : new Xq(e, t, n, r ?? 1);
}
-function Zq(e, t, n, r) {
+function Xq(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
}
-Iq(Zq, Xq, Lq(Rq, {
+Fq(Xq, Yq, Iq(Lq, {
brighter(e) {
- return e = e == null ? Bq : Bq ** +e, new Zq(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? zq : zq ** +e, new Xq(this.r * e, this.g * e, this.b * e, this.opacity);
},
darker(e) {
- return e = e == null ? zq : zq ** +e, new Zq(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? Rq : Rq ** +e, new Xq(this.r * e, this.g * e, this.b * e, this.opacity);
},
rgb() {
return this;
},
clamp() {
- return new Zq(tJ(this.r), tJ(this.g), tJ(this.b), eJ(this.opacity));
+ return new Xq(eJ(this.r), eJ(this.g), eJ(this.b), $q(this.opacity));
},
displayable() {
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
},
- hex: Qq,
- formatHex: Qq,
- formatHex8: yDe,
- formatRgb: $q,
- toString: $q
+ hex: Zq,
+ formatHex: Zq,
+ formatHex8: xDe,
+ formatRgb: Qq,
+ toString: Qq
}));
-function Qq() {
- return `#${nJ(this.r)}${nJ(this.g)}${nJ(this.b)}`;
+function Zq() {
+ return `#${tJ(this.r)}${tJ(this.g)}${tJ(this.b)}`;
}
-function yDe() {
- return `#${nJ(this.r)}${nJ(this.g)}${nJ(this.b)}${nJ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
+function xDe() {
+ return `#${tJ(this.r)}${tJ(this.g)}${tJ(this.b)}${tJ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
-function $q() {
- let e = eJ(this.opacity);
- return `${e === 1 ? "rgb(" : "rgba("}${tJ(this.r)}, ${tJ(this.g)}, ${tJ(this.b)}${e === 1 ? ")" : `, ${e})`}`;
+function Qq() {
+ let e = $q(this.opacity);
+ return `${e === 1 ? "rgb(" : "rgba("}${eJ(this.r)}, ${eJ(this.g)}, ${eJ(this.b)}${e === 1 ? ")" : `, ${e})`}`;
}
-function eJ(e) {
+function $q(e) {
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
}
-function tJ(e) {
+function eJ(e) {
return Math.max(0, Math.min(255, Math.round(e) || 0));
}
-function nJ(e) {
- return e = tJ(e), (e < 16 ? "0" : "") + e.toString(16);
+function tJ(e) {
+ return e = eJ(e), (e < 16 ? "0" : "") + e.toString(16);
}
-function rJ(e, t, n, r) {
- return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new aJ(e, t, n, r);
+function nJ(e, t, n, r) {
+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new iJ(e, t, n, r);
}
-function iJ(e) {
- if (e instanceof aJ) return new aJ(e.h, e.s, e.l, e.opacity);
- if (e instanceof Rq || (e = qq(e)), !e) return new aJ();
- if (e instanceof aJ) return e;
+function rJ(e) {
+ if (e instanceof iJ) return new iJ(e.h, e.s, e.l, e.opacity);
+ if (e instanceof Lq || (e = Kq(e)), !e) return new iJ();
+ if (e instanceof iJ) return e;
e = e.rgb();
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
- return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new aJ(o, s, c, e.opacity);
+ return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new iJ(o, s, c, e.opacity);
}
-function bDe(e, t, n, r) {
- return arguments.length === 1 ? iJ(e) : new aJ(e, t, n, r ?? 1);
+function SDe(e, t, n, r) {
+ return arguments.length === 1 ? rJ(e) : new iJ(e, t, n, r ?? 1);
}
-function aJ(e, t, n, r) {
+function iJ(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-Iq(aJ, bDe, Lq(Rq, {
+Fq(iJ, SDe, Iq(Lq, {
brighter(e) {
- return e = e == null ? Bq : Bq ** +e, new aJ(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? zq : zq ** +e, new iJ(this.h, this.s, this.l * e, this.opacity);
},
darker(e) {
- return e = e == null ? zq : zq ** +e, new aJ(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? Rq : Rq ** +e, new iJ(this.h, this.s, this.l * e, this.opacity);
},
rgb() {
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
- return new Zq(cJ(e >= 240 ? e - 240 : e + 120, i, r), cJ(e, i, r), cJ(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
+ return new Xq(sJ(e >= 240 ? e - 240 : e + 120, i, r), sJ(e, i, r), sJ(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
},
clamp() {
- return new aJ(oJ(this.h), sJ(this.s), sJ(this.l), eJ(this.opacity));
+ return new iJ(aJ(this.h), oJ(this.s), oJ(this.l), $q(this.opacity));
},
displayable() {
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
},
formatHsl() {
- let e = eJ(this.opacity);
- return `${e === 1 ? "hsl(" : "hsla("}${oJ(this.h)}, ${sJ(this.s) * 100}%, ${sJ(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
+ let e = $q(this.opacity);
+ return `${e === 1 ? "hsl(" : "hsla("}${aJ(this.h)}, ${oJ(this.s) * 100}%, ${oJ(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
}
}));
-function oJ(e) {
+function aJ(e) {
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
}
-function sJ(e) {
+function oJ(e) {
return Math.max(0, Math.min(1, e || 0));
}
-function cJ(e, t, n) {
+function sJ(e, t, n) {
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
}
//#endregion
//#region node_modules/d3-interpolate/src/constant.js
-var lJ = (e) => () => e;
+var cJ = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function xDe(e, t) {
+function CDe(e, t) {
return function(n) {
return e + n * t;
};
}
-function SDe(e, t, n) {
+function wDe(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function CDe(e) {
- return (e = +e) == 1 ? uJ : function(t, n) {
- return n - t ? SDe(t, n, e) : lJ(isNaN(t) ? n : t);
+function TDe(e) {
+ return (e = +e) == 1 ? lJ : function(t, n) {
+ return n - t ? wDe(t, n, e) : cJ(isNaN(t) ? n : t);
};
}
-function uJ(e, t) {
+function lJ(e, t) {
var n = t - e;
- return n ? xDe(e, n) : lJ(isNaN(e) ? t : e);
+ return n ? CDe(e, n) : cJ(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
-var dJ = (function e(t) {
- var n = CDe(t);
+var uJ = (function e(t) {
+ var n = TDe(t);
function r(e, t) {
- var r = n((e = Xq(e)).r, (t = Xq(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = uJ(e.opacity, t.opacity);
+ var r = n((e = Yq(e)).r, (t = Yq(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = lJ(e.opacity, t.opacity);
return function(t) {
return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
};
@@ -58977,7 +59044,7 @@ var dJ = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function wDe(e, t) {
+function EDe(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -58985,14 +59052,14 @@ function wDe(e, t) {
return r;
};
}
-function TDe(e) {
+function DDe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function EDe(e, t) {
+function ODe(e, t) {
var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
- for (o = 0; o < r; ++o) i[o] = hJ(e[o], t[o]);
+ for (o = 0; o < r; ++o) i[o] = mJ(e[o], t[o]);
for (; o < n; ++o) a[o] = t[o];
return function(e) {
for (o = 0; o < r; ++o) a[o] = i[o](e);
@@ -59001,7 +59068,7 @@ function EDe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function DDe(e, t) {
+function kDe(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -59009,16 +59076,16 @@ function DDe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/number.js
-function fJ(e, t) {
+function dJ(e, t) {
return e = +e, t = +t, function(n) {
return e * (1 - n) + t * n;
};
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function ODe(e, t) {
+function ADe(e, t) {
var n = {}, r = {}, i;
- for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = hJ(e[i], t[i]) : r[i] = t[i];
+ for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = mJ(e[i], t[i]) : r[i] = t[i];
return function(e) {
for (i in n) r[i] = n[i](e);
return r;
@@ -59026,45 +59093,45 @@ function ODe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/string.js
-var pJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, mJ = new RegExp(pJ.source, "g");
-function kDe(e) {
+var fJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, pJ = new RegExp(fJ.source, "g");
+function jDe(e) {
return function() {
return e;
};
}
-function ADe(e) {
+function MDe(e) {
return function(t) {
return e(t) + "";
};
}
-function jDe(e, t) {
- var n = pJ.lastIndex = mJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
- for (e += "", t += ""; (r = pJ.exec(e)) && (i = mJ.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
+function NDe(e, t) {
+ var n = fJ.lastIndex = pJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
+ for (e += "", t += ""; (r = fJ.exec(e)) && (i = pJ.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
i: o,
- x: fJ(r, i)
- })), n = mJ.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? ADe(c[0].x) : kDe(t) : (t = c.length, function(e) {
+ x: dJ(r, i)
+ })), n = pJ.lastIndex;
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? MDe(c[0].x) : jDe(t) : (t = c.length, function(e) {
for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
return s.join("");
});
}
//#endregion
//#region node_modules/d3-interpolate/src/value.js
-function hJ(e, t) {
+function mJ(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? lJ(t) : (n === "number" ? fJ : n === "string" ? (r = qq(t)) ? (t = r, dJ) : jDe : t instanceof qq ? dJ : t instanceof Date ? DDe : TDe(t) ? wDe : Array.isArray(t) ? EDe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? ODe : fJ)(e, t);
+ return t == null || n === "boolean" ? cJ(t) : (n === "number" ? dJ : n === "string" ? (r = Kq(t)) ? (t = r, uJ) : NDe : t instanceof Kq ? uJ : t instanceof Date ? kDe : DDe(t) ? EDe : Array.isArray(t) ? ODe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? ADe : dJ)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
-function gJ(e, t) {
+function hJ(e, t) {
return e = +e, t = +t, function(n) {
return Math.round(e * (1 - n) + t * n);
};
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function MDe(e, t) {
- t === void 0 && (t = e, e = hJ);
+function PDe(e, t) {
+ t === void 0 && (t = e, e = mJ);
for (var n = 0, r = t.length - 1, i = t[0], a = Array(r < 0 ? 0 : r); n < r;) a[n] = e(i, i = t[++n]);
return function(e) {
var t = Math.max(0, Math.min(r - 1, Math.floor(e *= r)));
@@ -59073,69 +59140,69 @@ function MDe(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function NDe(e) {
+function FDe(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-scale/src/number.js
-function _J(e) {
+function gJ(e) {
return +e;
}
//#endregion
//#region node_modules/d3-scale/src/continuous.js
-var vJ = [0, 1];
-function yJ(e) {
+var _J = [0, 1];
+function vJ(e) {
return e;
}
-function bJ(e, t) {
+function yJ(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : NDe(isNaN(t) ? NaN : .5);
+ } : FDe(isNaN(t) ? NaN : .5);
}
-function PDe(e, t) {
+function IDe(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function FDe(e, t, n) {
+function LDe(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
- return i < r ? (r = bJ(i, r), a = n(o, a)) : (r = bJ(r, i), a = n(a, o)), function(e) {
+ return i < r ? (r = yJ(i, r), a = n(o, a)) : (r = yJ(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function IDe(e, t, n) {
+function RDe(e, t, n) {
var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;
- for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = bJ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
+ for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = yJ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
- var n = gq(e, t, 1, r) - 1;
+ var n = hq(e, t, 1, r) - 1;
return a[n](i[n](t));
};
}
-function xJ(e, t) {
+function bJ(e, t) {
return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
}
-function SJ() {
- var e = vJ, t = vJ, n = hJ, r, i, a, o = yJ, s, c, l;
+function xJ() {
+ var e = _J, t = _J, n = mJ, r, i, a, o = vJ, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== yJ && (o = PDe(e[0], e[n - 1])), s = n > 2 ? IDe : FDe, c = l = null, d;
+ return o !== vJ && (o = IDe(e[0], e[n - 1])), s = n > 2 ? RDe : LDe, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
}
return d.invert = function(n) {
- return o(i((l ||= s(t, e.map(r), fJ))(n)));
+ return o(i((l ||= s(t, e.map(r), dJ))(n)));
}, d.domain = function(t) {
- return arguments.length ? (e = Array.from(t, _J), u()) : e.slice();
+ return arguments.length ? (e = Array.from(t, gJ), u()) : e.slice();
}, d.range = function(e) {
return arguments.length ? (t = Array.from(e), u()) : t.slice();
}, d.rangeRound = function(e) {
- return t = Array.from(e), n = gJ, u();
+ return t = Array.from(e), n = hJ, u();
}, d.clamp = function(e) {
- return arguments.length ? (o = e ? !0 : yJ, u()) : o !== yJ;
+ return arguments.length ? (o = e ? !0 : vJ, u()) : o !== vJ;
}, d.interpolate = function(e) {
return arguments.length ? (n = e, u()) : n;
}, d.unknown = function(e) {
@@ -59144,27 +59211,27 @@ function SJ() {
return r = e, i = t, u();
};
}
-function CJ() {
- return SJ()(yJ, yJ);
+function SJ() {
+ return xJ()(vJ, vJ);
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function LDe(e) {
+function zDe(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
-function wJ(e, t) {
+function CJ(e, t) {
if (!isFinite(e) || e === 0) return null;
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
}
//#endregion
//#region node_modules/d3-format/src/exponent.js
-function TJ(e) {
- return e = wJ(Math.abs(e)), e ? e[1] : NaN;
+function wJ(e) {
+ return e = CJ(Math.abs(e)), e ? e[1] : NaN;
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function RDe(e, t) {
+function BDe(e, t) {
return function(n, r) {
for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
return a.reverse().join(t);
@@ -59172,7 +59239,7 @@ function RDe(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function zDe(e) {
+function VDe(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -59181,11 +59248,11 @@ function zDe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var BDe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
-function EJ(e) {
- if (!(t = BDe.exec(e))) throw Error("invalid format: " + e);
+var HDe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+function TJ(e) {
+ if (!(t = HDe.exec(e))) throw Error("invalid format: " + e);
var t;
- return new DJ({
+ return new EJ({
fill: t[1],
align: t[2],
sign: t[3],
@@ -59198,16 +59265,16 @@ function EJ(e) {
type: t[10]
});
}
-EJ.prototype = DJ.prototype;
-function DJ(e) {
+TJ.prototype = EJ.prototype;
+function EJ(e) {
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
}
-DJ.prototype.toString = function() {
+EJ.prototype.toString = function() {
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function VDe(e) {
+function UDe(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -59223,46 +59290,46 @@ function VDe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
-var OJ;
-function HDe(e, t) {
- var n = wJ(e, t);
- if (!n) return OJ = void 0, e.toPrecision(t);
- var r = n[0], i = n[1], a = i - (OJ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
- return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + wJ(e, Math.max(0, t + a - 1))[0];
+var DJ;
+function WDe(e, t) {
+ var n = CJ(e, t);
+ if (!n) return DJ = void 0, e.toPrecision(t);
+ var r = n[0], i = n[1], a = i - (DJ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
+ return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + CJ(e, Math.max(0, t + a - 1))[0];
}
//#endregion
//#region node_modules/d3-format/src/formatRounded.js
-function kJ(e, t) {
- var n = wJ(e, t);
+function OJ(e, t) {
+ var n = CJ(e, t);
if (!n) return e + "";
var r = n[0], i = n[1];
return i < 0 ? "0." + Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + Array(i - r.length + 2).join("0");
}
//#endregion
//#region node_modules/d3-format/src/formatTypes.js
-var AJ = {
+var kJ = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: LDe,
+ d: zDe,
e: (e, t) => e.toExponential(t),
f: (e, t) => e.toFixed(t),
g: (e, t) => e.toPrecision(t),
o: (e) => Math.round(e).toString(8),
- p: (e, t) => kJ(e * 100, t),
- r: kJ,
- s: HDe,
+ p: (e, t) => OJ(e * 100, t),
+ r: OJ,
+ s: WDe,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
//#endregion
//#region node_modules/d3-format/src/identity.js
-function jJ(e) {
+function AJ(e) {
return e;
}
//#endregion
//#region node_modules/d3-format/src/locale.js
-var MJ = Array.prototype.map, NJ = [
+var jJ = Array.prototype.map, MJ = [
"y",
"z",
"a",
@@ -59281,13 +59348,13 @@ var MJ = Array.prototype.map, NJ = [
"Z",
"Y"
];
-function UDe(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? jJ : RDe(MJ.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? jJ : zDe(MJ.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
+function GDe(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? AJ : BDe(jJ.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? AJ : VDe(jJ.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
function l(e, l) {
- e = EJ(e);
+ e = TJ(e);
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;
- y === "n" ? (g = !0, y = "g") : AJ[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
- var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S = AJ[y], C = /[defgprs%]/.test(y);
+ y === "n" ? (g = !0, y = "g") : kJ[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
+ var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S = kJ[y], C = /[defgprs%]/.test(y);
_ = _ === void 0 ? 6 : /[gprs]/.test(y) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
function w(e) {
var n = b, r = x, o, l, p;
@@ -59295,7 +59362,7 @@ function UDe(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = VDe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && OJ !== void 0 ? NJ[8 + OJ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = UDe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && DJ !== void 0 ? MJ[8 + DJ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
break;
@@ -59323,7 +59390,7 @@ function UDe(e) {
}, w;
}
function u(e, t) {
- var n = Math.max(-8, Math.min(8, Math.floor(TJ(t) / 3))) * 3, r = 10 ** -n, i = l((e = EJ(e), e.type = "f", e), { suffix: NJ[8 + n / 3] });
+ var n = Math.max(-8, Math.min(8, Math.floor(wJ(t) / 3))) * 3, r = 10 ** -n, i = l((e = TJ(e), e.type = "f", e), { suffix: MJ[8 + n / 3] });
return function(e) {
return i(r * e);
};
@@ -59335,65 +59402,65 @@ function UDe(e) {
}
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
-var PJ, FJ, IJ;
-WDe({
+var NJ, PJ, FJ;
+KDe({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function WDe(e) {
- return PJ = UDe(e), FJ = PJ.format, IJ = PJ.formatPrefix, PJ;
+function KDe(e) {
+ return NJ = GDe(e), PJ = NJ.format, FJ = NJ.formatPrefix, NJ;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function GDe(e) {
- return Math.max(0, -TJ(Math.abs(e)));
+function qDe(e) {
+ return Math.max(0, -wJ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function KDe(e, t) {
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(TJ(t) / 3))) * 3 - TJ(Math.abs(e)));
+function JDe(e, t) {
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(wJ(t) / 3))) * 3 - wJ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function qDe(e, t) {
- return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, TJ(t) - TJ(e)) + 1;
+function YDe(e, t) {
+ return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, wJ(t) - wJ(e)) + 1;
}
//#endregion
//#region node_modules/d3-scale/src/tickFormat.js
-function LJ(e, t, n, r) {
- var i = wq(e, t, n), a;
- switch (r = EJ(r ?? ",f"), r.type) {
+function IJ(e, t, n, r) {
+ var i = Cq(e, t, n), a;
+ switch (r = TJ(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = KDe(i, o)) && (r.precision = a), IJ(r, o);
+ return r.precision == null && !isNaN(a = JDe(i, o)) && (r.precision = a), FJ(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = qDe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = YDe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = GDe(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = qDe(i)) && (r.precision = a - (r.type === "%") * 2);
}
- return FJ(r);
+ return PJ(r);
}
//#endregion
//#region node_modules/d3-scale/src/linear.js
-function RJ(e) {
+function LJ(e) {
var t = e.domain;
return e.ticks = function(e) {
var n = t();
- return Sq(n[0], n[n.length - 1], e ?? 10);
+ return xq(n[0], n[n.length - 1], e ?? 10);
}, e.tickFormat = function(e, n) {
var r = t();
- return LJ(r[0], r[r.length - 1], e ?? 10, n);
+ return IJ(r[0], r[r.length - 1], e ?? 10, n);
}, e.nice = function(n) {
n ??= 10;
var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, l, u = 10;
for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); u-- > 0;) {
- if (l = Cq(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
+ if (l = Sq(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
if (l > 0) o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
else if (l < 0) o = Math.ceil(o * l) / l, s = Math.floor(s * l) / l;
else break;
@@ -59402,64 +59469,64 @@ function RJ(e) {
return e;
}, e;
}
-function zJ() {
- var e = CJ();
+function RJ() {
+ var e = SJ();
return e.copy = function() {
- return xJ(e, zJ());
- }, Aq.apply(e, arguments), RJ(e);
+ return bJ(e, RJ());
+ }, kq.apply(e, arguments), LJ(e);
}
//#endregion
//#region node_modules/d3-scale/src/identity.js
-function BJ(e) {
+function zJ(e) {
var t;
function n(e) {
return e == null || isNaN(e = +e) ? t : e;
}
return n.invert = n, n.domain = n.range = function(t) {
- return arguments.length ? (e = Array.from(t, _J), n) : e.slice();
+ return arguments.length ? (e = Array.from(t, gJ), n) : e.slice();
}, n.unknown = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.copy = function() {
- return BJ(e).unknown(t);
- }, e = arguments.length ? Array.from(e, _J) : [0, 1], RJ(n);
+ return zJ(e).unknown(t);
+ }, e = arguments.length ? Array.from(e, gJ) : [0, 1], LJ(n);
}
//#endregion
//#region node_modules/d3-scale/src/nice.js
-function VJ(e, t) {
+function BJ(e, t) {
e = e.slice();
var n = 0, r = e.length - 1, i = e[n], a = e[r], o;
return a < i && (o = n, n = r, r = o, o = i, i = a, a = o), e[n] = t.floor(i), e[r] = t.ceil(a), e;
}
//#endregion
//#region node_modules/d3-scale/src/log.js
-function HJ(e) {
+function VJ(e) {
return Math.log(e);
}
-function UJ(e) {
+function HJ(e) {
return Math.exp(e);
}
-function JDe(e) {
+function XDe(e) {
return -Math.log(-e);
}
-function YDe(e) {
+function ZDe(e) {
return -Math.exp(-e);
}
-function XDe(e) {
+function QDe(e) {
return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
-function ZDe(e) {
- return e === 10 ? XDe : e === Math.E ? Math.exp : (t) => e ** +t;
+function $De(e) {
+ return e === 10 ? QDe : e === Math.E ? Math.exp : (t) => e ** +t;
}
-function QDe(e) {
+function eOe(e) {
return e === Math.E ? Math.log : e === 10 && Math.log10 || e === 2 && Math.log2 || (e = Math.log(e), (t) => Math.log(t) / e);
}
-function WJ(e) {
+function UJ(e) {
return (t, n) => -e(-t, n);
}
-function GJ(e) {
- let t = e(HJ, UJ), n = t.domain, r = 10, i, a;
+function WJ(e) {
+ let t = e(VJ, HJ), n = t.domain, r = 10, i, a;
function o() {
- return i = QDe(r), a = ZDe(r), n()[0] < 0 ? (i = WJ(i), a = WJ(a), e(JDe, YDe)) : e(HJ, UJ), t;
+ return i = eOe(r), a = $De(r), n()[0] < 0 ? (i = UJ(i), a = UJ(a), e(XDe, ZDe)) : e(VJ, HJ), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -59479,100 +59546,100 @@ function GJ(e) {
if (f > s) break;
m.push(f);
}
- m.length * 2 < p && (m = Sq(o, s, p));
- } else m = Sq(l, u, Math.min(u - l, p)).map(a);
+ m.length * 2 < p && (m = xq(o, s, p));
+ } else m = xq(l, u, Math.min(u - l, p)).map(a);
return c ? m.reverse() : m;
}, t.tickFormat = (e, n) => {
- if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = EJ(n)).precision == null && (n.trim = !0), n = FJ(n)), e === Infinity) return n;
+ if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = TJ(n)).precision == null && (n.trim = !0), n = PJ(n)), e === Infinity) return n;
let o = Math.max(1, r * e / t.ticks().length);
return (e) => {
let t = e / a(Math.round(i(e)));
return t * r < r - .5 && (t *= r), t <= o ? n(e) : "";
};
- }, t.nice = () => n(VJ(n(), {
+ }, t.nice = () => n(BJ(n(), {
floor: (e) => a(Math.floor(i(e))),
ceil: (e) => a(Math.ceil(i(e)))
})), t;
}
-function KJ() {
- let e = GJ(SJ()).domain([1, 10]);
- return e.copy = () => xJ(e, KJ()).base(e.base()), Aq.apply(e, arguments), e;
+function GJ() {
+ let e = WJ(xJ()).domain([1, 10]);
+ return e.copy = () => bJ(e, GJ()).base(e.base()), kq.apply(e, arguments), e;
}
//#endregion
//#region node_modules/d3-scale/src/symlog.js
-function qJ(e) {
+function KJ(e) {
return function(t) {
return Math.sign(t) * Math.log1p(Math.abs(t / e));
};
}
-function JJ(e) {
+function qJ(e) {
return function(t) {
return Math.sign(t) * Math.expm1(Math.abs(t)) * e;
};
}
-function YJ(e) {
- var t = 1, n = e(qJ(t), JJ(t));
+function JJ(e) {
+ var t = 1, n = e(KJ(t), qJ(t));
return n.constant = function(n) {
- return arguments.length ? e(qJ(t = +n), JJ(t)) : t;
- }, RJ(n);
+ return arguments.length ? e(KJ(t = +n), qJ(t)) : t;
+ }, LJ(n);
}
-function XJ() {
- var e = YJ(SJ());
+function YJ() {
+ var e = JJ(xJ());
return e.copy = function() {
- return xJ(e, XJ()).constant(e.constant());
- }, Aq.apply(e, arguments);
+ return bJ(e, YJ()).constant(e.constant());
+ }, kq.apply(e, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/pow.js
-function ZJ(e) {
+function XJ(e) {
return function(t) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function $De(e) {
+function tOe(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function eOe(e) {
+function nOe(e) {
return e < 0 ? -e * e : e * e;
}
-function QJ(e) {
- var t = e(yJ, yJ), n = 1;
+function ZJ(e) {
+ var t = e(vJ, vJ), n = 1;
function r() {
- return n === 1 ? e(yJ, yJ) : n === .5 ? e($De, eOe) : e(ZJ(n), ZJ(1 / n));
+ return n === 1 ? e(vJ, vJ) : n === .5 ? e(tOe, nOe) : e(XJ(n), XJ(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
- }, RJ(t);
+ }, LJ(t);
}
-function $J() {
- var e = QJ(SJ());
+function QJ() {
+ var e = ZJ(xJ());
return e.copy = function() {
- return xJ(e, $J()).exponent(e.exponent());
- }, Aq.apply(e, arguments), e;
+ return bJ(e, QJ()).exponent(e.exponent());
+ }, kq.apply(e, arguments), e;
}
-function tOe() {
- return $J.apply(null, arguments).exponent(.5);
+function rOe() {
+ return QJ.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/radial.js
-function eY(e) {
+function $J(e) {
return Math.sign(e) * e * e;
}
-function nOe(e) {
+function iOe(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
-function tY() {
- var e = CJ(), t = [0, 1], n = !1, r;
+function eY() {
+ var e = SJ(), t = [0, 1], n = !1, r;
function i(t) {
- var i = nOe(e(t));
+ var i = iOe(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
- return e.invert(eY(t));
+ return e.invert($J(t));
}, i.domain = function(t) {
return arguments.length ? (e.domain(t), i) : e.domain();
}, i.range = function(n) {
- return arguments.length ? (e.range((t = Array.from(n, _J)).map(eY)), i) : t.slice();
+ return arguments.length ? (e.range((t = Array.from(n, gJ)).map($J)), i) : t.slice();
}, i.rangeRound = function(e) {
return i.range(e).round(!0);
}, i.round = function(e) {
@@ -59582,20 +59649,20 @@ function tY() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return tY(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
- }, Aq.apply(i, arguments), RJ(i);
+ return eY(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
+ }, kq.apply(i, arguments), LJ(i);
}
//#endregion
//#region node_modules/d3-scale/src/quantile.js
-function nY() {
+function tY() {
var e = [], t = [], n = [], r;
function i() {
var r = 0, i = Math.max(1, t.length);
- for (n = Array(i - 1); ++r < i;) n[r - 1] = oDe(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = cDe(e, r / i);
return a;
}
function a(e) {
- return e == null || isNaN(e = +e) ? r : t[gq(n, e)];
+ return e == null || isNaN(e = +e) ? r : t[hq(n, e)];
}
return a.invertExtent = function(r) {
var i = t.indexOf(r);
@@ -59604,7 +59671,7 @@ function nY() {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(fq), i();
+ return e.sort(dq), i();
}, a.range = function(e) {
return arguments.length ? (t = Array.from(e), i()) : t.slice();
}, a.unknown = function(e) {
@@ -59612,15 +59679,15 @@ function nY() {
}, a.quantiles = function() {
return n.slice();
}, a.copy = function() {
- return nY().domain(e).range(t).unknown(r);
- }, Aq.apply(a, arguments);
+ return tY().domain(e).range(t).unknown(r);
+ }, kq.apply(a, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/quantize.js
-function rY() {
+function nY() {
var e = 0, t = 1, n = 1, r = [.5], i = [0, 1], a;
function o(e) {
- return e != null && e <= e ? i[gq(r, e, 0, n)] : a;
+ return e != null && e <= e ? i[hq(r, e, 0, n)] : a;
}
function s() {
var i = -1;
@@ -59639,15 +59706,15 @@ function rY() {
}, o.thresholds = function() {
return r.slice();
}, o.copy = function() {
- return rY().domain([e, t]).range(i).unknown(a);
- }, Aq.apply(RJ(o), arguments);
+ return nY().domain([e, t]).range(i).unknown(a);
+ }, kq.apply(LJ(o), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/threshold.js
-function iY() {
+function rY() {
var e = [.5], t = [0, 1], n, r = 1;
function i(i) {
- return i != null && i <= i ? t[gq(e, i, 0, r)] : n;
+ return i != null && i <= i ? t[hq(e, i, 0, r)] : n;
}
return i.domain = function(n) {
return arguments.length ? (e = Array.from(n), r = Math.min(e.length, t.length - 1), i) : e.slice();
@@ -59659,13 +59726,13 @@ function iY() {
}, i.unknown = function(e) {
return arguments.length ? (n = e, i) : n;
}, i.copy = function() {
- return iY().domain(e).range(t).unknown(n);
- }, Aq.apply(i, arguments);
+ return rY().domain(e).range(t).unknown(n);
+ }, kq.apply(i, arguments);
}
//#endregion
//#region node_modules/d3-time/src/interval.js
-var aY = /* @__PURE__ */ new Date(), oY = /* @__PURE__ */ new Date();
-function sY(e, t, n, r) {
+var iY = /* @__PURE__ */ new Date(), aY = /* @__PURE__ */ new Date();
+function oY(e, t, n, r) {
function i(t) {
return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;
}
@@ -59680,226 +59747,226 @@ function sY(e, t, n, r) {
o.push(s = /* @__PURE__ */ new Date(+n)), t(n, a), e(n);
while (s < n && n < r);
return o;
- }, i.filter = (n) => sY((t) => {
+ }, i.filter = (n) => oY((t) => {
if (t >= t) for (; e(t), !n(t);) t.setTime(t - 1);
}, (e, r) => {
if (e >= e) {
if (r < 0) for (; ++r <= 0;) for (; t(e, -1), !n(e););
else for (; --r >= 0;) for (; t(e, 1), !n(e););
}
- }), n && (i.count = (t, r) => (aY.setTime(+t), oY.setTime(+r), e(aY), e(oY), Math.floor(n(aY, oY))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;
+ }), n && (i.count = (t, r) => (iY.setTime(+t), aY.setTime(+r), e(iY), e(aY), Math.floor(n(iY, aY))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;
}
//#endregion
//#region node_modules/d3-time/src/millisecond.js
-var cY = sY(() => {}, (e, t) => {
+var sY = oY(() => {}, (e, t) => {
e.setTime(+e + t);
}, (e, t) => t - e);
-cY.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? sY((t) => {
+sY.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? oY((t) => {
t.setTime(Math.floor(t / e) * e);
}, (t, n) => {
t.setTime(+t + n * e);
-}, (t, n) => (n - t) / e) : cY), cY.range;
+}, (t, n) => (n - t) / e) : sY), sY.range;
//#endregion
//#region node_modules/d3-time/src/duration.js
-var lY = 1e3, uY = lY * 60, dY = uY * 60, fY = dY * 24, pY = fY * 7, mY = fY * 30, hY = fY * 365, gY = sY((e) => {
+var cY = 1e3, lY = cY * 60, uY = lY * 60, dY = uY * 24, fY = dY * 7, pY = dY * 30, mY = dY * 365, hY = oY((e) => {
e.setTime(e - e.getMilliseconds());
}, (e, t) => {
- e.setTime(+e + t * lY);
-}, (e, t) => (t - e) / lY, (e) => e.getUTCSeconds());
-gY.range;
+ e.setTime(+e + t * cY);
+}, (e, t) => (t - e) / cY, (e) => e.getUTCSeconds());
+hY.range;
//#endregion
//#region node_modules/d3-time/src/minute.js
-var _Y = sY((e) => {
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * lY);
+var gY = oY((e) => {
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * cY);
}, (e, t) => {
- e.setTime(+e + t * uY);
-}, (e, t) => (t - e) / uY, (e) => e.getMinutes());
-_Y.range;
-var vY = sY((e) => {
+ e.setTime(+e + t * lY);
+}, (e, t) => (t - e) / lY, (e) => e.getMinutes());
+gY.range;
+var _Y = oY((e) => {
e.setUTCSeconds(0, 0);
}, (e, t) => {
- e.setTime(+e + t * uY);
-}, (e, t) => (t - e) / uY, (e) => e.getUTCMinutes());
-vY.range;
+ e.setTime(+e + t * lY);
+}, (e, t) => (t - e) / lY, (e) => e.getUTCMinutes());
+_Y.range;
//#endregion
//#region node_modules/d3-time/src/hour.js
-var yY = sY((e) => {
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * lY - e.getMinutes() * uY);
+var vY = oY((e) => {
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * cY - e.getMinutes() * lY);
}, (e, t) => {
- e.setTime(+e + t * dY);
-}, (e, t) => (t - e) / dY, (e) => e.getHours());
-yY.range;
-var bY = sY((e) => {
+ e.setTime(+e + t * uY);
+}, (e, t) => (t - e) / uY, (e) => e.getHours());
+vY.range;
+var yY = oY((e) => {
e.setUTCMinutes(0, 0, 0);
}, (e, t) => {
- e.setTime(+e + t * dY);
-}, (e, t) => (t - e) / dY, (e) => e.getUTCHours());
-bY.range;
+ e.setTime(+e + t * uY);
+}, (e, t) => (t - e) / uY, (e) => e.getUTCHours());
+yY.range;
//#endregion
//#region node_modules/d3-time/src/day.js
-var xY = sY((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * uY) / fY, (e) => e.getDate() - 1);
-xY.range;
-var SY = sY((e) => {
+var bY = oY((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * lY) / dY, (e) => e.getDate() - 1);
+bY.range;
+var xY = oY((e) => {
e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t);
-}, (e, t) => (t - e) / fY, (e) => e.getUTCDate() - 1);
-SY.range;
-var CY = sY((e) => {
+}, (e, t) => (t - e) / dY, (e) => e.getUTCDate() - 1);
+xY.range;
+var SY = oY((e) => {
e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t);
-}, (e, t) => (t - e) / fY, (e) => Math.floor(e / fY));
-CY.range;
+}, (e, t) => (t - e) / dY, (e) => Math.floor(e / dY));
+SY.range;
//#endregion
//#region node_modules/d3-time/src/week.js
-function wY(e) {
- return sY((t) => {
+function CY(e) {
+ return oY((t) => {
t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
}, (e, t) => {
e.setDate(e.getDate() + t * 7);
- }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * uY) / pY);
+ }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * lY) / fY);
}
-var TY = wY(0), EY = wY(1), rOe = wY(2), iOe = wY(3), DY = wY(4), aOe = wY(5), oOe = wY(6);
-TY.range, EY.range, rOe.range, iOe.range, DY.range, aOe.range, oOe.range;
-function OY(e) {
- return sY((t) => {
+var wY = CY(0), TY = CY(1), aOe = CY(2), oOe = CY(3), EY = CY(4), sOe = CY(5), cOe = CY(6);
+wY.range, TY.range, aOe.range, oOe.range, EY.range, sOe.range, cOe.range;
+function DY(e) {
+ return oY((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t * 7);
- }, (e, t) => (t - e) / pY);
+ }, (e, t) => (t - e) / fY);
}
-var kY = OY(0), AY = OY(1), sOe = OY(2), cOe = OY(3), jY = OY(4), lOe = OY(5), uOe = OY(6);
-kY.range, AY.range, sOe.range, cOe.range, jY.range, lOe.range, uOe.range;
+var OY = DY(0), kY = DY(1), lOe = DY(2), uOe = DY(3), AY = DY(4), dOe = DY(5), fOe = DY(6);
+OY.range, kY.range, lOe.range, uOe.range, AY.range, dOe.range, fOe.range;
//#endregion
//#region node_modules/d3-time/src/month.js
-var MY = sY((e) => {
+var jY = oY((e) => {
e.setDate(1), e.setHours(0, 0, 0, 0);
}, (e, t) => {
e.setMonth(e.getMonth() + t);
}, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());
-MY.range;
-var NY = sY((e) => {
+jY.range;
+var MY = oY((e) => {
e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCMonth(e.getUTCMonth() + t);
}, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());
-NY.range;
+MY.range;
//#endregion
//#region node_modules/d3-time/src/year.js
-var PY = sY((e) => {
+var NY = oY((e) => {
e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
}, (e, t) => {
e.setFullYear(e.getFullYear() + t);
}, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
-PY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : sY((t) => {
+NY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : oY((t) => {
t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
}, (t, n) => {
t.setFullYear(t.getFullYear() + n * e);
-}), PY.range;
-var FY = sY((e) => {
+}), NY.range;
+var PY = oY((e) => {
e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCFullYear(e.getUTCFullYear() + t);
}, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
-FY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : sY((t) => {
+PY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : oY((t) => {
t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
}, (t, n) => {
t.setUTCFullYear(t.getUTCFullYear() + n * e);
-}), FY.range;
+}), PY.range;
//#endregion
//#region node_modules/d3-time/src/ticks.js
-function IY(e, t, n, r, i, a) {
+function FY(e, t, n, r, i, a) {
let o = [
[
- gY,
+ hY,
1,
- lY
+ cY
],
[
- gY,
+ hY,
5,
- 5 * lY
+ 5 * cY
],
[
- gY,
+ hY,
15,
- 15 * lY
+ 15 * cY
],
[
- gY,
+ hY,
30,
- 30 * lY
+ 30 * cY
],
[
a,
1,
- uY
+ lY
],
[
a,
5,
- 5 * uY
+ 5 * lY
],
[
a,
15,
- 15 * uY
+ 15 * lY
],
[
a,
30,
- 30 * uY
+ 30 * lY
],
[
i,
1,
- dY
+ uY
],
[
i,
3,
- 3 * dY
+ 3 * uY
],
[
i,
6,
- 6 * dY
+ 6 * uY
],
[
i,
12,
- 12 * dY
+ 12 * uY
],
[
r,
1,
- fY
+ dY
],
[
r,
2,
- 2 * fY
+ 2 * dY
],
[
n,
1,
- pY
+ fY
],
[
t,
1,
- mY
+ pY
],
[
t,
3,
- 3 * mY
+ 3 * pY
],
[
e,
1,
- hY
+ mY
]
];
function s(e, t, n) {
@@ -59909,32 +59976,32 @@ function IY(e, t, n, r, i, a) {
return r ? a.reverse() : a;
}
function c(t, n, r) {
- let i = Math.abs(n - t) / r, a = pq(([, , e]) => e).right(o, i);
- if (a === o.length) return e.every(wq(t / hY, n / hY, r));
- if (a === 0) return cY.every(Math.max(wq(t, n, r), 1));
+ let i = Math.abs(n - t) / r, a = fq(([, , e]) => e).right(o, i);
+ if (a === o.length) return e.every(Cq(t / mY, n / mY, r));
+ if (a === 0) return sY.every(Math.max(Cq(t, n, r), 1));
let [s, c] = o[i / o[a - 1][2] < o[a][2] / i ? a - 1 : a];
return s.every(c);
}
return [s, c];
}
-var [dOe, fOe] = IY(FY, NY, kY, CY, bY, vY), [pOe, mOe] = IY(PY, MY, TY, xY, yY, _Y);
+var [pOe, mOe] = FY(PY, MY, OY, SY, yY, _Y), [hOe, gOe] = FY(NY, jY, wY, bY, vY, gY);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
-function LY(e) {
+function IY(e) {
if (0 <= e.y && e.y < 100) {
var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
return t.setFullYear(e.y), t;
}
return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L);
}
-function RY(e) {
+function LY(e) {
if (0 <= e.y && e.y < 100) {
var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L));
return t.setUTCFullYear(e.y), t;
}
return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L));
}
-function zY(e, t, n) {
+function RY(e, t, n) {
return {
y: e,
m: t,
@@ -59945,133 +60012,133 @@ function zY(e, t, n) {
L: 0
};
}
-function hOe(e) {
- var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = UY(i), u = WY(i), d = UY(a), f = WY(a), p = UY(o), m = WY(o), h = UY(s), g = WY(s), _ = UY(c), v = WY(c), y = {
+function _Oe(e) {
+ var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = HY(i), u = UY(i), d = HY(a), f = UY(a), p = HY(o), m = UY(o), h = HY(s), g = UY(s), _ = HY(c), v = UY(c), y = {
a: N,
A: ee,
b: te,
B: P,
c: null,
- d: YY,
- e: YY,
- f: ROe,
- g: JOe,
- G: XOe,
- H: FOe,
- I: IOe,
- j: LOe,
- L: XY,
- m: zOe,
- M: BOe,
+ d: JY,
+ e: JY,
+ f: BOe,
+ g: XOe,
+ G: QOe,
+ H: LOe,
+ I: ROe,
+ j: zOe,
+ L: YY,
+ m: VOe,
+ M: HOe,
p: F,
q: ne,
- Q: nX,
- s: rX,
- S: VOe,
- u: HOe,
- U: UOe,
- V: WOe,
- w: GOe,
- W: KOe,
+ Q: tX,
+ s: nX,
+ S: UOe,
+ u: WOe,
+ U: GOe,
+ V: KOe,
+ w: qOe,
+ W: JOe,
x: null,
X: null,
- y: qOe,
- Y: YOe,
- Z: ZOe,
- "%": tX
+ y: YOe,
+ Y: ZOe,
+ Z: $Oe,
+ "%": eX
}, b = {
a: re,
A: ie,
b: ae,
B: oe,
c: null,
- d: QY,
- e: QY,
- f: tke,
- g: dke,
- G: pke,
- H: QOe,
- I: $Oe,
- j: eke,
- L: $Y,
- m: nke,
- M: rke,
+ d: ZY,
+ e: ZY,
+ f: rke,
+ g: pke,
+ G: hke,
+ H: eke,
+ I: tke,
+ j: nke,
+ L: QY,
+ m: ike,
+ M: ake,
p: se,
q: ce,
- Q: nX,
- s: rX,
- S: ike,
- u: ake,
- U: oke,
- V: ske,
- w: cke,
- W: lke,
+ Q: tX,
+ s: nX,
+ S: oke,
+ u: ske,
+ U: cke,
+ V: lke,
+ w: uke,
+ W: dke,
x: null,
X: null,
- y: uke,
- Y: fke,
- Z: mke,
- "%": tX
+ y: fke,
+ Y: mke,
+ Z: gke,
+ "%": eX
}, x = {
a: E,
A: D,
b: O,
B: k,
c: A,
- d: qY,
- e: qY,
- f: jOe,
- g: KY,
- G: GY,
- H: JY,
- I: JY,
- j: DOe,
- L: AOe,
- m: EOe,
- M: OOe,
+ d: KY,
+ e: KY,
+ f: NOe,
+ g: GY,
+ G: WY,
+ H: qY,
+ I: qY,
+ j: kOe,
+ L: MOe,
+ m: OOe,
+ M: AOe,
p: T,
- q: TOe,
- Q: NOe,
- s: POe,
- S: kOe,
- u: bOe,
- U: xOe,
- V: SOe,
- w: yOe,
- W: COe,
+ q: DOe,
+ Q: FOe,
+ s: IOe,
+ S: jOe,
+ u: SOe,
+ U: COe,
+ V: wOe,
+ w: xOe,
+ W: TOe,
x: j,
X: M,
- y: KY,
- Y: GY,
- Z: wOe,
- "%": MOe
+ y: GY,
+ Y: WY,
+ Z: EOe,
+ "%": POe
};
y.x = S(n, y), y.X = S(r, y), y.c = S(t, y), b.x = S(n, b), b.X = S(r, b), b.c = S(t, b);
function S(e, t) {
return function(n) {
var r = [], i = -1, a = 0, o = e.length, s, c, l;
- for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = BY[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);
+ for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = zY[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);
return r.push(e.slice(a, i)), r.join("");
};
}
function C(e, t) {
return function(n) {
- var r = zY(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;
+ var r = RY(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;
if (i != n.length) return null;
if ("Q" in r) return new Date(r.Q);
if ("s" in r) return new Date(r.s * 1e3 + ("L" in r ? r.L : 0));
if (t && !("Z" in r) && (r.Z = 0), "p" in r && (r.H = r.H % 12 + r.p * 12), r.m === void 0 && (r.m = "q" in r ? r.q : 0), "V" in r) {
if (r.V < 1 || r.V > 53) return null;
- "w" in r || (r.w = 1), "Z" in r ? (a = RY(zY(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? AY.ceil(a) : AY(a), a = SY.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = LY(zY(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? EY.ceil(a) : EY(a), a = xY.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);
- } else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? RY(zY(r.y, 0, 1)).getUTCDay() : LY(zY(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);
- return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, RY(r)) : LY(r);
+ "w" in r || (r.w = 1), "Z" in r ? (a = LY(RY(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? kY.ceil(a) : kY(a), a = xY.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = IY(RY(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? TY.ceil(a) : TY(a), a = bY.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);
+ } else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? LY(RY(r.y, 0, 1)).getUTCDay() : IY(RY(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);
+ return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, LY(r)) : IY(r);
};
}
function w(e, t, n, r) {
for (var i = 0, a = t.length, o = n.length, s, c; i < a;) {
if (r >= o) return -1;
if (s = t.charCodeAt(i++), s === 37) {
- if (s = t.charAt(i++), c = x[s in BY ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
+ if (s = t.charAt(i++), c = x[s in zY ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
} else if (s != n.charCodeAt(r++)) return -1;
}
return r;
@@ -60168,244 +60235,244 @@ function hOe(e) {
}
};
}
-var BY = {
+var zY = {
"-": "",
_: " ",
0: "0"
-}, VY = /^\s*\d+/, gOe = /^%/, _Oe = /[\\^$*+?|[\]().{}]/g;
-function HY(e, t, n) {
+}, BY = /^\s*\d+/, vOe = /^%/, yOe = /[\\^$*+?|[\]().{}]/g;
+function VY(e, t, n) {
var r = e < 0 ? "-" : "", i = (r ? -e : e) + "", a = i.length;
return r + (a < n ? Array(n - a + 1).join(t) + i : i);
}
-function vOe(e) {
- return e.replace(_Oe, "\\$&");
+function bOe(e) {
+ return e.replace(yOe, "\\$&");
}
-function UY(e) {
- return RegExp("^(?:" + e.map(vOe).join("|") + ")", "i");
+function HY(e) {
+ return RegExp("^(?:" + e.map(bOe).join("|") + ")", "i");
}
-function WY(e) {
+function UY(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function yOe(e, t, n) {
- var r = VY.exec(t.slice(n, n + 1));
+function xOe(e, t, n) {
+ var r = BY.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function bOe(e, t, n) {
- var r = VY.exec(t.slice(n, n + 1));
+function SOe(e, t, n) {
+ var r = BY.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function xOe(e, t, n) {
- var r = VY.exec(t.slice(n, n + 2));
+function COe(e, t, n) {
+ var r = BY.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function SOe(e, t, n) {
- var r = VY.exec(t.slice(n, n + 2));
+function wOe(e, t, n) {
+ var r = BY.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function COe(e, t, n) {
- var r = VY.exec(t.slice(n, n + 2));
+function TOe(e, t, n) {
+ var r = BY.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
-function GY(e, t, n) {
- var r = VY.exec(t.slice(n, n + 4));
+function WY(e, t, n) {
+ var r = BY.exec(t.slice(n, n + 4));
return r ? (e.y = +r[0], n + r[0].length) : -1;
}
-function KY(e, t, n) {
- var r = VY.exec(t.slice(n, n + 2));
+function GY(e, t, n) {
+ var r = BY.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function wOe(e, t, n) {
+function EOe(e, t, n) {
var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6));
return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
}
-function TOe(e, t, n) {
- var r = VY.exec(t.slice(n, n + 1));
+function DOe(e, t, n) {
+ var r = BY.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function EOe(e, t, n) {
- var r = VY.exec(t.slice(n, n + 2));
+function OOe(e, t, n) {
+ var r = BY.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
-function qY(e, t, n) {
- var r = VY.exec(t.slice(n, n + 2));
+function KY(e, t, n) {
+ var r = BY.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function DOe(e, t, n) {
- var r = VY.exec(t.slice(n, n + 3));
+function kOe(e, t, n) {
+ var r = BY.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
-function JY(e, t, n) {
- var r = VY.exec(t.slice(n, n + 2));
+function qY(e, t, n) {
+ var r = BY.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function OOe(e, t, n) {
- var r = VY.exec(t.slice(n, n + 2));
+function AOe(e, t, n) {
+ var r = BY.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function kOe(e, t, n) {
- var r = VY.exec(t.slice(n, n + 2));
+function jOe(e, t, n) {
+ var r = BY.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function AOe(e, t, n) {
- var r = VY.exec(t.slice(n, n + 3));
+function MOe(e, t, n) {
+ var r = BY.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function jOe(e, t, n) {
- var r = VY.exec(t.slice(n, n + 6));
+function NOe(e, t, n) {
+ var r = BY.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function MOe(e, t, n) {
- var r = gOe.exec(t.slice(n, n + 1));
+function POe(e, t, n) {
+ var r = vOe.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function NOe(e, t, n) {
- var r = VY.exec(t.slice(n));
+function FOe(e, t, n) {
+ var r = BY.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function POe(e, t, n) {
- var r = VY.exec(t.slice(n));
+function IOe(e, t, n) {
+ var r = BY.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
-function YY(e, t) {
- return HY(e.getDate(), t, 2);
-}
-function FOe(e, t) {
- return HY(e.getHours(), t, 2);
-}
-function IOe(e, t) {
- return HY(e.getHours() % 12 || 12, t, 2);
+function JY(e, t) {
+ return VY(e.getDate(), t, 2);
}
function LOe(e, t) {
- return HY(1 + xY.count(PY(e), e), t, 3);
-}
-function XY(e, t) {
- return HY(e.getMilliseconds(), t, 3);
+ return VY(e.getHours(), t, 2);
}
function ROe(e, t) {
- return XY(e, t) + "000";
+ return VY(e.getHours() % 12 || 12, t, 2);
}
function zOe(e, t) {
- return HY(e.getMonth() + 1, t, 2);
+ return VY(1 + bY.count(NY(e), e), t, 3);
+}
+function YY(e, t) {
+ return VY(e.getMilliseconds(), t, 3);
}
function BOe(e, t) {
- return HY(e.getMinutes(), t, 2);
+ return YY(e, t) + "000";
}
function VOe(e, t) {
- return HY(e.getSeconds(), t, 2);
+ return VY(e.getMonth() + 1, t, 2);
}
-function HOe(e) {
- var t = e.getDay();
- return t === 0 ? 7 : t;
+function HOe(e, t) {
+ return VY(e.getMinutes(), t, 2);
}
function UOe(e, t) {
- return HY(TY.count(PY(e) - 1, e), t, 2);
+ return VY(e.getSeconds(), t, 2);
}
-function ZY(e) {
+function WOe(e) {
var t = e.getDay();
- return t >= 4 || t === 0 ? DY(e) : DY.ceil(e);
+ return t === 0 ? 7 : t;
}
-function WOe(e, t) {
- return e = ZY(e), HY(DY.count(PY(e), e) + (PY(e).getDay() === 4), t, 2);
+function GOe(e, t) {
+ return VY(wY.count(NY(e) - 1, e), t, 2);
}
-function GOe(e) {
- return e.getDay();
+function XY(e) {
+ var t = e.getDay();
+ return t >= 4 || t === 0 ? EY(e) : EY.ceil(e);
}
function KOe(e, t) {
- return HY(EY.count(PY(e) - 1, e), t, 2);
+ return e = XY(e), VY(EY.count(NY(e), e) + (NY(e).getDay() === 4), t, 2);
}
-function qOe(e, t) {
- return HY(e.getFullYear() % 100, t, 2);
+function qOe(e) {
+ return e.getDay();
}
function JOe(e, t) {
- return e = ZY(e), HY(e.getFullYear() % 100, t, 2);
+ return VY(TY.count(NY(e) - 1, e), t, 2);
}
function YOe(e, t) {
- return HY(e.getFullYear() % 1e4, t, 4);
+ return VY(e.getFullYear() % 100, t, 2);
}
function XOe(e, t) {
- var n = e.getDay();
- return e = n >= 4 || n === 0 ? DY(e) : DY.ceil(e), HY(e.getFullYear() % 1e4, t, 4);
+ return e = XY(e), VY(e.getFullYear() % 100, t, 2);
}
-function ZOe(e) {
- var t = e.getTimezoneOffset();
- return (t > 0 ? "-" : (t *= -1, "+")) + HY(t / 60 | 0, "0", 2) + HY(t % 60, "0", 2);
-}
-function QY(e, t) {
- return HY(e.getUTCDate(), t, 2);
+function ZOe(e, t) {
+ return VY(e.getFullYear() % 1e4, t, 4);
}
function QOe(e, t) {
- return HY(e.getUTCHours(), t, 2);
+ var n = e.getDay();
+ return e = n >= 4 || n === 0 ? EY(e) : EY.ceil(e), VY(e.getFullYear() % 1e4, t, 4);
+}
+function $Oe(e) {
+ var t = e.getTimezoneOffset();
+ return (t > 0 ? "-" : (t *= -1, "+")) + VY(t / 60 | 0, "0", 2) + VY(t % 60, "0", 2);
}
-function $Oe(e, t) {
- return HY(e.getUTCHours() % 12 || 12, t, 2);
+function ZY(e, t) {
+ return VY(e.getUTCDate(), t, 2);
}
function eke(e, t) {
- return HY(1 + SY.count(FY(e), e), t, 3);
-}
-function $Y(e, t) {
- return HY(e.getUTCMilliseconds(), t, 3);
+ return VY(e.getUTCHours(), t, 2);
}
function tke(e, t) {
- return $Y(e, t) + "000";
+ return VY(e.getUTCHours() % 12 || 12, t, 2);
}
function nke(e, t) {
- return HY(e.getUTCMonth() + 1, t, 2);
+ return VY(1 + xY.count(PY(e), e), t, 3);
+}
+function QY(e, t) {
+ return VY(e.getUTCMilliseconds(), t, 3);
}
function rke(e, t) {
- return HY(e.getUTCMinutes(), t, 2);
+ return QY(e, t) + "000";
}
function ike(e, t) {
- return HY(e.getUTCSeconds(), t, 2);
+ return VY(e.getUTCMonth() + 1, t, 2);
}
-function ake(e) {
- var t = e.getUTCDay();
- return t === 0 ? 7 : t;
+function ake(e, t) {
+ return VY(e.getUTCMinutes(), t, 2);
}
function oke(e, t) {
- return HY(kY.count(FY(e) - 1, e), t, 2);
+ return VY(e.getUTCSeconds(), t, 2);
}
-function eX(e) {
+function ske(e) {
var t = e.getUTCDay();
- return t >= 4 || t === 0 ? jY(e) : jY.ceil(e);
+ return t === 0 ? 7 : t;
}
-function ske(e, t) {
- return e = eX(e), HY(jY.count(FY(e), e) + (FY(e).getUTCDay() === 4), t, 2);
+function cke(e, t) {
+ return VY(OY.count(PY(e) - 1, e), t, 2);
}
-function cke(e) {
- return e.getUTCDay();
+function $Y(e) {
+ var t = e.getUTCDay();
+ return t >= 4 || t === 0 ? AY(e) : AY.ceil(e);
}
function lke(e, t) {
- return HY(AY.count(FY(e) - 1, e), t, 2);
+ return e = $Y(e), VY(AY.count(PY(e), e) + (PY(e).getUTCDay() === 4), t, 2);
}
-function uke(e, t) {
- return HY(e.getUTCFullYear() % 100, t, 2);
+function uke(e) {
+ return e.getUTCDay();
}
function dke(e, t) {
- return e = eX(e), HY(e.getUTCFullYear() % 100, t, 2);
+ return VY(kY.count(PY(e) - 1, e), t, 2);
}
function fke(e, t) {
- return HY(e.getUTCFullYear() % 1e4, t, 4);
+ return VY(e.getUTCFullYear() % 100, t, 2);
}
function pke(e, t) {
+ return e = $Y(e), VY(e.getUTCFullYear() % 100, t, 2);
+}
+function mke(e, t) {
+ return VY(e.getUTCFullYear() % 1e4, t, 4);
+}
+function hke(e, t) {
var n = e.getUTCDay();
- return e = n >= 4 || n === 0 ? jY(e) : jY.ceil(e), HY(e.getUTCFullYear() % 1e4, t, 4);
+ return e = n >= 4 || n === 0 ? AY(e) : AY.ceil(e), VY(e.getUTCFullYear() % 1e4, t, 4);
}
-function mke() {
+function gke() {
return "+0000";
}
-function tX() {
+function eX() {
return "%";
}
-function nX(e) {
+function tX(e) {
return +e;
}
-function rX(e) {
+function nX(e) {
return Math.floor(e / 1e3);
}
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
-var iX, aX, oX;
-hke({
+var rX, iX, aX;
+_ke({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -60457,26 +60524,26 @@ hke({
"Dec"
]
});
-function hke(e) {
- return iX = hOe(e), aX = iX.format, iX.parse, oX = iX.utcFormat, iX.utcParse, iX;
+function _ke(e) {
+ return rX = _Oe(e), iX = rX.format, rX.parse, aX = rX.utcFormat, rX.utcParse, rX;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function gke(e) {
+function vke(e) {
return new Date(e);
}
-function _ke(e) {
+function yke(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
-function sX(e, t, n, r, i, a, o, s, c, l) {
- var u = CJ(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");
+function oX(e, t, n, r, i, a, o, s, c, l) {
+ var u = SJ(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");
function x(e) {
return (c(e) < e ? p : s(e) < e ? m : o(e) < e ? h : a(e) < e ? g : r(e) < e ? i(e) < e ? _ : v : n(e) < e ? y : b)(e);
}
return u.invert = function(e) {
return new Date(d(e));
}, u.domain = function(e) {
- return arguments.length ? f(Array.from(e, _ke)) : f().map(gke);
+ return arguments.length ? f(Array.from(e, yke)) : f().map(vke);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -60484,23 +60551,23 @@ function sX(e, t, n, r, i, a, o, s, c, l) {
return t == null ? x : l(t);
}, u.nice = function(e) {
var n = f();
- return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(VJ(n, e)) : u;
+ return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(BJ(n, e)) : u;
}, u.copy = function() {
- return xJ(u, sX(e, t, n, r, i, a, o, s, c, l));
+ return bJ(u, oX(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function vke() {
- return Aq.apply(sX(pOe, mOe, PY, MY, TY, xY, yY, _Y, gY, aX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function bke() {
+ return kq.apply(oX(hOe, gOe, NY, jY, wY, bY, vY, gY, hY, iX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function yke() {
- return Aq.apply(sX(dOe, fOe, FY, NY, kY, SY, bY, vY, gY, oX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function xke() {
+ return kq.apply(oX(pOe, mOe, PY, MY, OY, xY, yY, _Y, hY, aX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
-function cX() {
- var e = 0, t = 1, n, r, i, a, o = yJ, s = !1, c;
+function sX() {
+ var e = 0, t = 1, n, r, i, a, o = vJ, s = !1, c;
function l(e) {
return e == null || isNaN(e = +e) ? c : o(i === 0 ? .5 : (e = (a(e) - n) * i, s ? Math.max(0, Math.min(1, e)) : e));
}
@@ -60517,68 +60584,68 @@ function cX() {
return arguments.length ? ([n, r] = t, o = e(n, r), l) : [o(0), o(1)];
};
}
- return l.range = u(hJ), l.rangeRound = u(gJ), l.unknown = function(e) {
+ return l.range = u(mJ), l.rangeRound = u(hJ), l.unknown = function(e) {
return arguments.length ? (c = e, l) : c;
}, function(o) {
return a = o, n = o(e), r = o(t), i = n === r ? 0 : 1 / (r - n), l;
};
}
-function lX(e, t) {
+function cX(e, t) {
return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());
}
+function lX() {
+ var e = LJ(sX()(vJ));
+ return e.copy = function() {
+ return cX(e, lX());
+ }, Aq.apply(e, arguments);
+}
function uX() {
- var e = RJ(cX()(yJ));
+ var e = WJ(sX()).domain([1, 10]);
return e.copy = function() {
- return lX(e, uX());
- }, jq.apply(e, arguments);
+ return cX(e, uX()).base(e.base());
+ }, Aq.apply(e, arguments);
}
function dX() {
- var e = GJ(cX()).domain([1, 10]);
+ var e = JJ(sX());
return e.copy = function() {
- return lX(e, dX()).base(e.base());
- }, jq.apply(e, arguments);
+ return cX(e, dX()).constant(e.constant());
+ }, Aq.apply(e, arguments);
}
function fX() {
- var e = YJ(cX());
- return e.copy = function() {
- return lX(e, fX()).constant(e.constant());
- }, jq.apply(e, arguments);
-}
-function pX() {
- var e = QJ(cX());
+ var e = ZJ(sX());
return e.copy = function() {
- return lX(e, pX()).exponent(e.exponent());
- }, jq.apply(e, arguments);
+ return cX(e, fX()).exponent(e.exponent());
+ }, Aq.apply(e, arguments);
}
-function bke() {
- return pX.apply(null, arguments).exponent(.5);
+function Ske() {
+ return fX.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/sequentialQuantile.js
-function mX() {
- var e = [], t = yJ;
+function pX() {
+ var e = [], t = vJ;
function n(n) {
- if (n != null && !isNaN(n = +n)) return t((gq(e, n, 1) - 1) / (e.length - 1));
+ if (n != null && !isNaN(n = +n)) return t((hq(e, n, 1) - 1) / (e.length - 1));
}
return n.domain = function(t) {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(fq), n;
+ return e.sort(dq), n;
}, n.interpolator = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.range = function() {
return e.map((n, r) => t(r / (e.length - 1)));
}, n.quantiles = function(t) {
- return Array.from({ length: t + 1 }, (n, r) => aDe(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => sDe(e, r / t));
}, n.copy = function() {
- return mX(t).domain(e);
- }, jq.apply(n, arguments);
+ return pX(t).domain(e);
+ }, Aq.apply(n, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/diverging.js
-function hX() {
- var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = yJ, u, d = !1, f;
+function mX() {
+ var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = vJ, u, d = !1, f;
function p(e) {
return isNaN(e = +e) ? f : (e = .5 + ((e = +u(e)) - a) * (r * e < r * a ? s : c), l(d ? Math.max(0, Math.min(1, e)) : e));
}
@@ -60596,7 +60663,7 @@ function hX() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = MDe(e, [
+ return arguments.length ? ([n, r, i] = t, l = PDe(e, [
n,
r,
i
@@ -60607,121 +60674,121 @@ function hX() {
];
};
}
- return p.range = m(hJ), p.rangeRound = m(gJ), p.unknown = function(e) {
+ return p.range = m(mJ), p.rangeRound = m(hJ), p.unknown = function(e) {
return arguments.length ? (f = e, p) : f;
}, function(l) {
return u = l, i = l(e), a = l(t), o = l(n), s = i === a ? 0 : .5 / (a - i), c = a === o ? 0 : .5 / (o - a), r = a < i ? -1 : 1, p;
};
}
-function gX() {
- var e = RJ(hX()(yJ));
+function hX() {
+ var e = LJ(mX()(vJ));
return e.copy = function() {
- return lX(e, gX());
- }, jq.apply(e, arguments);
+ return cX(e, hX());
+ }, Aq.apply(e, arguments);
}
-function _X() {
- var e = GJ(hX()).domain([
+function gX() {
+ var e = WJ(mX()).domain([
.1,
1,
10
]);
return e.copy = function() {
- return lX(e, _X()).base(e.base());
- }, jq.apply(e, arguments);
+ return cX(e, gX()).base(e.base());
+ }, Aq.apply(e, arguments);
}
-function vX() {
- var e = YJ(hX());
+function _X() {
+ var e = JJ(mX());
return e.copy = function() {
- return lX(e, vX()).constant(e.constant());
- }, jq.apply(e, arguments);
+ return cX(e, _X()).constant(e.constant());
+ }, Aq.apply(e, arguments);
}
-function yX() {
- var e = QJ(hX());
+function vX() {
+ var e = ZJ(mX());
return e.copy = function() {
- return lX(e, yX()).exponent(e.exponent());
- }, jq.apply(e, arguments);
+ return cX(e, vX()).exponent(e.exponent());
+ }, Aq.apply(e, arguments);
}
-function xke() {
- return yX.apply(null, arguments).exponent(.5);
+function Cke() {
+ return vX.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/victory-vendor/es/d3-scale.js
-var bX = /* @__PURE__ */ wt({
- scaleBand: () => Pq,
- scaleDiverging: () => gX,
- scaleDivergingLog: () => _X,
- scaleDivergingPow: () => yX,
- scaleDivergingSqrt: () => xke,
- scaleDivergingSymlog: () => vX,
- scaleIdentity: () => BJ,
- scaleImplicit: () => Mq,
- scaleLinear: () => zJ,
- scaleLog: () => KJ,
- scaleOrdinal: () => Nq,
- scalePoint: () => cDe,
- scalePow: () => $J,
- scaleQuantile: () => nY,
- scaleQuantize: () => rY,
- scaleRadial: () => tY,
- scaleSequential: () => uX,
- scaleSequentialLog: () => dX,
- scaleSequentialPow: () => pX,
- scaleSequentialQuantile: () => mX,
- scaleSequentialSqrt: () => bke,
- scaleSequentialSymlog: () => fX,
- scaleSqrt: () => tOe,
- scaleSymlog: () => XJ,
- scaleThreshold: () => iY,
- scaleTime: () => vke,
- scaleUtc: () => yke,
- tickFormat: () => LJ
+var yX = /* @__PURE__ */ wt({
+ scaleBand: () => Nq,
+ scaleDiverging: () => hX,
+ scaleDivergingLog: () => gX,
+ scaleDivergingPow: () => vX,
+ scaleDivergingSqrt: () => Cke,
+ scaleDivergingSymlog: () => _X,
+ scaleIdentity: () => zJ,
+ scaleImplicit: () => jq,
+ scaleLinear: () => RJ,
+ scaleLog: () => GJ,
+ scaleOrdinal: () => Mq,
+ scalePoint: () => uDe,
+ scalePow: () => QJ,
+ scaleQuantile: () => tY,
+ scaleQuantize: () => nY,
+ scaleRadial: () => eY,
+ scaleSequential: () => lX,
+ scaleSequentialLog: () => uX,
+ scaleSequentialPow: () => fX,
+ scaleSequentialQuantile: () => pX,
+ scaleSequentialSqrt: () => Ske,
+ scaleSequentialSymlog: () => dX,
+ scaleSqrt: () => rOe,
+ scaleSymlog: () => YJ,
+ scaleThreshold: () => rY,
+ scaleTime: () => bke,
+ scaleUtc: () => xke,
+ tickFormat: () => IJ
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function Ske(e) {
- if (e in bX) return bX[e]();
- var t = `scale${cB(e)}`;
- if (t in bX) return bX[t]();
+function wke(e) {
+ if (e in yX) return yX[e]();
+ var t = `scale${sB(e)}`;
+ if (t in yX) return yX[t]();
}
-function xX(e, t, n) {
+function bX(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = Ske(e);
+ var r = wke(e);
if (r != null) return r.domain(t).range(n), r;
}
}
-function SX(e, t, n, r) {
- if (n != null && r != null) return typeof e.scale == "function" ? xX(e.scale, n, r) : xX(t, n, r);
+function xX(e, t, n, r) {
+ if (n != null && r != null) return typeof e.scale == "function" ? bX(e.scale, n, r) : bX(t, n, r);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function Cke(e) {
- return `scale${cB(e)}`;
+function Tke(e) {
+ return `scale${sB(e)}`;
}
-function wke(e) {
- return Cke(e) in bX;
+function Eke(e) {
+ return Tke(e) in yX;
}
-var CX = (e, t, n) => {
+var SX = (e, t, n) => {
if (e != null) {
var { scale: r, type: i } = e;
if (r === "auto") return i === "category" && n && (n.indexOf("LineChart") >= 0 || n.indexOf("AreaChart") >= 0 || n.indexOf("ComposedChart") >= 0 && !t) ? "point" : i === "category" ? "band" : "linear";
- if (typeof r == "string") return wke(r) ? r : "point";
+ if (typeof r == "string") return Eke(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function Tke(e, t) {
+function Dke(e, t) {
for (var n = 0, r = e.length, i = e[0] < e[e.length - 1]; n < r;) {
var a = Math.floor((n + r) / 2);
(i ? e[a] < t : e[a] > t) ? n = a + 1 : r = a;
}
return n;
}
-function wX(e, t) {
+function CX(e, t) {
if (e) {
var n = t ?? e.domain(), r = n.map((t) => e(t) ?? 0), i = e.range();
if (!(n.length === 0 || i.length < 2)) return (e) => {
- var t = Tke(r, e);
+ var t = Dke(r, e);
if (t <= 0) return n[0];
if (t >= n.length) return n[n.length - 1];
var i = r[t - 1] ?? 0, a = r[t] ?? 0;
@@ -60731,12 +60798,12 @@ function wX(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function Eke(e) {
- if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : wX(e, void 0);
+function Oke(e) {
+ if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : CX(e, void 0);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/axisSelectors.js
-function TX(e, t) {
+function wX(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -60746,30 +60813,30 @@ function TX(e, t) {
}
return n;
}
-function EX(e) {
+function TX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? TX(Object(n), !0).forEach(function(t) {
- Dke(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : TX(Object(n)).forEach(function(t) {
+ t % 2 ? wX(Object(n), !0).forEach(function(t) {
+ kke(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Dke(e, t, n) {
- return (t = Oke(t)) in e ? Object.defineProperty(e, t, {
+function kke(e, t, n) {
+ return (t = Ake(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Oke(e) {
- var t = kke(e, "string");
+function Ake(e) {
+ var t = jke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kke(e, t) {
+function jke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60779,7 +60846,7 @@ function kke(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var DX = [0, "auto"], OX = {
+var EX = [0, "auto"], DX = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
@@ -60808,13 +60875,13 @@ var DX = [0, "auto"], OX = {
type: "category",
unit: void 0,
niceTicks: "auto"
-}, kX = (e, t) => e.cartesianAxis.xAxis[t], AX = (e, t) => kX(e, t) ?? OX, jX = {
+}, OX = (e, t) => e.cartesianAxis.xAxis[t], kX = (e, t) => OX(e, t) ?? DX, AX = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
angle: 0,
dataKey: void 0,
- domain: DX,
+ domain: EX,
hide: !0,
id: 0,
includeHidden: !1,
@@ -60837,7 +60904,7 @@ var DX = [0, "auto"], OX = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, MX = (e, t) => e.cartesianAxis.yAxis[t], NX = (e, t) => MX(e, t) ?? jX, Ake = {
+}, jX = (e, t) => e.cartesianAxis.yAxis[t], MX = (e, t) => jX(e, t) ?? AX, Mke = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -60850,31 +60917,31 @@ var DX = [0, "auto"], OX = {
scale: "auto",
type: "number",
unit: ""
-}, PX = (e, t) => e.cartesianAxis.zAxis[t] ?? Ake, FX = (e, t, n) => {
+}, NX = (e, t) => e.cartesianAxis.zAxis[t] ?? Mke, PX = (e, t, n) => {
switch (t) {
- case "xAxis": return AX(e, n);
- case "yAxis": return NX(e, n);
- case "zAxis": return PX(e, n);
- case "angleAxis": return KK(e, n);
- case "radiusAxis": return qK(e, n);
+ case "xAxis": return kX(e, n);
+ case "yAxis": return MX(e, n);
+ case "zAxis": return NX(e, n);
+ case "angleAxis": return GK(e, n);
+ case "radiusAxis": return KK(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, jke = (e, t, n) => {
+}, Nke = (e, t, n) => {
switch (t) {
- case "xAxis": return AX(e, n);
- case "yAxis": return NX(e, n);
+ case "xAxis": return kX(e, n);
+ case "yAxis": return MX(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, IX = (e, t, n) => {
+}, FX = (e, t, n) => {
switch (t) {
- case "xAxis": return AX(e, n);
- case "yAxis": return NX(e, n);
- case "angleAxis": return KK(e, n);
- case "radiusAxis": return qK(e, n);
+ case "xAxis": return kX(e, n);
+ case "yAxis": return MX(e, n);
+ case "angleAxis": return GK(e, n);
+ case "radiusAxis": return KK(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, LX = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
-function RX(e, t) {
+}, IX = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
+function LX(e, t) {
return (n) => {
switch (e) {
case "xAxis": return "xAxisId" in n && n.xAxisId === t;
@@ -60886,58 +60953,58 @@ function RX(e, t) {
}
};
}
-var zX = (e) => e.graphicalItems.cartesianItems, Mke = $([tq, nq], RX), BX = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), VX = $([
- zX,
- FX,
- Mke
-], BX, { memoizeOptions: { resultEqualityCheck: sq } }), HX = $([VX], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(aq)), UX = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), Nke = $([VX], UX), WX = (e) => e.map((e) => e.data).filter(Boolean).flat(1), Pke = $([VX], WX, { memoizeOptions: { resultEqualityCheck: sq } }), GX = (e, t) => {
+var RX = (e) => e.graphicalItems.cartesianItems, Pke = $([eq, tq], LX), zX = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), BX = $([
+ RX,
+ PX,
+ Pke
+], zX, { memoizeOptions: { resultEqualityCheck: oq } }), VX = $([BX], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(iq)), HX = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), Fke = $([BX], HX), UX = (e) => e.map((e) => e.data).filter(Boolean).flat(1), Ike = $([BX], UX, { memoizeOptions: { resultEqualityCheck: oq } }), WX = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, KX = $([Pke, pK], GX), qX = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: pU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: pU(e, t.dataKey) })), JX = $([
- KX,
- FX,
- VX
-], qX);
-function YX(e) {
- if (tB(e) || e instanceof Date) {
+}, GX = $([Ike, fK], WX), KX = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: fU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: fU(e, t.dataKey) })), qX = $([
+ GX,
+ PX,
+ BX
+], KX);
+function JX(e) {
+ if (eB(e) || e instanceof Date) {
var t = Number(e);
- if (lU(t)) return t;
+ if (cU(t)) return t;
}
}
-function XX(e) {
+function YX(e) {
if (Array.isArray(e)) {
- var t = [YX(e[0]), YX(e[1])];
- return hK(t) ? t : void 0;
+ var t = [JX(e[0]), JX(e[1])];
+ return mK(t) ? t : void 0;
}
- var n = YX(e);
+ var n = JX(e);
if (n != null) return [n, n];
}
-function ZX(e) {
- return e.map(YX).filter(lB);
+function XX(e) {
+ return e.map(JX).filter(cB);
}
-function Fke(e, t) {
- var n = YX(e), r = YX(t);
+function Lke(e, t) {
+ var n = JX(e), r = JX(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var Ike = $([JX], (e) => e?.map((e) => e.value).sort(Fke));
-function QX(e, t) {
+var Rke = $([qX], (e) => e?.map((e) => e.value).sort(Lke));
+function ZX(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
case "yAxis": return t.direction === "y";
default: return !1;
}
}
-function Lke(e, t, n) {
- return !n || typeof t != "number" || $z(t) || !n.length ? [] : ZX(n.flatMap((n) => {
- var r = pU(e, n.dataKey), i, a;
- if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!lU(i) || !lU(a))) return [t - i, t + a];
+function zke(e, t, n) {
+ return !n || typeof t != "number" || Qz(t) || !n.length ? [] : XX(n.flatMap((n) => {
+ var r = fU(e, n.dataKey), i, a;
+ if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!cU(i) || !cU(a))) return [t - i, t + a];
}));
}
-var $X = (e) => IX(e, cq(e), lq(e)), eZ = $([$X], (e) => e?.dataKey), Rke = $([
- HX,
- pK,
- $X
-], iq), tZ = (e, t, n, r) => {
+var QX = (e) => FX(e, sq(e), cq(e)), $X = $([QX], (e) => e?.dataKey), Bke = $([
+ VX,
+ fK,
+ QX
+], rq), eZ = (e, t, n, r) => {
var i = t.reduce((e, t) => {
if (t.stackId == null) return e;
var n = e[t.stackId];
@@ -60946,168 +61013,168 @@ var $X = (e) => IX(e, cq(e), lq(e)), eZ = $([$X], (e) => e?.dataKey), Rke = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: RCe(e, o.map(rq), n),
+ stackedData: BCe(e, o.map(nq), n),
graphicalItems: o
}];
}));
-}, nZ = $([
- Rke,
- HX,
- jK,
- MK
-], tZ), rZ = (e, t, n, r) => {
+}, tZ = $([
+ Bke,
+ VX,
+ AK,
+ jK
+], eZ), nZ = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
- var o = VCe(e, i, a);
+ var o = UCe(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, zke = $([FX], (e) => e.allowDataOverflow), iZ = (e) => {
- if (e == null || !("domain" in e)) return DX;
+}, Vke = $([PX], (e) => e.allowDataOverflow), rZ = (e) => {
+ if (e == null || !("domain" in e)) return EX;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
if (e.type === "number") {
- var t = ZX(e.ticks);
+ var t = XX(e.ticks);
return [Math.min(...t), Math.max(...t)];
}
if (e.type === "category") return e.ticks.map(String);
}
- return e?.domain ?? DX;
-}, aZ = $([FX], iZ), oZ = $([aZ, zke], _K), Bke = $([
- nZ,
- dK,
- tq,
- oZ
-], rZ, { memoizeOptions: { resultEqualityCheck: oq } }), sZ = (e) => e.errorBars, Vke = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => QX(n, e)), cZ = function() {
+ return e?.domain ?? EX;
+}, iZ = $([PX], rZ), aZ = $([iZ, Vke], gK), Hke = $([
+ tZ,
+ uK,
+ eq,
+ aZ
+], nZ, { memoizeOptions: { resultEqualityCheck: aq } }), oZ = (e) => e.errorBars, Uke = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => ZX(n, e)), sZ = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
return [Math.min(...t), Math.max(...t)];
}
-}, lZ = (e, t, n, r, i) => {
+}, cZ = (e, t, n, r, i) => {
var a, o;
if (n.length > 0 && e.forEach((e) => {
n.forEach((n) => {
- var s = r[n.id]?.filter((e) => QX(i, e)), c = pU(e, t.dataKey ?? n.dataKey), l = Lke(e, c, s);
+ var s = r[n.id]?.filter((e) => ZX(i, e)), c = fU(e, t.dataKey ?? n.dataKey), l = zke(e, c, s);
if (l.length >= 2) {
var u = Math.min(...l), d = Math.max(...l);
(a == null || u < a) && (a = u), (o == null || d > o) && (o = d);
}
- var f = XX(c);
+ var f = YX(c);
f != null && (a = a == null ? f[0] : Math.min(a, f[0]), o = o == null ? f[1] : Math.max(o, f[1]));
});
}), t?.dataKey != null && e.forEach((e) => {
- var n = XX(pU(e, t.dataKey));
+ var n = YX(fU(e, t.dataKey));
n != null && (a = a == null ? n[0] : Math.min(a, n[0]), o = o == null ? n[1] : Math.max(o, n[1]));
- }), lU(a) && lU(o)) return [a, o];
-}, Hke = $([
- KX,
- FX,
- Nke,
- sZ,
- tq
-], lZ, { memoizeOptions: { resultEqualityCheck: oq } });
-function Uke(e) {
+ }), cU(a) && cU(o)) return [a, o];
+}, Wke = $([
+ GX,
+ PX,
+ Fke,
+ oZ,
+ eq
+], cZ, { memoizeOptions: { resultEqualityCheck: aq } });
+function Gke(e) {
var { value: t } = e;
- if (tB(t) || t instanceof Date) return t;
-}
-var Wke = (e, t, n) => {
- var r = e.map(Uke).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && iB(r)) ? uK(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, uZ = (e) => e.referenceElements.dots, dZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), Gke = $([
- uZ,
- tq,
- nq
-], dZ), fZ = (e) => e.referenceElements.areas, Kke = $([
+ if (eB(t) || t instanceof Date) return t;
+}
+var Kke = (e, t, n) => {
+ var r = e.map(Gke).filter((e) => e != null);
+ return n && (t.dataKey == null || t.allowDuplicatedCategory && rB(r)) ? lK(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
+}, lZ = (e) => e.referenceElements.dots, uZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), qke = $([
+ lZ,
+ eq,
+ tq
+], uZ), dZ = (e) => e.referenceElements.areas, Jke = $([
+ dZ,
+ eq,
+ tq
+], uZ), fZ = (e) => e.referenceElements.lines, Yke = $([
fZ,
- tq,
- nq
-], dZ), pZ = (e) => e.referenceElements.lines, qke = $([
- pZ,
- tq,
- nq
-], dZ), mZ = (e, t) => {
+ eq,
+ tq
+], uZ), pZ = (e, t) => {
if (e != null) {
- var n = ZX(e.map((e) => t === "xAxis" ? e.x : e.y));
+ var n = XX(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Jke = $(Gke, tq, mZ), hZ = (e, t) => {
+}, Xke = $(qke, eq, pZ), mZ = (e, t) => {
if (e != null) {
- var n = ZX(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
+ var n = XX(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Yke = $([Kke, tq], hZ);
-function Xke(e) {
- if (e.x != null) return ZX([e.x]);
+}, Zke = $([Jke, eq], mZ);
+function Qke(e) {
+ if (e.x != null) return XX([e.x]);
var t = e.segment?.map((e) => e.x);
- return t == null || t.length === 0 ? [] : ZX(t);
+ return t == null || t.length === 0 ? [] : XX(t);
}
-function Zke(e) {
- if (e.y != null) return ZX([e.y]);
+function $ke(e) {
+ if (e.y != null) return XX([e.y]);
var t = e.segment?.map((e) => e.y);
- return t == null || t.length === 0 ? [] : ZX(t);
+ return t == null || t.length === 0 ? [] : XX(t);
}
-var gZ = (e, t) => {
+var hZ = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? Xke(e) : Zke(e));
+ var n = e.flatMap((e) => t === "xAxis" ? Qke(e) : $ke(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Qke = $(Jke, $([qke, tq], gZ), Yke, (e, t, n) => cZ(e, n, t)), _Z = (e, t, n, r, i, a, o, s) => n ?? GEe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? cZ(r, a, i) : cZ(a, i), e.allowDataOverflow), $ke = $([
- FX,
+}, eAe = $(Xke, $([Yke, eq], hZ), Zke, (e, t, n) => sZ(e, n, t)), gZ = (e, t, n, r, i, a, o, s) => n ?? qEe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? sZ(r, a, i) : sZ(a, i), e.allowDataOverflow), tAe = $([
+ PX,
+ iZ,
aZ,
- oZ,
- Bke,
Hke,
- Qke,
- eW,
- tq
-], _Z, { memoizeOptions: { resultEqualityCheck: oq } }), eAe = [0, 1], vZ = (e, t, n, r, i, a, o) => {
+ Wke,
+ eAe,
+ $U,
+ eq
+], gZ, { memoizeOptions: { resultEqualityCheck: aq } }), nAe = [0, 1], _Z = (e, t, n, r, i, a, o) => {
if (e != null && n != null && n.length !== 0 || o !== void 0) {
- var { dataKey: s, type: c } = e, l = mU(t, a);
- return l && s == null ? uK(0, n?.length ?? 0) : c === "category" ? Wke(r, e, l) : i === "expand" ? eAe : o;
- }
-}, yZ = $([
- FX,
- eW,
- KX,
- JX,
- jK,
- tq,
- $ke
-], vZ), bZ = $([
- FX,
- LX,
- NK
-], CX), xZ = (e, t, n) => {
+ var { dataKey: s, type: c } = e, l = pU(t, a);
+ return l && s == null ? lK(0, n?.length ?? 0) : c === "category" ? Kke(r, e, l) : i === "expand" ? nAe : o;
+ }
+}, vZ = $([
+ PX,
+ $U,
+ GX,
+ qX,
+ AK,
+ eq,
+ tAe
+], _Z), yZ = $([
+ PX,
+ IX,
+ MK
+], SX), bZ = (e, t, n) => {
var { niceTicks: r } = t;
if (r !== "none") {
- var i = iZ(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
- if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && hK(e)) {
- if (a) return TK(e, t.tickCount, t.allowDecimals, r);
- if (t.type === "number") return EK(e, t.tickCount, t.allowDecimals, r);
+ var i = rZ(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
+ if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && mK(e)) {
+ if (a) return wK(e, t.tickCount, t.allowDecimals, r);
+ if (t.type === "number") return TK(e, t.tickCount, t.allowDecimals, r);
}
if (r === "auto" && n === "linear" && t != null && t.tickCount) {
- if (a && hK(e)) return TK(e, t.tickCount, t.allowDecimals, "adaptive");
- if (t.type === "number" && hK(e)) return EK(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (a && mK(e)) return wK(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (t.type === "number" && mK(e)) return TK(e, t.tickCount, t.allowDecimals, "adaptive");
}
}
-}, SZ = $([
- yZ,
- IX,
- bZ
-], xZ), CZ = (e, t, n, r) => {
- if (r !== "angleAxis" && e?.type === "number" && hK(t) && Array.isArray(n) && n.length > 0) {
+}, xZ = $([
+ vZ,
+ FX,
+ yZ
+], bZ), SZ = (e, t, n, r) => {
+ if (r !== "angleAxis" && e?.type === "number" && mK(t) && Array.isArray(n) && n.length > 0) {
var i = t[0], a = n[0] ?? 0, o = t[1], s = n[n.length - 1] ?? 0;
return [Math.min(i, a), Math.max(o, s)];
}
return t;
-}, tAe = $([
- FX,
- yZ,
- SZ,
- tq
-], CZ), wZ = $($(JX, FX, (e, t) => {
+}, rAe = $([
+ PX,
+ vZ,
+ xZ,
+ eq
+], SZ), CZ = $($(qX, PX, (e, t) => {
if (!(!t || t.type !== "number")) {
- var n = Infinity, r = Array.from(ZX(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
+ var n = Infinity, r = Array.from(XX(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
if (i == null || a == null) return Infinity;
var o = a - i;
if (o === 0) return Infinity;
@@ -61120,22 +61187,22 @@ var gZ = (e, t) => {
}
return n / o;
}
-}), eW, kK, PU, (e, t, n, r, i) => i, (e, t, n, r, i) => {
- if (!lU(e)) return 0;
+}), $U, OK, NU, (e, t, n, r, i) => i, (e, t, n, r, i) => {
+ if (!cU(e)) return 0;
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
if (i === "no-gap") {
- var o = rB(n, e * a), s = e * a / 2;
+ var o = nB(n, e * a), s = e * a / 2;
return s - o - (s - o) / a * o;
}
return 0;
-}), nAe = (e, t, n) => {
- var r = AX(e, t);
- return r == null || typeof r.padding != "string" ? 0 : wZ(e, "xAxis", t, n, r.padding);
-}, rAe = (e, t, n) => {
- var r = NX(e, t);
- return r == null || typeof r.padding != "string" ? 0 : wZ(e, "yAxis", t, n, r.padding);
-}, iAe = $(AX, nAe, (e, t) => {
+}), iAe = (e, t, n) => {
+ var r = kX(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : CZ(e, "xAxis", t, n, r.padding);
+}, aAe = (e, t, n) => {
+ var r = MX(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : CZ(e, "yAxis", t, n, r.padding);
+}, oAe = $(kX, iAe, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -61148,7 +61215,7 @@ var gZ = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), aAe = $(NX, rAe, (e, t) => {
+}), sAe = $(MX, aAe, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -61161,98 +61228,98 @@ var gZ = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), oAe = $([
- PU,
- iAe,
- RU,
+}), cAe = $([
+ NU,
+ oAe,
LU,
+ IU,
(e, t, n) => n
], (e, t, n, r, i) => {
var { padding: a } = r;
return i ? [a.left, n.width - a.right] : [e.left + t.left, e.left + e.width - t.right];
-}), sAe = $([
- PU,
- eW,
- aAe,
- RU,
+}), lAe = $([
+ NU,
+ $U,
+ sAe,
LU,
+ IU,
(e, t, n) => n
], (e, t, n, r, i, a) => {
var { padding: o } = i;
return a ? [r.height - o.bottom, o.top] : t === "horizontal" ? [e.top + e.height - n.bottom, e.top + n.top] : [e.top + n.top, e.top + e.height - n.bottom];
-}), TZ = (e, t, n, r) => {
+}), wZ = (e, t, n, r) => {
switch (t) {
- case "xAxis": return oAe(e, n, r);
- case "yAxis": return sAe(e, n, r);
- case "zAxis": return PX(e, n)?.range;
- case "angleAxis": return QK(e);
- case "radiusAxis": return $K(e, n);
+ case "xAxis": return cAe(e, n, r);
+ case "yAxis": return lAe(e, n, r);
+ case "zAxis": return NX(e, n)?.range;
+ case "angleAxis": return ZK(e);
+ case "radiusAxis": return QK(e, n);
default: return;
}
-}, EZ = $([FX, TZ], BK), DZ = $([
- FX,
- bZ,
- $([bZ, tAe], dq),
- EZ
-], SX), OZ = (e, t, n, r) => {
+}, TZ = $([PX, wZ], zK), EZ = $([
+ PX,
+ yZ,
+ $([yZ, rAe], uq),
+ TZ
+], xX), DZ = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
- if (mU(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
+ if (pU(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
-}, kZ = $([
- eW,
- JX,
- IX,
- tq
-], OZ), AZ = $([DZ], uq);
-$([DZ], Eke), $([DZ, Ike], wX), $([
- VX,
- sZ,
- tq
-], Vke);
-function jZ(e, t) {
+}, OZ = $([
+ $U,
+ qX,
+ FX,
+ eq
+], DZ), kZ = $([EZ], lq);
+$([EZ], Oke), $([EZ, Rke], CX), $([
+ BX,
+ oZ,
+ eq
+], Uke);
+function AZ(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var MZ = (e, t) => t, NZ = (e, t, n) => n, cAe = $(AU, MZ, NZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(jZ)), lAe = $(jU, MZ, NZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(jZ)), PZ = (e, t) => ({
+var jZ = (e, t) => t, MZ = (e, t, n) => n, uAe = $(kU, jZ, MZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(AZ)), dAe = $(AU, jZ, MZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(AZ)), NZ = (e, t) => ({
width: e.width,
height: t.height
-}), uAe = (e, t) => ({
+}), fAe = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), FZ = $(PU, AX, PZ), dAe = (e, t, n) => {
+}), PZ = $(NU, kX, NZ), pAe = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, fAe = (e, t, n) => {
+}, mAe = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, pAe = $(OU, PU, cAe, MZ, NZ, (e, t, n, r, i) => {
+}, hAe = $(DU, NU, uAe, jZ, MZ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = PZ(t, n);
- o ??= dAe(t, r, e);
+ var s = NZ(t, n);
+ o ??= pAe(t, r, e);
var c = r === "top" && !i || r === "bottom" && i;
a[n.id] = o - Number(c) * s.height, o += (c ? -1 : 1) * s.height;
}), a;
-}), mAe = $(DU, PU, lAe, MZ, NZ, (e, t, n, r, i) => {
+}), gAe = $(EU, NU, dAe, jZ, MZ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = uAe(t, n);
- o ??= fAe(t, r, e);
+ var s = fAe(t, n);
+ o ??= mAe(t, r, e);
var c = r === "left" && !i || r === "right" && i;
a[n.id] = o - Number(c) * s.width, o += (c ? -1 : 1) * s.width;
}), a;
-}), hAe = $([
- PU,
- AX,
+}), _Ae = $([
+ NU,
+ kX,
(e, t) => {
- var n = AX(e, t);
- if (n != null) return pAe(e, n.orientation, n.mirror);
+ var n = kX(e, t);
+ if (n != null) return hAe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -61266,12 +61333,12 @@ var MZ = (e, t) => t, NZ = (e, t, n) => n, cAe = $(AU, MZ, NZ, (e, t, n) => e.fi
y: i
};
}
-}), gAe = $([
- PU,
- NX,
+}), vAe = $([
+ NU,
+ MX,
(e, t) => {
- var n = NX(e, t);
- if (n != null) return mAe(e, n.orientation, n.mirror);
+ var n = MX(e, t);
+ if (n != null) return gAe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -61285,38 +61352,38 @@ var MZ = (e, t) => t, NZ = (e, t, n) => n, cAe = $(AU, MZ, NZ, (e, t, n) => e.fi
y: e.top
};
}
-}), IZ = $(PU, NX, (e, t) => ({
+}), FZ = $(NU, MX, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-})), LZ = (e, t, n) => {
+})), IZ = (e, t, n) => {
switch (t) {
- case "xAxis": return FZ(e, n).width;
- case "yAxis": return IZ(e, n).height;
+ case "xAxis": return PZ(e, n).width;
+ case "yAxis": return FZ(e, n).height;
default: return;
}
-}, RZ = (e, t, n, r) => {
+}, LZ = (e, t, n, r) => {
if (n != null) {
- var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = mU(e, r), c = t.map((e) => e.value);
- if (o && s && a === "category" && i && iB(c)) return c;
+ var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = pU(e, r), c = t.map((e) => e.value);
+ if (o && s && a === "category" && i && rB(c)) return c;
}
-}, zZ = $([
- eW,
- JX,
- FX,
- tq
-], RZ), BZ = $([
- eW,
- jke,
- bZ,
- AZ,
- zZ,
+}, RZ = $([
+ $U,
+ qX,
+ PX,
+ eq
+], LZ), zZ = $([
+ $U,
+ Nke,
+ yZ,
kZ,
- TZ,
- SZ,
- tq
+ RZ,
+ OZ,
+ wZ,
+ xZ,
+ eq
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
- var l = mU(e, c);
+ var l = pU(e, c);
return {
angle: t.angle,
interval: t.interval,
@@ -61338,107 +61405,107 @@ var MZ = (e, t) => t, NZ = (e, t, n) => n, cAe = $(AU, MZ, NZ, (e, t, n) => e.fi
scale: r
};
}
-}), VZ = (e, t, n, r, i, a, o, s, c) => {
+}), BZ = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
- var l = mU(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
- m = c === "angleAxis" && a != null && a.length >= 2 ? Qz(a[0] - a[1]) * 2 * m : m;
+ var l = pU(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
+ m = c === "angleAxis" && a != null && a.length >= 2 ? Zz(a[0] - a[1]) * 2 * m : m;
var h = d || i;
return h ? h.map((e, t) => {
var n = o ? o.indexOf(e) : e, i = r.map(n);
- return lU(i) ? {
+ return cU(i) ? {
index: t,
coordinate: i + m,
value: e,
offset: m
} : null;
- }).filter(lB) : l && s ? s.map((e, t) => {
+ }).filter(cB) : l && s ? s.map((e, t) => {
var n = r.map(e);
- return lU(n) ? {
+ return cU(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(lB) : r.ticks ? r.ticks(f).map((e, t) => {
+ }).filter(cB) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
- return lU(n) ? {
+ return cU(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(lB) : r.domain().map((e, t) => {
+ }).filter(cB) : r.domain().map((e, t) => {
var n = r.map(e);
- return lU(n) ? {
+ return cU(n) ? {
coordinate: n + m,
value: o ? o[e] : e,
index: t,
offset: m
} : null;
- }).filter(lB);
+ }).filter(cB);
}
-}, HZ = $([
- eW,
- IX,
- bZ,
- AZ,
- SZ,
- TZ,
- zZ,
+}, VZ = $([
+ $U,
+ FX,
+ yZ,
kZ,
- tq
-], VZ), UZ = (e, t, n, r, i, a, o) => {
+ xZ,
+ wZ,
+ RZ,
+ OZ,
+ eq
+], BZ), HZ = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
- var s = mU(e, o), { tickCount: c } = t, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? Qz(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
+ var s = pU(e, o), { tickCount: c } = t, l = 0;
+ return l = o === "angleAxis" && r?.length >= 2 ? Zz(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
var r = n.map(e);
- return lU(r) ? {
+ return cU(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(lB) : n.ticks ? n.ticks(c).map((e, t) => {
+ }).filter(cB) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
- return lU(r) ? {
+ return cU(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(lB) : n.domain().map((e, t) => {
+ }).filter(cB) : n.domain().map((e, t) => {
var r = n.map(e);
- return lU(r) ? {
+ return cU(r) ? {
coordinate: r + l,
value: i ? i[e] : e,
index: t,
offset: l
} : null;
- }).filter(lB);
+ }).filter(cB);
}
-}, WZ = $([
- eW,
- IX,
- AZ,
- TZ,
- zZ,
+}, UZ = $([
+ $U,
+ FX,
kZ,
- tq
-], UZ), GZ = $(FX, AZ, (e, t) => {
- if (e != null && t != null) return EX(EX({}, e), {}, { scale: t });
+ wZ,
+ RZ,
+ OZ,
+ eq
+], HZ), WZ = $(PX, kZ, (e, t) => {
+ if (e != null && t != null) return TX(TX({}, e), {}, { scale: t });
});
-$((e, t, n) => PX(e, n), $([$([
- FX,
- bZ,
+$((e, t, n) => NX(e, n), $([$([
+ PX,
yZ,
- EZ
-], SX)], uq), (e, t) => {
- if (e != null && t != null) return EX(EX({}, e), {}, { scale: t });
+ vZ,
+ TZ
+], xX)], lq), (e, t) => {
+ if (e != null && t != null) return TX(TX({}, e), {}, { scale: t });
});
-var _Ae = $([
- eW,
- AU,
- jU
+var yAe = $([
+ $U,
+ kU,
+ AU
], (e, t, n) => {
switch (e) {
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
@@ -61460,41 +61527,41 @@ $([(e, t, n) => e.renderedTicks[t]?.[n]], (e) => {
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipEventType.js
-var KZ = (e) => e.options.defaultTooltipEventType, qZ = (e) => e.options.validateTooltipEventTypes;
-function JZ(e, t, n) {
+var GZ = (e) => e.options.defaultTooltipEventType, KZ = (e) => e.options.validateTooltipEventTypes;
+function qZ(e, t, n) {
if (e == null) return t;
var r = e ? "axis" : "item";
return n == null ? t : n.includes(r) ? r : t;
}
-function YZ(e, t) {
- return JZ(t, KZ(e), qZ(e));
+function JZ(e, t) {
+ return qZ(t, GZ(e), KZ(e));
}
-function vAe(e) {
- return Q((t) => YZ(t, e));
+function bAe(e) {
+ return Q((t) => JZ(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
-var XZ = (e, t) => {
+var YZ = (e, t) => {
var n, r = Number(t);
- if (!($z(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, yAe = (e) => e.tooltip.settings, ZZ = {
+ if (!(Qz(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
+}, xAe = (e) => e.tooltip.settings, XZ = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, QZ = PH({
+}, ZZ = NH({
name: "tooltip",
initialState: {
itemInteraction: {
- click: ZZ,
- hover: ZZ
+ click: XZ,
+ hover: XZ
},
axisInteraction: {
- click: ZZ,
- hover: ZZ
+ click: XZ,
+ hover: XZ
},
- keyboardInteraction: ZZ,
+ keyboardInteraction: XZ,
syncInteraction: {
active: !1,
index: null,
@@ -61516,23 +61583,23 @@ var XZ = (e, t) => {
reducers: {
addTooltipEntrySettings: {
reducer(e, t) {
- e.tooltipItemPayloads.push(GW(t.payload));
+ e.tooltipItemPayloads.push(WW(t.payload));
},
- prepare: AH()
+ prepare: kH()
},
replaceTooltipEntrySettings: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = xH(e).tooltipItemPayloads.indexOf(GW(n));
- i > -1 && (e.tooltipItemPayloads[i] = GW(r));
+ var { prev: n, next: r } = t.payload, i = bH(e).tooltipItemPayloads.indexOf(WW(n));
+ i > -1 && (e.tooltipItemPayloads[i] = WW(r));
},
- prepare: AH()
+ prepare: kH()
},
removeTooltipEntrySettings: {
reducer(e, t) {
- var n = xH(e).tooltipItemPayloads.indexOf(GW(t.payload));
+ var n = bH(e).tooltipItemPayloads.indexOf(WW(t.payload));
n > -1 && e.tooltipItemPayloads.splice(n, 1);
},
- prepare: AH()
+ prepare: kH()
},
setTooltipSettingsState(e, t) {
e.settings = t.payload;
@@ -61562,10 +61629,10 @@ var XZ = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: bAe, replaceTooltipEntrySettings: xAe, removeTooltipEntrySettings: SAe, setTooltipSettingsState: CAe, setActiveMouseOverItemIndex: $Z, mouseLeaveItem: wAe, mouseLeaveChart: eQ, setActiveClickItemIndex: TAe, setMouseOverAxisIndex: tQ, setMouseClickAxisIndex: EAe, setSyncInteraction: nQ, setKeyboardInteraction: rQ } = QZ.actions, DAe = QZ.reducer;
+}), { addTooltipEntrySettings: SAe, replaceTooltipEntrySettings: CAe, removeTooltipEntrySettings: wAe, setTooltipSettingsState: TAe, setActiveMouseOverItemIndex: QZ, mouseLeaveItem: EAe, mouseLeaveChart: $Z, setActiveClickItemIndex: DAe, setMouseOverAxisIndex: eQ, setMouseClickAxisIndex: OAe, setSyncInteraction: tQ, setKeyboardInteraction: nQ } = ZZ.actions, kAe = ZZ.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
-function iQ(e, t) {
+function rQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61575,30 +61642,30 @@ function iQ(e, t) {
}
return n;
}
-function aQ(e) {
+function iQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? iQ(Object(n), !0).forEach(function(t) {
- OAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : iQ(Object(n)).forEach(function(t) {
+ t % 2 ? rQ(Object(n), !0).forEach(function(t) {
+ AAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function OAe(e, t, n) {
- return (t = kAe(t)) in e ? Object.defineProperty(e, t, {
+function AAe(e, t, n) {
+ return (t = jAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function kAe(e) {
- var t = AAe(e, "string");
+function jAe(e) {
+ var t = MAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function AAe(e, t) {
+function MAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61608,22 +61675,22 @@ function AAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function jAe(e, t, n) {
+function NAe(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function MAe(e) {
+function PAe(e) {
return e.index != null;
}
-var oQ = (e, t, n, r) => {
- if (t == null) return ZZ;
- var i = jAe(e, t, n);
- if (i == null) return ZZ;
+var aQ = (e, t, n, r) => {
+ if (t == null) return XZ;
+ var i = NAe(e, t, n);
+ if (i == null) return XZ;
if (i.active) return i;
if (e.keyboardInteraction.active) return e.keyboardInteraction;
if (e.syncInteraction.active && e.syncInteraction.index != null) return e.syncInteraction;
var a = e.settings.active === !0;
- if (MAe(i)) {
- if (a) return aQ(aQ({}, i), {}, { active: !0 });
+ if (PAe(i)) {
+ if (a) return iQ(iQ({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
coordinate: void 0,
@@ -61631,11 +61698,11 @@ var oQ = (e, t, n, r) => {
index: r,
graphicalItemId: void 0
};
- return aQ(aQ({}, ZZ), {}, { coordinate: i.coordinate });
+ return iQ(iQ({}, XZ), {}, { coordinate: i.coordinate });
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function NAe(e) {
+function FAe(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -61644,25 +61711,25 @@ function NAe(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function PAe(e, t) {
- var n = NAe(e), r = t[0], i = t[1];
+function IAe(e, t) {
+ var n = FAe(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function FAe(e, t, n) {
+function LAe(e, t, n) {
if (n == null || t == null) return !0;
- var r = pU(e, t);
- return r == null || !hK(n) || PAe(r, n);
+ var r = fU(e, t);
+ return r == null || !mK(n) || IAe(r, n);
}
-var sQ = (e, t, n, r) => {
+var oQ = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
- if (!lU(a)) return i;
+ if (!cU(a)) return i;
var o = 0, s = Infinity;
t.length > 0 && (s = t.length - 1);
var c = Math.max(o, Math.min(a, s)), l = t[c];
- return l == null || FAe(l, n, r) ? String(c) : null;
-}, cQ = (e, t, n, r, i, a, o) => {
+ return l == null || LAe(l, n, r) ? String(c) : null;
+}, sQ = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
if (s != null) return s;
@@ -61678,7 +61745,7 @@ var sQ = (e, t, n, r) => {
};
}
}
-}, lQ = (e, t, n, r) => {
+}, cQ = (e, t, n, r) => {
if (t === "axis") return e.tooltipItemPayloads;
if (e.tooltipItemPayloads.length === 0) return [];
var i = n === "hover" ? e.itemInteraction.hover.graphicalItemId : e.itemInteraction.click.graphicalItemId;
@@ -61688,10 +61755,10 @@ var sQ = (e, t, n, r) => {
return a == null ? [] : [a];
}
return e.tooltipItemPayloads.filter((e) => e.settings?.graphicalItemId === i);
-}, uQ = (e) => e.options.tooltipPayloadSearcher, dQ = (e) => e.tooltip;
+}, lQ = (e) => e.options.tooltipPayloadSearcher, uQ = (e) => e.tooltip;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js
-function fQ(e, t) {
+function dQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61701,30 +61768,30 @@ function fQ(e, t) {
}
return n;
}
-function pQ(e) {
+function fQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? fQ(Object(n), !0).forEach(function(t) {
- IAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fQ(Object(n)).forEach(function(t) {
+ t % 2 ? dQ(Object(n), !0).forEach(function(t) {
+ RAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function IAe(e, t, n) {
- return (t = LAe(t)) in e ? Object.defineProperty(e, t, {
+function RAe(e, t, n) {
+ return (t = zAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LAe(e) {
- var t = RAe(e, "string");
+function zAe(e) {
+ var t = BAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function RAe(e, t) {
+function BAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61734,222 +61801,222 @@ function RAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function zAe(e) {
+function VAe(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function BAe(e) {
+function HAe(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function VAe(e) {
+function UAe(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
-function mQ(e) {
+function pQ(e) {
if (typeof e == "string") return e;
}
-function HAe(e) {
+function WAe(e) {
if (!(typeof e != "object" || !e)) return {
- name: "name" in e ? zAe(e.name) : void 0,
- unit: "unit" in e ? BAe(e.unit) : void 0,
- dataKey: "dataKey" in e ? VAe(e.dataKey) : void 0,
+ name: "name" in e ? VAe(e.name) : void 0,
+ unit: "unit" in e ? HAe(e.unit) : void 0,
+ dataKey: "dataKey" in e ? UAe(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
- color: "color" in e ? mQ(e.color) : void 0,
- fill: "fill" in e ? mQ(e.fill) : void 0
+ color: "color" in e ? pQ(e.color) : void 0,
+ fill: "fill" in e ? pQ(e.fill) : void 0
};
}
-function UAe(e, t) {
+function GAe(e, t) {
return e ?? t;
}
-var hQ = (e, t, n, r, i, a, o) => {
+var mQ = (e, t, n, r, i, a, o) => {
if (t != null && a != null) {
var { chartData: s, computedData: c, dataStartIndex: l, dataEndIndex: u } = n;
return e.reduce((e, n) => {
- var { dataDefinedOnItem: d, settings: f } = n, p = UAe(d, s), m = Array.isArray(p) ? cU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? oB(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = GAe(d, s), m = Array.isArray(p) ? sU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? aB(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = HAe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = pQ(pQ({}, f), {}, {
+ var n = WAe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = fQ(fQ({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
fill: n?.fill ?? f?.fill
});
- e.push(TU({
+ e.push(wU({
tooltipEntrySettings: o,
dataKey: i,
payload: a,
- value: pU(a, i),
+ value: fU(a, i),
name: r == null ? void 0 : String(r)
}));
- }) : e.push(TU({
+ }) : e.push(wU({
tooltipEntrySettings: f,
dataKey: h,
payload: _,
- value: pU(_, h),
- name: pU(_, g) ?? f?.name
+ value: fU(_, h),
+ name: fU(_, g) ?? f?.name
})), e;
}, []);
}
-}, gQ = $([
- $X,
- LX,
- NK
-], CX), _Q = $([
+}, hQ = $([
+ QX,
+ IX,
+ MK
+], SX), gQ = $([
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
- $X,
- $([cq, lq], RX)
-], BX, { memoizeOptions: { resultEqualityCheck: sq } }), WAe = $([_Q], (e) => e.filter(aq)), vQ = $([$([_Q], WX, { memoizeOptions: { resultEqualityCheck: sq } }), dK], GX), GAe = $([
- WAe,
- dK,
- $X
-], iq), yQ = $([
- vQ,
- $X,
- _Q
-], qX), bQ = $([$X], iZ), xQ = $([bQ, $([$X], (e) => e.allowDataOverflow)], _K), KAe = $([
+ QX,
+ $([sq, cq], LX)
+], zX, { memoizeOptions: { resultEqualityCheck: oq } }), KAe = $([gQ], (e) => e.filter(iq)), _Q = $([$([gQ], UX, { memoizeOptions: { resultEqualityCheck: oq } }), uK], WX), qAe = $([
+ KAe,
+ uK,
+ QX
+], rq), vQ = $([
+ _Q,
+ QX,
+ gQ
+], KX), yQ = $([QX], rZ), bQ = $([yQ, $([QX], (e) => e.allowDataOverflow)], gK), JAe = $([
$([
- GAe,
- $([_Q], (e) => e.filter(aq)),
- jK,
- MK
- ], tZ),
- dK,
- cq,
- xQ
-], rZ), qAe = $([
- vQ,
- $X,
- $([_Q], UX),
- sZ,
+ qAe,
+ $([gQ], (e) => e.filter(iq)),
+ AK,
+ jK
+ ], eZ),
+ uK,
+ sq,
+ bQ
+], nZ), YAe = $([
+ _Q,
+ QX,
+ $([gQ], HX),
+ oZ,
+ sq
+], cZ, { memoizeOptions: { resultEqualityCheck: aq } }), XAe = $([$([
+ lZ,
+ sq,
cq
-], lZ, { memoizeOptions: { resultEqualityCheck: oq } }), JAe = $([$([
- uZ,
- cq,
- lq
-], dZ), cq], mZ), YAe = $([$([
- fZ,
- cq,
- lq
-], dZ), cq], hZ), SQ = $([
- $X,
- eW,
+], uZ), sq], pZ), ZAe = $([$([
+ dZ,
+ sq,
+ cq
+], uZ), sq], mZ), xQ = $([
+ QX,
+ $U,
+ _Q,
vQ,
- yQ,
- jK,
- cq,
+ AK,
+ sq,
$([
- $X,
+ QX,
+ yQ,
bQ,
- xQ,
- KAe,
- qAe,
+ JAe,
+ YAe,
$([
- JAe,
+ XAe,
$([$([
- pZ,
- cq,
- lq
- ], dZ), cq], gZ),
- YAe
- ], cZ),
- eW,
- cq
- ], _Z)
-], vZ), XAe = $([
- $X,
- SQ,
+ fZ,
+ sq,
+ cq
+ ], uZ), sq], hZ),
+ ZAe
+ ], sZ),
+ $U,
+ sq
+ ], gZ)
+], _Z), QAe = $([
+ QX,
+ xQ,
$([
- SQ,
- $X,
- gQ
- ], xZ),
- cq
-], CZ), CQ = (e) => TZ(e, cq(e), lq(e), !1), wQ = $([$X, CQ], BK), TQ = $([$([
- $X,
- gQ,
- XAe,
- wQ
-], SX)], uq), EQ = $([
- eW,
- $X,
- gQ,
- TQ,
- CQ,
+ xQ,
+ QX,
+ hQ
+ ], bZ),
+ sq
+], SZ), SQ = (e) => wZ(e, sq(e), cq(e), !1), CQ = $([QX, SQ], zK), wQ = $([$([
+ QX,
+ hQ,
+ QAe,
+ CQ
+], xX)], lq), TQ = $([
+ $U,
+ QX,
+ hQ,
+ wQ,
+ SQ,
$([
- eW,
- yQ,
- $X,
- cq
- ], RZ),
+ $U,
+ vQ,
+ QX,
+ sq
+ ], LZ),
$([
- eW,
- yQ,
- $X,
- cq
- ], OZ),
- cq
+ $U,
+ vQ,
+ QX,
+ sq
+ ], DZ),
+ sq
], (e, t, n, r, i, a, o, s) => {
if (t) {
- var { type: c } = t, l = mU(e, s);
+ var { type: c } = t, l = pU(e, s);
if (r) {
var u = n === "scaleBand" && r.bandwidth ? r.bandwidth() / 2 : 2, d = c === "category" && r.bandwidth ? r.bandwidth() / u : 0;
- return d = s === "angleAxis" && i != null && i?.length >= 2 ? Qz(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? Zz(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
- return lU(n) ? {
+ return cU(n) ? {
coordinate: n + d,
value: e,
index: t,
offset: d
} : null;
- }).filter(lB) : r.domain().map((e, t) => {
+ }).filter(cB) : r.domain().map((e, t) => {
var n = r.map(e);
- return lU(n) ? {
+ return cU(n) ? {
coordinate: n + d,
value: a ? a[e] : e,
index: t,
offset: d
} : null;
- }).filter(lB);
+ }).filter(cB);
}
}
-}), DQ = $([
+}), EQ = $([
+ GZ,
KZ,
- qZ,
- yAe
-], (e, t, n) => JZ(n.shared, e, t)), OQ = (e) => e.tooltip.settings.trigger, kQ = (e) => e.tooltip.settings.defaultIndex, AQ = $([
- dQ,
+ xAe
+], (e, t, n) => qZ(n.shared, e, t)), DQ = (e) => e.tooltip.settings.trigger, OQ = (e) => e.tooltip.settings.defaultIndex, kQ = $([
+ uQ,
+ EQ,
DQ,
- OQ,
- kQ
-], oQ), jQ = $([
- AQ,
- vQ,
- eZ,
- SQ
-], sQ), MQ = $([EQ, jQ], XZ), NQ = $([AQ], (e) => {
+ OQ
+], aQ), AQ = $([
+ kQ,
+ _Q,
+ $X,
+ xQ
+], oQ), jQ = $([TQ, AQ], YZ), MQ = $([kQ], (e) => {
if (e) return e.dataKey;
-}), ZAe = $([AQ], (e) => {
+}), $Ae = $([kQ], (e) => {
if (e) return e.graphicalItemId;
-}), PQ = $([
- dQ,
+}), NQ = $([
+ uQ,
+ EQ,
DQ,
- OQ,
- kQ
-], lQ), QAe = $([AQ, $([
+ OQ
+], cQ), eje = $([kQ, $([
+ EU,
DU,
- OU,
- eW,
- PU,
- EQ,
- kQ,
- PQ
-], cQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), $Ae = $([AQ], (e) => e?.active ?? !1), eje = $([$([
- PQ,
+ $U,
+ NU,
+ TQ,
+ OQ,
+ NQ
+], sQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), tje = $([kQ], (e) => e?.active ?? !1), nje = $([$([
+ NQ,
+ AQ,
+ uK,
+ $X,
jQ,
- dK,
- eZ,
- MQ,
- uQ,
- DQ
-], hQ)], (e) => {
+ lQ,
+ EQ
+], mQ)], (e) => {
if (e != null) {
var t = e.map((e) => e.payload).filter((e) => e != null);
return Array.from(new Set(t));
@@ -61957,7 +62024,7 @@ var hQ = (e, t, n, r, i, a, o) => {
});
//#endregion
//#region node_modules/recharts/es6/context/useTooltipAxis.js
-function FQ(e, t) {
+function PQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61967,30 +62034,30 @@ function FQ(e, t) {
}
return n;
}
-function IQ(e) {
+function FQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? FQ(Object(n), !0).forEach(function(t) {
- tje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FQ(Object(n)).forEach(function(t) {
+ t % 2 ? PQ(Object(n), !0).forEach(function(t) {
+ rje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function tje(e, t, n) {
- return (t = nje(t)) in e ? Object.defineProperty(e, t, {
+function rje(e, t, n) {
+ return (t = ije(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nje(e) {
- var t = rje(e, "string");
+function ije(e) {
+ var t = aje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rje(e, t) {
+function aje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62000,13 +62067,13 @@ function rje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ije = () => Q($X), aje = () => {
- var e = ije(), t = Q(EQ), n = Q(TQ);
- return wU(!e || !n ? void 0 : IQ(IQ({}, e), {}, { scale: n }), t);
+var oje = () => Q(QX), sje = () => {
+ var e = oje(), t = Q(TQ), n = Q(wQ);
+ return CU(!e || !n ? void 0 : FQ(FQ({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
-function LQ(e, t) {
+function IQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62016,30 +62083,30 @@ function LQ(e, t) {
}
return n;
}
-function RQ(e) {
+function LQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? LQ(Object(n), !0).forEach(function(t) {
- oje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : LQ(Object(n)).forEach(function(t) {
+ t % 2 ? IQ(Object(n), !0).forEach(function(t) {
+ cje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : IQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oje(e, t, n) {
- return (t = sje(t)) in e ? Object.defineProperty(e, t, {
+function cje(e, t, n) {
+ return (t = lje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sje(e) {
- var t = cje(e, "string");
+function lje(e) {
+ var t = uje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cje(e, t) {
+function uje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62049,7 +62116,7 @@ function cje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var lje = (e, t, n, r) => {
+var dje = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -62065,18 +62132,18 @@ var lje = (e, t, n, r) => {
x: 0,
y: 0
};
-}, uje = (e, t, n, r) => {
+}, fje = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "centric") {
var a = i.coordinate, { radius: o } = r;
- return RQ(RQ(RQ({}, r), nK(r.cx, r.cy, o, a)), {}, {
+ return LQ(LQ(LQ({}, r), tK(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, { angle: c } = r;
- return RQ(RQ(RQ({}, r), nK(r.cx, r.cy, s, c)), {}, {
+ return LQ(LQ(LQ({}, r), tK(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -62095,19 +62162,19 @@ var lje = (e, t, n, r) => {
y: 0
};
};
-function dje(e, t) {
+function pje(e, t) {
var { relativeX: n, relativeY: r } = e;
return n >= t.left && n <= t.left + t.width && r >= t.top && r <= t.top + t.height;
}
-var zQ = (e, t, n, r, i) => {
+var RQ = (e, t, n, r, i) => {
var a = t?.length ?? 0;
if (a <= 1 || e == null) return 0;
if (r === "angleAxis" && i != null && Math.abs(Math.abs(i[1] - i[0]) - 360) <= 1e-6) for (var o = 0; o < a; o++) {
var s = o > 0 ? n[o - 1]?.coordinate : n[a - 1]?.coordinate, c = n[o]?.coordinate, l = o >= a - 1 ? n[0]?.coordinate : n[o + 1]?.coordinate, u = void 0;
if (s != null && c != null && l != null) {
- if (Qz(c - s) !== Qz(l - c)) {
+ if (Zz(c - s) !== Zz(l - c)) {
var d = [];
- if (Qz(l - c) === Qz(i[1] - i[0])) {
+ if (Zz(l - c) === Zz(i[1] - i[0])) {
u = l;
var f = c + i[1] - i[0];
d[0] = Math.min(f, (f + s) / 2), d[1] = Math.max(f, (f + s) / 2);
@@ -62132,78 +62199,78 @@ var zQ = (e, t, n, r, i) => {
}
}
return -1;
-}, BQ = () => Q(NK), VQ = (e, t) => t, HQ = (e, t, n) => n, UQ = (e, t, n, r) => r, fje = $(EQ, (e) => tV(e, (e) => e.coordinate)), WQ = $([
- dQ,
+}, zQ = () => Q(MK), BQ = (e, t) => t, VQ = (e, t, n) => n, HQ = (e, t, n, r) => r, mje = $(TQ, (e) => eV(e, (e) => e.coordinate)), UQ = $([
+ uQ,
+ BQ,
VQ,
- HQ,
- UQ
-], oQ), GQ = $([
- WQ,
- vQ,
- eZ,
- SQ
-], sQ), pje = (e, t, n) => {
+ HQ
+], aQ), WQ = $([
+ UQ,
+ _Q,
+ $X,
+ xQ
+], oQ), hje = (e, t, n) => {
if (t != null) {
- var r = dQ(e);
+ var r = uQ(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
}
-}, KQ = $([
- dQ,
+}, GQ = $([
+ uQ,
+ BQ,
VQ,
- HQ,
- UQ
-], lQ), qQ = $([
+ HQ
+], cQ), KQ = $([
+ EU,
DU,
- OU,
- eW,
- PU,
- EQ,
- UQ,
- KQ
-], cQ), mje = $([WQ, qQ], (e, t) => e.coordinate ?? t), JQ = $([EQ, GQ], XZ), hje = $([
- KQ,
+ $U,
+ NU,
+ TQ,
+ HQ,
+ GQ
+], sQ), gje = $([UQ, KQ], (e, t) => e.coordinate ?? t), qQ = $([TQ, WQ], YZ), _je = $([
GQ,
- dK,
- eZ,
- JQ,
- uQ,
- VQ
-], hQ), gje = $([WQ, GQ], (e, t) => ({
+ WQ,
+ uK,
+ $X,
+ qQ,
+ lQ,
+ BQ
+], mQ), vje = $([UQ, WQ], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), _je = (e, t, n, r, i, a, o) => {
- if (!(!e || !n || !r || !i) && dje(e, o)) {
- var s = zQ(HCe(e, t), a, i, n, r), c = lje(t, i, s, e);
+})), yje = (e, t, n, r, i, a, o) => {
+ if (!(!e || !n || !r || !i) && pje(e, o)) {
+ var s = RQ(WCe(e, t), a, i, n, r), c = dje(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, vje = (e, t, n, r, i, a, o) => {
+}, bje = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = MEe(e, n);
+ var s = PEe(e, n);
if (s) {
- var c = zQ(UCe(s, t), o, a, r, i), l = uje(t, a, c, s);
+ var c = RQ(GCe(s, t), o, a, r, i), l = fje(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, yje = (e, t, n, r, i, a, o, s) => {
- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? _je(e, t, r, i, a, o, s) : vje(e, t, n, r, i, a, o);
-}, bje = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, xje = (e, t, n, r, i, a, o, s) => {
+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? yje(e, t, r, i, a, o, s) : bje(e, t, n, r, i, a, o);
+}, Sje = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
if (t != null) {
var r = e[t];
if (r != null) return n ? r.panoramaElement : r.element;
}
-}), xje = $((e) => e.zIndex.zIndexMap, (e) => {
- var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(LK));
+}), Cje = $((e) => e.zIndex.zIndexMap, (e) => {
+ var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(IK));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: $Ee } });
+}, { memoizeOptions: { resultEqualityCheck: tDe } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
-function YQ(e, t) {
+function JQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62213,30 +62280,30 @@ function YQ(e, t) {
}
return n;
}
-function XQ(e) {
+function YQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? YQ(Object(n), !0).forEach(function(t) {
- Sje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : YQ(Object(n)).forEach(function(t) {
+ t % 2 ? JQ(Object(n), !0).forEach(function(t) {
+ wje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : JQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Sje(e, t, n) {
- return (t = Cje(t)) in e ? Object.defineProperty(e, t, {
+function wje(e, t, n) {
+ return (t = Tje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Cje(e) {
- var t = wje(e, "string");
+function Tje(e) {
+ var t = Eje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wje(e, t) {
+function Eje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62246,17 +62313,17 @@ function wje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Tje = { zIndexMap: Object.values(LK).reduce((e, t) => XQ(XQ({}, e), {}, { [t]: {
+var Dje = { zIndexMap: Object.values(IK).reduce((e, t) => YQ(YQ({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, Eje = new Set(Object.values(LK));
-function Dje(e) {
- return Eje.has(e);
+} }), {}) }, Oje = new Set(Object.values(IK));
+function kje(e) {
+ return Oje.has(e);
}
-var ZQ = PH({
+var XQ = NH({
name: "zIndex",
- initialState: Tje,
+ initialState: Dje,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -62267,61 +62334,61 @@ var ZQ = PH({
panoramaElement: void 0
};
},
- prepare: AH()
+ prepare: kH()
},
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !Dje(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !kje(n) && delete e.zIndexMap[n]);
},
- prepare: AH()
+ prepare: kH()
},
registerZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n, element: r, isPanorama: i } = t.payload;
- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = GW(r) : e.zIndexMap[n].element = GW(r) : e.zIndexMap[n] = {
+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = WW(r) : e.zIndexMap[n].element = WW(r) : e.zIndexMap[n] = {
consumers: 0,
- element: i ? void 0 : GW(r),
- panoramaElement: i ? GW(r) : void 0
+ element: i ? void 0 : WW(r),
+ panoramaElement: i ? WW(r) : void 0
};
},
- prepare: AH()
+ prepare: kH()
},
unregisterZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
e.zIndexMap[n] && (t.payload.isPanorama ? e.zIndexMap[n].panoramaElement = void 0 : e.zIndexMap[n].element = void 0);
},
- prepare: AH()
+ prepare: kH()
}
}
-}), { registerZIndexPortal: Oje, unregisterZIndexPortal: kje, registerZIndexPortalElement: Aje, unregisterZIndexPortalElement: jje } = ZQ.actions, Mje = ZQ.reducer;
+}), { registerZIndexPortal: Aje, unregisterZIndexPortal: jje, registerZIndexPortalElement: Mje, unregisterZIndexPortalElement: Nje } = XQ.actions, Pje = XQ.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
-function QQ(e) {
- var { zIndex: t, children: n } = e, r = vwe() && t !== void 0 && t !== 0, i = IU(), a = qB();
- (0, R.useLayoutEffect)(() => r ? (a(Oje({ zIndex: t })), () => {
- a(kje({ zIndex: t }));
- }) : uB, [
+function ZQ(e) {
+ var { zIndex: t, children: n } = e, r = bwe() && t !== void 0 && t !== 0, i = FU(), a = KB();
+ (0, R.useLayoutEffect)(() => r ? (a(Aje({ zIndex: t })), () => {
+ a(jje({ zIndex: t }));
+ }) : lB, [
a,
t,
r
]);
- var o = Q((e) => bje(e, t, i));
+ var o = Q((e) => Sje(e, t, i));
return r ? o ? /*#__PURE__*/ (0, rp.createPortal)(n, o) : null : n;
}
//#endregion
//#region node_modules/recharts/es6/component/Cursor.js
-function $Q() {
- return $Q = Object.assign ? Object.assign.bind() : function(e) {
+function QQ() {
+ return QQ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, $Q.apply(null, arguments);
+ }, QQ.apply(null, arguments);
}
-function e$(e, t) {
+function $Q(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62331,30 +62398,30 @@ function e$(e, t) {
}
return n;
}
-function t$(e) {
+function e$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? e$(Object(n), !0).forEach(function(t) {
- Nje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : e$(Object(n)).forEach(function(t) {
+ t % 2 ? $Q(Object(n), !0).forEach(function(t) {
+ Fje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $Q(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Nje(e, t, n) {
- return (t = Pje(t)) in e ? Object.defineProperty(e, t, {
+function Fje(e, t, n) {
+ return (t = Ije(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Pje(e) {
- var t = Fje(e, "string");
+function Ije(e) {
+ var t = Lje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Fje(e, t) {
+function Lje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62364,18 +62431,18 @@ function Fje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Ije(e) {
+function Rje(e) {
var { cursor: t, cursorComp: n, cursorProps: r } = e;
return /*#__PURE__*/ (0, R.isValidElement)(t) ? /*#__PURE__*/ (0, R.cloneElement)(t, r) : /*#__PURE__*/ (0, R.createElement)(n, r);
}
-function Lje(e) {
+function zje(e) {
var { coordinate: t, payload: n, index: r, offset: i, tooltipAxisBandSize: a, layout: o, cursor: s, tooltipEventType: c, chartName: l } = e, u = t, d = n, f = r;
if (!s || !u || l !== "ScatterChart" && c !== "axis") return null;
var p, m, h;
- if (l === "ScatterChart") p = u, m = ITe, h = LK.cursorLine;
- else if (l === "BarChart") p = LTe(o, u, i, a), m = ZG, h = LK.cursorRectangle;
- else if (o === "radial" && gB(u)) {
- var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = rK(u);
+ if (l === "ScatterChart") p = u, m = RTe, h = IK.cursorLine;
+ else if (l === "BarChart") p = zTe(o, u, i, a), m = XG, h = IK.cursorRectangle;
+ else if (o === "radial" && hB(u)) {
+ var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = nK(u);
p = {
cx: g,
cy: _,
@@ -62383,25 +62450,25 @@ function Lje(e) {
endAngle: b,
innerRadius: v,
outerRadius: v
- }, m = cK, h = LK.cursorLine;
- } else p = { points: UEe(o, u, i) }, m = wG, h = LK.cursorLine;
- var x = typeof s == "object" && "className" in s ? s.className : void 0, S = t$(t$(t$(t$({
+ }, m = sK, h = IK.cursorLine;
+ } else p = { points: GEe(o, u, i) }, m = CG, h = IK.cursorLine;
+ var x = typeof s == "object" && "className" in s ? s.className : void 0, S = e$(e$(e$(e$({
stroke: "#ccc",
pointerEvents: "none"
- }, i), p), GR(s)), {}, {
+ }, i), p), WR(s)), {}, {
payload: d,
payloadIndex: f,
className: Sh("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ R.createElement(QQ, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ R.createElement(Ije, {
+ return /*#__PURE__*/ R.createElement(ZQ, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ R.createElement(Rje, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function Rje(e) {
- var t = aje(), n = ZU(), r = tW(), i = BQ();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ R.createElement(Lje, $Q({}, e, {
+function Bje(e) {
+ var t = sje(), n = XU(), r = eW(), i = zQ();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ R.createElement(zje, QQ({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -62410,7 +62477,7 @@ function Rje(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var n$ = /*#__PURE__*/ (0, R.createContext)(null), zje = () => (0, R.useContext)(n$), Bje = (/* @__PURE__ */ Dt((/* @__PURE__ */ Ct(((e, t) => {
+var t$ = /*#__PURE__*/ (0, R.createContext)(null), Vje = () => (0, R.useContext)(t$), Hje = (/* @__PURE__ */ Dt((/* @__PURE__ */ Ct(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -62497,12 +62564,12 @@ var n$ = /*#__PURE__*/ (0, R.createContext)(null), zje = () => (0, R.useContext)
var t;
return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);
-})))(), 1)).default, r$ = new Bje(), i$ = "recharts.syncEvent.tooltip", a$ = "recharts.syncEvent.brush", o$ = (e, t) => {
+})))(), 1)).default, n$ = new Hje(), r$ = "recharts.syncEvent.tooltip", i$ = "recharts.syncEvent.brush", a$ = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
- if (!$z(n)) return e[n];
+ if (!Qz(n)) return e[n];
}
-}, s$ = PH({
+}, o$ = NH({
name: "options",
initialState: {
chartName: "",
@@ -62513,13 +62580,13 @@ var n$ = /*#__PURE__*/ (0, R.createContext)(null), zje = () => (0, R.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), Vje = s$.reducer, { createEventEmitter: Hje } = s$.actions;
+}), Uje = o$.reducer, { createEventEmitter: Wje } = o$.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function Uje(e) {
+function Gje(e) {
return e.tooltip.syncInteraction;
}
-var c$ = PH({
+var s$ = NH({
name: "chartData",
initialState: {
chartData: void 0,
@@ -62529,7 +62596,7 @@ var c$ = PH({
},
reducers: {
setChartData(e, t) {
- if (e.chartData = GW(t.payload), t.payload == null) {
+ if (e.chartData = WW(t.payload), t.payload == null) {
e.dataStartIndex = 0, e.dataEndIndex = 0;
return;
}
@@ -62543,8 +62610,8 @@ var c$ = PH({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: l$, setDataStartEndIndexes: Wje, setComputedData: Gje } = c$.actions, Kje = c$.reducer, qje = ["x", "y"];
-function u$(e, t) {
+}), { setChartData: c$, setDataStartEndIndexes: Kje, setComputedData: qje } = s$.actions, Jje = s$.reducer, Yje = ["x", "y"];
+function l$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62554,30 +62621,30 @@ function u$(e, t) {
}
return n;
}
-function d$(e) {
+function u$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? u$(Object(n), !0).forEach(function(t) {
- Jje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u$(Object(n)).forEach(function(t) {
+ t % 2 ? l$(Object(n), !0).forEach(function(t) {
+ Xje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Jje(e, t, n) {
- return (t = Yje(t)) in e ? Object.defineProperty(e, t, {
+function Xje(e, t, n) {
+ return (t = Zje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Yje(e) {
- var t = Xje(e, "string");
+function Zje(e) {
+ var t = Qje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Xje(e, t) {
+function Qje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62587,16 +62654,16 @@ function Xje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Zje(e, t) {
+function $je(e, t) {
if (e == null) return {};
- var n, r, i = Qje(e, t);
+ var n, r, i = eMe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Qje(e, t) {
+function eMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62605,20 +62672,20 @@ function Qje(e, t) {
}
return n;
}
-function $je() {
- var e = Q(PK), t = Q(IK), n = qB(), r = Q(FK), i = Q(EQ), a = tW(), o = XU(), s = Q((e) => e.rootProps.className);
+function tMe() {
+ var e = Q(NK), t = Q(FK), n = KB(), r = Q(PK), i = Q(TQ), a = eW(), o = YU(), s = Q((e) => e.rootProps.className);
(0, R.useEffect)(() => {
- if (e == null) return uB;
+ if (e == null) return lB;
var s = (s, c, l) => {
if (t !== l && e === s) {
if (r === "index") {
var u;
if (o && c != null && (u = c.payload) != null && u.coordinate && c.payload.sourceViewBox) {
- var d = c.payload.coordinate, { x: f, y: p } = d, m = Zje(d, qje), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = d$(d$({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = $je(d, Yje), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = u$(u$({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
- n(d$(d$({}, c), {}, { payload: d$(d$({}, c.payload), {}, { coordinate: y }) }));
+ n(u$(u$({}, c), {}, { payload: u$(u$({}, c.payload), {}, { coordinate: y }) }));
} else n(c);
return;
}
@@ -62634,7 +62701,7 @@ function $je() {
})] : r === "value" && (b = i.find((e) => String(e.value) === c.payload.label));
var { coordinate: x } = c.payload;
if (b == null || c.payload.active === !1 || x == null || o == null) {
- n(nQ({
+ n(tQ({
active: !1,
coordinate: void 0,
dataKey: void 0,
@@ -62649,7 +62716,7 @@ function $je() {
x: a === "horizontal" ? b.coordinate : w,
y: a === "horizontal" ? T : b.coordinate
};
- n(nQ({
+ n(tQ({
active: c.payload.active,
coordinate: E,
dataKey: c.payload.dataKey,
@@ -62661,8 +62728,8 @@ function $je() {
}
}
};
- return r$.on(i$, s), () => {
- r$.off(i$, s);
+ return n$.on(r$, s), () => {
+ n$.off(r$, s);
};
}, [
s,
@@ -62675,15 +62742,15 @@ function $je() {
o
]);
}
-function eMe() {
- var e = Q(PK), t = Q(IK), n = qB();
+function nMe() {
+ var e = Q(NK), t = Q(FK), n = KB();
(0, R.useEffect)(() => {
- if (e == null) return uB;
+ if (e == null) return lB;
var r = (r, i, a) => {
- t !== a && e === r && n(Wje(i));
+ t !== a && e === r && n(Kje(i));
};
- return r$.on(a$, r), () => {
- r$.off(a$, r);
+ return n$.on(i$, r), () => {
+ n$.off(i$, r);
};
}, [
n,
@@ -62691,17 +62758,17 @@ function eMe() {
e
]);
}
-function tMe() {
- var e = qB();
+function rMe() {
+ var e = KB();
(0, R.useEffect)(() => {
- e(Hje());
- }, [e]), $je(), eMe();
+ e(Wje());
+ }, [e]), tMe(), nMe();
}
-function nMe(e, t, n, r, i, a) {
- var o = Q((n) => pje(n, e, t)), s = Q(ZAe), c = Q(IK), l = Q(PK), u = Q(FK), d = Q(Uje)?.active, f = XU();
+function iMe(e, t, n, r, i, a) {
+ var o = Q((n) => hje(n, e, t)), s = Q($Ae), c = Q(FK), l = Q(NK), u = Q(PK), d = Q(Gje)?.active, f = YU();
(0, R.useEffect)(() => {
if (!d && l != null && c != null) {
- var e = nQ({
+ var e = tQ({
active: a,
coordinate: n,
dataKey: o,
@@ -62710,7 +62777,7 @@ function nMe(e, t, n, r, i, a) {
sourceViewBox: f,
graphicalItemId: s
});
- r$.emit(i$, l, e, c);
+ n$.emit(r$, l, e, c);
}
}, [
d,
@@ -62728,7 +62795,7 @@ function nMe(e, t, n, r, i, a) {
}
//#endregion
//#region node_modules/recharts/es6/component/Tooltip.js
-function f$(e, t) {
+function d$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62738,30 +62805,30 @@ function f$(e, t) {
}
return n;
}
-function p$(e) {
+function f$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? f$(Object(n), !0).forEach(function(t) {
- rMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f$(Object(n)).forEach(function(t) {
+ t % 2 ? d$(Object(n), !0).forEach(function(t) {
+ aMe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : d$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rMe(e, t, n) {
- return (t = iMe(t)) in e ? Object.defineProperty(e, t, {
+function aMe(e, t, n) {
+ return (t = oMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function iMe(e) {
- var t = aMe(e, "string");
+function oMe(e) {
+ var t = sMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function aMe(e, t) {
+function sMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62771,13 +62838,13 @@ function aMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function oMe(e) {
+function cMe(e) {
return e.dataKey;
}
-function sMe(e, t) {
- return /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ R.createElement(e, t) : /*#__PURE__*/ R.createElement(fTe, t);
+function lMe(e, t) {
+ return /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ R.createElement(e, t) : /*#__PURE__*/ R.createElement(mTe, t);
}
-var m$ = [], cMe = {
+var p$ = [], uMe = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -62803,10 +62870,10 @@ var m$ = [], cMe = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function lMe(e) {
- var t = bB(e, cMe), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = qB(), S = typeof v == "number" ? String(v) : v;
+function dMe(e) {
+ var t = yB(e, uMe), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = KB(), S = typeof v == "number" ? String(v) : v;
(0, R.useEffect)(() => {
- x(CAe({
+ x(TAe({
shared: g,
trigger: _,
axisId: b,
@@ -62821,20 +62888,20 @@ function lMe(e) {
n,
S
]);
- var C = XU(), w = mG(), T = vAe(g), { activeIndex: E, isActive: D } = Q((e) => gje(e, T, _, S)) ?? {}, O = Q((e) => hje(e, T, _, S)), k = Q((e) => JQ(e, T, _, S)), A = Q((e) => mje(e, T, _, S)), j = O, M = zje(), N = n ?? D ?? !1, [ee, te] = iV([j, N]), P = T === "axis" ? k : void 0;
- nMe(T, _, A, P, E, N);
+ var C = YU(), w = pG(), T = bAe(g), { activeIndex: E, isActive: D } = Q((e) => vje(e, T, _, S)) ?? {}, O = Q((e) => _je(e, T, _, S)), k = Q((e) => qQ(e, T, _, S)), A = Q((e) => gje(e, T, _, S)), j = O, M = Vje(), N = n ?? D ?? !1, [ee, te] = rV([j, N]), P = T === "axis" ? k : void 0;
+ iMe(T, _, A, P, E, N);
var F = y ?? M;
if (F == null || C == null || T == null) return null;
- var ne = j ?? m$;
- N || (ne = m$), s && ne.length && (ne = GB(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, oMe));
- var re = ne.length > 0, ie = p$(p$({}, t), {}, {
+ var ne = j ?? p$;
+ N || (ne = p$), s && ne.length && (ne = WB(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, cMe));
+ var re = ne.length > 0, ie = f$(f$({}, t), {}, {
payload: ne,
label: P,
active: N,
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), ae = /*#__PURE__*/ R.createElement(STe, {
+ }), ae = /*#__PURE__*/ R.createElement(wTe, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -62851,8 +62918,8 @@ function lMe(e) {
lastBoundingBox: ee,
innerRef: te,
hasPortalFromProps: !!y
- }, sMe(o, ie));
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ (0, rp.createPortal)(ae, F), N && /*#__PURE__*/ R.createElement(Rje, {
+ }, lMe(o, ie));
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ (0, rp.createPortal)(ae, F), N && /*#__PURE__*/ R.createElement(Bje, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -62862,23 +62929,23 @@ function lMe(e) {
}
//#endregion
//#region node_modules/recharts/es6/component/Cell.js
-var h$ = (e) => null;
-h$.displayName = "Cell";
+var m$ = (e) => null;
+m$.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function uMe(e, t, n) {
- return (t = dMe(t)) in e ? Object.defineProperty(e, t, {
+function fMe(e, t, n) {
+ return (t = pMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dMe(e) {
- var t = fMe(e, "string");
+function pMe(e) {
+ var t = mMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fMe(e, t) {
+function mMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62888,9 +62955,9 @@ function fMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var pMe = class {
+var hMe = class {
constructor(e) {
- uMe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ fMe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -62913,7 +62980,7 @@ var pMe = class {
};
//#endregion
//#region node_modules/recharts/es6/util/DOMUtils.js
-function g$(e, t) {
+function h$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62923,30 +62990,30 @@ function g$(e, t) {
}
return n;
}
-function mMe(e) {
+function gMe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? g$(Object(n), !0).forEach(function(t) {
- hMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g$(Object(n)).forEach(function(t) {
+ t % 2 ? h$(Object(n), !0).forEach(function(t) {
+ _Me(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hMe(e, t, n) {
- return (t = gMe(t)) in e ? Object.defineProperty(e, t, {
+function _Me(e, t, n) {
+ return (t = vMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gMe(e) {
- var t = _Me(e, "string");
+function vMe(e) {
+ var t = yMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _Me(e, t) {
+function yMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62956,10 +63023,10 @@ function _Me(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var _$ = mMe({}, {
+var g$ = gMe({}, {
cacheSize: 2e3,
enableCache: !0
-}), v$ = new pMe(_$.cacheSize), vMe = {
+}), _$ = new hMe(g$.cacheSize), bMe = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -62967,14 +63034,14 @@ var _$ = mMe({}, {
margin: 0,
border: "none",
whiteSpace: "pre"
-}, y$ = "recharts_measurement_span";
-function yMe(e, t) {
+}, v$ = "recharts_measurement_span";
+function xMe(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
-var b$ = (e, t) => {
+var y$ = (e, t) => {
try {
- var n = document.getElementById(y$);
- n || (n = document.createElement("span"), n.setAttribute("id", y$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, vMe, t), n.textContent = `${e}`;
+ var n = document.getElementById(v$);
+ n || (n = document.createElement("span"), n.setAttribute("id", v$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, bMe, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -62986,31 +63053,31 @@ var b$ = (e, t) => {
height: 0
};
}
-}, x$ = function(e) {
+}, b$ = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (e == null || uG.isSsr) return {
+ if (e == null || lG.isSsr) return {
width: 0,
height: 0
};
- if (!_$.enableCache) return b$(e, t);
- var n = yMe(e, t), r = v$.get(n);
+ if (!g$.enableCache) return y$(e, t);
+ var n = xMe(e, t), r = _$.get(n);
if (r) return r;
- var i = b$(e, t);
- return v$.set(n, i), i;
-}, S$;
-function bMe(e, t, n) {
- return (t = xMe(t)) in e ? Object.defineProperty(e, t, {
+ var i = y$(e, t);
+ return _$.set(n, i), i;
+}, x$;
+function SMe(e, t, n) {
+ return (t = CMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xMe(e) {
- var t = SMe(e, "string");
+function CMe(e) {
+ var t = wMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SMe(e, t) {
+function wMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63020,7 +63087,7 @@ function SMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var C$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, w$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, CMe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, wMe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, TMe = {
+var S$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, C$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, TMe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, EMe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, DMe = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -63028,7 +63095,7 @@ var C$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, w$ = /(
in: 96,
Q: 96 / 101.6,
px: 1
-}, EMe = [
+}, OMe = [
"cm",
"mm",
"pt",
@@ -63037,20 +63104,20 @@ var C$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, w$ = /(
"Q",
"px"
];
-function DMe(e) {
- return EMe.includes(e);
+function kMe(e) {
+ return OMe.includes(e);
}
-var T$ = "NaN";
-function OMe(e, t) {
- return e * TMe[t];
+var w$ = "NaN";
+function AMe(e, t) {
+ return e * DMe[t];
}
-var E$ = class e {
+var T$ = class e {
static parse(t) {
- var [, n, r] = wMe.exec(t) ?? [];
+ var [, n, r] = EMe.exec(t) ?? [];
return n == null ? e.NaN : new e(parseFloat(n), r ?? "");
}
constructor(e, t) {
- this.num = e, this.unit = t, this.num = e, this.unit = t, $z(e) && (this.unit = ""), t !== "" && !CMe.test(t) && (this.num = NaN, this.unit = ""), DMe(t) && (this.num = OMe(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, Qz(e) && (this.unit = ""), t !== "" && !TMe.test(t) && (this.num = NaN, this.unit = ""), kMe(t) && (this.num = AMe(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -63068,50 +63135,50 @@ var E$ = class e {
return `${this.num}${this.unit}`;
}
isNaN() {
- return $z(this.num);
+ return Qz(this.num);
}
};
-S$ = E$, bMe(E$, "NaN", new S$(NaN, ""));
-function D$(e) {
- if (e == null || e.includes(T$)) return T$;
+x$ = T$, SMe(T$, "NaN", new x$(NaN, ""));
+function E$(e) {
+ if (e == null || e.includes(w$)) return w$;
for (var t = e; t.includes("*") || t.includes("/");) {
- var [, n, r, i] = C$.exec(t) ?? [], a = E$.parse(n ?? ""), o = E$.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
- if (s.isNaN()) return T$;
- t = t.replace(C$, s.toString());
+ var [, n, r, i] = S$.exec(t) ?? [], a = T$.parse(n ?? ""), o = T$.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
+ if (s.isNaN()) return w$;
+ t = t.replace(S$, s.toString());
}
for (; t.includes("+") || /.-\d+(?:\.\d+)?/.test(t);) {
- var [, c, l, u] = w$.exec(t) ?? [], d = E$.parse(c ?? ""), f = E$.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
- if (p.isNaN()) return T$;
- t = t.replace(w$, p.toString());
+ var [, c, l, u] = C$.exec(t) ?? [], d = T$.parse(c ?? ""), f = T$.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
+ if (p.isNaN()) return w$;
+ t = t.replace(C$, p.toString());
}
return t;
}
-var O$ = /\(([^()]*)\)/;
-function kMe(e) {
- for (var t = e, n; (n = O$.exec(t)) != null;) {
+var D$ = /\(([^()]*)\)/;
+function jMe(e) {
+ for (var t = e, n; (n = D$.exec(t)) != null;) {
var [, r] = n;
- t = t.replace(O$, D$(r));
+ t = t.replace(D$, E$(r));
}
return t;
}
-function AMe(e) {
+function MMe(e) {
var t = e.replace(/\s+/g, "");
- return t = kMe(t), t = D$(t), t;
+ return t = jMe(t), t = E$(t), t;
}
-function jMe(e) {
+function NMe(e) {
try {
- return AMe(e);
+ return MMe(e);
} catch {
- return T$;
+ return w$;
}
}
-function k$(e) {
- var t = jMe(e.slice(5, -1));
- return t === T$ ? "" : t;
+function O$(e) {
+ var t = NMe(e.slice(5, -1));
+ return t === w$ ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var MMe = [
+var PMe = [
"x",
"y",
"lineHeight",
@@ -63120,32 +63187,32 @@ var MMe = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], NMe = [
+], FMe = [
"dx",
"dy",
"angle",
"className",
"breakAll"
];
-function A$() {
- return A$ = Object.assign ? Object.assign.bind() : function(e) {
+function k$() {
+ return k$ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, A$.apply(null, arguments);
+ }, k$.apply(null, arguments);
}
-function j$(e, t) {
+function A$(e, t) {
if (e == null) return {};
- var n, r, i = PMe(e, t);
+ var n, r, i = IMe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function PMe(e, t) {
+function IMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63154,28 +63221,28 @@ function PMe(e, t) {
}
return n;
}
-var M$ = /[ \f\n\r\t\v\u2028\u2029]+/, N$ = (e) => {
+var j$ = /[ \f\n\r\t\v\u2028\u2029]+/, M$ = (e) => {
var { children: t, breakAll: n, style: r } = e;
try {
var i = [];
- return sB(t) || (i = n ? t.toString().split("") : t.toString().split(M$)), {
+ return oB(t) || (i = n ? t.toString().split("") : t.toString().split(j$)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
- width: x$(e, r).width
+ width: b$(e, r).width
})),
- spaceWidth: n ? 0 : x$("\xA0", r).width
+ spaceWidth: n ? 0 : b$("\xA0", r).width
};
} catch {
return null;
}
};
-function P$(e) {
+function N$(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function FMe(e) {
- return sB(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
+function LMe(e) {
+ return oB(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
-var F$ = (e, t, n, r) => e.reduce((e, i) => {
+var P$ = (e, t, n, r) => e.reduce((e, i) => {
var { word: a, width: o } = i, s = e[e.length - 1];
if (s && o != null && (t == null || r || s.width + o + n < Number(t))) s.words.push(a), s.width += o + n;
else {
@@ -63186,20 +63253,20 @@ var F$ = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), I$ = (e) => e.reduce((e, t) => e.width > t.width ? e : t), IMe = "…", L$ = (e, t, n, r, i, a, o, s) => {
- var c = N$({
+}, []), F$ = (e) => e.reduce((e, t) => e.width > t.width ? e : t), RMe = "…", I$ = (e, t, n, r, i, a, o, s) => {
+ var c = M$({
breakAll: n,
style: r,
- children: e.slice(0, t) + IMe
+ children: e.slice(0, t) + RMe
});
if (!c) return [!1, []];
- var l = F$(c.wordsWithComputedWidth, a, o, s);
- return [l.length > i || I$(l).width > Number(a), l];
-}, LMe = (e, t, n, r, i) => {
- var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = F$(t, r, n, i);
- if (!l || i || !(d.length > a || I$(d).width > Number(r))) return d;
+ var l = P$(c.wordsWithComputedWidth, a, o, s);
+ return [l.length > i || F$(l).width > Number(a), l];
+}, zMe = (e, t, n, r, i) => {
+ var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = P$(t, r, n, i);
+ if (!l || i || !(d.length > a || F$(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
- var g = Math.floor((f + p) / 2), [_, v] = L$(u, g - 1, c, s, a, r, n, i), [y] = L$(u, g, c, s, a, r, n, i);
+ var g = Math.floor((f + p) / 2), [_, v] = I$(u, g - 1, c, s, a, r, n, i), [y] = I$(u, g, c, s, a, r, n, i);
if (!_ && !y && (f = g + 1), _ && y && (p = g - 1), !_ && y) {
h = v;
break;
@@ -63207,13 +63274,13 @@ var F$ = (e, t, n, r) => e.reduce((e, i) => {
m++;
}
return h || d;
-}, R$ = (e) => [{
- words: sB(e) ? [] : e.toString().split(M$),
+}, L$ = (e) => [{
+ words: oB(e) ? [] : e.toString().split(j$),
width: void 0
-}], RMe = (e) => {
+}], BMe = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
- if ((t || n) && !uG.isSsr) {
- var s, c, l = N$({
+ if ((t || n) && !lG.isSsr) {
+ var s, c, l = M$({
breakAll: a,
children: r,
style: i
@@ -63221,28 +63288,28 @@ var F$ = (e, t, n, r) => e.reduce((e, i) => {
if (l) {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
- } else return R$(r);
- return LMe({
+ } else return L$(r);
+ return zMe({
breakAll: a,
children: r,
maxLines: o,
style: i
}, s, c, t, !!n);
}
- return R$(r);
-}, z$ = "#808080", zMe = {
+ return L$(r);
+}, R$ = "#808080", VMe = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
- fill: z$,
+ fill: R$,
lineHeight: "1em",
scaleToFit: !1,
textAnchor: "start",
verticalAnchor: "end",
x: 0,
y: 0
-}, B$ = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = bB(e, zMe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = j$(n, MMe), f = (0, R.useMemo)(() => RMe({
+}, z$ = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = yB(e, VMe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = A$(n, PMe), f = (0, R.useMemo)(() => BMe({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -63256,32 +63323,32 @@ var F$ = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = j$(d, NMe);
- if (!tB(r) || !tB(i) || f.length === 0) return null;
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = A$(d, FMe);
+ if (!eB(r) || !eB(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
- if (!lU(y) || !lU(b)) return null;
+ if (!cU(y) || !cU(b)) return null;
var x;
switch (u) {
case "start":
- x = k$(`calc(${o})`);
+ x = O$(`calc(${o})`);
break;
case "middle":
- x = k$(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
+ x = O$(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
break;
- default: x = k$(`calc(${f.length - 1} * -${a})`);
+ default: x = O$(`calc(${f.length - 1} * -${a})`);
}
var S = [], C = f[0];
if (c && C != null) {
var w = C.width, { width: T } = d;
S.push(`scale(${Z(T) && Z(w) ? T / w : 1})`);
}
- return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ R.createElement("text", A$({}, KR(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ R.createElement("text", k$({}, GR(v), {
ref: t,
x: y,
y: b,
className: Sh("recharts-text", g),
textAnchor: l,
- fill: s.includes("url") ? z$ : s
+ fill: s.includes("url") ? R$ : s
}), f.map((e, t) => {
var n = e.words.join(_ ? "" : " ");
return /*#__PURE__*/ R.createElement("tspan", {
@@ -63291,10 +63358,10 @@ var F$ = (e, t, n, r) => e.reduce((e, i) => {
}, n);
}));
});
-B$.displayName = "Text";
+z$.displayName = "Text";
//#endregion
//#region node_modules/recharts/es6/cartesian/getCartesianPosition.js
-function V$(e, t) {
+function B$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63304,30 +63371,30 @@ function V$(e, t) {
}
return n;
}
-function H$(e) {
+function V$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? V$(Object(n), !0).forEach(function(t) {
- BMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V$(Object(n)).forEach(function(t) {
+ t % 2 ? B$(Object(n), !0).forEach(function(t) {
+ HMe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function BMe(e, t, n) {
- return (t = VMe(t)) in e ? Object.defineProperty(e, t, {
+function HMe(e, t, n) {
+ return (t = UMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VMe(e) {
- var t = HMe(e, "string");
+function UMe(e) {
+ var t = WMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HMe(e, t) {
+function WMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63337,8 +63404,8 @@ function HMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var UMe = (e) => {
- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = YU(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
+var GMe = (e) => {
+ var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = JU(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
if (n === "top") {
var T = {
x: d + l / 2,
@@ -63379,68 +63446,68 @@ var UMe = (e) => {
width: m,
height: c
} : {};
- return n === "insideLeft" ? H$({
+ return n === "insideLeft" ? V$({
x: p + x,
y: s + c / 2,
horizontalAnchor: C,
verticalAnchor: "middle"
- }, k) : n === "insideRight" ? H$({
+ }, k) : n === "insideRight" ? V$({
x: p + m - x,
y: s + c / 2,
horizontalAnchor: S,
verticalAnchor: "middle"
- }, k) : n === "insideTop" ? H$({
+ }, k) : n === "insideTop" ? V$({
x: d + l / 2,
y: s + _,
horizontalAnchor: "middle",
verticalAnchor: y
- }, k) : n === "insideBottom" ? H$({
+ }, k) : n === "insideBottom" ? V$({
x: f + u / 2,
y: s + c - _,
horizontalAnchor: "middle",
verticalAnchor: v
- }, k) : n === "insideTopLeft" ? H$({
+ }, k) : n === "insideTopLeft" ? V$({
x: d + x,
y: s + _,
horizontalAnchor: C,
verticalAnchor: y
- }, k) : n === "insideTopRight" ? H$({
+ }, k) : n === "insideTopRight" ? V$({
x: d + l - x,
y: s + _,
horizontalAnchor: S,
verticalAnchor: y
- }, k) : n === "insideBottomLeft" ? H$({
+ }, k) : n === "insideBottomLeft" ? V$({
x: f + x,
y: s + c - _,
horizontalAnchor: C,
verticalAnchor: v
- }, k) : n === "insideBottomRight" ? H$({
+ }, k) : n === "insideBottomRight" ? V$({
x: f + u - x,
y: s + c - _,
horizontalAnchor: S,
verticalAnchor: v
- }, k) : n && typeof n == "object" && (Z(n.x) || eB(n.x)) && (Z(n.y) || eB(n.y)) ? H$({
- x: o + rB(n.x, m),
- y: s + rB(n.y, c),
+ }, k) : n && typeof n == "object" && (Z(n.x) || $z(n.x)) && (Z(n.y) || $z(n.y)) ? V$({
+ x: o + nB(n.x, m),
+ y: s + nB(n.y, c),
horizontalAnchor: "end",
verticalAnchor: "end"
- }, k) : H$({
+ }, k) : V$({
x: h,
y: s + c / 2,
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
-}, WMe = ["labelRef"], GMe = ["content"];
-function U$(e, t) {
+}, KMe = ["labelRef"], qMe = ["content"];
+function H$(e, t) {
if (e == null) return {};
- var n, r, i = KMe(e, t);
+ var n, r, i = JMe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function KMe(e, t) {
+function JMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63449,7 +63516,7 @@ function KMe(e, t) {
}
return n;
}
-function W$(e, t) {
+function U$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63459,30 +63526,30 @@ function W$(e, t) {
}
return n;
}
-function G$(e) {
+function W$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? W$(Object(n), !0).forEach(function(t) {
- qMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W$(Object(n)).forEach(function(t) {
+ t % 2 ? U$(Object(n), !0).forEach(function(t) {
+ YMe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qMe(e, t, n) {
- return (t = JMe(t)) in e ? Object.defineProperty(e, t, {
+function YMe(e, t, n) {
+ return (t = XMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function JMe(e) {
- var t = YMe(e, "string");
+function XMe(e) {
+ var t = ZMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function YMe(e, t) {
+function ZMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63492,16 +63559,16 @@ function YMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function K$() {
- return K$ = Object.assign ? Object.assign.bind() : function(e) {
+function G$() {
+ return G$ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, K$.apply(null, arguments);
+ }, G$.apply(null, arguments);
}
-var q$ = /*#__PURE__*/ (0, R.createContext)(null), J$ = (e) => {
+var K$ = /*#__PURE__*/ (0, R.createContext)(null), q$ = (e) => {
var { x: t, y: n, upperWidth: r, lowerWidth: i, width: a, height: o, children: s } = e, c = (0, R.useMemo)(() => ({
x: t,
y: n,
@@ -63517,11 +63584,11 @@ var q$ = /*#__PURE__*/ (0, R.createContext)(null), J$ = (e) => {
a,
o
]);
- return /*#__PURE__*/ R.createElement(q$.Provider, { value: c }, s);
-}, Y$ = () => {
- var e = (0, R.useContext)(q$), t = XU();
- return e || (t ? YU(t) : void 0);
-}, X$ = /*#__PURE__*/ (0, R.createContext)(null), XMe = (e) => {
+ return /*#__PURE__*/ R.createElement(K$.Provider, { value: c }, s);
+}, J$ = () => {
+ var e = (0, R.useContext)(K$), t = YU();
+ return e || (t ? JU(t) : void 0);
+}, Y$ = /*#__PURE__*/ (0, R.createContext)(null), QMe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, R.useMemo)(() => ({
cx: t,
cy: n,
@@ -63539,15 +63606,15 @@ var q$ = /*#__PURE__*/ (0, R.createContext)(null), J$ = (e) => {
o,
s
]);
- return /*#__PURE__*/ R.createElement(X$.Provider, { value: l }, c);
-}, Z$ = () => {
- var e = (0, R.useContext)(X$), t = Q(eq);
+ return /*#__PURE__*/ R.createElement(Y$.Provider, { value: l }, c);
+}, X$ = () => {
+ var e = (0, R.useContext)(Y$), t = Q($K);
return e || t;
-}, ZMe = (e) => {
- var { value: t, formatter: n } = e, r = sB(e.children) ? t : e.children;
+}, $Me = (e) => {
+ var { value: t, formatter: n } = e, r = oB(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, Q$ = (e) => e != null && typeof e == "function", QMe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 360), $Me = (e, t, n, r, i) => {
- var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = QMe(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, Z$ = (e) => e != null && typeof e == "function", eNe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 360), tNe = (e, t, n, r, i) => {
+ var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = eNe(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -63561,20 +63628,20 @@ var q$ = /*#__PURE__*/ (0, R.createContext)(null), J$ = (e) => {
default: throw Error(`Unsupported position ${t}`);
}
v = h <= 0 ? v : !v;
- var y = nK(s, c, m, _), b = nK(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
+ var y = tK(s, c, m, _), b = tK(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
- ${b.x},${b.y}`, S = sB(e.id) ? nB("recharts-radial-line-") : e.id;
- return /*#__PURE__*/ R.createElement("text", K$({}, r, {
+ ${b.x},${b.y}`, S = oB(e.id) ? tB("recharts-radial-line-") : e.id;
+ return /*#__PURE__*/ R.createElement("text", G$({}, r, {
dominantBaseline: "central",
className: Sh("recharts-radial-bar-label", o)
}), /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("path", {
id: S,
d: x
})), /*#__PURE__*/ R.createElement("textPath", { xlinkHref: `#${S}` }, n));
-}, eNe = (e, t, n) => {
+}, nNe = (e, t, n) => {
var { cx: r, cy: i, innerRadius: a, outerRadius: o, startAngle: s, endAngle: c } = e, l = (s + c) / 2;
if (n === "outside") {
- var { x: u, y: d } = nK(r, i, o + t, l);
+ var { x: u, y: d } = tK(r, i, o + t, l);
return {
x: u,
y: d,
@@ -63600,22 +63667,22 @@ var q$ = /*#__PURE__*/ (0, R.createContext)(null), J$ = (e) => {
textAnchor: "middle",
verticalAnchor: "end"
};
- var { x: f, y: p } = nK(r, i, (a + o) / 2, l);
+ var { x: f, y: p } = tK(r, i, (a + o) / 2, l);
return {
x: f,
y: p,
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, $$ = (e) => e != null && "cx" in e && Z(e.cx), tNe = {
+}, Q$ = (e) => e != null && "cx" in e && Z(e.cx), rNe = {
angle: 0,
offset: 5,
- zIndex: LK.label,
+ zIndex: IK.label,
position: "middle",
textBreakAll: !1
};
-function nNe(e) {
- if (!$$(e)) return e;
+function iNe(e) {
+ if (!Q$(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
x: t - r,
@@ -63626,100 +63693,100 @@ function nNe(e) {
height: i
};
}
-function e1(e) {
- var t = bB(e, tNe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = Z$(), f = Y$(), p = n == null ? i === "center" ? f : d ?? f : $$(n) ? n : YU(n), m, h, g = nNe(p);
- if (!p || sB(a) && sB(o) && !/*#__PURE__*/ (0, R.isValidElement)(s) && typeof s != "function") return null;
- var _ = G$(G$({}, t), {}, { viewBox: p });
+function $$(e) {
+ var t = yB(e, rNe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = X$(), f = J$(), p = n == null ? i === "center" ? f : d ?? f : Q$(n) ? n : JU(n), m, h, g = iNe(p);
+ if (!p || oB(a) && oB(o) && !/*#__PURE__*/ (0, R.isValidElement)(s) && typeof s != "function") return null;
+ var _ = W$(W$({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, R.isValidElement)(s)) {
- var { labelRef: v } = _, y = U$(_, WMe);
+ var { labelRef: v } = _, y = H$(_, KMe);
return /*#__PURE__*/ (0, R.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = U$(_, GMe);
+ var { content: b } = _, x = H$(_, qMe);
if (m = /*#__PURE__*/ (0, R.createElement)(s, x), /*#__PURE__*/ (0, R.isValidElement)(m)) return m;
- } else m = ZMe(t);
- var S = KR(t);
- if ($$(p)) {
- if (i === "insideStart" || i === "insideEnd" || i === "end") return $Me(t, i, m, S, p);
- h = eNe(p, t.offset, t.position);
+ } else m = $Me(t);
+ var S = GR(t);
+ if (Q$(p)) {
+ if (i === "insideStart" || i === "insideEnd" || i === "end") return tNe(t, i, m, S, p);
+ h = nNe(p, t.offset, t.position);
} else {
if (!g) return null;
- var C = UMe({
+ var C = GMe({
viewBox: g,
position: i,
offset: t.offset,
- parentViewBox: $$(r) ? void 0 : r,
+ parentViewBox: Q$(r) ? void 0 : r,
clamp: !0
});
- h = G$(G$({
+ h = W$(W$({
x: C.x,
y: C.y,
textAnchor: C.horizontalAnchor,
verticalAnchor: C.verticalAnchor
}, C.width === void 0 ? {} : { width: C.width }), C.height === void 0 ? {} : { height: C.height });
}
- return /*#__PURE__*/ R.createElement(QQ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(B$, K$({
+ return /*#__PURE__*/ R.createElement(ZQ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(z$, G$({
ref: u,
className: Sh("recharts-label", c)
}, S, h, {
- textAnchor: P$(S.textAnchor) ? S.textAnchor : h.textAnchor,
+ textAnchor: N$(S.textAnchor) ? S.textAnchor : h.textAnchor,
breakAll: l
}), m));
}
-e1.displayName = "Label";
-var t1 = (e, t, n) => {
+$$.displayName = "Label";
+var e1 = (e, t, n) => {
if (!e) return null;
var r = {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ R.createElement(e1, K$({ key: "label-implicit" }, r)) : tB(e) ? /*#__PURE__*/ R.createElement(e1, K$({
+ return e === !0 ? /*#__PURE__*/ R.createElement($$, G$({ key: "label-implicit" }, r)) : eB(e) ? /*#__PURE__*/ R.createElement($$, G$({
key: "label-implicit",
value: e
- }, r)) : /*#__PURE__*/ (0, R.isValidElement)(e) ? e.type === e1 ? /*#__PURE__*/ (0, R.cloneElement)(e, G$({ key: "label-implicit" }, r)) : /*#__PURE__*/ R.createElement(e1, K$({
+ }, r)) : /*#__PURE__*/ (0, R.isValidElement)(e) ? e.type === $$ ? /*#__PURE__*/ (0, R.cloneElement)(e, W$({ key: "label-implicit" }, r)) : /*#__PURE__*/ R.createElement($$, G$({
key: "label-implicit",
content: e
- }, r)) : Q$(e) ? /*#__PURE__*/ R.createElement(e1, K$({
+ }, r)) : Z$(e) ? /*#__PURE__*/ R.createElement($$, G$({
key: "label-implicit",
content: e
- }, r)) : e && typeof e == "object" ? /*#__PURE__*/ R.createElement(e1, K$({}, e, { key: "label-implicit" }, r)) : null;
+ }, r)) : e && typeof e == "object" ? /*#__PURE__*/ R.createElement($$, G$({}, e, { key: "label-implicit" }, r)) : null;
};
-function n1(e) {
+function t1(e) {
var { label: t, labelRef: n } = e;
- return t1(t, Y$(), n) || null;
+ return e1(t, J$(), n) || null;
}
-function rNe(e) {
+function aNe(e) {
var { label: t } = e;
- return t1(t, Z$()) || null;
+ return e1(t, X$()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var iNe = ["valueAccessor"], aNe = [
+var oNe = ["valueAccessor"], sNe = [
"dataKey",
"clockWise",
"id",
"textBreakAll",
"zIndex"
];
-function r1() {
- return r1 = Object.assign ? Object.assign.bind() : function(e) {
+function n1() {
+ return n1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, r1.apply(null, arguments);
+ }, n1.apply(null, arguments);
}
-function i1(e, t) {
+function r1(e, t) {
if (e == null) return {};
- var n, r, i = oNe(e, t);
+ var n, r, i = cNe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function oNe(e, t) {
+function cNe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63728,21 +63795,21 @@ function oNe(e, t) {
}
return n;
}
-var sNe = (e) => {
+var lNe = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (FMe(t)) return t;
-}, a1 = /*#__PURE__*/ (0, R.createContext)(void 0), o1 = a1.Provider, s1 = /*#__PURE__*/ (0, R.createContext)(void 0), cNe = s1.Provider;
-function lNe() {
- return (0, R.useContext)(a1);
-}
-function uNe() {
- return (0, R.useContext)(s1);
-}
-function c1(e) {
- var { valueAccessor: t = sNe } = e, n = i1(e, iNe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = i1(n, aNe), l = lNe(), u = uNe(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ R.createElement(QQ, { zIndex: s ?? LK.label }, /*#__PURE__*/ R.createElement(XR, { className: "recharts-label-list" }, d.map((e, i) => {
- var s = sB(r) ? t(e, i) : pU(e.payload, r), l = sB(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ R.createElement(e1, r1({ key: `label-${i}` }, KR(e), c, l, {
+ if (LMe(t)) return t;
+}, i1 = /*#__PURE__*/ (0, R.createContext)(void 0), a1 = i1.Provider, o1 = /*#__PURE__*/ (0, R.createContext)(void 0), uNe = o1.Provider;
+function dNe() {
+ return (0, R.useContext)(i1);
+}
+function fNe() {
+ return (0, R.useContext)(o1);
+}
+function s1(e) {
+ var { valueAccessor: t = lNe } = e, n = r1(e, oNe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = r1(n, sNe), l = dNe(), u = fNe(), d = l || u;
+ return !d || !d.length ? null : /*#__PURE__*/ R.createElement(ZQ, { zIndex: s ?? IK.label }, /*#__PURE__*/ R.createElement(YR, { className: "recharts-label-list" }, d.map((e, i) => {
+ var s = oB(r) ? t(e, i) : fU(e.payload, r), l = oB(a) ? {} : { id: `${a}-${i}` };
+ return /*#__PURE__*/ R.createElement($$, n1({ key: `label-${i}` }, GR(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -63753,41 +63820,41 @@ function c1(e) {
}));
})));
}
-c1.displayName = "LabelList";
-function l1(e) {
+s1.displayName = "LabelList";
+function c1(e) {
var { label: t } = e;
- return t ? t === !0 ? /*#__PURE__*/ R.createElement(c1, { key: "labelList-implicit" }) : /*#__PURE__*/ R.isValidElement(t) || Q$(t) ? /*#__PURE__*/ R.createElement(c1, {
+ return t ? t === !0 ? /*#__PURE__*/ R.createElement(s1, { key: "labelList-implicit" }) : /*#__PURE__*/ R.isValidElement(t) || Z$(t) ? /*#__PURE__*/ R.createElement(s1, {
key: "labelList-implicit",
content: t
- }) : typeof t == "object" ? /*#__PURE__*/ R.createElement(c1, r1({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
+ }) : typeof t == "object" ? /*#__PURE__*/ R.createElement(s1, n1({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var dNe = [
+var pNe = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], fNe;
-function u1() {
- return u1 = Object.assign ? Object.assign.bind() : function(e) {
+], mNe;
+function l1() {
+ return l1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, u1.apply(null, arguments);
+ }, l1.apply(null, arguments);
}
-function pNe(e, t) {
+function hNe(e, t) {
if (e == null) return {};
- var n, r, i = mNe(e, t);
+ var n, r, i = gNe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function mNe(e, t) {
+function gNe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63796,23 +63863,23 @@ function mNe(e, t) {
}
return n;
}
-function hNe(e, t) {
+function _Ne(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var d1 = (e) => e != null && e.x === +e.x && e.y === +e.y, gNe = function() {
+var u1 = (e) => e != null && e.x === +e.x && e.y === +e.y, vNe = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
- d1(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
+ u1(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
});
var n = e[0], r = t[t.length - 1];
- d1(n) && r && r.push(n);
+ u1(n) && r && r.push(n);
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
-}, f1 = (e, t) => {
- var n = gNe(e);
+}, d1 = (e, t) => {
+ var n = vNe(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => Zz(fNe ||= hNe([
+ var r = n.map((e) => e.reduce((e, t, n) => Xz(mNe ||= _Ne([
"",
"",
"",
@@ -63820,29 +63887,29 @@ var d1 = (e) => e != null && e.x === +e.x && e.y === +e.y, gNe = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, _Ne = (e, t, n) => {
- var r = f1(e, n);
- return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${f1(Array.from(t).reverse(), n).slice(1)}`;
-}, p1 = (e) => {
- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = pNe(e, dNe);
+}, yNe = (e, t, n) => {
+ var r = d1(e, n);
+ return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${d1(Array.from(t).reverse(), n).slice(1)}`;
+}, f1 = (e) => {
+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = hNe(e, pNe);
if (!t || !t.length) return null;
var o = Sh("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = _Ne(t, r, i);
- return /*#__PURE__*/ R.createElement("g", { className: o }, /*#__PURE__*/ R.createElement("path", u1({}, KR(a), {
+ var s = a.stroke && a.stroke !== "none", c = yNe(t, r, i);
+ return /*#__PURE__*/ R.createElement("g", { className: o }, /*#__PURE__*/ R.createElement("path", l1({}, GR(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ R.createElement("path", u1({}, KR(a), {
+ })), s ? /*#__PURE__*/ R.createElement("path", l1({}, GR(a), {
fill: "none",
- d: f1(t, i)
- })) : null, s ? /*#__PURE__*/ R.createElement("path", u1({}, KR(a), {
+ d: d1(t, i)
+ })) : null, s ? /*#__PURE__*/ R.createElement("path", l1({}, GR(a), {
fill: "none",
- d: f1(r, i)
+ d: d1(r, i)
})) : null);
}
- var l = f1(t, i);
- return /*#__PURE__*/ R.createElement("path", u1({}, KR(a), {
+ var l = d1(t, i);
+ return /*#__PURE__*/ R.createElement("path", l1({}, GR(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -63850,111 +63917,111 @@ var d1 = (e) => e != null && e.x === +e.x && e.y === +e.y, gNe = function() {
};
//#endregion
//#region node_modules/recharts/es6/shape/Dot.js
-function m1() {
- return m1 = Object.assign ? Object.assign.bind() : function(e) {
+function p1() {
+ return p1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, m1.apply(null, arguments);
+ }, p1.apply(null, arguments);
}
-var h1 = (e) => {
+var m1 = (e) => {
var { cx: t, cy: n, r, className: i } = e, a = Sh("recharts-dot", i);
- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ R.createElement("circle", m1({}, WR(e), _B(e), {
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ R.createElement("circle", p1({}, UR(e), gB(e), {
className: a,
cx: t,
cy: n,
r
})) : null;
-}, g1 = (e) => e.graphicalItems.polarItems, _1 = $([
- g1,
- FX,
- $([tq, nq], RX)
-], BX), v1 = $([$([_1], WX), fK], GX), y1 = $([
- v1,
- FX,
- _1
-], qX);
+}, h1 = (e) => e.graphicalItems.polarItems, g1 = $([
+ h1,
+ PX,
+ $([eq, tq], LX)
+], zX), _1 = $([$([g1], UX), dK], WX), v1 = $([
+ _1,
+ PX,
+ g1
+], KX);
$([
- v1,
- FX,
- _1
+ _1,
+ PX,
+ g1
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
- value: pU(e, t.dataKey ?? n.dataKey),
+ value: fU(e, t.dataKey ?? n.dataKey),
errorDomain: []
}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({
value: e,
errorDomain: []
})) : e.map((e) => ({
- value: pU(e, t.dataKey),
+ value: fU(e, t.dataKey),
errorDomain: []
})));
-var b1 = () => void 0, x1 = $([
- FX,
- eW,
+var y1 = () => void 0, b1 = $([
+ PX,
+ $U,
+ _1,
v1,
- y1,
- jK,
- tq,
+ AK,
+ eq,
$([
- FX,
+ PX,
+ iZ,
aZ,
- oZ,
- b1,
+ y1,
$([
- v1,
- FX,
_1,
- sZ,
- tq
- ], lZ),
- b1,
- eW,
- tq
- ], _Z)
-], vZ), S1 = $([
- x1,
- IX,
- bZ
-], xZ), vNe = $([bZ, $([
+ PX,
+ g1,
+ oZ,
+ eq
+ ], cZ),
+ y1,
+ $U,
+ eq
+ ], gZ)
+], _Z), x1 = $([
+ b1,
FX,
+ yZ
+], bZ), bNe = $([yZ, $([
+ PX,
+ b1,
x1,
- S1,
- tq
-], CZ)], dq), C1 = (e, t, n) => {
+ eq
+], SZ)], uq), S1 = (e, t, n) => {
switch (t) {
- case "angleAxis": return KK(e, n);
- case "radiusAxis": return qK(e, n);
+ case "angleAxis": return GK(e, n);
+ case "radiusAxis": return KK(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, w1 = (e, t, n) => {
+}, C1 = (e, t, n) => {
switch (t) {
- case "angleAxis": return ZEe(e, n);
- case "radiusAxis": return QEe(e, n);
+ case "angleAxis": return $Ee(e, n);
+ case "radiusAxis": return eDe(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, T1 = $([$([
- C1,
- bZ,
- vNe,
- w1
-], SX)], uq), E1 = $([
- eW,
- y1,
- IX,
- tq
-], OZ), D1 = $([
- eW,
- C1,
- bZ,
- T1,
+}, w1 = $([$([
S1,
+ yZ,
+ bNe,
+ C1
+], xX)], lq), T1 = $([
+ $U,
+ v1,
+ FX,
+ eq
+], DZ), E1 = $([
+ $U,
+ S1,
+ yZ,
w1,
- zZ,
- E1,
- tq
-], VZ), yNe = $([D1], (e) => {
+ x1,
+ C1,
+ RZ,
+ T1,
+ eq
+], BZ), xNe = $([E1], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -63962,19 +64029,19 @@ var b1 = () => void 0, x1 = $([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), bNe = $([
- eW,
+}), SNe = $([
+ $U,
+ S1,
+ w1,
C1,
+ RZ,
T1,
- w1,
- zZ,
- E1,
- tq
-], UZ), xNe = $([(e, t) => D1(e, "angleAxis", t, !1)], (e) => {
+ eq
+], HZ), CNe = $([(e, t) => E1(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), SNe = $([(e, t) => D1(e, "radiusAxis", t, !1)], (e) => {
+}), wNe = $([(e, t) => E1(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), CNe = [
+}), TNe = [
"gridType",
"radialLines",
"angleAxisId",
@@ -63987,16 +64054,16 @@ var b1 = () => void 0, x1 = $([
"polarRadius",
"zIndex"
];
-function wNe(e, t) {
+function ENe(e, t) {
if (e == null) return {};
- var n, r, i = TNe(e, t);
+ var n, r, i = DNe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function TNe(e, t) {
+function DNe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64005,16 +64072,16 @@ function TNe(e, t) {
}
return n;
}
-function O1() {
- return O1 = Object.assign ? Object.assign.bind() : function(e) {
+function D1() {
+ return D1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, O1.apply(null, arguments);
+ }, D1.apply(null, arguments);
}
-function k1(e, t) {
+function O1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64024,30 +64091,30 @@ function k1(e, t) {
}
return n;
}
-function A1(e) {
+function k1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? k1(Object(n), !0).forEach(function(t) {
- ENe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k1(Object(n)).forEach(function(t) {
+ t % 2 ? O1(Object(n), !0).forEach(function(t) {
+ ONe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ENe(e, t, n) {
- return (t = DNe(t)) in e ? Object.defineProperty(e, t, {
+function ONe(e, t, n) {
+ return (t = kNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function DNe(e) {
- var t = ONe(e, "string");
+function kNe(e) {
+ var t = ANe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ONe(e, t) {
+function ANe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64057,69 +64124,69 @@ function ONe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var kNe = (e, t, n, r) => {
+var jNe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
- var o = nK(t, n, e, r);
+ var o = tK(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, ANe = (e) => {
+}, MNe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
- var s = A1({ stroke: "#ccc" }, WR(e));
+ var s = k1({ stroke: "#ccc" }, UR(e));
return /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
- var a = nK(t, n, r, e), o = nK(t, n, i, e);
- return /*#__PURE__*/ R.createElement("line", O1({ key: `line-${e}` }, s, {
+ var a = tK(t, n, r, e), o = tK(t, n, i, e);
+ return /*#__PURE__*/ R.createElement("line", D1({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
x2: o.x,
y2: o.y
}));
}));
-}, j1 = (e) => {
- var { cx: t, cy: n, radius: r } = e, i = A1({
+}, A1 = (e) => {
+ var { cx: t, cy: n, radius: r } = e, i = k1({
stroke: "#ccc",
fill: "none"
- }, WR(e));
- return /*#__PURE__*/ R.createElement("circle", O1({}, i, {
+ }, UR(e));
+ return /*#__PURE__*/ R.createElement("circle", D1({}, i, {
className: Sh("recharts-polar-grid-concentric-circle", e.className),
cx: t,
cy: n,
r
}));
-}, M1 = (e) => {
- var { radius: t } = e, n = A1({
+}, j1 = (e) => {
+ var { radius: t } = e, n = k1({
stroke: "#ccc",
fill: "none"
- }, WR(e));
- return /*#__PURE__*/ R.createElement("path", O1({}, n, {
+ }, UR(e));
+ return /*#__PURE__*/ R.createElement("path", D1({}, n, {
className: Sh("recharts-polar-grid-concentric-polygon", e.className),
- d: kNe(t, e.cx, e.cy, e.polarAngles)
+ d: jNe(t, e.cx, e.cy, e.polarAngles)
}));
-}, jNe = (e) => {
+}, NNe = (e) => {
var { polarRadius: t, gridType: n } = e;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
- return /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ R.createElement(j1, O1({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ R.createElement(M1, O1({}, e, { radius: r })), t.map((t, r) => {
+ return /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ R.createElement(A1, D1({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ R.createElement(j1, D1({}, e, { radius: r })), t.map((t, r) => {
var i = r;
- return n === "circle" ? /*#__PURE__*/ R.createElement(j1, O1({ key: i }, e, {
+ return n === "circle" ? /*#__PURE__*/ R.createElement(A1, D1({ key: i }, e, {
fill: "none",
radius: t
- })) : /*#__PURE__*/ R.createElement(M1, O1({ key: i }, e, {
+ })) : /*#__PURE__*/ R.createElement(j1, D1({ key: i }, e, {
fill: "none",
radius: t
}));
}));
-}, MNe = {
+}, PNe = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
- zIndex: LK.grid
-}, N1 = (e) => {
- var t = bB(e, MNe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = wNe(t, CNe), m = Q(eq), h = Q((e) => xNe(e, i)), g = Q((e) => SNe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+ zIndex: IK.grid
+}, M1 = (e) => {
+ var t = yB(e, PNe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = ENe(t, TNe), m = Q($K), h = Q((e) => CNe(e, i)), g = Q((e) => wNe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
- var y = A1({
+ var y = k1({
cx: m?.cx ?? o ?? 0,
cy: m?.cy ?? s ?? 0,
innerRadius: m?.innerRadius ?? c ?? 0,
@@ -64128,13 +64195,13 @@ var kNe = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ R.createElement(QQ, { zIndex: y.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ R.createElement(jNe, O1({
+ return b <= 0 ? null : /*#__PURE__*/ R.createElement(ZQ, { zIndex: y.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ R.createElement(NNe, D1({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ R.createElement(ANe, O1({
+ })), /*#__PURE__*/ R.createElement(MNe, D1({
gridType: n,
radialLines: r
}, y, {
@@ -64142,19 +64209,19 @@ var kNe = (e, t, n, r) => {
polarRadius: v
}))));
};
-N1.displayName = "PolarGrid";
+M1.displayName = "PolarGrid";
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toArray.mjs
-function P1(e) {
+function N1(e) {
return Array.isArray(e) ? e : Array.from(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function NNe(e, t = TB) {
+function FNe(e, t = wB) {
if (e == null) return;
- let n = P1(e);
+ let n = N1(e);
if (n.length === 0) return;
- let r = UB(t), i, a;
+ let r = HB(t), i, a;
for (let e = 0; e < n.length; e++) {
let t = n[e], o = r(t, e, n);
o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o > a) && (a = o, i = t);
@@ -64163,11 +64230,11 @@ function NNe(e, t = TB) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function PNe(e, t = TB) {
+function INe(e, t = wB) {
if (e == null) return;
- let n = P1(e);
+ let n = N1(e);
if (n.length === 0) return;
- let r = UB(t), i, a;
+ let r = HB(t), i, a;
for (let e = 0; e < n.length; e++) {
let t = n[e], o = r(t, e, n);
o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o < a) && (a = o, i = t);
@@ -64176,7 +64243,7 @@ function PNe(e, t = TB) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var F1 = PH({
+var P1 = NH({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -64184,47 +64251,47 @@ var F1 = PH({
},
reducers: {
addRadiusAxis(e, t) {
- e.radiusAxis[t.payload.id] = GW(t.payload);
+ e.radiusAxis[t.payload.id] = WW(t.payload);
},
removeRadiusAxis(e, t) {
delete e.radiusAxis[t.payload.id];
},
addAngleAxis(e, t) {
- e.angleAxis[t.payload.id] = GW(t.payload);
+ e.angleAxis[t.payload.id] = WW(t.payload);
},
removeAngleAxis(e, t) {
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: FNe, removeRadiusAxis: INe, addAngleAxis: LNe, removeAngleAxis: RNe } = F1.actions, zNe = F1.reducer;
+}), { addRadiusAxis: LNe, removeRadiusAxis: RNe, addAngleAxis: zNe, removeAngleAxis: BNe } = P1.actions, VNe = P1.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
-function I1(e) {
+function F1(e) {
return e && typeof e == "object" && "className" in e && typeof e.className == "string" ? e.className : "";
}
//#endregion
//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js
-var BNe = ["type"], VNe = [
+var HNe = ["type"], UNe = [
"cx",
"cy",
"angle",
"axisLine"
-], HNe = [
+], WNe = [
"angle",
"tickFormatter",
"stroke",
"tick"
];
-function L1() {
- return L1 = Object.assign ? Object.assign.bind() : function(e) {
+function I1() {
+ return I1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, L1.apply(null, arguments);
+ }, I1.apply(null, arguments);
}
-function R1(e, t) {
+function L1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64234,30 +64301,30 @@ function R1(e, t) {
}
return n;
}
-function z1(e) {
+function R1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? R1(Object(n), !0).forEach(function(t) {
- UNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R1(Object(n)).forEach(function(t) {
+ t % 2 ? L1(Object(n), !0).forEach(function(t) {
+ GNe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function UNe(e, t, n) {
- return (t = WNe(t)) in e ? Object.defineProperty(e, t, {
+function GNe(e, t, n) {
+ return (t = KNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function WNe(e) {
- var t = GNe(e, "string");
+function KNe(e) {
+ var t = qNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function GNe(e, t) {
+function qNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64267,16 +64334,16 @@ function GNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function B1(e, t) {
+function z1(e, t) {
if (e == null) return {};
- var n, r, i = KNe(e, t);
+ var n, r, i = JNe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function KNe(e, t) {
+function JNe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64285,20 +64352,20 @@ function KNe(e, t) {
}
return n;
}
-var qNe = "radiusAxis";
-function JNe(e) {
- var t = qB(), n = iW(), r = (0, R.useMemo)(() => {
- var { type: t } = e, r = B1(e, BNe), i = VK(n, "radiusAxis", t);
- if (i != null) return z1(z1({}, r), {}, { type: i });
+var YNe = "radiusAxis";
+function XNe(e) {
+ var t = KB(), n = rW(), r = (0, R.useMemo)(() => {
+ var { type: t } = e, r = z1(e, HNe), i = BK(n, "radiusAxis", t);
+ if (i != null) return R1(R1({}, r), {}, { type: i });
}, [e, n]);
- return (0, R.useEffect)(() => r == null ? uB : (t(FNe(r)), () => {
- t(INe(r));
+ return (0, R.useEffect)(() => r == null ? lB : (t(LNe(r)), () => {
+ t(RNe(r));
}), [t, r]), null;
}
-var YNe = (e, t, n, r) => {
+var ZNe = (e, t, n, r) => {
var { coordinate: i } = e;
- return nK(n, r, i, t);
-}, XNe = (e) => {
+ return tK(n, r, i, t);
+}, QNe = (e) => {
var t;
switch (e) {
case "left":
@@ -64310,49 +64377,49 @@ var YNe = (e, t, n, r) => {
default: t = "middle";
}
return t;
-}, ZNe = (e, t, n, r) => {
- var i = NNe(r, (e) => e.coordinate || 0);
+}, $Ne = (e, t, n, r) => {
+ var i = FNe(r, (e) => e.coordinate || 0);
return {
cx: t,
cy: n,
startAngle: e,
endAngle: e,
- innerRadius: PNe(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ innerRadius: INe(r, (e) => e.coordinate || 0)?.coordinate || 0,
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, QNe = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = B1(e, VNe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = nK(n, r, s[0], i), l = nK(n, r, s[1], i), u = z1(z1(z1({}, WR(o)), {}, { fill: "none" }, WR(a)), {}, {
+}, ePe = (e, t) => {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = z1(e, UNe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = tK(n, r, s[0], i), l = tK(n, r, s[1], i), u = R1(R1(R1({}, UR(o)), {}, { fill: "none" }, UR(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
- return /*#__PURE__*/ R.createElement("line", L1({ className: "recharts-polar-radius-axis-line" }, u));
-}, $Ne = (e, t, n) => /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ R.createElement(B$, L1({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), ePe = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = B1(e, HNe), s = XNe(e.orientation), c = WR(o), l = GR(a), u = t.map((t, o) => {
- var u = YNe(t, e.angle, e.cx, e.cy), d = z1(z1(z1(z1({
+ return /*#__PURE__*/ R.createElement("line", I1({ className: "recharts-polar-radius-axis-line" }, u));
+}, tPe = (e, t, n) => /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ R.createElement(z$, I1({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), nPe = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = z1(e, WNe), s = QNe(e.orientation), c = UR(o), l = WR(a), u = t.map((t, o) => {
+ var u = ZNe(t, e.angle, e.cx, e.cy), d = R1(R1(R1(R1({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ R.createElement(XR, L1({
- className: Sh("recharts-polar-radius-axis-tick", I1(a)),
+ return /*#__PURE__*/ R.createElement(YR, I1({
+ className: Sh("recharts-polar-radius-axis-tick", F1(a)),
key: `tick-${t.coordinate}`
- }, vB(e, t, o)), $Ne(a, d, r ? r(t.value, o) : t.value));
+ }, _B(e, t, o)), tPe(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ R.createElement(XR, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, tPe = (e) => {
- var { radiusAxisId: t } = e, n = Q(eq), r = Q((e) => T1(e, "radiusAxis", t)), i = Q((e) => D1(e, "radiusAxis", t, !1));
+ return /*#__PURE__*/ R.createElement(YR, { className: "recharts-polar-radius-axis-ticks" }, u);
+}, rPe = (e) => {
+ var { radiusAxisId: t } = e, n = Q($K), r = Q((e) => w1(e, "radiusAxis", t)), i = Q((e) => E1(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
- var a = z1(z1({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ R.createElement(QQ, { zIndex: a.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: Sh("recharts-polar-radius-axis", qNe, a.className) }, s && QNe(a, i), o && ePe(a, i), /*#__PURE__*/ R.createElement(XMe, ZNe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ R.createElement(rNe, { label: a.label }), a.children)));
+ var a = R1(R1({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
+ return /*#__PURE__*/ R.createElement(ZQ, { zIndex: a.zIndex }, /*#__PURE__*/ R.createElement(YR, { className: Sh("recharts-polar-radius-axis", YNe, a.className) }, s && ePe(a, i), o && nPe(a, i), /*#__PURE__*/ R.createElement(QMe, $Ne(a.angle, a.cx, a.cy, i), /*#__PURE__*/ R.createElement(aNe, { label: a.label }), a.children)));
};
-function V1(e) {
- var t = bB(e, zK);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(JNe, {
+function B1(e) {
+ var t = yB(e, RK);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(XNe, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -64369,22 +64436,22 @@ function V1(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ R.createElement(tPe, t));
+ }), /*#__PURE__*/ R.createElement(rPe, t));
}
-V1.displayName = "PolarRadiusAxis";
+B1.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var nPe = ["children", "type"], rPe = ["ref"];
-function H1() {
- return H1 = Object.assign ? Object.assign.bind() : function(e) {
+var iPe = ["children", "type"], aPe = ["ref"];
+function V1() {
+ return V1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, H1.apply(null, arguments);
+ }, V1.apply(null, arguments);
}
-function U1(e, t) {
+function H1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64394,30 +64461,30 @@ function U1(e, t) {
}
return n;
}
-function W1(e) {
+function U1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? U1(Object(n), !0).forEach(function(t) {
- iPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U1(Object(n)).forEach(function(t) {
+ t % 2 ? H1(Object(n), !0).forEach(function(t) {
+ oPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function iPe(e, t, n) {
- return (t = aPe(t)) in e ? Object.defineProperty(e, t, {
+function oPe(e, t, n) {
+ return (t = sPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function aPe(e) {
- var t = oPe(e, "string");
+function sPe(e) {
+ var t = cPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oPe(e, t) {
+function cPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64427,16 +64494,16 @@ function oPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function G1(e, t) {
+function W1(e, t) {
if (e == null) return {};
- var n, r, i = sPe(e, t);
+ var n, r, i = lPe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function sPe(e, t) {
+function lPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64445,47 +64512,47 @@ function sPe(e, t) {
}
return n;
}
-var K1 = 1e-5, cPe = Math.cos(tK(45)), lPe = "angleAxis";
-function uPe(e) {
- var t = qB(), n = iW(), r = (0, R.useMemo)(() => {
- var { children: t, type: r } = e, i = G1(e, nPe), a = VK(n, "angleAxis", r);
- if (a != null) return W1(W1({}, i), {}, { type: a });
- }, [e, n]), i = r === Q((e) => KK(e, r?.id));
- return (0, R.useEffect)(() => r == null ? uB : (t(LNe(r)), () => {
- t(RNe(r));
+var G1 = 1e-5, uPe = Math.cos(eK(45)), dPe = "angleAxis";
+function fPe(e) {
+ var t = KB(), n = rW(), r = (0, R.useMemo)(() => {
+ var { children: t, type: r } = e, i = W1(e, iPe), a = BK(n, "angleAxis", r);
+ if (a != null) return U1(U1({}, i), {}, { type: a });
+ }, [e, n]), i = r === Q((e) => GK(e, r?.id));
+ return (0, R.useEffect)(() => r == null ? lB : (t(zNe(r)), () => {
+ t(BNe(r));
}), [t, r]), i ? e.children : null;
}
-var dPe = (e, t) => {
- var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = nK(n, r, i, e.coordinate), l = nK(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
+var pPe = (e, t) => {
+ var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = tK(n, r, i, e.coordinate), l = tK(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
};
-}, fPe = (e, t) => {
- var n = Math.cos(tK(-e.coordinate));
- return n > K1 ? t === "outer" ? "start" : "end" : n < -K1 ? t === "outer" ? "end" : "start" : "middle";
-}, pPe = (e) => {
- var t = Math.cos(tK(-e.coordinate)), n = Math.sin(tK(-e.coordinate));
- return Math.abs(t) <= cPe ? n > 0 ? "start" : "end" : "middle";
-}, mPe = (e) => {
+}, mPe = (e, t) => {
+ var n = Math.cos(eK(-e.coordinate));
+ return n > G1 ? t === "outer" ? "start" : "end" : n < -G1 ? t === "outer" ? "end" : "start" : "middle";
+}, hPe = (e) => {
+ var t = Math.cos(eK(-e.coordinate)), n = Math.sin(eK(-e.coordinate));
+ return Math.abs(t) <= uPe ? n > 0 ? "start" : "end" : "middle";
+}, gPe = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
- var s = W1(W1({}, WR(e)), {}, { fill: "none" }, WR(a));
- if (i === "circle") return /*#__PURE__*/ R.createElement(h1, H1({ className: "recharts-polar-angle-axis-line" }, s, {
+ var s = U1(U1({}, UR(e)), {}, { fill: "none" }, UR(a));
+ if (i === "circle") return /*#__PURE__*/ R.createElement(m1, V1({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
- var c = o.map((e) => nK(t, n, r, e.coordinate));
- return /*#__PURE__*/ R.createElement(p1, H1({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, hPe = (e) => {
+ var c = o.map((e) => tK(t, n, r, e.coordinate));
+ return /*#__PURE__*/ R.createElement(f1, V1({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
+}, _Pe = (e) => {
var { tick: t, tickProps: n, value: r } = e;
- return t ? /*#__PURE__*/ R.isValidElement(t) ? /*#__PURE__*/ R.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ R.createElement(B$, H1({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
-}, gPe = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = WR(e), { ref: s } = o, c = G1(o, rPe), l = GR(t), u = W1(W1({}, c), {}, { fill: "none" }, WR(n)), d = a.map((a, o) => {
- var s = dPe(a, e), d = fPe(a, e.orientation), f = pPe(a), p = W1(W1(W1({}, c), {}, {
+ return t ? /*#__PURE__*/ R.isValidElement(t) ? /*#__PURE__*/ R.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ R.createElement(z$, V1({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
+}, vPe = (e) => {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = UR(e), { ref: s } = o, c = W1(o, aPe), l = WR(t), u = U1(U1({}, c), {}, { fill: "none" }, UR(n)), d = a.map((a, o) => {
+ var s = pPe(a, e), d = mPe(a, e.orientation), f = hPe(a), p = U1(U1(U1({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -64496,28 +64563,28 @@ var dPe = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ R.createElement(XR, H1({
- className: Sh("recharts-polar-angle-axis-tick", I1(t)),
+ return /*#__PURE__*/ R.createElement(YR, V1({
+ className: Sh("recharts-polar-angle-axis-tick", F1(t)),
key: `tick-${a.coordinate}`
- }, vB(e, a, o)), n && /*#__PURE__*/ R.createElement("line", H1({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ R.createElement(hPe, {
+ }, _B(e, a, o)), n && /*#__PURE__*/ R.createElement("line", V1({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ R.createElement(_Pe, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ R.createElement(XR, { className: "recharts-polar-angle-axis-ticks" }, d);
-}, _Pe = (e) => {
- var { angleAxisId: t } = e, n = Q(eq), r = Q((e) => T1(e, "angleAxis", t)), i = IU(), a = Q((e) => yNe(e, "angleAxis", t, i));
+ return /*#__PURE__*/ R.createElement(YR, { className: "recharts-polar-angle-axis-ticks" }, d);
+}, yPe = (e) => {
+ var { angleAxisId: t } = e, n = Q($K), r = Q((e) => w1(e, "angleAxis", t)), i = FU(), a = Q((e) => xNe(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
- var o = W1(W1(W1({}, e), {}, { scale: r }, n), {}, {
+ var o = U1(U1(U1({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ R.createElement(QQ, { zIndex: o.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: Sh("recharts-polar-angle-axis", lPe, o.className) }, /*#__PURE__*/ R.createElement(mPe, o), /*#__PURE__*/ R.createElement(gPe, o)));
+ return /*#__PURE__*/ R.createElement(ZQ, { zIndex: o.zIndex }, /*#__PURE__*/ R.createElement(YR, { className: Sh("recharts-polar-angle-axis", dPe, o.className) }, /*#__PURE__*/ R.createElement(gPe, o), /*#__PURE__*/ R.createElement(vPe, o)));
};
-function q1(e) {
- var t = bB(e, RK);
- return /*#__PURE__*/ R.createElement(uPe, {
+function K1(e) {
+ var t = yB(e, LK);
+ return /*#__PURE__*/ R.createElement(fPe, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -64534,12 +64601,12 @@ function q1(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ R.createElement(_Pe, t));
+ }, /*#__PURE__*/ R.createElement(yPe, t));
}
-q1.displayName = "PolarAngleAxis";
+K1.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var vPe = /* @__PURE__ */ Ct(((e) => {
+var bPe = /* @__PURE__ */ Ct(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition");
function m(e) {
if (typeof e == "object" && e) {
@@ -64568,26 +64635,26 @@ var vPe = /* @__PURE__ */ Ct(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), yPe = (/* @__PURE__ */ Ct(((e, t) => {
- t.exports = vPe();
-})))(), J1 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", Y1 = null, X1 = null, Z1 = (e) => {
- if (e === Y1 && Array.isArray(X1)) return X1;
+})), xPe = (/* @__PURE__ */ Ct(((e, t) => {
+ t.exports = bPe();
+})))(), q1 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", J1 = null, Y1 = null, X1 = (e) => {
+ if (e === J1 && Array.isArray(Y1)) return Y1;
var t = [];
return R.Children.forEach(e, (e) => {
- sB(e) || ((0, yPe.isFragment)(e) ? t = t.concat(Z1(e.props.children)) : t.push(e));
- }), X1 = t, Y1 = e, t;
+ oB(e) || ((0, xPe.isFragment)(e) ? t = t.concat(X1(e.props.children)) : t.push(e));
+ }), Y1 = t, J1 = e, t;
};
-function Q1(e, t) {
+function Z1(e, t) {
var n = [], r = [];
- return r = Array.isArray(t) ? t.map((e) => J1(e)) : [J1(t)], Z1(e).forEach((e) => {
- var t = Yz(e, "type.displayName") || Yz(e, "type.name");
+ return r = Array.isArray(t) ? t.map((e) => q1(e)) : [q1(t)], X1(e).forEach((e) => {
+ var t = Jz(e, "type.displayName") || Jz(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
-var $1 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
+var Q1 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
-function bPe(e) {
+function SPe(e) {
if (typeof e != "object" || !e) return !1;
if (Object.getPrototypeOf(e) === null) return !0;
if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -64600,8 +64667,8 @@ function bPe(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
-var xPe, SPe, CPe, wPe, TPe;
-function e0(e, t) {
+var CPe, wPe, TPe, EPe, DPe;
+function $1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64611,30 +64678,30 @@ function e0(e, t) {
}
return n;
}
-function t0(e) {
+function e0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? e0(Object(n), !0).forEach(function(t) {
- EPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : e0(Object(n)).forEach(function(t) {
+ t % 2 ? $1(Object(n), !0).forEach(function(t) {
+ OPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function EPe(e, t, n) {
- return (t = DPe(t)) in e ? Object.defineProperty(e, t, {
+function OPe(e, t, n) {
+ return (t = kPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function DPe(e) {
- var t = OPe(e, "string");
+function kPe(e) {
+ var t = APe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function OPe(e, t) {
+function APe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64644,42 +64711,42 @@ function OPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function n0() {
- return n0 = Object.assign ? Object.assign.bind() : function(e) {
+function t0() {
+ return t0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, n0.apply(null, arguments);
+ }, t0.apply(null, arguments);
}
-function r0(e, t) {
+function n0(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var i0 = (e, t, n, r, i) => {
- var a = n - r, o = Zz(xPe ||= r0([
+var r0 = (e, t, n, r, i) => {
+ var a = n - r, o = Xz(CPe ||= n0([
"M ",
",",
""
]), e, t);
- return o += Zz(SPe ||= r0([
+ return o += Xz(wPe ||= n0([
"L ",
",",
""
- ]), e + n, t), o += Zz(CPe ||= r0([
+ ]), e + n, t), o += Xz(TPe ||= n0([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += Zz(wPe ||= r0([
+ ]), e + n - a / 2, t + i), o += Xz(EPe ||= n0([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += Zz(TPe ||= r0([
+ ]), e + n - a / 2 - r, t + i), o += Xz(DPe ||= n0([
"L ",
",",
" Z"
]), e, t), o;
-}, kPe = {
+}, jPe = {
x: 0,
y: 0,
upperWidth: 0,
@@ -64689,8 +64756,8 @@ var i0 = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, APe = (e) => {
- var t = bB(e, kPe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, R.useRef)(null), [p, m] = (0, R.useState)(-1), h = (0, R.useRef)(i), g = (0, R.useRef)(a), _ = (0, R.useRef)(o), v = (0, R.useRef)(n), y = (0, R.useRef)(r), b = UG(e, "trapezoid-");
+}, MPe = (e) => {
+ var t = yB(e, jPe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, R.useRef)(null), [p, m] = (0, R.useState)(-1), h = (0, R.useRef)(i), g = (0, R.useRef)(a), _ = (0, R.useRef)(o), v = (0, R.useRef)(n), y = (0, R.useRef)(r), b = HG(e, "trapezoid-");
if ((0, R.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
@@ -64698,12 +64765,12 @@ var i0 = (e, t, n, r, i) => {
} catch {}
}, []), n !== +n || r !== +r || i !== +i || a !== +a || o !== +o || i === 0 && a === 0 || o === 0) return null;
var x = Sh("recharts-trapezoid", s);
- if (!d) return /*#__PURE__*/ R.createElement("g", null, /*#__PURE__*/ R.createElement("path", n0({}, KR(t), {
+ if (!d) return /*#__PURE__*/ R.createElement("g", null, /*#__PURE__*/ R.createElement("path", t0({}, GR(t), {
className: x,
- d: i0(n, r, i, a, o)
+ d: r0(n, r, i, a, o)
})));
- var S = h.current, C = g.current, w = _.current, T = v.current, E = y.current, D = `0px ${p === -1 ? 1 : p}px`, O = `${p}px ${p}px`, k = kG(["strokeDasharray"], l, c);
- return /*#__PURE__*/ R.createElement(HG, {
+ var S = h.current, C = g.current, w = _.current, T = v.current, E = y.current, D = `0px ${p === -1 ? 1 : p}px`, O = `${p}px ${p}px`, k = OG(["strokeDasharray"], l, c);
+ return /*#__PURE__*/ R.createElement(VG, {
animationId: b,
key: b,
canBegin: p > 0,
@@ -64712,35 +64779,35 @@ var i0 = (e, t, n, r, i) => {
isActive: d,
begin: u
}, (e) => {
- var s = aB(S, i, e), c = aB(C, a, e), l = aB(w, o, e), u = aB(T, n, e), d = aB(E, r, e);
+ var s = iB(S, i, e), c = iB(C, a, e), l = iB(w, o, e), u = iB(T, n, e), d = iB(E, r, e);
f.current && (h.current = s, g.current = c, _.current = l, v.current = u, y.current = d);
var p = e > 0 ? {
transition: k,
strokeDasharray: O
} : { strokeDasharray: D };
- return /*#__PURE__*/ R.createElement("path", n0({}, KR(t), {
+ return /*#__PURE__*/ R.createElement("path", t0({}, GR(t), {
className: x,
- d: i0(u, d, s, c, l),
+ d: r0(u, d, s, c, l),
ref: f,
- style: t0(t0({}, p), t.style)
+ style: e0(e0({}, p), t.style)
}));
});
-}, jPe = [
+}, NPe = [
"option",
"shapeType",
"activeClassName",
"inActiveClassName"
];
-function MPe(e, t) {
+function PPe(e, t) {
if (e == null) return {};
- var n, r, i = NPe(e, t);
+ var n, r, i = FPe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function NPe(e, t) {
+function FPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64749,7 +64816,7 @@ function NPe(e, t) {
}
return n;
}
-function a0(e, t) {
+function i0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64759,30 +64826,30 @@ function a0(e, t) {
}
return n;
}
-function o0(e) {
+function a0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? a0(Object(n), !0).forEach(function(t) {
- PPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : a0(Object(n)).forEach(function(t) {
+ t % 2 ? i0(Object(n), !0).forEach(function(t) {
+ IPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function PPe(e, t, n) {
- return (t = FPe(t)) in e ? Object.defineProperty(e, t, {
+function IPe(e, t, n) {
+ return (t = LPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function FPe(e) {
- var t = IPe(e, "string");
+function LPe(e) {
+ var t = RPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function IPe(e, t) {
+function RPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64792,68 +64859,68 @@ function IPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function LPe(e, t) {
- return o0(o0({}, t), e);
+function zPe(e, t) {
+ return a0(a0({}, t), e);
}
-function RPe(e, t) {
+function BPe(e, t) {
return e === "symbols";
}
-function s0(e) {
+function o0(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
- case "rectangle": return /*#__PURE__*/ R.createElement(ZG, n);
- case "trapezoid": return /*#__PURE__*/ R.createElement(APe, n);
- case "sector": return /*#__PURE__*/ R.createElement(cK, n);
+ case "rectangle": return /*#__PURE__*/ R.createElement(XG, n);
+ case "trapezoid": return /*#__PURE__*/ R.createElement(MPe, n);
+ case "sector": return /*#__PURE__*/ R.createElement(sK, n);
case "symbols":
- if (RPe(t, n)) return /*#__PURE__*/ R.createElement(hB, n);
+ if (BPe(t, n)) return /*#__PURE__*/ R.createElement(mB, n);
break;
- case "curve": return /*#__PURE__*/ R.createElement(wG, n);
+ case "curve": return /*#__PURE__*/ R.createElement(CG, n);
default: return null;
}
}
-function zPe(e) {
+function VPe(e) {
return /*#__PURE__*/ (0, R.isValidElement)(e) ? e.props : e;
}
-function c0(e) {
- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = MPe(e, jPe), o;
- if (/*#__PURE__*/ (0, R.isValidElement)(t)) o = /*#__PURE__*/ (0, R.cloneElement)(t, o0(o0({}, a), zPe(t)));
+function s0(e) {
+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = PPe(e, NPe), o;
+ if (/*#__PURE__*/ (0, R.isValidElement)(t)) o = /*#__PURE__*/ (0, R.cloneElement)(t, a0(a0({}, a), VPe(t)));
else if (typeof t == "function") o = t(a, a.index);
- else if (bPe(t) && typeof t != "boolean") {
- var s = LPe(t, a);
- o = /*#__PURE__*/ R.createElement(s0, {
+ else if (SPe(t) && typeof t != "boolean") {
+ var s = zPe(t, a);
+ o = /*#__PURE__*/ R.createElement(o0, {
shapeType: n,
elementProps: s
});
} else {
var c = a;
- o = /*#__PURE__*/ R.createElement(s0, {
+ o = /*#__PURE__*/ R.createElement(o0, {
shapeType: n,
elementProps: c
});
}
- return a.isActive ? /*#__PURE__*/ R.createElement(XR, { className: r }, o) : /*#__PURE__*/ R.createElement(XR, { className: i }, o);
+ return a.isActive ? /*#__PURE__*/ R.createElement(YR, { className: r }, o) : /*#__PURE__*/ R.createElement(YR, { className: i }, o);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
-var l0 = (e, t, n) => {
- var r = qB();
+var c0 = (e, t, n) => {
+ var r = KB();
return (i, a) => (o) => {
- e?.(i, a, o), r($Z({
+ e?.(i, a, o), r(QZ({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
activeGraphicalItemId: n
}));
};
-}, u0 = (e) => {
- var t = qB();
+}, l0 = (e) => {
+ var t = KB();
return (n, r) => (i) => {
- e?.(n, r, i), t(wAe());
+ e?.(n, r, i), t(EAe());
};
-}, d0 = (e, t, n) => {
- var r = qB();
+}, u0 = (e, t, n) => {
+ var r = KB();
return (i, a) => (o) => {
- e?.(i, a, o), r(TAe({
+ e?.(i, a, o), r(DAe({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -64863,10 +64930,10 @@ var l0 = (e, t, n) => {
};
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
-function f0(e) {
- var { tooltipEntrySettings: t } = e, n = qB(), r = IU(), i = (0, R.useRef)(null);
+function d0(e) {
+ var { tooltipEntrySettings: t } = e, n = KB(), r = FU(), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- r || (i.current === null ? n(bAe(t)) : i.current !== t && n(xAe({
+ r || (i.current === null ? n(SAe(t)) : i.current !== t && n(CAe({
prev: i.current,
next: t
})), i.current = t);
@@ -64875,15 +64942,15 @@ function f0(e) {
n,
r
]), (0, R.useLayoutEffect)(() => () => {
- i.current &&= (n(SAe(i.current)), null);
+ i.current &&= (n(wAe(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
-function p0(e) {
- var { legendPayload: t } = e, n = qB(), r = IU(), i = (0, R.useRef)(null);
+function f0(e) {
+ var { legendPayload: t } = e, n = KB(), r = FU(), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- r || (i.current === null ? n(JW(t)) : i.current !== t && n(YW({
+ r || (i.current === null ? n(qW(t)) : i.current !== t && n(JW({
prev: i.current,
next: t
})), i.current = t);
@@ -64892,13 +64959,13 @@ function p0(e) {
r,
t
]), (0, R.useLayoutEffect)(() => () => {
- i.current &&= (n(XW(i.current)), null);
+ i.current &&= (n(YW(i.current)), null);
}, [n]), null;
}
-function m0(e) {
- var { legendPayload: t } = e, n = qB(), r = Q(eW), i = (0, R.useRef)(null);
+function p0(e) {
+ var { legendPayload: t } = e, n = KB(), r = Q($U), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- (r === "centric" || r === "radial") && (i.current === null ? n(JW(t)) : i.current !== t && n(YW({
+ (r === "centric" || r === "radial") && (i.current === null ? n(qW(t)) : i.current !== t && n(JW({
prev: i.current,
next: t
})), i.current = t);
@@ -64907,27 +64974,27 @@ function m0(e) {
r,
t
]), (0, R.useLayoutEffect)(() => () => {
- i.current &&= (n(XW(i.current)), null);
+ i.current &&= (n(YW(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var BPe = R.useId ?? (() => {
- var [e] = R.useState(() => nB("uid-"));
+var HPe = R.useId ?? (() => {
+ var [e] = R.useState(() => tB("uid-"));
return e;
});
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function VPe(e, t) {
- var n = BPe();
+function UPe(e, t) {
+ var n = HPe();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var HPe = /*#__PURE__*/ (0, R.createContext)(void 0), h0 = (e) => {
- var { id: t, type: n, children: r } = e, i = VPe(`recharts-${n}`, t);
- return /*#__PURE__*/ R.createElement(HPe.Provider, { value: i }, r(i));
-}, g0 = PH({
+var WPe = /*#__PURE__*/ (0, R.createContext)(void 0), m0 = (e) => {
+ var { id: t, type: n, children: r } = e, i = UPe(`recharts-${n}`, t);
+ return /*#__PURE__*/ R.createElement(WPe.Provider, { value: i }, r(i));
+}, h0 = NH({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -64936,80 +65003,80 @@ var HPe = /*#__PURE__*/ (0, R.createContext)(void 0), h0 = (e) => {
reducers: {
addCartesianGraphicalItem: {
reducer(e, t) {
- e.cartesianItems.push(GW(t.payload));
+ e.cartesianItems.push(WW(t.payload));
},
- prepare: AH()
+ prepare: kH()
},
replaceCartesianGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = xH(e).cartesianItems.indexOf(GW(n));
- i > -1 && (e.cartesianItems[i] = GW(r));
+ var { prev: n, next: r } = t.payload, i = bH(e).cartesianItems.indexOf(WW(n));
+ i > -1 && (e.cartesianItems[i] = WW(r));
},
- prepare: AH()
+ prepare: kH()
},
removeCartesianGraphicalItem: {
reducer(e, t) {
- var n = xH(e).cartesianItems.indexOf(GW(t.payload));
+ var n = bH(e).cartesianItems.indexOf(WW(t.payload));
n > -1 && e.cartesianItems.splice(n, 1);
},
- prepare: AH()
+ prepare: kH()
},
addPolarGraphicalItem: {
reducer(e, t) {
- e.polarItems.push(GW(t.payload));
+ e.polarItems.push(WW(t.payload));
},
- prepare: AH()
+ prepare: kH()
},
removePolarGraphicalItem: {
reducer(e, t) {
- var n = xH(e).polarItems.indexOf(GW(t.payload));
+ var n = bH(e).polarItems.indexOf(WW(t.payload));
n > -1 && e.polarItems.splice(n, 1);
},
- prepare: AH()
+ prepare: kH()
},
replacePolarGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = xH(e).polarItems.indexOf(GW(n));
- i > -1 && (e.polarItems[i] = GW(r));
+ var { prev: n, next: r } = t.payload, i = bH(e).polarItems.indexOf(WW(n));
+ i > -1 && (e.polarItems[i] = WW(r));
},
- prepare: AH()
+ prepare: kH()
}
}
-}), { addCartesianGraphicalItem: UPe, replaceCartesianGraphicalItem: WPe, removeCartesianGraphicalItem: GPe, addPolarGraphicalItem: KPe, removePolarGraphicalItem: qPe, replacePolarGraphicalItem: JPe } = g0.actions, YPe = g0.reducer, _0 = /*#__PURE__*/ (0, R.memo)((e) => {
- var t = qB(), n = (0, R.useRef)(null);
+}), { addCartesianGraphicalItem: GPe, replaceCartesianGraphicalItem: KPe, removeCartesianGraphicalItem: qPe, addPolarGraphicalItem: JPe, removePolarGraphicalItem: YPe, replacePolarGraphicalItem: XPe } = h0.actions, ZPe = h0.reducer, g0 = /*#__PURE__*/ (0, R.memo)((e) => {
+ var t = KB(), n = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- n.current === null ? t(UPe(e)) : n.current !== e && t(WPe({
+ n.current === null ? t(GPe(e)) : n.current !== e && t(KPe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, R.useLayoutEffect)(() => () => {
- n.current &&= (t(GPe(n.current)), null);
+ n.current &&= (t(qPe(n.current)), null);
}, [t]), null;
-}), v0 = /*#__PURE__*/ (0, R.memo)((e) => {
- var t = qB(), n = (0, R.useRef)(null);
+}), _0 = /*#__PURE__*/ (0, R.memo)((e) => {
+ var t = KB(), n = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- n.current === null ? t(KPe(e)) : n.current !== e && t(JPe({
+ n.current === null ? t(JPe(e)) : n.current !== e && t(XPe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, R.useLayoutEffect)(() => () => {
- n.current &&= (t(qPe(n.current)), null);
+ n.current &&= (t(YPe(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function XPe(e) {
+function QPe(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function ZPe(e) {
- if (!(!EB(e) || e.length === 0)) return XPe(P1(e));
+function $Pe(e) {
+ if (!(!TB(e) || e.length === 0)) return QPe(N1(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var QPe = ["points"];
-function y0(e, t) {
+var eFe = ["points"];
+function v0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65019,30 +65086,30 @@ function y0(e, t) {
}
return n;
}
-function b0(e) {
+function y0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? y0(Object(n), !0).forEach(function(t) {
- $Pe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y0(Object(n)).forEach(function(t) {
+ t % 2 ? v0(Object(n), !0).forEach(function(t) {
+ tFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : v0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $Pe(e, t, n) {
- return (t = eFe(t)) in e ? Object.defineProperty(e, t, {
+function tFe(e, t, n) {
+ return (t = nFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function eFe(e) {
- var t = tFe(e, "string");
+function nFe(e) {
+ var t = rFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tFe(e, t) {
+function rFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65052,25 +65119,25 @@ function tFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function x0() {
- return x0 = Object.assign ? Object.assign.bind() : function(e) {
+function b0() {
+ return b0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, x0.apply(null, arguments);
+ }, b0.apply(null, arguments);
}
-function nFe(e, t) {
+function iFe(e, t) {
if (e == null) return {};
- var n, r, i = rFe(e, t);
+ var n, r, i = aFe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function rFe(e, t) {
+function aFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65079,21 +65146,21 @@ function rFe(e, t) {
}
return n;
}
-function iFe(e) {
+function oFe(e) {
var { option: t, dotProps: n, className: r } = e;
if (/*#__PURE__*/ (0, R.isValidElement)(t)) return /*#__PURE__*/ (0, R.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = Sh(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = nFe(a, QPe);
- return /*#__PURE__*/ R.createElement(h1, x0({}, s, { className: i }));
+ var i = Sh(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = iFe(a, eFe);
+ return /*#__PURE__*/ R.createElement(m1, b0({}, s, { className: i }));
}
-function aFe(e, t) {
+function sFe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
-function S0(e) {
- var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = LK.scatter } = e;
- if (!aFe(t, n)) return null;
- var u = $1(n), d = pbe(n), f = t.map((e, r) => {
- var s = b0(b0(b0({ r: 3 }, o), d), {}, {
+function x0(e) {
+ var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = IK.scatter } = e;
+ if (!sFe(t, n)) return null;
+ var u = Q1(n), d = hbe(n), f = t.map((e, r) => {
+ var s = y0(y0(y0({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
cy: e.y ?? void 0,
@@ -65102,18 +65169,18 @@ function S0(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ R.createElement(iFe, {
+ return /*#__PURE__*/ R.createElement(oFe, {
key: `dot-${r}`,
option: n,
dotProps: s,
className: i
});
}), p = {};
- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ R.createElement(QQ, { zIndex: l }, /*#__PURE__*/ R.createElement(XR, x0({ className: r }, p), f));
+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ R.createElement(ZQ, { zIndex: l }, /*#__PURE__*/ R.createElement(YR, b0({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
-function C0(e, t) {
+function S0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65123,30 +65190,30 @@ function C0(e, t) {
}
return n;
}
-function w0(e) {
+function C0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? C0(Object(n), !0).forEach(function(t) {
- oFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C0(Object(n)).forEach(function(t) {
+ t % 2 ? S0(Object(n), !0).forEach(function(t) {
+ cFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oFe(e, t, n) {
- return (t = sFe(t)) in e ? Object.defineProperty(e, t, {
+function cFe(e, t, n) {
+ return (t = lFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sFe(e) {
- var t = cFe(e, "string");
+function lFe(e) {
+ var t = uFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cFe(e, t) {
+function uFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65156,7 +65223,7 @@ function cFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var T0 = PH({
+var w0 = NH({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -65166,60 +65233,60 @@ var T0 = PH({
reducers: {
addXAxis: {
reducer(e, t) {
- e.xAxis[t.payload.id] = GW(t.payload);
+ e.xAxis[t.payload.id] = WW(t.payload);
},
- prepare: AH()
+ prepare: kH()
},
replaceXAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = GW(r));
+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = WW(r));
},
- prepare: AH()
+ prepare: kH()
},
removeXAxis: {
reducer(e, t) {
delete e.xAxis[t.payload.id];
},
- prepare: AH()
+ prepare: kH()
},
addYAxis: {
reducer(e, t) {
- e.yAxis[t.payload.id] = GW(t.payload);
+ e.yAxis[t.payload.id] = WW(t.payload);
},
- prepare: AH()
+ prepare: kH()
},
replaceYAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = GW(r));
+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = WW(r));
},
- prepare: AH()
+ prepare: kH()
},
removeYAxis: {
reducer(e, t) {
delete e.yAxis[t.payload.id];
},
- prepare: AH()
+ prepare: kH()
},
addZAxis: {
reducer(e, t) {
- e.zAxis[t.payload.id] = GW(t.payload);
+ e.zAxis[t.payload.id] = WW(t.payload);
},
- prepare: AH()
+ prepare: kH()
},
replaceZAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = GW(r));
+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = WW(r));
},
- prepare: AH()
+ prepare: kH()
},
removeZAxis: {
reducer(e, t) {
delete e.zAxis[t.payload.id];
},
- prepare: AH()
+ prepare: kH()
},
updateYAxisWidth(e, t) {
var { id: n, width: r } = t.payload, i = e.yAxis[n];
@@ -65227,22 +65294,22 @@ var T0 = PH({
var a = i.widthHistory || [];
if (a.length === 3 && a[0] === a[2] && r === a[1] && r !== i.width && Math.abs(r - (a[0] ?? 0)) <= 1) return;
var o = [...a, r].slice(-3);
- e.yAxis[n] = w0(w0({}, i), {}, {
+ e.yAxis[n] = C0(C0({}, i), {}, {
width: r,
widthHistory: o
});
}
}
}
-}), { addXAxis: lFe, replaceXAxis: uFe, removeXAxis: dFe, addYAxis: fFe, replaceYAxis: pFe, removeYAxis: mFe, addZAxis: hFe, replaceZAxis: gFe, removeZAxis: _Fe, updateYAxisWidth: vFe } = T0.actions, yFe = T0.reducer, bFe = $([
- $([PU], (e) => ({
+}), { addXAxis: dFe, replaceXAxis: fFe, removeXAxis: pFe, addYAxis: mFe, replaceYAxis: hFe, removeYAxis: gFe, addZAxis: _Fe, replaceZAxis: vFe, removeZAxis: yFe, updateYAxisWidth: bFe } = w0.actions, xFe = w0.reducer, SFe = $([
+ $([NU], (e) => ({
top: e.top,
bottom: e.bottom,
left: e.left,
right: e.right
})),
- DU,
- OU
+ EU,
+ DU
], (e, t, n) => {
if (!(!e || t == null || n == null)) return {
x: e.left,
@@ -65250,10 +65317,10 @@ var T0 = PH({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), E0 = () => Q(bFe), xFe = () => Q(eje);
+}), T0 = () => Q(SFe), CFe = () => Q(nje);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
-function D0(e, t) {
+function E0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65263,30 +65330,30 @@ function D0(e, t) {
}
return n;
}
-function O0(e) {
+function D0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? D0(Object(n), !0).forEach(function(t) {
- SFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D0(Object(n)).forEach(function(t) {
+ t % 2 ? E0(Object(n), !0).forEach(function(t) {
+ wFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function SFe(e, t, n) {
- return (t = CFe(t)) in e ? Object.defineProperty(e, t, {
+function wFe(e, t, n) {
+ return (t = TFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function CFe(e) {
- var t = wFe(e, "string");
+function TFe(e) {
+ var t = EFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wFe(e, t) {
+function EFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65296,10 +65363,10 @@ function wFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var TFe = (e) => {
+var DFe = (e) => {
var { point: t, childIndex: n, mainColor: r, activeDot: i, dataKey: a, clipPath: o } = e;
if (i === !1 || t.x == null || t.y == null) return null;
- var s = O0(O0(O0({}, {
+ var s = D0(D0(D0({}, {
index: n,
dataKey: a,
cx: t.x,
@@ -65310,17 +65377,17 @@ var TFe = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), GR(i)), _B(i)), c = /*#__PURE__*/ (0, R.isValidElement)(i) ? /*#__PURE__*/ (0, R.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ R.createElement(h1, s);
- return /*#__PURE__*/ R.createElement(XR, {
+ }), WR(i)), gB(i)), c = /*#__PURE__*/ (0, R.isValidElement)(i) ? /*#__PURE__*/ (0, R.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ R.createElement(m1, s);
+ return /*#__PURE__*/ R.createElement(YR, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
-function k0(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = LK.activeDot } = e, s = Q(jQ), c = xFe();
+function O0(e) {
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = IK.activeDot } = e, s = Q(AQ), c = CFe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return sB(l) ? null : /*#__PURE__*/ R.createElement(QQ, { zIndex: o }, /*#__PURE__*/ R.createElement(TFe, {
+ return oB(l) ? null : /*#__PURE__*/ R.createElement(ZQ, { zIndex: o }, /*#__PURE__*/ R.createElement(DFe, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -65331,7 +65398,7 @@ function k0(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/radarSelectors.js
-function A0(e, t) {
+function k0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65341,30 +65408,30 @@ function A0(e, t) {
}
return n;
}
-function j0(e) {
+function A0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? A0(Object(n), !0).forEach(function(t) {
- EFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A0(Object(n)).forEach(function(t) {
+ t % 2 ? k0(Object(n), !0).forEach(function(t) {
+ OFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function EFe(e, t, n) {
- return (t = DFe(t)) in e ? Object.defineProperty(e, t, {
+function OFe(e, t, n) {
+ return (t = kFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function DFe(e) {
- var t = OFe(e, "string");
+function kFe(e) {
+ var t = AFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function OFe(e, t) {
+function AFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65374,16 +65441,16 @@ function OFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var M0 = (e, t) => T1(e, "radiusAxis", t), kFe = $([M0], (e) => {
+var j0 = (e, t) => w1(e, "radiusAxis", t), jFe = $([j0], (e) => {
if (e != null) return { scale: e };
-}), AFe = $([qK, M0], (e, t) => {
- if (e != null && t != null) return j0(j0({}, e), {}, { scale: t });
-}), jFe = (e, t, n, r) => D1(e, "radiusAxis", t, r), N0 = (e, t, n) => KK(e, n), P0 = (e, t, n) => T1(e, "angleAxis", n), MFe = $([N0, P0], (e, t) => {
- if (e != null && t != null) return j0(j0({}, e), {}, { scale: t });
-}), NFe = (e, t, n, r) => D1(e, "angleAxis", n, r), PFe = $([
+}), MFe = $([KK, j0], (e, t) => {
+ if (e != null && t != null) return A0(A0({}, e), {}, { scale: t });
+}), NFe = (e, t, n, r) => E1(e, "radiusAxis", t, r), M0 = (e, t, n) => GK(e, n), N0 = (e, t, n) => w1(e, "angleAxis", n), PFe = $([M0, N0], (e, t) => {
+ if (e != null && t != null) return A0(A0({}, e), {}, { scale: t });
+}), FFe = (e, t, n, r) => E1(e, "angleAxis", n, r), IFe = $([
+ M0,
N0,
- P0,
- eq
+ $K
], (e, t, n) => {
if (n != null && t != null) return {
scale: t,
@@ -65392,40 +65459,40 @@ var M0 = (e, t) => T1(e, "radiusAxis", t), kFe = $([M0], (e) => {
cx: n.cx,
cy: n.cy
};
-}), FFe = (e, t, n, r, i) => i, IFe = $([
- eW,
- AFe,
- jFe,
+}), LFe = (e, t, n, r, i) => i, RFe = $([
+ $U,
MFe,
- NFe
-], (e, t, n, r, i) => mU(e, "radiusAxis") ? wU(t, n, !1) : wU(r, i, !1)), LFe = $([
- kFe,
+ NFe,
PFe,
- fK,
- $([g1, FFe], (e, t) => {
+ FFe
+], (e, t, n, r, i) => pU(e, "radiusAxis") ? CU(t, n, !1) : CU(r, i, !1)), zFe = $([
+ jFe,
+ IFe,
+ dK,
+ $([h1, LFe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- IFe
+ RFe
], (e, t, n, r, i) => {
var { chartData: a, dataStartIndex: o, dataEndIndex: s } = n;
- if (e != null && t != null && a != null && i != null && r != null) return qFe({
+ if (e != null && t != null && a != null && i != null && r != null) return YFe({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), RFe = ["id"];
-function F0() {
- return F0 = Object.assign ? Object.assign.bind() : function(e) {
+}), BFe = ["id"];
+function P0() {
+ return P0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, F0.apply(null, arguments);
+ }, P0.apply(null, arguments);
}
-function I0(e, t) {
+function F0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65435,30 +65502,30 @@ function I0(e, t) {
}
return n;
}
-function L0(e) {
+function I0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? I0(Object(n), !0).forEach(function(t) {
- zFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I0(Object(n)).forEach(function(t) {
+ t % 2 ? F0(Object(n), !0).forEach(function(t) {
+ VFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zFe(e, t, n) {
- return (t = BFe(t)) in e ? Object.defineProperty(e, t, {
+function VFe(e, t, n) {
+ return (t = HFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function BFe(e) {
- var t = VFe(e, "string");
+function HFe(e) {
+ var t = UFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function VFe(e, t) {
+function UFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65468,16 +65535,16 @@ function VFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function HFe(e, t) {
+function WFe(e, t) {
if (e == null) return {};
- var n, r, i = UFe(e, t);
+ var n, r, i = GFe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function UFe(e, t) {
+function GFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65486,42 +65553,42 @@ function UFe(e, t) {
}
return n;
}
-function R0(e, t) {
+function L0(e, t) {
return e && e !== "none" ? e : t;
}
-var WFe = (e) => {
+var KFe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
- color: R0(r, i),
- value: EU(n, t),
+ color: L0(r, i),
+ value: TU(n, t),
payload: e
}];
-}, GFe = /*#__PURE__*/ R.memo((e) => {
+}, qFe = /*#__PURE__*/ R.memo((e) => {
var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, tooltipType: s, id: c } = e, l = {
dataDefinedOnItem: void 0,
- getPosition: uB,
+ getPosition: lB,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
nameKey: void 0,
dataKey: t,
- name: EU(a, t),
+ name: TU(a, t),
hide: o,
type: s,
- color: R0(n, i),
+ color: L0(n, i),
unit: "",
graphicalItemId: c
}
};
- return /*#__PURE__*/ R.createElement(f0, { tooltipEntrySettings: l });
+ return /*#__PURE__*/ R.createElement(d0, { tooltipEntrySettings: l });
});
-function KFe(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = WR(HFe(n, RFe));
- return /*#__PURE__*/ R.createElement(S0, {
+function JFe(e) {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = UR(WFe(n, BFe));
+ return /*#__PURE__*/ R.createElement(x0, {
points: t,
dot: r,
className: "recharts-radar-dots",
@@ -65530,11 +65597,11 @@ function KFe(e) {
baseProps: o
});
}
-function qFe(e) {
+function YFe(e) {
var { radiusAxis: t, angleAxis: n, displayedData: r, dataKey: i, bandSize: a } = e, { cx: o, cy: s } = n, c = !1, l = [], u = n.type === "number" ? 0 : a ?? 0;
r.forEach((e, r) => {
- var a = pU(e, n.dataKey, r), d = pU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? ZPe(d) : d, m = sB(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(L0(L0({}, nK(o, s, m, f)), {}, {
+ var a = fU(e, n.dataKey, r), d = fU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? $Pe(d) : d, m = oB(p) ? 0 : t.scale.map(p) ?? 0;
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(I0(I0({}, tK(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@ -65547,8 +65614,8 @@ function qFe(e) {
var d = [];
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
- var n = e.value[0], r = sB(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(L0(L0({}, e), {}, { radius: r }, nK(o, s, r, e.angle)));
+ var n = e.value[0], r = oB(n) ? 0 : t.scale.map(n) ?? 0;
+ d.push(I0(I0({}, e), {}, { radius: r }, tK(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@ -65556,7 +65623,7 @@ function qFe(e) {
baseLinePoints: d
};
}
-function JFe(e) {
+function XFe(e) {
var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {
var t = {
x: e.x,
@@ -65566,7 +65633,7 @@ function JFe(e) {
upperWidth: 0,
height: 0
};
- return L0(L0({}, t), {}, {
+ return I0(I0({}, t), {}, {
value: e.value ?? "",
payload: e.payload,
parentViewBox: void 0,
@@ -65574,12 +65641,12 @@ function JFe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ R.createElement(o1, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ R.createElement(a1, { value: t ? i : void 0 }, r);
}
-function YFe(e) {
+function ZFe(e) {
var { points: t, baseLinePoints: n, props: r } = e;
if (t == null) return null;
- var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ R.isValidElement(i) ? /*#__PURE__*/ R.cloneElement(i, L0(L0({}, r), {}, { points: t })) : typeof i == "function" ? i(L0(L0({}, r), {}, { points: t })) : /*#__PURE__*/ R.createElement(p1, F0({}, KR(r), {
+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ R.isValidElement(i) ? /*#__PURE__*/ R.cloneElement(i, I0(I0({}, r), {}, { points: t })) : typeof i == "function" ? i(I0(I0({}, r), {}, { points: t })) : /*#__PURE__*/ R.createElement(f1, P0({}, GR(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -65592,31 +65659,31 @@ function YFe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ R.createElement(XR, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ R.createElement(KFe, {
+ return /*#__PURE__*/ R.createElement(YR, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ R.createElement(JFe, {
props: r,
points: t
}));
}
-var z0 = (e, t, n) => (r, i) => {
+var R0 = (e, t, n) => (r, i) => {
var a = e && e[Math.floor(i * t)];
- return a ? L0(L0({}, r), {}, {
- x: aB(a.x, r.x, n),
- y: aB(a.y, r.y, n)
- }) : L0(L0({}, r), {}, {
- x: aB(r.cx, r.x, n),
- y: aB(r.cy, r.y, n)
+ return a ? I0(I0({}, r), {}, {
+ x: iB(a.x, r.x, n),
+ y: iB(a.y, r.y, n)
+ }) : I0(I0({}, r), {}, {
+ x: iB(r.cx, r.x, n),
+ y: iB(r.cy, r.y, n)
});
};
-function XFe(e) {
- var { props: t, previousPointsRef: n, previousBaseLinePointsRef: r } = e, { points: i, baseLinePoints: a, isAnimationActive: o, animationBegin: s, animationDuration: c, animationEasing: l, onAnimationEnd: u, onAnimationStart: d } = t, f = n.current, p = r.current, m = f ? f.length / i.length : 1, h = p ? p.length / a.length : 1, g = UG(t, "recharts-radar-"), [_, v] = (0, R.useState)(!1), y = !_, b = (0, R.useCallback)(() => {
+function QFe(e) {
+ var { props: t, previousPointsRef: n, previousBaseLinePointsRef: r } = e, { points: i, baseLinePoints: a, isAnimationActive: o, animationBegin: s, animationDuration: c, animationEasing: l, onAnimationEnd: u, onAnimationStart: d } = t, f = n.current, p = r.current, m = f ? f.length / i.length : 1, h = p ? p.length / a.length : 1, g = HG(t, "recharts-radar-"), [_, v] = (0, R.useState)(!1), y = !_, b = (0, R.useCallback)(() => {
typeof u == "function" && u(), v(!1);
}, [u]), x = (0, R.useCallback)(() => {
typeof d == "function" && d(), v(!0);
}, [d]);
- return /*#__PURE__*/ R.createElement(JFe, {
+ return /*#__PURE__*/ R.createElement(XFe, {
showLabels: y,
points: i
- }, /*#__PURE__*/ R.createElement(HG, {
+ }, /*#__PURE__*/ R.createElement(VG, {
animationId: g,
begin: s,
duration: c,
@@ -65626,23 +65693,23 @@ function XFe(e) {
onAnimationEnd: b,
onAnimationStart: x
}, (e) => {
- var o = e === 1 ? i : i.map(z0(f, m, e)), s = e === 1 ? a : a?.map(z0(p, h, e));
- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ R.createElement(YFe, {
+ var o = e === 1 ? i : i.map(R0(f, m, e)), s = e === 1 ? a : a?.map(R0(p, h, e));
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ R.createElement(ZFe, {
points: o,
baseLinePoints: s,
props: t
});
- }), /*#__PURE__*/ R.createElement(l1, { label: t.label }), t.children);
+ }), /*#__PURE__*/ R.createElement(c1, { label: t.label }), t.children);
}
-function ZFe(e) {
+function $Fe(e) {
var t = (0, R.useRef)(void 0), n = (0, R.useRef)(void 0);
- return /*#__PURE__*/ R.createElement(XFe, {
+ return /*#__PURE__*/ R.createElement(QFe, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var QFe = {
+var eIe = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
@@ -65654,33 +65721,33 @@ var QFe = {
label: !1,
legendType: "rect",
radiusAxisId: 0,
- zIndex: LK.area
+ zIndex: IK.area
};
-function $Fe(e) {
+function tIe(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
var i = Sh("recharts-radar", n);
- return /*#__PURE__*/ R.createElement(QQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: i }, /*#__PURE__*/ R.createElement(ZFe, e)), /*#__PURE__*/ R.createElement(k0, {
+ return /*#__PURE__*/ R.createElement(ZQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(YR, { className: i }, /*#__PURE__*/ R.createElement($Fe, e)), /*#__PURE__*/ R.createElement(O0, {
points: r,
- mainColor: R0(e.stroke, e.fill),
+ mainColor: L0(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function eIe(e) {
- var t = IU(), n = Q((n) => LFe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ R.createElement($Fe, F0({}, e, {
+function nIe(e) {
+ var t = FU(), n = Q((n) => zFe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ R.createElement(tIe, P0({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
-function B0(e) {
- var t = bB(e, QFe);
- return /*#__PURE__*/ R.createElement(h0, {
+function z0(e) {
+ var t = yB(e, eIe);
+ return /*#__PURE__*/ R.createElement(m0, {
id: t.id,
type: "radar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(v0, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(_0, {
type: "radar",
id: e,
data: void 0,
@@ -65688,7 +65755,7 @@ function B0(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ R.createElement(m0, { legendPayload: WFe(t) }), /*#__PURE__*/ R.createElement(GFe, {
+ }), /*#__PURE__*/ R.createElement(p0, { legendPayload: KFe(t) }), /*#__PURE__*/ R.createElement(qFe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -65697,33 +65764,33 @@ function B0(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(eIe, F0({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(nIe, P0({}, t, { id: e }))));
}
-B0.displayName = "Radar";
+z0.displayName = "Radar";
//#endregion
//#region node_modules/recharts/es6/util/RadialBarUtils.js
-function V0() {
- return V0 = Object.assign ? Object.assign.bind() : function(e) {
+function B0() {
+ return B0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, V0.apply(null, arguments);
+ }, B0.apply(null, arguments);
}
-function H0(e) {
+function V0(e) {
return typeof e == "string" ? parseInt(e, 10) : e;
}
-function U0(e) {
- return /*#__PURE__*/ R.createElement(c0, V0({ shapeType: "sector" }, e));
+function H0(e) {
+ return /*#__PURE__*/ R.createElement(s0, B0({ shapeType: "sector" }, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
-var W0 = (e, t, n) => {
+var U0 = (e, t, n) => {
var r = n ?? e;
- if (!sB(r)) return rB(r, t, 0);
-}, G0 = (e, t, n) => {
- var r = {}, i = e.filter(aq), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
+ if (!oB(r)) return nB(r, t, 0);
+}, W0 = (e, t, n) => {
+ var r = {}, i = e.filter(iq), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
var n = e[t.stackId];
return n ??= [], n.push(t), e[t.stackId] = n, e;
}, r), s = Object.entries(o).map((e) => {
@@ -65731,18 +65798,18 @@ var W0 = (e, t, n) => {
return {
stackId: r,
dataKeys: i.map((e) => e.dataKey),
- barSize: W0(t, n, i[0]?.barSize)
+ barSize: U0(t, n, i[0]?.barSize)
};
}), c = a.map((e) => ({
stackId: void 0,
dataKeys: [e.dataKey].filter((e) => e != null),
- barSize: W0(t, n, e.barSize)
+ barSize: U0(t, n, e.barSize)
}));
return [...s, ...c];
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineAllBarPositions.js
-function K0(e, t) {
+function G0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65752,30 +65819,30 @@ function K0(e, t) {
}
return n;
}
-function q0(e) {
+function K0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? K0(Object(n), !0).forEach(function(t) {
- tIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K0(Object(n)).forEach(function(t) {
+ t % 2 ? G0(Object(n), !0).forEach(function(t) {
+ rIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function tIe(e, t, n) {
- return (t = nIe(t)) in e ? Object.defineProperty(e, t, {
+function rIe(e, t, n) {
+ return (t = iIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nIe(e) {
- var t = rIe(e, "string");
+function iIe(e) {
+ var t = aIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rIe(e, t) {
+function aIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65785,11 +65852,11 @@ function rIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function iIe(e, t, n, r, i) {
+function oIe(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
- var o = rB(e, n, 0, !0), s, c = [];
- if (lU(r[0]?.barSize)) {
+ var o = nB(e, n, 0, !0), s, c = [];
+ if (cU(r[0]?.barSize)) {
var l = !1, u = n / a, d = r.reduce((e, t) => e + (t.barSize || 0), 0);
d += (a - 1) * o, d >= n && (d -= (a - 1) * o, o = 0), d >= n && u > 0 && (l = !0, u *= .9, d = a * u);
var f = {
@@ -65808,11 +65875,11 @@ function iIe(e, t, n, r, i) {
return f = n.position, r;
}, c);
} else {
- var p = rB(t, n, 0, !0);
+ var p = nB(t, n, 0, !0);
n - 2 * p - (a - 1) * o <= 0 && (o = 0);
var m = (n - 2 * p - (a - 1) * o) / a;
m > 1 && (m >>= 0);
- var h = lU(i) ? Math.min(m, i) : m;
+ var h = cU(i) ? Math.min(m, i) : m;
s = r.reduce((e, t, n) => [...e, {
stackId: t.stackId,
dataKeys: t.dataKeys,
@@ -65825,11 +65892,11 @@ function iIe(e, t, n, r, i) {
return s;
}
}
-var J0 = (e, t, n, r, i, a, o) => {
- var s = sB(o) ? t : o, c = iIe(n, r, i === a ? a : i, e, s);
- return i !== a && c != null && (c = c.map((e) => q0(q0({}, e), {}, { position: q0(q0({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
-}, Y0 = (e, t) => {
- var n = rq(t);
+var q0 = (e, t, n, r, i, a, o) => {
+ var s = oB(o) ? t : o, c = oIe(n, r, i === a ? a : i, e, s);
+ return i !== a && c != null && (c = c.map((e) => K0(K0({}, e), {}, { position: K0(K0({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
+}, J0 = (e, t) => {
+ var n = nq(t);
if (!(!e || n == null || t == null)) {
var { stackId: r } = t;
if (r != null) {
@@ -65840,7 +65907,7 @@ var J0 = (e, t, n, r, i, a, o) => {
}
}
}
-}, X0 = (e, t) => {
+}, Y0 = (e, t) => {
if (e != null && t != null) {
var n = e.find((e) => e.stackId === t.stackId && t.dataKey != null && e.dataKeys.includes(t.dataKey));
if (n != null) return n.position;
@@ -65848,7 +65915,7 @@ var J0 = (e, t, n, r, i, a, o) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/radialBarSelectors.js
-function Z0(e, t) {
+function X0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65858,30 +65925,30 @@ function Z0(e, t) {
}
return n;
}
-function Q0(e) {
+function Z0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Z0(Object(n), !0).forEach(function(t) {
- aIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z0(Object(n)).forEach(function(t) {
+ t % 2 ? X0(Object(n), !0).forEach(function(t) {
+ sIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function aIe(e, t, n) {
- return (t = oIe(t)) in e ? Object.defineProperty(e, t, {
+function sIe(e, t, n) {
+ return (t = cIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function oIe(e) {
- var t = sIe(e, "string");
+function cIe(e) {
+ var t = lIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function sIe(e, t) {
+function lIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65891,81 +65958,81 @@ function sIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var $0 = $([(e, t) => qK(e, t), (e, t) => T1(e, "radiusAxis", t)], (e, t) => {
- if (e != null && t != null) return Q0(Q0({}, e), {}, { scale: t });
-}), e2 = (e, t) => bNe(e, "radiusAxis", t, !1), t2 = $([(e, t, n) => KK(e, n), (e, t, n) => T1(e, "angleAxis", n)], (e, t) => {
- if (e != null && t != null) return Q0(Q0({}, e), {}, { scale: t });
-}), n2 = (e, t, n) => D1(e, "angleAxis", n, !1), r2 = $([g1, (e, t, n, r) => r], (e, t) => {
+var Q0 = $([(e, t) => KK(e, t), (e, t) => w1(e, "radiusAxis", t)], (e, t) => {
+ if (e != null && t != null) return Z0(Z0({}, e), {}, { scale: t });
+}), $0 = (e, t) => SNe(e, "radiusAxis", t, !1), e2 = $([(e, t, n) => GK(e, n), (e, t, n) => w1(e, "angleAxis", n)], (e, t) => {
+ if (e != null && t != null) return Z0(Z0({}, e), {}, { scale: t });
+}), t2 = (e, t, n) => E1(e, "angleAxis", n, !1), n2 = $([h1, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
-}), i2 = $([
- eW,
+}), r2 = $([
+ $U,
+ Q0,
$0,
e2,
- t2,
- n2
-], (e, t, n, r, i) => mU(e, "radiusAxis") ? wU(t, n, !1) : wU(r, i, !1)), cIe = $([
- t2,
- $0,
- eW
+ t2
+], (e, t, n, r, i) => pU(e, "radiusAxis") ? CU(t, n, !1) : CU(r, i, !1)), uIe = $([
+ e2,
+ Q0,
+ $U
], (e, t, n) => {
var r = n === "radial" ? e : t;
- if (r != null && r.scale != null) return xU({ numericAxis: r });
-}), lIe = (e, t, n, r, i) => i, uIe = (e, t, n, r, i) => n, dIe = (e, t, n, r, i) => t, a2 = (e, t, n, r, i) => r.maxBarSize, o2 = (e) => e.type === "radialBar", fIe = $([$([
+ if (r != null && r.scale != null) return bU({ numericAxis: r });
+}), dIe = (e, t, n, r, i) => i, fIe = (e, t, n, r, i) => n, pIe = (e, t, n, r, i) => t, i2 = (e, t, n, r, i) => r.maxBarSize, a2 = (e) => e.type === "radialBar", mIe = $([$([
$([
$([
- eW,
- g1,
- uIe,
- dIe
- ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(o2)),
- AK,
+ $U,
+ h1,
+ fIe,
+ pIe
+ ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(a2)),
+ kK,
() => void 0
- ], G0),
+ ], W0),
+ EK,
DK,
OK,
- kK,
$([
- eW,
- DK,
+ $U,
+ EK,
+ e2,
t2,
- n2,
+ Q0,
$0,
- e2,
- a2
+ i2
], (e, t, n, r, i, a, o) => {
- var s = sB(o) ? t : o;
- return e === "centric" ? wU(n, r, !0) ?? s ?? 0 : wU(i, a, !0) ?? s ?? 0;
+ var s = oB(o) ? t : o;
+ return e === "centric" ? CU(n, r, !0) ?? s ?? 0 : CU(i, a, !0) ?? s ?? 0;
}),
- i2,
- a2
-], J0), r2], X0), s2 = $([_1], (e) => e.filter(o2).filter(aq)), c2 = $([
+ r2,
+ i2
+], q0), n2], Y0), o2 = $([g1], (e) => e.filter(a2).filter(iq)), s2 = $([
$([
- s2,
- fK,
- $X
- ], iq),
- s2,
- jK,
- MK
-], tZ), pIe = $([
+ o2,
+ dK,
+ QX
+ ], rq),
+ o2,
+ AK,
+ jK
+], eZ), hIe = $([
+ e2,
t2,
- n2,
+ Q0,
$0,
- e2,
- dK,
+ uK,
+ n2,
r2,
- i2,
- eW,
- cIe,
- eq,
- lIe,
- fIe,
- $([(e, t, n) => eW(e) === "centric" ? c2(e, "radiusAxis", t) : c2(e, "angleAxis", n), r2], Y0)
+ $U,
+ uIe,
+ $K,
+ dIe,
+ mIe,
+ $([(e, t, n) => $U(e) === "centric" ? s2(e, "radiusAxis", t) : s2(e, "angleAxis", n), n2], J0)
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = i;
if (a == null || n == null || e == null || p == null || o == null || d == null || s !== "centric" && s !== "radial" || r == null || l == null) return [];
var { dataKey: g, minPointSize: _ } = a, { cx: v, cy: y, startAngle: b, endAngle: x } = l;
- return AIe({
+ return MIe({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -65986,7 +66053,7 @@ var $0 = $([(e, t) => qK(e, t), (e, t) => T1(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), mIe = $([fK, (e, t) => t], (e, t) => {
+}), gIe = $([dK, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -65999,31 +66066,31 @@ var $0 = $([(e, t) => qK(e, t), (e, t) => T1(e, "radiusAxis", t)], (e, t) => {
});
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
-function l2(e, t) {
- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && lU(e.zIndex) ? e.zIndex : t;
+function c2(e, t) {
+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && cU(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var hIe = [
+var _Ie = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], gIe = [
+], vIe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], _Ie = ["value", "background"];
-function u2() {
- return u2 = Object.assign ? Object.assign.bind() : function(e) {
+], yIe = ["value", "background"];
+function l2() {
+ return l2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, u2.apply(null, arguments);
+ }, l2.apply(null, arguments);
}
-function d2(e, t) {
+function u2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66033,30 +66100,30 @@ function d2(e, t) {
}
return n;
}
-function f2(e) {
+function d2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? d2(Object(n), !0).forEach(function(t) {
- vIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : d2(Object(n)).forEach(function(t) {
+ t % 2 ? u2(Object(n), !0).forEach(function(t) {
+ bIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function vIe(e, t, n) {
- return (t = yIe(t)) in e ? Object.defineProperty(e, t, {
+function bIe(e, t, n) {
+ return (t = xIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yIe(e) {
- var t = bIe(e, "string");
+function xIe(e) {
+ var t = SIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bIe(e, t) {
+function SIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66066,16 +66133,16 @@ function bIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function p2(e, t) {
+function f2(e, t) {
if (e == null) return {};
- var n, r, i = xIe(e, t);
+ var n, r, i = CIe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function xIe(e, t) {
+function CIe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66084,8 +66151,8 @@ function xIe(e, t) {
}
return n;
}
-var m2 = [];
-function SIe(e) {
+var p2 = [];
+function wIe(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -66102,15 +66169,15 @@ function SIe(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ R.createElement(cNe, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ R.createElement(uNe, { value: t ? i : void 0 }, r);
}
-function CIe(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = p2(n, hIe), l = WR(c), u = Q(jQ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = p2(n, gIe), h = l0(d, n.dataKey, s), g = u0(p), _ = d0(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ R.createElement(SIe, {
+function TIe(e) {
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = f2(n, _Ie), l = UR(c), u = Q(AQ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = f2(n, vIe), h = c0(d, n.dataKey, s), g = l0(p), _ = u0(f, n.dataKey, s);
+ return t == null ? null : /*#__PURE__*/ R.createElement(wIe, {
showLabels: r,
sectors: t
}, t.map((e, t) => {
- var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = f2(f2(f2(f2({}, l), {}, { cornerRadius: H0(o) }, e), vB(m, e, t)), {}, {
+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = d2(d2(d2(d2({}, l), {}, { cornerRadius: V0(o) }, e), _B(m, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: s,
onClick: d,
@@ -66121,19 +66188,19 @@ function CIe(e) {
option: n ? a : i,
index: t
});
- return n ? /*#__PURE__*/ R.createElement(QQ, {
- zIndex: LK.activeBar,
+ return n ? /*#__PURE__*/ R.createElement(ZQ, {
+ zIndex: IK.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
- }, /*#__PURE__*/ R.createElement(U0, f)) : /*#__PURE__*/ R.createElement(U0, u2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
- }), /*#__PURE__*/ R.createElement(l1, { label: n.label }), n.children);
+ }, /*#__PURE__*/ R.createElement(H0, f)) : /*#__PURE__*/ R.createElement(H0, l2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
+ }), /*#__PURE__*/ R.createElement(c1, { label: n.label }), n.children);
}
-function wIe(e) {
- var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = UG(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, R.useState)(!1), m = (0, R.useCallback)(() => {
+function EIe(e) {
+ var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = HG(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, R.useState)(!1), m = (0, R.useCallback)(() => {
typeof c == "function" && c(), p(!1);
}, [c]), h = (0, R.useCallback)(() => {
typeof l == "function" && l(), p(!0);
}, [l]);
- return /*#__PURE__*/ R.createElement(HG, {
+ return /*#__PURE__*/ R.createElement(VG, {
animationId: u,
begin: a,
duration: o,
@@ -66143,37 +66210,37 @@ function wIe(e) {
onAnimationEnd: m,
key: u
}, (e) => {
- var i = e === 1 ? r : (r ?? m2).map((t, n) => {
+ var i = e === 1 ? r : (r ?? p2).map((t, n) => {
var r = d && d[n];
- if (r) return f2(f2({}, t), {}, {
- startAngle: aB(r.startAngle, t.startAngle, e),
- endAngle: aB(r.endAngle, t.endAngle, e)
+ if (r) return d2(d2({}, t), {}, {
+ startAngle: iB(r.startAngle, t.startAngle, e),
+ endAngle: iB(r.endAngle, t.endAngle, e)
});
var { endAngle: i, startAngle: a } = t;
- return f2(f2({}, t), {}, { endAngle: aB(a, i, e) });
+ return d2(d2({}, t), {}, { endAngle: iB(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ R.createElement(CIe, {
- sectors: i ?? m2,
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ R.createElement(TIe, {
+ sectors: i ?? p2,
allOtherRadialBarProps: t,
showLabels: !f
});
});
}
-function TIe(e) {
+function DIe(e) {
var t = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(wIe, {
+ return /*#__PURE__*/ R.createElement(EIe, {
props: e,
previousSectorsRef: t
});
}
-function EIe(e) {
- var t = Q((t) => mIe(t, e.legendType));
- return /*#__PURE__*/ R.createElement(m0, { legendPayload: t ?? [] });
+function OIe(e) {
+ var t = Q((t) => gIe(t, e.legendType));
+ return /*#__PURE__*/ R.createElement(p0, { legendPayload: t ?? [] });
}
-var DIe = /*#__PURE__*/ R.memo((e) => {
+var kIe = /*#__PURE__*/ R.memo((e) => {
var { dataKey: t, sectors: n, stroke: r, strokeWidth: i, name: a, hide: o, fill: s, tooltipType: c, id: l } = e, u = {
dataDefinedOnItem: n,
- getPosition: uB,
+ getPosition: lB,
settings: {
graphicalItemId: l,
stroke: r,
@@ -66181,45 +66248,45 @@ var DIe = /*#__PURE__*/ R.memo((e) => {
fill: s,
nameKey: void 0,
dataKey: t,
- name: EU(a, t),
+ name: TU(a, t),
hide: o,
type: c,
color: s,
unit: ""
}
};
- return /*#__PURE__*/ R.createElement(f0, { tooltipEntrySettings: u });
-}), OIe = class extends R.PureComponent {
+ return /*#__PURE__*/ R.createElement(d0, { tooltipEntrySettings: u });
+}), AIe = class extends R.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var { cornerRadius: t } = this.props, n = GR(this.props.background);
- return /*#__PURE__*/ R.createElement(QQ, { zIndex: l2(this.props.background, LK.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = p2(e, _Ie);
+ var { cornerRadius: t } = this.props, n = WR(this.props.background);
+ return /*#__PURE__*/ R.createElement(ZQ, { zIndex: c2(this.props.background, IK.barBackground) }, e.map((e, r) => {
+ var { value: i, background: a } = e, o = f2(e, yIe);
if (!a) return null;
- var s = f2(f2(f2(f2(f2({ cornerRadius: H0(t) }, o), {}, { fill: "#eee" }, a), n), vB(this.props, e, r)), {}, {
+ var s = d2(d2(d2(d2(d2({ cornerRadius: V0(t) }, o), {}, { fill: "#eee" }, a), n), _B(this.props, e, r)), {}, {
index: r,
className: Sh("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
isActive: !1
});
- return /*#__PURE__*/ R.createElement(U0, u2({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
+ return /*#__PURE__*/ R.createElement(H0, l2({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
}));
}
render() {
var { hide: e, sectors: t, className: n, background: r } = this.props;
if (e) return null;
var i = Sh("recharts-area", n);
- return /*#__PURE__*/ R.createElement(QQ, { zIndex: this.props.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: i }, r && /*#__PURE__*/ R.createElement(XR, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ R.createElement(XR, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ R.createElement(TIe, this.props))));
+ return /*#__PURE__*/ R.createElement(ZQ, { zIndex: this.props.zIndex }, /*#__PURE__*/ R.createElement(YR, { className: i }, r && /*#__PURE__*/ R.createElement(YR, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ R.createElement(YR, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ R.createElement(DIe, this.props))));
}
};
-function kIe(e) {
- var t = R.useMemo(() => Q1(e.children, h$), [e.children]), n = R.useMemo(() => ({
+function jIe(e) {
+ var t = R.useMemo(() => Z1(e.children, m$), [e.children]), n = R.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
dataKey: e.dataKey,
minPointSize: e.minPointSize,
- stackId: vU(e.stackId),
+ stackId: _U(e.stackId),
maxBarSize: e.maxBarSize,
barSize: e.barSize,
type: "radialBar",
@@ -66234,8 +66301,8 @@ function kIe(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => pIe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? m2;
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(DIe, {
+ ]), r = Q((r) => hIe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? p2;
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(kIe, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -66245,9 +66312,9 @@ function kIe(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ R.createElement(OIe, u2({}, e, { sectors: r })));
+ }), /*#__PURE__*/ R.createElement(AIe, l2({}, e, { sectors: r })));
}
-var h2 = {
+var m2 = {
angleAxisId: 0,
animationBegin: 0,
animationDuration: 1500,
@@ -66262,14 +66329,14 @@ var h2 = {
legendType: "rect",
minPointSize: 0,
radiusAxisId: 0,
- zIndex: LK.bar
+ zIndex: IK.bar
};
-function AIe(e) {
+function MIe(e) {
var { displayedData: t, stackedData: n, dataStartIndex: r, stackedDomain: i, dataKey: a, baseValue: o, layout: s, radiusAxis: c, radiusAxisTicks: l, bandSize: u, pos: d, angleAxis: f, minPointSize: p, cx: m, cy: h, angleAxisTicks: g, cells: _, startAngle: v, endAngle: y } = e;
- return g == null || l == null ? m2 : (t ?? []).map((e, t) => {
+ return g == null || l == null ? p2 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
- if (n ? b = _U(n[r + t], i) : (b = pU(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {
- if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = bU({
+ if (n ? b = gU(n[r + t], i) : (b = fU(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {
+ if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = yU({
axis: c,
ticks: l,
bandSize: u,
@@ -66280,7 +66347,7 @@ function AIe(e) {
S = x + d.size;
var E = w - C;
if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {
- var D = Qz(E || p) * (Math.abs(p) - Math.abs(E));
+ var D = Zz(E || p) * (Math.abs(p) - Math.abs(E));
w += D;
}
T = { background: {
@@ -66292,7 +66359,7 @@ function AIe(e) {
endAngle: y
} };
}
- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = bU({
+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = yU({
axis: f,
ticks: g,
bandSize: u,
@@ -66303,11 +66370,11 @@ function AIe(e) {
w = C + d.size;
var O = S - x;
if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {
- var k = Qz(O || p) * (Math.abs(p) - Math.abs(O));
+ var k = Zz(O || p) * (Math.abs(p) - Math.abs(O));
S += k;
}
}
- return f2(f2(f2({}, e), T), {}, {
+ return d2(d2(d2({}, e), T), {}, {
payload: e,
value: n ? b : b[1],
cx: m,
@@ -66319,38 +66386,38 @@ function AIe(e) {
}, _ && _[t] && _[t].props);
});
}
-function g2(e) {
- var t = bB(e, h2);
- return /*#__PURE__*/ R.createElement(h0, {
+function h2(e) {
+ var t = yB(e, m2);
+ return /*#__PURE__*/ R.createElement(m0, {
id: t.id,
type: "radialBar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(v0, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(_0, {
type: "radialBar",
id: e,
data: void 0,
dataKey: t.dataKey,
- hide: t.hide ?? h2.hide,
- angleAxisId: t.angleAxisId ?? h2.angleAxisId,
- radiusAxisId: t.radiusAxisId ?? h2.radiusAxisId,
- stackId: vU(t.stackId),
+ hide: t.hide ?? m2.hide,
+ angleAxisId: t.angleAxisId ?? m2.angleAxisId,
+ radiusAxisId: t.radiusAxisId ?? m2.radiusAxisId,
+ stackId: _U(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ R.createElement(EIe, t), /*#__PURE__*/ R.createElement(kIe, u2({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(OIe, t), /*#__PURE__*/ R.createElement(jIe, l2({}, t, { id: e }))));
}
-g2.displayName = "RadialBar";
+h2.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
-var _2 = (e) => {
- var { chartData: t } = e, n = qB(), r = IU();
- return (0, R.useEffect)(() => r ? () => {} : (n(l$(t)), () => {
- n(l$(void 0));
+var g2 = (e) => {
+ var { chartData: t } = e, n = KB(), r = FU();
+ return (0, R.useEffect)(() => r ? () => {} : (n(c$(t)), () => {
+ n(c$(void 0));
}), [
t,
n,
r
]), null;
-}, v2 = {
+}, _2 = {
x: 0,
y: 0,
width: 0,
@@ -66361,13 +66428,13 @@ var _2 = (e) => {
bottom: 0,
left: 0
}
-}, y2 = PH({
+}, v2 = NH({
name: "brush",
- initialState: v2,
+ initialState: _2,
reducers: { setBrushSettings(e, t) {
- return t.payload == null ? v2 : t.payload;
+ return t.payload == null ? _2 : t.payload;
} }
-}), { setBrushSettings: jIe } = y2.actions, MIe = y2.reducer, NIe = (e, t) => {
+}), { setBrushSettings: NIe } = v2.actions, PIe = v2.reducer, FIe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -66375,9 +66442,9 @@ var _2 = (e) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, PIe = (e) => {
+}, IIe = (e) => {
var { x1: t, y1: n, x2: r, y2: i } = e;
- return NIe({
+ return FIe({
x: t,
y: n
}, {
@@ -66385,13 +66452,13 @@ var _2 = (e) => {
y: i
});
};
-function FIe(e) {
+function LIe(e) {
return (e % 180 + 180) % 180;
}
-var IIe = function(e) {
- var { width: t, height: n } = e, r = FIe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
+var RIe = function(e) {
+ var { width: t, height: n } = e, r = LIe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
return Math.abs(a);
-}, b2 = PH({
+}, y2 = NH({
name: "referenceElements",
initialState: {
dots: [],
@@ -66403,35 +66470,35 @@ var IIe = function(e) {
e.dots.push(t.payload);
},
removeDot: (e, t) => {
- var n = xH(e).dots.findIndex((e) => e === t.payload);
+ var n = bH(e).dots.findIndex((e) => e === t.payload);
n !== -1 && e.dots.splice(n, 1);
},
addArea: (e, t) => {
e.areas.push(t.payload);
},
removeArea: (e, t) => {
- var n = xH(e).areas.findIndex((e) => e === t.payload);
+ var n = bH(e).areas.findIndex((e) => e === t.payload);
n !== -1 && e.areas.splice(n, 1);
},
addLine: (e, t) => {
- e.lines.push(GW(t.payload));
+ e.lines.push(WW(t.payload));
},
removeLine: (e, t) => {
- var n = xH(e).lines.findIndex((e) => e === t.payload);
+ var n = bH(e).lines.findIndex((e) => e === t.payload);
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: LIe, removeDot: RIe, addArea: zIe, removeArea: BIe, addLine: VIe, removeLine: HIe } = b2.actions, UIe = b2.reducer, x2 = /*#__PURE__*/ (0, R.createContext)(void 0), WIe = (e) => {
- var { children: t } = e, [n] = (0, R.useState)(`${nB("recharts")}-clip`), r = E0();
+}), { addDot: zIe, removeDot: BIe, addArea: VIe, removeArea: HIe, addLine: UIe, removeLine: WIe } = y2.actions, GIe = y2.reducer, b2 = /*#__PURE__*/ (0, R.createContext)(void 0), KIe = (e) => {
+ var { children: t } = e, [n] = (0, R.useState)(`${tB("recharts")}-clip`), r = T0();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
- return /*#__PURE__*/ R.createElement(x2.Provider, { value: n }, /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: n }, /*#__PURE__*/ R.createElement("rect", {
+ return /*#__PURE__*/ R.createElement(b2.Provider, { value: n }, /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: n }, /*#__PURE__*/ R.createElement("rect", {
x: i,
y: a,
height: s,
width: o
}))), t);
-}, GIe = () => (0, R.useContext)(x2), KIe = class {
+}, qIe = () => (0, R.useContext)(b2), JIe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -66457,7 +66524,7 @@ var IIe = function(e) {
};
//#endregion
//#region node_modules/recharts/es6/cartesian/ReferenceLine.js
-function S2(e, t) {
+function x2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66467,30 +66534,30 @@ function S2(e, t) {
}
return n;
}
-function C2(e) {
+function S2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? S2(Object(n), !0).forEach(function(t) {
- qIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S2(Object(n)).forEach(function(t) {
+ t % 2 ? x2(Object(n), !0).forEach(function(t) {
+ YIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : x2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qIe(e, t, n) {
- return (t = JIe(t)) in e ? Object.defineProperty(e, t, {
+function YIe(e, t, n) {
+ return (t = XIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function JIe(e) {
- var t = YIe(e, "string");
+function XIe(e) {
+ var t = ZIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function YIe(e, t) {
+function ZIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66500,27 +66567,27 @@ function YIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function w2() {
- return w2 = Object.assign ? Object.assign.bind() : function(e) {
+function C2() {
+ return C2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, w2.apply(null, arguments);
+ }, C2.apply(null, arguments);
}
-var XIe = (e, t) => {
+var QIe = (e, t) => {
var n;
if (/*#__PURE__*/ R.isValidElement(e)) n = /*#__PURE__*/ R.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
- if (!lU(t.x1) || !lU(t.y1) || !lU(t.x2) || !lU(t.y2)) return null;
- n = /*#__PURE__*/ R.createElement("line", w2({}, t, { className: "recharts-reference-line-line" }));
+ if (!cU(t.x1) || !cU(t.y1) || !cU(t.x2) || !cU(t.y2)) return null;
+ n = /*#__PURE__*/ R.createElement("line", C2({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, ZIe = (e, t, n, r, i, a) => {
+}, $Ie = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
- if (!lU(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!cU(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: o + s,
y: c
@@ -66529,9 +66596,9 @@ var XIe = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, QIe = (e, t, n, r, i, a) => {
+}, eLe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
- if (!lU(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!cU(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: c,
y: o + s
@@ -66540,7 +66607,7 @@ var XIe = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, $Ie = (e, t, n, r) => {
+}, tLe = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -66549,43 +66616,43 @@ var XIe = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, eLe = (e, t, n, r, i, a, o) => {
- var { x: s, y: c, segment: l, ifOverflow: u } = o, d = tB(s);
- return tB(c) ? ZIe(c, u, r, a, t, n) : d ? QIe(s, u, r, i, e, n) : l != null && l.length === 2 ? $Ie(l, u, r, new KIe({
+}, nLe = (e, t, n, r, i, a, o) => {
+ var { x: s, y: c, segment: l, ifOverflow: u } = o, d = eB(s);
+ return eB(c) ? $Ie(c, u, r, a, t, n) : d ? eLe(s, u, r, i, e, n) : l != null && l.length === 2 ? tLe(l, u, r, new JIe({
x: e,
y: t
})) : null;
};
-function tLe(e) {
- var t = qB();
- return (0, R.useEffect)(() => (t(VIe(e)), () => {
- t(HIe(e));
+function rLe(e) {
+ var t = KB();
+ return (0, R.useEffect)(() => (t(UIe(e)), () => {
+ t(WIe(e));
})), null;
}
-function nLe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = IU(), s = GIe(), c = Q((e) => AX(e, t)), l = Q((e) => NX(e, n)), u = Q((e) => AZ(e, "xAxis", t, o)), d = Q((e) => AZ(e, "yAxis", n, o)), f = XU();
+function iLe(e) {
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = FU(), s = qIe(), c = Q((e) => kX(e, t)), l = Q((e) => MX(e, n)), u = Q((e) => kZ(e, "xAxis", t, o)), d = Q((e) => kZ(e, "yAxis", n, o)), f = YU();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = eLe(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = nLe(u, d, f, e.position, c.orientation, l.orientation, e);
if (!p) return null;
var m = p[0], h = p[1];
if (m == null || h == null) return null;
- var { x: g, y: _ } = m, { x: v, y } = h, b = C2(C2({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, KR(e)), {}, {
+ var { x: g, y: _ } = m, { x: v, y } = h, b = S2(S2({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, GR(e)), {}, {
x1: g,
y1: _,
x2: v,
y2: y
- }), x = PIe({
+ }), x = IIe({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ R.createElement(QQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: Sh("recharts-reference-line", i) }, XIe(r, b), /*#__PURE__*/ R.createElement(J$, w2({}, x, {
+ return /*#__PURE__*/ R.createElement(ZQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(YR, { className: Sh("recharts-reference-line", i) }, QIe(r, b), /*#__PURE__*/ R.createElement(q$, C2({}, x, {
lowerWidth: x.width,
upperWidth: x.width
- }), /*#__PURE__*/ R.createElement(n1, { label: e.label }), e.children)));
+ }), /*#__PURE__*/ R.createElement(t1, { label: e.label }), e.children)));
}
-var rLe = {
+var aLe = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -66595,23 +66662,23 @@ var rLe = {
fillOpacity: 1,
strokeWidth: 1,
position: "middle",
- zIndex: LK.line
+ zIndex: IK.line
};
-function T2(e) {
- var t = bB(e, rLe);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(tLe, {
+function w2(e) {
+ var t = yB(e, aLe);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(rLe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ R.createElement(nLe, t));
+ }), /*#__PURE__*/ R.createElement(iLe, t));
}
-T2.displayName = "ReferenceLine";
+w2.displayName = "ReferenceLine";
//#endregion
//#region node_modules/recharts/es6/util/getEveryNth.js
-function E2(e, t) {
+function T2(e, t) {
if (t < 1) return [];
if (t === 1) return e;
for (var n = [], r = 0; r < e.length; r += t) {
@@ -66622,13 +66689,13 @@ function E2(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function iLe(e, t, n) {
- return IIe({
+function oLe(e, t, n) {
+ return RIe({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function aLe(e, t, n) {
+function sLe(e, t, n) {
var r = n === "width", { x: i, y: a, width: o, height: s } = e;
return t === 1 ? {
start: r ? i : a,
@@ -66638,33 +66705,33 @@ function aLe(e, t, n) {
end: r ? i : a
};
}
-function D2(e, t, n, r, i) {
+function E2(e, t, n, r, i) {
if (e * t < e * r || e * t > e * i) return !1;
var a = n();
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
}
-function oLe(e, t) {
- return E2(e, t + 1);
+function cLe(e, t) {
+ return T2(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function sLe(e, t, n, r, i) {
+function lLe(e, t, n, r, i) {
for (var a = (r || []).slice(), { start: o, end: s } = t, c = 0, l = 1, u = o, d = function() {
var t = r?.[c];
- if (t === void 0) return { v: E2(r, l) };
- var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || D2(e, p, f, u, s);
+ if (t === void 0) return { v: T2(r, l) };
+ var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || E2(e, p, f, u, s);
m || (c = 0, u = o, l += 1), m && (u = p + e * (f() / 2 + i), c += l);
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
}
-function cLe(e, t, n, r, i) {
+function uLe(e, t, n, r, i) {
var a = (r || []).slice().length;
if (a === 0) return [];
for (var { start: o, end: s } = t, c = 1; c <= a; c++) {
for (var l = (a - 1) % c, u = o, d = !0, f = function() {
var t = r[m];
if (t == null) return 0;
- var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || D2(e, f, c, u, s);
+ var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || E2(e, f, c, u, s);
if (!p) return d = !1, 1;
p && (u = f + e * (c() / 2 + i));
}, p, m = l; m < a && (p = f(), p === 0 || p !== 1); m += c);
@@ -66680,7 +66747,7 @@ function cLe(e, t, n, r, i) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getTicks.js
-function O2(e, t) {
+function D2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66690,30 +66757,30 @@ function O2(e, t) {
}
return n;
}
-function k2(e) {
+function O2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? O2(Object(n), !0).forEach(function(t) {
- lLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O2(Object(n)).forEach(function(t) {
+ t % 2 ? D2(Object(n), !0).forEach(function(t) {
+ dLe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function lLe(e, t, n) {
- return (t = uLe(t)) in e ? Object.defineProperty(e, t, {
+function dLe(e, t, n) {
+ return (t = fLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function uLe(e) {
- var t = dLe(e, "string");
+function fLe(e) {
+ var t = pLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dLe(e, t) {
+function pLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66723,26 +66790,26 @@ function dLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function fLe(e, t, n, r, i) {
+function mLe(e, t, n, r, i) {
for (var a = (r || []).slice(), o = a.length, { start: s } = t, { end: c } = t, l = function(t) {
var r = a[t];
if (r == null) return 1;
var l = r, u, d = () => (u === void 0 && (u = n(r, t)), u);
if (t === o - 1) {
var f = e * (l.coordinate + e * d() / 2 - c);
- a[t] = l = k2(k2({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
- } else a[t] = l = k2(k2({}, l), {}, { tickCoord: l.coordinate });
- l.tickCoord != null && D2(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = k2(k2({}, l), {}, { isShow: !0 }));
+ a[t] = l = O2(O2({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
+ } else a[t] = l = O2(O2({}, l), {}, { tickCoord: l.coordinate });
+ l.tickCoord != null && E2(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = O2(O2({}, l), {}, { isShow: !0 }));
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function pLe(e, t, n, r, i, a) {
+function hLe(e, t, n, r, i, a) {
var o = (r || []).slice(), s = o.length, { start: c, end: l } = t;
if (a) {
var u = r[s - 1];
if (u != null) {
var d = n(u, s - 1), f = e * (u.coordinate + e * d / 2 - l);
- o[s - 1] = u = k2(k2({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && D2(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = k2(k2({}, u), {}, { isShow: !0 }));
+ o[s - 1] = u = O2(O2({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && E2(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = O2(O2({}, u), {}, { isShow: !0 }));
}
}
for (var p = a ? s - 1 : s, m = function(t) {
@@ -66751,17 +66818,17 @@ function pLe(e, t, n, r, i, a) {
var a = r, s, u = () => (s === void 0 && (s = n(r, t)), s);
if (t === 0) {
var d = e * (a.coordinate - e * u() / 2 - c);
- o[t] = a = k2(k2({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
- } else o[t] = a = k2(k2({}, a), {}, { tickCoord: a.coordinate });
- a.tickCoord != null && D2(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = k2(k2({}, a), {}, { isShow: !0 }));
+ o[t] = a = O2(O2({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
+ } else o[t] = a = O2(O2({}, a), {}, { tickCoord: a.coordinate });
+ a.tickCoord != null && E2(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = O2(O2({}, a), {}, { isShow: !0 }));
}, h = 0; h < p; h++) if (m(h)) continue;
return o;
}
-function A2(e, t, n) {
+function k2(e, t, n) {
var { tick: r, ticks: i, viewBox: a, minTickGap: o, orientation: s, interval: c, tickFormatter: l, unit: u, angle: d } = e;
if (!i || !i.length || !r) return [];
- if (Z(c) || uG.isSsr) return oLe(i, Z(c) ? c : 0) ?? [];
- var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? x$(u, {
+ if (Z(c) || lG.isSsr) return cLe(i, Z(c) ? c : 0) ?? [];
+ var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? b$(u, {
fontSize: t,
letterSpacing: n
}) : {
@@ -66769,19 +66836,19 @@ function A2(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? iLe(x$(i, {
+ return p === "width" ? oLe(b$(i, {
fontSize: t,
letterSpacing: n
- }), m, d) : x$(i, {
+ }), m, d) : b$(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? Qz(_.coordinate - g.coordinate) : 1, y = aLe(a, v, p);
- return c === "equidistantPreserveStart" ? sLe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? cLe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? pLe(v, y, h, i, o, c === "preserveStartEnd") : fLe(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? Zz(_.coordinate - g.coordinate) : 1, y = sLe(a, v, p);
+ return c === "equidistantPreserveStart" ? lLe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? uLe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? hLe(v, y, h, i, o, c === "preserveStartEnd") : mLe(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var mLe = (e) => {
+var gLe = (e) => {
var { ticks: t, label: n, labelGapWithTick: r = 5, tickSize: i = 0, tickMargin: a = 0 } = e, o = 0;
if (t) {
Array.from(t).forEach((e) => {
@@ -66794,7 +66861,7 @@ var mLe = (e) => {
return Math.round(l);
}
return 0;
-}, j2 = PH({
+}, A2 = NH({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -66803,14 +66870,14 @@ var mLe = (e) => {
reducers: {
setRenderedTicks: (e, t) => {
var { axisType: n, axisId: r, ticks: i } = t.payload;
- e[n][r] = GW(i);
+ e[n][r] = WW(i);
},
removeRenderedTicks: (e, t) => {
var { axisType: n, axisId: r } = t.payload;
delete e[n][r];
}
}
-}), { setRenderedTicks: hLe, removeRenderedTicks: gLe } = j2.actions, _Le = j2.reducer, vLe = [
+}), { setRenderedTicks: _Le, removeRenderedTicks: vLe } = A2.actions, yLe = A2.reducer, bLe = [
"axisLine",
"width",
"height",
@@ -66820,16 +66887,16 @@ var mLe = (e) => {
"axisType",
"axisId"
];
-function yLe(e, t) {
+function xLe(e, t) {
if (e == null) return {};
- var n, r, i = bLe(e, t);
+ var n, r, i = SLe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function bLe(e, t) {
+function SLe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66838,16 +66905,16 @@ function bLe(e, t) {
}
return n;
}
-function M2() {
- return M2 = Object.assign ? Object.assign.bind() : function(e) {
+function j2() {
+ return j2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, M2.apply(null, arguments);
+ }, j2.apply(null, arguments);
}
-function N2(e, t) {
+function M2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66857,30 +66924,30 @@ function N2(e, t) {
}
return n;
}
-function P2(e) {
+function N2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? N2(Object(n), !0).forEach(function(t) {
- xLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N2(Object(n)).forEach(function(t) {
+ t % 2 ? M2(Object(n), !0).forEach(function(t) {
+ CLe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function xLe(e, t, n) {
- return (t = SLe(t)) in e ? Object.defineProperty(e, t, {
+function CLe(e, t, n) {
+ return (t = wLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function SLe(e) {
- var t = CLe(e, "string");
+function wLe(e) {
+ var t = TLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function CLe(e, t) {
+function TLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66890,7 +66957,7 @@ function CLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var F2 = {
+var P2 = {
x: 0,
y: 0,
width: 0,
@@ -66912,15 +66979,15 @@ var F2 = {
tickSize: 6,
tickMargin: 2,
interval: "preserveEnd",
- zIndex: LK.axis
+ zIndex: IK.axis
};
-function wLe(e) {
+function ELe(e) {
var { x: t, y: n, width: r, height: i, orientation: a, mirror: o, axisLine: s, otherSvgProps: c } = e;
if (!s) return null;
- var l = P2(P2(P2({}, c), WR(s)), {}, { fill: "none" });
+ var l = N2(N2(N2({}, c), UR(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
- l = P2(P2({}, l), {}, {
+ l = N2(N2({}, l), {}, {
x1: t,
y1: n + u * i,
x2: t + r,
@@ -66928,16 +66995,16 @@ function wLe(e) {
});
} else {
var d = +(a === "left" && !o || a === "right" && o);
- l = P2(P2({}, l), {}, {
+ l = N2(N2({}, l), {}, {
x1: t + d * r,
y1: n,
x2: t + d * r,
y2: n + i
});
}
- return /*#__PURE__*/ R.createElement("line", M2({}, l, { className: Sh("recharts-cartesian-axis-line", Yz(s, "className")) }));
+ return /*#__PURE__*/ R.createElement("line", j2({}, l, { className: Sh("recharts-cartesian-axis-line", Jz(s, "className")) }));
}
-function TLe(e, t, n, r, i, a, o, s, c) {
+function DLe(e, t, n, r, i, a, o, s, c) {
var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = Z(e.tickCoord) ? e.tickCoord : e.coordinate;
switch (a) {
case "top":
@@ -66964,14 +67031,14 @@ function TLe(e, t, n, r, i, a, o, s, c) {
}
};
}
-function ELe(e, t) {
+function OLe(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function DLe(e, t) {
+function kLe(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -66979,19 +67046,19 @@ function DLe(e, t) {
default: return t ? "end" : "start";
}
}
-function OLe(e) {
+function ALe(e) {
var { option: t, tickProps: n, value: r } = e, i, a = Sh(n.className, "recharts-cartesian-axis-tick-value");
- if (/*#__PURE__*/ R.isValidElement(t)) i = /*#__PURE__*/ R.cloneElement(t, P2(P2({}, n), {}, { className: a }));
- else if (typeof t == "function") i = t(P2(P2({}, n), {}, { className: a }));
+ if (/*#__PURE__*/ R.isValidElement(t)) i = /*#__PURE__*/ R.cloneElement(t, N2(N2({}, n), {}, { className: a }));
+ else if (typeof t == "function") i = t(N2(N2({}, n), {}, { className: a }));
else {
var o = "recharts-cartesian-axis-tick-value";
- typeof t != "boolean" && (o = Sh(o, I1(t))), i = /*#__PURE__*/ R.createElement(B$, M2({}, n, { className: o }), r);
+ typeof t != "boolean" && (o = Sh(o, F1(t))), i = /*#__PURE__*/ R.createElement(z$, j2({}, n, { className: o }), r);
}
return i;
}
-function kLe(e) {
- var { ticks: t, axisType: n, axisId: r } = e, i = qB();
- return (0, R.useEffect)(() => r == null || n == null ? uB : (i(hLe({
+function jLe(e) {
+ var { ticks: t, axisType: n, axisId: r } = e, i = KB();
+ return (0, R.useEffect)(() => r == null || n == null ? lB : (i(_Le({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -67001,7 +67068,7 @@ function kLe(e) {
axisId: r,
axisType: n
})), () => {
- i(gLe({
+ i(vLe({
axisId: r,
axisType: n
}));
@@ -67012,17 +67079,17 @@ function kLe(e) {
n
]), null;
}
-var ALe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = A2(P2(P2({}, b), {}, { ticks: n }), v, y), T = WR(b), E = GR(r), D = P$(T.textAnchor) ? T.textAnchor : ELe(u, d), O = DLe(u, d), k = {};
+var MLe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = k2(N2(N2({}, b), {}, { ticks: n }), v, y), T = UR(b), E = WR(r), D = N$(T.textAnchor) ? T.textAnchor : OLe(u, d), O = kLe(u, d), k = {};
typeof i == "object" && (k = i);
- var A = P2(P2({}, T), {}, { fill: "none" }, k), j = w.map((e) => P2({ entry: e }, TLe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = N2(N2({}, T), {}, { fill: "none" }, k), j = w.map((e) => N2({ entry: e }, DLe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
- return /*#__PURE__*/ R.createElement(XR, {
+ return /*#__PURE__*/ R.createElement(YR, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, i && /*#__PURE__*/ R.createElement("line", M2({}, A, n, { className: Sh("recharts-cartesian-axis-tick-line", Yz(i, "className")) })));
+ }, i && /*#__PURE__*/ R.createElement("line", j2({}, A, n, { className: Sh("recharts-cartesian-axis-tick-line", Jz(i, "className")) })));
}), N = j.map((e, t) => {
- var { entry: n, tick: i } = e, u = P2(P2({}, P2(P2(P2(P2({ verticalAnchor: O }, T), {}, {
+ var { entry: n, tick: i } = e, u = N2(N2({}, N2(N2(N2(N2({ verticalAnchor: O }, T), {}, {
textAnchor: D,
stroke: "none",
fill: a
@@ -67033,26 +67100,26 @@ var ALe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ R.createElement(XR, M2({
+ return /*#__PURE__*/ R.createElement(YR, j2({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, vB(x, n, t)), r && /*#__PURE__*/ R.createElement(OLe, {
+ }, _B(x, n, t)), r && /*#__PURE__*/ R.createElement(ALe, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
}));
});
- return /*#__PURE__*/ R.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ R.createElement(kLe, {
+ return /*#__PURE__*/ R.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ R.createElement(jLe, {
ticks: w,
axisId: C,
axisType: S
- }), N.length > 0 && /*#__PURE__*/ R.createElement(QQ, { zIndex: LK.label }, /*#__PURE__*/ R.createElement("g", {
+ }), N.length > 0 && /*#__PURE__*/ R.createElement(ZQ, { zIndex: IK.label }, /*#__PURE__*/ R.createElement("g", {
className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,
ref: t
}, N)), M.length > 0 && /*#__PURE__*/ R.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
-}), jLe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = yLe(e, vLe), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = (0, R.useRef)(null);
- (0, R.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => mLe({
+}), NLe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = xLe(e, bLe), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = (0, R.useRef)(null);
+ (0, R.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => gLe({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -67070,7 +67137,7 @@ var ALe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ R.createElement(QQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: Sh("recharts-cartesian-axis", a) }, /*#__PURE__*/ R.createElement(wLe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ R.createElement(ZQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(YR, { className: Sh("recharts-cartesian-axis", a) }, /*#__PURE__*/ R.createElement(ELe, {
x: e.x,
y: e.y,
width: r,
@@ -67078,8 +67145,8 @@ var ALe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: WR(e)
- }), /*#__PURE__*/ R.createElement(ALe, {
+ otherSvgProps: UR(e)
+ }), /*#__PURE__*/ R.createElement(MLe, {
ref: g,
axisType: c,
events: u,
@@ -67103,32 +67170,32 @@ var ALe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
x: e.x,
y: e.y,
axisId: l
- }), /*#__PURE__*/ R.createElement(J$, {
+ }), /*#__PURE__*/ R.createElement(q$, {
x: e.x,
y: e.y,
width: e.width,
height: e.height,
lowerWidth: e.width,
upperWidth: e.width
- }, /*#__PURE__*/ R.createElement(n1, {
+ }, /*#__PURE__*/ R.createElement(t1, {
label: e.label,
labelRef: e.labelRef
}), e.children)));
-}), I2 = /*#__PURE__*/ R.forwardRef((e, t) => {
- var n = bB(e, F2);
- return /*#__PURE__*/ R.createElement(jLe, M2({}, n, { ref: t }));
+}), F2 = /*#__PURE__*/ R.forwardRef((e, t) => {
+ var n = yB(e, P2);
+ return /*#__PURE__*/ R.createElement(NLe, j2({}, n, { ref: t }));
});
-I2.displayName = "CartesianAxis";
+F2.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
-var MLe = [
+var PLe = [
"x1",
"y1",
"x2",
"y2",
"key"
-], NLe = ["offset"], PLe = ["xAxisId", "yAxisId"], FLe = ["xAxisId", "yAxisId"];
-function L2(e, t) {
+], FLe = ["offset"], ILe = ["xAxisId", "yAxisId"], LLe = ["xAxisId", "yAxisId"];
+function I2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67138,30 +67205,30 @@ function L2(e, t) {
}
return n;
}
-function R2(e) {
+function L2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? L2(Object(n), !0).forEach(function(t) {
- ILe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L2(Object(n)).forEach(function(t) {
+ t % 2 ? I2(Object(n), !0).forEach(function(t) {
+ RLe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ILe(e, t, n) {
- return (t = LLe(t)) in e ? Object.defineProperty(e, t, {
+function RLe(e, t, n) {
+ return (t = zLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LLe(e) {
- var t = RLe(e, "string");
+function zLe(e) {
+ var t = BLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function RLe(e, t) {
+function BLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67171,25 +67238,25 @@ function RLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function z2() {
- return z2 = Object.assign ? Object.assign.bind() : function(e) {
+function R2() {
+ return R2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, z2.apply(null, arguments);
+ }, R2.apply(null, arguments);
}
-function B2(e, t) {
+function z2(e, t) {
if (e == null) return {};
- var n, r, i = zLe(e, t);
+ var n, r, i = VLe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function zLe(e, t) {
+function VLe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67198,7 +67265,7 @@ function zLe(e, t) {
}
return n;
}
-var BLe = (e) => {
+var HLe = (e) => {
var { fill: t } = e;
if (!t || t === "none") return null;
var { fillOpacity: n, x: r, y: i, width: a, height: o, ry: s } = e;
@@ -67214,13 +67281,13 @@ var BLe = (e) => {
className: "recharts-cartesian-grid-bg"
});
};
-function V2(e) {
+function B2(e) {
var { option: t, lineItemProps: n } = e, r;
if (/*#__PURE__*/ R.isValidElement(t)) r = /*#__PURE__*/ R.cloneElement(t, n);
else if (typeof t == "function") r = t(n);
else {
- var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = WR(B2(n, MLe)) ?? {}, { offset: u } = l, d = B2(l, NLe);
- r = /*#__PURE__*/ R.createElement("line", z2({}, d, {
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = UR(z2(n, PLe)) ?? {}, { offset: u } = l, d = z2(l, FLe);
+ r = /*#__PURE__*/ R.createElement("line", R2({}, d, {
x1: i,
y1: a,
x2: o,
@@ -67231,11 +67298,11 @@ function V2(e) {
}
return r;
}
-function VLe(e) {
+function ULe(e) {
var { x: t, width: n, horizontal: r = !0, horizontalPoints: i } = e;
if (!r || !i || !i.length) return null;
- var { xAxisId: a, yAxisId: o } = e, s = B2(e, PLe), c = i.map((e, i) => {
- var a = R2(R2({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = z2(e, ILe), c = i.map((e, i) => {
+ var a = L2(L2({}, s), {}, {
x1: t,
y1: e,
x2: t + n,
@@ -67243,7 +67310,7 @@ function VLe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ R.createElement(V2, {
+ return /*#__PURE__*/ R.createElement(B2, {
key: `line-${i}`,
option: r,
lineItemProps: a
@@ -67251,11 +67318,11 @@ function VLe(e) {
});
return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
-function HLe(e) {
+function WLe(e) {
var { y: t, height: n, vertical: r = !0, verticalPoints: i } = e;
if (!r || !i || !i.length) return null;
- var { xAxisId: a, yAxisId: o } = e, s = B2(e, FLe), c = i.map((e, i) => {
- var a = R2(R2({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = z2(e, LLe), c = i.map((e, i) => {
+ var a = L2(L2({}, s), {}, {
x1: e,
y1: t,
x2: e,
@@ -67263,7 +67330,7 @@ function HLe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ R.createElement(V2, {
+ return /*#__PURE__*/ R.createElement(B2, {
option: r,
lineItemProps: a,
key: `line-${i}`
@@ -67271,7 +67338,7 @@ function HLe(e) {
});
return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
-function ULe(e) {
+function GLe(e) {
var { horizontalFill: t, fillOpacity: n, x: r, y: i, width: a, height: o, horizontalPoints: s, horizontal: c = !0 } = e;
if (!c || !t || !t.length || s == null) return null;
var l = s.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -67294,7 +67361,7 @@ function ULe(e) {
});
return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function WLe(e) {
+function KLe(e) {
var { vertical: t = !0, verticalFill: n, fillOpacity: r, x: i, y: a, width: o, height: s, verticalPoints: c } = e;
if (!t || !n || !n.length) return null;
var l = c.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -67317,10 +67384,10 @@ function WLe(e) {
});
return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
-var GLe = (e, t) => {
+var qLe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return hU(A2(R2(R2(R2({}, F2), n), {}, {
- ticks: gU(n, !0),
+ return mU(k2(L2(L2(L2({}, P2), n), {}, {
+ ticks: hU(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -67328,10 +67395,10 @@ var GLe = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, KLe = (e, t) => {
+}, JLe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return hU(A2(R2(R2(R2({}, F2), n), {}, {
- ticks: gU(n, !0),
+ return mU(k2(L2(L2(L2({}, P2), n), {}, {
+ ticks: hU(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -67339,7 +67406,7 @@ var GLe = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, qLe = {
+}, YLe = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -67351,36 +67418,36 @@ var GLe = (e, t) => {
xAxisId: 0,
yAxisId: 0,
syncWithTicks: !1,
- zIndex: LK.grid
+ zIndex: IK.grid
};
-function H2(e) {
- var t = QU(), n = $U(), r = ZU(), i = R2(R2({}, bB(e, qLe)), {}, {
+function V2(e) {
+ var t = ZU(), n = QU(), r = XU(), i = L2(L2({}, yB(e, YLe)), {}, {
x: Z(e.x) ? e.x : r.left,
y: Z(e.y) ? e.y : r.top,
width: Z(e.width) ? e.width : r.width,
height: Z(e.height) ? e.height : r.height
- }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = IU(), h = Q((e) => BZ(e, "xAxis", a, m)), g = Q((e) => BZ(e, "yAxis", o, m));
- if (!uU(l) || !uU(u) || !Z(s) || !Z(c)) return null;
- var _ = i.verticalCoordinatesGenerator || GLe, v = i.horizontalCoordinatesGenerator || KLe, { horizontalPoints: y, verticalPoints: b } = i;
+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = FU(), h = Q((e) => zZ(e, "xAxis", a, m)), g = Q((e) => zZ(e, "yAxis", o, m));
+ if (!lU(l) || !lU(u) || !Z(s) || !Z(c)) return null;
+ var _ = i.verticalCoordinatesGenerator || qLe, v = i.horizontalCoordinatesGenerator || JLe, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
- yAxis: g ? R2(R2({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
+ yAxis: g ? L2(L2({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, x ? !0 : d);
- zU(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
+ RU(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
}
if ((!b || !b.length) && typeof _ == "function") {
var C = p && p.length, w = _({
- xAxis: h ? R2(R2({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
+ xAxis: h ? L2(L2({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, C ? !0 : d);
- zU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
+ RU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ R.createElement(QQ, { zIndex: i.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ R.createElement(BLe, {
+ return /*#__PURE__*/ R.createElement(ZQ, { zIndex: i.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ R.createElement(HLe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -67388,22 +67455,22 @@ function H2(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ R.createElement(ULe, z2({}, i, { horizontalPoints: y })), /*#__PURE__*/ R.createElement(WLe, z2({}, i, { verticalPoints: b })), /*#__PURE__*/ R.createElement(VLe, z2({}, i, {
+ }), /*#__PURE__*/ R.createElement(GLe, R2({}, i, { horizontalPoints: y })), /*#__PURE__*/ R.createElement(KLe, R2({}, i, { verticalPoints: b })), /*#__PURE__*/ R.createElement(ULe, R2({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ R.createElement(HLe, z2({}, i, {
+ })), /*#__PURE__*/ R.createElement(WLe, R2({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
yAxis: g
}))));
}
-H2.displayName = "CartesianGrid";
+V2.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var U2 = PH({
+var H2 = NH({
name: "errorBars",
initialState: {},
reducers: {
@@ -67420,17 +67487,17 @@ var U2 = PH({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: JLe, replaceErrorBar: YLe, removeErrorBar: XLe } = U2.actions, ZLe = U2.reducer, QLe = ["children"];
-function $Le(e, t) {
+}), { addErrorBar: XLe, replaceErrorBar: ZLe, removeErrorBar: QLe } = H2.actions, $Le = H2.reducer, eRe = ["children"];
+function tRe(e, t) {
if (e == null) return {};
- var n, r, i = eRe(e, t);
+ var n, r, i = nRe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function eRe(e, t) {
+function nRe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67439,7 +67506,7 @@ function eRe(e, t) {
}
return n;
}
-var tRe = /*#__PURE__*/ (0, R.createContext)({
+var rRe = /*#__PURE__*/ (0, R.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -67450,22 +67517,22 @@ var tRe = /*#__PURE__*/ (0, R.createContext)({
}),
errorBarOffset: 0
});
-function W2(e) {
- var { children: t } = e, n = $Le(e, QLe);
- return /*#__PURE__*/ R.createElement(tRe.Provider, { value: n }, t);
+function U2(e) {
+ var { children: t } = e, n = tRe(e, eRe);
+ return /*#__PURE__*/ R.createElement(rRe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
-function G2(e, t) {
- var n = Q((t) => AX(t, e)), r = Q((e) => NX(e, t)), i = n?.allowDataOverflow ?? OX.allowDataOverflow, a = r?.allowDataOverflow ?? jX.allowDataOverflow;
+function W2(e, t) {
+ var n = Q((t) => kX(t, e)), r = Q((e) => MX(e, t)), i = n?.allowDataOverflow ?? DX.allowDataOverflow, a = r?.allowDataOverflow ?? AX.allowDataOverflow;
return {
needClip: i || a,
needClipX: i,
needClipY: a
};
}
-function K2(e) {
- var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = E0(), { needClipX: a, needClipY: o, needClip: s } = G2(t, n);
+function G2(e) {
+ var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = T0(), { needClipX: a, needClipY: o, needClip: s } = W2(t, n);
if (!s || !i) return null;
var { x: c, y: l, width: u, height: d } = i;
return /*#__PURE__*/ R.createElement("clipPath", { id: `clipPath-${r}` }, /*#__PURE__*/ R.createElement("rect", {
@@ -67477,30 +67544,30 @@ function K2(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var q2 = (e, t, n, r) => GZ(e, "xAxis", t, r), J2 = (e, t, n, r) => WZ(e, "xAxis", t, r), Y2 = (e, t, n, r) => GZ(e, "yAxis", n, r), X2 = (e, t, n, r) => WZ(e, "yAxis", n, r), nRe = $([
- eW,
- q2,
- Y2,
+var K2 = (e, t, n, r) => WZ(e, "xAxis", t, r), q2 = (e, t, n, r) => UZ(e, "xAxis", t, r), J2 = (e, t, n, r) => WZ(e, "yAxis", n, r), Y2 = (e, t, n, r) => UZ(e, "yAxis", n, r), iRe = $([
+ $U,
+ K2,
J2,
- X2
-], (e, t, n, r, i) => mU(e, "xAxis") ? wU(t, r, !1) : wU(n, i, !1)), rRe = (e, t, n, r, i) => i;
-function iRe(e) {
+ q2,
+ Y2
+], (e, t, n, r, i) => pU(e, "xAxis") ? CU(t, r, !1) : CU(n, i, !1)), aRe = (e, t, n, r, i) => i;
+function oRe(e) {
return e.type === "line";
}
-var aRe = $([
- eW,
+var sRe = $([
+ $U,
+ K2,
+ J2,
q2,
Y2,
- J2,
- X2,
- $([zX, rRe], (e, t) => e.filter(iRe).find((e) => e.id === t)),
- nRe,
- pK
+ $([RX, aRe], (e, t) => e.filter(oRe).find((e) => e.id === t)),
+ iRe,
+ fK
], (e, t, n, r, i, a, o, s) => {
var { chartData: c, dataStartIndex: l, dataEndIndex: u } = s;
if (!(a == null || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || o == null || e !== "horizontal" && e !== "vertical")) {
var { dataKey: d, data: f } = a, p = f != null && f.length > 0 ? f : c?.slice(l, u + 1);
- if (p != null) return TRe({
+ if (p != null) return DRe({
layout: e,
xAxis: t,
yAxis: n,
@@ -67514,8 +67581,8 @@ var aRe = $([
});
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
-function Z2(e) {
- var t = GR(e), n = 3, r = 2;
+function X2(e) {
+ var t = WR(e), n = 3, r = 2;
if (t != null) {
var { r: i, strokeWidth: a } = t, o = Number(i), s = Number(a);
return (Number.isNaN(o) || o < 0) && (o = n), (Number.isNaN(s) || s < 0) && (s = r), {
@@ -67530,13 +67597,13 @@ function Z2(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var oRe = ["id"], sRe = [
+var cRe = ["id"], lRe = [
"type",
"layout",
"connectNulls",
"needClip",
"shape"
-], cRe = [
+], uRe = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -67552,16 +67619,16 @@ var oRe = ["id"], sRe = [
"yAxisId",
"id"
];
-function Q2() {
- return Q2 = Object.assign ? Object.assign.bind() : function(e) {
+function Z2() {
+ return Z2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, Q2.apply(null, arguments);
+ }, Z2.apply(null, arguments);
}
-function $2(e, t) {
+function Q2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67571,30 +67638,30 @@ function $2(e, t) {
}
return n;
}
-function e4(e) {
+function $2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $2(Object(n), !0).forEach(function(t) {
- lRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $2(Object(n)).forEach(function(t) {
+ t % 2 ? Q2(Object(n), !0).forEach(function(t) {
+ dRe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function lRe(e, t, n) {
- return (t = uRe(t)) in e ? Object.defineProperty(e, t, {
+function dRe(e, t, n) {
+ return (t = fRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function uRe(e) {
- var t = dRe(e, "string");
+function fRe(e) {
+ var t = pRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dRe(e, t) {
+function pRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67604,16 +67671,16 @@ function dRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function t4(e, t) {
+function e4(e, t) {
if (e == null) return {};
- var n, r, i = fRe(e, t);
+ var n, r, i = mRe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function fRe(e, t) {
+function mRe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67622,27 +67689,27 @@ function fRe(e, t) {
}
return n;
}
-var pRe = (e) => {
+var hRe = (e) => {
var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: EU(n, t),
+ value: TU(n, t),
payload: e
}];
-}, mRe = /*#__PURE__*/ R.memo((e) => {
+}, gRe = /*#__PURE__*/ R.memo((e) => {
var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {
dataDefinedOnItem: n,
- getPosition: uB,
+ getPosition: lB,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: EU(o, t),
+ name: TU(o, t),
hide: s,
type: l,
color: r,
@@ -67650,15 +67717,15 @@ var pRe = (e) => {
graphicalItemId: u
}
};
- return /*#__PURE__*/ R.createElement(f0, { tooltipEntrySettings: d });
-}), n4 = (e, t) => `${t}px ${e}px`;
-function hRe(e, t) {
+ return /*#__PURE__*/ R.createElement(d0, { tooltipEntrySettings: d });
+}), t4 = (e, t) => `${t}px ${e}px`;
+function _Re(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
-var gRe = (e, t, n) => {
+var vRe = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
- if (!r) return n4(t, e);
+ if (!r) return t4(t, e);
for (var i = Math.floor(e / r), a = e % r, o = [], s = 0, c = 0; s < n.length; c += (l = n[s]) ?? 0, ++s) {
var l, u = n[s];
if (u != null && c + u > a) {
@@ -67668,14 +67735,14 @@ var gRe = (e, t, n) => {
}
var d = o.length % 2 == 0 ? [0, t] : [t];
return [
- ...hRe(n, i),
+ ..._Re(n, i),
...o,
...d
].map((e) => `${e}px`).join(", ");
};
-function _Re(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = WR(t4(r, oRe));
- return /*#__PURE__*/ R.createElement(S0, {
+function yRe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = UR(e4(r, cRe));
+ return /*#__PURE__*/ R.createElement(x0, {
points: n,
dot: i,
className: "recharts-line-dots",
@@ -67686,7 +67753,7 @@ function _Re(e) {
clipPathId: t
});
}
-function vRe(e) {
+function bRe(e) {
var { showLabels: t, children: n, points: r } = e, i = (0, R.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -67696,7 +67763,7 @@ function vRe(e) {
upperWidth: 0,
height: 0
};
- return e4(e4({}, t), {}, {
+ return $2($2({}, t), {}, {
value: e.value,
payload: e.payload,
viewBox: t,
@@ -67704,10 +67771,10 @@ function vRe(e) {
fill: void 0
});
}), [r]);
- return /*#__PURE__*/ R.createElement(o1, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ R.createElement(a1, { value: t ? i : void 0 }, n);
}
-function r4(e) {
- var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = e4(e4({}, KR(t4(a, sRe))), {}, {
+function n4(e) {
+ var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = $2($2({}, GR(e4(a, lRe))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -67717,34 +67784,34 @@ function r4(e) {
connectNulls: c,
strokeDasharray: i ?? a.strokeDasharray
});
- return /*#__PURE__*/ R.createElement(R.Fragment, null, r?.length > 1 && /*#__PURE__*/ R.createElement(c0, Q2({
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, r?.length > 1 && /*#__PURE__*/ R.createElement(s0, Z2({
shapeType: "curve",
option: u
- }, d, { pathRef: n })), /*#__PURE__*/ R.createElement(_Re, {
+ }, d, { pathRef: n })), /*#__PURE__*/ R.createElement(yRe, {
points: r,
clipPathId: t,
props: a
}));
}
-function yRe(e) {
+function xRe(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function bRe(e) {
- var { clipPathId: t, props: n, pathRef: r, previousPointsRef: i, longestAnimatedLengthRef: a } = e, { points: o, strokeDasharray: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, animateNewValues: f, width: p, height: m, onAnimationEnd: h, onAnimationStart: g } = n, _ = i.current, v = UG(o, "recharts-line-"), y = (0, R.useRef)(v), [b, x] = (0, R.useState)(!1), S = !b, C = (0, R.useCallback)(() => {
+function SRe(e) {
+ var { clipPathId: t, props: n, pathRef: r, previousPointsRef: i, longestAnimatedLengthRef: a } = e, { points: o, strokeDasharray: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, animateNewValues: f, width: p, height: m, onAnimationEnd: h, onAnimationStart: g } = n, _ = i.current, v = HG(o, "recharts-line-"), y = (0, R.useRef)(v), [b, x] = (0, R.useState)(!1), S = !b, C = (0, R.useCallback)(() => {
typeof h == "function" && h(), x(!1);
}, [h]), w = (0, R.useCallback)(() => {
typeof g == "function" && g(), x(!0);
- }, [g]), T = yRe(r.current), E = (0, R.useRef)(0);
+ }, [g]), T = xRe(r.current), E = (0, R.useRef)(0);
y.current !== v && (E.current = a.current, y.current = v);
var D = E.current;
- return /*#__PURE__*/ R.createElement(vRe, {
+ return /*#__PURE__*/ R.createElement(bRe, {
points: o,
showLabels: S
- }, n.children, /*#__PURE__*/ R.createElement(HG, {
+ }, n.children, /*#__PURE__*/ R.createElement(VG, {
animationId: v,
begin: l,
duration: u,
@@ -67754,26 +67821,26 @@ function bRe(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = aB(D, T + D, e), u = Math.min(l, T), d = c ? s ? gRe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : n4(T, u) : s == null ? void 0 : String(s);
+ var l = iB(D, T + D, e), u = Math.min(l, T), d = c ? s ? vRe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : t4(T, u) : s == null ? void 0 : String(s);
if (e > 0 && T > 0 && (i.current = o, a.current = Math.max(a.current, u)), _) {
var h = _.length / o.length, g = e === 1 ? o : o.map((t, n) => {
var r = Math.floor(n * h);
if (_[r]) {
var i = _[r];
- return e4(e4({}, t), {}, {
- x: aB(i.x, t.x, e),
- y: aB(i.y, t.y, e)
+ return $2($2({}, t), {}, {
+ x: iB(i.x, t.x, e),
+ y: iB(i.y, t.y, e)
});
}
- return f ? e4(e4({}, t), {}, {
- x: aB(p * 2, t.x, e),
- y: aB(m / 2, t.y, e)
- }) : e4(e4({}, t), {}, {
+ return f ? $2($2({}, t), {}, {
+ x: iB(p * 2, t.x, e),
+ y: iB(m / 2, t.y, e)
+ }) : $2($2({}, t), {}, {
x: t.x,
y: t.y
});
});
- return i.current = g, /*#__PURE__*/ R.createElement(r4, {
+ return i.current = g, /*#__PURE__*/ R.createElement(n4, {
props: n,
points: g,
clipPathId: t,
@@ -67781,18 +67848,18 @@ function bRe(e) {
strokeDasharray: d
});
}
- return /*#__PURE__*/ R.createElement(r4, {
+ return /*#__PURE__*/ R.createElement(n4, {
props: n,
points: o,
clipPathId: t,
pathRef: r,
strokeDasharray: d
});
- }), /*#__PURE__*/ R.createElement(l1, { label: n.label }));
+ }), /*#__PURE__*/ R.createElement(c1, { label: n.label }));
}
-function xRe(e) {
+function CRe(e) {
var { clipPathId: t, props: n } = e, r = (0, R.useRef)(null), i = (0, R.useRef)(0), a = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(bRe, {
+ return /*#__PURE__*/ R.createElement(SRe, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -67800,17 +67867,17 @@ function xRe(e) {
pathRef: a
});
}
-var SRe = (e, t) => ({
+var wRe = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
- errorVal: pU(e.payload, t)
-}), CRe = class extends R.Component {
+ errorVal: fU(e.payload, t)
+}), TRe = class extends R.Component {
render() {
var { hide: e, dot: t, points: n, className: r, xAxisId: i, yAxisId: a, top: o, left: s, width: c, height: l, id: u, needClip: d, zIndex: f } = this.props;
if (e) return null;
- var p = Sh("recharts-line", r), m = u, { r: h, strokeWidth: g } = Z2(t), _ = $1(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
- return /*#__PURE__*/ R.createElement(QQ, { zIndex: f }, /*#__PURE__*/ R.createElement(XR, { className: p }, d && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(K2, {
+ var p = Sh("recharts-line", r), m = u, { r: h, strokeWidth: g } = X2(t), _ = Q1(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
+ return /*#__PURE__*/ R.createElement(ZQ, { zIndex: f }, /*#__PURE__*/ R.createElement(YR, { className: p }, d && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(G2, {
clipPathId: m,
xAxisId: i,
yAxisId: a
@@ -67819,16 +67886,16 @@ var SRe = (e, t) => ({
y: o - v / 2,
width: c + v,
height: l + v
- }))), /*#__PURE__*/ R.createElement(W2, {
+ }))), /*#__PURE__*/ R.createElement(U2, {
xAxisId: i,
yAxisId: a,
data: n,
- dataPointFormatter: SRe,
+ dataPointFormatter: wRe,
errorBarOffset: 0
- }, /*#__PURE__*/ R.createElement(xRe, {
+ }, /*#__PURE__*/ R.createElement(CRe, {
props: this.props,
clipPathId: m
- }))), /*#__PURE__*/ R.createElement(k0, {
+ }))), /*#__PURE__*/ R.createElement(O0, {
activeDot: this.props.activeDot,
points: n,
mainColor: this.props.stroke,
@@ -67836,7 +67903,7 @@ var SRe = (e, t) => ({
clipPath: y
}));
}
-}, i4 = {
+}, r4 = {
activeDot: !0,
animateNewValues: !0,
animationBegin: 0,
@@ -67853,14 +67920,14 @@ var SRe = (e, t) => ({
strokeWidth: 1,
xAxisId: 0,
yAxisId: 0,
- zIndex: LK.line,
+ zIndex: IK.line,
type: "linear"
};
-function wRe(e) {
- var t = bB(e, i4), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = t4(t, cRe), { needClip: _ } = G2(p, m), v = E0(), y = tW(), b = IU(), x = Q((e) => aRe(e, p, m, b, h));
+function ERe(e) {
+ var t = yB(e, r4), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = e4(t, uRe), { needClip: _ } = W2(p, m), v = T0(), y = eW(), b = FU(), x = Q((e) => sRe(e, p, m, b, h));
if (y !== "horizontal" && y !== "vertical" || x == null || v == null) return null;
var { height: S, width: C, x: w, y: T } = v;
- return /*#__PURE__*/ R.createElement(CRe, Q2({}, g, {
+ return /*#__PURE__*/ R.createElement(TRe, Z2({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -67884,23 +67951,23 @@ function wRe(e) {
needClip: _
}));
}
-function TRe(e) {
+function DRe(e) {
var { layout: t, xAxis: n, yAxis: r, xAxisTicks: i, yAxisTicks: a, dataKey: o, bandSize: s, displayedData: c } = e;
return c.map((e, c) => {
- var l = pU(e, o);
+ var l = fU(e, o);
if (t === "horizontal") return {
- x: yU({
+ x: vU({
axis: n,
ticks: i,
bandSize: s,
entry: e,
index: c
}),
- y: (sB(l) ? null : r.scale.map(l)) ?? null,
+ y: (oB(l) ? null : r.scale.map(l)) ?? null,
value: l,
payload: e
};
- var u = sB(l) ? null : n.scale.map(l), d = yU({
+ var u = oB(l) ? null : n.scale.map(l), d = vU({
axis: r,
ticks: a,
bandSize: s,
@@ -67915,12 +67982,12 @@ function TRe(e) {
};
}).filter(Boolean);
}
-function ERe(e) {
- var t = bB(e, i4), n = IU();
- return /*#__PURE__*/ R.createElement(h0, {
+function ORe(e) {
+ var t = yB(e, r4), n = FU();
+ return /*#__PURE__*/ R.createElement(m0, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(p0, { legendPayload: pRe(t) }), /*#__PURE__*/ R.createElement(mRe, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(f0, { legendPayload: hRe(t) }), /*#__PURE__*/ R.createElement(gRe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -67931,7 +67998,7 @@ function ERe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(_0, {
+ }), /*#__PURE__*/ R.createElement(g0, {
type: "line",
id: e,
data: t.data,
@@ -67941,50 +68008,50 @@ function ERe(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ R.createElement(wRe, Q2({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(ERe, Z2({}, t, { id: e }))));
}
-var a4 = /*#__PURE__*/ R.memo(ERe, $W);
-a4.displayName = "Line";
+var i4 = /*#__PURE__*/ R.memo(ORe, QW);
+i4.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
-function o4(e, t) {
+function a4(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.xAxisId ?? 0;
}
-function s4(e, t) {
+function o4(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.yAxisId ?? 0;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var c4 = (e, t, n) => GZ(e, "xAxis", o4(e, t), n), l4 = (e, t, n) => WZ(e, "xAxis", o4(e, t), n), u4 = (e, t, n) => GZ(e, "yAxis", s4(e, t), n), d4 = (e, t, n) => WZ(e, "yAxis", s4(e, t), n), DRe = $([
- eW,
+var s4 = (e, t, n) => WZ(e, "xAxis", a4(e, t), n), c4 = (e, t, n) => UZ(e, "xAxis", a4(e, t), n), l4 = (e, t, n) => WZ(e, "yAxis", o4(e, t), n), u4 = (e, t, n) => UZ(e, "yAxis", o4(e, t), n), kRe = $([
+ $U,
+ s4,
+ l4,
c4,
- u4,
+ u4
+], (e, t, n, r, i) => pU(e, "xAxis") ? CU(t, r, !1) : CU(n, i, !1)), d4 = $([RX, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), f4 = (e) => pU($U(e), "xAxis") ? "yAxis" : "xAxis", ARe = (e, t) => f4(e) === "yAxis" ? o4(e, t) : a4(e, t), jRe = $([
+ $U,
+ s4,
l4,
- d4
-], (e, t, n, r, i) => mU(e, "xAxis") ? wU(t, r, !1) : wU(n, i, !1)), f4 = $([zX, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), p4 = (e) => mU(eW(e), "xAxis") ? "yAxis" : "xAxis", ORe = (e, t) => p4(e) === "yAxis" ? s4(e, t) : o4(e, t), kRe = $([
- eW,
c4,
u4,
- l4,
- d4,
- $([f4, (e, t, n) => nZ(e, p4(e), ORe(e, t), n)], (e, t) => {
+ $([d4, (e, t, n) => tZ(e, f4(e), ARe(e, t), n)], (e, t) => {
if (e != null && t != null) {
- var { stackId: n } = e, r = rq(e);
+ var { stackId: n } = e, r = nq(e);
if (n != null && r != null) {
var i = (t[n]?.stackedData)?.find((e) => e.key === r);
if (i != null) return i.map((e) => [e[0], e[1]]);
}
}
}),
- mK,
- DRe,
- f4,
- qEe
+ pK,
+ kRe,
+ d4,
+ YEe
], (e, t, n, r, i, a, o, s, c, l) => {
var { chartData: u, dataStartIndex: d, dataEndIndex: f } = o;
if (!(c == null || e !== "horizontal" && e !== "vertical" || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || s == null)) {
var { data: p } = c, m = p && p.length > 0 ? p : u?.slice(d, f + 1);
- if (m != null) return YRe({
+ if (m != null) return ZRe({
layout: e,
xAxis: t,
yAxis: n,
@@ -67998,7 +68065,7 @@ var c4 = (e, t, n) => GZ(e, "xAxis", o4(e, t), n), l4 = (e, t, n) => WZ(e, "xAxi
bandSize: s
});
}
-}), ARe = ["id"], jRe = [
+}), MRe = ["id"], NRe = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -68014,25 +68081,25 @@ var c4 = (e, t, n) => GZ(e, "xAxis", o4(e, t), n), l4 = (e, t, n) => WZ(e, "xAxi
"xAxisId",
"yAxisId"
];
-function m4() {
- return m4 = Object.assign ? Object.assign.bind() : function(e) {
+function p4() {
+ return p4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, m4.apply(null, arguments);
+ }, p4.apply(null, arguments);
}
-function h4(e, t) {
+function m4(e, t) {
if (e == null) return {};
- var n, r, i = MRe(e, t);
+ var n, r, i = PRe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function MRe(e, t) {
+function PRe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -68041,7 +68108,7 @@ function MRe(e, t) {
}
return n;
}
-function g4(e, t) {
+function h4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68051,30 +68118,30 @@ function g4(e, t) {
}
return n;
}
-function _4(e) {
+function g4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? g4(Object(n), !0).forEach(function(t) {
- NRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g4(Object(n)).forEach(function(t) {
+ t % 2 ? h4(Object(n), !0).forEach(function(t) {
+ FRe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function NRe(e, t, n) {
- return (t = PRe(t)) in e ? Object.defineProperty(e, t, {
+function FRe(e, t, n) {
+ return (t = IRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function PRe(e) {
- var t = FRe(e, "string");
+function IRe(e) {
+ var t = LRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function FRe(e, t) {
+function LRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68084,42 +68151,42 @@ function FRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function v4(e, t) {
+function _4(e, t) {
return e && e !== "none" ? e : t;
}
-var IRe = (e) => {
+var RRe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
- color: v4(r, i),
- value: EU(n, t),
+ color: _4(r, i),
+ value: TU(n, t),
payload: e
}];
-}, LRe = /*#__PURE__*/ R.memo((e) => {
+}, zRe = /*#__PURE__*/ R.memo((e) => {
var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {
dataDefinedOnItem: n,
- getPosition: uB,
+ getPosition: lB,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: EU(o, t),
+ name: TU(o, t),
hide: s,
type: l,
- color: v4(r, a),
+ color: _4(r, a),
unit: c,
graphicalItemId: u
}
};
- return /*#__PURE__*/ R.createElement(f0, { tooltipEntrySettings: d });
+ return /*#__PURE__*/ R.createElement(d0, { tooltipEntrySettings: d });
});
-function RRe(e) {
- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = WR(r);
- return /*#__PURE__*/ R.createElement(S0, {
+function BRe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = UR(r);
+ return /*#__PURE__*/ R.createElement(x0, {
points: n,
dot: a,
className: "recharts-area-dots",
@@ -68130,7 +68197,7 @@ function RRe(e) {
clipPathId: t
});
}
-function zRe(e) {
+function VRe(e) {
var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {
var t = {
x: e.x ?? 0,
@@ -68140,7 +68207,7 @@ function zRe(e) {
upperWidth: 0,
height: 0
};
- return _4(_4({}, t), {}, {
+ return g4(g4({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: void 0,
@@ -68148,11 +68215,11 @@ function zRe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ R.createElement(o1, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ R.createElement(a1, { value: t ? i : void 0 }, n);
}
-function y4(e) {
- var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = h4(a, ARe), p = WR(f), m = KR(f);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, t?.length > 1 && /*#__PURE__*/ R.createElement(XR, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ R.createElement(wG, m4({}, m, {
+function v4(e) {
+ var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = m4(a, MRe), p = UR(f), m = GR(f);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, t?.length > 1 && /*#__PURE__*/ R.createElement(YR, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ R.createElement(CG, p4({}, m, {
id: d,
points: t,
connectNulls: l,
@@ -68161,29 +68228,29 @@ function y4(e) {
layout: o,
stroke: "none",
className: "recharts-area-area"
- })), c !== "none" && /*#__PURE__*/ R.createElement(wG, m4({}, p, {
+ })), c !== "none" && /*#__PURE__*/ R.createElement(CG, p4({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: t
- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ R.createElement(wG, m4({}, p, {
+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ R.createElement(CG, p4({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ R.createElement(RRe, {
+ }))), /*#__PURE__*/ R.createElement(BRe, {
points: t,
props: f,
clipPathId: i
}));
}
-function BRe(e) {
+function HRe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
- if (!lU(a) || !lU(o)) return null;
+ if (!cU(a) || !cU(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));
return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), Z(c) ? /*#__PURE__*/ R.createElement("rect", {
x: 0,
@@ -68192,9 +68259,9 @@ function BRe(e) {
height: Math.floor(s)
}) : null;
}
-function VRe(e) {
+function URe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
- if (!lU(a) || !lU(o)) return null;
+ if (!cU(a) || !cU(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));
return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), Z(c) ? /*#__PURE__*/ R.createElement("rect", {
x: a < o ? a : a - s,
@@ -68203,35 +68270,35 @@ function VRe(e) {
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function HRe(e) {
+function WRe(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ R.createElement(BRe, {
+ return n === "vertical" ? /*#__PURE__*/ R.createElement(HRe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ R.createElement(VRe, {
+ }) : /*#__PURE__*/ R.createElement(URe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function URe(e) {
- var { needClip: t, clipPathId: n, props: r, previousPointsRef: i, previousBaselineRef: a } = e, { points: o, baseLine: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, onAnimationStart: f, onAnimationEnd: p } = r, m = UG((0, R.useMemo)(() => ({
+function GRe(e) {
+ var { needClip: t, clipPathId: n, props: r, previousPointsRef: i, previousBaselineRef: a } = e, { points: o, baseLine: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, onAnimationStart: f, onAnimationEnd: p } = r, m = HG((0, R.useMemo)(() => ({
points: o,
baseLine: s
- }), [o, s]), "recharts-area-"), h = nW(), [g, _] = (0, R.useState)(!1), v = !g, y = (0, R.useCallback)(() => {
+ }), [o, s]), "recharts-area-"), h = tW(), [g, _] = (0, R.useState)(!1), v = !g, y = (0, R.useCallback)(() => {
typeof p == "function" && p(), _(!1);
}, [p]), b = (0, R.useCallback)(() => {
typeof f == "function" && f(), _(!0);
}, [f]);
if (h == null) return null;
var x = i.current, S = a.current;
- return /*#__PURE__*/ R.createElement(zRe, {
+ return /*#__PURE__*/ R.createElement(VRe, {
showLabels: v,
points: o
- }, r.children, /*#__PURE__*/ R.createElement(HG, {
+ }, r.children, /*#__PURE__*/ R.createElement(VG, {
animationId: m,
begin: l,
duration: u,
@@ -68246,24 +68313,24 @@ function URe(e) {
var r = Math.floor(n * l);
if (x[r]) {
var i = x[r];
- return _4(_4({}, t), {}, {
- x: aB(i.x, t.x, e),
- y: aB(i.y, t.y, e)
+ return g4(g4({}, t), {}, {
+ x: iB(i.x, t.x, e),
+ y: iB(i.y, t.y, e)
});
}
return t;
- }), d = Z(s) ? aB(S, s, e) : sB(s) || $z(s) ? aB(S, 0, e) : s.map((t, n) => {
+ }), d = Z(s) ? iB(S, s, e) : oB(s) || Qz(s) ? iB(S, 0, e) : s.map((t, n) => {
var r = Math.floor(n * l);
if (Array.isArray(S) && S[r]) {
var i = S[r];
- return _4(_4({}, t), {}, {
- x: aB(i.x, t.x, e),
- y: aB(i.y, t.y, e)
+ return g4(g4({}, t), {}, {
+ x: iB(i.x, t.x, e),
+ y: iB(i.y, t.y, e)
});
}
return t;
});
- return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ R.createElement(y4, {
+ return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ R.createElement(v4, {
points: u,
baseLine: d,
needClip: t,
@@ -68271,24 +68338,24 @@ function URe(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ R.createElement(XR, null, c && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ R.createElement(HRe, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ R.createElement(YR, null, c && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ R.createElement(WRe, {
alpha: e,
points: o,
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ R.createElement(XR, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ R.createElement(y4, {
+ }))), /*#__PURE__*/ R.createElement(YR, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ R.createElement(v4, {
points: o,
baseLine: s,
needClip: t,
clipPathId: n,
props: r
})));
- }), /*#__PURE__*/ R.createElement(l1, { label: r.label }));
+ }), /*#__PURE__*/ R.createElement(c1, { label: r.label }));
}
-function WRe(e) {
+function KRe(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, R.useRef)(null), a = (0, R.useRef)();
- return /*#__PURE__*/ R.createElement(URe, {
+ return /*#__PURE__*/ R.createElement(GRe, {
needClip: t,
clipPathId: n,
props: r,
@@ -68296,12 +68363,12 @@ function WRe(e) {
previousBaselineRef: a
});
}
-var GRe = class extends R.PureComponent {
+var qRe = class extends R.PureComponent {
render() {
var { hide: e, dot: t, points: n, className: r, top: i, left: a, needClip: o, xAxisId: s, yAxisId: c, width: l, height: u, id: d, baseLine: f, zIndex: p } = this.props;
if (e) return null;
- var m = Sh("recharts-area", r), h = d, { r: g, strokeWidth: _ } = Z2(t), v = $1(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ R.createElement(QQ, { zIndex: p }, /*#__PURE__*/ R.createElement(XR, { className: m }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(K2, {
+ var m = Sh("recharts-area", r), h = d, { r: g, strokeWidth: _ } = X2(t), v = Q1(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
+ return /*#__PURE__*/ R.createElement(ZQ, { zIndex: p }, /*#__PURE__*/ R.createElement(YR, { className: m }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(G2, {
clipPathId: h,
xAxisId: s,
yAxisId: c
@@ -68310,25 +68377,25 @@ var GRe = class extends R.PureComponent {
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ R.createElement(WRe, {
+ }))), /*#__PURE__*/ R.createElement(KRe, {
needClip: o,
clipPathId: h,
props: this.props
- })), /*#__PURE__*/ R.createElement(k0, {
+ })), /*#__PURE__*/ R.createElement(O0, {
points: n,
- mainColor: v4(this.props.stroke, this.props.fill),
+ mainColor: _4(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
- }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ R.createElement(k0, {
+ }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ R.createElement(O0, {
points: f,
- mainColor: v4(this.props.stroke, this.props.fill),
+ mainColor: _4(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
}));
}
-}, KRe = {
+}, JRe = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
@@ -68346,13 +68413,13 @@ var GRe = class extends R.PureComponent {
label: !1,
xAxisId: 0,
yAxisId: 0,
- zIndex: LK.area
+ zIndex: IK.area
};
-function qRe(e) {
- var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = h4(e, jRe), g = tW(), _ = BQ(), { needClip: v } = G2(p, m), y = IU(), { points: b, isRange: x, baseLine: S } = Q((t) => kRe(t, e.id, y)) ?? {}, C = E0();
+function YRe(e) {
+ var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = m4(e, NRe), g = eW(), _ = zQ(), { needClip: v } = W2(p, m), y = FU(), { points: b, isRange: x, baseLine: S } = Q((t) => jRe(t, e.id, y)) ?? {}, C = T0();
if (g !== "horizontal" && g !== "vertical" || C == null || _ !== "AreaChart" && _ !== "ComposedChart") return null;
var { height: w, width: T, x: E, y: D } = C;
- return !b || !b.length ? null : /*#__PURE__*/ R.createElement(GRe, m4({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ R.createElement(qRe, p4({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -68378,7 +68445,7 @@ function qRe(e) {
yAxisId: m
}));
}
-var JRe = (e, t, n, r, i) => {
+var XRe = (e, t, n, r, i) => {
var a = n ?? t;
if (Z(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
@@ -68388,17 +68455,17 @@ var JRe = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function YRe(e) {
- var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = JRe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
+function ZRe(e) {
+ var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = XRe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
var a;
if (m) a = i[u + n];
else {
- var o = pU(e, r);
+ var o = fU(e, r);
Array.isArray(o) ? (a = o, _ = !0) : a = [h, o];
}
- var l = a?.[1] ?? null, v = l == null || m && !t && pU(e, r) == null;
+ var l = a?.[1] ?? null, v = l == null || m && !t && fU(e, r) == null;
return g ? {
- x: yU({
+ x: vU({
axis: s,
ticks: d,
bandSize: p,
@@ -68410,7 +68477,7 @@ function YRe(e) {
payload: e
} : {
x: v ? null : s.scale.map(l) ?? null,
- y: yU({
+ y: vU({
axis: c,
ticks: f,
bandSize: p,
@@ -68438,12 +68505,12 @@ function YRe(e) {
isRange: _
};
}
-function XRe(e) {
- var t = bB(e, KRe), n = IU();
- return /*#__PURE__*/ R.createElement(h0, {
+function QRe(e) {
+ var t = yB(e, JRe), n = FU();
+ return /*#__PURE__*/ R.createElement(m0, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(p0, { legendPayload: IRe(t) }), /*#__PURE__*/ R.createElement(LRe, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(f0, { legendPayload: RRe(t) }), /*#__PURE__*/ R.createElement(zRe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -68454,7 +68521,7 @@ function XRe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(_0, {
+ }), /*#__PURE__*/ R.createElement(g0, {
type: "area",
id: e,
data: t.data,
@@ -68462,115 +68529,115 @@ function XRe(e) {
xAxisId: t.xAxisId,
yAxisId: t.yAxisId,
zAxisId: 0,
- stackId: vU(t.stackId),
+ stackId: _U(t.stackId),
hide: t.hide,
barSize: void 0,
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ R.createElement(qRe, m4({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(YRe, p4({}, t, { id: e }))));
}
-var b4 = /*#__PURE__*/ R.memo(XRe, $W);
-b4.displayName = "Area";
+var y4 = /*#__PURE__*/ R.memo(QRe, QW);
+y4.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var ZRe = "Invariant failed";
-function QRe(e, t) {
- if (!e) throw Error(ZRe);
+var $Re = "Invariant failed";
+function eze(e, t) {
+ if (!e) throw Error($Re);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
-function x4() {
- return x4 = Object.assign ? Object.assign.bind() : function(e) {
+function b4() {
+ return b4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, x4.apply(null, arguments);
+ }, b4.apply(null, arguments);
}
-function S4(e) {
- return /*#__PURE__*/ R.createElement(c0, x4({
+function x4(e) {
+ return /*#__PURE__*/ R.createElement(s0, b4({
shapeType: "rectangle",
activeClassName: "recharts-active-bar",
inActiveClassName: "recharts-inactive-bar"
}, e));
}
-var $Re = function(e) {
+var tze = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
return (n, r) => {
if (Z(e)) return e;
- var i = Z(n) || sB(n);
- return i ? e(n, r) : (!i && QRe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
+ var i = Z(n) || oB(n);
+ return i ? e(n, r) : (!i && eze(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, eze = (e, t, n) => n, C4 = $([zX, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), tze = $([C4], (e) => e?.maxBarSize), nze = (e, t, n, r) => r, rze = $([
- eW,
- zX,
+}, nze = (e, t, n) => n, S4 = $([RX, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), rze = $([S4], (e) => e?.maxBarSize), ize = (e, t, n, r) => r, aze = $([
+ $U,
+ RX,
+ a4,
o4,
- s4,
- eze
-], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), ize = (e, t, n) => {
- var r = eW(e), i = o4(e, t), a = s4(e, t);
- if (i != null && a != null) return r === "horizontal" ? nZ(e, "yAxis", a, n) : nZ(e, "xAxis", i, n);
-}, aze = $([
- rze,
- AK,
+ nze
+], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), oze = (e, t, n) => {
+ var r = $U(e), i = a4(e, t), a = o4(e, t);
+ if (i != null && a != null) return r === "horizontal" ? tZ(e, "yAxis", a, n) : tZ(e, "xAxis", i, n);
+}, sze = $([
+ aze,
+ kK,
(e, t) => {
- var n = eW(e), r = o4(e, t), i = s4(e, t);
- if (r != null && i != null) return n === "horizontal" ? LZ(e, "xAxis", r) : LZ(e, "yAxis", i);
+ var n = $U(e), r = a4(e, t), i = o4(e, t);
+ if (r != null && i != null) return n === "horizontal" ? IZ(e, "xAxis", r) : IZ(e, "yAxis", i);
}
-], G0), oze = (e, t, n) => {
- var r = C4(e, t);
+], W0), cze = (e, t, n) => {
+ var r = S4(e, t);
if (r == null) return 0;
- var i = o4(e, t), a = s4(e, t);
+ var i = a4(e, t), a = o4(e, t);
if (i == null || a == null) return 0;
- var o = eW(e), s = DK(e), { maxBarSize: c } = r, l = sB(c) ? s : c, u, d;
- return o === "horizontal" ? (u = GZ(e, "xAxis", i, n), d = WZ(e, "xAxis", i, n)) : (u = GZ(e, "yAxis", a, n), d = WZ(e, "yAxis", a, n)), wU(u, d, !0) ?? l ?? 0;
-}, w4 = (e, t, n) => {
- var r = eW(e), i = o4(e, t), a = s4(e, t);
+ var o = $U(e), s = EK(e), { maxBarSize: c } = r, l = oB(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = WZ(e, "xAxis", i, n), d = UZ(e, "xAxis", i, n)) : (u = WZ(e, "yAxis", a, n), d = UZ(e, "yAxis", a, n)), CU(u, d, !0) ?? l ?? 0;
+}, C4 = (e, t, n) => {
+ var r = $U(e), i = a4(e, t), a = o4(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = GZ(e, "xAxis", i, n), s = WZ(e, "xAxis", i, n)) : (o = GZ(e, "yAxis", a, n), s = WZ(e, "yAxis", a, n)), wU(o, s);
+ return r === "horizontal" ? (o = WZ(e, "xAxis", i, n), s = UZ(e, "xAxis", i, n)) : (o = WZ(e, "yAxis", a, n), s = UZ(e, "yAxis", a, n)), CU(o, s);
}
-}, sze = $([
+}, lze = $([
+ NU,
PU,
- FU,
(e, t, n) => {
- var r = o4(e, t);
- if (r != null) return GZ(e, "xAxis", r, n);
+ var r = a4(e, t);
+ if (r != null) return WZ(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = s4(e, t);
- if (r != null) return GZ(e, "yAxis", r, n);
+ var r = o4(e, t);
+ if (r != null) return WZ(e, "yAxis", r, n);
},
(e, t, n) => {
- var r = o4(e, t);
- if (r != null) return WZ(e, "xAxis", r, n);
+ var r = a4(e, t);
+ if (r != null) return UZ(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = s4(e, t);
- if (r != null) return WZ(e, "yAxis", r, n);
+ var r = o4(e, t);
+ if (r != null) return UZ(e, "yAxis", r, n);
},
$([$([
- aze,
+ sze,
+ EK,
DK,
OK,
- kK,
- oze,
- w4,
- tze
- ], J0), C4], X0),
- eW,
- mK,
- w4,
- $([ize, C4], Y0),
+ cze,
+ C4,
+ rze
+ ], q0), S4], Y0),
+ $U,
+ pK,
C4,
- nze
+ $([oze, S4], J0),
+ S4,
+ ize
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = c;
if (!(d == null || o == null || t == null || s !== "horizontal" && s !== "vertical" || n == null || r == null || i == null || a == null || l == null)) {
var { data: g } = d, _ = g != null && g.length > 0 ? g : p?.slice(m, h + 1);
- if (_ != null) return Fze({
+ if (_ != null) return Lze({
layout: s,
barSettings: d,
pos: o,
@@ -68587,26 +68654,26 @@ var $Re = function(e) {
dataStartIndex: m
});
}
-}), cze = ["index"];
-function T4() {
- return T4 = Object.assign ? Object.assign.bind() : function(e) {
+}), uze = ["index"];
+function w4() {
+ return w4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, T4.apply(null, arguments);
+ }, w4.apply(null, arguments);
}
-function lze(e, t) {
+function dze(e, t) {
if (e == null) return {};
- var n, r, i = uze(e, t);
+ var n, r, i = fze(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function uze(e, t) {
+function fze(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -68615,45 +68682,45 @@ function uze(e, t) {
}
return n;
}
-var E4 = /*#__PURE__*/ (0, R.createContext)(void 0), dze = (e) => {
- var t = (0, R.useContext)(E4);
+var T4 = /*#__PURE__*/ (0, R.createContext)(void 0), pze = (e) => {
+ var t = (0, R.useContext)(T4);
if (t != null) return t.stackId;
- if (e != null) return vU(e);
-}, fze = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, pze = (e) => {
- var t = (0, R.useContext)(E4);
+ if (e != null) return _U(e);
+}, mze = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, hze = (e) => {
+ var t = (0, R.useContext)(T4);
if (t != null) {
var { stackId: n } = t;
- return `url(#${fze(n, e)})`;
+ return `url(#${mze(n, e)})`;
}
-}, D4 = (e) => {
- var { index: t } = e, n = lze(e, cze), r = pze(t);
- return /*#__PURE__*/ R.createElement(XR, T4({
+}, E4 = (e) => {
+ var { index: t } = e, n = dze(e, uze), r = hze(t);
+ return /*#__PURE__*/ R.createElement(YR, w4({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, mze = [
+}, gze = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], hze = [
+], _ze = [
"value",
"background",
"tooltipPosition"
-], gze = ["id"], _ze = [
+], vze = ["id"], yze = [
"onMouseEnter",
"onClick",
"onMouseLeave"
];
-function O4() {
- return O4 = Object.assign ? Object.assign.bind() : function(e) {
+function D4() {
+ return D4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, O4.apply(null, arguments);
+ }, D4.apply(null, arguments);
}
-function k4(e, t) {
+function O4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68663,30 +68730,30 @@ function k4(e, t) {
}
return n;
}
-function A4(e) {
+function k4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? k4(Object(n), !0).forEach(function(t) {
- vze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k4(Object(n)).forEach(function(t) {
+ t % 2 ? O4(Object(n), !0).forEach(function(t) {
+ bze(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function vze(e, t, n) {
- return (t = yze(t)) in e ? Object.defineProperty(e, t, {
+function bze(e, t, n) {
+ return (t = xze(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yze(e) {
- var t = bze(e, "string");
+function xze(e) {
+ var t = Sze(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bze(e, t) {
+function Sze(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68696,16 +68763,16 @@ function bze(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function j4(e, t) {
+function A4(e, t) {
if (e == null) return {};
- var n, r, i = xze(e, t);
+ var n, r, i = Cze(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function xze(e, t) {
+function Cze(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -68714,27 +68781,27 @@ function xze(e, t) {
}
return n;
}
-var Sze = (e) => {
+var wze = (e) => {
var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: EU(n, t),
+ value: TU(n, t),
payload: e
}];
-}, Cze = /*#__PURE__*/ R.memo((e) => {
+}, Tze = /*#__PURE__*/ R.memo((e) => {
var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, unit: s, tooltipType: c, id: l } = e, u = {
dataDefinedOnItem: void 0,
- getPosition: uB,
+ getPosition: lB,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
dataKey: t,
nameKey: void 0,
- name: EU(a, t),
+ name: TU(a, t),
hide: o,
type: c,
color: i,
@@ -68742,19 +68809,19 @@ var Sze = (e) => {
graphicalItemId: l
}
};
- return /*#__PURE__*/ R.createElement(f0, { tooltipEntrySettings: u });
+ return /*#__PURE__*/ R.createElement(d0, { tooltipEntrySettings: u });
});
-function wze(e) {
- var t = Q(jQ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = j4(a, mze), u = l0(o, r, a.id), d = u0(s), f = d0(c, r, a.id);
+function Eze(e) {
+ var t = Q(AQ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = A4(a, gze), u = c0(o, r, a.id), d = l0(s), f = u0(c, r, a.id);
if (!i || n == null) return null;
- var p = GR(i);
- return /*#__PURE__*/ R.createElement(QQ, { zIndex: l2(i, LK.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = j4(e, hze);
+ var p = WR(i);
+ return /*#__PURE__*/ R.createElement(ZQ, { zIndex: c2(i, IK.barBackground) }, n.map((e, n) => {
+ var { value: a, background: o, tooltipPosition: s } = e, c = A4(e, _ze);
if (!o) return null;
- var m = u(e, n), h = d(e, n), g = f(e, n), _ = A4(A4(A4(A4(A4({
+ var m = u(e, n), h = d(e, n), g = f(e, n), _ = k4(k4(k4(k4(k4({
option: i,
isActive: String(n) === t
- }, c), {}, { fill: "#eee" }, o), p), vB(l, e, n)), {}, {
+ }, c), {}, { fill: "#eee" }, o), p), _B(l, e, n)), {}, {
onMouseEnter: m,
onMouseLeave: h,
onClick: g,
@@ -68762,10 +68829,10 @@ function wze(e) {
index: n,
className: "recharts-bar-background-rectangle"
});
- return /*#__PURE__*/ R.createElement(S4, O4({ key: `background-bar-${n}` }, _));
+ return /*#__PURE__*/ R.createElement(x4, D4({ key: `background-bar-${n}` }, _));
}));
}
-function Tze(e) {
+function Dze(e) {
var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {
var t = {
x: e.x,
@@ -68775,7 +68842,7 @@ function Tze(e) {
upperWidth: e.width,
height: e.height
};
- return A4(A4({}, t), {}, {
+ return k4(k4({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: e.parentViewBox,
@@ -68783,10 +68850,10 @@ function Tze(e) {
fill: e.fill
});
});
- return /*#__PURE__*/ R.createElement(o1, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ R.createElement(a1, { value: t ? i : void 0 }, n);
}
-function Eze(e) {
- var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(jQ), c = Q(NQ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)(!1);
+function Oze(e) {
+ var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(AQ), c = Q(MQ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)(!1);
(0, R.useEffect)(() => {
var e;
return l ? (d(!0), e = requestAnimationFrame(() => {
@@ -68797,42 +68864,42 @@ function Eze(e) {
}, [l]);
var m = (0, R.useCallback)(() => {
l || d(!1);
- }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ R.createElement(S4, O4({}, r, { name: String(r.name) }, i, {
+ }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ R.createElement(x4, D4({}, r, { name: String(r.name) }, i, {
isActive: h,
option: _,
index: a,
dataKey: o,
onTransitionEnd: m
}));
- return g ? /*#__PURE__*/ R.createElement(QQ, { zIndex: LK.activeBar }, /*#__PURE__*/ R.createElement(D4, { index: i.originalDataIndex }, v)) : v;
+ return g ? /*#__PURE__*/ R.createElement(ZQ, { zIndex: IK.activeBar }, /*#__PURE__*/ R.createElement(E4, { index: i.originalDataIndex }, v)) : v;
}
-function Dze(e) {
+function kze(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
- return /*#__PURE__*/ R.createElement(S4, O4({}, n, { name: String(n.name) }, r, {
+ return /*#__PURE__*/ R.createElement(x4, D4({}, n, { name: String(n.name) }, r, {
isActive: !1,
option: t,
index: i,
dataKey: a
}));
}
-function Oze(e) {
- var { data: t, props: n } = e, r = WR(n) ?? {}, { id: i } = r, a = j4(r, gze), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = j4(n, _ze), p = l0(l, s, i), m = u0(d), h = d0(u, s, i);
- return t ? /*#__PURE__*/ R.createElement(R.Fragment, null, t.map((e, t) => /*#__PURE__*/ R.createElement(D4, O4({
+function Aze(e) {
+ var { data: t, props: n } = e, r = UR(n) ?? {}, { id: i } = r, a = A4(r, vze), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = A4(n, yze), p = c0(l, s, i), m = l0(d), h = u0(u, s, i);
+ return t ? /*#__PURE__*/ R.createElement(R.Fragment, null, t.map((e, t) => /*#__PURE__*/ R.createElement(E4, D4({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
- }, vB(f, e, t), {
+ }, _B(f, e, t), {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ R.createElement(Eze, {
+ }), c ? /*#__PURE__*/ R.createElement(Oze, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ R.createElement(Dze, {
+ }) : /*#__PURE__*/ R.createElement(kze, {
shape: o,
baseProps: a,
entry: e,
@@ -68840,16 +68907,16 @@ function Oze(e) {
dataKey: s
})))) : null;
}
-function kze(e) {
- var { props: t, previousRectanglesRef: n } = e, { data: r, layout: i, isAnimationActive: a, animationBegin: o, animationDuration: s, animationEasing: c, onAnimationEnd: l, onAnimationStart: u } = t, d = n.current, f = UG(t, "recharts-bar-"), [p, m] = (0, R.useState)(!1), h = !p, g = (0, R.useCallback)(() => {
+function jze(e) {
+ var { props: t, previousRectanglesRef: n } = e, { data: r, layout: i, isAnimationActive: a, animationBegin: o, animationDuration: s, animationEasing: c, onAnimationEnd: l, onAnimationStart: u } = t, d = n.current, f = HG(t, "recharts-bar-"), [p, m] = (0, R.useState)(!1), h = !p, g = (0, R.useCallback)(() => {
typeof l == "function" && l(), m(!1);
}, [l]), _ = (0, R.useCallback)(() => {
typeof u == "function" && u(), m(!0);
}, [u]);
- return /*#__PURE__*/ R.createElement(Tze, {
+ return /*#__PURE__*/ R.createElement(Dze, {
showLabels: h,
rects: r
- }, /*#__PURE__*/ R.createElement(HG, {
+ }, /*#__PURE__*/ R.createElement(VG, {
animationId: f,
begin: o,
duration: s,
@@ -68861,69 +68928,69 @@ function kze(e) {
}, (e) => {
var a = e === 1 ? r : r?.map((t, n) => {
var r = d && d[n];
- if (r) return A4(A4({}, t), {}, {
- x: aB(r.x, t.x, e),
- y: aB(r.y, t.y, e),
- width: aB(r.width, t.width, e),
- height: aB(r.height, t.height, e)
+ if (r) return k4(k4({}, t), {}, {
+ x: iB(r.x, t.x, e),
+ y: iB(r.y, t.y, e),
+ width: iB(r.width, t.width, e),
+ height: iB(r.height, t.height, e)
});
if (i === "horizontal") {
- var a = aB(0, t.height, e), o = aB(t.stackedBarStart, t.y, e);
- return A4(A4({}, t), {}, {
+ var a = iB(0, t.height, e), o = iB(t.stackedBarStart, t.y, e);
+ return k4(k4({}, t), {}, {
y: o,
height: a
});
}
- var s = aB(0, t.width, e), c = aB(t.stackedBarStart, t.x, e);
- return A4(A4({}, t), {}, {
+ var s = iB(0, t.width, e), c = iB(t.stackedBarStart, t.x, e);
+ return k4(k4({}, t), {}, {
width: s,
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ R.createElement(XR, null, /*#__PURE__*/ R.createElement(Oze, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ R.createElement(YR, null, /*#__PURE__*/ R.createElement(Aze, {
props: t,
data: a
}));
- }), /*#__PURE__*/ R.createElement(l1, { label: t.label }), t.children);
+ }), /*#__PURE__*/ R.createElement(c1, { label: t.label }), t.children);
}
-function Aze(e) {
+function Mze(e) {
var t = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(kze, {
+ return /*#__PURE__*/ R.createElement(jze, {
previousRectanglesRef: t,
props: e
});
}
-var M4 = 0, jze = (e, t) => {
+var j4 = 0, Nze = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
y: e.y,
value: n,
- errorVal: pU(e, t)
+ errorVal: fU(e, t)
};
-}, Mze = class extends R.PureComponent {
+}, Pze = class extends R.PureComponent {
render() {
var { hide: e, data: t, dataKey: n, className: r, xAxisId: i, yAxisId: a, needClip: o, background: s, id: c } = this.props;
if (e || t == null) return null;
var l = Sh("recharts-bar", r), u = c;
- return /*#__PURE__*/ R.createElement(XR, {
+ return /*#__PURE__*/ R.createElement(YR, {
className: l,
id: c
- }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(K2, {
+ }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(G2, {
clipPathId: u,
xAxisId: i,
yAxisId: a
- })), /*#__PURE__*/ R.createElement(XR, {
+ })), /*#__PURE__*/ R.createElement(YR, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ R.createElement(wze, {
+ }, /*#__PURE__*/ R.createElement(Eze, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ R.createElement(Aze, this.props)));
+ }), /*#__PURE__*/ R.createElement(Mze, this.props)));
}
-}, Nze = {
+}, Fze = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
@@ -68933,22 +69000,22 @@ var M4 = 0, jze = (e, t) => {
isAnimationActive: "auto",
label: !1,
legendType: "rect",
- minPointSize: M4,
+ minPointSize: j4,
xAxisId: 0,
yAxisId: 0,
- zIndex: LK.bar
+ zIndex: IK.bar
};
-function Pze(e) {
- var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = G2(t, n), f = tW(), p = IU(), m = Q1(e.children, h$), h = Q((t) => sze(t, e.id, p, m));
+function Ize(e) {
+ var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = W2(t, n), f = eW(), p = FU(), m = Z1(e.children, m$), h = Q((t) => lze(t, e.id, p, m));
if (f !== "vertical" && f !== "horizontal") return null;
var g, _ = h?.[0];
- return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ R.createElement(W2, {
+ return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ R.createElement(U2, {
xAxisId: t,
yAxisId: n,
data: h,
- dataPointFormatter: jze,
+ dataPointFormatter: Nze,
errorBarOffset: g
- }, /*#__PURE__*/ R.createElement(Mze, O4({}, e, {
+ }, /*#__PURE__*/ R.createElement(Pze, D4({}, e, {
layout: f,
needClip: d,
data: h,
@@ -68964,20 +69031,20 @@ function Pze(e) {
isAnimationActive: u
})));
}
-function Fze(e) {
- var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = xU({ numericAxis: _ }), b = _.scale.map(y);
+function Lze(e) {
+ var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = bU({ numericAxis: _ }), b = _.scale.map(y);
return f.map((e, f) => {
var _, x, S, C, w, T;
if (d) {
var E = d[f + g];
if (E == null) return null;
- _ = _U(E, v);
- } else _ = pU(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = $Re(r, M4)(_[1], f);
+ _ = gU(E, v);
+ } else _ = fU(e, n), Array.isArray(_) || (_ = [y, _]);
+ var D = tze(r, j4)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
- x = bU({
+ x = yU({
axis: s,
ticks: l,
bandSize: o,
@@ -68986,19 +69053,19 @@ function Fze(e) {
index: f
}), S = k ?? O ?? void 0, C = a.size;
var A = O - k;
- if (w = $z(A) ? 0 : A, T = {
+ if (w = Qz(A) ? 0 : A, T = {
x,
y: p.top,
width: C,
height: p.height
}, Math.abs(D) > 0 && Math.abs(w) < Math.abs(D)) {
- var j = Qz(w || D) * (Math.abs(D) - Math.abs(w));
+ var j = Zz(w || D) * (Math.abs(D) - Math.abs(w));
S -= j, w += j;
}
} else {
var M = s.scale.map(_[0]), N = s.scale.map(_[1]);
if (M == null || N == null) return null;
- if (x = M, S = bU({
+ if (x = M, S = yU({
axis: c,
ticks: u,
bandSize: o,
@@ -69011,11 +69078,11 @@ function Fze(e) {
width: p.width,
height: w
}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {
- var ee = Qz(C || D) * (Math.abs(D) - Math.abs(C));
+ var ee = Zz(C || D) * (Math.abs(D) - Math.abs(C));
C += ee;
}
}
- return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : A4(A4({}, e), {}, {
+ return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : k4(k4({}, e), {}, {
stackedBarStart: b,
x,
y: S,
@@ -69033,12 +69100,12 @@ function Fze(e) {
}, m && m[f] && m[f].props);
}).filter(Boolean);
}
-function Ize(e) {
- var t = bB(e, Nze), n = dze(t.stackId), r = IU();
- return /*#__PURE__*/ R.createElement(h0, {
+function Rze(e) {
+ var t = yB(e, Fze), n = pze(t.stackId), r = FU();
+ return /*#__PURE__*/ R.createElement(m0, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(p0, { legendPayload: Sze(t) }), /*#__PURE__*/ R.createElement(Cze, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(f0, { legendPayload: wze(t) }), /*#__PURE__*/ R.createElement(Tze, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -69048,7 +69115,7 @@ function Ize(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(_0, {
+ }), /*#__PURE__*/ R.createElement(g0, {
type: "bar",
id: e,
data: void 0,
@@ -69063,23 +69130,23 @@ function Ize(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ R.createElement(QQ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(Pze, O4({}, t, { id: e })))));
+ }), /*#__PURE__*/ R.createElement(ZQ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(Ize, D4({}, t, { id: e })))));
}
-var N4 = /*#__PURE__*/ R.memo(Ize, $W);
-N4.displayName = "Bar";
+var M4 = /*#__PURE__*/ R.memo(Rze, QW);
+M4.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var Lze = ["domain", "range"], Rze = ["domain", "range"];
-function P4(e, t) {
+var zze = ["domain", "range"], Bze = ["domain", "range"];
+function N4(e, t) {
if (e == null) return {};
- var n, r, i = zze(e, t);
+ var n, r, i = Vze(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function zze(e, t) {
+function Vze(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69088,31 +69155,31 @@ function zze(e, t) {
}
return n;
}
-function F4(e, t) {
+function P4(e, t) {
return e === t ? !0 : Array.isArray(e) && e.length === 2 && Array.isArray(t) && t.length === 2 ? e[0] === t[0] && e[1] === t[1] : !1;
}
-function I4(e, t) {
+function F4(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = P4(e, Lze), { domain: a, range: o } = t, s = P4(t, Rze);
- return !F4(n, a) || !F4(r, o) ? !1 : $W(i, s);
+ var { domain: n, range: r } = e, i = N4(e, zze), { domain: a, range: o } = t, s = N4(t, Bze);
+ return !P4(n, a) || !P4(r, o) ? !1 : QW(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var Bze = ["type"], Vze = [
+var Hze = ["type"], Uze = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], Hze = ["id", "scale"];
-function L4() {
- return L4 = Object.assign ? Object.assign.bind() : function(e) {
+], Wze = ["id", "scale"];
+function I4() {
+ return I4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, L4.apply(null, arguments);
+ }, I4.apply(null, arguments);
}
-function R4(e, t) {
+function L4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69122,30 +69189,30 @@ function R4(e, t) {
}
return n;
}
-function z4(e) {
+function R4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? R4(Object(n), !0).forEach(function(t) {
- Uze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R4(Object(n)).forEach(function(t) {
+ t % 2 ? L4(Object(n), !0).forEach(function(t) {
+ Gze(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Uze(e, t, n) {
- return (t = Wze(t)) in e ? Object.defineProperty(e, t, {
+function Gze(e, t, n) {
+ return (t = Kze(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Wze(e) {
- var t = Gze(e, "string");
+function Kze(e) {
+ var t = qze(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Gze(e, t) {
+function qze(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69155,16 +69222,16 @@ function Gze(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function B4(e, t) {
+function z4(e, t) {
if (e == null) return {};
- var n, r, i = Kze(e, t);
+ var n, r, i = Jze(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Kze(e, t) {
+function Jze(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69173,24 +69240,24 @@ function Kze(e, t) {
}
return n;
}
-function qze(e) {
- var t = qB(), n = (0, R.useRef)(null), r = nW(), { type: i } = e, a = B4(e, Bze), o = VK(r, "xAxis", i), s = (0, R.useMemo)(() => {
- if (o != null) return z4(z4({}, a), {}, { type: o });
+function Yze(e) {
+ var t = KB(), n = (0, R.useRef)(null), r = tW(), { type: i } = e, a = z4(e, Hze), o = BK(r, "xAxis", i), s = (0, R.useMemo)(() => {
+ if (o != null) return R4(R4({}, a), {}, { type: o });
}, [a, o]);
return (0, R.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(lFe(s)) : n.current !== s && t(uFe({
+ s != null && (n.current === null ? t(dFe(s)) : n.current !== s && t(fFe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, R.useLayoutEffect)(() => () => {
- n.current &&= (t(dFe(n.current)), null);
+ n.current &&= (t(pFe(n.current)), null);
}, [t]), null;
}
-var Jze = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(FU), i = IU(), a = "xAxis", o = Q((e) => HZ(e, a, t, i)), s = Q((e) => FZ(e, t)), c = Q((e) => hAe(e, t)), l = Q((e) => kX(e, t));
+var Xze = (e) => {
+ var { xAxisId: t, className: n } = e, r = Q(PU), i = FU(), a = "xAxis", o = Q((e) => VZ(e, a, t, i)), s = Q((e) => PZ(e, t)), c = Q((e) => _Ae(e, t)), l = Q((e) => OX(e, t));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = B4(e, Vze), { id: m, scale: h } = l, g = B4(l, Hze);
- return /*#__PURE__*/ R.createElement(I2, L4({}, p, g, {
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = z4(e, Uze), { id: m, scale: h } = l, g = z4(l, Wze);
+ return /*#__PURE__*/ R.createElement(F2, I4({}, p, g, {
x: c.x,
y: c.y,
width: s.width,
@@ -69201,33 +69268,33 @@ var Jze = (e) => {
axisType: a,
axisId: t
}));
-}, Yze = {
- allowDataOverflow: OX.allowDataOverflow,
- allowDecimals: OX.allowDecimals,
- allowDuplicatedCategory: OX.allowDuplicatedCategory,
- angle: OX.angle,
- axisLine: F2.axisLine,
- height: OX.height,
+}, Zze = {
+ allowDataOverflow: DX.allowDataOverflow,
+ allowDecimals: DX.allowDecimals,
+ allowDuplicatedCategory: DX.allowDuplicatedCategory,
+ angle: DX.angle,
+ axisLine: P2.axisLine,
+ height: DX.height,
hide: !1,
- includeHidden: OX.includeHidden,
- interval: OX.interval,
+ includeHidden: DX.includeHidden,
+ interval: DX.interval,
label: !1,
- minTickGap: OX.minTickGap,
- mirror: OX.mirror,
- orientation: OX.orientation,
- padding: OX.padding,
- reversed: OX.reversed,
- scale: OX.scale,
- tick: OX.tick,
- tickCount: OX.tickCount,
- tickLine: F2.tickLine,
- tickSize: F2.tickSize,
- type: OX.type,
- niceTicks: OX.niceTicks,
+ minTickGap: DX.minTickGap,
+ mirror: DX.mirror,
+ orientation: DX.orientation,
+ padding: DX.padding,
+ reversed: DX.reversed,
+ scale: DX.scale,
+ tick: DX.tick,
+ tickCount: DX.tickCount,
+ tickLine: P2.tickLine,
+ tickSize: P2.tickSize,
+ type: DX.type,
+ niceTicks: DX.niceTicks,
xAxisId: 0
-}, V4 = /*#__PURE__*/ R.memo((e) => {
- var t = bB(e, Yze);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(qze, {
+}, B4 = /*#__PURE__*/ R.memo((e) => {
+ var t = yB(e, Zze);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Yze, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -69253,26 +69320,26 @@ var Jze = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ R.createElement(Jze, t));
-}, I4);
-V4.displayName = "XAxis";
+ }), /*#__PURE__*/ R.createElement(Xze, t));
+}, F4);
+B4.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var Xze = ["type"], Zze = [
+var Qze = ["type"], $ze = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], Qze = ["id", "scale"];
-function H4() {
- return H4 = Object.assign ? Object.assign.bind() : function(e) {
+], eBe = ["id", "scale"];
+function V4() {
+ return V4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, H4.apply(null, arguments);
+ }, V4.apply(null, arguments);
}
-function U4(e, t) {
+function H4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69282,30 +69349,30 @@ function U4(e, t) {
}
return n;
}
-function W4(e) {
+function U4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? U4(Object(n), !0).forEach(function(t) {
- $ze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U4(Object(n)).forEach(function(t) {
+ t % 2 ? H4(Object(n), !0).forEach(function(t) {
+ tBe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $ze(e, t, n) {
- return (t = eBe(t)) in e ? Object.defineProperty(e, t, {
+function tBe(e, t, n) {
+ return (t = nBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function eBe(e) {
- var t = tBe(e, "string");
+function nBe(e) {
+ var t = rBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tBe(e, t) {
+function rBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69315,16 +69382,16 @@ function tBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function G4(e, t) {
+function W4(e, t) {
if (e == null) return {};
- var n, r, i = nBe(e, t);
+ var n, r, i = iBe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function nBe(e, t) {
+function iBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69333,27 +69400,27 @@ function nBe(e, t) {
}
return n;
}
-function rBe(e) {
- var t = qB(), n = (0, R.useRef)(null), r = nW(), { type: i } = e, a = G4(e, Xze), o = VK(r, "yAxis", i), s = (0, R.useMemo)(() => {
- if (o != null) return W4(W4({}, a), {}, { type: o });
+function aBe(e) {
+ var t = KB(), n = (0, R.useRef)(null), r = tW(), { type: i } = e, a = W4(e, Qze), o = BK(r, "yAxis", i), s = (0, R.useMemo)(() => {
+ if (o != null) return U4(U4({}, a), {}, { type: o });
}, [o, a]);
return (0, R.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(fFe(s)) : n.current !== s && t(pFe({
+ s != null && (n.current === null ? t(mFe(s)) : n.current !== s && t(hFe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, R.useLayoutEffect)(() => () => {
- n.current &&= (t(mFe(n.current)), null);
+ n.current &&= (t(gFe(n.current)), null);
}, [t]), null;
}
-function iBe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = Q(FU), c = IU(), l = qB(), u = "yAxis", d = Q((e) => IZ(e, t)), f = Q((e) => gAe(e, t)), p = Q((e) => HZ(e, u, t, c)), m = Q((e) => MX(e, t));
+function oBe(e) {
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = Q(PU), c = FU(), l = KB(), u = "yAxis", d = Q((e) => FZ(e, t)), f = Q((e) => vAe(e, t)), p = Q((e) => VZ(e, u, t, c)), m = Q((e) => jX(e, t));
if ((0, R.useLayoutEffect)(() => {
- if (!(r !== "auto" || !d || Q$(i) || /*#__PURE__*/ (0, R.isValidElement)(i) || m == null)) {
+ if (!(r !== "auto" || !d || Z$(i) || /*#__PURE__*/ (0, R.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
- Math.round(d.width) !== Math.round(n) && l(vFe({
+ Math.round(d.width) !== Math.round(n) && l(bFe({
id: t,
width: n
}));
@@ -69368,8 +69435,8 @@ function iBe(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = G4(e, Zze), { id: y, scale: b } = m, x = G4(m, Qze);
- return /*#__PURE__*/ R.createElement(I2, H4({}, v, x, {
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = W4(e, $ze), { id: y, scale: b } = m, x = W4(m, eBe);
+ return /*#__PURE__*/ R.createElement(F2, V4({}, v, x, {
ref: a,
labelRef: o,
x: f.x,
@@ -69384,33 +69451,33 @@ function iBe(e) {
axisId: t
}));
}
-var aBe = {
- allowDataOverflow: jX.allowDataOverflow,
- allowDecimals: jX.allowDecimals,
- allowDuplicatedCategory: jX.allowDuplicatedCategory,
- angle: jX.angle,
- axisLine: F2.axisLine,
+var sBe = {
+ allowDataOverflow: AX.allowDataOverflow,
+ allowDecimals: AX.allowDecimals,
+ allowDuplicatedCategory: AX.allowDuplicatedCategory,
+ angle: AX.angle,
+ axisLine: P2.axisLine,
hide: !1,
- includeHidden: jX.includeHidden,
- interval: jX.interval,
+ includeHidden: AX.includeHidden,
+ interval: AX.interval,
label: !1,
- minTickGap: jX.minTickGap,
- mirror: jX.mirror,
- orientation: jX.orientation,
- padding: jX.padding,
- reversed: jX.reversed,
- scale: jX.scale,
- tick: jX.tick,
- tickCount: jX.tickCount,
- tickLine: F2.tickLine,
- tickSize: F2.tickSize,
- type: jX.type,
- niceTicks: jX.niceTicks,
- width: jX.width,
+ minTickGap: AX.minTickGap,
+ mirror: AX.mirror,
+ orientation: AX.orientation,
+ padding: AX.padding,
+ reversed: AX.reversed,
+ scale: AX.scale,
+ tick: AX.tick,
+ tickCount: AX.tickCount,
+ tickLine: P2.tickLine,
+ tickSize: P2.tickSize,
+ type: AX.type,
+ niceTicks: AX.niceTicks,
+ width: AX.width,
yAxisId: 0
-}, K4 = /*#__PURE__*/ R.memo((e) => {
- var t = bB(e, aBe);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(rBe, {
+}, G4 = /*#__PURE__*/ R.memo((e) => {
+ var t = yB(e, sBe);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(aBe, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -69436,27 +69503,27 @@ var aBe = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ R.createElement(iBe, t));
-}, I4);
-K4.displayName = "YAxis";
-var q4 = $([
+ }), /*#__PURE__*/ R.createElement(oBe, t));
+}, F4);
+G4.displayName = "YAxis";
+var K4 = $([
(e, t) => t,
- eW,
- eq,
- cq,
- wQ,
- EQ,
- fje,
- PU
-], yje);
+ $U,
+ $K,
+ sq,
+ CQ,
+ TQ,
+ mje,
+ NU
+], xje);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function oBe(e) {
+function cBe(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
-function J4(e) {
+function q4(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if (oBe(e)) {
+ if (cBe(e)) {
var i = e.currentTarget.getBBox();
n = i.width > 0 ? t.width / i.width : 1, r = i.height > 0 ? t.height / i.height : 1;
} else {
@@ -69471,55 +69538,55 @@ function J4(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var Y4 = TH("mouseClick"), X4 = aU();
-X4.startListening({
- actionCreator: Y4,
+var J4 = wH("mouseClick"), Y4 = iU();
+Y4.startListening({
+ actionCreator: J4,
effect: (e, t) => {
- var n = e.payload, r = q4(t.getState(), J4(n));
- r?.activeIndex != null && t.dispatch(EAe({
+ var n = e.payload, r = K4(t.getState(), q4(n));
+ r?.activeIndex != null && t.dispatch(OAe({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
});
-var Z4 = TH("mouseMove"), Q4 = aU(), $4 = null, e3 = null, t3 = null;
-Q4.startListening({
- actionCreator: Z4,
+var X4 = wH("mouseMove"), Z4 = iU(), Q4 = null, $4 = null, e3 = null;
+Z4.startListening({
+ actionCreator: X4,
effect: (e, t) => {
var n = e.payload, { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i?.includes("mousemove");
- $4 !== null && (cancelAnimationFrame($4), $4 = null), e3 !== null && (typeof r != "number" || !a) && (clearTimeout(e3), e3 = null), t3 = J4(n);
+ Q4 !== null && (cancelAnimationFrame(Q4), Q4 = null), $4 !== null && (typeof r != "number" || !a) && (clearTimeout($4), $4 = null), e3 = q4(n);
var o = () => {
- var e = t.getState(), n = YZ(e, e.tooltip.settings.shared);
- if (!t3) {
- $4 = null, e3 = null;
+ var e = t.getState(), n = JZ(e, e.tooltip.settings.shared);
+ if (!e3) {
+ Q4 = null, $4 = null;
return;
}
if (n === "axis") {
- var r = q4(e, t3);
- r?.activeIndex == null ? t.dispatch(eQ()) : t.dispatch(tQ({
+ var r = K4(e, e3);
+ r?.activeIndex == null ? t.dispatch($Z()) : t.dispatch(eQ({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
- $4 = null, e3 = null;
+ Q4 = null, $4 = null;
};
if (!a) {
o();
return;
}
- r === "raf" ? $4 = requestAnimationFrame(o) : typeof r == "number" && e3 === null && (e3 = setTimeout(o, r));
+ r === "raf" ? Q4 = requestAnimationFrame(o) : typeof r == "number" && $4 === null && ($4 = setTimeout(o, r));
}
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function sBe(e, t) {
+function lBe(e, t) {
return t instanceof HTMLElement ? `HTMLElement <${t.tagName} class="${t.className}">` : t === window ? "global.window" : e === "children" && typeof t == "object" && t ? "<<CHILDREN>>" : t;
}
//#endregion
//#region node_modules/recharts/es6/state/rootPropsSlice.js
-var n3 = {
+var t3 = {
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -69531,70 +69598,70 @@ var n3 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, r3 = PH({
+}, n3 = NH({
name: "rootProps",
- initialState: n3,
+ initialState: t3,
reducers: { updateOptions: (e, t) => {
- e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? n3.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;
+ e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? t3.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;
} }
-}), cBe = r3.reducer, { updateOptions: lBe } = r3.actions, i3 = PH({
+}), uBe = n3.reducer, { updateOptions: dBe } = n3.actions, r3 = NH({
name: "polarOptions",
initialState: null,
reducers: { updatePolarOptions: (e, t) => e === null ? t.payload : (e.startAngle = t.payload.startAngle, e.endAngle = t.payload.endAngle, e.cx = t.payload.cx, e.cy = t.payload.cy, e.innerRadius = t.payload.innerRadius, e.outerRadius = t.payload.outerRadius, e) }
-}), { updatePolarOptions: uBe } = i3.actions, dBe = i3.reducer, a3 = TH("keyDown"), o3 = TH("focus"), s3 = TH("blur"), c3 = aU(), l3 = null, u3 = null, d3 = null;
-c3.startListening({
- actionCreator: a3,
+}), { updatePolarOptions: fBe } = r3.actions, pBe = r3.reducer, i3 = wH("keyDown"), a3 = wH("focus"), o3 = wH("blur"), s3 = iU(), c3 = null, l3 = null, u3 = null;
+s3.startListening({
+ actionCreator: i3,
effect: (e, t) => {
- d3 = e.payload, l3 !== null && (cancelAnimationFrame(l3), l3 = null);
+ u3 = e.payload, c3 !== null && (cancelAnimationFrame(c3), c3 = null);
var { throttleDelay: n, throttledEvents: r } = t.getState().eventSettings, i = r === "all" || r.includes("keydown");
- u3 !== null && (typeof n != "number" || !i) && (clearTimeout(u3), u3 = null);
+ l3 !== null && (typeof n != "number" || !i) && (clearTimeout(l3), l3 = null);
var a = () => {
try {
var e = t.getState();
if (e.rootProps.accessibilityLayer === !1) return;
- var { keyboardInteraction: n } = e.tooltip, r = d3;
+ var { keyboardInteraction: n } = e.tooltip, r = u3;
if (r !== "ArrowRight" && r !== "ArrowLeft" && r !== "Enter") return;
- var i = sQ(n, vQ(e), eZ(e), SQ(e)), a = i == null ? -1 : Number(i);
+ var i = oQ(n, _Q(e), $X(e), xQ(e)), a = i == null ? -1 : Number(i);
if (!Number.isFinite(a) || a < 0) return;
- var o = EQ(e);
+ var o = TQ(e);
if (r === "Enter") {
- var s = qQ(e, "axis", "hover", String(n.index));
- t.dispatch(rQ({
+ var s = KQ(e, "axis", "hover", String(n.index));
+ t.dispatch(nQ({
active: !n.active,
activeIndex: n.index,
activeCoordinate: s
}));
return;
}
- var c = _Ae(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
+ var c = yAe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
if (o == null || l >= o.length || l < 0) return;
- var u = qQ(e, "axis", "hover", String(l));
- t.dispatch(rQ({
+ var u = KQ(e, "axis", "hover", String(l));
+ t.dispatch(nQ({
active: !0,
activeIndex: l.toString(),
activeCoordinate: u
}));
} finally {
- l3 = null, u3 = null;
+ c3 = null, l3 = null;
}
};
if (!i) {
a();
return;
}
- n === "raf" ? l3 = requestAnimationFrame(a) : typeof n == "number" && u3 === null && (a(), d3 = null, u3 = setTimeout(() => {
- d3 ? a() : (u3 = null, l3 = null);
+ n === "raf" ? c3 = requestAnimationFrame(a) : typeof n == "number" && l3 === null && (a(), u3 = null, l3 = setTimeout(() => {
+ u3 ? a() : (l3 = null, c3 = null);
}, n));
}
-}), c3.startListening({
- actionCreator: o3,
+}), s3.startListening({
+ actionCreator: a3,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
if (!r.active && r.index == null) {
- var i = "0", a = qQ(n, "axis", "hover", String(i));
- t.dispatch(rQ({
+ var i = "0", a = KQ(n, "axis", "hover", String(i));
+ t.dispatch(nQ({
active: !0,
activeIndex: i,
activeCoordinate: a
@@ -69602,13 +69669,13 @@ c3.startListening({
}
}
}
-}), c3.startListening({
- actionCreator: s3,
+}), s3.startListening({
+ actionCreator: o3,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
- r.active && t.dispatch(rQ({
+ r.active && t.dispatch(nQ({
active: !1,
activeIndex: r.index,
activeCoordinate: r.coordinate
@@ -69618,7 +69685,7 @@ c3.startListening({
});
//#endregion
//#region node_modules/recharts/es6/util/createEventProxy.js
-function f3(e) {
+function d3(e) {
e.persist();
var { currentTarget: t } = e;
return new Proxy(e, { get: (e, n) => {
@@ -69629,36 +69696,36 @@ function f3(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var p3 = TH("externalEvent"), m3 = aU(), h3 = /* @__PURE__ */ new Map(), g3 = /* @__PURE__ */ new Map(), _3 = /* @__PURE__ */ new Map();
-m3.startListening({
- actionCreator: p3,
+var f3 = wH("externalEvent"), p3 = iU(), m3 = /* @__PURE__ */ new Map(), h3 = /* @__PURE__ */ new Map(), g3 = /* @__PURE__ */ new Map();
+p3.startListening({
+ actionCreator: f3,
effect: (e, t) => {
var { handler: n, reactEvent: r } = e.payload;
if (n != null) {
- var i = r.type, a = f3(r);
- _3.set(i, {
+ var i = r.type, a = d3(r);
+ g3.set(i, {
handler: n,
reactEvent: a
});
- var o = h3.get(i);
- o !== void 0 && (cancelAnimationFrame(o), h3.delete(i));
- var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = g3.get(i);
- d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), g3.delete(i));
+ var o = m3.get(i);
+ o !== void 0 && (cancelAnimationFrame(o), m3.delete(i));
+ var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = h3.get(i);
+ d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), h3.delete(i));
var f = () => {
- var e = _3.get(i);
+ var e = g3.get(i);
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
- activeCoordinate: QAe(a),
- activeDataKey: NQ(a),
- activeIndex: jQ(a),
- activeLabel: MQ(a),
- activeTooltipIndex: jQ(a),
- isTooltipActive: $Ae(a)
+ activeCoordinate: eje(a),
+ activeDataKey: MQ(a),
+ activeIndex: AQ(a),
+ activeLabel: jQ(a),
+ activeTooltipIndex: AQ(a),
+ isTooltipActive: tje(a)
};
n && n(o, r);
} finally {
- h3.delete(i), g3.delete(i), _3.delete(i);
+ m3.delete(i), h3.delete(i), g3.delete(i);
}
};
if (!u) {
@@ -69667,19 +69734,19 @@ m3.startListening({
}
if (s === "raf") {
var p = requestAnimationFrame(f);
- h3.set(i, p);
+ m3.set(i, p);
} else if (typeof s == "number") {
- if (!g3.has(i)) {
+ if (!h3.has(i)) {
f();
var m = setTimeout(f, s);
- g3.set(i, m);
+ h3.set(i, m);
}
} else f();
}
}
});
-var fBe = $([
- $([dQ], (e) => e.tooltipItemPayloads),
+var mBe = $([
+ $([uQ], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
], (e, t, n) => {
@@ -69690,65 +69757,65 @@ var fBe = $([
if (i != null) return i(t);
}
}
-}), v3 = TH("touchMove"), y3 = aU(), b3 = null, x3 = null, S3 = null, C3 = null;
-y3.startListening({
- actionCreator: v3,
+}), _3 = wH("touchMove"), v3 = iU(), y3 = null, b3 = null, x3 = null, S3 = null;
+v3.startListening({
+ actionCreator: _3,
effect: (e, t) => {
var n = e.payload;
if (n.touches != null && n.touches.length !== 0) {
- C3 = f3(n);
+ S3 = d3(n);
var { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i.includes("touchmove");
- b3 !== null && (cancelAnimationFrame(b3), b3 = null), x3 !== null && (typeof r != "number" || !a) && (clearTimeout(x3), x3 = null), S3 = Array.from(n.touches).map((e) => J4({
+ y3 !== null && (cancelAnimationFrame(y3), y3 = null), b3 !== null && (typeof r != "number" || !a) && (clearTimeout(b3), b3 = null), x3 = Array.from(n.touches).map((e) => q4({
clientX: e.clientX,
clientY: e.clientY,
currentTarget: n.currentTarget
}));
var o = () => {
- if (C3 != null) {
- var e = t.getState(), n = YZ(e, e.tooltip.settings.shared);
+ if (S3 != null) {
+ var e = t.getState(), n = JZ(e, e.tooltip.settings.shared);
if (n === "axis") {
- var r = S3?.[0];
+ var r = x3?.[0];
if (r == null) {
- b3 = null, x3 = null;
+ y3 = null, b3 = null;
return;
}
- var i = q4(e, r);
- i?.activeIndex != null && t.dispatch(tQ({
+ var i = K4(e, r);
+ i?.activeIndex != null && t.dispatch(eQ({
activeIndex: i.activeIndex,
activeDataKey: void 0,
activeCoordinate: i.activeCoordinate
}));
} else if (n === "item") {
- var a = C3.touches[0];
+ var a = S3.touches[0];
if (document.elementFromPoint == null || a == null) return;
var o = document.elementFromPoint(a.clientX, a.clientY);
if (!o || !o.getAttribute) return;
- var s = o.getAttribute(GCe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = _Q(e).find((e) => e.id === c);
+ var s = o.getAttribute(qCe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = gQ(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
- var { dataKey: u } = l, d = fBe(e, s, c);
- t.dispatch($Z({
+ var { dataKey: u } = l, d = mBe(e, s, c);
+ t.dispatch(QZ({
activeDataKey: u,
activeIndex: s,
activeCoordinate: d,
activeGraphicalItemId: c
}));
}
- b3 = null, x3 = null;
+ y3 = null, b3 = null;
}
};
if (!a) {
o();
return;
}
- r === "raf" ? b3 = requestAnimationFrame(o) : typeof r == "number" && x3 === null && (o(), C3 = null, x3 = setTimeout(() => {
- C3 ? o() : (x3 = null, b3 = null);
+ r === "raf" ? y3 = requestAnimationFrame(o) : typeof r == "number" && b3 === null && (o(), S3 = null, b3 = setTimeout(() => {
+ S3 ? o() : (b3 = null, y3 = null);
}, r));
}
}
});
//#endregion
//#region node_modules/recharts/es6/state/eventSettingsSlice.js
-var w3 = {
+var C3 = {
throttleDelay: "raf",
throttledEvents: [
"mousemove",
@@ -69757,33 +69824,33 @@ var w3 = {
"scroll",
"wheel"
]
-}, T3 = PH({
+}, w3 = NH({
name: "eventSettings",
- initialState: w3,
+ initialState: C3,
reducers: { setEventSettings: (e, t) => {
- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = GW(t.payload.throttledEvents));
+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = WW(t.payload.throttledEvents));
} }
-}), { setEventSettings: pBe } = T3.actions, mBe = T3.reducer, hBe = fV({
- brush: MIe,
- cartesianAxis: yFe,
- chartData: Kje,
- errorBars: ZLe,
- eventSettings: mBe,
- graphicalItems: YPe,
- layout: MCe,
- legend: Awe,
- options: Vje,
- polarAxis: zNe,
- polarOptions: dBe,
- referenceElements: UIe,
- renderedTicks: _Le,
- rootProps: cBe,
- tooltip: DAe,
- zIndex: Mje
-}), gBe = function(e) {
+}), { setEventSettings: hBe } = w3.actions, gBe = w3.reducer, _Be = dV({
+ brush: PIe,
+ cartesianAxis: xFe,
+ chartData: Jje,
+ errorBars: $Le,
+ eventSettings: gBe,
+ graphicalItems: ZPe,
+ layout: PCe,
+ legend: Mwe,
+ options: Uje,
+ polarAxis: VNe,
+ polarOptions: pBe,
+ referenceElements: GIe,
+ renderedTicks: yLe,
+ rootProps: uBe,
+ tooltip: kAe,
+ zIndex: Pje
+}), vBe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return iCe({
- reducer: hBe,
+ return oCe({
+ reducer: _Be,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -69793,40 +69860,40 @@ var w3 = {
"production"
].includes("es6")
}).concat([
- X4.middleware,
- Q4.middleware,
- c3.middleware,
- m3.middleware,
- y3.middleware
+ Y4.middleware,
+ Z4.middleware,
+ s3.middleware,
+ p3.middleware,
+ v3.middleware
]),
enhancers: (e) => {
var t = e;
- return typeof e == "function" && (t = e()), t.concat(MH({ type: "raf" }));
+ return typeof e == "function" && (t = e()), t.concat(jH({ type: "raf" }));
},
- devTools: uG.devToolsEnabled && {
- serialize: { replacer: sBe },
+ devTools: lG.devToolsEnabled && {
+ serialize: { replacer: lBe },
name: `recharts-${t}`
}
});
};
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
-function E3(e) {
- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = IU(), a = (0, R.useRef)(null);
+function T3(e) {
+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = FU(), a = (0, R.useRef)(null);
if (i) return n;
- a.current ??= gBe(t, r);
- var o = KB;
- return /*#__PURE__*/ R.createElement(Wwe, {
+ a.current ??= vBe(t, r);
+ var o = GB;
+ return /*#__PURE__*/ R.createElement(Kwe, {
context: o,
store: a.current
}, n);
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function _Be(e) {
- var { layout: t, margin: n } = e, r = qB(), i = IU();
+function yBe(e) {
+ var { layout: t, margin: n } = e, r = KB(), i = FU();
return (0, R.useEffect)(() => {
- i || (r(kCe(t)), r(OCe(n)));
+ i || (r(jCe(t)), r(ACe(n)));
}, [
r,
i,
@@ -69834,31 +69901,31 @@ function _Be(e) {
n
]), null;
}
-var D3 = /*#__PURE__*/ (0, R.memo)(_Be, $W);
+var E3 = /*#__PURE__*/ (0, R.memo)(yBe, QW);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
-function O3(e) {
- var t = qB();
+function D3(e) {
+ var t = KB();
return (0, R.useEffect)(() => {
- t(lBe(e));
+ t(dBe(e));
}, [t, e]), null;
}
-var k3 = /*#__PURE__*/ (0, R.memo)((e) => {
- var t = qB();
+var O3 = /*#__PURE__*/ (0, R.memo)((e) => {
+ var t = KB();
return (0, R.useEffect)(() => {
- t(pBe(e));
+ t(hBe(e));
}, [t, e]), null;
-}, $W);
+}, QW);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
-function A3(e) {
- var { zIndex: t, isPanorama: n } = e, r = (0, R.useRef)(null), i = qB();
- return (0, R.useLayoutEffect)(() => (r.current && i(Aje({
+function k3(e) {
+ var { zIndex: t, isPanorama: n } = e, r = (0, R.useRef)(null), i = KB();
+ return (0, R.useLayoutEffect)(() => (r.current && i(Mje({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(jje({
+ i(Nje({
zIndex: t,
isPanorama: n
}));
@@ -69872,15 +69939,15 @@ function A3(e) {
className: `recharts-zIndex-layer_${t}`
});
}
-function j3(e) {
- var { children: t, isPanorama: n } = e, r = Q(xje);
+function A3(e) {
+ var { children: t, isPanorama: n } = e, r = Q(Cje);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, i.map((e) => /*#__PURE__*/ R.createElement(A3, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, i.map((e) => /*#__PURE__*/ R.createElement(k3, {
key: e,
zIndex: e,
isPanorama: n
- })), t, a.map((e) => /*#__PURE__*/ R.createElement(A3, {
+ })), t, a.map((e) => /*#__PURE__*/ R.createElement(k3, {
key: e,
zIndex: e,
isPanorama: n
@@ -69888,17 +69955,17 @@ function j3(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var vBe = ["children"];
-function yBe(e, t) {
+var bBe = ["children"];
+function xBe(e, t) {
if (e == null) return {};
- var n, r, i = bBe(e, t);
+ var n, r, i = SBe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function bBe(e, t) {
+function SBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69907,55 +69974,55 @@ function bBe(e, t) {
}
return n;
}
-function M3() {
- return M3 = Object.assign ? Object.assign.bind() : function(e) {
+function j3() {
+ return j3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, M3.apply(null, arguments);
+ }, j3.apply(null, arguments);
}
-var xBe = {
+var CBe = {
width: "100%",
height: "100%",
display: "block"
-}, SBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = QU(), r = $U(), i = mG();
- if (!uU(n) || !uU(r)) return null;
+}, wBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = ZU(), r = QU(), i = pG();
+ if (!lU(n) || !lU(r)) return null;
var { children: a, otherAttributes: o, title: s, desc: c } = e, l, u;
- return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ R.createElement(JR, M3({}, o, {
+ return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ R.createElement(qR, j3({}, o, {
title: s,
desc: c,
role: u,
tabIndex: l,
width: n,
height: r,
- style: xBe,
+ style: CBe,
ref: t
}), a);
-}), CBe = (e) => {
- var { children: t } = e, n = Q(RU);
+}), TBe = (e) => {
+ var { children: t } = e, n = Q(LU);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
- return /*#__PURE__*/ R.createElement(JR, {
+ return /*#__PURE__*/ R.createElement(qR, {
width: r,
height: i,
x: o,
y: a
}, t);
-}, N3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { children: n } = e, r = yBe(e, vBe);
- return IU() ? /*#__PURE__*/ R.createElement(CBe, null, /*#__PURE__*/ R.createElement(j3, { isPanorama: !0 }, n)) : /*#__PURE__*/ R.createElement(SBe, M3({ ref: t }, r), /*#__PURE__*/ R.createElement(j3, { isPanorama: !1 }, n));
+}, M3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { children: n } = e, r = xBe(e, bBe);
+ return FU() ? /*#__PURE__*/ R.createElement(TBe, null, /*#__PURE__*/ R.createElement(A3, { isPanorama: !0 }, n)) : /*#__PURE__*/ R.createElement(wBe, j3({ ref: t }, r), /*#__PURE__*/ R.createElement(A3, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function wBe() {
- var e = qB(), [t, n] = (0, R.useState)(null), r = Q(WCe);
+function EBe() {
+ var e = KB(), [t, n] = (0, R.useState)(null), r = Q(KCe);
return (0, R.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- lU(n) && n !== r && e(jCe(n));
+ cU(n) && n !== r && e(NCe(n));
}
}, [
t,
@@ -69965,7 +70032,7 @@ function wBe() {
}
//#endregion
//#region node_modules/recharts/es6/chart/RechartsWrapper.js
-function P3(e, t) {
+function N3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69975,30 +70042,30 @@ function P3(e, t) {
}
return n;
}
-function TBe(e) {
+function DBe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? P3(Object(n), !0).forEach(function(t) {
- EBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P3(Object(n)).forEach(function(t) {
+ t % 2 ? N3(Object(n), !0).forEach(function(t) {
+ OBe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function EBe(e, t, n) {
- return (t = DBe(t)) in e ? Object.defineProperty(e, t, {
+function OBe(e, t, n) {
+ return (t = kBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function DBe(e) {
- var t = OBe(e, "string");
+function kBe(e) {
+ var t = ABe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function OBe(e, t) {
+function ABe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70008,17 +70075,17 @@ function OBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function F3() {
- return F3 = Object.assign ? Object.assign.bind() : function(e) {
+function P3() {
+ return P3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, F3.apply(null, arguments);
+ }, P3.apply(null, arguments);
}
-var kBe = () => (tMe(), null);
-function I3(e) {
+var jBe = () => (rMe(), null);
+function F3(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
var t = parseFloat(e);
@@ -70026,10 +70093,10 @@ function I3(e) {
}
return 0;
}
-var ABe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+var MBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var n = (0, R.useRef)(null), [r, i] = (0, R.useState)({
- containerWidth: I3(e.style?.width),
- containerHeight: I3(e.style?.height)
+ containerWidth: F3(e.style?.width),
+ containerHeight: F3(e.style?.height)
}), a = (0, R.useCallback)((e, t) => {
i((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -70054,14 +70121,14 @@ var ABe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
}, [t, a]);
return (0, R.useEffect)(() => () => {
n.current?.disconnect();
- }, [a]), /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(aW, {
+ }, [a]), /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(iW, {
width: r.containerWidth,
height: r.containerHeight
- }), /*#__PURE__*/ R.createElement("div", F3({ ref: o }, e)));
-}), jBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ R.createElement("div", P3({ ref: o }, e)));
+}), NBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, R.useState)({
- containerWidth: I3(n),
- containerHeight: I3(r)
+ containerWidth: F3(n),
+ containerHeight: F3(r)
}), o = (0, R.useCallback)((e, t) => {
a((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -70076,32 +70143,32 @@ var ABe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
o(n, r);
}
}, [t, o]);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(aW, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(iW, {
width: i.containerWidth,
height: i.containerHeight
- }), /*#__PURE__*/ R.createElement("div", F3({ ref: s }, e)));
-}), MBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ R.createElement("div", P3({ ref: s }, e)));
+}), PBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(aW, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(iW, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement("div", F3({ ref: t }, e)));
-}), NBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ R.createElement("div", P3({ ref: t }, e)));
+}), FBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ R.createElement(jBe, F3({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ R.createElement(MBe, F3({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ R.createElement(NBe, P3({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ R.createElement(PBe, P3({}, e, {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(aW, {
+ })) : /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(iW, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement("div", F3({ ref: t }, e)));
+ }), /*#__PURE__*/ R.createElement("div", P3({ ref: t }, e)));
});
-function PBe(e) {
- return e ? ABe : NBe;
+function IBe(e) {
+ return e ? MBe : FBe;
}
-var FBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, R.useRef)(null), x = qB(), [S, C] = (0, R.useState)(null), [w, T] = (0, R.useState)(null), E = wBe(), D = qU(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, R.useCallback)((e) => {
+var LBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, R.useRef)(null), x = KB(), [S, C] = (0, R.useState)(null), [w, T] = (0, R.useState)(null), E = EBe(), D = KU(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, R.useCallback)((e) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
@@ -70109,58 +70176,58 @@ var FBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
C,
T
]), j = (0, R.useCallback)((e) => {
- x(Y4(e)), x(p3({
+ x(J4(e)), x(f3({
handler: a,
reactEvent: e
}));
}, [x, a]), M = (0, R.useCallback)((e) => {
- x(Z4(e)), x(p3({
+ x(X4(e)), x(f3({
handler: l,
reactEvent: e
}));
}, [x, l]), N = (0, R.useCallback)((e) => {
- x(eQ()), x(p3({
+ x($Z()), x(f3({
handler: u,
reactEvent: e
}));
}, [x, u]), ee = (0, R.useCallback)((e) => {
- x(Z4(e)), x(p3({
+ x(X4(e)), x(f3({
handler: d,
reactEvent: e
}));
}, [x, d]), te = (0, R.useCallback)(() => {
- x(o3());
+ x(a3());
}, [x]), P = (0, R.useCallback)(() => {
- x(s3());
+ x(o3());
}, [x]), F = (0, R.useCallback)((e) => {
- x(a3(e.key));
+ x(i3(e.key));
}, [x]), ne = (0, R.useCallback)((e) => {
- x(p3({
+ x(f3({
handler: o,
reactEvent: e
}));
}, [x, o]), re = (0, R.useCallback)((e) => {
- x(p3({
+ x(f3({
handler: s,
reactEvent: e
}));
}, [x, s]), ie = (0, R.useCallback)((e) => {
- x(p3({
+ x(f3({
handler: c,
reactEvent: e
}));
}, [x, c]), ae = (0, R.useCallback)((e) => {
- x(p3({
+ x(f3({
handler: f,
reactEvent: e
}));
}, [x, f]), oe = (0, R.useCallback)((e) => {
- x(p3({
+ x(f3({
handler: h,
reactEvent: e
}));
}, [x, h]), se = (0, R.useCallback)((e) => {
- y && x(v3(e)), x(p3({
+ y && x(_3(e)), x(f3({
handler: m,
reactEvent: e
}));
@@ -70169,16 +70236,16 @@ var FBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
y,
m
]), ce = (0, R.useCallback)((e) => {
- x(p3({
+ x(f3({
handler: p,
reactEvent: e
}));
- }, [x, p]), le = PBe(v);
- return /*#__PURE__*/ R.createElement(n$.Provider, { value: S }, /*#__PURE__*/ R.createElement(ZR.Provider, { value: w }, /*#__PURE__*/ R.createElement(le, {
+ }, [x, p]), le = IBe(v);
+ return /*#__PURE__*/ R.createElement(t$.Provider, { value: S }, /*#__PURE__*/ R.createElement(XR.Provider, { value: w }, /*#__PURE__*/ R.createElement(le, {
width: O ?? g?.width,
height: k ?? g?.height,
className: Sh("recharts-wrapper", r),
- style: TBe({
+ style: DBe({
position: "relative",
cursor: "default",
width: O,
@@ -70199,8 +70266,8 @@ var FBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
onTouchMove: se,
onTouchStart: oe,
ref: A
- }, /*#__PURE__*/ R.createElement(kBe, null), n)));
-}), IBe = [
+ }, /*#__PURE__*/ R.createElement(jBe, null), n)));
+}), RBe = [
"width",
"height",
"responsive",
@@ -70211,16 +70278,16 @@ var FBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
"title",
"desc"
];
-function LBe(e, t) {
+function zBe(e, t) {
if (e == null) return {};
- var n, r, i = RBe(e, t);
+ var n, r, i = BBe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function RBe(e, t) {
+function BBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -70229,16 +70296,16 @@ function RBe(e, t) {
}
return n;
}
-var L3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = WR(LBe(e, IBe));
- return c ? /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(aW, {
+var I3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = UR(zBe(e, RBe));
+ return c ? /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(iW, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement(N3, {
+ }), /*#__PURE__*/ R.createElement(M3, {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ R.createElement(FBe, {
+ }, a)) : /*#__PURE__*/ R.createElement(LBe, {
className: o,
style: s,
width: n,
@@ -70255,25 +70322,25 @@ var L3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
onTouchStart: e.onTouchStart,
onTouchMove: e.onTouchMove,
onTouchEnd: e.onTouchEnd
- }, /*#__PURE__*/ R.createElement(N3, {
+ }, /*#__PURE__*/ R.createElement(M3, {
otherAttributes: d,
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ R.createElement(WIe, null, a)));
+ }, /*#__PURE__*/ R.createElement(KIe, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
-function R3() {
- return R3 = Object.assign ? Object.assign.bind() : function(e) {
+function L3() {
+ return L3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, R3.apply(null, arguments);
+ }, L3.apply(null, arguments);
}
-function z3(e, t) {
+function R3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70283,30 +70350,30 @@ function z3(e, t) {
}
return n;
}
-function zBe(e) {
+function VBe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? z3(Object(n), !0).forEach(function(t) {
- BBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z3(Object(n)).forEach(function(t) {
+ t % 2 ? R3(Object(n), !0).forEach(function(t) {
+ HBe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function BBe(e, t, n) {
- return (t = VBe(t)) in e ? Object.defineProperty(e, t, {
+function HBe(e, t, n) {
+ return (t = UBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VBe(e) {
- var t = HBe(e, "string");
+function UBe(e) {
+ var t = WBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HBe(e, t) {
+function WBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70316,7 +70383,7 @@ function HBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var UBe = zBe({
+var GBe = VBe({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -70331,24 +70398,24 @@ var UBe = zBe({
reverseStackOrder: !1,
stackOffset: "none",
syncMethod: "index"
-}, w3), B3 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- var n = bB(e.categoricalChartProps, UBe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+}, C3), z3 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ var n = yB(e.categoricalChartProps, GBe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
tooltipPayloadSearcher: o,
eventEmitter: void 0
};
- return /*#__PURE__*/ R.createElement(E3, {
+ return /*#__PURE__*/ R.createElement(T3, {
preloadedState: { options: c },
reduxStoreName: s.id ?? r
- }, /*#__PURE__*/ R.createElement(_2, { chartData: s.data }), /*#__PURE__*/ R.createElement(D3, {
+ }, /*#__PURE__*/ R.createElement(g2, { chartData: s.data }), /*#__PURE__*/ R.createElement(E3, {
layout: n.layout,
margin: n.margin
- }), /*#__PURE__*/ R.createElement(k3, {
+ }), /*#__PURE__*/ R.createElement(O3, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ R.createElement(O3, {
+ }), /*#__PURE__*/ R.createElement(D3, {
baseValue: n.baseValue,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -70360,52 +70427,52 @@ var UBe = zBe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ R.createElement(L3, R3({}, n, { ref: t })));
-}), WBe = ["axis"], GBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(B3, {
+ }), /*#__PURE__*/ R.createElement(I3, L3({}, n, { ref: t })));
+}), KBe = ["axis"], qBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(z3, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: WBe,
- tooltipPayloadSearcher: o$,
+ validateTooltipEventTypes: KBe,
+ tooltipPayloadSearcher: a$,
categoricalChartProps: e,
ref: t
-})), KBe = ["axis", "item"], V3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(B3, {
+})), JBe = ["axis", "item"], B3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(z3, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: KBe,
- tooltipPayloadSearcher: o$,
+ validateTooltipEventTypes: JBe,
+ tooltipPayloadSearcher: a$,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function qBe(e) {
- var t = qB();
+function YBe(e) {
+ var t = KB();
return (0, R.useEffect)(() => {
- t(uBe(e));
+ t(fBe(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var JBe = ["layout"];
-function H3() {
- return H3 = Object.assign ? Object.assign.bind() : function(e) {
+var XBe = ["layout"];
+function V3() {
+ return V3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, H3.apply(null, arguments);
+ }, V3.apply(null, arguments);
}
-function YBe(e, t) {
+function ZBe(e, t) {
if (e == null) return {};
- var n, r, i = XBe(e, t);
+ var n, r, i = QBe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function XBe(e, t) {
+function QBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -70414,7 +70481,7 @@ function XBe(e, t) {
}
return n;
}
-function U3(e, t) {
+function H3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70424,30 +70491,30 @@ function U3(e, t) {
}
return n;
}
-function ZBe(e) {
+function $Be(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? U3(Object(n), !0).forEach(function(t) {
- QBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U3(Object(n)).forEach(function(t) {
+ t % 2 ? H3(Object(n), !0).forEach(function(t) {
+ eVe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function QBe(e, t, n) {
- return (t = $Be(t)) in e ? Object.defineProperty(e, t, {
+function eVe(e, t, n) {
+ return (t = tVe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function $Be(e) {
- var t = eVe(e, "string");
+function tVe(e) {
+ var t = nVe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function eVe(e, t) {
+function nVe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70457,7 +70524,7 @@ function eVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var W3 = ZBe({
+var U3 = $Be({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -70476,24 +70543,24 @@ var W3 = ZBe({
cy: "50%",
innerRadius: 0,
outerRadius: "80%"
-}, w3), G3 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- var n = bB(e.categoricalChartProps, W3), { layout: r } = n, i = YBe(n, JBe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+}, C3), W3 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ var n = yB(e.categoricalChartProps, U3), { layout: r } = n, i = ZBe(n, XBe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
tooltipPayloadSearcher: c,
eventEmitter: void 0
};
- return /*#__PURE__*/ R.createElement(E3, {
+ return /*#__PURE__*/ R.createElement(T3, {
preloadedState: { options: l },
reduxStoreName: n.id ?? a
- }, /*#__PURE__*/ R.createElement(_2, { chartData: n.data }), /*#__PURE__*/ R.createElement(D3, {
+ }, /*#__PURE__*/ R.createElement(g2, { chartData: n.data }), /*#__PURE__*/ R.createElement(E3, {
layout: r,
margin: n.margin
- }), /*#__PURE__*/ R.createElement(k3, {
+ }), /*#__PURE__*/ R.createElement(O3, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ R.createElement(O3, {
+ }), /*#__PURE__*/ R.createElement(D3, {
baseValue: void 0,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -70505,18 +70572,18 @@ var W3 = ZBe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ R.createElement(qBe, {
+ }), /*#__PURE__*/ R.createElement(YBe, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
endAngle: n.endAngle,
innerRadius: n.innerRadius,
outerRadius: n.outerRadius
- }), /*#__PURE__*/ R.createElement(L3, H3({}, i, { ref: t })));
+ }), /*#__PURE__*/ R.createElement(I3, V3({}, i, { ref: t })));
});
//#endregion
//#region node_modules/recharts/es6/chart/RadarChart.js
-function K3(e, t) {
+function G3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70526,30 +70593,30 @@ function K3(e, t) {
}
return n;
}
-function q3(e) {
+function K3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? K3(Object(n), !0).forEach(function(t) {
- tVe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K3(Object(n)).forEach(function(t) {
+ t % 2 ? G3(Object(n), !0).forEach(function(t) {
+ rVe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function tVe(e, t, n) {
- return (t = nVe(t)) in e ? Object.defineProperty(e, t, {
+function rVe(e, t, n) {
+ return (t = iVe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nVe(e) {
- var t = rVe(e, "string");
+function iVe(e) {
+ var t = aVe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rVe(e, t) {
+function aVe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70559,31 +70626,31 @@ function rVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var iVe = ["axis"], aVe = q3(q3({}, W3), {}, {
+var oVe = ["axis"], sVe = K3(K3({}, U3), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), oVe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = bB(e, aVe);
- return /*#__PURE__*/ R.createElement(G3, {
+}), cVe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = yB(e, sVe);
+ return /*#__PURE__*/ R.createElement(W3, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: iVe,
- tooltipPayloadSearcher: o$,
+ validateTooltipEventTypes: oVe,
+ tooltipPayloadSearcher: a$,
categoricalChartProps: n,
ref: t
});
-}), sVe = ["axis"], cVe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(B3, {
+}), lVe = ["axis"], uVe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(z3, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: sVe,
- tooltipPayloadSearcher: o$,
+ validateTooltipEventTypes: lVe,
+ tooltipPayloadSearcher: a$,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/chart/RadialBarChart.js
-function J3(e, t) {
+function q3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70593,30 +70660,30 @@ function J3(e, t) {
}
return n;
}
-function Y3(e) {
+function J3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? J3(Object(n), !0).forEach(function(t) {
- lVe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : J3(Object(n)).forEach(function(t) {
+ t % 2 ? q3(Object(n), !0).forEach(function(t) {
+ dVe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function lVe(e, t, n) {
- return (t = uVe(t)) in e ? Object.defineProperty(e, t, {
+function dVe(e, t, n) {
+ return (t = fVe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function uVe(e) {
- var t = dVe(e, "string");
+function fVe(e) {
+ var t = pVe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dVe(e, t) {
+function pVe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70626,59 +70693,59 @@ function dVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var fVe = ["axis", "item"], pVe = Y3(Y3({}, W3), {}, {
+var mVe = ["axis", "item"], hVe = J3(J3({}, U3), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), mVe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = bB(e, pVe);
- return /*#__PURE__*/ R.createElement(G3, {
+}), gVe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = yB(e, hVe);
+ return /*#__PURE__*/ R.createElement(W3, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: fVe,
- tooltipPayloadSearcher: o$,
+ validateTooltipEventTypes: mVe,
+ tooltipPayloadSearcher: a$,
categoricalChartProps: n,
ref: t
});
});
//#endregion
//#region src/react/charts/cn.ts
-function X3(...e) {
- return wE(Sh(e));
+function Y3(...e) {
+ return CE(Sh(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
-var Z3 = {
+var X3 = {
light: "",
dark: ".dark"
-}, Q3 = Object.keys(Z3);
-function hVe(e) {
- for (let [t, n] of Object.entries(e)) if (n.colors && !Q3.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${Q3.join(", ")}). Received empty object or invalid keys.`);
+}, Z3 = Object.keys(X3);
+function _Ve(e) {
+ for (let [t, n] of Object.entries(e)) if (n.colors && !Z3.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${Z3.join(", ")}). Received empty object or invalid keys.`);
}
-var $3 = R.createContext(null);
-function e6() {
- let e = R.useContext($3);
+var Q3 = R.createContext(null);
+function $3() {
+ let e = R.useContext(Q3);
if (!e) throw Error("useChart must be used within a <ChartContainer />");
return e;
}
-function t6({ id: e, config: t, initialDimension: n = {
+function e6({ id: e, config: t, initialDimension: n = {
width: 320,
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = R.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return hVe(t), /* @__PURE__ */ (0, B.jsx)($3.Provider, {
+ return _Ve(t), /* @__PURE__ */ (0, B.jsx)(Q3.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, B.jsxs)("div", {
"data-slot": "chart",
"data-chart": c,
- className: X3("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
+ className: Y3("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
...o,
children: [
- /* @__PURE__ */ (0, B.jsx)(r6, {
+ /* @__PURE__ */ (0, B.jsx)(n6, {
id: c,
config: t
}),
- /* @__PURE__ */ (0, B.jsx)(JU, {
+ /* @__PURE__ */ (0, B.jsx)(qU, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -70688,7 +70755,7 @@ function t6({ id: e, config: t, initialDimension: n = {
})
});
}
-function n6({ isLoading: e }) {
+function t6({ isLoading: e }) {
return e ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center",
children: /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -70697,7 +70764,7 @@ function n6({ isLoading: e }) {
})
}) : null;
}
-function gVe(e, t) {
+function vVe(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -70707,46 +70774,46 @@ function gVe(e, t) {
}
return r;
}
-var r6 = ({ id: e, config: t }) => {
+var n6 = ({ id: e, config: t }) => {
let n = Object.entries(t).filter(([, e]) => e.colors);
if (!n.length) return null;
let r = (e) => n.flatMap(([t, n]) => {
let r = n.colors?.[e];
- return !r || !Array.isArray(r) || r.length === 0 ? [] : gVe(r, a6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
- }).filter(Boolean).join("\n"), i = Object.entries(Z3).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : vVe(r, i6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ }).filter(Boolean).join("\n"), i = Object.entries(X3).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, B.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
-function i6(e, t, n) {
+function r6(e, t, n) {
if (typeof t != "object" || !t) return;
let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];
}
-function a6(e) {
+function i6(e) {
if (!e.colors) return 1;
- let t = Q3.map((t) => e.colors?.[t]?.length ?? 0);
+ let t = Z3.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var _Ve = (e = 10, t = 0, n = 70) => {
+var yVe = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, vVe = {
+}, bVe = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, yVe = {
+}, xVe = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
-function o6({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
- let { config: h } = e6(), g = R.useMemo(() => {
+function a6({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
+ let { config: h } = $3(), g = R.useMemo(() => {
if (i || !t?.length) return null;
- let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = i6(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
+ let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = r6(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
return s ? /* @__PURE__ */ (0, B.jsx)("div", {
- className: X3("font-medium", c),
+ className: Y3("font-medium", c),
children: s(a, t)
}) : a ? /* @__PURE__ */ (0, B.jsx)("div", {
- className: X3("font-medium", c),
+ className: Y3("font-medium", c),
children: a
}) : null;
}, [
@@ -70761,23 +70828,23 @@ function o6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, B.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: X3("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", vVe[p], yVe[m], n),
+ className: Y3("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", bVe[p], xVe[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, B.jsx)("div", {
className: "grid gap-1.5",
children: t.filter((e) => e.type !== "none").map((e, t) => {
- let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = i6(h, e, n), o = i ? a6(i) : 1;
+ let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = r6(h, e, n), o = i ? i6(i) : 1;
return /* @__PURE__ */ (0, B.jsx)("div", {
- className: X3("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
+ className: Y3("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
children: l && e?.value !== void 0 && e.name ? l(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [i?.icon ? /* @__PURE__ */ (0, B.jsx)(i.icon, {}) : !a && /* @__PURE__ */ (0, B.jsx)("div", {
- className: X3("shrink-0 rounded-[2px]", {
+ className: Y3("shrink-0 rounded-[2px]", {
"h-2.5 w-2.5": r === "dot",
"w-1": r === "line",
"w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",
"my-0.5": _ && r === "dashed"
}),
- style: bVe(n, o)
+ style: SVe(n, o)
}), /* @__PURE__ */ (0, B.jsxs)("div", {
- className: X3("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
+ className: Y3("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "grid gap-1.5",
children: [_ ? g : null, /* @__PURE__ */ (0, B.jsx)("span", {
@@ -70794,27 +70861,27 @@ function o6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function bVe(e, t) {
+function SVe(e, t) {
return t <= 1 ? { background: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-var s6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, B.jsx)(lMe, {
+var o6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, B.jsx)(dMe, {
animationDuration: e,
...t
});
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-legend.tsx
-function c6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {
- let { config: u } = e6();
+function s6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {
+ let { config: u } = $3();
return r?.length ? /* @__PURE__ */ (0, B.jsx)("div", {
- className: X3("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
+ className: Y3("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
children: r.filter((e) => e.type !== "none").map((e) => {
- let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = i6(u, e, r), a = o === null || o === r, d = i ? a6(i) : 1;
+ let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = r6(u, e, r), a = o === null || o === r, d = i ? i6(i) : 1;
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: X3("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
+ className: Y3("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
onClick: () => {
c && s?.(o === r ? null : r);
},
- children: [i?.icon && !t ? /* @__PURE__ */ (0, B.jsx)(i.icon, {}) : /* @__PURE__ */ (0, B.jsx)(xVe, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, B.jsx)(i.icon, {}) : /* @__PURE__ */ (0, B.jsx)(CVe, {
variant: l,
dataKey: r,
colorsCount: d
@@ -70823,8 +70890,8 @@ function c6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function xVe({ variant: e, dataKey: t, colorsCount: n }) {
- let r = SVe(t, n), i = CVe(t, n);
+function CVe({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = wVe(t, n), i = TVe(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, B.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -70856,10 +70923,10 @@ function xVe({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function SVe(e, t) {
+function wVe(e, t) {
return t <= 1 ? { backgroundColor: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-function CVe(e, t) {
+function TVe(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -70874,12 +70941,12 @@ function CVe(e, t) {
...n
};
}
-var l6 = rG, u6 = () => null, d6 = {
+var c6 = nG, l6 = () => null, u6 = {
stiffness: 300,
damping: 35,
mass: .8
};
-function wVe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function EVe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
let i = R.useRef(null), [a, o] = R.useState(!1), s = (0, R.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, R.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
@@ -70925,7 +70992,7 @@ function wVe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function TVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
+function DVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
let x = R.useRef(null), S = R.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = R.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = R.useState(() => ({
startIndex: Math.max(0, Math.min(p, C - 1)),
endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))
@@ -70959,7 +71026,7 @@ function TVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [C, v]), { isDragging: A, bind: j } = wVe({
+ }, [C, v]), { isDragging: A, bind: j } = EVe({
range: E,
totalPoints: C,
containerRef: x,
@@ -70986,7 +71053,7 @@ function TVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]);
let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, ee = C > 1 ? M.endIndex / (C - 1) * 100 : 100, te = Kf(N), P = Kf(ee);
te.get() !== N && te.set(N), P.get() !== ee && P.set(ee);
- let F = $f(te, d6), ne = $f(P, d6), re = Yf(F, (e) => `${e}%`), ie = Yf(ne, (e) => `${e}%`), ae = Yf(F, (e) => `${e}%`), oe = Yf(ne, (e) => `${Math.max(0, 100 - e)}%`), se = Kf(`${Math.max(0, ee - N)}%`), ce = (0, R.useCallback)(() => {
+ let F = $f(te, u6), ne = $f(P, u6), re = Yf(F, (e) => `${e}%`), ie = Yf(ne, (e) => `${e}%`), ae = Yf(F, (e) => `${e}%`), oe = Yf(ne, (e) => `${Math.max(0, 100 - e)}%`), se = Kf(`${Math.max(0, ee - N)}%`), ce = (0, R.useCallback)(() => {
se.set(`${Math.max(0, ne.get() - F.get())}%`);
}, [
F,
@@ -71006,16 +71073,16 @@ function TVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
return C === 0 ? null : /* @__PURE__ */ (0, B.jsxs)("div", {
ref: x,
"data-chart": b ? void 0 : w,
- className: X3("group relative select-none", o),
+ className: Y3("group relative select-none", o),
style: { height: a },
children: [
- !b && /* @__PURE__ */ (0, B.jsx)(r6, {
+ !b && /* @__PURE__ */ (0, B.jsx)(n6, {
id: w,
config: t
}),
/* @__PURE__ */ (0, B.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, B.jsx)(EVe, {
+ children: /* @__PURE__ */ (0, B.jsx)(OVe, {
data: e,
keys: S,
chartConfig: t,
@@ -71044,13 +71111,13 @@ function TVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
},
...j("middle")
}),
- /* @__PURE__ */ (0, B.jsx)(f6, {
+ /* @__PURE__ */ (0, B.jsx)(d6, {
side: "left",
position: re,
label: y ? le(M.startIndex) : void 0,
bind: j("left")
}),
- /* @__PURE__ */ (0, B.jsx)(f6, {
+ /* @__PURE__ */ (0, B.jsx)(d6, {
side: "right",
position: ie,
label: y ? le(M.endIndex) : void 0,
@@ -71059,16 +71126,16 @@ function TVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]
});
}
-function f6({ side: e, position: t, label: n, bind: r }) {
+function d6({ side: e, position: t, label: n, bind: r }) {
let i = e === "left";
return /* @__PURE__ */ (0, B.jsxs)(ap.div, {
className: "absolute inset-y-0 z-10",
style: { left: t },
children: [/* @__PURE__ */ (0, B.jsx)("div", {
- className: X3("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
+ className: Y3("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
...r,
children: /* @__PURE__ */ (0, B.jsx)("div", {
- className: X3("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
+ className: Y3("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-[2px]",
children: [
@@ -71079,15 +71146,15 @@ function f6({ side: e, position: t, label: n, bind: r }) {
})
})
}), n && /* @__PURE__ */ (0, B.jsx)("div", {
- className: X3("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
+ className: Y3("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
children: n
})]
});
}
-function EVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function OVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = R.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
- colorsCount: a6(t)
+ colorsCount: i6(t)
})), [n, t]), d = s === "dashed" || s === "animated-dashed" ? "4 4" : void 0, f = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [r === "area" && /* @__PURE__ */ (0, B.jsxs)("linearGradient", {
id: `${a}-zm-vertical-fade`,
x1: "0",
@@ -71141,10 +71208,10 @@ function EVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, B.jsx)(JU, {
+ if (r === "line") return /* @__PURE__ */ (0, B.jsx)(qU, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, B.jsxs)(GBe, {
+ children: /* @__PURE__ */ (0, B.jsxs)(qBe, {
data: e,
margin: {
top: 4,
@@ -71152,7 +71219,7 @@ function EVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(a4, {
+ children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(i4, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -71168,10 +71235,10 @@ function EVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, B.jsx)(JU, {
+ return /* @__PURE__ */ (0, B.jsx)(qU, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, B.jsxs)(V3, {
+ children: /* @__PURE__ */ (0, B.jsxs)(B3, {
data: e,
margin: {
top: 2,
@@ -71181,7 +71248,7 @@ function EVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
},
barGap: 2,
barSize: 14,
- children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(N4, {
+ children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(M4, {
dataKey: e,
fill: `url(#${a}-zm-${e})`,
fillOpacity: .35,
@@ -71197,10 +71264,10 @@ function EVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, B.jsx)(JU, {
+ return /* @__PURE__ */ (0, B.jsx)(qU, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, B.jsxs)(cVe, {
+ children: /* @__PURE__ */ (0, B.jsxs)(uVe, {
data: e,
margin: {
top: 4,
@@ -71208,7 +71275,7 @@ function EVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(b4, {
+ children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(y4, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -71226,7 +71293,7 @@ function EVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function DVe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function kVe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = R.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -71250,7 +71317,7 @@ function DVe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var OVe = {
+var AVe = {
dots: ({ id: e }) => /* @__PURE__ */ (0, B.jsx)("pattern", {
id: e,
x: "0",
@@ -71422,9 +71489,9 @@ var OVe = {
})
})
};
-function p6({ variant: e }) {
- let t = (0, R.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = OVe[e];
- return /* @__PURE__ */ (0, B.jsxs)(QQ, {
+function f6({ variant: e }) {
+ let t = (0, R.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = AVe[e];
+ return /* @__PURE__ */ (0, B.jsxs)(ZQ, {
zIndex: -1,
children: [/* @__PURE__ */ (0, B.jsxs)("defs", { children: [
/* @__PURE__ */ (0, B.jsx)(a, { id: n }),
@@ -71454,20 +71521,20 @@ function p6({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var m6 = 2, kVe = "loading", AVe = 2e3, jVe = "evil-stacked", MVe = .5, NVe = .05, PVe = [
+var p6 = 2, jVe = "loading", MVe = 2e3, NVe = "evil-stacked", PVe = .5, FVe = .05, IVe = [
0,
.7,
.5,
1
-], h6 = (0, R.createContext)(null);
-function g6() {
- let e = (0, R.use)(h6);
+], m6 = (0, R.createContext)(null);
+function h6() {
+ let e = (0, R.use)(m6);
if (!e) throw Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");
return e;
}
-function _6({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = m6, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
- let _ = (0, R.useId)().replace(/:/g, ""), [v] = (0, R.useState)(() => Date.now()), [y, b] = (0, R.useState)(f), [x, S] = (0, R.useState)(!1), { loadingData: C, onShimmerExit: w } = $Ve(m, h), { visibleData: T, brushProps: E } = DVe({ data: t }), D = (0, R.useMemo)(() => {
- let e = R.Children.toArray(n), t = e.find((e) => (0, R.isValidElement)(e) && e.type === u6), r = (0, R.isValidElement)(t) ? t.props : {};
+function g6({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = p6, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
+ let _ = (0, R.useId)().replace(/:/g, ""), [v] = (0, R.useState)(() => Date.now()), [y, b] = (0, R.useState)(f), [x, S] = (0, R.useState)(!1), { loadingData: C, onShimmerExit: w } = tHe(m, h), { visibleData: T, brushProps: E } = kVe({ data: t }), D = (0, R.useMemo)(() => {
+ let e = R.Children.toArray(n), t = e.find((e) => (0, R.isValidElement)(e) && e.type === l6), r = (0, R.isValidElement)(t) ? t.props : {};
return {
slot: {
present: (0, R.isValidElement)(t),
@@ -71475,7 +71542,7 @@ function _6({ config: e, data: t, children: n, className: r, chartProps: i, stac
formatLabel: r.formatLabel,
onChange: r.onChange
},
- chartChildren: e.filter((e) => !((0, R.isValidElement)(e) && e.type === u6))
+ chartChildren: e.filter((e) => !((0, R.isValidElement)(e) && e.type === l6))
};
}, [n]), O = D.slot.present, k = a === "stacked" || a === "percent", A = o === "horizontal", j = O && !m ? T : t, M = (0, R.useCallback)((e) => {
b(e), p?.(e);
@@ -71504,12 +71571,12 @@ function _6({ config: e, data: t, children: n, className: r, chartProps: i, stac
M,
x
]);
- return /* @__PURE__ */ (0, B.jsx)(h6, {
+ return /* @__PURE__ */ (0, B.jsx)(m6, {
value: N,
- children: /* @__PURE__ */ (0, B.jsxs)(t6, {
+ children: /* @__PURE__ */ (0, B.jsxs)(e6, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, B.jsx)(TVe, {
+ footer: O && !m && /* @__PURE__ */ (0, B.jsx)(DVe, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -71525,7 +71592,7 @@ function _6({ config: e, data: t, children: n, className: r, chartProps: i, stac
E.onChange(e), D.slot.onChange?.(e);
}
}),
- children: [/* @__PURE__ */ (0, B.jsx)(n6, { isLoading: m }), /* @__PURE__ */ (0, B.jsxs)(V3, {
+ children: [/* @__PURE__ */ (0, B.jsx)(t6, { isLoading: m }), /* @__PURE__ */ (0, B.jsxs)(B3, {
id: _,
accessibilityLayer: !0,
layout: A ? "vertical" : "horizontal",
@@ -71537,10 +71604,10 @@ function _6({ config: e, data: t, children: n, className: r, chartProps: i, stac
onMouseLeave: () => S(!1),
...i,
children: [
- d && /* @__PURE__ */ (0, B.jsx)(p6, { variant: d }),
- /* @__PURE__ */ (0, B.jsx)(T2, { color: "white" }),
+ d && /* @__PURE__ */ (0, B.jsx)(f6, { variant: d }),
+ /* @__PURE__ */ (0, B.jsx)(w2, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, B.jsx)(eHe, {
+ m && /* @__PURE__ */ (0, B.jsx)(nHe, {
chartId: _,
onShimmerExit: w
})
@@ -71549,8 +71616,8 @@ function _6({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function FVe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
- let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = g6(), b = (0, R.useId)().replace(/:/g, ""), x = ep();
+function LVe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
+ let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = h6(), b = (0, R.useId)().replace(/:/g, ""), x = ep();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
id: b,
@@ -71570,65 +71637,65 @@ function FVe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
i && v(C ? null : e);
}
};
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(N4, {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(M4, {
dataKey: e,
- stackId: u ? jVe : void 0,
+ stackId: u ? NVe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
style: i || a ? { cursor: "pointer" } : void 0,
- shape: (e) => /* @__PURE__ */ (0, B.jsx)(v6, {
+ shape: (e) => /* @__PURE__ */ (0, B.jsx)(_6, {
...e,
...T,
animationType: w
}),
- activeBar: (e) => /* @__PURE__ */ (0, B.jsx)(v6, {
+ activeBar: (e) => /* @__PURE__ */ (0, B.jsx)(_6, {
...e,
...T,
animationType: "none"
}),
...c
}), /* @__PURE__ */ (0, B.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, B.jsx)(WVe, {
+ /* @__PURE__ */ (0, B.jsx)(KVe, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, B.jsx)(GVe, {
+ t === "hatched" && /* @__PURE__ */ (0, B.jsx)(qVe, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, B.jsx)(qVe, {
+ t === "duotone" && /* @__PURE__ */ (0, B.jsx)(YVe, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, B.jsx)(JVe, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, B.jsx)(XVe, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, B.jsx)(YVe, {
+ t === "gradient" && /* @__PURE__ */ (0, B.jsx)(ZVe, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, B.jsx)(XVe, {
+ t === "stripped" && /* @__PURE__ */ (0, B.jsx)(QVe, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, B.jsx)(KVe, {
+ s && /* @__PURE__ */ (0, B.jsx)(JVe, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, B.jsx)(ZVe, {
+ o && /* @__PURE__ */ (0, B.jsx)($Ve, {
id: b,
dataKey: e
})
] })] });
}
-function IVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
- let { isLoading: o, isHorizontal: s } = g6();
- return o ? null : /* @__PURE__ */ (0, B.jsx)(V4, {
+function RVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+ let { isLoading: o, isHorizontal: s } = h6();
+ return o ? null : /* @__PURE__ */ (0, B.jsx)(B4, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -71637,9 +71704,9 @@ function IVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function LVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
- let { isLoading: s, isHorizontal: c } = g6();
- return s ? null : /* @__PURE__ */ (0, B.jsx)(K4, {
+function zVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+ let { isLoading: s, isHorizontal: c } = h6();
+ return s ? null : /* @__PURE__ */ (0, B.jsx)(G4, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -71649,33 +71716,33 @@ function LVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function RVe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
- let { isHorizontal: i } = g6();
- return /* @__PURE__ */ (0, B.jsx)(H2, {
+function BVe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+ let { isHorizontal: i } = h6();
+ return /* @__PURE__ */ (0, B.jsx)(V2, {
strokeDasharray: e,
vertical: t ?? i,
horizontal: n ?? !i,
...r
});
}
-function zVe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = g6();
- return r ? null : /* @__PURE__ */ (0, B.jsx)(s6, {
+function VVe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = h6();
+ return r ? null : /* @__PURE__ */ (0, B.jsx)(o6, {
cursor: !1,
defaultIndex: n,
- content: /* @__PURE__ */ (0, B.jsx)(o6, {
+ content: /* @__PURE__ */ (0, B.jsx)(a6, {
selected: i,
roundness: t,
variant: e
})
});
}
-function BVe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
- let { selectedDataKey: i, selectDataKey: a } = g6();
- return /* @__PURE__ */ (0, B.jsx)(l6, {
+function HVe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+ let { selectedDataKey: i, selectDataKey: a } = h6();
+ return /* @__PURE__ */ (0, B.jsx)(c6, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, B.jsx)(c6, {
+ content: /* @__PURE__ */ (0, B.jsx)(s6, {
selected: i,
onSelectChange: a,
isClickable: r,
@@ -71683,8 +71750,8 @@ function BVe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
})
});
}
-var v6 = (e) => {
- let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = VVe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : HVe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = UVe({
+var _6 = (e) => {
+ let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = UVe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : WVe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = GVe({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -71696,7 +71763,7 @@ var v6 = (e) => {
c,
0,
0
- ] : c, A = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(ZG, {
+ ] : c, A = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(XG, {
x: t,
y: n,
width: r,
@@ -71707,7 +71774,7 @@ var v6 = (e) => {
filter: E,
stroke: S ? `url(#${a}-colors-${o})` : void 0,
strokeWidth: S ? 1 : void 0
- }), C && /* @__PURE__ */ (0, B.jsx)(ZG, {
+ }), C && /* @__PURE__ */ (0, B.jsx)(XG, {
x: t,
y: n - 4,
width: r,
@@ -71718,7 +71785,7 @@ var v6 = (e) => {
return /* @__PURE__ */ (0, B.jsxs)("g", {
style: O,
onClick: b,
- children: [/* @__PURE__ */ (0, B.jsx)(ZG, {
+ children: [/* @__PURE__ */ (0, B.jsx)(XG, {
...e,
fill: "transparent"
}), w ? /* @__PURE__ */ (0, B.jsx)(ap.g, {
@@ -71729,7 +71796,7 @@ var v6 = (e) => {
children: A
}) : A]
});
-}, VVe = (e, t, n, r, i) => {
+}, UVe = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -71744,11 +71811,11 @@ var v6 = (e) => {
break;
default: s = t;
}
- let c = s * NVe * 1e3, l = MVe * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * FVe * 1e3, l = PVe * 1e3, u = c + l, d = Date.now() - i;
if (d >= u) return null;
let f = d <= c ? 0 : (d - c) / l, p = {
duration: (u - Math.max(d, c)) / 1e3,
- ease: PVe,
+ ease: IVe,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -71762,7 +71829,7 @@ var v6 = (e) => {
transition: p,
style: { originY: 1 }
};
-}, HVe = (e, t, n) => {
+}, WVe = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -71771,11 +71838,11 @@ var v6 = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, UVe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, GVe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
let o = e && t !== null ? t === null || t === n ? 1 : .15 : 1;
return r && i ? a ? o : o * .3 : o;
-}, WVe = ({ id: e, dataKey: t, config: n }) => {
- let r = a6(n[t] ?? {});
+}, KVe = ({ id: e, dataKey: t, config: n }) => {
+ let r = i6(n[t] ?? {});
return /* @__PURE__ */ (0, B.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
@@ -71796,7 +71863,7 @@ var v6 = (e) => {
}, i);
})
});
-}, GVe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
+}, qVe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -71837,7 +71904,7 @@ var v6 = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), KVe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
+] }), JVe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -71878,8 +71945,8 @@ var v6 = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), qVe = ({ id: e, dataKey: t, config: n }) => {
- let r = a6(n[t] ?? {});
+] }), YVe = ({ id: e, dataKey: t, config: n }) => {
+ let r = i6(n[t] ?? {});
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsxs)("linearGradient", {
id: `${e}-duotone-mask-gradient-${t}`,
@@ -71946,8 +72013,8 @@ var v6 = (e) => {
})
})
] });
-}, JVe = ({ id: e, dataKey: t, config: n }) => {
- let r = a6(n[t] ?? {});
+}, XVe = ({ id: e, dataKey: t, config: n }) => {
+ let r = i6(n[t] ?? {});
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsxs)("linearGradient", {
id: `${e}-duotone-reverse-mask-gradient-${t}`,
@@ -72014,7 +72081,7 @@ var v6 = (e) => {
})
})
] });
-}, YVe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
+}, ZVe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -72051,7 +72118,7 @@ var v6 = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), XVe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
+] }), QVe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -72088,7 +72155,7 @@ var v6 = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), ZVe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, B.jsxs)("filter", {
+] }), $Ve = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, B.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -72108,35 +72175,35 @@ var v6 = (e) => {
}),
/* @__PURE__ */ (0, B.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, B.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, B.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), QVe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), eHe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
let a = i / (e - 1), o = t + Math.sin(a * Math.PI) ** 2 * (n - t);
return {
offset: `${(a * 100).toFixed(0)}%`,
opacity: Number(o.toFixed(3))
};
});
-function $Ve(e, t = 12) {
+function tHe(e, t = 12) {
let [n, r] = (0, R.useState)(!1), i = (0, R.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, R.useMemo)(() => _Ve(t, 20, 80), [t, n]),
+ loadingData: (0, R.useMemo)(() => yVe(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var eHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(N4, {
- dataKey: kVe,
+var nHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(M4, {
+ dataKey: jVe,
fill: "currentColor",
fillOpacity: .15,
- radius: m6,
+ radius: p6,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, B.jsx)("defs", { children: /* @__PURE__ */ (0, B.jsx)(tHe, {
+}), /* @__PURE__ */ (0, B.jsx)("defs", { children: /* @__PURE__ */ (0, B.jsx)(rHe, {
chartId: e,
onShimmerExit: t
-}) })] }), tHe = ({ chartId: e, onShimmerExit: t }) => {
- let n = QVe(), r = (0, R.useRef)(-1);
+}) })] }), rHe = ({ chartId: e, onShimmerExit: t }) => {
+ let n = eHe(), r = (0, R.useRef)(-1);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -72167,7 +72234,7 @@ var eHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: AVe / 1e3,
+ duration: MVe / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -72189,11 +72256,11 @@ var eHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fr
})
] });
};
-_6.Bar = FVe, _6.XAxis = IVe, _6.YAxis = LVe, _6.Grid = RVe, _6.Tooltip = zVe, _6.Legend = BVe, _6.Brush = u6;
+g6.Bar = LVe, g6.XAxis = RVe, g6.YAxis = zVe, g6.Grid = BVe, g6.Tooltip = VVe, g6.Legend = HVe, g6.Brush = l6;
//#endregion
//#region src/react/charts/chart-card.tsx
-var y6 = `${AE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
-function b6({ title: e, figure: t, note: n }) {
+var v6 = `${kE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+function y6({ title: e, figure: t, note: n }) {
return /* @__PURE__ */ (0, B.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
children: [/* @__PURE__ */ (0, B.jsxs)("span", {
@@ -72211,24 +72278,24 @@ function b6({ title: e, figure: t, note: n }) {
})]
});
}
-var x6 = [
+var b6 = [
"var(--color-chart-1)",
"var(--color-chart-2)",
"var(--color-chart-3)",
"var(--color-chart-4)",
"var(--color-chart-5)",
"var(--color-chart-6)"
-], S6 = (e) => ({ light: [e] }), C6 = (e) => `s${e}`;
-function nHe(e) {
- return Object.fromEntries(e.map((e, t) => [C6(t), {
+], x6 = (e) => ({ light: [e] }), S6 = (e) => `s${e}`;
+function iHe(e) {
+ return Object.fromEntries(e.map((e, t) => [S6(t), {
label: e,
- colors: S6(x6[t % x6.length])
+ colors: x6(b6[t % b6.length])
}]));
}
//#endregion
//#region src/react/charts/chart-tip.tsx
-var w6 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";
-function T6({ swatch: e, name: t, value: n }) {
+var C6 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";
+function w6({ swatch: e, name: t, value: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex w-full items-center gap-2",
children: [e, /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -72243,33 +72310,33 @@ function T6({ swatch: e, name: t, value: n }) {
})]
});
}
-var E6 = "size-2.5 shrink-0 rounded-xs";
-function rHe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
- let { config: o } = e6(), s = (t ?? []).filter((e) => e.type !== "none");
+var T6 = "size-2.5 shrink-0 rounded-xs";
+function aHe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+ let { config: o } = $3(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, B.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: w6,
+ className: C6,
children: [c ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "font-medium text-foreground",
children: c
}) : null, s.map((e, t) => {
- let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = i6(o, e, a), c = i ? n[i] : e.value;
- return /* @__PURE__ */ (0, B.jsx)(T6, {
+ let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = r6(o, e, a), c = i ? n[i] : e.value;
+ return /* @__PURE__ */ (0, B.jsx)(w6, {
name: s?.label ?? e.name,
value: Number(c ?? 0),
swatch: /* @__PURE__ */ (0, B.jsx)("i", {
- className: E6,
+ className: T6,
style: { background: `var(--color-${a}-0)` }
})
}, a + t);
})]
});
}
-function D6({ nameKey: e, valueKey: t, hideLabel: n }) {
- return /* @__PURE__ */ (0, B.jsx)(s6, {
+function E6({ nameKey: e, valueKey: t, hideLabel: n }) {
+ return /* @__PURE__ */ (0, B.jsx)(o6, {
cursor: !1,
- content: /* @__PURE__ */ (0, B.jsx)(rHe, {
+ content: /* @__PURE__ */ (0, B.jsx)(aHe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -72278,12 +72345,12 @@ function D6({ nameKey: e, valueKey: t, hideLabel: n }) {
}
//#endregion
//#region src/react/charts/bar-card.tsx
-var O6 = [0, (e) => e * 1.2], k6 = (e) => ({
+var D6 = [0, (e) => e * 1.2], O6 = (e) => ({
position: e,
className: "fill-text-secondary",
formatter: (e) => Number(e).toLocaleString()
});
-function A6({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {
+function k6({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {
let o = r.filter((e) => Number.isFinite(e.value) && e.value >= 0).map((e) => ({
name: e.name,
value: e.value
@@ -72291,53 +72358,53 @@ function A6({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vert
if (!s) return null;
let c = a === "horizontal";
return /* @__PURE__ */ (0, B.jsxs)("section", {
- className: y6,
+ className: v6,
"aria-label": e,
- children: [/* @__PURE__ */ (0, B.jsx)(b6, {
+ children: [/* @__PURE__ */ (0, B.jsx)(y6, {
title: e,
figure: s.toLocaleString(),
note: t
- }), /* @__PURE__ */ (0, B.jsxs)(_6, {
+ }), /* @__PURE__ */ (0, B.jsxs)(g6, {
data: o,
config: { value: {
label: n,
- colors: S6(i)
+ colors: x6(i)
} },
layout: a,
barRadius: 4,
className: c ? "aspect-auto h-64 flex-none text-text-secondary" : "aspect-auto h-56 flex-none text-text-secondary",
children: [
- /* @__PURE__ */ (0, B.jsx)(_6.Grid, {}),
- c ? /* @__PURE__ */ (0, B.jsx)(_6.YAxis, {
+ /* @__PURE__ */ (0, B.jsx)(g6.Grid, {}),
+ c ? /* @__PURE__ */ (0, B.jsx)(g6.YAxis, {
dataKey: "name",
interval: 0
- }) : /* @__PURE__ */ (0, B.jsx)(_6.XAxis, {
+ }) : /* @__PURE__ */ (0, B.jsx)(g6.XAxis, {
dataKey: "name",
interval: 0
}),
- c ? /* @__PURE__ */ (0, B.jsx)(_6.XAxis, {
+ c ? /* @__PURE__ */ (0, B.jsx)(g6.XAxis, {
hide: !0,
- domain: O6
- }) : /* @__PURE__ */ (0, B.jsx)(_6.YAxis, {
+ domain: D6
+ }) : /* @__PURE__ */ (0, B.jsx)(g6.YAxis, {
hide: !0,
- domain: O6
+ domain: D6
}),
- /* @__PURE__ */ (0, B.jsx)(_6.Bar, {
+ /* @__PURE__ */ (0, B.jsx)(g6.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: k6(c ? "right" : "top")
+ label: O6(c ? "right" : "top")
}
}),
- /* @__PURE__ */ (0, B.jsx)(D6, {})
+ /* @__PURE__ */ (0, B.jsx)(E6, {})
]
})]
});
}
//#endregion
//#region src/react/charts/heat.ts
-var j6 = [
+var A6 = [
"周一",
"周二",
"周三",
@@ -72345,8 +72412,8 @@ var j6 = [
"周五",
"周六",
"周日"
-], M6 = (e, t) => e ? Math.max(.12, e / t) : 0;
-function iHe(e) {
+], j6 = (e, t) => e ? Math.max(.12, e / t) : 0;
+function oHe(e) {
let t = Array.from({ length: 7 }, () => Array(24).fill(0));
for (let n of e?.hours || []) {
let { weekday: e, hour: r, count: i } = n;
@@ -72356,14 +72423,14 @@ function iHe(e) {
return {
cells: t.flatMap((e, t) => e.map((e, n) => ({
key: `${t}-${n}`,
- label: `${j6[t]} ${n}:00`,
+ label: `${A6[t]} ${n}:00`,
count: e,
- share: M6(e, r)
+ share: j6(e, r)
}))),
total: n.reduce((e, t) => e + t, 0)
};
}
-function aHe(e) {
+function sHe(e) {
let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {
cells: [],
total: 0,
@@ -72381,7 +72448,7 @@ function aHe(e) {
key: r,
label: r,
count: s,
- share: M6(s, o)
+ share: j6(s, o)
};
});
return {
@@ -72393,7 +72460,7 @@ function aHe(e) {
}
//#endregion
//#region src/react/charts/heat-card.tsx
-var N6 = 14, P6 = 17, F6 = {
+var M6 = 14, N6 = 17, P6 = {
4: {
fill: "fill-chart-4",
dot: "bg-chart-4"
@@ -72402,42 +72469,42 @@ var N6 = 14, P6 = 17, F6 = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, oHe = {
+}, cHe = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function sHe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function lHe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${w6} ${oHe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${C6} ${cHe[a]}`,
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
- }), /* @__PURE__ */ (0, B.jsx)(T6, {
+ }), /* @__PURE__ */ (0, B.jsx)(w6, {
name: t,
value: e.count,
- swatch: /* @__PURE__ */ (0, B.jsx)("i", { className: `${E6} ${F6[n].dot}` })
+ swatch: /* @__PURE__ */ (0, B.jsx)("i", { className: `${T6} ${P6[n].dot}` })
})]
});
}
-function I6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
- let [l, u] = (0, R.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * P6, m = f + a * P6, h = (e) => ({
- x: d + e % i * P6,
- y: f + Math.floor(e / i) * P6
- }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + N6 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
+function F6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
+ let [l, u] = (0, R.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * N6, m = f + a * N6, h = (e) => ({
+ x: d + e % i * N6,
+ y: f + Math.floor(e / i) * N6
+ }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + M6 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
start: _.x,
- center: _.x + N6 / 2,
- end: _.x + N6
+ center: _.x + M6 / 2,
+ end: _.x + M6
}[y] : 0;
return /* @__PURE__ */ (0, B.jsxs)("section", {
- className: y6,
+ className: v6,
children: [
- /* @__PURE__ */ (0, B.jsx)(b6, {
+ /* @__PURE__ */ (0, B.jsx)(y6, {
title: e,
figure: (g ? g.count : r).toLocaleString(),
note: g ? g.label : t.unit
@@ -72460,19 +72527,19 @@ function I6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
"aria-label": `${e.label},${e.count} ${t.cellUnit}`,
x: r,
y: i,
- width: N6,
- height: N6,
+ width: M6,
+ height: M6,
rx: 3,
fillOpacity: e.share || 1,
opacity: l >= 0 && l !== n ? .4 : 1,
- className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${F6[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
+ className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${P6[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
onPointerEnter: () => u(n),
onFocus: () => u(n),
onBlur: () => u(-1)
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, B.jsx)(sHe, {
+ }), g && _ ? /* @__PURE__ */ (0, B.jsx)(lHe, {
cell: g,
series: t.series,
tone: c,
@@ -72488,24 +72555,24 @@ function I6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var cHe = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [j6.map((e, t) => /* @__PURE__ */ (0, B.jsx)("text", {
+var uHe = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [A6.map((e, t) => /* @__PURE__ */ (0, B.jsx)("text", {
x: 0,
- y: 18 + t * P6 + 7,
+ y: 18 + t * N6 + 7,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: e
}, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, B.jsx)("text", {
- x: 30 + t * P6,
+ x: 30 + t * N6,
y: 8,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: t
}, t))] });
-function L6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = iHe(e), s = aHe(e);
+function I6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
+ let o = oHe(e), s = sHe(e);
return s.cells.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
- children: [/* @__PURE__ */ (0, B.jsx)(I6, {
+ children: [/* @__PURE__ */ (0, B.jsx)(F6, {
title: t,
words: r,
tone: i,
@@ -72513,9 +72580,9 @@ function L6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: cHe,
+ axis: uHe,
footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
- }), /* @__PURE__ */ (0, B.jsx)(I6, {
+ }), /* @__PURE__ */ (0, B.jsx)(F6, {
title: n,
words: r,
tone: i,
@@ -72526,7 +72593,7 @@ function L6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", { children: s.start }), /* @__PURE__ */ (0, B.jsx)("span", { children: s.end })] })
})]
}) : a ? /* @__PURE__ */ (0, B.jsxs)("section", {
- className: y6,
+ className: v6,
children: [/* @__PURE__ */ (0, B.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: t
@@ -72538,7 +72605,7 @@ function L6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
}
//#endregion
//#region src/react/components/expandable-ranking.tsx
-function R6({ children: e, className: t = "", previewCount: n = 10 }) {
+function L6({ children: e, className: t = "", previewCount: n = 10 }) {
let r = (0, R.useId)(), i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(!1), l = R.Children.toArray(e), u = l.length > n;
(0, R.useLayoutEffect)(() => {
let e = i.current;
@@ -72579,20 +72646,20 @@ function R6({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, B.jsx)(hT, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, B.jsx)(mT, { "aria-hidden": !0 })
}) : null]
});
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var lHe = "30%", uHe = "100%", z6 = 5, B6 = 14, dHe = 5, V6 = 1500, H6 = (0, R.createContext)(null);
-function U6() {
- let e = (0, R.use)(H6);
+var dHe = "30%", fHe = "100%", R6 = 5, z6 = 14, pHe = 5, B6 = 1500, V6 = (0, R.createContext)(null);
+function H6() {
+ let e = (0, R.use)(V6);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function W6({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = lHe, outerRadius: l = uHe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, R.useId)().replace(/:/g, ""), [h, g] = (0, R.useState)(u), _ = vHe(f), v = hHe(o), y = (0, R.useCallback)((e, t) => {
+function U6({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = dHe, outerRadius: l = fHe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+ let m = (0, R.useId)().replace(/:/g, ""), [h, g] = (0, R.useState)(u), _ = bHe(f), v = _He(o), y = (0, R.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -72619,12 +72686,12 @@ function W6({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
h,
y
]);
- return /* @__PURE__ */ (0, B.jsx)(H6, {
+ return /* @__PURE__ */ (0, B.jsx)(V6, {
value: x,
- children: /* @__PURE__ */ (0, B.jsxs)(t6, {
+ children: /* @__PURE__ */ (0, B.jsxs)(e6, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, B.jsx)(n6, { isLoading: f }), /* @__PURE__ */ (0, B.jsxs)(mVe, {
+ children: [/* @__PURE__ */ (0, B.jsx)(t6, { isLoading: f }), /* @__PURE__ */ (0, B.jsxs)(gVe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -72635,16 +72702,16 @@ function W6({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
cy: v.cy,
...a,
children: [
- s != null && s > 0 && /* @__PURE__ */ (0, B.jsx)(q1, {
+ s != null && s > 0 && /* @__PURE__ */ (0, B.jsx)(K1, {
type: "number",
domain: [0, s],
tick: !1,
axisLine: !1
}),
- p && /* @__PURE__ */ (0, B.jsx)(p6, { variant: p }),
+ p && /* @__PURE__ */ (0, B.jsx)(f6, { variant: p }),
r,
- f && /* @__PURE__ */ (0, B.jsx)(yHe, {}),
- /* @__PURE__ */ (0, B.jsx)("defs", { children: /* @__PURE__ */ (0, B.jsx)(gHe, {
+ f && /* @__PURE__ */ (0, B.jsx)(xHe, {}),
+ /* @__PURE__ */ (0, B.jsx)("defs", { children: /* @__PURE__ */ (0, B.jsx)(vHe, {
config: e,
chartId: m
}) })
@@ -72653,9 +72720,9 @@ function W6({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function fHe({ dataKey: e, cornerRadius: t = z6, barSize: n = B6, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
- let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = U6();
- return s ? null : /* @__PURE__ */ (0, B.jsx)(g2, {
+function mHe({ dataKey: e, cornerRadius: t = R6, barSize: n = z6, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+ let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = H6();
+ return s ? null : /* @__PURE__ */ (0, B.jsx)(h2, {
dataKey: e,
cornerRadius: t,
barSize: n,
@@ -72669,7 +72736,7 @@ function fHe({ dataKey: e, cornerRadius: t = z6, barSize: n = B6, showBackground
},
shape: (e) => {
let t = e[o], n = c === null || c === t;
- return /* @__PURE__ */ (0, B.jsx)(cK, {
+ return /* @__PURE__ */ (0, B.jsx)(sK, {
...e,
opacity: i && !n ? .15 : 1,
className: "transition-opacity duration-200"
@@ -72678,12 +72745,12 @@ function fHe({ dataKey: e, cornerRadius: t = z6, barSize: n = B6, showBackground
...a
});
}
-function pHe({ variant: e, roundness: t, defaultIndex: n }) {
- let { nameKey: r, isLoading: i } = U6();
- return i ? null : /* @__PURE__ */ (0, B.jsx)(s6, {
+function hHe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { nameKey: r, isLoading: i } = H6();
+ return i ? null : /* @__PURE__ */ (0, B.jsx)(o6, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, B.jsx)(o6, {
+ content: /* @__PURE__ */ (0, B.jsx)(a6, {
nameKey: r,
hideLabel: !0,
roundness: t,
@@ -72691,12 +72758,12 @@ function pHe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function mHe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = U6();
- return a ? null : /* @__PURE__ */ (0, B.jsx)(l6, {
+function gHe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = H6();
+ return a ? null : /* @__PURE__ */ (0, B.jsx)(c6, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, B.jsx)(c6, {
+ content: /* @__PURE__ */ (0, B.jsx)(s6, {
selected: o,
onSelectChange: s,
isClickable: r,
@@ -72705,7 +72772,7 @@ function mHe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function hHe(e) {
+function _He(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -72721,8 +72788,8 @@ function hHe(e) {
};
}
}
-var gHe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, B.jsx)(B.Fragment, { children: Object.entries(e).map(([e, n]) => {
- let r = a6(n);
+var vHe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, B.jsx)(B.Fragment, { children: Object.entries(e).map(([e, n]) => {
+ let r = i6(n);
return /* @__PURE__ */ (0, B.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
x1: "0",
@@ -72744,47 +72811,47 @@ var gHe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, B.jsx)(B.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function _He() {
- return Array.from({ length: dHe }, (e, t) => ({
+function yHe() {
+ return Array.from({ length: pHe }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function vHe(e) {
+function bHe(e) {
let [t, n] = (0, R.useState)(0);
return (0, R.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
n((e) => e + 1);
- }, V6);
+ }, B6);
return () => clearInterval(t);
- }, [e]), (0, R.useMemo)(() => _He(), [t]);
+ }, [e]), (0, R.useMemo)(() => yHe(), [t]);
}
-var yHe = () => /* @__PURE__ */ (0, B.jsx)(g2, {
+var xHe = () => /* @__PURE__ */ (0, B.jsx)(h2, {
dataKey: "value",
- cornerRadius: z6,
- barSize: B6,
+ cornerRadius: R6,
+ barSize: z6,
background: !0,
isAnimationActive: !0,
- animationDuration: V6,
+ animationDuration: B6,
animationEasing: "ease-in-out",
- shape: (e) => /* @__PURE__ */ (0, B.jsx)(cK, {
+ shape: (e) => /* @__PURE__ */ (0, B.jsx)(sK, {
...e,
fill: "currentColor",
fillOpacity: .25
})
});
-W6.RadialBar = fHe, W6.Tooltip = pHe, W6.Legend = mHe;
+U6.RadialBar = mHe, U6.Tooltip = hHe, U6.Legend = gHe;
//#endregion
//#region src/react/stats/radial-card.tsx
-var bHe = [
+var SHe = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], xHe = [
+], CHe = [
"aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1",
"aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2",
"aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",
@@ -72792,15 +72859,15 @@ var bHe = [
"aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5",
"aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"
];
-function G6({ title: e, rows: t, unit: n = "个视频" }) {
+function W6({ title: e, rows: t, unit: n = "个视频" }) {
let [r, i] = (0, R.useState)(-1), [a, o] = (0, R.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (!s.length) return null;
let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = s[c], d = (e) => i((t) => t === e ? -1 : e), f = s.map((e, t) => ({
- slice: C6(t),
+ slice: S6(t),
value: e.value
}));
return /* @__PURE__ */ (0, B.jsxs)("section", {
- className: y6,
+ className: v6,
children: [
/* @__PURE__ */ (0, B.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
@@ -72822,18 +72889,18 @@ function G6({ title: e, rows: t, unit: n = "个视频" }) {
role: "img",
"aria-label": e,
onPointerLeave: () => o(-1),
- children: /* @__PURE__ */ (0, B.jsxs)(W6, {
+ children: /* @__PURE__ */ (0, B.jsxs)(U6, {
data: f,
nameKey: "slice",
- config: nHe(s.map((e) => e.name)),
- max: rbe(s.map((e) => e.value)),
+ config: iHe(s.map((e) => e.name)),
+ max: abe(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
- children: [/* @__PURE__ */ (0, B.jsx)(W6.RadialBar, {
+ children: [/* @__PURE__ */ (0, B.jsx)(U6.RadialBar, {
dataKey: "value",
- barSize: ibe(s.length),
+ barSize: obe(s.length),
radialBarProps: {
- shape: (e) => /* @__PURE__ */ (0, B.jsx)(cK, {
+ shape: (e) => /* @__PURE__ */ (0, B.jsx)(sK, {
...e,
opacity: c >= 0 && c !== e.index ? .3 : 1,
className: "cursor-pointer transition-opacity duration-200"
@@ -72841,7 +72908,7 @@ function G6({ title: e, rows: t, unit: n = "个视频" }) {
onClick: (e, t) => d(t),
onMouseEnter: (e, t) => o(t)
}
- }), /* @__PURE__ */ (0, B.jsx)(D6, {
+ }), /* @__PURE__ */ (0, B.jsx)(E6, {
nameKey: "slice",
hideLabel: !0
})]
@@ -72857,13 +72924,13 @@ function G6({ title: e, rows: t, unit: n = "个视频" }) {
onPointerLeave: () => o(-1),
onFocus: () => o(t),
onBlur: () => o(-1),
- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${xHe[t % 6]}`,
+ className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${CHe[t % 6]}`,
children: [
/* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, B.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${bHe[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${SHe[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, B.jsx)("b", {
@@ -72882,8 +72949,8 @@ function G6({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var SHe = 10, K6 = x6[5], CHe = x6[4], wHe = `${AE()} flex flex-col gap-4`, THe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", EHe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", DHe = "开始播放后,这里会显示最近的真实观看证据。", OHe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", kHe = "添加媒体文件夹后,这里会显示存储空间。";
-function q6({ term: e, value: t }) {
+var wHe = 10, G6 = b6[5], THe = b6[4], EHe = `${kE()} flex flex-col gap-4`, DHe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", OHe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", kHe = "开始播放后,这里会显示最近的真实观看证据。", AHe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", jHe = "添加媒体文件夹后,这里会显示存储空间。";
+function K6({ term: e, value: t }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, B.jsx)("span", {
@@ -72895,7 +72962,7 @@ function q6({ term: e, value: t }) {
})]
});
}
-function J6({ term: e, value: t, total: n }) {
+function q6({ term: e, value: t, total: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
children: [/* @__PURE__ */ (0, B.jsxs)("p", {
@@ -72904,17 +72971,17 @@ function J6({ term: e, value: t, total: n }) {
className: "tabular-nums",
children: [t.toLocaleString(), /* @__PURE__ */ (0, B.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [LR(t, n), "%"]
+ children: [IR(t, n), "%"]
})]
})]
- }), /* @__PURE__ */ (0, B.jsx)(FE, {
+ }), /* @__PURE__ */ (0, B.jsx)(PE, {
label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
value: t,
max: Math.max(n, 1)
})]
});
}
-function Y6({ term: e, figure: t, unit: n }) {
+function J6({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",
children: [
@@ -72933,28 +73000,28 @@ function Y6({ term: e, figure: t, unit: n }) {
]
});
}
-function X6({ headline: e, children: t }) {
+function Y6({ headline: e, children: t }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: `${wHe} md:flex-row md:gap-6`,
+ className: `${EHe} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function AHe({ data: e, configurable: t, openMediaSettings: n }) {
+function MHe({ data: e, configurable: t, openMediaSettings: n }) {
return e.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2",
- children: [/* @__PURE__ */ (0, B.jsx)(G6, {
+ children: [/* @__PURE__ */ (0, B.jsx)(W6, {
title: "网盘与本地",
rows: e.by_loc.map((e) => ({
name: I[e.k] ?? e.k,
value: e.videos,
detail: ye(e.bytes)
}))
- }), /* @__PURE__ */ (0, B.jsx)(G6, {
+ }), /* @__PURE__ */ (0, B.jsx)(W6, {
title: "媒体库",
rows: e.by_library.map((e) => ({
name: e.name,
@@ -72965,49 +73032,49 @@ function AHe({ data: e, configurable: t, openMediaSettings: n }) {
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3",
children: [
- /* @__PURE__ */ (0, B.jsx)(A6, {
+ /* @__PURE__ */ (0, B.jsx)(k6, {
title: "时长",
unit: "个视频",
series: "视频",
- color: K6,
- rows: cbe(e.by_length)
+ color: G6,
+ rows: ube(e.by_length)
}),
- /* @__PURE__ */ (0, B.jsx)(A6, {
+ /* @__PURE__ */ (0, B.jsx)(k6, {
title: "画质",
unit: "个视频",
series: "视频",
- color: K6,
- rows: BR(e.by_quality)
+ color: G6,
+ rows: zR(e.by_quality)
}),
- /* @__PURE__ */ (0, B.jsx)(A6, {
+ /* @__PURE__ */ (0, B.jsx)(k6, {
title: "文件类型",
unit: "个条目",
series: "条目",
- color: K6,
+ color: G6,
layout: "horizontal",
- rows: obe(e.by_medium)
+ rows: cbe(e.by_medium)
})
]
})]
- }) : /* @__PURE__ */ (0, B.jsx)(jE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(AE, {
shell: "plain",
- icon: mae,
+ icon: hae,
title: "还没有视频",
actions: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [t ? /* @__PURE__ */ (0, B.jsx)(J, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
- }) : null, /* @__PURE__ */ (0, B.jsx)(kE, {
+ }) : null, /* @__PURE__ */ (0, B.jsx)(OE, {
variant: "secondary",
href: "/follow-manage?tab=add",
size: "small",
children: "添加关注"
})] }),
- children: THe
+ children: DHe
});
}
-function jHe({ data: e }) {
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(L6, {
+function NHe({ data: e }) {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(I6, {
activity: e.play_activity,
title: "播放时间",
dailyTitle: "每日播放",
@@ -73017,40 +73084,40 @@ function jHe({ data: e }) {
cellUnit: "个作品"
},
tone: 5
- }), /* @__PURE__ */ (0, B.jsx)(A6, {
+ }), /* @__PURE__ */ (0, B.jsx)(k6, {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: CHe,
- rows: ube(e.replays)
+ color: THe,
+ rows: fbe(e.replays)
})] });
}
-function MHe({ attribution: e }) {
+function PHe({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col",
children: [
- /* @__PURE__ */ (0, B.jsx)(J6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "有创作者",
value: e.creator,
total: t
}),
- /* @__PURE__ */ (0, B.jsx)(J6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "有番号",
value: e.code,
total: t
}),
- /* @__PURE__ */ (0, B.jsx)(J6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "有厂牌",
value: e.studio,
total: t
}),
- /* @__PURE__ */ (0, B.jsx)(J6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "已抽帧",
value: e.thumb,
total: t
}),
- /* @__PURE__ */ (0, B.jsx)(J6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "已探测时长",
value: e.duration,
total: t
@@ -73058,7 +73125,7 @@ function MHe({ attribution: e }) {
]
});
}
-function NHe({ volume: e }) {
+function FHe({ volume: e }) {
let t = e.total, n = e.used ?? 0;
return /* @__PURE__ */ (0, B.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -73075,11 +73142,11 @@ function NHe({ volume: e }) {
className: "whitespace-nowrap tabular-nums",
children: [ye(n), /* @__PURE__ */ (0, B.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [LR(n, t), "%"]
+ children: [IR(n, t), "%"]
})]
})]
}),
- t == null ? null : /* @__PURE__ */ (0, B.jsx)(FE, {
+ t == null ? null : /* @__PURE__ */ (0, B.jsx)(PE, {
label: `${e.label}空间使用率`,
value: n,
max: Math.max(t, 1)
@@ -73097,25 +73164,25 @@ function NHe({ volume: e }) {
]
});
}
-function PHe({ volumes: e, configurable: t, openMediaSettings: n }) {
+function IHe({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, B.jsx)(NHe, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, B.jsx)(jE, {
+ children: e.map((e) => /* @__PURE__ */ (0, B.jsx)(FHe, { volume: e }, `${e.kind}:${e.label}`))
+ }) : /* @__PURE__ */ (0, B.jsx)(AE, {
shell: "plain",
- icon: DT,
+ icon: ET,
title: "还没有存储来源",
actions: t ? /* @__PURE__ */ (0, B.jsx)(J, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: kHe
+ children: jHe
});
}
-function FHe({ tags: e, tagLabel: t, onTag: n }) {
- return e.length ? /* @__PURE__ */ (0, B.jsx)(R6, {
- previewCount: SHe,
+function LHe({ tags: e, tagLabel: t, onTag: n }) {
+ return e.length ? /* @__PURE__ */ (0, B.jsx)(L6, {
+ previewCount: wHe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, B.jsx)("li", {
className: "min-w-0",
@@ -73139,24 +73206,24 @@ function FHe({ tags: e, tagLabel: t, onTag: n }) {
]
})
}, e.k))
- }) : /* @__PURE__ */ (0, B.jsx)(jE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(AE, {
shell: "plain",
- icon: AT,
+ icon: kT,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, B.jsx)(kE, {
+ actions: /* @__PURE__ */ (0, B.jsx)(OE, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: EHe
+ children: OHe
});
}
-function IHe({ rows: e }) {
+function RHe({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = RR(e);
+ let t = LR(e);
return /* @__PURE__ */ (0, B.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
@@ -73164,41 +73231,41 @@ function IHe({ rows: e }) {
children: [/* @__PURE__ */ (0, B.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, B.jsx)("a", {
- href: nbe(e),
+ href: ibe(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
}), /* @__PURE__ */ (0, B.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, B.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, B.jsx)("span", { children: tbe(e) })]
+ children: [/* @__PURE__ */ (0, B.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, B.jsx)("span", { children: rbe(e) })]
})]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, B.jsx)(FE, {
+ children: [/* @__PURE__ */ (0, B.jsx)(PE, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
}), /* @__PURE__ */ (0, B.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${zR(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${RR(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, B.jsx)(jE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(AE, {
shell: "plain",
- icon: OT,
+ icon: DT,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, B.jsx)(kE, {
+ actions: /* @__PURE__ */ (0, B.jsx)(OE, {
variant: "secondary",
href: "/",
size: "small",
children: "浏览馆藏"
}),
- children: DHe
+ children: kHe
});
}
-function LHe({ sources: e, videos: t }) {
+function zHe({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)("article", {
@@ -73217,7 +73284,7 @@ function LHe({ sources: e, videos: t }) {
})]
})]
}),
- /* @__PURE__ */ (0, B.jsx)(FE, {
+ /* @__PURE__ */ (0, B.jsx)(PE, {
label: `${e.k} 覆盖视频`,
value: e.assets,
max: Math.max(t, 1)
@@ -73228,27 +73295,27 @@ function LHe({ sources: e, videos: t }) {
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, B.jsx)(jE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(AE, {
shell: "plain",
- icon: AT,
+ icon: kT,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, B.jsx)(kE, {
+ actions: /* @__PURE__ */ (0, B.jsx)(OE, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: OHe
+ children: AHe
});
}
-function Z6({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, B.jsx)(_k, {
+function X6({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
+ return /* @__PURE__ */ (0, B.jsx)(gk, {
id: e,
- className: wM({
+ className: CM({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, B.jsx)(OM, {
+ children: /* @__PURE__ */ (0, B.jsx)(DM, {
label: t,
icon: i,
accent: a,
@@ -73257,76 +73324,76 @@ function Z6({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function RHe(e) {
- let t = TS({
- queryKey: FR,
- queryFn: ({ signal: e }) => IR(e)
+function BHe(e) {
+ let t = wS({
+ queryKey: PR,
+ queryFn: ({ signal: e }) => FR(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, B.jsx)(ME, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "馆藏统计读取失败",
children: t.error ? U(t.error) : "未取得统计数据,请刷新页面重试。"
}) });
- let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = LR(n.tag_cov, n.attribution.videos);
- return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [
+ let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = IR(n.tag_cov, n.attribution.videos);
+ return /* @__PURE__ */ (0, B.jsxs)(ME, { children: [
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${ye(o)}`
}),
- /* @__PURE__ */ (0, B.jsxs)(hk, {
+ /* @__PURE__ */ (0, B.jsxs)(mk, {
defaultSelectedKey: "inventory",
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, B.jsxs)(gk, {
+ /* @__PURE__ */ (0, B.jsxs)(hk, {
"aria-label": "统计视图",
- className: TM,
+ className: wM,
children: [
- /* @__PURE__ */ (0, B.jsx)(Z6, {
+ /* @__PURE__ */ (0, B.jsx)(X6, {
id: "inventory",
label: "馆藏视频",
- icon: CT,
+ icon: ST,
accent: 0,
figure: a.toLocaleString(),
detail: ye(o)
}),
- /* @__PURE__ */ (0, B.jsx)(Z6, {
+ /* @__PURE__ */ (0, B.jsx)(X6, {
id: "viewing",
label: "看过",
- icon: ET,
+ icon: TT,
accent: 1,
figure: r.played.toLocaleString(),
- detail: ebe(r.play_seconds)
+ detail: nbe(r.play_seconds)
}),
- /* @__PURE__ */ (0, B.jsx)(Z6, {
+ /* @__PURE__ */ (0, B.jsx)(X6, {
id: "coverage",
label: "内容标签",
- icon: AT,
+ icon: kT,
accent: 2,
figure: `${s}%`,
detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- /* @__PURE__ */ (0, B.jsx)(Z6, {
+ /* @__PURE__ */ (0, B.jsx)(X6, {
id: "storage",
label: "使用空间",
- icon: DT,
+ icon: ET,
accent: 3,
figure: `${i.online} 个卷`,
detail: i.measured ? `已用 ${ye(i.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, B.jsx)(vk, {
+ /* @__PURE__ */ (0, B.jsx)(_k, {
id: "inventory",
- children: /* @__PURE__ */ (0, B.jsx)(AHe, {
+ children: /* @__PURE__ */ (0, B.jsx)(MHe, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, B.jsxs)(vk, {
+ /* @__PURE__ */ (0, B.jsxs)(_k, {
id: "viewing",
className: "flex flex-col gap-5",
- children: [/* @__PURE__ */ (0, B.jsx)(X6, {
- headline: /* @__PURE__ */ (0, B.jsx)(Y6, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Y6, {
+ headline: /* @__PURE__ */ (0, B.jsx)(J6, {
term: "观看",
figure: r.played.toLocaleString(),
unit: "个作品有播放记录"
@@ -73334,62 +73401,62 @@ function RHe(e) {
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(K6, {
term: "馆藏观看",
value: r.library_played
}),
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(K6, {
term: "在线直接观看",
value: r.online_played
}),
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(K6, {
term: "高潮计数",
value: r.o_total
}),
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(K6, {
term: "快进扫过",
value: r.skimmed
}),
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(K6, {
term: "喜欢",
value: r.liked
}),
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(K6, {
term: "明确不喜欢",
value: r.dislike
}),
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(K6, {
term: "看过了",
value: r.seen
}),
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(K6, {
term: "回收站",
value: r.trash
})
]
})
- }), /* @__PURE__ */ (0, B.jsx)(jHe, { data: n })]
+ }), /* @__PURE__ */ (0, B.jsx)(NHe, { data: n })]
}),
- /* @__PURE__ */ (0, B.jsx)(vk, {
+ /* @__PURE__ */ (0, B.jsx)(_k, {
id: "coverage",
- children: /* @__PURE__ */ (0, B.jsx)(X6, {
- headline: /* @__PURE__ */ (0, B.jsx)(Y6, {
+ children: /* @__PURE__ */ (0, B.jsx)(Y6, {
+ headline: /* @__PURE__ */ (0, B.jsx)(J6, {
term: "内容标签覆盖",
figure: `${s}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, B.jsx)(MHe, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, B.jsx)(PHe, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, B.jsx)(vk, {
+ /* @__PURE__ */ (0, B.jsx)(_k, {
id: "storage",
- children: /* @__PURE__ */ (0, B.jsx)(X6, {
- headline: /* @__PURE__ */ (0, B.jsx)(Y6, {
+ children: /* @__PURE__ */ (0, B.jsx)(Y6, {
+ headline: /* @__PURE__ */ (0, B.jsx)(J6, {
term: "使用空间",
figure: String(i.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, B.jsx)(PHe, {
+ children: /* @__PURE__ */ (0, B.jsx)(IHe, {
volumes: n.storage_volumes,
...e
})
@@ -73397,51 +73464,51 @@ function RHe(e) {
})
]
}),
- /* @__PURE__ */ (0, B.jsxs)(hk, {
+ /* @__PURE__ */ (0, B.jsxs)(mk, {
defaultSelectedKey: "tags",
- className: `${AE({ padding: "none" })} flex flex-col`,
+ className: `${kE({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, B.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, B.jsxs)(_A, {
+ children: /* @__PURE__ */ (0, B.jsxs)(hA, {
"aria-label": "统计维度",
- className: yA,
+ className: _A,
children: [
- /* @__PURE__ */ (0, B.jsx)(_k, {
+ /* @__PURE__ */ (0, B.jsx)(gk, {
id: "tags",
- className: bA,
+ className: vA,
children: "内容标签"
}),
- /* @__PURE__ */ (0, B.jsx)(_k, {
+ /* @__PURE__ */ (0, B.jsx)(gk, {
id: "recent",
- className: bA,
+ className: vA,
children: "最近看过"
}),
- /* @__PURE__ */ (0, B.jsx)(_k, {
+ /* @__PURE__ */ (0, B.jsx)(gk, {
id: "sources",
- className: bA,
+ className: vA,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, B.jsx)(vk, {
+ /* @__PURE__ */ (0, B.jsx)(_k, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, B.jsx)(FHe, {
+ children: /* @__PURE__ */ (0, B.jsx)(LHe, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, B.jsx)(vk, {
+ /* @__PURE__ */ (0, B.jsx)(_k, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, B.jsx)(IHe, { rows: n.recent })
+ children: /* @__PURE__ */ (0, B.jsx)(RHe, { rows: n.recent })
}),
- /* @__PURE__ */ (0, B.jsx)(vk, {
+ /* @__PURE__ */ (0, B.jsx)(_k, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, B.jsx)(LHe, {
+ children: /* @__PURE__ */ (0, B.jsx)(zHe, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -73452,66 +73519,66 @@ function RHe(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function zHe(e, t) {
+function VHe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function Q6(e) {
+function Z6(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
+function Q6(e, t) {
+ return e8(e.source, t.source) || e.index - t.index;
+}
function $6(e, t) {
- return t8(e.source, t.source) || e.index - t.index;
+ return e8(e.target, t.target) || e.index - t.index;
}
function e8(e, t) {
- return t8(e.target, t.target) || e.index - t.index;
-}
-function t8(e, t) {
return e.y0 - t.y0;
}
-function n8(e) {
+function t8(e) {
return e.value;
}
-function BHe(e) {
+function HHe(e) {
return e.index;
}
-function VHe(e) {
+function UHe(e) {
return e.nodes;
}
-function HHe(e) {
+function WHe(e) {
return e.links;
}
-function r8(e, t) {
+function n8(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function i8({ nodes: e }) {
+function r8({ nodes: e }) {
for (let t of e) {
let e = t.y0, n = e;
for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function UHe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = BHe, c = zHe, l, u, d = VHe, f = HHe, p = 6;
+function GHe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = HHe, c = VHe, l, u, d = UHe, f = WHe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), i8(e), e;
+ return h(e), g(e), _(e), v(e), x(e), r8(e), e;
}
m.update = function(e) {
- return i8(e), e;
+ return r8(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : Q6(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : Z6(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : Q6(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : Z6(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -73519,9 +73586,9 @@ function UHe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : Q6(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : Z6(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : Q6(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : Z6(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -73537,12 +73604,12 @@ function UHe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = r8(n, t)), typeof i != "object" && (i = r.target = r8(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = n8(n, t)), typeof i != "object" && (i = r.target = n8(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
}
if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
}
function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(kq(t.sourceLinks, n8), kq(t.targetLinks, n8)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(Oq(t.sourceLinks, t8), Oq(t.targetLinks, t8)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -73567,7 +73634,7 @@ function UHe() {
}
}
function y({ nodes: t }) {
- let r = Tq(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = wq(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
for (let n of t) {
let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
@@ -73576,7 +73643,7 @@ function UHe() {
return o;
}
function b(e) {
- let n = Eq(e, (e) => (r - t - (e.length - 1) * o) / kq(e, n8));
+ let n = Tq(e, (e) => (r - t - (e.length - 1) * o) / Oq(e, t8));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -73593,7 +73660,7 @@ function UHe() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (Tq(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (wq(n, (e) => e.length) - 1)), b(n);
for (let e = 0; e < p; ++e) {
let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
C(n, t, r), S(n, t, r);
@@ -73612,7 +73679,7 @@ function UHe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(t8), w(i, n);
+ l === void 0 && i.sort(e8), w(i, n);
}
}
function C(e, t, n) {
@@ -73628,7 +73695,7 @@ function UHe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(t8), w(i, n);
+ l === void 0 && i.sort(e8), w(i, n);
}
}
function w(e, n) {
@@ -73649,12 +73716,12 @@ function UHe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(e8);
- for (let { target: { targetLinks: t } } of e) t.sort($6);
+ for (let { source: { sourceLinks: e } } of t) e.sort($6);
+ for (let { target: { targetLinks: t } } of e) t.sort(Q6);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(e8), n.sort($6);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort($6), n.sort(Q6);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -73684,15 +73751,15 @@ function UHe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var a8 = Math.PI, o8 = 2 * a8, s8 = 1e-6, WHe = o8 - s8;
-function c8() {
+var i8 = Math.PI, a8 = 2 * i8, o8 = 1e-6, KHe = a8 - o8;
+function s8() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function l8() {
- return new c8();
+function c8() {
+ return new s8();
}
-c8.prototype = l8.prototype = {
- constructor: c8,
+s8.prototype = c8.prototype = {
+ constructor: s8,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -73713,11 +73780,11 @@ c8.prototype = l8.prototype = {
var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (i < 0) throw Error("negative radius: " + i);
if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
- else if (d > s8) {
- if (!(Math.abs(u * s - c * l) > s8) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > o8) {
+ if (!(Math.abs(u * s - c * l) > o8) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
else {
- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((a8 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > s8 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((i8 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > o8 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
}
}
},
@@ -73725,7 +73792,7 @@ c8.prototype = l8.prototype = {
e = +e, t = +t, n = +n, a = !!a;
var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
if (n < 0) throw Error("negative radius: " + n);
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > s8 || Math.abs(this._y1 - l) > s8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % o8 + o8), d > WHe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > s8 && (this._ += "A" + n + "," + n + ",0," + +(d >= a8) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > o8 || Math.abs(this._y1 - l) > o8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % a8 + a8), d > KHe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > o8 && (this._ += "A" + n + "," + n + ",0," + +(d >= i8) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
},
rect: function(e, t, n, r) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";
@@ -73736,90 +73803,90 @@ c8.prototype = l8.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function u8(e) {
+function l8(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function GHe(e) {
+function qHe(e) {
return e[0];
}
-function KHe(e) {
+function JHe(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var qHe = Array.prototype.slice;
+var YHe = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function JHe(e) {
+function XHe(e) {
return e.source;
}
-function YHe(e) {
+function ZHe(e) {
return e.target;
}
-function XHe(e) {
- var t = JHe, n = YHe, r = GHe, i = KHe, a = null;
+function QHe(e) {
+ var t = XHe, n = ZHe, r = qHe, i = JHe, a = null;
function o() {
- var o, s = qHe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = l8(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
+ var o, s = YHe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = c8(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
return arguments.length ? (t = e, o) : t;
}, o.target = function(e) {
return arguments.length ? (n = e, o) : n;
}, o.x = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : u8(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : l8(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : u8(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : l8(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function ZHe(e, t, n, r, i) {
+function $He(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function QHe() {
- return XHe(ZHe);
+function eUe() {
+ return QHe($He);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function $He(e) {
+function tUe(e) {
return [e.source.x1, e.y0];
}
-function eUe(e) {
+function nUe(e) {
return [e.target.x0, e.y1];
}
-function tUe() {
- return QHe().source($He).target(eUe);
+function rUe() {
+ return eUe().source(tUe).target(nUe);
}
//#endregion
//#region src/react/taste/taste.ts
-var nUe = "/api/taste", d8 = "/api/taste/refresh", rUe = "/api/taste/import", iUe = "/api/taste/source", f8 = (e) => ["taste", e], aUe = ["taste", "refresh"], oUe = [
+var iUe = "/api/taste", u8 = "/api/taste/refresh", aUe = "/api/taste/import", oUe = "/api/taste/source", d8 = (e) => ["taste", e], sUe = ["taste", "refresh"], cUe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], p8 = (e, t) => W(`${nUe}?window=${e}`, t), sUe = (e) => W(d8, e);
-async function cUe(e, t) {
+], f8 = (e, t) => W(`${iUe}?window=${e}`, t), lUe = (e) => W(u8, e);
+async function uUe(e, t) {
await p.fetchQuery({
- queryKey: f8(e),
- queryFn: () => p8(e, t)
+ queryKey: d8(e),
+ queryFn: () => f8(e, t)
});
}
-var lUe = (e) => G(d8, {
+var dUe = (e) => G(u8, {
window: e,
background: !0
-}), uUe = (e, t) => G(iUe, {
+}), fUe = (e, t) => G(oUe, {
operation: "remove",
source_key: e,
window: t
});
-async function dUe(e) {
- let t = await fetch(rUe, {
+async function pUe(e) {
+ let t = await fetch(aUe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -73833,39 +73900,39 @@ async function dUe(e) {
} catch {}
if (!t.ok) {
let e = n?.error;
- throw new zS(e || `导入失败(${t.status})`, t.status, n);
+ throw new RS(e || `导入失败(${t.status})`, t.status, n);
}
return n;
}
-var fUe = 1e4, m8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", pUe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, mUe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function hUe(e) {
+var mUe = 1e4, p8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", hUe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, gUe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function _Ue(e) {
if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
let t = [];
return e.web_visits && t.push(`浏览 ${e.web_visits}`), e.peach_items && t.push(`Peach ${e.peach_items}`), t.join(" · ");
}
-function gUe(e) {
- let t = e.map(mUe), n = Math.max(1, ...t);
+function vUe(e) {
+ let t = e.map(gUe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var h8 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var m8 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
name: e.name,
value: Number(e.score)
})).sort((e, t) => t.value - e.value).slice(0, t);
-function _Ue(e) {
- let t = h8(e, 6);
+function yUe(e) {
+ let t = m8(e, 6);
return t.length < 3 ? [] : t;
}
-var g8 = {
+var h8 = {
width: 720,
height: 435
-}, _8 = {
+}, g8 = {
source: 145,
target: 545
};
-function vUe(e = []) {
+function bUe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = UHe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = GHe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -73880,7 +73947,7 @@ function vUe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = tUe();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = rUe();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -73910,11 +73977,11 @@ function vUe(e = []) {
total: a
};
}
-var yUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, v8 = R.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var xUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _8 = R.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = R.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;
if (e === void 0 || t === void 0) return null;
switch (o) {
- case "border": return /* @__PURE__ */ (0, B.jsx)(b8, {
+ case "border": return /* @__PURE__ */ (0, B.jsx)(y8, {
cx: e,
cy: t,
dotId: c,
@@ -73923,7 +73990,7 @@ var yUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, v8 = R.memo(functio
className: i,
maskId: s
});
- case "colored-border": return /* @__PURE__ */ (0, B.jsx)(x8, {
+ case "colored-border": return /* @__PURE__ */ (0, B.jsx)(b8, {
cx: e,
cy: t,
dotId: c,
@@ -73932,7 +73999,7 @@ var yUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, v8 = R.memo(functio
className: i,
maskId: s
});
- default: return /* @__PURE__ */ (0, B.jsx)(y8, {
+ default: return /* @__PURE__ */ (0, B.jsx)(v8, {
cx: e,
cy: t,
dotId: c,
@@ -73942,7 +74009,7 @@ var yUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, v8 = R.memo(functio
maskId: s
});
}
-}), y8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
+}), v8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
className: a,
mask: o ? `url(#${o})` : void 0,
children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: /* @__PURE__ */ (0, B.jsx)("clipPath", {
@@ -73962,9 +74029,9 @@ var yUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, v8 = R.memo(functio
clipPath: `url(#dot-clip-${n})`
})]
}));
-y8.displayName = "DefaultDot";
-var b8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
- className: X3(a, "text-background"),
+v8.displayName = "DefaultDot";
+var y8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
+ className: Y3(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, B.jsx)("defs", { children: /* @__PURE__ */ (0, B.jsx)("clipPath", {
@@ -74000,9 +74067,9 @@ var b8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
}) })
]
}));
-b8.displayName = "PrimaryBorderDot";
-var x8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
- className: X3(a, "text-background"),
+y8.displayName = "PrimaryBorderDot";
+var b8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
+ className: Y3(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, B.jsx)("defs", { children: /* @__PURE__ */ (0, B.jsx)("clipPath", {
@@ -74030,17 +74097,17 @@ var x8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
})
]
}));
-x8.displayName = "ColoredBorderDot";
+b8.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var bUe = 1, xUe = .3, SUe = 6, S8 = 1500, C8 = "value", w8 = (0, R.createContext)(null);
-function T8() {
- let e = (0, R.use)(w8);
+var SUe = 1, CUe = .3, wUe = 6, x8 = 1500, S8 = "value", C8 = (0, R.createContext)(null);
+function w8() {
+ let e = (0, R.use)(C8);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
-function E8({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
- let u = (0, R.useId)().replace(/:/g, ""), [d, f] = (0, R.useState)(o), p = FUe(c, l), m = (0, R.useCallback)((e) => {
+function T8({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
+ let u = (0, R.useId)().replace(/:/g, ""), [d, f] = (0, R.useState)(o), p = LUe(c, l), m = (0, R.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, R.useMemo)(() => ({
config: e,
@@ -74053,37 +74120,37 @@ function E8({ config: e, data: t, children: n, className: r, chartProps: i, back
d,
m
]);
- return /* @__PURE__ */ (0, B.jsx)(w8, {
+ return /* @__PURE__ */ (0, B.jsx)(C8, {
value: h,
- children: /* @__PURE__ */ (0, B.jsxs)(t6, {
+ children: /* @__PURE__ */ (0, B.jsxs)(e6, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, B.jsx)(n6, { isLoading: c }), /* @__PURE__ */ (0, B.jsxs)(oVe, {
+ children: [/* @__PURE__ */ (0, B.jsx)(t6, { isLoading: c }), /* @__PURE__ */ (0, B.jsxs)(cVe, {
id: u,
data: c ? p : t,
...i,
children: [
- a && /* @__PURE__ */ (0, B.jsx)(p6, { variant: a }),
+ a && /* @__PURE__ */ (0, B.jsx)(f6, { variant: a }),
n,
- c && /* @__PURE__ */ (0, B.jsx)(IUe, {})
+ c && /* @__PURE__ */ (0, B.jsx)(RUe, {})
]
})]
})
});
}
-function CUe({ dataKey: e, variant: t = "filled", fillOpacity: n = xUe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
- let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = T8(), d = (0, R.useId)().replace(/:/g, "");
+function TUe({ dataKey: e, variant: t = "filled", fillOpacity: n = CUe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
+ let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = w8(), d = (0, R.useId)().replace(/:/g, "");
if (c) return null;
let f = i && l !== null && l !== e, p = {
stroke: f ? .2 : 1,
fill: f ? .1 : 1,
dot: f ? .2 : 1
- }, m = t === "filled", { dot: h, activeDot: g } = kUe(a, d, e, p.dot);
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(B0, {
+ }, m = t === "filled", { dot: h, activeDot: g } = jUe(a, d, e, p.dot);
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(z0, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
- strokeWidth: bUe,
+ strokeWidth: SUe,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -74096,30 +74163,30 @@ function CUe({ dataKey: e, variant: t = "filled", fillOpacity: n = xUe, isGlowin
},
...o
}), /* @__PURE__ */ (0, B.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, B.jsx)(AUe, {
+ /* @__PURE__ */ (0, B.jsx)(MUe, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, B.jsx)(jUe, {
+ /* @__PURE__ */ (0, B.jsx)(NUe, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, B.jsx)(MUe, {
+ m && /* @__PURE__ */ (0, B.jsx)(PUe, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, B.jsx)(NUe, {
+ r && /* @__PURE__ */ (0, B.jsx)(FUe, {
id: d,
dataKey: e
})
] })] });
}
-var D8 = () => null, O8 = () => null;
-function wUe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
- return /* @__PURE__ */ (0, B.jsx)(N1, {
+var E8 = () => null, D8 = () => null;
+function EUe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+ return /* @__PURE__ */ (0, B.jsx)(M1, {
gridType: e,
stroke: t,
strokeOpacity: n,
@@ -74127,47 +74194,47 @@ function wUe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function TUe({ tick: e = {
+function DUe({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
- let { isLoading: r } = T8();
- return r ? null : /* @__PURE__ */ (0, B.jsx)(q1, {
+ let { isLoading: r } = w8();
+ return r ? null : /* @__PURE__ */ (0, B.jsx)(K1, {
tick: e,
tickLine: t,
...n
});
}
-function EUe({ tick: e = {
+function OUe({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
- let { isLoading: i } = T8();
- return i ? null : /* @__PURE__ */ (0, B.jsx)(V1, {
+ let { isLoading: i } = w8();
+ return i ? null : /* @__PURE__ */ (0, B.jsx)(B1, {
tick: e,
tickLine: t,
axisLine: n,
...r
});
}
-function DUe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = T8();
- return r ? null : /* @__PURE__ */ (0, B.jsx)(s6, {
+function kUe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = w8();
+ return r ? null : /* @__PURE__ */ (0, B.jsx)(o6, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, B.jsx)(o6, {
+ content: /* @__PURE__ */ (0, B.jsx)(a6, {
selected: i,
roundness: t,
variant: e
})
});
}
-function OUe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { isLoading: i, selectedDataKey: a, selectDataKey: o } = T8();
- return i ? null : /* @__PURE__ */ (0, B.jsx)(l6, {
+function AUe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { isLoading: i, selectedDataKey: a, selectDataKey: o } = w8();
+ return i ? null : /* @__PURE__ */ (0, B.jsx)(c6, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, B.jsx)(c6, {
+ content: /* @__PURE__ */ (0, B.jsx)(s6, {
selected: a,
onSelectChange: o,
isClickable: r,
@@ -74175,22 +74242,22 @@ function OUe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var kUe = (e, t, n, r) => {
+var jUe = (e, t, n, r) => {
let i = !1, a = !1;
return R.Children.forEach(e, (e) => {
if ((0, R.isValidElement)(e)) {
- if (e.type === D8) {
+ if (e.type === E8) {
let { variant: a } = e.props;
- i = /* @__PURE__ */ (0, B.jsx)(v8, {
+ i = /* @__PURE__ */ (0, B.jsx)(_8, {
type: a,
dataKey: n,
chartId: t,
fillOpacity: r
});
}
- if (e.type === O8) {
+ if (e.type === D8) {
let { variant: i } = e.props;
- a = /* @__PURE__ */ (0, B.jsx)(v8, {
+ a = /* @__PURE__ */ (0, B.jsx)(_8, {
type: i,
dataKey: n,
chartId: t,
@@ -74202,7 +74269,7 @@ var kUe = (e, t, n, r) => {
dot: i,
activeDot: a
};
-}, k8 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("stop", {
+}, O8 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("stop", {
offset: "0%",
stopColor: `var(--color-${e}-0)`,
stopOpacity: n?.[0]
@@ -74217,46 +74284,46 @@ var kUe = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), AUe = ({ id: e, dataKey: t, config: n }) => {
- let r = a6(n[t] ?? {});
+}) }), MUe = ({ id: e, dataKey: t, config: n }) => {
+ let r = i6(n[t] ?? {});
return /* @__PURE__ */ (0, B.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "0",
- children: /* @__PURE__ */ (0, B.jsx)(k8, {
+ children: /* @__PURE__ */ (0, B.jsx)(O8, {
dataKey: t,
colorsCount: r
})
});
-}, jUe = ({ id: e, dataKey: t, config: n }) => {
- let r = a6(n[t] ?? {});
+}, NUe = ({ id: e, dataKey: t, config: n }) => {
+ let r = i6(n[t] ?? {});
return /* @__PURE__ */ (0, B.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "1",
- children: /* @__PURE__ */ (0, B.jsx)(k8, {
+ children: /* @__PURE__ */ (0, B.jsx)(O8, {
dataKey: t,
colorsCount: r
})
});
-}, MUe = ({ id: e, dataKey: t, config: n }) => {
- let r = a6(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
+}, PUe = ({ id: e, dataKey: t, config: n }) => {
+ let r = i6(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, B.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
cx: "50%",
cy: "50%",
r: "50%",
- children: /* @__PURE__ */ (0, B.jsx)(k8, {
+ children: /* @__PURE__ */ (0, B.jsx)(O8, {
dataKey: t,
colorsCount: r,
opacities: i
})
});
-}, NUe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, B.jsxs)("filter", {
+}, FUe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, B.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -74276,7 +74343,7 @@ var kUe = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, B.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, B.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, B.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), PUe = (e) => [
+}), IUe = (e) => [
"A",
"B",
"C",
@@ -74285,20 +74352,20 @@ var kUe = (e, t, n, r) => {
"F"
].slice(0, e).map((e) => ({
skill: e,
- [C8]: 30 + Math.random() * 70
+ [S8]: 30 + Math.random() * 70
}));
-function FUe(e, t = SUe) {
+function LUe(e, t = wUe) {
let [n, r] = (0, R.useState)(0);
return (0, R.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
r((e) => e + 1);
- }, S8);
+ }, x8);
return () => clearInterval(t);
- }, [e]), (0, R.useMemo)(() => PUe(t), [t, n]);
+ }, [e]), (0, R.useMemo)(() => IUe(t), [t, n]);
}
-var IUe = () => /* @__PURE__ */ (0, B.jsx)(B0, {
- dataKey: C8,
+var RUe = () => /* @__PURE__ */ (0, B.jsx)(z0, {
+ dataKey: S8,
stroke: "currentColor",
strokeOpacity: .3,
strokeWidth: 2,
@@ -74306,30 +74373,30 @@ var IUe = () => /* @__PURE__ */ (0, B.jsx)(B0, {
fillOpacity: .1,
dot: !1,
isAnimationActive: !0,
- animationDuration: S8,
+ animationDuration: x8,
animationEasing: "ease-in-out"
});
-E8.Radar = CUe, E8.Dot = D8, E8.ActiveDot = O8, E8.PolarGrid = wUe, E8.PolarAngleAxis = TUe, E8.PolarRadiusAxis = EUe, E8.Tooltip = DUe, E8.Legend = OUe;
+T8.Radar = TUe, T8.Dot = E8, T8.ActiveDot = D8, T8.PolarGrid = EUe, T8.PolarAngleAxis = DUe, T8.PolarRadiusAxis = OUe, T8.Tooltip = kUe, T8.Legend = AUe;
//#endregion
//#region src/react/taste/charts.tsx
-var LUe = [
+var zUe = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], RUe = [
+], BUe = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
"fill-chart-4",
"fill-chart-5",
"fill-chart-6"
-], A8 = { value: {
+], k8 = { value: {
label: "标签命中",
- colors: S6(x6[3])
-} }, zUe = [
+ colors: x6(b6[3])
+} }, VUe = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -74339,78 +74406,78 @@ var LUe = [
"min-h-52",
"min-h-60",
"min-h-64"
-], BUe = 26, VUe = { radius: A8.value }, HUe = (e, t) => Math.sqrt(e / t);
-function UUe({ rows: e, label: t }) {
- let n = _Ue(e);
+], HUe = 26, UUe = { radius: k8.value }, WUe = (e, t) => Math.sqrt(e / t);
+function GUe({ rows: e, label: t }) {
+ let n = yUe(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: HUe(e.value, r)
+ radius: WUe(e.value, r)
}));
return /* @__PURE__ */ (0, B.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
- children: /* @__PURE__ */ (0, B.jsxs)(E8, {
+ children: /* @__PURE__ */ (0, B.jsxs)(T8, {
data: i,
- config: VUe,
+ config: UUe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
- /* @__PURE__ */ (0, B.jsx)(E8.PolarGrid, {}),
- /* @__PURE__ */ (0, B.jsx)(E8.PolarAngleAxis, { dataKey: "name" }),
- /* @__PURE__ */ (0, B.jsx)(E8.PolarRadiusAxis, {
+ /* @__PURE__ */ (0, B.jsx)(T8.PolarGrid, {}),
+ /* @__PURE__ */ (0, B.jsx)(T8.PolarAngleAxis, { dataKey: "name" }),
+ /* @__PURE__ */ (0, B.jsx)(T8.PolarRadiusAxis, {
domain: [0, 1],
allowDecimals: !0,
tick: !1
}),
- /* @__PURE__ */ (0, B.jsx)(E8.Radar, { dataKey: "radius" }),
- /* @__PURE__ */ (0, B.jsx)(D6, { valueKey: "value" })
+ /* @__PURE__ */ (0, B.jsx)(T8.Radar, { dataKey: "radius" }),
+ /* @__PURE__ */ (0, B.jsx)(E6, { valueKey: "value" })
]
})
});
}
-function WUe({ rows: e, label: t }) {
- let n = h8(e, 8);
+function KUe({ rows: e, label: t }) {
+ let n = m8(e, 8);
return n.length ? /* @__PURE__ */ (0, B.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${zUe[n.length]}`,
- children: /* @__PURE__ */ (0, B.jsxs)(_6, {
+ className: `flex grow flex-col ${VUe[n.length]}`,
+ children: /* @__PURE__ */ (0, B.jsxs)(g6, {
data: n,
- config: A8,
+ config: k8,
layout: "horizontal",
barRadius: 4,
- chartProps: { maxBarSize: BUe },
+ chartProps: { maxBarSize: HUe },
className: "aspect-auto text-text-secondary",
children: [
- /* @__PURE__ */ (0, B.jsx)(_6.YAxis, {
+ /* @__PURE__ */ (0, B.jsx)(g6.YAxis, {
dataKey: "name",
interval: 0
}),
- /* @__PURE__ */ (0, B.jsx)(_6.XAxis, {
+ /* @__PURE__ */ (0, B.jsx)(g6.XAxis, {
hide: !0,
- domain: O6
+ domain: D6
}),
- /* @__PURE__ */ (0, B.jsx)(_6.Bar, {
+ /* @__PURE__ */ (0, B.jsx)(g6.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: k6("right")
+ label: O6("right")
}
}),
- /* @__PURE__ */ (0, B.jsx)(D6, {})
+ /* @__PURE__ */ (0, B.jsx)(E6, {})
]
})
}) : null;
}
-function GUe({ flows: e }) {
- let [t, n] = (0, R.useState)(null), r = vUe(e);
+function qUe({ flows: e }) {
+ let [t, n] = (0, R.useState)(null), r = bUe(e);
if (!r) return null;
let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;
return /* @__PURE__ */ (0, B.jsxs)("section", {
- className: y6,
+ className: v6,
children: [
- /* @__PURE__ */ (0, B.jsx)(b6, {
+ /* @__PURE__ */ (0, B.jsx)(y6, {
title: "创作者线索来源",
figure: (t ? t.value : r.total).toLocaleString(),
note: t ? t.label : "条线索"
@@ -74418,7 +74485,7 @@ function GUe({ flows: e }) {
/* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-0 overflow-x-auto",
children: /* @__PURE__ */ (0, B.jsxs)("svg", {
- viewBox: `0 0 ${g8.width} ${g8.height}`,
+ viewBox: `0 0 ${h8.width} ${h8.height}`,
fill: "none",
role: "img",
"aria-label": "来源网站与创作者线索",
@@ -74432,7 +74499,7 @@ function GUe({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${LUe[e.color]}`,
+ className: `outline-none transition-opacity ${zUe[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -74466,15 +74533,15 @@ function GUe({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? RUe[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? BUe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, B.jsxs)("text", {
- x: _8[e.side],
+ x: g8[e.side],
y: e.y + e.height / 2,
textAnchor: e.side === "source" ? "end" : "start",
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
- children: [yUe(e.name), /* @__PURE__ */ (0, B.jsx)("tspan", {
- x: _8[e.side],
+ children: [xUe(e.name), /* @__PURE__ */ (0, B.jsx)("tspan", {
+ x: g8[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
})]
@@ -74491,11 +74558,11 @@ function GUe({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var KUe = 10, j8 = wE(Tk, Ek, "text-body-2-medium"), M8 = `${AE()} flex flex-col gap-4`, N8 = "rounded-xl bg-background-primary-default p-3", qUe = "读取运行 Peach 的这台电脑上的浏览记录", JUe = "导入或读取浏览记录后,这里会列出已采集设备。", YUe = "馆藏里暂时没有对得上浏览信号的标签。", XUe = "采集浏览记录后,这里会显示聚合后的口味证据。", ZUe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", QUe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", $Ue = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", eWe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", tWe = "这个数据源将不再用于口味分析。原始导出文件保留。", P8 = "peach-taste-guide-dismissed";
-function F8({ icon: e, term: t, figure: n, detail: r, accent: i }) {
+var JUe = 10, A8 = CE(wk, Tk, "text-body-2-medium"), j8 = `${kE()} flex flex-col gap-4`, M8 = "rounded-xl bg-background-primary-default p-3", YUe = "读取运行 Peach 的这台电脑上的浏览记录", XUe = "导入或读取浏览记录后,这里会列出已采集设备。", ZUe = "馆藏里暂时没有对得上浏览信号的标签。", QUe = "采集浏览记录后,这里会显示聚合后的口味证据。", $Ue = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", eWe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", tWe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", nWe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", rWe = "这个数据源将不再用于口味分析。原始导出文件保留。", N8 = "peach-taste-guide-dismissed";
+function P8({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
- className: wM(),
- children: /* @__PURE__ */ (0, B.jsx)(OM, {
+ className: CM(),
+ children: /* @__PURE__ */ (0, B.jsx)(DM, {
label: t,
icon: e,
accent: i,
@@ -74504,7 +74571,7 @@ function F8({ icon: e, term: t, figure: n, detail: r, accent: i }) {
})
});
}
-function I8({ name: e, domain: t }) {
+function F8({ name: e, domain: t }) {
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary",
children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, B.jsx)("img", {
@@ -74518,22 +74585,22 @@ function I8({ name: e, domain: t }) {
})]
});
}
-function nWe({ html: e }) {
+function iWe({ html: e }) {
return /* @__PURE__ */ (0, B.jsx)("span", {
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${oL}`,
+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${aL}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function rWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
- if (!e.length) return /* @__PURE__ */ (0, B.jsx)(jE, {
+function aWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
+ if (!e.length) return /* @__PURE__ */ (0, B.jsx)(AE, {
shell: "plain",
- icon: NT,
+ icon: MT,
title: "暂无足够证据",
children: r
});
- let a = gUe(e);
- return /* @__PURE__ */ (0, B.jsx)(R6, {
- previewCount: KUe,
+ let a = vUe(e);
+ return /* @__PURE__ */ (0, B.jsx)(L6, {
+ previewCount: JUe,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
let o = !!t && !!e.peach_items, s = String(e.source_domain || ""), c = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
@@ -74552,15 +74619,15 @@ function rWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: r + 1
}),
- n === "domain" ? /* @__PURE__ */ (0, B.jsx)(I8, {
+ n === "domain" ? /* @__PURE__ */ (0, B.jsx)(F8, {
name: e.name,
domain: e.name
}) : null,
- n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, B.jsx)(I8, {
+ n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, B.jsx)(F8, {
name: e.name,
domain: s
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, B.jsx)(nWe, { html: k(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, B.jsx)(iWe, { html: k(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
image_version: e.image_version,
@@ -74573,10 +74640,10 @@ function rWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
children: e.name
}), /* @__PURE__ */ (0, B.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: hUe(e)
+ children: _Ue(e)
})]
}),
- o ? /* @__PURE__ */ (0, B.jsx)(_T, {
+ o ? /* @__PURE__ */ (0, B.jsx)(gT, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
@@ -74596,31 +74663,31 @@ function rWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
})
});
}
-function L8({ label: e, panels: t, onSignal: n }) {
- return /* @__PURE__ */ (0, B.jsxs)(hk, {
- className: `${AE({ padding: "none" })} flex flex-col`,
+function I8({ label: e, panels: t, onSignal: n }) {
+ return /* @__PURE__ */ (0, B.jsxs)(mk, {
+ className: `${kE({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, B.jsx)(_A, {
+ children: /* @__PURE__ */ (0, B.jsx)(hA, {
"aria-label": e,
- className: yA,
- children: t.map((e) => /* @__PURE__ */ (0, B.jsx)(_k, {
+ className: _A,
+ children: t.map((e) => /* @__PURE__ */ (0, B.jsx)(gk, {
id: e.id,
- className: bA,
+ className: vA,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(vk, {
+ }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(_k, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, B.jsx)(rWe, {
+ children: /* @__PURE__ */ (0, B.jsx)(aWe, {
...e.props,
onSignal: n
})
}, e.id))]
});
}
-function iWe({ data: e, onSignal: t, navigate: n }) {
+function oWe({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -74635,7 +74702,7 @@ function iWe({ data: e, onSignal: t, navigate: n }) {
act: () => n(e.route)
}))];
return /* @__PURE__ */ (0, B.jsxs)("section", {
- className: M8,
+ className: j8,
"aria-label": "口味总结",
children: [
/* @__PURE__ */ (0, B.jsxs)("header", {
@@ -74661,7 +74728,7 @@ function iWe({ data: e, onSignal: t, navigate: n }) {
r.points?.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: r.points.map((e) => /* @__PURE__ */ (0, B.jsxs)("div", {
- className: `flex min-w-0 flex-col gap-1 ${N8}`,
+ className: `flex min-w-0 flex-col gap-1 ${M8}`,
children: [/* @__PURE__ */ (0, B.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e.label
@@ -74676,7 +74743,7 @@ function iWe({ data: e, onSignal: t, navigate: n }) {
children: a.map((e) => /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
onClick: e.act,
- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${N8} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${M8} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [/* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-1",
children: [/* @__PURE__ */ (0, B.jsx)("b", {
@@ -74686,44 +74753,44 @@ function iWe({ data: e, onSignal: t, navigate: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, B.jsx)(_T, {
+ }), /* @__PURE__ */ (0, B.jsx)(gT, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, B.jsx)(jE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(AE, {
shell: "plain",
- icon: NT,
+ icon: MT,
title: "还没有可探索的入口",
- children: YUe
+ children: ZUe
})
]
});
}
-function aWe({ onboarding: e, done: t }) {
+function sWe({ onboarding: e, done: t }) {
let [n, r] = (0, R.useState)(() => {
try {
- return localStorage.getItem(P8) === "1";
+ return localStorage.getItem(N8) === "1";
} catch {
return !1;
}
});
return t || n ? null : /* @__PURE__ */ (0, B.jsx)("div", {
- className: AE({
+ className: kE({
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, B.jsxs)(Gk, {
+ children: /* @__PURE__ */ (0, B.jsxs)(Wk, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: QUe
+ children: eWe
}),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: $Ue
+ children: tWe
}),
/* @__PURE__ */ (0, B.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -74753,7 +74820,7 @@ function aWe({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: eWe
+ children: nWe
}),
/* @__PURE__ */ (0, B.jsx)("span", {
className: "self-start",
@@ -74762,7 +74829,7 @@ function aWe({ onboarding: e, done: t }) {
size: "small",
onClick: () => {
try {
- localStorage.setItem(P8, "1");
+ localStorage.setItem(N8, "1");
} catch {}
r(!0);
},
@@ -74773,7 +74840,7 @@ function aWe({ onboarding: e, done: t }) {
})
});
}
-function oWe({ busy: e, onRefresh: t, onImport: n }) {
+function cWe({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, R.useRef)(null), [i, a] = (0, R.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -74782,15 +74849,15 @@ function oWe({ busy: e, onRefresh: t, onImport: n }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, B.jsx)(J, {
- leadingIcon: ST,
- title: qUe,
+ leadingIcon: xT,
+ title: YUe,
onClick: t,
...X(e),
children: "读取浏览器历史"
}), /* @__PURE__ */ (0, B.jsx)(J, {
ref: r,
iconOnly: !0,
- leadingIcon: hT,
+ leadingIcon: mT,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
@@ -74799,29 +74866,29 @@ function oWe({ busy: e, onRefresh: t, onImport: n }) {
e || a(!0);
}
})]
- }), /* @__PURE__ */ (0, B.jsx)(SO, {
+ }), /* @__PURE__ */ (0, B.jsx)(xO, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: wk,
- children: /* @__PURE__ */ (0, B.jsxs)(kM, {
+ className: Ck,
+ children: /* @__PURE__ */ (0, B.jsxs)(OM, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
- className: j8,
+ className: A8,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, B.jsx)(ST, {
+ children: [/* @__PURE__ */ (0, B.jsx)(xT, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
}), /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
- className: j8,
+ className: A8,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, B.jsx)(PT, {
+ children: [/* @__PURE__ */ (0, B.jsx)(NT, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@ -74829,15 +74896,15 @@ function oWe({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function sWe({ sources: e, window: t, toast: n }) {
- let r = OS({
- mutationFn: (e) => uUe(e, t),
+function lWe({ sources: e, window: t, toast: n }) {
+ let r = DS({
+ mutationFn: (e) => fUe(e, t),
onSuccess: (e) => {
- p.setQueryData(f8(t), e.dashboard), n("已移除口味数据源");
+ p.setQueryData(d8(t), e.dashboard), n("已移除口味数据源");
}
});
return /* @__PURE__ */ (0, B.jsxs)("section", {
- className: M8,
+ className: j8,
"aria-label": "数据源",
children: [
/* @__PURE__ */ (0, B.jsx)("h3", {
@@ -74851,14 +74918,14 @@ function sWe({ sources: e, window: t, toast: n }) {
e.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "inline-grid w-full gap-2 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)("div", {
- className: `flex min-w-0 items-center gap-3 ${N8}`,
+ className: `flex min-w-0 items-center gap-3 ${M8}`,
children: [
/* @__PURE__ */ (0, B.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, B.jsx)(PT, {
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, B.jsx)(NT, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, B.jsx)(CT, {
+ }) : /* @__PURE__ */ (0, B.jsx)(ST, {
"aria-hidden": !0,
className: "size-4"
})
@@ -74878,12 +74945,12 @@ function sWe({ sources: e, window: t, toast: n }) {
size: "small",
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
- leadingIcon: wT,
+ leadingIcon: CT,
...X(r.isPending),
onClick: () => {
r.isPending || je({
title: "移除口味数据源",
- body: tWe,
+ body: rWe,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -74891,32 +74958,32 @@ function sWe({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, B.jsx)(jE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(AE, {
shell: "plain",
- icon: CT,
+ icon: ST,
title: "还没有数据源",
- children: JUe
+ children: XUe
})
]
});
}
-function cWe(e) {
- let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, R.useState)("all"), [s, c] = (0, R.useState)("browser"), l = (0, R.useRef)(null), u = TS({
- queryKey: f8(a),
- queryFn: ({ signal: e }) => p8(a, e),
- placeholderData: AS.keepPreviousData
- }), { job: d, running: f, outcome: m, start: h } = UM({
- queryKey: aUe,
- queryFn: ({ signal: e }) => sUe(e),
- start: () => lUe(a),
- idlePollMs: fUe,
+function uWe(e) {
+ let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, R.useState)("all"), [s, c] = (0, R.useState)("browser"), l = (0, R.useRef)(null), u = wS({
+ queryKey: d8(a),
+ queryFn: ({ signal: e }) => f8(a, e),
+ placeholderData: kS.keepPreviousData
+ }), { job: d, running: f, outcome: m, start: h } = HM({
+ queryKey: sUe,
+ queryFn: ({ signal: e }) => lUe(e),
+ start: () => dUe(a),
+ idlePollMs: mUe,
onFinish: (e) => {
e.status !== "failed" && (p.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
- }), g = OS({
- mutationFn: (e) => dUe(e),
+ }), g = DS({
+ mutationFn: (e) => pUe(e),
onSuccess: (e) => {
- p.setQueryData(f8("all"), e.dashboard), o("all"), r("已导入口味数据");
+ p.setQueryData(d8("all"), e.dashboard), o("all"), r("已导入口味数据");
}
}), _ = (e) => {
let t = e.currentTarget.files?.[0];
@@ -74924,47 +74991,47 @@ function cWe(e) {
}, v = () => {
f || h.isPending || (h.reset(), h.mutate());
}, y = u.data;
- if (!y) return /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
+ if (!y) return /* @__PURE__ */ (0, B.jsx)(ME, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "口味分析读取失败",
children: u.error ? U(u.error) : "读取口味分析失败"
}) });
let b = y.summary || {}, x = y.coverage || {}, S = y.rankings || {}, C = y.storage || {}, w = S.browser_categories || [], T = y.gaps || [], E = x.tagged || 0, D = x.identified || 0, O = h.error ? U(h.error) : g.error ? U(g.error) : m?.status === "failed" ? m.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [
- /* @__PURE__ */ (0, B.jsxs)(hk, {
+ return /* @__PURE__ */ (0, B.jsxs)(ME, { children: [
+ /* @__PURE__ */ (0, B.jsxs)(mk, {
selectedKey: s,
onSelectionChange: (e) => c(String(e)),
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, B.jsxs)(_A, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(hA, {
"aria-label": "口味证据来源",
- className: yA,
- children: [/* @__PURE__ */ (0, B.jsx)(_k, {
+ className: _A,
+ children: [/* @__PURE__ */ (0, B.jsx)(gk, {
id: "browser",
- className: bA,
+ className: vA,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, B.jsx)(_k, {
+ }), /* @__PURE__ */ (0, B.jsx)(gk, {
id: "peach",
- className: bA,
+ className: vA,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(Ok, {
+ /* @__PURE__ */ (0, B.jsx)(Dk, {
"aria-label": "分析范围",
selectedKey: a,
onSelectionChange: (e) => {
e !== null && o(String(e));
},
- children: oUe.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
+ children: cUe.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Ok, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, B.jsx)(oWe, {
+ /* @__PURE__ */ (0, B.jsx)(cWe, {
busy: f || h.isPending || g.isPending,
onRefresh: v,
onImport: () => l.current?.click()
@@ -74980,7 +75047,7 @@ function cWe(e) {
]
})]
}),
- /* @__PURE__ */ (0, B.jsx)(aWe, {
+ /* @__PURE__ */ (0, B.jsx)(sWe, {
onboarding: i,
done: !!(b.history_sources || y.updated_at)
}),
@@ -74988,48 +75055,48 @@ function cWe(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- f ? /* @__PURE__ */ (0, B.jsx)(zM, {
+ f ? /* @__PURE__ */ (0, B.jsx)(RM, {
label: d?.message || "正在读取浏览记录并更新口味分析",
value: d?.checked,
total: d?.total
}) : null,
- g.isPending ? /* @__PURE__ */ (0, B.jsx)(zM, { label: "正在导入历史文件" }) : null,
+ g.isPending ? /* @__PURE__ */ (0, B.jsx)(RM, { label: "正在导入历史文件" }) : null,
O ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
children: O
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsxs)(vk, {
+ /* @__PURE__ */ (0, B.jsxs)(_k, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
- className: TM,
+ className: wM,
children: [
- /* @__PURE__ */ (0, B.jsx)(F8, {
+ /* @__PURE__ */ (0, B.jsx)(P8, {
accent: 0,
- icon: OT,
+ icon: DT,
term: "浏览记录",
figure: Number(b.history_visits || 0).toLocaleString(),
- detail: `${b.history_sources || 0} 个数据源 · ${m8(b.range_start)}—${m8(b.range_end)}`
+ detail: `${b.history_sources || 0} 个数据源 · ${p8(b.range_start)}—${p8(b.range_end)}`
}),
- /* @__PURE__ */ (0, B.jsx)(F8, {
+ /* @__PURE__ */ (0, B.jsx)(P8, {
accent: 1,
- icon: AT,
+ icon: kT,
term: "口味维度",
figure: w.length.toLocaleString(),
detail: w[0]?.name || "尚无主维度"
}),
- /* @__PURE__ */ (0, B.jsx)(F8, {
+ /* @__PURE__ */ (0, B.jsx)(P8, {
accent: 2,
- icon: NT,
+ icon: MT,
term: "浏览候选",
figure: T.length.toLocaleString()
}),
- /* @__PURE__ */ (0, B.jsx)(F8, {
+ /* @__PURE__ */ (0, B.jsx)(P8, {
accent: 3,
- icon: CT,
+ icon: ST,
term: "私有导出",
figure: Number(C.exports || 0).toLocaleString(),
detail: ye(C.bytes || 0)
@@ -75037,7 +75104,7 @@ function cWe(e) {
]
}),
/* @__PURE__ */ (0, B.jsxs)("section", {
- className: `${M8} md:flex-row md:gap-6`,
+ className: `${j8} md:flex-row md:gap-6`,
"aria-label": "浏览器画像",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 flex-col gap-2 pb-5 md:w-80 md:pr-6 md:pb-0",
@@ -75046,29 +75113,29 @@ function cWe(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, B.jsx)(UUe, {
+ /* @__PURE__ */ (0, B.jsx)(GUe, {
rows: w,
label: "主要口味维度"
}),
/* @__PURE__ */ (0, B.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: y.updated_at ? `更新于 ${m8(y.updated_at)}` : "尚未采集浏览记录"
+ children: y.updated_at ? `更新于 ${p8(y.updated_at)}` : "尚未采集浏览记录"
})
]
}), /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: w.length ? /* @__PURE__ */ (0, B.jsx)(WUe, {
+ children: w.length ? /* @__PURE__ */ (0, B.jsx)(KUe, {
rows: w,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, B.jsx)(jE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(AE, {
shell: "plain",
- icon: NT,
+ icon: MT,
title: "暂无口味维度",
- children: XUe
+ children: QUe
})
})]
}),
- /* @__PURE__ */ (0, B.jsx)(L6, {
+ /* @__PURE__ */ (0, B.jsx)(I6, {
activity: y.activity,
title: "浏览活跃时间",
dailyTitle: "每日活跃",
@@ -75080,8 +75147,8 @@ function cWe(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, B.jsx)(GUe, { flows: y.creator_flows }),
- /* @__PURE__ */ (0, B.jsx)(L8, {
+ /* @__PURE__ */ (0, B.jsx)(qUe, { flows: y.creator_flows }),
+ /* @__PURE__ */ (0, B.jsx)(I8, {
label: "浏览器口味维度",
onSignal: t,
panels: [
@@ -75122,49 +75189,49 @@ function cWe(e) {
rows: T,
kind: "",
visual: "none",
- empty: ZUe
+ empty: $Ue
}
}
]
})
]
}),
- /* @__PURE__ */ (0, B.jsxs)(vk, {
+ /* @__PURE__ */ (0, B.jsxs)(_k, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
- className: TM,
+ className: wM,
children: [
- /* @__PURE__ */ (0, B.jsx)(F8, {
+ /* @__PURE__ */ (0, B.jsx)(P8, {
accent: 0,
- icon: ET,
+ icon: TT,
term: "Peach 看过",
figure: Number(b.peach_items || 0).toLocaleString(),
- detail: pUe(b.peach_seconds || 0)
+ detail: hUe(b.peach_seconds || 0)
}),
- /* @__PURE__ */ (0, B.jsx)(F8, {
+ /* @__PURE__ */ (0, B.jsx)(P8, {
accent: 1,
- icon: pae,
+ icon: mae,
term: "喜欢",
figure: Number(b.liked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, B.jsx)(F8, {
+ /* @__PURE__ */ (0, B.jsx)(P8, {
accent: 2,
- icon: fae,
+ icon: pae,
term: "不合口味",
figure: Number(b.disliked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, B.jsx)(F8, {
+ /* @__PURE__ */ (0, B.jsx)(P8, {
accent: 3,
- icon: AT,
+ icon: kT,
term: "有标签",
figure: E.toLocaleString()
})
]
}),
/* @__PURE__ */ (0, B.jsxs)("section", {
- className: `${M8} md:flex-row md:gap-6`,
+ className: `${j8} md:flex-row md:gap-6`,
"aria-label": "Peach 观看",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",
@@ -75184,18 +75251,18 @@ function cWe(e) {
]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 grow flex-col",
- children: [/* @__PURE__ */ (0, B.jsx)(R8, {
+ children: [/* @__PURE__ */ (0, B.jsx)(L8, {
term: "有标签",
value: E,
rest: x.untagged || 0
- }), /* @__PURE__ */ (0, B.jsx)(R8, {
+ }), /* @__PURE__ */ (0, B.jsx)(L8, {
term: "有身份",
value: D,
rest: x.unidentified || 0
})]
})]
}),
- /* @__PURE__ */ (0, B.jsx)(L8, {
+ /* @__PURE__ */ (0, B.jsx)(I8, {
label: "Peach 口味维度",
onSignal: t,
panels: [
@@ -75235,19 +75302,19 @@ function cWe(e) {
})
]
}),
- /* @__PURE__ */ (0, B.jsx)(iWe, {
+ /* @__PURE__ */ (0, B.jsx)(oWe, {
data: y,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, B.jsx)(sWe, {
+ /* @__PURE__ */ (0, B.jsx)(lWe, {
sources: y.sources || [],
window: a,
toast: r
})
] });
}
-function R8({ term: e, value: t, rest: n }) {
+function L8({ term: e, value: t, rest: n }) {
let r = Math.max(t + n, 1);
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -75260,7 +75327,7 @@ function R8({ term: e, value: t, rest: n }) {
children: `${n} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, B.jsx)(FE, {
+ }), /* @__PURE__ */ (0, B.jsx)(PE, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -75269,18 +75336,18 @@ function R8({ term: e, value: t, rest: n }) {
}
//#endregion
//#region src/react/router/managed-routes.tsx
-function lWe(e, t, n) {
+function dWe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
}
let r = t.managePath(e);
- B8(r) ? n(r) : t.openManage(e);
+ z8(r) ? n(r) : t.openManage(e);
}
-var z8 = {
+var R8 = {
"/stats": {
- prefetch: (e, t) => $ye(t),
- page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(RHe, {
+ prefetch: (e, t) => tbe(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(BHe, {
tagLabel: ct,
onTag: t.openTag,
configurable: e.configurable,
@@ -75290,8 +75357,8 @@ var z8 = {
})
},
"/taste": {
- prefetch: (e, t) => cUe("all", t),
- page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(cWe, {
+ prefetch: (e, t) => uUe("all", t),
+ page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(uWe, {
onSignal: t.openTasteSignal,
navigate: n,
toast: (e) => t.receipt(e),
@@ -75299,8 +75366,8 @@ var z8 = {
})
},
"/review": {
- prefetch: (e, t) => jj(t),
- page: (e, t) => /* @__PURE__ */ (0, B.jsx)(Tve, {
+ prefetch: (e, t) => bue(t),
+ page: (e, t) => /* @__PURE__ */ (0, B.jsx)(Dve, {
...e,
route: t.routeReview,
openItem: t.openItem,
@@ -75310,24 +75377,24 @@ var z8 = {
})
},
"/data-cleanup": {
- prefetch: (e, t) => ode(t),
- page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(pfe, {
+ prefetch: (e, t) => sde(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(mfe, {
failure: t.failure,
- open: (e) => lWe(e, t, n),
+ open: (e) => dWe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
})
},
"/duplicates": {
- prefetch: (e, t) => Ile(t),
- page: (e, t) => /* @__PURE__ */ (0, B.jsx)(ame, {
+ prefetch: (e, t) => Rle(t),
+ page: (e, t) => /* @__PURE__ */ (0, B.jsx)(sme, {
openItem: t.openItem,
failure: t.failure,
toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})
})
},
"/quality-goals": {
- prefetch: (e, t) => eue(t),
- page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(lve, {
+ prefetch: (e, t) => $le(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(dve, {
openItem: t.openItem,
javTitleHtml: st,
javDisplayName: ot,
@@ -75338,19 +75405,19 @@ var z8 = {
})
},
"/scraping": {
- prefetch: (e, t) => Mve(t),
- page: (e, t) => /* @__PURE__ */ (0, B.jsx)(zve, { toast: (e) => t.toast(e) })
+ prefetch: (e, t) => Pve(t),
+ page: (e, t) => /* @__PURE__ */ (0, B.jsx)(Vve, { toast: (e) => t.toast(e) })
},
"/configuration": {
- prefetch: (e, t) => SR(t),
- page: (e, t) => /* @__PURE__ */ (0, B.jsx)(Zye, {
+ prefetch: (e, t) => xR(t),
+ page: (e, t) => /* @__PURE__ */ (0, B.jsx)($ye, {
receipt: (e) => t.receipt(e),
reopenTutorial: t.reopenTutorial
})
},
"/diagnostics": {
- prefetch: (e, t) => ome(t),
- page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(ume, {
+ prefetch: (e, t) => cme(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(fme, {
navigate: n,
openItem: t.openItem,
receipt: (e) => t.receipt(e),
@@ -75360,12 +75427,12 @@ var z8 = {
})
},
"/activity": {
- prefetch: (e, t) => xce(t),
- page: (e) => /* @__PURE__ */ (0, B.jsx)(Wce, { ...e.prefill ? { prefill: e.prefill } : {} })
+ prefetch: (e, t) => Sce(t),
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(Kce, { ...e.prefill ? { prefill: e.prefill } : {} })
},
"/follow-manage": {
- prefetch: (e, t) => Hme(t, e.tab),
- page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(f_e, {
+ prefetch: (e, t) => Wme(t, e.tab),
+ page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(m_e, {
...e,
route: t.routeFollowManage,
savePreference: t.saveFollowPreference,
@@ -75376,10 +75443,10 @@ var z8 = {
}
})
}
-}, B8 = (e) => Object.hasOwn(z8, e), V8 = {
+}, z8 = (e) => Object.hasOwn(R8, e), B8 = {
"/playlists": {
- prefetch: (e, t) => Y_e(t),
- page: (e, t) => /* @__PURE__ */ (0, B.jsx)(sve, {
+ prefetch: (e, t) => Z_e(t),
+ page: (e, t) => /* @__PURE__ */ (0, B.jsx)(lve, {
revision: e.revision,
openPlaylist: t.openPlaylist,
openEntity: t.openEntity,
@@ -75388,12 +75455,12 @@ var z8 = {
})
},
"/follow": {
- prefetch: (e, t) => Xme(e, t),
- page: (e) => /* @__PURE__ */ (0, B.jsx)(bhe, { ...e })
+ prefetch: (e, t) => Qme(e, t),
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(She, { ...e })
}
-}, H8 = (e) => Object.hasOwn(V8, e), U8 = {
- prefetch: (e, t) => Pfe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, B.jsx)(E_e, {
+}, V8 = (e) => Object.hasOwn(B8, e), H8 = {
+ prefetch: (e, t) => Ffe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, B.jsx)(O_e, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -75406,82 +75473,82 @@ var z8 = {
openFollowAuthor: t.openFollowAuthor,
openFollowTag: t.openFollowTag
})
+}, U8 = {
+ "/performers": H8,
+ "/creators": H8,
+ "/studios": H8,
+ "/agencies": H8,
+ "/tags": H8
}, W8 = {
- "/performers": U8,
- "/creators": U8,
- "/studios": U8,
- "/agencies": U8,
- "/tags": U8
+ prefetch: (e) => wfe(e),
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(Qpe, { ...e })
}, G8 = {
- prefetch: (e) => Cfe(e),
- page: (e) => /* @__PURE__ */ (0, B.jsx)(Xpe, { ...e })
+ "/performers/*": W8,
+ "/studios/*": W8,
+ "/creators/*": W8,
+ "/series/*": W8,
+ "/agencies/*": W8
}, K8 = {
- "/performers/*": G8,
- "/studios/*": G8,
- "/creators/*": G8,
- "/series/*": G8,
- "/agencies/*": G8
-}, q8 = {
"/": {
- prefetch: (e, t) => Ore(e, t),
- page: (e) => /* @__PURE__ */ (0, B.jsx)(WA, { ...e })
+ prefetch: (e, t) => kre(e, t),
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(HA, { ...e })
},
"/junk-files": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, B.jsx)(V_e, { ...e })
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(U_e, { ...e })
}
-}, J8 = (e) => Object.hasOwn(q8, e), uWe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, B.jsx)(q_e, { ...e }) : /* @__PURE__ */ (0, B.jsx)(VM, { ...e }), Y8 = {
+}, q8 = (e) => Object.hasOwn(K8, e), fWe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, B.jsx)(Y_e, { ...e }) : /* @__PURE__ */ (0, B.jsx)(BM, { ...e }), J8 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, B.jsx)(ale, { ...e })
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(sle, { ...e })
},
"feed-new": {
- prefetch: (e) => vfe(e),
- page: (e) => /* @__PURE__ */ (0, B.jsx)(dme, { ...e })
+ prefetch: (e) => yfe(e),
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(pme, { ...e })
},
"library-processing": {
- prefetch: (e, t) => rj(t),
- page: (e) => /* @__PURE__ */ (0, B.jsx)(uWe, { ...e })
+ prefetch: (e, t) => tj(t),
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(fWe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, B.jsx)(Wve, { ...e })
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(Kve, { ...e })
}
-}, X8 = (e) => Object.hasOwn(Y8, e), dWe = [
+}, Y8 = (e) => Object.hasOwn(J8, e), pWe = [
"/",
"/unseen",
"/watch-later",
"/flagged",
"/trash",
"/junk-files"
-], fWe = [
- ...Object.keys(z8),
- ...Object.keys(V8),
- ...Object.keys(W8),
- ...Object.keys(K8),
- ...dWe
-], Z8 = (e) => B8(e) || H8(e) || Object.hasOwn(W8, e) || Object.hasOwn(K8, e) || J8(e) || X8(e);
-function Q8(e) {
- return B8(e) ? z8[e] : H8(e) ? V8[e] : J8(e) ? q8[e] : X8(e) ? Y8[e] : Object.hasOwn(W8, e) ? W8[e] : K8[e];
+], mWe = [
+ ...Object.keys(R8),
+ ...Object.keys(B8),
+ ...Object.keys(U8),
+ ...Object.keys(G8),
+ ...pWe
+], X8 = (e) => z8(e) || V8(e) || Object.hasOwn(U8, e) || Object.hasOwn(G8, e) || q8(e) || Y8(e);
+function Z8(e) {
+ return z8(e) ? R8[e] : V8(e) ? B8[e] : q8(e) ? K8[e] : Y8(e) ? J8[e] : Object.hasOwn(U8, e) ? U8[e] : G8[e];
}
-function pWe(e, t, n) {
- return Z8(e) ? Q8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+function hWe(e, t, n) {
+ return X8(e) ? Z8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function mWe(e, t, n, r) {
- return Q8(e).page(t, n, r);
+function gWe(e, t, n, r) {
+ return Z8(e).page(t, n, r);
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/url.js
-var hWe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, gWe = /^[\\/]{2}/;
-function _We(e, t) {
+var _We = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, vWe = /^[\\/]{2}/;
+function yWe(e, t) {
return t + e.replace(/\\/g, "/");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/history.js
-function $8(e, t) {
+function Q8(e, t) {
if (e === !1 || e == null) throw Error(t);
}
-function e5(e, t) {
+function $8(e, t) {
if (!e) {
typeof console < "u" && console.warn(t);
try {
@@ -75489,10 +75556,10 @@ function e5(e, t) {
} catch {}
}
}
-function vWe({ pathname: e = "/", search: t = "", hash: n = "" }) {
+function bWe({ 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 t5(e) {
+function e5(e) {
let t = {};
if (e) {
let n = e.indexOf("#");
@@ -75504,21 +75571,21 @@ function t5(e) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/utils.js
-function yWe(e, t, n = "/") {
- return bWe(e, t, n, !1);
+function xWe(e, t, n = "/") {
+ return SWe(e, t, n, !1);
}
-function bWe(e, t, n, r, i) {
- let a = c5((typeof t == "string" ? t5(t) : t).pathname || "/", n);
+function SWe(e, t, n, r, i) {
+ let a = s5((typeof t == "string" ? e5(t) : t).pathname || "/", n);
if (a == null) return null;
- let o = i ?? xWe(e), s = null, c = PWe(a);
- for (let e = 0; s == null && e < o.length; ++e) s = NWe(o[e], c, r);
+ let o = i ?? CWe(e), s = null, c = IWe(a);
+ for (let e = 0; s == null && e < o.length; ++e) s = FWe(o[e], c, r);
return s;
}
-function xWe(e) {
- let t = n5(e);
- return SWe(t), t;
+function CWe(e) {
+ let t = t5(e);
+ return wWe(t), t;
}
-function n5(e, t = [], n = [], r = "", i = !1) {
+function t5(e, t = [], n = [], r = "", i = !1) {
let a = (e, a, o = i, s) => {
let c = {
relativePath: s === void 0 ? e.path || "" : s,
@@ -75528,14 +75595,14 @@ function n5(e, t = [], n = [], r = "", i = !1) {
};
if (c.relativePath.startsWith("/")) {
if (!c.relativePath.startsWith(r) && o) return;
- $8(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
+ Q8(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
}
- let l = f5([r, c.relativePath]), u = n.concat(c);
- e.children && e.children.length > 0 && ($8(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), n5(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
+ let l = d5([r, c.relativePath]), u = n.concat(c);
+ e.children && e.children.length > 0 && (Q8(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), t5(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
path: l,
- score: jWe(l, e.index),
+ score: NWe(l, e.index),
routesMeta: u.map((e, t) => {
- let [n, r] = s5(e.relativePath, e.caseSensitive, t === u.length - 1);
+ let [n, r] = o5(e.relativePath, e.caseSensitive, t === u.length - 1);
return {
...e,
matcher: n,
@@ -75546,68 +75613,68 @@ function n5(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 r5(e.path)) a(e, t, !0, n);
+ else for (let n of n5(e.path)) a(e, t, !0, n);
}), t;
}
-function r5(e) {
+function n5(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 = r5(r.join("/")), s = [];
+ let o = n5(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 SWe(e) {
- e.sort((e, t) => e.score === t.score ? MWe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
+function wWe(e) {
+ e.sort((e, t) => e.score === t.score ? PWe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
}
-var CWe = /^:[\w-]+$/, wWe = /^:[\w-]+/, TWe = 3.5, EWe = 3, DWe = 2, OWe = 1, kWe = 10, AWe = -2, i5 = (e) => e === "*";
-function jWe(e, t) {
+var TWe = /^:[\w-]+$/, EWe = /^:[\w-]+/, DWe = 3.5, OWe = 3, kWe = 2, AWe = 1, jWe = 10, MWe = -2, r5 = (e) => e === "*";
+function NWe(e, t) {
let n = e.split("/"), r = n.length;
- return n.some(i5) && (r += AWe), t && (r += DWe), n.filter((e) => !i5(e)).reduce((e, t) => e + (CWe.test(t) ? EWe : wWe.test(t) ? TWe : t === "" ? OWe : kWe), r);
+ return n.some(r5) && (r += MWe), t && (r += kWe), n.filter((e) => !r5(e)).reduce((e, t) => e + (TWe.test(t) ? OWe : EWe.test(t) ? DWe : t === "" ? AWe : jWe), r);
}
-function MWe(e, t) {
+function PWe(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 NWe(e, t, n = !1) {
+function FWe(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 ? o5(u, l, s.matcher, s.compiledParams) : a5(u, l), f = s.route;
- if (!d && c && n && !r[r.length - 1].route.index && (d = a5({
+ }, d = s.matcher && s.compiledParams ? a5(u, l, s.matcher, s.compiledParams) : i5(u, l), f = s.route;
+ if (!d && c && n && !r[r.length - 1].route.index && (d = i5({
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: !1
}, l)), !d) return null;
Object.assign(i, d.params), o.push({
params: i,
- pathname: f5([a, d.pathname]),
- pathnameBase: zWe(f5([a, d.pathnameBase])),
+ pathname: d5([a, d.pathname]),
+ pathnameBase: VWe(d5([a, d.pathnameBase])),
route: f
- }), d.pathnameBase !== "/" && (a = f5([a, d.pathnameBase]));
+ }), d.pathnameBase !== "/" && (a = d5([a, d.pathnameBase]));
}
return o;
}
-function a5(e, t) {
+function i5(e, t) {
typeof e == "string" && (e = {
path: e,
caseSensitive: !1,
end: !0
});
- let [n, r] = s5(e.path, e.caseSensitive, e.end);
- return o5(e, t, n, r);
+ let [n, r] = o5(e.path, e.caseSensitive, e.end);
+ return a5(e, t, n, r);
}
-function o5(e, t, n, r) {
+function a5(e, t, n, r) {
let i = t.match(n);
if (!i) return null;
- let a = i[0], o = p5(a, 1), s = i.slice(1);
+ let a = i[0], o = f5(a, 1), s = i.slice(1);
return {
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
if (t === "*") {
let e = s[r] || "";
- o = p5(a.slice(0, a.length - e.length), 1);
+ o = f5(a.slice(0, a.length - e.length), 1);
}
let i = s[r];
return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@ -75617,8 +75684,8 @@ function o5(e, t, n, r) {
pattern: e
};
}
-function s5(e, t = !1, n = !0) {
- e5(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
+function o5(e, t = !1, n = !0) {
+ $8(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
if (r.push({
paramName: t,
@@ -75631,46 +75698,46 @@ function s5(e, t = !1, n = !0) {
}).replace(/\/([\w-]+)\?(?=\/|$|\()/g, "(?:/$1)?");
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
}
-function PWe(e) {
+function IWe(e) {
try {
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
} catch (t) {
- return e5(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
+ return $8(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
}
}
-function c5(e, t) {
+function s5(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 FWe(e, t = "/") {
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? t5(e) : e, a;
- return n ? (n = d5(n), a = n.startsWith("/") || n.startsWith("\\") ? l5(n.substring(1), "/") : l5(n, t)) : a = t, {
+function LWe(e, t = "/") {
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? e5(e) : e, a;
+ return n ? (n = u5(n), a = n.startsWith("/") || n.startsWith("\\") ? c5(n.substring(1), "/") : c5(n, t)) : a = t, {
pathname: a,
- search: BWe(r),
- hash: VWe(i)
+ search: HWe(r),
+ hash: UWe(i)
};
}
-function l5(e, t) {
- let n = p5(t).split("/");
+function c5(e, t) {
+ let n = f5(t).split("/");
return e.split("/").forEach((e) => {
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
}), n.length > 1 ? n.join("/") : "/";
}
-function u5(e, t, n, r) {
+function l5(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 IWe(e) {
+function RWe(e) {
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
}
-function LWe(e) {
- let t = IWe(e);
+function zWe(e) {
+ let t = RWe(e);
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
}
-function RWe(e, t, n, r = !1) {
+function BWe(e, t, n, r = !1) {
let i;
- typeof e == "string" ? i = t5(e) : (i = { ...e }, $8(!i.pathname || !i.pathname.includes("?"), u5("?", "pathname", "search", i)), $8(!i.pathname || !i.pathname.includes("#"), u5("#", "pathname", "hash", i)), $8(!i.search || !i.search.includes("#"), u5("#", "search", "hash", i)));
+ typeof e == "string" ? i = e5(e) : (i = { ...e }, Q8(!i.pathname || !i.pathname.includes("?"), l5("?", "pathname", "search", i)), Q8(!i.pathname || !i.pathname.includes("#"), l5("#", "pathname", "hash", i)), Q8(!i.search || !i.search.includes("#"), l5("#", "search", "hash", i)));
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
if (o == null) s = n;
else {
@@ -75682,16 +75749,16 @@ function RWe(e, t, n, r = !1) {
}
s = e >= 0 ? t[e] : "/";
}
- let c = FWe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
+ let c = LWe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
}
-var d5 = (e) => e.replace(/[\\/]{2,}/g, "/"), f5 = (e) => d5(e.join("/"));
-function p5(e, t = 0) {
+var u5 = (e) => e.replace(/[\\/]{2,}/g, "/"), d5 = (e) => u5(e.join("/"));
+function f5(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 zWe = (e) => p5(e).replace(/^\/*/, "/"), BWe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, VWe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, HWe = class {
+var VWe = (e) => f5(e).replace(/^\/*/, "/"), HWe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, UWe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, WWe = class {
status;
statusText;
data;
@@ -75701,26 +75768,26 @@ var zWe = (e) => p5(e).replace(/^\/*/, "/"), BWe = (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 UWe(e) {
+function GWe(e) {
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
}
-function WWe(e) {
- return f5(e.map((e) => e.route.path).filter(Boolean)) || "/";
+function KWe(e) {
+ return d5(e.map((e) => e.route.path).filter(Boolean)) || "/";
}
-var m5 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
-function GWe(e, t) {
+var p5 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
+function qWe(e, t) {
let n = e;
- if (typeof n != "string" || !hWe.test(n)) return {
+ if (typeof n != "string" || !_We.test(n)) return {
absoluteURL: void 0,
isExternal: !1,
to: n
};
let r = n, i = !1;
- if (m5) try {
- let e = new URL(window.location.href), r = gWe.test(n) ? new URL(_We(n, e.protocol)) : new URL(n), a = c5(r.pathname, t);
+ if (p5) try {
+ let e = new URL(window.location.href), r = vWe.test(n) ? new URL(yWe(n, e.protocol)) : new URL(n), a = s5(r.pathname, t);
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
} catch {
- e5(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
+ $8(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
}
return {
absoluteURL: r,
@@ -75730,45 +75797,45 @@ function GWe(e, t) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/navigation.js
-var h5 = new URL("http://localhost");
-function g5(e) {
+var m5 = new URL("http://localhost");
+function h5(e) {
if (e.createURL) return e.createURL("/");
try {
- return new URL(e.createHref("/"), h5);
+ return new URL(e.createHref("/"), m5);
} catch {
- return h5;
+ return m5;
}
}
-function _5(e, t) {
+function g5(e, t) {
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
}
-function KWe(e, t) {
+function JWe(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 v5(e, t, n, r) {
+function _5(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 && !_5(i, n), s = !_5(a, n);
+ let a = new URL(t, n), o = i != null && !g5(i, n), s = !g5(a, n);
if (r === "reject") {
if (o || s) throw Error("External navigation is not allowed");
- } else if (s && (i == null || !KWe(e, i) || !_5(i, a))) throw Error("External navigation is not allowed");
+ } else if (s && (i == null || !JWe(e, i) || !g5(i, a))) throw Error("External navigation is not allowed");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/router.js
-var y5 = [
+var v5 = [
"POST",
"PUT",
"PATCH",
"DELETE"
];
-new Set(y5);
-var qWe = ["GET", ...y5];
-new Set(qWe);
-var JWe = [
+new Set(v5);
+var YWe = ["GET", ...v5];
+new Set(YWe);
+var XWe = [
"about:",
"blob:",
"chrome:",
@@ -75780,85 +75847,85 @@ var JWe = [
"filesystem:",
"javascript:"
];
-function YWe(e) {
+function ZWe(e) {
try {
- return JWe.includes(new URL(e).protocol);
+ return XWe.includes(new URL(e).protocol);
} catch {
return !1;
}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/context.js
+var y5 = R.createContext(null);
+y5.displayName = "DataRouter";
+var QWe = R.createContext(null);
+QWe.displayName = "DataRouterState";
var b5 = R.createContext(null);
-b5.displayName = "DataRouter";
-var XWe = R.createContext(null);
-XWe.displayName = "DataRouterState";
+b5.displayName = "DataRouterData";
+var $We = R.createContext(null);
+$We.displayName = "DataRouterNavigation";
+var eGe = R.createContext(!1), tGe = R.createContext({ isTransitioning: !1 });
+tGe.displayName = "ViewTransition";
+var nGe = R.createContext(null);
+nGe.displayName = "Fetchers";
+var rGe = R.createContext(null);
+rGe.displayName = "Await";
var x5 = R.createContext(null);
-x5.displayName = "DataRouterData";
-var ZWe = R.createContext(null);
-ZWe.displayName = "DataRouterNavigation";
-var QWe = R.createContext(!1), $We = R.createContext({ isTransitioning: !1 });
-$We.displayName = "ViewTransition";
-var eGe = R.createContext(null);
-eGe.displayName = "Fetchers";
-var tGe = R.createContext(null);
-tGe.displayName = "Await";
+x5.displayName = "Navigation";
var S5 = R.createContext(null);
-S5.displayName = "Navigation";
-var C5 = R.createContext(null);
-C5.displayName = "Location";
-var w5 = R.createContext({
+S5.displayName = "Location";
+var C5 = R.createContext({
outlet: null,
matches: [],
isDataRoute: !1
});
-w5.displayName = "Route";
-var T5 = R.createContext(!1);
-T5.displayName = "IsDataRoute";
-var E5 = R.createContext(void 0);
-E5.displayName = "RouteId";
-var D5 = R.createContext(null);
-D5.displayName = "RouteError";
+C5.displayName = "Route";
+var w5 = R.createContext(!1);
+w5.displayName = "IsDataRoute";
+var T5 = R.createContext(void 0);
+T5.displayName = "RouteId";
+var E5 = R.createContext(null);
+E5.displayName = "RouteError";
//#endregion
//#region node_modules/react-router/dist/production/lib/errors.js
-var O5 = "REACT_ROUTER_ERROR", nGe = "REDIRECT", rGe = "ROUTE_ERROR_RESPONSE";
-function iGe(e) {
- if (e.startsWith(`${O5}:${nGe}:{`)) try {
+var D5 = "REACT_ROUTER_ERROR", iGe = "REDIRECT", aGe = "ROUTE_ERROR_RESPONSE";
+function oGe(e) {
+ if (e.startsWith(`${D5}:${iGe}:{`)) 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 aGe(e) {
- if (e.startsWith(`${O5}:${rGe}:{`)) try {
+function sGe(e) {
+ if (e.startsWith(`${D5}:${aGe}:{`)) try {
let t = JSON.parse(e.slice(40));
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new HWe(t.status, t.statusText, t.data);
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new WWe(t.status, t.statusText, t.data);
} catch {}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/hooks.js
-function k5() {
- return R.useContext(C5) != null;
+function O5() {
+ return R.useContext(S5) != null;
}
-function A5() {
- return $8(k5(), "useLocation() may be used only in the context of a <Router> component."), R.useContext(C5).location;
+function k5() {
+ return Q8(O5(), "useLocation() may be used only in the context of a <Router> component."), R.useContext(S5).location;
}
-var j5 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
-function oGe() {
- return R.useContext(T5) ? vGe() : sGe();
+var A5 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
+function cGe() {
+ return R.useContext(w5) ? yGe() : lGe();
}
-function sGe() {
- $8(k5(), "useNavigate() may be used only in the context of a <Router> component.");
- let e = R.useContext(b5), { basename: t, navigator: n } = R.useContext(S5), { matches: r } = R.useContext(w5), { pathname: i } = A5(), a = JSON.stringify(LWe(r)), o = R.useRef(!1);
+function lGe() {
+ Q8(O5(), "useNavigate() may be used only in the context of a <Router> component.");
+ let e = R.useContext(y5), { basename: t, navigator: n } = R.useContext(x5), { matches: r } = R.useContext(C5), { pathname: i } = k5(), a = JSON.stringify(zWe(r)), o = R.useRef(!1);
return R.useLayoutEffect(() => {
o.current = !0;
}), R.useCallback((r, s = {}) => {
- if (e5(o.current, j5), !o.current) return;
+ if ($8(o.current, A5), !o.current) return;
if (typeof r == "number") {
n.go(r);
return;
}
- let c = RWe(r, JSON.parse(a), i, s.relative === "path");
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : f5([t, c.pathname])), v5(typeof r == "string" ? r : vWe(r), n.createHref(c), g5(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
+ let c = BWe(r, JSON.parse(a), i, s.relative === "path");
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : d5([t, c.pathname])), _5(typeof r == "string" ? r : bWe(r), n.createHref(c), h5(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
}, [
t,
n,
@@ -75868,19 +75935,19 @@ function sGe() {
]);
}
R.createContext(null);
-function cGe(e, t) {
- return M5(e, t);
+function uGe(e, t) {
+ return j5(e, t);
}
-function M5(e, t, n) {
- $8(k5(), "useRoutes() may be used only in the context of a <Router> component.");
- let { navigator: r } = R.useContext(S5), { matches: i } = R.useContext(w5), a = i[i.length - 1], o = a ? a.params : {};
+function j5(e, t, n) {
+ Q8(O5(), "useRoutes() may be used only in the context of a <Router> component.");
+ let { navigator: r } = R.useContext(x5), { matches: i } = R.useContext(C5), a = i[i.length - 1], o = a ? a.params : {};
a && a.pathname;
let s = a ? a.pathnameBase : "/";
a && a.route;
- let c = A5(), l;
+ let c = k5(), l;
if (t) {
- let e = typeof t == "string" ? t5(t) : t;
- $8(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
+ let e = typeof t == "string" ? e5(t) : t;
+ Q8(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
} else l = c;
let u = l.pathname || "/", d = u;
if (s !== "/") {
@@ -75888,13 +75955,13 @@ function M5(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) : yWe(e, { pathname: d });
- let p = mGe(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) : xWe(e, { pathname: d });
+ let p = hGe(f && f.map((e) => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
- pathname: f5([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
- pathnameBase: e.pathnameBase === "/" ? s : f5([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
+ pathname: d5([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
+ pathnameBase: e.pathnameBase === "/" ? s : d5([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
})), i, n);
- return t && p ? /* @__PURE__ */ R.createElement(C5.Provider, { value: {
+ return t && p ? /* @__PURE__ */ R.createElement(S5.Provider, { value: {
location: {
pathname: "/",
search: "",
@@ -75907,14 +75974,14 @@ function M5(e, t, n) {
navigationType: "POP"
} }, p) : p;
}
-function lGe() {
- let e = _Ge(), t = UWe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
+function dGe() {
+ let e = vGe(), t = GWe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
return /* @__PURE__ */ R.createElement(R.Fragment, null, /* @__PURE__ */ R.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ R.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ R.createElement("pre", { style: {
padding: "0.5rem",
backgroundColor: "rgba(200,200,200, 0.5)"
} }, n) : null, null);
}
-var uGe = /* @__PURE__ */ R.createElement(lGe, null), dGe = class extends R.Component {
+var M5 = /* @__PURE__ */ R.createElement(dGe, null), fGe = class extends R.Component {
constructor(e) {
super(e), this.state = {
location: e.location,
@@ -75922,7 +75989,7 @@ var uGe = /* @__PURE__ */ R.createElement(lGe, null), dGe = class extends R.Comp
error: e.error
};
}
- static contextType = QWe;
+ static contextType = eGe;
static getDerivedStateFromError(e) {
return { error: e };
}
@@ -75943,26 +76010,26 @@ var uGe = /* @__PURE__ */ R.createElement(lGe, null), dGe = class extends R.Comp
render() {
let e = this.state.error;
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
- let t = aGe(e.digest);
+ let t = sGe(e.digest);
t && (e = t);
}
- let t = e === void 0 ? this.props.children : /* @__PURE__ */ R.createElement(w5.Provider, { value: this.props.routeContext }, /* @__PURE__ */ R.createElement(T5.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ R.createElement(E5.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ R.createElement(D5.Provider, {
+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ R.createElement(C5.Provider, { value: this.props.routeContext }, /* @__PURE__ */ R.createElement(w5.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ R.createElement(T5.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ R.createElement(E5.Provider, {
value: e,
children: this.props.component
}))));
- return this.context ? /* @__PURE__ */ R.createElement(fGe, { error: e }, t) : t;
+ return this.context ? /* @__PURE__ */ R.createElement(pGe, { error: e }, t) : t;
}
}, N5 = /* @__PURE__ */ new WeakMap();
-function fGe({ children: e, error: t }) {
- let { basename: n, navigator: r } = R.useContext(S5);
+function pGe({ children: e, error: t }) {
+ let { basename: n, navigator: r } = R.useContext(x5);
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
- let e = iGe(t.digest);
+ let e = oGe(t.digest);
if (e) {
let i = N5.get(t);
if (i) throw i;
- let a = GWe(e.location, n), o = a.absoluteURL || a.to;
- if (v5(e.location, o, g5(r), "allow-explicit"), YWe(o)) throw Error("Invalid redirect location");
- if (m5 && !N5.get(t)) {
+ let a = qWe(e.location, n), o = a.absoluteURL || a.to;
+ if (_5(e.location, o, h5(r), "allow-explicit"), ZWe(o)) throw Error("Invalid redirect location");
+ if (p5 && !N5.get(t)) {
if (a.isExternal || e.reloadDocument) window.location.href = o;
else {
let n = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: e.replace }));
@@ -75977,11 +76044,11 @@ function fGe({ children: e, error: t }) {
}
return e;
}
-function pGe({ routeContext: e, match: t, children: n }) {
- let r = R.useContext(b5);
- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ R.createElement(w5.Provider, { value: e }, /* @__PURE__ */ R.createElement(T5.Provider, { value: e.isDataRoute }, /* @__PURE__ */ R.createElement(E5.Provider, { value: t.route.id }, n)));
+function mGe({ routeContext: e, match: t, children: n }) {
+ let r = R.useContext(y5);
+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ R.createElement(C5.Provider, { value: e }, /* @__PURE__ */ R.createElement(w5.Provider, { value: e.isDataRoute }, /* @__PURE__ */ R.createElement(T5.Provider, { value: t.route.id }, n)));
}
-function mGe(e, t = [], n) {
+function hGe(e, t = [], n) {
let r = n?.state;
if (e == null) {
if (!r) return null;
@@ -75992,7 +76059,7 @@ function mGe(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);
- $8(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
+ Q8(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
}
let o = !1, s = -1;
if (n && r) {
@@ -76012,16 +76079,16 @@ function mGe(e, t = [], n) {
c(e, {
location: r.location,
params: r.matches?.[0]?.params ?? {},
- pattern: WWe(r.matches),
+ pattern: KWe(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 || uGe, o && (s < 0 && c === 0 ? (yGe("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 || M5, o && (s < 0 && c === 0 ? (bGe("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__ */ R.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ R.createElement(pGe, {
+ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ R.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ R.createElement(mGe, {
match: n,
routeContext: {
outlet: e,
@@ -76031,7 +76098,7 @@ function mGe(e, t = [], n) {
children: t
});
};
- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ R.createElement(dGe, {
+ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ R.createElement(fGe, {
location: r.location,
revalidation: r.revalidation,
component: f,
@@ -76049,41 +76116,41 @@ function mGe(e, t = [], n) {
function P5(e) {
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
}
-function hGe(e) {
- let t = R.useContext(b5);
- return $8(t, P5(e)), t;
-}
function gGe(e) {
- let t = R.useContext(x5);
- return $8(t, P5(e)), t;
+ let t = R.useContext(y5);
+ return Q8(t, P5(e)), t;
+}
+function _Ge(e) {
+ let t = R.useContext(b5);
+ return Q8(t, P5(e)), t;
}
function F5(e) {
- let t = R.useContext(E5);
- return $8(t, `${e} can only be used on routes that contain a unique "id"`), t;
+ let t = R.useContext(T5);
+ return Q8(t, `${e} can only be used on routes that contain a unique "id"`), t;
}
-function _Ge() {
- let e = R.useContext(D5), t = gGe("useRouteError"), n = F5("useRouteError");
+function vGe() {
+ let e = R.useContext(E5), t = _Ge("useRouteError"), n = F5("useRouteError");
return e === void 0 ? t.errors?.[n] : e;
}
-function vGe() {
- let { router: e } = hGe("useNavigate"), t = F5("useNavigate"), n = R.useRef(!1);
+function yGe() {
+ let { router: e } = gGe("useNavigate"), t = F5("useNavigate"), n = R.useRef(!1);
return R.useLayoutEffect(() => {
n.current = !0;
}), R.useCallback(async (r, i = {}) => {
- e5(n.current, j5), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
+ $8(n.current, A5), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
fromRouteId: t,
...i
}));
}, [e, t]);
}
var I5 = {};
-function yGe(e, t, n) {
- !t && !I5[e] && (I5[e] = !0, e5(!1, n));
+function bGe(e, t, n) {
+ !t && !I5[e] && (I5[e] = !0, $8(!1, n));
}
-R.memo(bGe);
-function bGe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
- let a = R.useContext(b5);
- return $8(a, "You must render this element inside a <DataRouterContext.Provider> element"), M5(e, void 0, {
+R.memo(xGe);
+function xGe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
+ let a = R.useContext(y5);
+ return Q8(a, "You must render this element inside a <DataRouterContext.Provider> element"), j5(e, void 0, {
router: a.router,
manifest: t,
state: n,
@@ -76092,10 +76159,10 @@ function bGe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
});
}
function L5(e) {
- $8(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
+ Q8(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
}
-function xGe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
- $8(!k5(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
+function SGe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
+ Q8(!O5(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
let s = e.replace(/^\/*/, "/"), c = R.useMemo(() => ({
basename: s,
navigator: i,
@@ -76108,9 +76175,9 @@ function xGe({ basename: e = "/", children: t = null, location: n, navigationTyp
a,
o
]);
- typeof n == "string" && (n = t5(n));
+ typeof n == "string" && (n = e5(n));
let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = R.useMemo(() => {
- let e = c5(l, s);
+ let e = s5(l, s);
return e == null ? null : {
location: {
pathname: e,
@@ -76132,13 +76199,13 @@ function xGe({ basename: e = "/", children: t = null, location: n, navigationTyp
r,
m
]);
- return e5(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ R.createElement(S5.Provider, { value: c }, /* @__PURE__ */ R.createElement(C5.Provider, {
+ return $8(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ R.createElement(x5.Provider, { value: c }, /* @__PURE__ */ R.createElement(S5.Provider, {
children: t,
value: h
}));
}
function R5({ children: e, location: t }) {
- return cGe(z5(e), t);
+ return uGe(z5(e), t);
}
R.Component;
function z5(e, t = []) {
@@ -76150,9 +76217,9 @@ function z5(e, t = []) {
n.push.apply(n, z5(e.props.children, i));
return;
}
- $8(e.type === L5, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
+ Q8(e.type === L5, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
let a = e.props;
- $8(!a.index || !a.children, "An index route cannot have child routes.");
+ Q8(!a.index || !a.children, "An index route cannot have child routes.");
let o = {
id: a.id || i.join("-"),
caseSensitive: a.caseSensitive,
@@ -76177,11 +76244,11 @@ function z5(e, t = []) {
//#endregion
//#region src/react/router/router.tsx
var B5 = (0, R.createContext)(0), V5 = (0, R.createContext)(null);
-function SGe({ children: e }) {
+function CGe({ children: e }) {
let [t, n] = (0, R.useState)(() => mt.navigation);
return (0, R.useLayoutEffect)(() => (n(mt.navigation), mt.listen(n)), []), /* @__PURE__ */ (0, B.jsx)(B5.Provider, {
value: t.seq,
- children: /* @__PURE__ */ (0, B.jsx)(xGe, {
+ children: /* @__PURE__ */ (0, B.jsx)(SGe, {
location: t.location,
navigationType: t.action,
navigator: mt,
@@ -76189,44 +76256,44 @@ function SGe({ children: e }) {
})
});
}
-function CGe() {
+function wGe() {
let e = (0, R.useContext)(B5);
return (0, R.useLayoutEffect)(() => {
queueMicrotask(() => ht(e));
}, [e]), null;
}
-function wGe({ target: e }) {
- let t = oGe();
+function TGe({ target: e }) {
+ let t = cGe();
return (0, R.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function TGe(e, t, n) {
+function EGe(e, t, n) {
let r = new URL(e, window.location.href);
- if (!B8(r.pathname)) {
+ if (!z8(r.pathname)) {
t.navigate(e);
return;
}
n(`${r.pathname}${r.search}${r.hash}`);
}
-function EGe() {
+function DGe() {
let e = (0, R.useContext)(V5), [t, n] = (0, R.useState)(pt), r = (0, R.useRef)(null);
(0, R.useLayoutEffect)(() => (n(pt()), ft((e, t) => {
t ? (0, rp.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, R.useMemo)(() => (t) => {
- e && r.current && TGe(t, e, r.current);
+ e && r.current && EGe(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(wGe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, B.jsx)(DGe, {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(TGe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, B.jsx)(OGe, {
entry: t,
- children: /* @__PURE__ */ (0, B.jsx)(OGe, {
+ children: /* @__PURE__ */ (0, B.jsx)(kGe, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var DGe = class extends R.Component {
+var OGe = class extends R.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
@@ -76237,15 +76304,15 @@ var DGe = class extends R.Component {
render() {
return this.state.failed ? null : this.props.children;
}
-}, OGe = (0, R.memo)(function({ entry: e, actions: t, go: n }) {
- return Z8(e.path) ? (0, rp.createPortal)(mWe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, kGe = (0, R.memo)(function({ entry: e, actions: t, go: n }) {
+ return X8(e.path) ? (0, rp.createPortal)(gWe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function kGe({ children: e }) {
- let t = A5(), n = ut(t.state);
+function AGe({ children: e }) {
+ let t = k5(), n = ut(t.state);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)(R5, {
location: n ?? t,
children: [
- fWe.map((e) => /* @__PURE__ */ (0, B.jsx)(L5, {
+ mWe.map((e) => /* @__PURE__ */ (0, B.jsx)(L5, {
path: e,
element: null
}, e)),
@@ -76266,24 +76333,24 @@ function kGe({ children: e }) {
element: null
})] })] });
}
-function AGe({ children: e, actions: t = null }) {
- return /* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(V5.Provider, {
+function jGe({ children: e, actions: t = null }) {
+ return /* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(V5.Provider, {
value: t,
- children: /* @__PURE__ */ (0, B.jsxs)(SGe, { children: [
- /* @__PURE__ */ (0, B.jsx)(CGe, {}),
- /* @__PURE__ */ (0, B.jsx)(EGe, {}),
- /* @__PURE__ */ (0, B.jsx)(kGe, { children: e })
+ children: /* @__PURE__ */ (0, B.jsxs)(CGe, { children: [
+ /* @__PURE__ */ (0, B.jsx)(wGe, {}),
+ /* @__PURE__ */ (0, B.jsx)(DGe, {}),
+ /* @__PURE__ */ (0, B.jsx)(AGe, { children: e })
] })
}) });
}
-var jGe = { onCaughtError: (e) => {
+var MGe = { onCaughtError: (e) => {
globalThis.reportError?.(e);
} }, H5 = null;
-function MGe(e) {
+function NGe(e) {
if (H5) return;
- H5 = (0, ip.createRoot)(document.createElement("div"), jGe);
+ H5 = (0, ip.createRoot)(document.createElement("div"), MGe);
let t = H5;
- (0, rp.flushSync)(() => t.render(/* @__PURE__ */ (0, B.jsx)(AGe, { actions: e })));
+ (0, rp.flushSync)(() => t.render(/* @__PURE__ */ (0, B.jsx)(jGe, { actions: e })));
}
//#endregion
//#region src/number-setting.ts
@@ -76292,35 +76359,35 @@ function U5(e, t, n, r) {
}
//#endregion
//#region src/react/settings/configuration-summary.tsx
-var NGe = (e) => {
+var PGe = (e) => {
let t = e.updates;
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
-function PGe({ openConfiguration: e }) {
- let t = TS({
- queryKey: bR,
- queryFn: ({ signal: e }) => xR(e)
+function FGe({ openConfiguration: e }) {
+ let t = wS({
+ queryKey: yR,
+ queryFn: ({ signal: e }) => bR(e)
}), n = t.data;
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [
- /* @__PURE__ */ (0, B.jsx)(Wk, {
+ children: [n ? /* @__PURE__ */ (0, B.jsxs)(Hk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, B.jsx)(Wk, {
+ /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, B.jsx)(Wk, {
+ /* @__PURE__ */ (0, B.jsx)(Uk, {
term: "更新",
- children: NGe(n)
+ children: PGe(n)
})
- ] }) : /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
+ ] }) : /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "配置读取失败",
children: t.error ? U(t.error) : "未取得配置,请刷新页面重试。"
- }) }), /* @__PURE__ */ (0, B.jsx)(Rk, {
+ }) }), /* @__PURE__ */ (0, B.jsx)(Lk, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
children: /* @__PURE__ */ (0, B.jsx)(J, {
onClick: e,
@@ -76377,7 +76444,7 @@ function K5({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function FGe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function IGe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)({
onStep: a,
onSettle: o
@@ -76412,7 +76479,7 @@ function FGe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
}
//#endregion
//#region src/react/settings-panel/glow-settings.tsx
-var IGe = [
+var LGe = [
[
"strength",
"强度",
@@ -76439,7 +76506,7 @@ var IGe = [
100
]
];
-function LGe({ host: e, spot: t, index: n, glow: r }) {
+function RGe({ host: e, spot: t, index: n, glow: r }) {
let i = h[n], a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)("all");
(0, R.useLayoutEffect)(() => {
let [e, t, n] = [
@@ -76478,7 +76545,7 @@ function LGe({ host: e, spot: t, index: n, glow: r }) {
children: u
})]
}),
- /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-down" })
+ /* @__PURE__ */ (0, B.jsx)(cT, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "popmenu",
@@ -76517,7 +76584,7 @@ function LGe({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function RGe({ host: e }) {
+function zGe({ host: e }) {
let t = e.store.value.homeGlow, n = E(t.preset);
return /* @__PURE__ */ (0, B.jsxs)("section", {
"data-glow-setting": "",
@@ -76536,7 +76603,7 @@ function RGe({ host: e }) {
children: T(t.preset)
})]
}),
- /* @__PURE__ */ (0, B.jsx)(RS, {
+ /* @__PURE__ */ (0, B.jsx)(LS, {
store: e.store,
label: "光晕配色"
}),
@@ -76547,7 +76614,7 @@ function RGe({ host: e }) {
}),
/* @__PURE__ */ (0, B.jsx)("div", {
"data-glow-fields": "",
- children: IGe.map(([r, i, a]) => /* @__PURE__ */ (0, B.jsx)(FGe, {
+ children: LGe.map(([r, i, a]) => /* @__PURE__ */ (0, B.jsx)(IGe, {
field: r,
label: i,
max: a,
@@ -76569,7 +76636,7 @@ function RGe({ host: e }) {
hidden: n,
children: [/* @__PURE__ */ (0, B.jsx)("h4", { children: "颜色" }), /* @__PURE__ */ (0, B.jsx)("div", {
"data-glow-stops": "",
- children: v.map((n, r) => /* @__PURE__ */ (0, B.jsx)(LGe, {
+ children: v.map((n, r) => /* @__PURE__ */ (0, B.jsx)(RGe, {
host: e,
spot: n,
index: r,
@@ -76594,7 +76661,7 @@ function RGe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/number-setting.tsx
-var zGe = {
+var BGe = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -76637,7 +76704,7 @@ var zGe = {
}
}, q5 = (e) => `peach.number.${e}`;
function J5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = zGe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, R.useRef)(0);
+ let a = BGe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, R.useRef)(0);
d.current ||= U5(Number(localStorage.getItem(q5(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, R.useState)(n ?? 0), [m, h] = (0, R.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, R.useState)(""), v = (0, R.useRef)(null), y = (0, R.useRef)(i);
y.current = i, (0, R.useLayoutEffect)(() => {
@@ -76716,7 +76783,7 @@ function J5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
//#endregion
//#region src/react/sidebar/sidebar-order.ts
function Y5(e) {
- let { mutate: t } = Qj();
+ let { mutate: t } = Zj();
return (0, R.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
@@ -76731,8 +76798,8 @@ function X5(e, t, n, r) {
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
-var BGe = "__home__", Z5 = (e) => e === "" ? BGe : e;
-function VGe({ host: e }) {
+var VGe = "__home__", Z5 = (e) => e === "" ? VGe : e;
+function HGe({ host: e }) {
let t = Y5(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, R.useState)(null), [c, l] = (0, R.useState)(!1), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (e, r, i) => {
let a = X5(n, e, r, i);
a && t(a);
@@ -76794,9 +76861,9 @@ function VGe({ host: e }) {
/* @__PURE__ */ (0, B.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, B.jsx)(lT, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, B.jsx)(cT, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, B.jsx)(lT, { name: a ?? "" }),
+ /* @__PURE__ */ (0, B.jsx)(cT, { name: a ?? "" }),
/* @__PURE__ */ (0, B.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, B.jsxs)("span", {
@@ -76810,7 +76877,7 @@ function VGe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, B.jsx)(cT, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -76820,7 +76887,7 @@ function VGe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, B.jsx)(cT, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -76832,7 +76899,7 @@ function VGe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, B.jsx)(lT, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, B.jsx)(cT, { name: "eye-off" })
})
]
})]
@@ -76852,13 +76919,13 @@ function VGe({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- /* @__PURE__ */ (0, B.jsx)(lT, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, B.jsx)(cT, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(lT, { name: "check" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, B.jsx)(cT, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(cT, { name: "check" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -76876,7 +76943,7 @@ function VGe({ host: e }) {
onClick: () => {
s(Z5(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, B.jsx)(lT, { name: n ?? "" }), /* @__PURE__ */ (0, B.jsx)("span", { children: t })]
+ children: [/* @__PURE__ */ (0, B.jsx)(cT, { name: n ?? "" }), /* @__PURE__ */ (0, B.jsx)("span", { children: t })]
}, Z5(e)))
}) : null]
}), /* @__PURE__ */ (0, B.jsx)("button", {
@@ -76902,7 +76969,7 @@ var Q5 = [
["关注", "ri-rss-line"],
["安全", "ri-shield-check-line"],
["这台电脑", "ri-macbook-line"]
-], HGe = [
+], UGe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -76911,16 +76978,16 @@ var Q5 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], UGe = [["desc", "降序"], ["asc", "升序"]], WGe = [
+], WGe = [["desc", "降序"], ["asc", "升序"]], GGe = [
["off", "关闭"],
["precise", "精准"],
["coarse", "粗略"]
-], GGe = [
+], KGe = [
["7", "每周"],
["30", "每月"],
["90", "每季"],
["0", "从不"]
-], KGe = [[
+], qGe = [[
"cover",
"官方封面",
""
@@ -76928,7 +76995,7 @@ var Q5 = [
"thumbnail",
"预览图",
""
-]], qGe = [
+]], JGe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -76953,19 +77020,19 @@ var Q5 = [
"feedHideExcerptDescription",
"把出过的正片剪成十几分钟单卖的,比如ハイライト厂牌。"
]
-], JGe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", $5 = null, e7 = null, t7 = null, n7 = {
+], YGe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", $5 = null, e7 = null, t7 = null, n7 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
machine: "none"
}, r7 = 0, i7 = null;
-function YGe() {
+function XGe() {
return (!e7 || !t7?.isConnected) && (e7?.unmount(), t7 = document.createElement("div"), t7.dataset.settingsHost = "", document.body.append(t7), e7 = (0, ip.createRoot)(t7)), e7;
}
function a7() {
let e = $5;
- e && (0, rp.flushSync)(() => YGe().render(/* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(nKe, {
+ e && (0, rp.flushSync)(() => XGe().render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(rKe, {
host: e,
view: n7
}) })));
@@ -76976,7 +77043,7 @@ function o7(e) {
...e
}, a7();
}
-async function XGe(e) {
+async function ZGe(e) {
if (n7.machine === "summary") return;
let t = await e.configurable();
if (n7.open) {
@@ -76985,16 +77052,16 @@ async function XGe(e) {
return;
}
try {
- await SR(new AbortController().signal);
+ await xR(new AbortController().signal);
} catch {}
n7.open && o7({ machine: "summary" });
}
}
-function ZGe(e = "") {
+function QGe(e = "") {
let t = $5;
if (!t) return;
Ae(), r7 += 1, i7 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let n = Q5.findIndex(([t]) => t === e), r = Oue();
+ let n = Q5.findIndex(([t]) => t === e), r = kue();
o7({
open: !0,
closing: !1,
@@ -77002,7 +77069,7 @@ function ZGe(e = "") {
tab: n >= 0 ? n : n7.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), XGe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), ZGe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
function s7() {
if (!n7.open || n7.closing) return;
@@ -77020,24 +77087,24 @@ function s7() {
}
t7?.querySelector("[data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380);
}
-var QGe = {
- open: ZGe,
+var $Ge = {
+ open: QGe,
close: s7,
isOpen: () => n7.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function $Ge(e) {
- return $5 = e, a7(), QGe;
-}
function eKe(e) {
+ return $5 = e, a7(), $Ge;
+}
+function tKe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(JGe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(YGe)].filter((e) => e.getClientRects().length > 0);
if (!t.length) return;
let n = t[0], r = t[t.length - 1];
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
}
var c7 = (e) => `settings-tab-${e}`, l7 = (e) => e === Q5.length - 1 ? "machineGroup" : `settings-group-${e}`;
-function tKe({ tab: e, epoch: t, onSelect: n }) {
+function nKe({ tab: e, epoch: t, onSelect: n }) {
let r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(e), s = (0, R.useRef)([]), c = (e, t) => {
let n = i.current;
if (!n) return;
@@ -77109,7 +77176,7 @@ function tKe({ tab: e, epoch: t, onSelect: n }) {
onPointerEnter: (e) => {
e.pointerType !== "touch" && c(e.currentTarget, !0);
},
- children: [/* @__PURE__ */ (0, B.jsx)(Lie, { name: r }), t]
+ children: [/* @__PURE__ */ (0, B.jsx)(Rie, { name: r }), t]
}, t))
]
});
@@ -77153,7 +77220,7 @@ var p7 = ({ html: e, ...t }) => /* @__PURE__ */ (0, B.jsx)("small", {
...t,
dangerouslySetInnerHTML: { __html: e }
}), m7 = () => `${Qe("保存中")}<span>正在保存…</span>`, h7 = (e, t) => e instanceof Error && e.message || t;
-function nKe({ host: e, view: t }) {
+function rKe({ host: e, view: t }) {
(0, R.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -77185,7 +77252,7 @@ function nKe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: eKe,
+ onKeyDown: tKe,
onClick: (e) => {
e.target === e.currentTarget && s7();
},
@@ -77210,7 +77277,7 @@ function nKe({ host: e, view: t }) {
})
})]
}),
- /* @__PURE__ */ (0, B.jsx)(tKe, {
+ /* @__PURE__ */ (0, B.jsx)(nKe, {
tab: t.tab,
epoch: d,
onSelect: f
@@ -77272,23 +77339,23 @@ function nKe({ host: e, view: t }) {
n.homeGlow.on = t, p(), e.changed("glow");
}
}),
- /* @__PURE__ */ (0, B.jsx)(RGe, { host: e }),
+ /* @__PURE__ */ (0, B.jsx)(zGe, { host: e }),
/* @__PURE__ */ (0, B.jsxs)("section", {
"data-sidebar-setting": "",
"aria-labelledby": "sidebarOrderTitle",
children: [/* @__PURE__ */ (0, B.jsxs)("span", { children: [/* @__PURE__ */ (0, B.jsx)("b", {
id: "sidebarOrderTitle",
children: "左侧导航"
- }), /* @__PURE__ */ (0, B.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, B.jsx)(VGe, { host: e })]
+ }), /* @__PURE__ */ (0, B.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, B.jsx)(HGe, { host: e })]
})
]
}),
- /* @__PURE__ */ (0, B.jsx)(iKe, {
+ /* @__PURE__ */ (0, B.jsx)(aKe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, B.jsx)(oKe, {
+ /* @__PURE__ */ (0, B.jsx)(sKe, {
host: e,
tab: t.tab,
epoch: d
@@ -77296,12 +77363,12 @@ function nKe({ host: e, view: t }) {
/* @__PURE__ */ (0, B.jsx)(u7, {
index: 3,
tab: t.tab,
- children: /* @__PURE__ */ (0, B.jsx)(cKe, {
+ children: /* @__PURE__ */ (0, B.jsx)(lKe, {
host: e,
epoch: d
})
}),
- /* @__PURE__ */ (0, B.jsx)(lKe, {
+ /* @__PURE__ */ (0, B.jsx)(uKe, {
host: e,
tab: t.tab,
epoch: d
@@ -77321,7 +77388,7 @@ function nKe({ host: e, view: t }) {
/* @__PURE__ */ (0, B.jsx)(u7, {
index: 6,
tab: t.tab,
- children: /* @__PURE__ */ (0, B.jsx)(dKe, {
+ children: /* @__PURE__ */ (0, B.jsx)(fKe, {
host: e,
machine: t.machine
})
@@ -77332,7 +77399,7 @@ function nKe({ host: e, view: t }) {
})
});
}
-function rKe(e, t) {
+function iKe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = Le("arrow-up", "arrow-down", "a", {
@@ -77342,7 +77409,7 @@ function rKe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function iKe({ host: e, tab: t, epoch: n }) {
+function aKe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save(), a = r.defaultSort === "seed", o = r.defaultSortDirection === "asc";
return /* @__PURE__ */ (0, B.jsxs)(u7, {
index: 1,
@@ -77375,7 +77442,7 @@ function iKe({ host: e, tab: t, epoch: n }) {
children: [/* @__PURE__ */ (0, B.jsx)(K5, {
id: "defaultSortSetting",
label: "默认排序",
- options: HGe,
+ options: UGe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
@@ -77384,7 +77451,7 @@ function iKe({ host: e, tab: t, epoch: n }) {
}), /* @__PURE__ */ (0, B.jsx)(K5, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: UGe,
+ options: WGe,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -77393,7 +77460,7 @@ function iKe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => rKe(e, o)
+ decorate: (e) => iKe(e, o)
})]
})
}),
@@ -77417,14 +77484,14 @@ function iKe({ host: e, tab: t, epoch: n }) {
id: "javImageSetting",
name: "jav-image",
legend: "JAV 默认封面",
- options: KGe,
+ options: qGe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
text: !0,
epoch: n,
onChoose: (t) => {
- r.javImage = IC(t), i(), e.changed("javImage");
+ r.javImage = FC(t), i(), e.changed("javImage");
}
})
}),
@@ -77454,7 +77521,7 @@ function iKe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- qGe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, B.jsx)(aKe, {
+ JGe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, B.jsx)(oKe, {
host: e,
id: t,
settingKey: n,
@@ -77466,8 +77533,8 @@ function iKe({ host: e, tab: t, epoch: n }) {
]
});
}
-function aKe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
- let s = Qj(), [c, l] = (0, R.useState)(null), u = (0, R.useRef)(null), d = e.store.value, f = (t) => {
+function oKe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
+ let s = Zj(), [c, l] = (0, R.useState)(null), u = (0, R.useRef)(null), d = e.store.value, f = (t) => {
l(t), Ye(u.current), s.mutate({ [n]: t }, {
onSuccess: (i) => {
d[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@ -77495,7 +77562,7 @@ function aKe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a
})]
});
}
-function oKe({ host: e, tab: t, epoch: n }) {
+function sKe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
return /* @__PURE__ */ (0, B.jsxs)(u7, {
index: 2,
@@ -77549,7 +77616,7 @@ function oKe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, B.jsx)(sKe, { epoch: n }),
+ /* @__PURE__ */ (0, B.jsx)(cKe, { epoch: n }),
/* @__PURE__ */ (0, B.jsx)(f7, {
title: "相关推荐",
description: "详情下方一次显示的相似作品数量。",
@@ -77568,15 +77635,15 @@ function oKe({ host: e, tab: t, epoch: n }) {
]
});
}
-function sKe({ epoch: e }) {
- let t = TS({
- queryKey: Yj,
- queryFn: ({ signal: e }) => Zj(e)
- }), n = Aue(), r = n.reset;
+function cKe({ epoch: e }) {
+ let t = wS({
+ queryKey: Jj,
+ queryFn: ({ signal: e }) => Xj(e)
+ }), n = jue(), r = n.reset;
(0, R.useEffect)(() => {
r();
}, [e, r]);
- let i = t.data?.mode || "off", a = n.isPending ? m7() : t.isFetching ? Be("正在读取状态") : n.isError ? g7(h7(n.error, "保存失败")) : t.isError ? g7(`状态未取得:${h7(t.error, String(t.error))}`) : t.data ? g7(Mue(t.data)) : "读取运行状态…";
+ let i = t.data?.mode || "off", a = n.isPending ? m7() : t.isFetching ? Be("正在读取状态") : n.isError ? g7(h7(n.error, "保存失败")) : t.isError ? g7(`状态未取得:${h7(t.error, String(t.error))}`) : t.data ? g7(Nue(t.data)) : "读取运行状态…";
return /* @__PURE__ */ (0, B.jsx)(f7, {
title: "视频缩略图采集",
description: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, B.jsx)(p7, {
@@ -77587,7 +77654,7 @@ function sKe({ epoch: e }) {
children: /* @__PURE__ */ (0, B.jsx)(K5, {
id: "videoThumbnailSetting",
label: "视频缩略图采集",
- options: WGe,
+ options: GGe,
value: n.isPending || n.isError ? n.variables ?? i : i,
disabled: n.isPending || t.isFetching,
epoch: e,
@@ -77595,8 +77662,8 @@ function sKe({ epoch: e }) {
})
});
}
-function cKe({ host: e, epoch: t }) {
- let n = e.store.value, r = Qj();
+function lKe({ host: e, epoch: t }) {
+ let n = e.store.value, r = Zj();
return /* @__PURE__ */ (0, B.jsx)(f7, {
title: "搜索记录",
description: "保存在 Peach 账本,所有访问端同步。",
@@ -77613,8 +77680,8 @@ function cKe({ host: e, epoch: t }) {
})
});
}
-function lKe({ host: e, tab: t, epoch: n }) {
- let r = e.store.value, i = Qj(), a = Qj(), [o, s] = (0, R.useState)("");
+function uKe({ host: e, tab: t, epoch: n }) {
+ let r = e.store.value, i = Zj(), a = Zj(), [o, s] = (0, R.useState)("");
(0, R.useEffect)(() => {
s("");
}, [n]);
@@ -77649,14 +77716,14 @@ function lKe({ host: e, tab: t, epoch: n }) {
onPick: (e) => c(Number(e))
})
}),
- /* @__PURE__ */ (0, B.jsx)(uKe, { epoch: n }),
+ /* @__PURE__ */ (0, B.jsx)(dKe, { epoch: n }),
/* @__PURE__ */ (0, B.jsx)(f7, {
title: "头像与站点图标刷新",
description: "创作者头像、来源图标和外链圆标保存在本机,到期后下次显示时重新取一次;视频与图片不保存。",
children: /* @__PURE__ */ (0, B.jsx)(K5, {
id: "metadataRefreshSetting",
label: "头像与站点图标刷新",
- options: GGe,
+ options: KGe,
value: String(r.metadataRefreshDays),
epoch: n,
onPick: (t) => {
@@ -77668,15 +77735,15 @@ function lKe({ host: e, tab: t, epoch: n }) {
]
});
}
-function uKe({ epoch: e }) {
- let t = TS({
- queryKey: Jj,
- queryFn: ({ signal: e }) => Xj(e)
- }), n = kue(), r = n.reset;
+function dKe({ epoch: e }) {
+ let t = wS({
+ queryKey: qj,
+ queryFn: ({ signal: e }) => Yj(e)
+ }), n = Aue(), r = n.reset;
(0, R.useEffect)(() => {
r();
}, [e, r]);
- let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? m7() : t.isFetching ? Be("正在读取状态") : n.isError ? g7(h7(n.error, "保存失败")) : t.isError ? g7(`状态未取得:${h7(t.error, String(t.error))}`) : i ? g7(jue(i)) : "读取运行状态…";
+ let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? m7() : t.isFetching ? Be("正在读取状态") : n.isError ? g7(h7(n.error, "保存失败")) : t.isError ? g7(`状态未取得:${h7(t.error, String(t.error))}`) : i ? g7(Mue(i)) : "读取运行状态…";
return /* @__PURE__ */ (0, B.jsx)(f7, {
title: "关注自动更新",
description: /* @__PURE__ */ (0, B.jsx)(p7, {
@@ -77696,12 +77763,12 @@ function uKe({ epoch: e }) {
})
});
}
-function dKe({ host: e, machine: t }) {
+function fKe({ host: e, machine: t }) {
return t === "summary" ? /* @__PURE__ */ (0, B.jsx)("div", {
id: "machineSettings",
children: /* @__PURE__ */ (0, B.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, B.jsx)(PGe, { openConfiguration: () => {
+ children: /* @__PURE__ */ (0, B.jsx)(FGe, { openConfiguration: () => {
s7(), e.openConfiguration();
} })
})
@@ -77715,7 +77782,7 @@ function g7(e) {
}
//#endregion
//#region src/react/sidebar/sidebar-island.tsx
-var _7 = "__home__", fKe = {
+var _7 = "__home__", pKe = {
creator: 26,
tag: 30,
tech: 16
@@ -77728,13 +77795,13 @@ function C7() {
let e = y7;
if (!e || !b7) return;
let t = x7, n = S7;
- (0, rp.flushSync)(() => b7.render(/* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(hKe, {
+ (0, rp.flushSync)(() => b7.render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(gKe, {
host: e,
props: t,
epoch: n
}) })));
}
-var pKe = {
+var mKe = {
render(e) {
x7 = e, C7();
},
@@ -77742,23 +77809,23 @@ var pKe = {
S7 += 1, C7();
}
};
-function mKe(e) {
+function hKe(e) {
return y7 = e, x7 = {
content: null,
filters: {},
latest: null
- }, e.scroll.replaceChildren(), b7 = (0, ip.createRoot)(e.scroll), C7(), e.attached(), pKe;
+ }, e.scroll.replaceChildren(), b7 = (0, ip.createRoot)(e.scroll), C7(), e.attached(), mKe;
}
-function hKe({ host: e, props: t, epoch: n }) {
+function gKe({ host: e, props: t, epoch: n }) {
let r = (0, R.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, B.jsx)(gKe, {
+ /* @__PURE__ */ (0, B.jsx)(_Ke, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, B.jsx)(vKe, {
+ t.content ? /* @__PURE__ */ (0, B.jsx)(yKe, {
host: e,
content: t.content,
filters: t.filters,
@@ -77766,8 +77833,8 @@ function hKe({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function gKe({ host: e, epoch: t, version: n }) {
- let r = Y5(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = hA(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || _7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function _Ke({ host: e, epoch: t, version: n }) {
+ let r = Y5(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = pA(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || _7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, R.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
return [
@@ -77823,7 +77890,7 @@ function gKe({ host: e, epoch: t, version: n }) {
"data-sidebar-home-logo": "",
src: "/peach-logo.png",
alt: ""
- }) : /* @__PURE__ */ (0, B.jsx)(lT, { name: r }), /* @__PURE__ */ (0, B.jsx)("span", { children: n })]
+ }) : /* @__PURE__ */ (0, B.jsx)(cT, { name: r }), /* @__PURE__ */ (0, B.jsx)("span", { children: n })]
}, t || _7))
}), v ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)("span", {
"data-sidebar-glide": "",
@@ -77832,7 +77899,7 @@ function gKe({ host: e, epoch: t, version: n }) {
}), v) : null] });
}
var w7 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function _Ke(e) {
+function vKe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -77845,7 +77912,7 @@ function _Ke(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function vKe({ host: e, content: t, filters: n, latest: r }) {
+function yKe({ host: e, content: t, filters: n, latest: r }) {
let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}`;
(0, R.useLayoutEffect)(() => {
t.kind === "catalog" && Ue(e.scroll, "drawer");
@@ -77854,8 +77921,8 @@ function vKe({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? yKe(e, t.facets, n, r, i) : [bKe(e, t.tags, new Set(t.selected))], o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, B.jsx)(xKe, {
+ let a = t.kind === "catalog" ? bKe(e, t.facets, n, r, i) : [xKe(e, t.tags, new Set(t.selected))], o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, B.jsx)(SKe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -77864,8 +77931,8 @@ function vKe({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function yKe(e, t, n, r, i) {
- let a = _Ke(r), o = (t, r, i) => {
+function bKe(e, t, n, r, i) {
+ let a = vKe(r), o = (t, r, i) => {
if (!t.length) return null;
let o = w7(n, r);
return /* @__PURE__ */ (0, B.jsx)(D7, {
@@ -77890,12 +77957,12 @@ function yKe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, B.jsx)(CKe, {
+ body: /* @__PURE__ */ (0, B.jsx)(wKe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: fKe[d],
+ limit: pKe[d],
filterKey: l,
selected: f,
counts: a,
@@ -77910,7 +77977,7 @@ function yKe(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, B.jsx)(wKe, {
+ body: /* @__PURE__ */ (0, B.jsx)(TKe, {
host: e,
filters: n
})
@@ -77933,7 +78000,7 @@ function yKe(e, t, n, r, i) {
} : null
];
}
-function bKe(e, t, n) {
+function xKe(e, t, n) {
return t.length ? {
title: "内容标签",
kind: "online",
@@ -77953,7 +78020,7 @@ function T7(e, t) {
} catch {}
return n === null ? t : n === "open";
}
-function xKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+function SKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
let o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)(() => T7(e, n)), u = (0, R.useRef)(!1);
(0, R.useLayoutEffect)(() => {
let t = o.current, r = s.current;
@@ -77979,7 +78046,7 @@ function xKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-right" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, B.jsx)(cT, { name: "chevron-right" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, B.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -78000,8 +78067,8 @@ function xKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
});
}
var E7 = (0, R.createContext)(() => {});
-function SKe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, B.jsx)(lT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, B.jsx)("img", {
+function CKe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, B.jsx)(cT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, B.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
@@ -78024,7 +78091,7 @@ function D7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }
title: e.offline,
onClick: () => a.toggleChip(t, e.value, n),
children: [
- /* @__PURE__ */ (0, B.jsx)(SKe, { dot: e.dot }),
+ /* @__PURE__ */ (0, B.jsx)(CKe, { dot: e.dot }),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -78039,7 +78106,7 @@ function D7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }
})
});
}
-function CKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+function wKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
let u = (0, R.useContext)(E7), [d, f] = (0, R.useState)(null), [p, m] = (0, R.useState)(e);
p !== e && (m(e), f(null));
let h = (0, R.useRef)(null), g = (0, R.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
@@ -78080,7 +78147,7 @@ function CKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, B.jsx)(cT, { name: "chevron-down" })
}) : null] });
}
function O7({ rows: e, host: t, selected: n, badges: r }) {
@@ -78105,7 +78172,7 @@ function O7({ rows: e, host: t, selected: n, badges: r }) {
});
}
var k7 = (e, t) => e ? Math.min(v7, Number(e) / 60) : t;
-function wKe({ host: e, filters: t }) {
+function TKe({ host: e, filters: t }) {
let n = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [r, i] = (0, R.useState)(n), [a, o] = (0, R.useState)(() => [k7(t.dur_min, 0), k7(t.dur_max, v7)]), [s, c] = (0, R.useState)("max");
r !== n && (i(n), o([k7(t.dur_min, 0), k7(t.dur_max, v7)]));
let [l, u] = a, d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(a);
@@ -78175,17 +78242,17 @@ function wKe({ host: e, filters: t }) {
}
//#endregion
//#region src/board-skeleton.ts
-var A7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, TKe = () => `${A7("80%")}${A7("48%")}`, EKe = (e, t) => e.repeat(t);
-function DKe() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${A7("85%")}${A7("65%")}${EKe(TKe(), 4)}</div></aside></div>`;
+var A7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, EKe = () => `${A7("80%")}${A7("48%")}`, DKe = (e, t) => e.repeat(t);
+function OKe() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${A7("85%")}${A7("65%")}${DKe(EKe(), 4)}</div></aside></div>`;
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var j7 = (e) => ["follow-item", e], OKe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, kKe = "/api/follow/save", AKe = "/api/follow/media/hide";
+var j7 = (e) => ["follow-item", e], kKe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, AKe = "/api/follow/save", jKe = "/api/follow/media/hide";
async function M7(e, t) {
- let n = await W(OKe(e), t);
+ let n = await W(kKe(e), t);
for (let t of n.groups || []) {
- let r = FF(t).find((t) => t.id === e);
+ let r = PF(t).find((t) => t.id === e);
if (r) return {
item: r,
group: t,
@@ -78195,10 +78262,10 @@ async function M7(e, t) {
}
throw Error("这条关注内容已不存在");
}
-async function jKe(e, t) {
- let n = j7(e.id), r = Zme(e.id), i = p.getQueryData(jF) ? null : p.fetchQuery({
- queryKey: jF,
- queryFn: () => MF(t)
+async function MKe(e, t) {
+ let n = j7(e.id), r = $me(e.id), i = p.getQueryData(AF) ? null : p.fetchQuery({
+ queryKey: AF,
+ queryFn: () => jF(t)
});
r ? p.setQueryData(n, {
...r,
@@ -78208,8 +78275,8 @@ async function jKe(e, t) {
queryFn: () => M7(e.id, t)
}), await i;
}
-function MKe(e, t, n, r) {
- let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && BF(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
+function NKe(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 && zF(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,
@@ -78223,32 +78290,32 @@ function MKe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var NKe = (e) => FF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), PKe = {
+var PKe = (e) => PF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), FKe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, FKe = {
+}, IKe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function IKe(e) {
+function LKe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return PKe[t] || t;
+ return FKe[t] || t;
} catch {
return "外部文件页";
}
}
function N7(e, t) {
- return FKe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+ return IKe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function LKe(e, t, n = "") {
+function RKe(e, t, n = "") {
let r = n;
!r && e.is_release && (r = t.variant_label || t.variant_kind || ""), r ||= t.variant_kind === "wip" ? "WIP" : t.variant_label || t.variant_kind || "视频";
let i = e.is_release ? t.summary || (t.has_media ? "(仅附件)" : "(无正文)") : t.title;
@@ -78257,16 +78324,16 @@ function LKe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var RKe = (e) => String(e.name || "").trim(), P7 = (e, t) => e.tag_types?.[t] || "unknown", zKe = /* @__PURE__ */ new Set([
+var zKe = (e) => String(e.name || "").trim(), P7 = (e, t) => e.tag_types?.[t] || "unknown", BKe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function BKe(e, t) {
+function VKe(e, t) {
let n = P7(e, t);
- return `r34-${zKe.has(n) ? n : "general"}`;
+ return `r34-${BKe.has(n) ? n : "general"}`;
}
var F7 = [
"copyright",
@@ -78275,23 +78342,23 @@ var F7 = [
"general",
"metadata"
];
-function VKe(e, t) {
+function HKe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
let n = F7.indexOf(P7(e, t));
return n < 0 ? F7.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function HKe(e, t) {
+function UKe(e, t) {
let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);
return !r.length && n && r.push(n), r;
}
-var UKe = (e, t) => ({
+var WKe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
}), I7 = (e) => e?.size ? { size: e.size } : {};
-function WKe(e, t) {
+function GKe(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t, r) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
@@ -78318,7 +78385,7 @@ function WKe(e, t) {
total: 1
}] : [];
}
-var GKe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
+var KKe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
//#endregion
//#region src/react/components/mix-queue.tsx
function L7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
@@ -78372,29 +78439,29 @@ function R7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var KKe = ({ label: e, count: t }) => /* @__PURE__ */ (0, B.jsxs)("h3", {
+var qKe = ({ label: e, count: t }) => /* @__PURE__ */ (0, B.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
" ",
/* @__PURE__ */ (0, B.jsx)("span", { children: t })
]
-}), z7 = (e) => Number(e) > 0, qKe = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("span", {
+}), z7 = (e) => Number(e) > 0, JKe = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: L(e) }
}), B7 = L("external-link", "externalmark");
-function JKe(e) {
- let { id: t, actions: n } = e, r = TS({
+function YKe(e) {
+ let { id: t, actions: n } = e, r = wS({
queryKey: j7(t),
queryFn: ({ signal: e }) => M7(t, e)
- }), i = TS({
- queryKey: jF,
- queryFn: ({ signal: e }) => MF(e)
+ }), i = wS({
+ queryKey: AF,
+ queryFn: ({ signal: e }) => jF(e)
}), a = (0, R.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, R.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, B.jsx)(YKe, {
+ return r.data ? /* @__PURE__ */ (0, B.jsx)(XKe, {
...e,
data: r.data,
- context: UKe(r.data, a),
+ context: WKe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, B.jsx)("div", {
@@ -78405,7 +78472,7 @@ function JKe(e) {
"data-follow-detail-media": "none",
children: [/* @__PURE__ */ (0, B.jsx)(V7, { onClose: n.close }), /* @__PURE__ */ (0, B.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? /* @__PURE__ */ (0, B.jsx)(PA, {
+ children: r.isError ? /* @__PURE__ */ (0, B.jsx)(MA, {
message: Te(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -78422,8 +78489,8 @@ var V7 = ({ onClose: e }) => /* @__PURE__ */ (0, B.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: L("x") }
});
-function YKe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
- let { item: s, group: c } = e, l = MKe(s, c, n, i), u = $Ke(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, R.useState)({
+function XKe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
+ let { item: s, group: c } = e, l = NKe(s, c, n, i), u = eqe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, R.useState)({
key: "",
kind: ""
}), m = {
@@ -78443,7 +78510,7 @@ function YKe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
s,
l.kind
]);
- let h = !l.embedded.length && l.collection ? NKe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, B.jsx)(G7, {
+ let h = !l.embedded.length && l.collection ? PKe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, B.jsx)(G7, {
item: s,
current: l.selected.index,
helpers: a,
@@ -78456,7 +78523,7 @@ function YKe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
actions: o,
onMedia: r,
currentId: s.id
- }) : /* @__PURE__ */ (0, B.jsx)(ZKe, {
+ }) : /* @__PURE__ */ (0, B.jsx)(QKe, {
group: l.collection,
itemId: s.id,
helpers: a,
@@ -78467,7 +78534,7 @@ function YKe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
"data-with-queue": g ? "" : void 0,
"data-follow-detail": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(XKe, {
+ /* @__PURE__ */ (0, B.jsx)(ZKe, {
item: s,
media: l,
helpers: a,
@@ -78476,7 +78543,7 @@ function YKe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
issues: m
}, d),
g,
- /* @__PURE__ */ (0, B.jsx)(QKe, {
+ /* @__PURE__ */ (0, B.jsx)($Ke, {
item: s,
data: e,
context: t,
@@ -78489,8 +78556,8 @@ function YKe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
]
});
}
-function XKe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
- let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, R.useRef)(null), [p, m] = (0, R.useState)(null), h = WKe(e, t), g = o?.thumb_url || e.thumb_url || "", _ = e.playable && a === "video", v = e.playable && a === "image" ? s : e.thumb_url || "", y = e.playable && a === "image" && g && g !== s ? g : "", [b, x] = (0, R.useState)(v), S = (0, R.useRef)({
+function ZKe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, R.useRef)(null), [p, m] = (0, R.useState)(null), h = GKe(e, t), g = o?.thumb_url || e.thumb_url || "", _ = e.playable && a === "video", v = e.playable && a === "image" ? s : e.thumb_url || "", y = e.playable && a === "image" && g && g !== s ? g : "", [b, x] = (0, R.useState)(v), S = (0, R.useRef)({
item: e,
selected: o
}), C = (0, R.useRef)(i.failed);
@@ -78539,7 +78606,7 @@ function XKe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, B.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: KF(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: GF(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, B.jsx)("span", { children: "没有可用预览" })]
}),
u ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
@@ -78597,8 +78664,8 @@ function W7(e) {
t && e.wireDrag(t);
}, [e]);
}
-function ZKe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = BF(e), a = W7(n);
+function QKe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = zF(e), a = W7(n);
return /* @__PURE__ */ (0, B.jsx)(L7, {
kind: "collection",
"data-follow-queue": "",
@@ -78607,7 +78674,7 @@ function ZKe({ group: e, itemId: t, helpers: n, actions: r }) {
listRef: a,
summary: `${e.primary.title || "未命名合集"} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = LKe(e, n, i ? n.provider_label : ""), o = i ? KF(n.provider, n.provider_label) : "";
+ let i = e.duplicates.includes(n), a = RKe(e, n, i ? n.provider_label : ""), o = i ? GF(n.provider, n.provider_label) : "";
return /* @__PURE__ */ (0, B.jsxs)(R7, {
current: n.id === t,
"data-follow-queue-item": n.id,
@@ -78630,7 +78697,7 @@ function ZKe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, B.jsx)("time", {
dateTime: n.published_at || "",
- children: $F(n)
+ children: QF(n)
})]
})]
}, n.id);
@@ -78655,7 +78722,7 @@ function G7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
onClose: i.close,
listRef: s,
summary: `${e.title || "未命名内容"} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, B.jsx)(KKe, {
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, B.jsx)(qKe, {
label: n.label,
count: n.items.length
}, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, B.jsxs)(R7, {
@@ -78667,7 +78734,7 @@ function G7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
pic: n.thumb_url ? /* @__PURE__ */ (0, B.jsx)(U7, { src: n.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(H7, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, B.jsx)("b", {
"data-middle-truncate": "",
- children: RKe(n)
+ children: zKe(n)
}), /* @__PURE__ */ (0, B.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -78675,13 +78742,13 @@ function G7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function QKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function $Ke({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
let { kind: c, selected: l, src: u } = r, d = {
primary: e,
variants: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, f = ZF(d, e), p = YF(e, HKe(e, t.sources), n), m = p.credited ? "" : e.author && be(e.author) !== be(p.author) ? e.author : "", h = QF(e, n), g = VKe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
+ }, f = XF(d, e), p = JF(e, UKe(e, t.sources), n), m = p.credited ? "" : e.author && be(e.author) !== be(p.author) ? e.author : "", h = ZF(e, n), g = HKe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -78697,7 +78764,7 @@ function QKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
- dangerouslySetInnerHTML: { __html: XF(d, e) + ge(e.title) }
+ dangerouslySetInnerHTML: { __html: YF(d, e) + ge(e.title) }
}), e.url ? /* @__PURE__ */ (0, B.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -78724,7 +78791,7 @@ function QKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, B.jsx)("span", { children: $F(e) }),
+ /* @__PURE__ */ (0, B.jsx)("span", { children: QF(e) }),
z7(e.duration) ? /* @__PURE__ */ (0, B.jsx)("span", { children: ve(e.duration) }) : null,
f ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-badges": "",
@@ -78758,7 +78825,7 @@ function QKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [IKe(e), /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [LKe(e), /* @__PURE__ */ (0, B.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: B7 }
})]
@@ -78867,7 +78934,7 @@ function QKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...y(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, B.jsx)(U7, { src: e.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(qKe, { name: "image-off" }), /* @__PURE__ */ (0, B.jsx)("i", { dangerouslySetInnerHTML: { __html: L("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, B.jsx)(U7, { src: e.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(JKe, { name: "image-off" }), /* @__PURE__ */ (0, B.jsx)("i", { dangerouslySetInnerHTML: { __html: L("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -78881,7 +78948,7 @@ function QKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-follow-detail-tags": "",
children: g.map((t) => /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
- "data-tag-cat": BKe(e, t),
+ "data-tag-cat": VKe(e, t),
"data-follow-tag": t,
onClick: () => s.openTag(t),
children: o.tagLabel(t)
@@ -78891,7 +78958,7 @@ function QKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function $Ke(e, t, n) {
+function eqe(e, t, n) {
let r = e.id, i = j7(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
@@ -78902,17 +78969,17 @@ function $Ke(e, t, n) {
...t.item,
status: e
}
- }), $me(r, e);
+ }), the(r, e);
}, d = (e) => {
c(Te(e) || "操作失败"), t.failure("更新关注状态", e);
- }, f = OS({
- mutationFn: ({ to: e }) => G(GP, {
+ }, f = DS({
+ mutationFn: ({ to: e }) => G(WP, {
item: r,
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && xL(), t.toast(GKe(n), { undo: i === "saved" ? void 0 : async () => {
- await G(GP, {
+ u(n), c(""), n === "ignored" && bL(), t.toast(KKe(n), { undo: i === "saved" ? void 0 : async () => {
+ await G(WP, {
item: r,
to: i
}), u(i);
@@ -78920,16 +78987,16 @@ function $Ke(e, t, n) {
},
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
- }), m = OS({
- mutationFn: () => G(kKe, { item: r }),
+ }), m = DS({
+ mutationFn: () => G(AKe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到账本");
},
onError: d,
onSettled: () => l("save", !1)
- }), h = OS({
+ }), h = DS({
mutationFn: async ({ index: e, hidden: t }) => {
- await G(AKe, {
+ await G(jKe, {
item: r,
media: e,
hidden: t
@@ -78940,17 +79007,17 @@ function $Ke(e, t, n) {
},
onSuccess: (e, { hidden: r, next: a }) => {
let o = p.getQueryData(i);
- o && Qme(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
+ o && ehe(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
},
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
- }), g = TS({
- queryKey: n_e(r),
- queryFn: ({ signal: e }) => a_e(r, e)
- }).data?.want ?? null, _ = OS({
- mutationFn: async (e) => (e ? await bL([e.id]) : await yL({ follow: r }), !e),
+ }), g = wS({
+ queryKey: i_e(r),
+ queryFn: ({ signal: e }) => s_e(r, e)
+ }).data?.want ?? null, _ = DS({
+ mutationFn: async (e) => (e ? await yL([e.id]) : await vL({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), xL();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), bL();
},
onError: d,
onSettled: () => l("want", !1)
@@ -78990,19 +79057,19 @@ function $Ke(e, t, n) {
}
//#endregion
//#region src/react/components/overlay-host.ts
-function eqe(e) {
+function tqe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;
}
-function tqe(e) {
+function nqe(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return eqe(n ?? t.body);
+ return tqe(n ?? t.body);
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var nqe = "/api/cover-crop", rqe = (e, t) => G(nqe, {
+var rqe = "/api/cover-crop", iqe = (e, t) => G(rqe, {
code: e,
box: t
});
@@ -79021,7 +79088,7 @@ function K7({ className: e }) {
children: /* @__PURE__ */ (0, B.jsx)("use", { href: "#i-crop" })
});
}
-function iqe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function aqe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("button", {
ref: o,
@@ -79033,14 +79100,14 @@ function iqe({ code: e, coverUrl: t, box: n, onSaved: r }) {
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: /* @__PURE__ */ (0, B.jsx)(K7, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, B.jsx)(ry, {
- getContainer: () => tqe(o.current),
+ }), /* @__PURE__ */ (0, B.jsx)(iy, {
+ getContainer: () => nqe(o.current),
children: /* @__PURE__ */ (0, B.jsx)(rP, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, B.jsx)(aqe, {
+ children: /* @__PURE__ */ (0, B.jsx)(oqe, {
code: e,
coverUrl: t,
box: n,
@@ -79050,9 +79117,9 @@ function iqe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function aqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(null), [l, u] = (0, R.useState)(!0), d = FM(), f = OS({
- mutationFn: (t) => rqe(e, t),
+function oqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(null), [l, u] = (0, R.useState)(!0), d = PM(), f = DS({
+ mutationFn: (t) => iqe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -79064,7 +79131,7 @@ function aqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : rpe(e, LC);
+ } : ipe(e, IC);
c($N(t, e, null));
}
let m = f.isPending;
@@ -79076,7 +79143,7 @@ function aqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(rD, {
+ /* @__PURE__ */ (0, B.jsx)(nD, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -79091,8 +79158,8 @@ function aqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsx)(LM, {
- icon: bT,
+ /* @__PURE__ */ (0, B.jsx)(IM, {
+ icon: yT,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -79104,7 +79171,7 @@ function aqe({ 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, B.jsx)(oP, {
src: t,
- aspect: l ? LC : null,
+ aspect: l ? IC : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
@@ -79116,10 +79183,10 @@ function aqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, B.jsx)(aL, {
+ children: [/* @__PURE__ */ (0, B.jsx)(iL, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c($N(s, a, LC));
+ u(e), e && s && a && c($N(s, a, IC));
},
children: /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -79155,14 +79222,14 @@ var q7 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
});
-function oqe(e) {
- let { queue: t, actions: n } = e, r = TS({
- queryKey: t ? WC(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => $C(t, e.helpers, n),
+function sqe(e) {
+ let { queue: t, actions: n } = e, r = wS({
+ queryKey: t ? UC(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => QC(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? nw(i, e.id) : t ? null : e.id, o = TS({
- queryKey: UC(a ?? 0),
- queryFn: ({ signal: e }) => QC(a, e),
+ }), i = t && r.data || null, a = i ? tw(i, e.id) : t ? null : e.id, o = wS({
+ queryKey: HC(a ?? 0),
+ queryFn: ({ signal: e }) => ZC(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -79175,7 +79242,7 @@ function oqe(e) {
"data-item-media": "none",
children: [/* @__PURE__ */ (0, B.jsx)(Y7, { onClose: n.close }), /* @__PURE__ */ (0, B.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, B.jsx)(PA, {
+ children: e ? /* @__PURE__ */ (0, B.jsx)(MA, {
message: Te(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -79185,9 +79252,9 @@ function oqe(e) {
})
});
}
- return /* @__PURE__ */ (0, B.jsx)(sqe, {
+ return /* @__PURE__ */ (0, B.jsx)(cqe, {
...e,
- item: Rre(o.data, i),
+ item: zre(o.data, i),
queue: i
}, o.data.id);
}
@@ -79200,36 +79267,36 @@ var Y7 = ({ onClose: e }) => /* @__PURE__ */ (0, B.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: L("x") }
});
-function sqe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = Cqe(t, r, i.tagLabel), o = (0, R.useRef)(t);
+function cqe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = wqe(t, r, i.tagLabel), o = (0, R.useRef)(t);
(0, R.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, R.useEffect)(() => {
- n?.kind === "playlist" && G(GC, {
+ n?.kind === "playlist" && G(WC, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = Qre(t, i.sourceOffline(t.location || ""));
+ let s = $re(t, i.sourceOffline(t.location || ""));
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(cqe, {
+ /* @__PURE__ */ (0, B.jsx)(lqe, {
item: t,
gate: s,
helpers: i,
actions: r
}),
- n ? /* @__PURE__ */ (0, B.jsx)(uqe, {
+ n ? /* @__PURE__ */ (0, B.jsx)(dqe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- /* @__PURE__ */ (0, B.jsx)(pqe, {
+ /* @__PURE__ */ (0, B.jsx)(mqe, {
item: t,
queue: n,
write: a,
@@ -79237,9 +79304,9 @@ function sqe(e) {
actions: r
})
]
- }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, B.jsx)(Sqe, { ...e }) : null] });
+ }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, B.jsx)(Cqe, { ...e }) : null] });
}
-function cqe({ item: e, gate: t, helpers: n, actions: r }) {
+function lqe({ item: e, gate: t, helpers: n, actions: r }) {
let [i, a] = (0, R.useState)(t ? "" : "auto"), o = (0, R.useRef)(null), s = (0, R.useRef)(e);
(0, R.useLayoutEffect)(() => {
let e = o.current;
@@ -79250,7 +79317,7 @@ function cqe({ item: e, gate: t, helpers: n, actions: r }) {
ref: o,
"data-stage-media": "",
"data-item-media": t || "video",
- children: [/* @__PURE__ */ (0, B.jsx)(Y7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, B.jsx)(lqe, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Y7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, B.jsx)(uqe, {
item: e,
badge: c,
helpers: n,
@@ -79279,7 +79346,7 @@ function cqe({ item: e, gate: t, helpers: n, actions: r }) {
}) : null]
});
}
-function lqe({ item: e, badge: t, helpers: n, actions: r }) {
+function uqe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, R.useState)(!1), [o, s] = (0, R.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -79304,8 +79371,8 @@ function lqe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function uqe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Jre(e), a = (0, R.useRef)(null), o = fqe(e, t, r), s = (0, R.useRef)(o);
+function dqe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = Yre(e), a = (0, R.useRef)(null), o = pqe(e, t, r), s = (0, R.useRef)(o);
s.current = o;
let c = (0, R.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -79313,7 +79380,7 @@ function uqe({ queue: e, itemId: t, helpers: n, actions: r }) {
attribute: "data-queue-row",
onMove: (e, t, n) => s.current.move(+e, +t, n)
}));
- }, [n, e.kind]), l = dqe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, B.jsx)("button", {
+ }, [n, e.kind]), l = fqe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -79341,10 +79408,10 @@ function uqe({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: c,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, B.jsx)("i", {
- className: `javedition ${Kre[i.edition_label] || "censored"}`,
+ className: `javedition ${qre[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && tw(i);
+ }) : null, s = e.kind === "playlist" && ew(i);
return /* @__PURE__ */ (0, B.jsxs)(R7, {
current: i.id === t,
"data-queue-item": i.id,
@@ -79384,14 +79451,14 @@ function uqe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, B.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? uw(i.part_label) : re(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? lw(i.part_label) : re(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function dqe(e, t) {
- let n = OS({ mutationFn: (t) => G(GC, {
+function fqe(e, t) {
+ let n = DS({ mutationFn: (t) => G(WC, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -79404,14 +79471,14 @@ function dqe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function fqe(e, t, n) {
- let r = WC({
+function pqe(e, t, n) {
+ let r = UC({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (p.setQueryData(r, ew(e)), e), a = (t) => G(GC, {
+ }), i = (e) => (p.setQueryData(r, $C(e)), e), a = (t) => G(WC, {
id: e.playlistId,
...t
- }).then((e) => e.playlist), o = OS({
+ }).then((e) => e.playlist), o = DS({
mutationFn: (e) => a({
action: "reorder",
asset_ids: e
@@ -79424,8 +79491,8 @@ function fqe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = Xre(s, t, r, c);
- if (Zre(l, s)) return;
+ let l = Zre(s, t, r, c);
+ if (Qre(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -79471,7 +79538,7 @@ function fqe(e, t, n) {
}
};
}
-function pqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function mqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-stage-side": "",
@@ -79479,7 +79546,7 @@ function pqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, B.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(mqe, {
+ /* @__PURE__ */ (0, B.jsx)(hqe, {
item: e,
queue: t,
helpers: r,
@@ -79491,7 +79558,7 @@ function pqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, B.jsx)(gqe, {
+ /* @__PURE__ */ (0, B.jsx)(_qe, {
item: e,
write: n
}),
@@ -79526,18 +79593,18 @@ function pqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsx)(_qe, {
+ /* @__PURE__ */ (0, B.jsx)(vqe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, B.jsx)(vqe, {
+ /* @__PURE__ */ (0, B.jsx)(yqe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, B.jsx)(bqe, { item: e }),
+ /* @__PURE__ */ (0, B.jsx)(xqe, { item: e }),
/* @__PURE__ */ (0, B.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -79618,14 +79685,6 @@ function pqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
onClick: n.quality,
children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "sparkles" })
}),
- /* @__PURE__ */ (0, B.jsx)("button", {
- type: "button",
- "data-fb": "cloud-download",
- "aria-label": "云下载",
- title: "云下载 · 贴磁力交给 115 或 PikPak 离线下载",
- onClick: () => i.cloudDownload(e),
- children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "cloud-download" })
- }),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-kind": "dispose",
@@ -79639,7 +79698,7 @@ function pqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
]
}),
- /* @__PURE__ */ (0, B.jsx)(xqe, {
+ /* @__PURE__ */ (0, B.jsx)(Sqe, {
item: e,
open: s,
write: n
@@ -79663,7 +79722,7 @@ function pqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function mqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+function hqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
let a = (0, R.useRef)(null), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(!1);
(0, R.useLayoutEffect)(() => {
let e = a.current;
@@ -79673,7 +79732,7 @@ function mqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
}, n = new ResizeObserver(t);
return n.observe(e), t(), () => n.disconnect();
}, []);
- let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Yre(e, t);
+ let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Xre(e, t);
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -79704,19 +79763,19 @@ function mqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
}),
e.has_cover && e.code ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, B.jsx)(iqe, {
+ children: /* @__PURE__ */ (0, B.jsx)(aqe, {
code: e.code,
coverUrl: M(e),
box: e.poster_box || null,
onSaved: (t) => {
p.invalidateQueries({
- queryKey: UC(e.id),
+ queryKey: HC(e.id),
exact: !0
- }), HC((t) => t.code === e.code, { poster_box: t });
+ }), VC((t) => t.code === e.code, { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, B.jsx)(hqe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, B.jsx)(gqe, {
id: e.id,
actions: r,
onStatus: i
@@ -79726,7 +79785,7 @@ function mqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function hqe({ id: e, actions: t, onStatus: n }) {
+function gqe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, R.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -79759,14 +79818,14 @@ function hqe({ id: e, actions: t, onStatus: n }) {
children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "folder-sync" })
})] });
}
-function gqe({ item: e, write: t }) {
- let n = iw(e.rating);
+function _qe({ item: e, write: t }) {
+ let n = rw(e.rating);
return /* @__PURE__ */ (0, B.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": rw(e.rating),
+ "data-value": nw(e.rating),
children: [/* @__PURE__ */ (0, B.jsx)("div", {
"data-rating-stars": "",
children: [
@@ -79788,12 +79847,12 @@ function gqe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, B.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: Vre(e.rating)
+ children: Hre(e.rating)
})]
});
}
-function _qe({ item: e, actions: t }) {
- let n = (0, R.useMemo)(() => Bre(e), [e]), [r, i] = (0, R.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function vqe({ item: e, actions: t }) {
+ let n = (0, R.useMemo)(() => Vre(e), [e]), [r, i] = (0, R.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r, o = e === "performer" ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", { children: n.name.slice(0, 1) }), /* @__PURE__ */ (0, B.jsx)(J7, { html: te({
id: n.id,
hasImage: n.has_image,
@@ -79907,8 +79966,8 @@ function _qe({ item: e, actions: t }) {
]
});
}
-function vqe({ item: e, write: t, helpers: n, actions: r }) {
- let i = Ure(e, n);
+function yqe({ item: e, write: t, helpers: n, actions: r }) {
+ let i = Wre(e, n);
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-stage-tags": "",
id: "detailTags",
@@ -79929,14 +79988,14 @@ function vqe({ item: e, write: t, helpers: n, actions: r }) {
onClick: () => t.removeTag(e),
children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "x" })
})]
- }, e.k)), /* @__PURE__ */ (0, B.jsx)(yqe, {
+ }, e.k)), /* @__PURE__ */ (0, B.jsx)(bqe, {
item: e,
write: t,
helpers: n
})]
});
}
-function yqe({ item: e, write: t, helpers: n }) {
+function bqe({ item: e, write: t, helpers: n }) {
let r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(!1), [s, c] = (0, R.useState)(!1), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(-1), h = (0, R.useCallback)(() => {
i.current && Ne(i.current), c(!1);
}, []);
@@ -79950,7 +80009,7 @@ function yqe({ item: e, write: t, helpers: n }) {
clearTimeout(t), document.removeEventListener("pointerdown", e, !0);
};
}, [s, h]);
- let g = s ? Gre(d, n.tagCandidates(), lw()) : {
+ let g = s ? Kre(d, n.tagCandidates(), cw()) : {
recent: [],
results: [],
create: ""
@@ -79978,12 +80037,12 @@ function yqe({ item: e, write: t, helpers: n }) {
if (n.key === "Enter") {
n.preventDefault();
let r = p >= 0 ? _[p] : null;
- r ? v(r, r.n !== -1 && aw(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
+ r ? v(r, r.n !== -1 && iw(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
}
}
}, b = -1, x = (t) => {
b += 1;
- let r = b, i = aw(e, t.k);
+ let r = b, i = iw(e, t.k);
return /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"data-pick": t.k,
@@ -80080,8 +80139,8 @@ function yqe({ item: e, write: t, helpers: n }) {
})]
})] });
}
-function bqe({ item: e }) {
- let t = $re(e);
+function xqe({ item: e }) {
+ let t = eie(e);
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
@@ -80115,7 +80174,7 @@ function bqe({ item: e }) {
})]
});
}
-function xqe({ item: e, open: t, write: n }) {
+function Sqe({ item: e, open: t, write: n }) {
let [r, i] = (0, R.useState)(e.like_reason || ""), a = (0, R.useRef)(null);
(0, R.useEffect)(() => {
t && a.current?.focus();
@@ -80154,10 +80213,10 @@ function xqe({ item: e, open: t, write: n }) {
})]
});
}
-function Sqe(e) {
- let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = TS({
- queryKey: Fre(t.id, n),
- queryFn: async ({ signal: e }) => (await W(Lre(t.id, n), e)).items || []
+function Cqe(e) {
+ let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = wS({
+ queryKey: Ire(t.id, n),
+ queryFn: async ({ signal: e }) => (await W(Rre(t.id, n), e)).items || []
}), [o] = (0, R.useState)(() => r.relatedSkeletonHtml()), s = (0, R.useCallback)((e) => {
e && (Fe(e), r.wireDrag(e));
}, [r]);
@@ -80170,7 +80229,7 @@ function Sqe(e) {
ref: s,
id: "nrow",
"data-related-row": "",
- children: a.data ? /* @__PURE__ */ (0, B.jsx)(WA, {
+ children: a.data ? /* @__PURE__ */ (0, B.jsx)(HA, {
mode: "items",
variant: "next",
items: a.data,
@@ -80187,8 +80246,8 @@ function Sqe(e) {
})]
});
}
-function Cqe(e, t, n) {
- let r = e.id, i = UC(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), d = (e, t) => o((n) => {
+function wqe(e, t, n) {
+ let r = e.id, i = HC(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => p.getQueryData(i) || e, m = (e) => {
@@ -80204,11 +80263,11 @@ function Cqe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return VC(r, n), t;
+ return BC(r, n), t;
}, h = (e, t) => G(e, {
id: r,
...t
- }), g = OS({
+ }), g = DS({
mutationFn: ({ run: e }) => e(),
onError: (e, { action: n }) => t.failure(n, e),
onSettled: (e, t, { name: n }) => d(n, !1)
@@ -80219,7 +80278,7 @@ function Cqe(e, t, n) {
run: n
}));
}, v = async (e, t) => {
- let n = await h(KC, t === void 0 ? { kind: e } : {
+ let n = await h(GC, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -80239,21 +80298,21 @@ function Cqe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => _(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = Hre(n, e);
- await v("rate", r), t.toast(r ? `已评 ${iw(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = Ure(n, e);
+ await v("rate", r), t.toast(r ? `已评 ${rw(r)} 星` : "已取消评分", { undo: async () => {
await v("rate", n);
} });
}),
feedback: (e) => _(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await v(e);
- t.toast(dw(e, r), { undo: async () => {
+ t.toast(uw(e, r), { undo: async () => {
e === "o" ? await v("o-undo") : e === "dispose" ? await v("dispose") : (r.feedback && await v(r.feedback), n.feedback && await v(n.feedback)), await t.trashChanged(f().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => _("later", "更新稍后看", async () => {
- let e = await h(JC, {});
+ let e = await h(qC, {});
m({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- m({ watch_later: (await h(JC, {})).watch_later });
+ m({ watch_later: (await h(qC, {})).watch_later });
} });
}),
quality: () => _("quality", "更新版本需求", async () => {
@@ -80263,9 +80322,9 @@ function Cqe(e, t, n) {
}, n = (e) => m({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await h(YC, { wanted: !e.wanted });
+ }), r = await h(JC, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await h(YC, e));
+ n(await h(JC, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -80279,7 +80338,7 @@ function Cqe(e, t, n) {
});
u("保存中…");
try {
- o(await h(XC, {
+ o(await h(YC, {
liked: a,
reason: i
}));
@@ -80289,7 +80348,7 @@ function Cqe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await h(XC, r));
+ o(await h(YC, r));
} });
});
},
@@ -80298,11 +80357,11 @@ function Cqe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- m((t) => ow(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await h(qC, {
+ m((t) => aw(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await h(KC, {
operation: "add",
tag: e.k
- }), m((t) => sw(t, e));
+ }), m((t) => ow(t, e));
} });
}),
addTag: (e) => {
@@ -80311,14 +80370,14 @@ function Cqe(e, t, n) {
(await h("/api/item-tag", {
operation: "add",
tag: r
- })).ok && (m((e) => sw(e, {
+ })).ok && (m((e) => ow(e, {
k: r,
cat: "general"
- })), Wre(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {
- await h(qC, {
+ })), Gre(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {
+ await h(KC, {
operation: "remove",
tag: r
- }), m((e) => ow(e, r));
+ }), m((e) => aw(e, r));
} }));
});
}
@@ -80327,16 +80386,16 @@ function Cqe(e, t, n) {
//#endregion
//#region src/react/stage/stage-player.ts
var X7 = null, Z7 = null, Q7 = null, $7 = null, e9 = null, t9 = !1, n9 = 0, r9 = null, i9 = () => !1, a9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function wqe(e, t) {
- X7 = e, i9 = () => t.isOpen(), r9 = () => t.requestClose(), Kne({
+function Tqe(e, t) {
+ X7 = e, i9 = () => t.isOpen(), r9 = () => t.requestClose(), qne({
...e.player,
stage: () => document.getElementById("stage")
- }), qne({
+ }), Jne({
inMiniplayer: (e) => Z7?.player === e,
kind: (e) => Z7?.player === e ? Z7.kind : Q7?.kind ?? $7?.kind ?? "item",
expand: () => C9(),
toMiniplayer: () => w9()
- }), o9 || (o9 = !0, addEventListener("pagehide", () => bC()));
+ }), o9 || (o9 = !0, addEventListener("pagehide", () => yC()));
}
var o9 = !1;
function s9() {
@@ -80346,10 +80405,10 @@ function s9() {
function c9(e) {
$7 = e;
}
-var Tqe = () => $7;
+var Eqe = () => $7;
function l9(e, t) {
let { kind: n, item: r, media: i = null } = t, a = a9(n, r.id, i?.index ?? null);
- if (Z7 && Z7.key === a) return Eqe(e, Z7);
+ if (Z7 && Z7.key === a) return Dqe(e, Z7);
Z7 && S9();
let o = {
player: null,
@@ -80361,7 +80420,7 @@ function l9(e, t) {
Q7 = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !0, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
- let c = PC(s, {
+ let c = NC(s, {
kind: n,
item: r,
media: i,
@@ -80374,12 +80433,12 @@ function l9(e, t) {
});
return () => {
let e = !!o.player && Z7?.player === o.player;
- Q7 === o && (Q7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), bC());
+ Q7 === o && (Q7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), yC());
};
}
-function Eqe(e, t) {
+function Dqe(e, t) {
let { player: n } = t;
- b9(t), Z7 = null, x9(), n.el().classList.remove("vjs-peach-mini"), MC(e), e.append(n.el()), YS(n);
+ b9(t), Z7 = null, x9(), n.el().classList.remove("vjs-peach-mini"), jC(e), e.append(n.el()), JS(n);
let r = {
player: n,
kind: t.kind,
@@ -80388,22 +80447,22 @@ function Eqe(e, t) {
key: t.key
};
Q7 = r;
- let i = NC(n, e);
- return XS(n), () => {
- Q7 === r && (Q7 = null), i(), Z7?.player !== n && (JS() === n && YS(null), fC(n), bC());
+ let i = MC(n, e);
+ return YS(n), () => {
+ Q7 === r && (Q7 = null), i(), Z7?.player !== n && (qS() === n && JS(null), dC(n), yC());
};
}
var u9 = () => {
let e = Q7?.player;
return e && !e.isDisposed() ? e : null;
};
-function Dqe(e) {
+function Oqe(e) {
let t = t9;
t9 = !1, Z7?.pending && S9();
let n = Q7, r = n?.player, i = $7;
if (!n || !r || r.isDisposed() || !i || !e9) return;
let a = s9().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && Mqe({
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && Nqe({
player: r,
kind: n.kind,
item: n.item,
@@ -80411,7 +80470,7 @@ function Dqe(e) {
key: n.key
}, i);
}
-function Oqe(e, t) {
+function kqe(e, t) {
if (t9 = !1, Z7) {
if (Z7.kind === e && Z7.item.id === t) {
Z7.pending = !0, x9();
@@ -80424,11 +80483,11 @@ function d9(e) {
e9 = e, e9 && v9();
}
var f9 = () => !!Z7 && !Z7.pending && !Z7.player.isDisposed();
-function kqe() {
+function Aqe() {
return f9() ? e9?.frame.querySelector("video") ?? null : null;
}
-function Aqe() {
- return i9() ? document.getElementById("stage")?.querySelector("video") ?? null : kqe();
+function jqe() {
+ return i9() ? document.getElementById("stage")?.querySelector("video") ?? null : Aqe();
}
function p9(e) {
e9 && (e9.title.textContent = e.title || "", e9.sub.textContent = e.sub || "", e9.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
@@ -80477,7 +80536,7 @@ function y9(e) {
function b9(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function jqe() {
+function Mqe() {
let e = e9?.root;
if (!e) return;
let t = e.hidden;
@@ -80498,7 +80557,7 @@ function x9() {
e.style.transform = "";
}
}
-function Mqe(e, t) {
+function Nqe(e, t) {
if (!e9) return;
let n = {
...e,
@@ -80506,13 +80565,13 @@ function Mqe(e, t) {
off: [],
pending: !1
};
- Z7 = n, n9++, e.player.el().classList.add("vjs-peach-mini"), e9.frame.prepend(e.player.el()), p9(t), y9(n), jqe(), XS(e.player);
+ Z7 = n, n9++, e.player.el().classList.add("vjs-peach-mini"), e9.frame.prepend(e.player.el()), p9(t), y9(n), Mqe(), YS(e.player);
}
function S9() {
let e = Z7;
e && b9(e), Z7 = null, n9++;
let t = e?.player ?? null;
- t && JS() === t && YS(null), fC(t), t && bC(), e9?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), KS(), x9();
+ t && qS() === t && JS(null), dC(t), t && yC(), e9?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), GS(), x9();
}
function C9() {
if (!f9() || !Z7) return;
@@ -80526,7 +80585,7 @@ function w9() {
}
i9() && u9() && r9 && (t9 = !0, r9());
}
-function Nqe() {
+function Pqe() {
let e = Z7?.player;
!e || e.isDisposed() || (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
@@ -80539,7 +80598,7 @@ function T9(e) {
function E9(e) {
return !(!f9() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || s9().sourceOffline(String(e.location ?? "")));
}
-async function Pqe(e) {
+async function Fqe(e) {
if (!f9() || !Z7 || !e9) return;
let t = ++n9, n = await pe(`/api/item?id=${e}`).catch(() => null);
if (t !== n9 || !f9() || !Z7 || !e9 || !n || n.error) return;
@@ -80548,7 +80607,7 @@ async function Pqe(e) {
return;
}
let r = Z7;
- b9(r), JS() === r.player && YS(null), fC(r.player), bC(), e9.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ b9(r), qS() === r.player && JS(null), dC(r.player), yC(), e9.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", e9.frame.prepend(i);
let a = {
@@ -80557,14 +80616,14 @@ async function Pqe(e) {
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- p9(a), PC(i, {
+ p9(a), NC(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
if (t !== n9) {
- r && JS() === r && YS(null), fC(r);
+ r && qS() === r && JS(null), dC(r);
return;
}
if (!r) {
@@ -80592,9 +80651,9 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
-}), Fqe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, O9 = (e) => (t) => {
+}), Iqe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, O9 = (e) => (t) => {
t.stopPropagation(), e();
-}, Iqe = (0, R.memo)(function() {
+}, Lqe = (0, R.memo)(function() {
let e = (0, R.useRef)(null), t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => (d9({
root: e.current,
@@ -80606,7 +80665,7 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => d9(null)), []), (0, R.useEffect)(() => Rqe(e.current, t.current), []), /* @__PURE__ */ (0, B.jsx)("aside", {
+ }), () => d9(null)), []), (0, R.useEffect)(() => zqe(e.current, t.current), []), /* @__PURE__ */ (0, B.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -80656,8 +80715,8 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: O9(Nqe),
- dangerouslySetInnerHTML: Fqe
+ onClick: O9(Pqe),
+ dangerouslySetInnerHTML: Iqe
}),
/* @__PURE__ */ (0, B.jsx)("button", {
ref: o,
@@ -80696,7 +80755,7 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
})
});
});
-function Lqe(e, t, n) {
+function Rqe(e, t, n) {
let r = e.getBoundingClientRect(), i = (r.top + r.height / 2 < innerHeight / 2 ? "t" : "b") + (r.left + r.width / 2 < innerWidth / 2 ? "l" : "r"), a = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 56, o = {
left: r.left - t,
top: r.top - n
@@ -80718,7 +80777,7 @@ function Lqe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function Rqe(e, t) {
+function zqe(e, t) {
let n = null, r = (e) => {
if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {
n = {
@@ -80744,7 +80803,7 @@ function Rqe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), Lqe(e, i.dx, i.dy));
+ }, 0), Rqe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -80764,21 +80823,21 @@ function R9() {
if (!k9) throw Error("舞台还没有接上宿主(configureStage)");
return k9;
}
-function zqe() {
+function Bqe() {
return (!A9 || !j9?.isConnected) && (A9?.unmount(), j9 = document.createElement("div"), j9.dataset.stageHost = "", document.body.append(j9), A9 = (0, ip.createRoot)(j9)), A9;
}
function z9() {
- let e = zqe();
- (0, rp.flushSync)(() => e.render(/* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(Bqe, { view: M9 }) })));
+ let e = Bqe();
+ (0, rp.flushSync)(() => e.render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(Vqe, { view: M9 }) })));
}
-function Bqe({ view: e }) {
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [e ? /* @__PURE__ */ (0, B.jsx)(Vqe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, B.jsx)(Iqe, {})] });
+function Vqe({ view: e }) {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [e ? /* @__PURE__ */ (0, B.jsx)(Hqe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, B.jsx)(Lqe, {})] });
}
var B9 = () => /* @__PURE__ */ (0, B.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: DKe() }
+ dangerouslySetInnerHTML: { __html: OKe() }
});
function V9(e) {
let t = e.currentTarget;
@@ -80786,7 +80845,7 @@ function V9(e) {
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function Vqe({ view: e }) {
+function Hqe({ view: e }) {
let t = (0, R.useRef)(null);
(0, R.useLayoutEffect)(() => {
let e = t.current, n = (e) => {
@@ -80794,7 +80853,7 @@ function Vqe({ view: e }) {
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, B.jsx)(oqe, { ...r.props }) : /* @__PURE__ */ (0, B.jsx)(JKe, { ...r.props });
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, B.jsx)(sqe, { ...r.props }) : /* @__PURE__ */ (0, B.jsx)(YKe, { ...r.props });
return /* @__PURE__ */ (0, B.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -80833,7 +80892,7 @@ function U9(e, t) {
let n = L9();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function Hqe(e) {
+function Uqe(e) {
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
@@ -80895,7 +80954,7 @@ function Hqe(e) {
}
};
}
-function Uqe(e, t) {
+function Wqe(e, t) {
let n = e.querySelector(":scope > [data-stage-fade]");
e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");
let r = 0, i = () => {
@@ -80908,13 +80967,13 @@ function Uqe(e, t) {
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-async function Wqe(e) {
+async function Gqe(e) {
M9 && W9({ miniplayer: !1 });
let t = ++N9, n = new AbortController();
- P9 = n, F9 = !1, I9 = !1, Oqe(e.kind, e.id ?? NaN), M9 = {
+ P9 = n, F9 = !1, I9 = !1, kqe(e.kind, e.id ?? NaN), M9 = {
generation: t,
request: e,
- content: Hqe(e),
+ content: Uqe(e),
phase: "skeleton"
}, z9();
let r = L9();
@@ -80922,7 +80981,7 @@ async function Wqe(e) {
Fe(r), document.body.setAttribute("data-detail-open", ""), r.open || r.showModal();
let i = M9.content;
try {
- i.kind === "item" ? await zre(i.props, n.signal) : await jKe(i.props, n.signal);
+ i.kind === "item" ? await Bre(i.props, n.signal) : await MKe(i.props, n.signal);
} catch {
if (n.signal.aborted) return;
}
@@ -80931,11 +80990,11 @@ async function Wqe(e) {
M9 = {
...M9,
phase: a ? "content" : "reveal"
- }, z9(), a || Uqe(r, t), Ke(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, z9(), a || Wqe(r, t), Ke(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let o = document.activeElement;
(o === r || !r.contains(o)) && r.querySelector("#closeStage")?.focus();
}
-function Gqe() {
+function Kqe() {
let e = L9();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
let n = 0, r = () => {
@@ -80947,11 +81006,11 @@ function Gqe() {
}));
}
function W9({ miniplayer: e = !0 } = {}) {
- if (N9++, P9?.abort(), P9 = null, Dqe(e), !M9) return;
+ if (N9++, P9?.abort(), P9 = null, Oqe(e), !M9) return;
let t = L9();
- t && ue(t), KS(), t?.open && t.close(), M9 = null, F9 = !1, I9 = !1, z9(), c9(null), document.body.removeAttribute("data-detail-open");
+ t && ue(t), GS(), t?.open && t.close(), M9 = null, F9 = !1, I9 = !1, z9(), c9(null), document.body.removeAttribute("data-detail-open");
}
-function Kqe(e) {
+function qqe(e) {
!M9 || M9.content.kind !== "item" || (M9 = {
...M9,
content: {
@@ -80963,60 +81022,60 @@ function Kqe(e) {
}
}, z9());
}
-function qqe() {
- let e = Tqe(), t = e?.kind === "item" ? e.item : null, n = t ? N(t, R9().player.settings().javImage) : "";
+function Jqe() {
+ let e = Eqe(), t = e?.kind === "item" ? e.item : null, n = t ? N(t, R9().player.settings().javImage) : "";
if (!n) return;
let r = u9();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var Jqe = {
- open: Wqe,
- update: Kqe,
- exit: Gqe,
+var Yqe = {
+ open: Gqe,
+ update: qqe,
+ exit: Kqe,
dispose: W9,
requestClose: H9,
- repaintPoster: qqe,
+ repaintPoster: Jqe,
isOpen: () => !!M9,
- activeVideo: () => Aqe(),
+ activeVideo: () => jqe(),
toggleTheater: () => {
- M9 && dC(!R9().player.settings().theaterMode);
+ M9 && uC(!R9().player.settings().theaterMode);
},
toggleMiniplayer: () => w9(),
closeMiniplayer: () => S9(),
miniplayerActive: () => f9(),
miniplayerTakesCard: (e) => E9(e),
miniplayerPlay: (e) => {
- Pqe(e);
+ Fqe(e);
}
};
-function Yqe(e) {
- return k9 = e, wqe(e, {
+function Xqe(e) {
+ return k9 = e, Tqe(e, {
isOpen: () => !!M9,
requestClose: H9
- }), z9(), Jqe;
+ }), z9(), Yqe;
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function Xqe(e) {
+function Zqe(e) {
if (!e || typeof document > "u") return;
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
}
-var Zqe = (e) => {
+var Qqe = (e) => {
switch (e) {
- case "success": return eJe;
- case "info": return nJe;
- case "warning": return tJe;
- case "error": return rJe;
+ case "success": return tJe;
+ case "info": return rJe;
+ case "warning": return nJe;
+ case "error": return iJe;
default: return null;
}
-}, Qqe = Array(12).fill(0), $qe = ({ visible: e, className: t }) => /*#__PURE__*/ R.createElement("div", {
+}, $qe = Array(12).fill(0), eJe = ({ visible: e, className: t }) => /*#__PURE__*/ R.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ R.createElement("div", { className: "sonner-spinner" }, Qqe.map((e, t) => /*#__PURE__*/ R.createElement("div", {
+}, /*#__PURE__*/ R.createElement("div", { className: "sonner-spinner" }, $qe.map((e, t) => /*#__PURE__*/ R.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), eJe = /*#__PURE__*/ R.createElement("svg", {
+})))), tJe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -81027,7 +81086,7 @@ var Zqe = (e) => {
fillRule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
clipRule: "evenodd"
-})), tJe = /*#__PURE__*/ R.createElement("svg", {
+})), nJe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -81038,7 +81097,7 @@ var Zqe = (e) => {
fillRule: "evenodd",
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
clipRule: "evenodd"
-})), nJe = /*#__PURE__*/ R.createElement("svg", {
+})), rJe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -81049,7 +81108,7 @@ var Zqe = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
clipRule: "evenodd"
-})), rJe = /*#__PURE__*/ R.createElement("svg", {
+})), iJe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -81060,7 +81119,7 @@ var Zqe = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
clipRule: "evenodd"
-})), iJe = /*#__PURE__*/ R.createElement("svg", {
+})), aJe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -81081,7 +81140,7 @@ var Zqe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), aJe = () => {
+})), oJe = () => {
let [e, t] = R.useState(document.hidden);
return R.useEffect(() => {
let e = () => {
@@ -81089,7 +81148,7 @@ var Zqe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, oJe = 1, sJe = 100, G9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : oJe++, K9 = new class {
+}, sJe = 1, cJe = 100, G9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : sJe++, K9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -81099,7 +81158,7 @@ var Zqe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - sJe;
+ let e = this.toasts.length - cJe;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
let { message: t, ...n } = e, r = G9(e), i = this.pendingDismissals.get(r);
@@ -81177,7 +81236,7 @@ var Zqe = (e) => {
type: "default",
message: e
});
- else if (lJe(e) && !e.ok) {
+ else if (uJe(e) && !e.ok) {
i = !1;
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !R.isValidElement(r) ? r : { message: r };
this.create({
@@ -81230,7 +81289,7 @@ var Zqe = (e) => {
}), n;
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();
}
-}(), cJe = (e, t) => K9.message(e, t), lJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(cJe, {
+}(), lJe = (e, t) => K9.message(e, t), uJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(lJe, {
success: K9.success,
info: K9.info,
warning: K9.warning,
@@ -81244,20 +81303,20 @@ var Zqe = (e) => {
getHistory: () => K9.toasts,
getToasts: () => K9.getActiveToasts()
});
-Xqe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
+Zqe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
function J9(e) {
return e.label !== void 0;
}
-var uJe = 3, dJe = "24px", fJe = "16px", Y9 = 4e3, pJe = 356, mJe = 14, hJe = 45, gJe = 200;
+var dJe = 3, fJe = "24px", pJe = "16px", Y9 = 4e3, mJe = 356, hJe = 14, gJe = 45, _Je = 200;
function X9(...e) {
return e.filter(Boolean).join(" ");
}
-function _Je(e) {
+function vJe(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var vJe = (e) => {
- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = R.useState(null), [O, k] = R.useState(null), [A, j] = R.useState(!1), [M, N] = R.useState(!1), [ee, te] = R.useState(!1), [P, F] = R.useState(!1), [ne, re] = R.useState(!1), [ie, ae] = R.useState(0), [oe, se] = R.useState(0), ce = R.useRef(n.duration || y || Y9), le = R.useRef(null), ue = R.useRef(null), de = c === 0, fe = c + 1 <= o, I = n.type, pe = I ?? "default", me = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = R.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = R.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = R.useMemo(() => n.duration || y || Y9, [n.duration, y]), be = R.useRef(0), L = R.useRef(0), xe = R.useRef(0), Se = R.useRef(null), [Ce, we] = b.split("-"), Te = R.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), Ee = aJe(), De = R.useMemo(() => e.swipeDirections ?? _Je(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = I === "loading";
+var yJe = (e) => {
+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = R.useState(null), [O, k] = R.useState(null), [A, j] = R.useState(!1), [M, N] = R.useState(!1), [ee, te] = R.useState(!1), [P, F] = R.useState(!1), [ne, re] = R.useState(!1), [ie, ae] = R.useState(0), [oe, se] = R.useState(0), ce = R.useRef(n.duration || y || Y9), le = R.useRef(null), ue = R.useRef(null), de = c === 0, fe = c + 1 <= o, I = n.type, pe = I ?? "default", me = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = R.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = R.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = R.useMemo(() => n.duration || y || Y9, [n.duration, y]), be = R.useRef(0), L = R.useRef(0), xe = R.useRef(0), Se = R.useRef(null), [Ce, we] = b.split("-"), Te = R.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), Ee = oJe(), De = R.useMemo(() => e.swipeDirections ?? vJe(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = I === "loading";
L.current = R.useMemo(() => _e * x + Te, [_e, Te]), R.useEffect(() => {
ce.current = ye;
}, [ye]), R.useEffect(() => {
@@ -81298,7 +81357,7 @@ var vJe = (e) => {
let Ae = R.useCallback(() => {
N(!0), ae(L.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, gJe);
+ }, _Je);
}, [
n,
d,
@@ -81331,12 +81390,12 @@ var vJe = (e) => {
return w?.loading ? /*#__PURE__*/ R.createElement("div", {
className: X9(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": I === "loading"
- }, w.loading) : /*#__PURE__*/ R.createElement($qe, {
+ }, w.loading) : /*#__PURE__*/ R.createElement(eJe, {
className: X9(C?.loader, n?.classNames?.loader),
visible: I === "loading"
});
}
- let Me = n.icon || w?.[I] || Zqe(I);
+ let Me = n.icon || w?.[I] || Qqe(I);
return /*#__PURE__*/ R.createElement("li", {
tabIndex: 0,
ref: ue,
@@ -81383,7 +81442,7 @@ var vJe = (e) => {
if (P || !me) return;
Se.current = null;
let e = Number(ue.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(ue.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - le.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
- if ((E === "x" ? De.includes(e > 0 ? "right" : "left") : De.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= hJe || a > .11)) {
+ if ((E === "x" ? De.includes(e > 0 ? "right" : "left") : De.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= gJe || a > .11)) {
ae(L.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Ae(), F(!0);
return;
}
@@ -81424,7 +81483,7 @@ var vJe = (e) => {
Ae(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: X9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? iJe) : null, (I || n.icon || n.promise) && n.icon !== null && (w?.[I] !== null || n.icon) ? /*#__PURE__*/ R.createElement("div", {
+ }, w?.close ?? aJe) : null, (I || n.icon || n.promise) && n.icon !== null && (w?.[I] !== null || n.icon) ? /*#__PURE__*/ R.createElement("div", {
"data-icon": "",
className: X9(C?.icon, n?.classNames?.icon)
}, I === "loading" ? n.icon || je() : n.promise ? je() : null, I === "loading" ? null : Me) : null, /*#__PURE__*/ R.createElement("div", {
@@ -81459,10 +81518,10 @@ function Z9() {
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function yJe(e, t) {
+function bJe(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? fJe : dJe;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? pJe : fJe;
function o(e) {
[
"top",
@@ -81483,8 +81542,8 @@ function yJe(e, t) {
}) : o(a);
}), n;
}
-var bJe = /*#__PURE__*/ R.forwardRef(function(e, t) {
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = uJe, toastOptions: g, dir: _ = Z9(), gap: v = mJe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = R.useState([]), w = R.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = R.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = R.useState([]), [O, k] = R.useState(!1), [A, j] = R.useState(!1), [M, N] = R.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = R.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = R.useRef(null), F = R.useRef(!1), ne = R.useCallback((e) => {
+var xJe = /*#__PURE__*/ R.forwardRef(function(e, t) {
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = dJe, toastOptions: g, dir: _ = Z9(), gap: v = hJe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = R.useState([]), w = R.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = R.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = R.useState([]), [O, k] = R.useState(!1), [A, j] = R.useState(!1), [M, N] = R.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = R.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = R.useRef(null), F = R.useRef(!1), ne = R.useCallback((e) => {
C((t) => (t.find((t) => t.id === e.id)?.delete || K9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
return R.useEffect(() => K9.subscribe((e) => {
@@ -81570,10 +81629,10 @@ var bJe = /*#__PURE__*/ R.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${pJe}px`,
+ "--width": `${mJe}px`,
"--gap": `${v}px`,
...m,
- ...yJe(l, u)
+ ...bJe(l, u)
},
onBlur: (e) => {
F.current && !e.currentTarget.contains(e.relatedTarget) && (F.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -81591,7 +81650,7 @@ var bJe = /*#__PURE__*/ R.forwardRef(function(e, t) {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || j(!0);
},
onPointerUp: () => j(!1)
- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ R.createElement(vJe, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ R.createElement(yJe, {
key: n.id,
icons: y,
index: i,
@@ -81625,8 +81684,8 @@ var bJe = /*#__PURE__*/ R.forwardRef(function(e, t) {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), $9 = !1, xJe = (e, t) => {
- $9 || ($9 = !0, (0, ip.createRoot)(e).render(/* @__PURE__ */ (0, B.jsx)(bJe, {
+}), $9 = !1, SJe = (e, t) => {
+ $9 || ($9 = !0, (0, ip.createRoot)(e).render(/* @__PURE__ */ (0, B.jsx)(xJe, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -81647,7 +81706,7 @@ var bJe = /*#__PURE__*/ R.forwardRef(function(e, t) {
error: Q9(t.error, !1)
}
})));
-}, SJe = (e, t) => {
+}, CJe = (e, t) => {
let n = t.alert ? q9.error : q9.success, r = t.action;
n(/* @__PURE__ */ (0, B.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
@@ -81661,4 +81720,4 @@ var bJe = /*#__PURE__*/ R.forwardRef(function(e, t) {
});
};
//#endregion
-export { Hne as configureBatchDock, Wne as configureGlowPicker, jie as configureImmerse, Bie as configureManageHeader, MGe as configureRouter, $Ge as configureSettingsPanel, mKe as configureSidebar, Yqe as configureStage, xJe as mountToaster, pWe as prefetchManagedRoute, SJe as showToast };
+export { Une as configureBatchDock, Gne as configureGlowPicker, Mie as configureImmerse, Vie as configureManageHeader, NGe as configureRouter, eKe as configureSettingsPanel, hKe as configureSidebar, Xqe as configureStage, SJe as mountToaster, hWe as prefetchManagedRoute, CJe as showToast };