Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(web): 换完头像当场换上新图,不用刷新

longmeidaocb40878e2da2
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index 34d7c5271..25bfaef08 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -319,7 +319,7 @@ export interface TasteProps {
/** 实体圆标的内层 HTML:有图走图,没图退到首字母。遗留层那份唯一的回落链实现。 */
avatarInner(
name: string,
- entity: { id: number; has_image: boolean; avatar_focus?: unknown } | null,
+ entity: { id: number; has_image: boolean; image_version?: string; avatar_focus?: unknown } | null,
representativeAssetId: number | null,
kind: string,
): string;
@@ -365,7 +365,7 @@ export interface FollowManageProps {
/** 订阅源那一行的人物圆标:有图走图,没图退到首字母。遗留层那份唯一的回落链实现。 */
avatarInner(
name: string,
- entity: { id: number; has_image: boolean; avatar_focus?: unknown } | null,
+ entity: { id: number; has_image: boolean; image_version?: string; avatar_focus?: unknown } | null,
representativeAssetId: number | null,
kind: string,
): string;
@@ -390,7 +390,7 @@ export interface ReviewProps {
/** 实体圆标的内层 HTML:有图走图,没图退到首字母。遗留层那份唯一的回落链实现。 */
avatarInner(
name: string,
- entity: { id: number; has_image: boolean; avatar_focus?: unknown } | null,
+ entity: { id: number; has_image: boolean; image_version?: string; avatar_focus?: unknown } | null,
representativeAssetId: number | null,
kind: string,
): string;
@@ -469,7 +469,9 @@ export interface PlaylistsProps {
/** 点署名行的头像:去这个人的资料页。`kind` 是 `performer`/`creator`。 */
openEntity(kind: string, name: string): void;
/** 圆框里那段 HTML(遗留层 `avatarInner`):有图走图,没图退首字母。 */
- faceAvatar(face: { kind: string; id: number; name: string; has_image?: boolean; avatar_focus?: unknown }): string;
+ faceAvatar(face: {
+ kind: string; id: number; name: string; has_image?: boolean; image_version?: string; avatar_focus?: unknown;
+ }): string;
/** 此刻能不能悬停翻页:壳的多选、遮挡、减少动效与滚动中都回 false。 */
canFlip(): boolean;
/** 操作回执(遗留层 `actionReceipt`);给了 `undo` 就带一颗撤销键。撤销抛错时回执自己
diff --git a/frontend/src/react/catalog-grid/types.ts b/frontend/src/react/catalog-grid/types.ts
index 774e79615..81b68548b 100644
--- a/frontend/src/react/catalog-grid/types.ts
+++ b/frontend/src/react/catalog-grid/types.ts
@@ -2,7 +2,9 @@
* 条目与分页的形状以 `/api/items`(`src/peach/web_router.py`)为准。 */
/** 卡片署名行上一个实体的引用:头像取图与取景都从这里来。 */
-export interface MediaEntityRef { id: number; has_image?: boolean; avatar_focus?: unknown }
+export interface MediaEntityRef {
+ id: number; has_image?: boolean; image_version?: string; avatar_focus?: unknown;
+}
/** `/api/items` 的一条。只列卡片读到的字段,其余原样带着,壳的缓存要的是整条。 */
export interface MediaItem {
diff --git a/frontend/src/react/components/mix-card.tsx b/frontend/src/react/components/mix-card.tsx
index 392a0d9af..efa09a63a 100644
--- a/frontend/src/react/components/mix-card.tsx
+++ b/frontend/src/react/components/mix-card.tsx
@@ -23,6 +23,8 @@ export interface MixCardFace {
id: number;
name: string;
has_image?: boolean;
+ /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
+ image_version?: string;
avatar_focus?: unknown;
}
diff --git a/frontend/src/react/entity-hero/entity-hero.ts b/frontend/src/react/entity-hero/entity-hero.ts
index a232963c6..aff3f26b4 100644
--- a/frontend/src/react/entity-hero/entity-hero.ts
+++ b/frontend/src/react/entity-hero/entity-hero.ts
@@ -35,6 +35,8 @@ export interface HeroCostar {
n?: number;
rep?: number | null;
has_image?: boolean;
+ /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
+ image_version?: string;
has_avatar?: boolean;
avatar_focus?: unknown;
}
diff --git a/frontend/src/react/entity-page/entity-page-view.tsx b/frontend/src/react/entity-page/entity-page-view.tsx
index 29807cedb..45da51e66 100644
--- a/frontend/src/react/entity-page/entity-page-view.tsx
+++ b/frontend/src/react/entity-page/entity-page-view.tsx
@@ -87,10 +87,14 @@ function EntityLoaded(props: EntityPageProps & { entity: EntityPageData }) {
}
const view: EntityView = company && rosterView === 'people' && roster.length ? 'people' : mediaNow.media;
+ /* 换过几次头像。资料卡与作品网格都把图拼进了自己的状态(网格只在代次变时才按新的第一页
+ 重建),重取到新数据还不够,得换键重建,新图地址里的版本才落得到页面上。 */
+ const [avatarEpoch, setAvatarEpoch] = useState(0);
+
/* ── 作品 ── */
const itemsQuery = itemsOptions(props);
const items = useQuery(itemsQuery);
- const itemsRevision = useRevision(JSON.stringify(itemsQuery.queryKey));
+ const itemsRevision = useRevision(JSON.stringify([itemsQuery.queryKey, avatarEpoch]));
/* 直达或刷新资料页时 URL 没有 `jav=1`:以第一页作品的真实 `is_jav` 恢复女优/厂牌语境,版式开关
不是只在从 JAV 首页点进来时才偶然存在。只看进页那一份,页内换筛选不改语境。 */
const [javPage] = useState(() => (kind === 'performer' || kind === 'studio')
@@ -142,7 +146,6 @@ function EntityLoaded(props: EntityPageProps & { entity: EntityPageData }) {
/* ── 写操作 ── */
const alive = useRef(true);
useEffect(() => () => { alive.current = false }, []);
- const [portraitEpoch, setPortraitEpoch] = useState(0);
const refreshEntity = useCallback(async () => {
await queryClient.invalidateQueries({ queryKey: entityKey(kind, name) });
await queryClient.invalidateQueries({ queryKey: ['entity-items', kind, name] });
@@ -208,13 +211,14 @@ function EntityLoaded(props: EntityPageProps & { entity: EntityPageData }) {
})();
},
feedAction: postFeedAction,
- /* 圆框角上那个加号:头像索引在服务端已经换过,重取资料、整块资料卡重建才读得到新图。 */
+ /* 圆框角上那个加号:头像索引在服务端已经换过。资料与作品列表一起重取(作品卡署名里也是
+ 这张脸),回来后资料卡与作品网格都按新数据重建。 */
avatarPicked: () => {
- void queryClient.refetchQueries({ queryKey: entityKey(kind, name) }).then(() => {
- if (alive.current) setPortraitEpoch((epoch) => epoch + 1);
+ void refreshEntity().then(() => {
+ if (alive.current) setAvatarEpoch((epoch) => epoch + 1);
});
},
- }), [actions, alias, entity, entityId, follow, helpers, kind, name, rename]);
+ }), [actions, alias, entity, entityId, follow, helpers, kind, name, refreshEntity, rename]);
const heroHelpers = useMemo<EntityHeroHelpers>(() => ({
portraitImg: () => helpers.portraitImg(kind, entity),
costarImg: helpers.costarImg,
@@ -311,7 +315,7 @@ function EntityLoaded(props: EntityPageProps & { entity: EntityPageData }) {
return (
<>
- <EntityHeroPage key={portraitEpoch} kind={kind} name={name} entity={entity} feedNew={feed.data ?? null}
+ <EntityHeroPage key={avatarEpoch} kind={kind} name={name} entity={entity} feedNew={feed.data ?? null}
feedHost={entityId ? hosts.feed : null} jav={javPage} actions={heroActions} helpers={heroHelpers} />
{createPortal(
<EntityFilterPage kind={kind} name={name} view={view} views={views} state={filters.state || ''}
diff --git a/frontend/src/react/entity-page/entity-page.ts b/frontend/src/react/entity-page/entity-page.ts
index 697263519..5597b3d0d 100644
--- a/frontend/src/react/entity-page/entity-page.ts
+++ b/frontend/src/react/entity-page/entity-page.ts
@@ -33,6 +33,8 @@ export interface EntityPageData extends EntityHeroData {
related_performers?: (HeroCostar & IndexPerson)[];
labels?: IndexPerson[];
has_image?: boolean;
+ /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
+ image_version?: string;
has_avatar?: boolean;
has_logo?: boolean;
representative_asset_id?: number | null;
diff --git a/frontend/src/react/follow-manage/feed-sources.tsx b/frontend/src/react/follow-manage/feed-sources.tsx
index 3dead51de..6ad64fe03 100644
--- a/frontend/src/react/follow-manage/feed-sources.tsx
+++ b/frontend/src/react/follow-manage/feed-sources.tsx
@@ -88,7 +88,10 @@ type AvatarInner = FollowManageProps['avatarInner'];
* 有资料图按人脸取景出图,判据是服务端的 `has_image`;没有就是首字母。整格不进读屏,名字就在旁边。 */
function FeedAvatar({ source, avatarInner }: { source: FeedSource; avatarInner: AvatarInner }) {
const entity = source.entity_id
- ? { id: source.entity_id, has_image: !!source.has_image, avatar_focus: source.avatar_focus }
+ ? {
+ id: source.entity_id, has_image: !!source.has_image, image_version: source.image_version,
+ avatar_focus: source.avatar_focus,
+ }
: null;
return (
<span aria-hidden
diff --git a/frontend/src/react/follow-manage/follow-manage.ts b/frontend/src/react/follow-manage/follow-manage.ts
index 5fb0e90c9..2e57c0d8c 100644
--- a/frontend/src/react/follow-manage/follow-manage.ts
+++ b/frontend/src/react/follow-manage/follow-manage.ts
@@ -477,6 +477,8 @@ export interface FeedSource {
entity_name: string | null;
/** 这位有没有资料图:有就在名字前画 `/entity-image` 的圆框,没有退首字母。 */
has_image?: boolean;
+ /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
+ image_version?: string;
/** 资料图的人脸取景,和 `has_image` 出自同一份身份引用。 */
avatar_focus?: unknown;
enabled: boolean;
diff --git a/frontend/src/react/index/index-data.ts b/frontend/src/react/index/index-data.ts
index 3fd25d14e..9db998ffe 100644
--- a/frontend/src/react/index/index-data.ts
+++ b/frontend/src/react/index/index-data.ts
@@ -59,6 +59,8 @@ export interface IndexPerson {
n: number;
rep?: number | null;
has_image?: boolean;
+ /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
+ image_version?: string;
has_avatar?: boolean;
avatar_focus?: unknown;
has_logo?: boolean;
diff --git a/frontend/src/react/item-detail/item-detail.ts b/frontend/src/react/item-detail/item-detail.ts
index 0d8d05ee8..4a3db795b 100644
--- a/frontend/src/react/item-detail/item-detail.ts
+++ b/frontend/src/react/item-detail/item-detail.ts
@@ -23,6 +23,8 @@ export interface DetailEntityRef {
id: number | null;
name: string;
has_image?: boolean;
+ /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
+ image_version?: string;
avatar_focus?: unknown;
has_logo?: boolean;
/** 厂牌是某家片商旗下的 label 时(ADR-0049),从近到远的上级片商链。 */
diff --git a/frontend/src/react/playlists/playlists.ts b/frontend/src/react/playlists/playlists.ts
index 861a91377..7869e4733 100644
--- a/frontend/src/react/playlists/playlists.ts
+++ b/frontend/src/react/playlists/playlists.ts
@@ -19,6 +19,8 @@ export interface PlaylistFace {
id: number;
name: string;
has_image: boolean;
+ /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
+ image_version?: string;
avatar_focus?: unknown;
}
diff --git a/frontend/src/react/review/review-card.tsx b/frontend/src/react/review/review-card.tsx
index 797fbdced..ecbceb340 100644
--- a/frontend/src/react/review/review-card.tsx
+++ b/frontend/src/react/review/review-card.tsx
@@ -43,7 +43,7 @@ export interface CardHandlers {
revealNote: string;
avatarInner(
name: string,
- entity: { id: number; has_image: boolean; avatar_focus?: unknown } | null,
+ entity: { id: number; has_image: boolean; image_version?: string; avatar_focus?: unknown } | null,
representativeAssetId: number | null,
kind: string,
): string;
@@ -102,7 +102,7 @@ export function ReviewCard(props: ReviewCardProps) {
openEntity={handlers.openEntity}
avatar={handlers.avatarInner(subjectName,
row.entity_id
- ? { id: row.entity_id, has_image: !!row.has_image, avatar_focus: row.avatar_focus }
+ ? { id: row.entity_id, has_image: !!row.has_image, image_version: row.image_version, avatar_focus: row.avatar_focus }
: null,
null, subjectKind)} />
: row.asset_id
diff --git a/frontend/src/react/review/review.ts b/frontend/src/react/review/review.ts
index 50f018928..bbed6588b 100644
--- a/frontend/src/react/review/review.ts
+++ b/frontend/src/react/review/review.ts
@@ -117,6 +117,8 @@ export interface ReviewRow {
asset_mutation_revision?: number | null;
entity_id?: number;
has_image?: boolean;
+ /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
+ image_version?: string;
avatar_focus?: unknown;
avatar_url?: string;
video_count?: number;
diff --git a/frontend/src/react/taste/taste-page.tsx b/frontend/src/react/taste/taste-page.tsx
index a0cc31627..9c9bb67aa 100644
--- a/frontend/src/react/taste/taste-page.tsx
+++ b/frontend/src/react/taste/taste-page.tsx
@@ -156,7 +156,7 @@ function RankList({ rows, kind, visual, empty, onSignal, avatarInner }: RankList
? <EntityAvatar html={avatarInner(
row.name,
row.entity_id
- ? { id: row.entity_id, has_image: !!row.has_image, avatar_focus: row.avatar_focus }
+ ? { id: row.entity_id, has_image: !!row.has_image, image_version: row.image_version, avatar_focus: row.avatar_focus }
: null,
row.has_avatar ? row.representative_asset_id ?? null : null,
visual === 'creator' ? 'creator' : kind || 'performer',
diff --git a/frontend/src/react/taste/taste.ts b/frontend/src/react/taste/taste.ts
index 0740de10b..868194b22 100644
--- a/frontend/src/react/taste/taste.ts
+++ b/frontend/src/react/taste/taste.ts
@@ -44,6 +44,8 @@ export interface RankRow {
peach_items?: number;
entity_id?: number | null;
has_image?: boolean;
+ /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
+ image_version?: string;
avatar_focus?: unknown;
has_avatar?: boolean;
representative_asset_id?: number | null;
diff --git a/frontend/test/react/entity-page.test.tsx b/frontend/test/react/entity-page.test.tsx
index 44905d9a1..09096e314 100644
--- a/frontend/test/react/entity-page.test.tsx
+++ b/frontend/test/react/entity-page.test.tsx
@@ -37,6 +37,10 @@ interface Plan {
photos?: (query: URLSearchParams) => unknown;
set?: (query: URLSearchParams) => unknown;
feed?: unknown;
+ /** 每一次取资料现算一份,盖过 `entity`:写回前后服务端给的不一样时用。 */
+ entityFor?: () => Record<string, unknown>;
+ /** 换头像写回落地时调一下。 */
+ picked?: () => void;
/** `/api/feeds/check` 的回话,按次序一问一个;问完了就一直是最后那个。 */
checks?: string[];
}
@@ -52,12 +56,21 @@ function serve(plan: Plan = {}) {
const body = JSON.parse(String(init.body)) as Record<string, unknown>;
writes.push({ url: url.pathname, body });
if (url.pathname === '/api/entity-alias') return reply({ added: !body.remove, alias: body.alias });
+ if (url.pathname === '/api/avatar-pick') {
+ plan.picked?.();
+ return reply({ ok: true });
+ }
if (url.pathname === '/api/entity-name') {
return reply({ changed: true, canonical_name: body.canonical, previous_name: body.name });
}
return reply({ ok: true });
}
- if (url.pathname === '/api/entity') return reply(plan.entity ?? entity());
+ if (url.pathname === '/api/avatar-choices') {
+ return reply({ kind: 'performer', entity_id: 7001, names: [NAME], matched_names: [NAME], index_age_hours: 1,
+ index_stale: false, choices: [{ ref: 'gfriends:a.jpg', source: 'gfriends', label: 'a', width: 0, height: 0,
+ detail: '', found_by: '', current: false, crop: false, bases: [], focus: null, cast: 0 }] });
+ }
+ if (url.pathname === '/api/entity') return reply(plan.entityFor?.() ?? plan.entity ?? entity());
if (url.pathname === '/api/items') return reply(plan.items ? plan.items(query) : items([1, 2, 3]));
if (url.pathname === '/api/photos') return reply(plan.photos ? plan.photos(query) : photos(0));
if (url.pathname === '/api/photo-set') return reply(plan.set ? plan.set(query) : photos(2, { id: 9, title: '图集' }));
@@ -310,6 +323,31 @@ describe('写操作', () => {
expect(page.calls('/api/items')).toHaveLength(itemsBefore + 1);
});
+ it('换完头像:资料卡与作品网格都按重取回来的数据重建,图地址换成新版本', async () => {
+ let version = 'old';
+ const page = await open({
+ entityFor: () => entity({ image_version: version }),
+ items: () => (version === 'old' ? items([1, 2, 3]) : items([4, 5, 6])),
+ picked: () => { version = 'new' },
+ }, {
+ helpers: {
+ ...shellProps().helpers,
+ portraitImg: (_kind, data) => `<img data-test-portrait src="/entity-image?v=${String(data.image_version)}">`,
+ },
+ });
+ const portrait = () => page.props.hosts.filter.ownerDocument.querySelector('[data-test-portrait]')?.getAttribute('src');
+ expect(portrait()).toBe('/entity-image?v=old');
+ expect(cards(page.props)).toEqual(['1', '2', '3']);
+ await click(document.querySelector(`button[aria-label="更换${NAME}的头像"]`));
+ await settle();
+ await click(document.querySelector('[data-avatar-choice]'));
+ await settle();
+ expect(page.writes.map((one) => one.url)).toEqual(['/api/avatar-pick']);
+ expect(portrait()).toBe('/entity-image?v=new');
+ // 网格把第一页当初值存进自己的状态:只重取不换键,卡片(连同署名里她的脸)停在旧的那一份。
+ expect(cards(page.props)).toEqual(['4', '5', '6']);
+ });
+
it('换统称:先问,写回成功才去新名字那一页;回执的撤销是另一次写回,再回到原名', async () => {
const page = await open({ entity: entity({ aliases: ['しのだゆう'] }) });
vi.spyOn(legacyUi, 'confirmModal').mockImplementation((async (options: { onConfirm: () => Promise<unknown> }) =>
diff --git a/src/peach/web_catalog.py b/src/peach/web_catalog.py
index 000667495..ce868a67c 100644
--- a/src/peach/web_catalog.py
+++ b/src/peach/web_catalog.py
@@ -440,7 +440,8 @@ def entity_ref(contract: WebContract, kind: str, entity_id, name: str) -> dict:
不去问盘。
"""
has_image = contract.has_entity_image(kind, entity_id)
- ref = {"id": entity_id, "name": name, "has_image": has_image}
+ ref = {"id": entity_id, "name": name, "has_image": has_image,
+ "image_version": contract.entity_image_version(kind, entity_id)}
if has_image:
ref["avatar_focus"] = contract.avatar_focus(kind, entity_id)
return ref
@@ -1085,6 +1086,7 @@ def q_tops(contract: WebContract, n=28, jav=False, seed="", state="", page=0):
# 能无损放大的余量越大,全身站姿照在这里才谈得上看清是谁。
for performer in out["performers"]:
performer["has_image"] = contract.has_entity_image("performer", performer["id"])
+ performer["image_version"] = contract.entity_image_version("performer", performer["id"])
performer["avatar_focus"] = contract.avatar_focus("performer", performer["id"])
# 厂牌那排自己不出头像,但两排的 `rep` 都会进前端的 REP 表,卡片头像回落时读的
# 就是它——所以两排都得判。
diff --git a/src/peach/web_entity.py b/src/peach/web_entity.py
index 82ef31de4..33babc7c2 100644
--- a/src/peach/web_entity.py
+++ b/src/peach/web_entity.py
@@ -109,6 +109,7 @@ def label_layer(contract: WebContract, c, kind: str, entity_id: int) -> tuple[di
ref["has_logo"] = contract.has_logo(ref["name"])
for label in labels:
label["has_image"] = contract.has_entity_image("studio", label["id"])
+ label["image_version"] = contract.entity_image_version("studio", label["id"])
return maker, labels
@@ -271,6 +272,7 @@ def q_entity(contract: WebContract, args):
# 大位那条链的后两环同样要随资料下发:实体图取不到就直接从代表作头像起步,两样
# 都取不到就一个 `<img>` 都不出。判定在库连接之外做,它读的是目录索引。
d["has_image"] = contract.has_entity_image(kind, d["id"])
+ d["image_version"] = contract.entity_image_version(kind, d["id"])
attach_avatar_availability(contract, [d], key="representative_asset_id")
# 页脚那排共演者是同一个圆头像,用的也是同一条两级链,取景也是同一份 sidecar。
# 圆框越小越需要取景:一张 3762×2535 的封面塞进 44 px 的圆里,几何居中给出的是
@@ -278,6 +280,7 @@ def q_entity(contract: WebContract, args):
# 同一条链,差别只在框多大,所以判据不该按页面分岔。
for person in d["related_performers"]:
person["has_image"] = contract.has_entity_image("performer", person["id"])
+ person["image_version"] = contract.entity_image_version("performer", person["id"])
person["avatar_focus"] = contract.avatar_focus("performer", person["id"])
attach_avatar_availability(contract, d["related_performers"])
if kind == "agency":
@@ -588,6 +591,7 @@ def q_index(contract: WebContract, kind, q="", limit=600, offset=0, category="")
# 判定在库连接之外做,它读的是目录索引而不是账本。
for row in rows:
row["has_image"] = contract.has_entity_image(entity_kind, row.get("entity_id"))
+ row["image_version"] = contract.entity_image_version(entity_kind, row.get("entity_id"))
attach_avatar_availability(contract, rows)
#: 索引页的大图版式把头像裁成竖幅,几何居中会切掉脸。取景与资料页大图同一份
#: sidecar、同一个换算,只是这里按行取;读的是文件,所以放在连接之外。
@@ -865,6 +869,7 @@ def _suggest_faces(contract: WebContract, connection, kind: str, items: list[dic
for item in items:
entity_id = item["entity_id"]
item["has_image"] = contract.has_entity_image(kind, entity_id)
+ item["image_version"] = contract.entity_image_version(kind, entity_id)
if item["has_image"]:
item["avatar_focus"] = contract.avatar_focus(kind, entity_id)
item["rep"] = reps.get(entity_id)
@@ -962,6 +967,7 @@ def q_suggest(contract: WebContract, q: str, limit: int = SUGGEST_GROUP_LIMIT,
for kind in ("studio", "agency"):
for item in buckets.get(kind, []):
item["has_image"] = contract.has_entity_image(kind, item["entity_id"])
+ item["image_version"] = contract.entity_image_version(kind, item["entity_id"])
if kind == "studio":
item["has_logo"] = contract.has_logo(item["value"])
return {"q": query, "groups": [
diff --git a/src/peach/web_feeds.py b/src/peach/web_feeds.py
index b48902098..71332384c 100644
--- a/src/peach/web_feeds.py
+++ b/src/peach/web_feeds.py
@@ -238,6 +238,7 @@ def q_feeds(contract, args) -> dict:
for row in rows:
ref = web_catalog.entity_ref(contract, "performer", row["entity_id"], row["name"])
row["has_image"] = ref["has_image"]
+ row["image_version"] = ref["image_version"]
row["avatar_focus"] = ref.get("avatar_focus")
pending = connection.execute(
"SELECT count(*) FROM feed_discovery d WHERE d.ignored_at IS NULL"
diff --git a/src/peach/web_review.py b/src/peach/web_review.py
index f118a4cbe..dfd20520d 100644
--- a/src/peach/web_review.py
+++ b/src/peach/web_review.py
@@ -63,6 +63,7 @@ class ReviewContract(Protocol):
def read_connection(self): ...
def has_cover(self, code: str) -> bool: ...
def has_entity_image(self, kind: str, entity_id) -> bool: ...
+ def entity_image_version(self, kind: str, entity_id) -> str: ...
def write_transaction(self): ...
@@ -419,6 +420,7 @@ def _review_rows(contract: ReviewContract, category: str) -> tuple[list[dict], s
if face_kind:
for row in rows:
row["has_image"] = contract.has_entity_image(face_kind, row.get("entity_id"))
+ row["image_version"] = contract.entity_image_version(face_kind, row.get("entity_id"))
#: 取景与索引页、资料页同一份 sidecar、同一个换算。这张脸是复核时认人的
#: 唯一线索,几何居中把脑袋裁掉就等于没有这一格。
row["avatar_focus"] = contract.avatar_focus(face_kind, row.get("entity_id"))
diff --git a/src/peach/web_state.py b/src/peach/web_state.py
index fdb53880b..274b9e84d 100644
--- a/src/peach/web_state.py
+++ b/src/peach/web_state.py
@@ -20,6 +20,7 @@ import threading
import time
from collections import OrderedDict
+from collections.abc import Mapping
from pathlib import Path
from typing import NamedTuple
@@ -49,12 +50,12 @@ from .task_runs import TaskRunStore
class AvatarRootIndex(NamedTuple):
"""`avatar_root` 一次扫描的产物。两样东西同处一个目录,分开扫就是白扫两遍。
- `entity_images` 是已装实体图的 casefold 落盘名,`generated` 是已经裁好的头像
- 资产 id。两者的判据不一样,故意不合并成一个集合:实体图有就是有、没有就是没有,
- 而头像是按需生成的,「目录里没有」只说明还没裁过。
+ `entity_images` 是已装实体图的 casefold 落盘名到它的版本(修改时间的十六进制纳秒),
+ `generated` 是已经裁好的头像资产 id。两者的判据不一样,故意不合并成一个集合:实体图
+ 有就是有、没有就是没有,而头像是按需生成的,「目录里没有」只说明还没裁过。
"""
- entity_images: frozenset[str]
+ entity_images: Mapping[str, str]
generated: frozenset[int]
@@ -489,8 +490,13 @@ class WebContract:
version=path_version(self.avatar_root))
def _scan_avatar_root(self) -> AvatarRootIndex:
- """一次目录扫描同时收齐实体图和已裁头像。目录不存在就是两个空集合。"""
- entity_images: set[str] = set()
+ """一次目录扫描同时收齐实体图和已裁头像。目录不存在就是两个空集合。
+
+ 实体图顺手记下修改时间:换头像是原地覆盖同一个文件,地址不带版本时,同一页里
+ 浏览器直接复用内存里那张旧图,不刷新就看不到新的。Windows 上 `entry.stat()`
+ 取自目录枚举本身,不多一次系统调用。
+ """
+ entity_images: dict[str, str] = {}
generated: set[int] = set()
try:
with os.scandir(self.avatar_root) as entries:
@@ -500,7 +506,7 @@ class WebContract:
# `.ct`、`.provenance.json`、`.face.json` 都是边车,不是
# `/entity-image` 会取的文件,不算这个实体有图。
if entry.is_file():
- entity_images.add(name[:-len(".img")])
+ entity_images[name[:-len(".img")]] = f"{entry.stat().st_mtime_ns:x}"
elif name.endswith(".jpg"):
# 头像按资产 id 落盘。生成中途的 `<id>.<格>.tmp.jpg` 不算数,
# 它随时会被删掉或改名。
@@ -508,8 +514,19 @@ class WebContract:
if stem.isdigit() and entry.is_file():
generated.add(int(stem))
except OSError:
- return AvatarRootIndex(frozenset(), frozenset())
- return AvatarRootIndex(frozenset(entity_images), frozenset(generated))
+ return AvatarRootIndex({}, frozenset())
+ return AvatarRootIndex(entity_images, frozenset(generated))
+
+ def entity_image_version(self, kind: str, entity_id) -> str:
+ """这个实体那张图的版本,页面拼进 `/entity-image` 的 `v=`;没有图是空串。
+
+ 判据与 `has_entity_image` 是同一份索引,两者不会一个说有、一个说没有。
+ """
+ if not self.has_entity_image(kind, entity_id):
+ return ""
+ # 两次取索引之间缓存可能刚失效过,第二次那份里未必还有这个键。
+ return self.avatar_root_index().entity_images.get(
+ entity_image_key(kind, entity_id).casefold(), "")
def has_entity_image(self, kind: str, entity_id) -> bool:
"""`/entity-image` 能不能取到这个实体的图。
diff --git a/src/peach/web_stats.py b/src/peach/web_stats.py
index 1aa3baf8b..22b5831fa 100644
--- a/src/peach/web_stats.py
+++ b/src/peach/web_stats.py
@@ -92,6 +92,7 @@ def _attach_taste_face_availability(contract: WebContract, rankings: dict) -> No
continue
for row in rows:
row["has_image"] = contract.has_entity_image(kind, row.get("entity_id"))
+ row["image_version"] = contract.entity_image_version(kind, row.get("entity_id"))
#: 榜上那颗 30 px 的圆头像和别处同一份 sidecar、同一个换算。框越小,几何
#: 居中切掉脸的代价越大——这一格除了脸没有别的东西能认人。
row["avatar_focus"] = contract.avatar_focus(kind, row.get("entity_id"))
diff --git a/tests/test_previews.py b/tests/test_previews.py
index d66cd2972..dc0c41dbd 100644
--- a/tests/test_previews.py
+++ b/tests/test_previews.py
@@ -245,7 +245,7 @@ class EntityImageAvailabilityTests(unittest.TestCase):
"""目录还没建(新机器、干净数据目录)时全部退回首字母,不是报错。"""
root = Path(self.tmp.name).resolve()
contract = WebContract(root / "ledger.db", avatar_root=root / "nowhere")
- self.assertEqual(contract.avatar_root_index().entity_images, frozenset())
+ self.assertEqual(dict(contract.avatar_root_index().entity_images), {})
self.assertFalse(contract.has_entity_image("performer", 11))
def test_a_newly_installed_image_shows_up_after_the_cache_bust(self):
@@ -269,6 +269,24 @@ class EntityImageAvailabilityTests(unittest.TestCase):
self.assertEqual(
(self.avatars / f"{entity_image_key('creator', 12)}.img").read_bytes(), b"x")
+ def test_replacing_an_image_in_place_changes_its_version(self):
+ """换头像原地覆盖同一个文件。页面把版本拼进 `/entity-image` 的地址,版本不变的话
+ 同一页里浏览器直接复用内存里那张旧图,要刷新才看得到新的。"""
+ self.assertEqual(self.contract.entity_image_version("performer", 11), "")
+ install_entity_avatar(self.avatars, "performer", 11, b"old", "image/jpeg",
+ {"source": "test"}, probe_face=False)
+ self.contract.cache_bust()
+ first = self.contract.entity_image_version("performer", 11)
+ self.assertTrue(first)
+ path = self.avatars / f"{entity_image_key('performer', 11)}.img"
+ install_entity_avatar(self.avatars, "performer", 11, b"new", "image/jpeg",
+ {"source": "test"}, probe_face=False)
+ # 文件系统的时间粒度可能粗到两次写入落在同一刻,这里把第二次的修改时间推后一秒。
+ stamp = path.stat().st_mtime_ns + 1_000_000_000
+ os.utime(path, ns=(stamp, stamp))
+ self.contract.cache_bust()
+ self.assertNotEqual(self.contract.entity_image_version("performer", 11), first)
+
class AvatarAvailabilityTests(unittest.TestCase):
"""头像不是有和没有两态:`/avatar` 按需生成,还没裁过不等于取不到。
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index cc38f6659..f1aaec3fa 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -1555,12 +1555,14 @@ class WebUiSourceTests(unittest.TestCase):
# 顶栏圆头像、卡片署名、共演者、资料页大位共用 entityFaceImg;
# `/entity-image` 和 `/avatar` 两个地址只在这一个函数里拼。
self.assertPageContains(
- "function entityFaceImg({kind='performer',id=null,hasImage=false,rep=null,")
+ "function entityFaceImg({kind='performer',id=null,hasImage=false,version='',rep=null,")
self.assertPageContains("const useEntity=!!(id&&hasImage);")
# `thumb` 那一档也只在这里拼:索引页一屏几十格取派生件,资料页大位取原件。
- self.assertPageContains(
+ self.assertCode(
"const entitySrc=useEntity?"
- "`/entity-image?kind=${kind}&id=${id}${thumb?'&thumb=1':''}`:'';")
+ "`/entity-image?kind=${kind}&id=${id}${thumb?'&thumb=1':''}`
+"
+ " +(version?`&v=${encodeURIComponent(version)}`:''):'';")
self.assertPageContains("const avatarSrc=rep?`/avatar?id=${rep}`:'';")
self.assertCode(
"const src=useLogo?`/logo?studio=${encodeURIComponent(logo)}&variant=${logoVariant}`\n"
@@ -1709,7 +1711,7 @@ class WebUiSourceTests(unittest.TestCase):
"""
self.assertPageContains("const hint=focus===undefined?(ref&&ref.avatar_focus)||null:focus;")
# 详情页的出镜者格子不走 avatarInner,壳交给详情岛的那一格自己把取景递进去。
- self.assertPageContains("faceHtml:ref=>entityFaceImg({id:ref.id,hasImage:ref.has_image,focus:ref.avatar_focus}),")
+ self.assertPageContains("faceHtml:ref=>entityFaceImg({id:ref.id,hasImage:ref.has_image,version:ref.image_version,focus:ref.avatar_focus}),")
def test_an_unlaid_out_frame_is_waited_for_instead_of_measured_as_zero(self):
"""图加载完时框还没布局,`load` 不会再来第二次。
@@ -2849,7 +2851,7 @@ class WebUiSourceTests(unittest.TestCase):
# 人物格走和顶栏圆头像同一个 entityFaceImg;这一格没有代表作头像可退,
# 装了实体图才出 `<img>`,否则就是首字母垫底。
# 厂牌那一格装了标识才出 `<img>`:`frontend/test/react/item-detail.test.tsx`。
- self.assertPageContains("faceHtml:ref=>entityFaceImg({id:ref.id,hasImage:ref.has_image,focus:ref.avatar_focus}),")
+ self.assertPageContains("faceHtml:ref=>entityFaceImg({id:ref.id,hasImage:ref.has_image,version:ref.image_version,focus:ref.avatar_focus}),")
def test_playback_keys_reach_both_the_detail_player_and_immerse(self):
# 两边的 Video.js 读的都是原生 video 元素,沉浸模式拉不到播放器脚本时还是裸 video,
diff --git a/web/app.js b/web/app.js
index 47d19ff3d..470d3636d 100644
--- a/web/app.js
+++ b/web/app.js
@@ -1423,11 +1423,14 @@ document.addEventListener('visibilitychange',()=>{if(document.hidden)releaseHove
/* `thumb` 要的是实体图缩到长边 640 的那一份。开给一屏几十格的位置用:实体图是给
资料页大位存的照片,本库 727 张均 221 KB,索引页一屏 120 格铺进 150 px 的格子就是
十几 MB,而屏幕上用得着的只有其中百分之几的像素。资料页仍取原件——那里就是要看清。 */
-function entityFaceImg({kind='performer',id=null,hasImage=false,rep=null,mark=null,logo='',
+/* `version` 是服务端随 `has_image` 下发的 `image_version`。换头像原地覆盖同一个文件,
+ 地址不跟着变的话,同一页里浏览器直接复用内存里那张旧图,要刷新才看得到新的。 */
+function entityFaceImg({kind='performer',id=null,hasImage=false,version='',rep=null,mark=null,logo='',
logoVariant='logo',alt='',lazy=true,style='',dropStyle=false,
focus=null,thumb=false}={}){
const useEntity=!!(id&&hasImage);
- const entitySrc=useEntity?`/entity-image?kind=${kind}&id=${id}${thumb?'&thumb=1':''}`:'';
+ const entitySrc=useEntity?`/entity-image?kind=${kind}&id=${id}${thumb?'&thumb=1':''}`
+ +(version?`&v=${encodeURIComponent(version)}`:''):'';
// `rep` 由服务端的 has_avatar 决定有没有值,没有就不出这一环。
const avatarSrc=rep?`/avatar?id=${rep}`:'';
/* 公司的门面是它自己的标识,不是作品截图——那是某部片的画面,说的是别人的事。
@@ -1470,7 +1473,7 @@ function avatarInner(name,ref,repId,kind='performer',markId=null,logoName='',log
// 厂牌大格是同一个模板里的例外,由调用方点名要 `large`。
const hint=focus===undefined?(ref&&ref.avatar_focus)||null:focus;
return `<span class="ini">${esc((name||'?').slice(0,1))}</span>`+
- entityFaceImg({kind,id:ref&&ref.id,hasImage:!!(ref&&ref.has_image),rep:repId,mark:markId,
+ entityFaceImg({kind,id:ref&&ref.id,hasImage:!!(ref&&ref.has_image),version:ref&&ref.image_version,rep:repId,mark:markId,
logo:logoName,logoVariant,focus:hint,thumb});
}
/* 人脸取景:资料页圆框按检出的人脸中心取景(/api/entity 的 avatar_focus)。
@@ -2153,7 +2156,7 @@ function catalogTags(filters){
源图 1:1。取景与索引页同一份 sidecar、同一个换算。 */
function tierPerformer(x){
return {name:x.k,ringHtml:`<span data-tier-initial>${esc(x.k.slice(0,1))}</span>${entityFaceImg(
- {id:x.id,hasImage:x.has_image,rep:x.has_avatar?x.rep:null,style:facePos(x.avatar_focus),focus:x.avatar_focus})}`};
+ {id:x.id,hasImage:x.has_image,version:x.image_version,rep:x.has_avatar?x.rep:null,style:facePos(x.avatar_focus),focus:x.avatar_focus})}`};
}
/* 正规厂牌用官网 logo;缺失时只显示首两个字,绝不把作品截图冒充厂牌图标。
@@ -3156,7 +3159,7 @@ function peopleIndexLayout(){
function personRingHtml(x,kind,big){
const ref=x.entity_id||x.id;
const company=kind==='studio'||kind==='agency';
- return avatarInner(x.k,ref?{id:ref,has_image:x.has_image}:null,
+ return avatarInner(x.k,ref?{id:ref,has_image:x.has_image,image_version:x.image_version}:null,
x.has_avatar&&!company?x.rep:null,kind,x.mark,x.has_logo?x.k:'',
company&&big?'large':'ring',company?null:x.avatar_focus,true);
}
@@ -3331,14 +3334,14 @@ const entityPageHelpers={
各自拍的,拿其中一部的画面当门面,说的是别人的事。 */
portraitImg:(kind,d)=>{
const company=kind==='studio'||kind==='agency';
- return d.id?entityFaceImg({kind,id:d.id,hasImage:d.has_image,
+ return d.id?entityFaceImg({kind,id:d.id,hasImage:d.has_image,version:d.image_version,
rep:company||!d.has_avatar?null:d.representative_asset_id,
mark:kind==='agency'?d.mark_link_id:null,
logo:company&&d.has_logo?d.canonical_name:'',logoVariant:'large',
alt:esc(d.canonical_name),lazy:false,
style:company?'':facePos(d.avatar_focus),focus:company?null:d.avatar_focus,
dropStyle:true}):''},
- costarImg:x=>entityFaceImg({id:x.id,hasImage:x.has_image,rep:x.has_avatar?x.rep:null,
+ costarImg:x=>entityFaceImg({id:x.id,hasImage:x.has_image,version:x.image_version,rep:x.has_avatar?x.rep:null,
style:facePos(x.avatar_focus),focus:x.avatar_focus}),
wireDrag:row=>{if(row)wireDrag(row)},
wireScroller:row=>{if(row)wireHorizontalScroller(row)},
@@ -4277,7 +4280,7 @@ const searchHelpers={
coverHtml:card=>`<span class="pic">${searchCoverImage(card)}</span>`,
/* 人和公司的门面走索引页同一条兜底链:人是实体图 → 代表作头像,厂牌是标识,
事务所是官网站点圆标;都取不到就是首字母。 */
- faceHtml:(item,kind)=>avatarInner(item.value,{id:item.entity_id,has_image:item.has_image,avatar_focus:item.avatar_focus},
+ faceHtml:(item,kind)=>avatarInner(item.value,{id:item.entity_id,has_image:item.has_image,image_version:item.image_version,avatar_focus:item.avatar_focus},
item.rep||null,kind,item.mark||null,item.has_logo?item.value:'','icon',undefined,true),
present:menu=>presentMenu(menu),
dismiss:menu=>dismissMenu(menu),
@@ -4354,7 +4357,7 @@ const itemDetailHelpers={
displayName:it=>javDisplayName(it),
performerLabel:it=>performerLabel(it),
// 和顶栏圆头像同一条判据:没装实体图就不出 `<img>`,取不到就是首字母垫底。
- faceHtml:ref=>entityFaceImg({id:ref.id,hasImage:ref.has_image,focus:ref.avatar_focus}),
+ faceHtml:ref=>entityFaceImg({id:ref.id,hasImage:ref.has_image,version:ref.image_version,focus:ref.avatar_focus}),
queueThumbHtml:it=>mixFacePoster(it,'small'),
queueAvatarHtml:it=>cardIdentity(it,false).avatar,
mixLabel:it=>mixLabel(it),
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 39cdf59bc..60a18b17a 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -1,31 +1,31 @@
import { LOC as e, api as t, brandIcon as n, entityPath as r, esc as i, fmtClock as a, fmtDur as o, fmtSize as s, foldName as c, icon as l, linkMarkUrl as u, mapLimit as d, officialLinkText as f, realDuration as p, requestErrorMessage as m, seededRank as h, siteMarkUrl as g } from "/js/core.js";
-import { MEDIA_SOURCE_ICONS as _, attachOverlayScrollbar as v, closeAnchoredMenu as y, confirmModal as b, dialSliderHtml as x, dismissMenu as S, emptyStateHtml as C, fitSkeleton as w, growCollapse as T, iconSwapHtml as E, iconSwitchHtml as D, indexSkeletonHtml as O, loadingDotsHtml as k, moveGlidePane as A, noteHtml as j, popBadges as M, popCount as N, presentMenu as P, revealTexts as ee, scrollMovesAnchor as F, selectFieldHtml as I, setActionBusy as te, setCollapseOpen as ne, setIconSwap as re, spinnerHtml as ie, swapText as ae, wireAnchoredMenu as oe, wireContextCard as se, wireDialSlider as ce, wireHorizontalScroller as le, wireIconSwitch as ue, wireSelectField as L } from "/js/ui-components.js";
-import { GLOW_SPOT_LABELS as de, GLOW_SWATCHES as fe, GLOW_SWATCH_FAMILIES as pe, HOME_GLOW_SPOTS as me, glowColor as he, glowPresetName as ge, isNativeGlass as _e, normalizeHomeGlow as ve } from "/js/home-glow.js";
+import { MEDIA_SOURCE_ICONS as _, attachOverlayScrollbar as v, closeAnchoredMenu as y, confirmModal as b, dialSliderHtml as x, dismissMenu as S, emptyStateHtml as C, fitSkeleton as w, growCollapse as T, iconSwapHtml as E, iconSwitchHtml as D, indexSkeletonHtml as O, loadingDotsHtml as k, moveGlidePane as A, noteHtml as j, popBadges as M, popCount as N, presentMenu as P, revealTexts as ee, scrollMovesAnchor as F, selectFieldHtml as te, setActionBusy as ne, setCollapseOpen as re, setIconSwap as ie, spinnerHtml as ae, swapText as oe, wireAnchoredMenu as se, wireContextCard as ce, wireDialSlider as le, wireHorizontalScroller as ue, wireIconSwitch as de, wireSelectField as I } from "/js/ui-components.js";
+import { GLOW_SPOT_LABELS as fe, GLOW_SWATCHES as pe, GLOW_SWATCH_FAMILIES as me, HOME_GLOW_SPOTS as he, glowColor as ge, glowPresetName as _e, isNativeGlass as ve, normalizeHomeGlow as ye } from "/js/home-glow.js";
//#region \0rolldown/runtime.js
-var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, Se = Object.getOwnPropertyNames, Ce = Object.getPrototypeOf, we = Object.prototype.hasOwnProperty, Te = (e, t, n) => () => {
+var be = Object.create, xe = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, Ce = Object.getOwnPropertyNames, we = Object.getPrototypeOf, Te = Object.prototype.hasOwnProperty, Ee = (e, t, n) => () => {
if (n) throw n[0];
try {
return e && (t = e(e = 0)), t;
} catch (e) {
throw n = [e], e;
}
-}, Ee = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), De = (e, t) => {
+}, De = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Oe = (e, t) => {
let n = {};
- for (var r in e) be(n, r, {
+ for (var r in e) xe(n, r, {
get: e[r],
enumerable: !0
});
- return t || be(n, Symbol.toStringTag, { value: "Module" }), n;
-}, Oe = (e, t, n, r) => {
- if (t && typeof t == "object" || typeof t == "function") for (var i = Se(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !we.call(e, s) && s !== n && be(e, s, {
+ return t || xe(n, Symbol.toStringTag, { value: "Module" }), n;
+}, ke = (e, t, n, r) => {
+ if (t && typeof t == "object" || typeof t == "function") for (var i = Ce(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !Te.call(e, s) && s !== n && xe(e, s, {
get: ((e) => t[e]).bind(null, s),
- enumerable: !(r = xe(t, s)) || r.enumerable
+ enumerable: !(r = Se(t, s)) || r.enumerable
});
return e;
-}, ke = (e, t, n) => (n = e == null ? {} : ye(Ce(e)), Oe(t || !e || !e.__esModule || !we.call(e, "default") ? be(n, "default", {
+}, Ae = (e, t, n) => (n = e == null ? {} : be(we(e)), ke(t || !e || !e.__esModule || !Te.call(e, "default") ? xe(n, "default", {
value: e,
enumerable: !0
-}) : n, e)), Ae = (e) => we.call(e, "module.exports") ? e["module.exports"] : Oe(be({}, "__esModule", { value: !0 }), e), je = /* @__PURE__ */ Ee(((e) => {
+}) : n, e)), je = (e) => Te.call(e, "module.exports") ? e["module.exports"] : ke(xe({}, "__esModule", { value: !0 }), e), Me = /* @__PURE__ */ De(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -224,9 +224,9 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
};
};
-})), Me = /* @__PURE__ */ Ee(((e, t) => {
- t.exports = je();
-})), Ne = /* @__PURE__ */ Ee(((e) => {
+})), Ne = /* @__PURE__ */ De(((e, t) => {
+ t.exports = Me();
+})), Pe = /* @__PURE__ */ De(((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.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.for("react.view_transition"), m = Symbol.iterator;
function h(e) {
return typeof e != "object" || !e ? null : (e = m && e[m] || e["@@iterator"], typeof e == "function" ? e : null);
@@ -358,7 +358,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
if (e._status === 1) return e._result.default;
throw e._result;
}
- var I = typeof reportError == "function" ? reportError : function(e) {
+ var te = typeof reportError == "function" ? reportError : function(e) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var t = new window.ErrorEvent("error", {
bubbles: !0,
@@ -373,26 +373,26 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
console.error(e);
};
- function te(e) {
+ function ne(e) {
var t = T.T, n = {};
n.types = t === null ? null : t.types, T.T = n;
try {
var r = e(), i = T.S;
- i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w, I);
+ i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w, te);
} catch (e) {
- I(e);
+ te(e);
} finally {
t !== null && n.types !== null && (t.types = n.types), T.T = t;
}
}
- function ne(e) {
+ function re(e) {
var t = T.T;
if (t !== null) {
var n = t.types;
n === null ? t.types = [e] : n.indexOf(e) === -1 && n.push(e);
- } else te(ne.bind(null, e));
+ } else ne(re.bind(null, e));
}
- var re = {
+ var ie = {
map: ee,
forEach: function(e, t, n) {
ee(e, function() {
@@ -415,12 +415,12 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
return e;
}
};
- e.Activity = f, e.Children = re, e.Component = y, e.Fragment = r, e.Profiler = a, e.PureComponent = x, e.StrictMode = i, e.Suspense = l, e.ViewTransition = p, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, e.__COMPILER_RUNTIME = {
+ e.Activity = f, e.Children = ie, e.Component = y, e.Fragment = r, e.Profiler = a, e.PureComponent = x, e.StrictMode = i, e.Suspense = l, e.ViewTransition = p, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, e.__COMPILER_RUNTIME = {
__proto__: null,
c: function(e) {
return T.H.useMemoCache(e);
}
- }, e.addTransitionType = ne, e.cache = function(e) {
+ }, e.addTransitionType = re, e.cache = function(e) {
return function() {
return e.apply(null, arguments);
};
@@ -482,7 +482,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
type: e,
compare: t === void 0 ? null : t
};
- }, e.startTransition = te, e.unstable_useCacheRefresh = function() {
+ }, e.startTransition = ne, e.unstable_useCacheRefresh = function() {
return T.H.useCacheRefresh();
}, e.use = function(e) {
return T.H.use(e);
@@ -521,10 +521,10 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}, e.useTransition = function() {
return T.H.useTransition();
}, e.version = "19.3.0";
-})), Pe = /* @__PURE__ */ Ee(((e, t) => {
- t.exports = Ne();
-})), Fe = /* @__PURE__ */ Ee(((e) => {
- var t = Pe();
+})), Fe = /* @__PURE__ */ De(((e, t) => {
+ t.exports = Pe();
+})), Ie = /* @__PURE__ */ De(((e) => {
+ var t = Fe();
function n(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -651,7 +651,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}, e.useFormStatus = function() {
return l.H.useHostTransitionStatus();
}, e.version = "19.3.0";
-})), Ie = /* @__PURE__ */ Ee(((e, t) => {
+})), Le = /* @__PURE__ */ De(((e, t) => {
function n() {
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);
@@ -659,9 +659,9 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
console.error(e);
}
}
- n(), t.exports = Fe();
-})), Le = /* @__PURE__ */ Ee(((e) => {
- var t = Me(), n = Pe(), r = Ie();
+ n(), t.exports = Ie();
+})), Re = /* @__PURE__ */ De(((e) => {
+ var t = Ne(), n = Fe(), r = Le();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -831,14 +831,14 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
return null;
}
- var w = Object.assign, T = Symbol.for("react.element"), E = Symbol.for("react.transitional.element"), D = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), M = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), ee = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), te = Symbol.for("react.activity"), ne = Symbol.for("react.legacy_hidden"), re = Symbol.for("react.memo_cache_sentinel"), ie = Symbol.for("react.view_transition"), ae = Symbol.for("react.recoverable"), oe = Symbol.iterator;
- function se(e) {
- return typeof e != "object" || !e ? null : (e = oe && e[oe] || e["@@iterator"], typeof e == "function" ? e : null);
+ var w = Object.assign, T = Symbol.for("react.element"), E = Symbol.for("react.transitional.element"), D = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), M = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), ee = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), te = Symbol.for("react.lazy"), ne = Symbol.for("react.activity"), re = Symbol.for("react.legacy_hidden"), ie = Symbol.for("react.memo_cache_sentinel"), ae = Symbol.for("react.view_transition"), oe = Symbol.for("react.recoverable"), se = Symbol.iterator;
+ function ce(e) {
+ return typeof e != "object" || !e ? null : (e = se && e[se] || e["@@iterator"], typeof e == "function" ? e : null);
}
- var ce = Symbol.for("react.client.reference");
- function le(e) {
+ var le = Symbol.for("react.client.reference");
+ function ue(e) {
if (e == null) return null;
- if (typeof e == "function") return e.$$typeof === ce ? null : e.displayName || e.name || null;
+ if (typeof e == "function") return e.$$typeof === le ? null : e.displayName || e.name || null;
if (typeof e == "string") return e;
switch (e) {
case O: return "Fragment";
@@ -846,8 +846,8 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case k: return "StrictMode";
case P: return "Suspense";
case ee: return "SuspenseList";
- case te: return "Activity";
- case ie: return "ViewTransition";
+ case ne: return "Activity";
+ case ae: return "ViewTransition";
}
if (typeof e == "object") switch (e.$$typeof) {
case D: return "Portal";
@@ -856,38 +856,38 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case N:
var t = e.render;
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
- case F: return t = e.displayName || null, t === null ? le(e.type) || "Memo" : t;
- case I:
+ case F: return t = e.displayName || null, t === null ? ue(e.type) || "Memo" : t;
+ case te:
t = e._payload, e = e._init;
try {
- return le(e(t));
+ return ue(e(t));
} catch {}
}
return null;
}
- var ue = Array.isArray, L = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, de = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, fe = {
+ var de = Array.isArray, I = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, fe = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, pe = {
pending: !1,
data: null,
method: null,
action: null
- }, pe = [], me = -1;
- function he(e) {
+ }, me = [], he = -1;
+ function ge(e) {
return { current: e };
}
- function ge(e) {
- 0 > me || (e.current = pe[me], pe[me] = null, me--);
+ function _e(e) {
+ 0 > he || (e.current = me[he], me[he] = null, he--);
}
- function _e(e, t) {
- me++, pe[me] = e.current, e.current = t;
+ function ve(e, t) {
+ he++, me[he] = e.current, e.current = t;
}
- var ve = he(null), ye = he(null), be = he(null), xe = he(null);
- function Se(e, t) {
- switch (_e(be, t), _e(ye, e), _e(ve, null), t.nodeType) {
+ var ye = ge(null), be = ge(null), xe = ge(null), Se = ge(null);
+ function Ce(e, t) {
+ switch (ve(xe, t), ve(be, e), ve(ye, null), t.nodeType) {
case 9:
case 11:
- e = (e = t.documentElement) && (e = e.namespaceURI) ? mp(e) : 0;
+ e = (e = t.documentElement) && (e = e.namespaceURI) ? hp(e) : 0;
break;
- default: if (e = t.tagName, t = t.namespaceURI) t = mp(t), e = hp(t, e);
+ default: if (e = t.tagName, t = t.namespaceURI) t = hp(t), e = gp(t, e);
else switch (e) {
case "svg":
e = 1;
@@ -898,34 +898,34 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
default: e = 0;
}
}
- ge(ve), _e(ve, e);
+ _e(ye), ve(ye, e);
}
- function Ce() {
- ge(ve), ge(ye), ge(be);
+ function we() {
+ _e(ye), _e(be), _e(xe);
}
- function we(e) {
+ function Te(e) {
var t = e.memoizedState;
- t !== null && (dh._currentValue = t.memoizedState, _e(xe, e)), t = ve.current;
- var n = hp(t, e.type);
- t !== n && (_e(ye, e), _e(ve, n));
+ t !== null && (fh._currentValue = t.memoizedState, ve(Se, e)), t = ye.current;
+ var n = gp(t, e.type);
+ t !== n && (ve(be, e), ve(ye, n));
}
- function Te(e) {
- ye.current === e && (ge(ve), ge(ye)), xe.current === e && (ge(xe), dh._currentValue = fe);
+ function Ee(e) {
+ be.current === e && (_e(ye), _e(be)), Se.current === e && (_e(Se), fh._currentValue = pe);
}
- var Ee, De;
- function Oe(e) {
- if (Ee === void 0) try {
+ var De, Oe;
+ function ke(e) {
+ if (De === void 0) try {
throw Error();
} catch (e) {
var t = e.stack.trim().match(/\n( *(at )?)/);
- Ee = t && t[1] || "", De = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
+ De = t && t[1] || "", Oe = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
}
- return "\n" + Ee + e + De;
+ return "\n" + De + e + Oe;
}
- var ke = !1;
- function Ae(e, t) {
- if (!e || ke) return "";
- ke = !0;
+ var Ae = !1;
+ function je(e, t) {
+ if (!e || Ae) return "";
+ Ae = !0;
var n = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
try {
@@ -996,50 +996,50 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
}
} finally {
- ke = !1, Error.prepareStackTrace = n;
+ Ae = !1, Error.prepareStackTrace = n;
}
- return (n = e ? e.displayName || e.name : "") ? Oe(n) : "";
+ return (n = e ? e.displayName || e.name : "") ? ke(n) : "";
}
- function je(e, t) {
+ function Me(e, t) {
switch (e.tag) {
case 26:
case 27:
- case 5: return Oe(e.type);
- case 16: return Oe("Lazy");
- case 13: return e.child !== t && t !== null ? Oe("Suspense Fallback") : Oe("Suspense");
- case 19: return Oe("SuspenseList");
+ case 5: return ke(e.type);
+ case 16: return ke("Lazy");
+ case 13: return e.child !== t && t !== null ? ke("Suspense Fallback") : ke("Suspense");
+ case 19: return ke("SuspenseList");
case 0:
- case 15: return Ae(e.type, !1);
- case 11: return Ae(e.type.render, !1);
- case 1: return Ae(e.type, !0);
- case 31: return Oe("Activity");
- case 30: return Oe("ViewTransition");
+ case 15: return je(e.type, !1);
+ case 11: return je(e.type.render, !1);
+ case 1: return je(e.type, !0);
+ case 31: return ke("Activity");
+ case 30: return ke("ViewTransition");
default: return "";
}
}
- function Ne(e) {
+ function Pe(e) {
try {
var t = "", n = null;
do
- t += je(e, n), n = e, e = e.return;
+ t += Me(e, n), n = e, e = e.return;
while (e);
return t;
} catch (e) {
return "\nError generating stack: " + e.message + "\n" + e.stack;
}
}
- var Fe = Object.prototype.hasOwnProperty, Le = t.unstable_scheduleCallback, Re = t.unstable_cancelCallback, ze = t.unstable_shouldYield, Be = t.unstable_requestPaint, R = t.unstable_now, Ve = t.unstable_getCurrentPriorityLevel, He = t.unstable_ImmediatePriority, Ue = t.unstable_UserBlockingPriority, We = t.unstable_NormalPriority, Ge = t.unstable_LowPriority, Ke = t.unstable_IdlePriority, qe = t.log, Je = t.unstable_setDisableYieldValue, Ye = null, Xe = null;
- function Ze(e) {
- if (typeof qe == "function" && Je(e), Xe && typeof Xe.setStrictMode == "function") try {
- Xe.setStrictMode(Ye, e);
+ var Ie = Object.prototype.hasOwnProperty, Re = t.unstable_scheduleCallback, ze = t.unstable_cancelCallback, Be = t.unstable_shouldYield, Ve = t.unstable_requestPaint, L = t.unstable_now, He = t.unstable_getCurrentPriorityLevel, Ue = t.unstable_ImmediatePriority, We = t.unstable_UserBlockingPriority, Ge = t.unstable_NormalPriority, Ke = t.unstable_LowPriority, qe = t.unstable_IdlePriority, Je = t.log, Ye = t.unstable_setDisableYieldValue, Xe = null, Ze = null;
+ function Qe(e) {
+ if (typeof Je == "function" && Ye(e), Ze && typeof Ze.setStrictMode == "function") try {
+ Ze.setStrictMode(Xe, e);
} catch {}
}
- var Qe = Math.clz32 ? Math.clz32 : tt, $e = Math.log, et = Math.LN2;
- function tt(e) {
- return e >>>= 0, e === 0 ? 32 : 31 - ($e(e) / et | 0) | 0;
+ var $e = Math.clz32 ? Math.clz32 : nt, et = Math.log, tt = Math.LN2;
+ function nt(e) {
+ return e >>>= 0, e === 0 ? 32 : 31 - (et(e) / tt | 0) | 0;
}
- var nt = 256, rt = 262144, it = 4194304;
- function at(e) {
+ var rt = 256, it = 262144, at = 4194304;
+ function ot(e) {
var t = e & 42;
if (t !== 0) return t;
switch (e & -e) {
@@ -1077,27 +1077,27 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
default: return e;
}
}
- function ot(e, t, n) {
+ function st(e, t, n) {
var r = e.pendingLanes;
if (r === 0) return 0;
var i = 0, a = e.suspendedLanes, o = e.pingedLanes;
e = e.warmLanes;
var s = r & 134217727;
- return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = at(n))) : i = at(o) : i = at(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = at(n))) : i = at(o)) : i = at(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;
+ return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = ot(n))) : i = ot(o) : i = ot(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = ot(n))) : i = ot(o)) : i = ot(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;
}
- function st(e, t) {
+ function ct(e, t) {
return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;
}
- function ct(e, t) {
+ function lt(e, t) {
t & 8 && (t |= t & 32);
var n = e.entangledLanes;
if (n !== 0) for (e = e.entanglements, n &= t; 0 < n;) {
- var r = 31 - Qe(n), i = 1 << r;
+ var r = 31 - $e(n), i = 1 << r;
t |= e[r], n &= ~i;
}
return t;
}
- function lt(e, t) {
+ function ut(e, t) {
switch (e) {
case 1:
case 2:
@@ -1133,23 +1133,23 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
default: return -1;
}
}
- function ut() {
- var e = it;
- return it <<= 1, !(it & 62914560) && (it = 4194304), e;
+ function dt() {
+ var e = at;
+ return at <<= 1, !(at & 62914560) && (at = 4194304), e;
}
- function dt(e) {
+ function ft(e) {
for (var t = [], n = 0; 31 > n; n++) t.push(e);
return t;
}
- function ft(e, t) {
+ function pt(e, t) {
e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0);
}
- function pt(e, t, n, r, i, a) {
+ function mt(e, t, n, r, i, a) {
var o = e.pendingLanes;
e.pendingLanes = n, e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0, e.expiredLanes &= n, e.entangledLanes &= n, e.errorRecoveryDisabledLanes &= n, e.shellSuspendCounter = 0;
var s = e.entanglements, c = e.expirationTimes, l = e.hiddenUpdates;
for (n = o & ~n; 0 < n;) {
- var u = 31 - Qe(n), d = 1 << u;
+ var u = 31 - $e(n), d = 1 << u;
s[u] = 0, c[u] = -1;
var f = l[u];
if (f !== null) for (l[u] = null, u = 0; u < f.length; u++) {
@@ -1158,25 +1158,25 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
n &= ~d;
}
- r !== 0 && mt(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
+ r !== 0 && ht(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
}
- function mt(e, t, n) {
+ function ht(e, t, n) {
e.pendingLanes |= t, e.suspendedLanes &= ~t;
- var r = 31 - Qe(t);
+ var r = 31 - $e(t);
e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;
}
- function ht(e, t) {
+ function gt(e, t) {
var n = e.entangledLanes |= t;
for (e = e.entanglements; n;) {
- var r = 31 - Qe(n), i = 1 << r;
+ var r = 31 - $e(n), i = 1 << r;
i & t | e[r] & t && (e[r] |= t), n &= ~i;
}
}
- function gt(e, t) {
+ function _t(e, t) {
var n = t & -t;
- return n = n & 42 ? 1 : _t(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
+ return n = n & 42 ? 1 : vt(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
}
- function _t(e) {
+ function vt(e) {
switch (e) {
case 2:
e = 1;
@@ -1214,33 +1214,33 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
return e;
}
- function vt(e) {
+ function yt(e) {
return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;
}
- function yt() {
- var e = de.p;
- return e === 0 ? (e = window.event, e === void 0 ? 32 : Dh(e.type)) : e;
+ function bt() {
+ var e = fe.p;
+ return e === 0 ? (e = window.event, e === void 0 ? 32 : Oh(e.type)) : e;
}
- function bt(e, t) {
- var n = de.p;
+ function xt(e, t) {
+ var n = fe.p;
try {
- return de.p = e, t();
+ return fe.p = e, t();
} finally {
- de.p = n;
+ fe.p = n;
}
}
- var xt = Math.random().toString(36).slice(2), St = "__reactFiber$" + xt, Ct = "__reactProps$" + xt, wt = "__reactContainer$" + xt, Tt = "__reactEvents$" + xt, z = "__reactListeners$" + xt, Et = "__reactHandles$" + xt, Dt = "__reactResources$" + xt, Ot = "__reactMarker$" + xt, kt = "__reactLoad$" + xt;
- function At(e) {
- delete e[St], delete e[Ct], delete e[z], delete e[Et];
- }
+ var St = Math.random().toString(36).slice(2), Ct = "__reactFiber$" + St, wt = "__reactProps$" + St, Tt = "__reactContainer$" + St, Et = "__reactEvents$" + St, R = "__reactListeners$" + St, Dt = "__reactHandles$" + St, Ot = "__reactResources$" + St, kt = "__reactMarker$" + St, At = "__reactLoad$" + St;
function jt(e) {
+ delete e[Ct], delete e[wt], delete e[R], delete e[Dt];
+ }
+ function Mt(e) {
var t;
- if (t = e[St]) return t;
+ if (t = e[Ct]) return t;
for (var n = e.parentNode; n;) {
- if (t = n[wt] || n[St]) {
- if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = gm(e); e !== null;) {
- if (n = e[St]) return n;
- e = gm(e);
+ if (t = n[Tt] || n[Ct]) {
+ if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = _m(e); e !== null;) {
+ if (n = e[Ct]) return n;
+ e = _m(e);
}
return t;
}
@@ -1248,49 +1248,49 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
return null;
}
- function Mt(e) {
- if (e = e[St] || e[wt]) {
+ function Nt(e) {
+ if (e = e[Ct] || e[Tt]) {
var t = e.tag;
if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;
}
return null;
}
- function Nt(e) {
+ function Pt(e) {
var t = e.tag;
if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode;
throw Error(i(33));
}
- function Pt(e) {
- var t = e[Dt];
- return t ||= e[Dt] = {
+ function Ft(e) {
+ var t = e[Ot];
+ return t ||= e[Ot] = {
hoistableStyles: /* @__PURE__ */ new Map(),
hoistableScripts: /* @__PURE__ */ new Map()
}, t;
}
- function Ft(e) {
- e[Ot] = !0;
- }
function It(e) {
- e[kt] = void 0;
+ e[kt] = !0;
}
- var Lt = /* @__PURE__ */ new Set(), Rt = {};
- function zt(e, t) {
- Bt(e, t), Bt(e + "Capture", t);
+ function Lt(e) {
+ e[At] = void 0;
}
+ var Rt = /* @__PURE__ */ new Set(), zt = {};
function Bt(e, t) {
- for (Rt[e] = t, e = 0; e < t.length; e++) Lt.add(t[e]);
+ Vt(e, t), Vt(e + "Capture", t);
}
- var Vt = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), Ht = {}, Ut = {};
- function Wt(e) {
- return Fe.call(Ut, e) ? !0 : Fe.call(Ht, e) ? !1 : Vt.test(e) ? Ut[e] = !0 : (Ht[e] = !0, !1);
+ function Vt(e, t) {
+ for (zt[e] = t, e = 0; e < t.length; e++) Rt.add(t[e]);
}
- var Gt = !1;
- function Kt() {
- var e = Gt;
- return Gt = !1, e;
+ var Ht = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), Ut = {}, Wt = {};
+ function Gt(e) {
+ return Ie.call(Wt, e) ? !0 : Ie.call(Ut, e) ? !1 : Ht.test(e) ? Wt[e] = !0 : (Ut[e] = !0, !1);
}
- function qt(e, t, n) {
- if (Wt(t)) {
+ var Kt = !1;
+ function qt() {
+ var e = Kt;
+ return Kt = !1, e;
+ }
+ function Jt(e, t, n) {
+ if (Gt(t)) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -1310,7 +1310,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
}
}
- function Jt(e, t, n) {
+ function Yt(e, t, n) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -1324,7 +1324,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
e.setAttribute(t, n);
}
}
- function Yt(e, t, n, r) {
+ function Xt(e, t, n, r) {
if (r === null) e.removeAttribute(n);
else {
switch (typeof r) {
@@ -1338,7 +1338,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
e.setAttributeNS(t, n, r);
}
}
- function Xt(e) {
+ function Zt(e) {
switch (typeof e) {
case "bigint":
case "boolean":
@@ -1349,11 +1349,11 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
default: return "";
}
}
- function Zt(e) {
+ function Qt(e) {
var t = e.type;
return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");
}
- function Qt(e, t, n) {
+ function $t(e, t, n) {
var r = Object.getOwnPropertyDescriptor(e.constructor.prototype, t);
if (!e.hasOwnProperty(t) && r !== void 0 && typeof r.get == "function" && typeof r.set == "function") {
var i = r.get, a = r.set;
@@ -1378,48 +1378,48 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
};
}
}
- function $t(e) {
+ function en(e) {
if (!e._valueTracker) {
- var t = Zt(e) ? "checked" : "value";
- e._valueTracker = Qt(e, t, "" + e[t]);
+ var t = Qt(e) ? "checked" : "value";
+ e._valueTracker = $t(e, t, "" + e[t]);
}
}
- function en(e) {
+ function tn(e) {
if (!e) return !1;
var t = e._valueTracker;
if (!t) return !0;
var n = t.getValue(), r = "";
- return e && (r = Zt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
+ return e && (r = Qt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
}
- var tn = /[\n"\\]/g;
- function nn(e) {
- return e.replace(tn, function(e) {
+ var nn = /[\n"\\]/g;
+ function rn(e) {
+ return e.replace(nn, function(e) {
return "\\" + e.charCodeAt(0).toString(16) + " ";
});
}
- function rn(e, t, n, r, i, a, o, s) {
- e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + Xt(t)) : e.value !== "" + Xt(t) && (e.value = "" + Xt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : on(e, Xt(n)) : o === "number" && e.value == t ? on(e, Xt(e.value)) : on(e, Xt(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + Xt(s) : e.removeAttribute("name");
- }
function an(e, t, n, r, i, a, o, s) {
+ e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + Zt(t)) : e.value !== "" + Zt(t) && (e.value = "" + Zt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : sn(e, Zt(n)) : o === "number" && e.value == t ? sn(e, Zt(e.value)) : sn(e, Zt(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + Zt(s) : e.removeAttribute("name");
+ }
+ function on(e, t, n, r, i, a, o, s) {
if (a != null && typeof a != "function" && typeof a != "symbol" && typeof a != "boolean" && (e.type = a), t != null || n != null) {
if (!(a !== "submit" && a !== "reset" || t != null)) {
- $t(e);
+ en(e);
return;
}
- n = n == null ? "" : "" + Xt(n), t = t == null ? n : "" + Xt(t), s || t === e.value || (e.value = t), e.defaultValue = t;
+ n = n == null ? "" : "" + Zt(n), t = t == null ? n : "" + Zt(t), s || t === e.value || (e.value = t), e.defaultValue = t;
}
- r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), $t(e);
+ r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), en(e);
}
- function on(e, t) {
+ function sn(e, t) {
e.defaultValue !== "" + t && (e.defaultValue = "" + t);
}
- function sn(e, t, n, r) {
+ function cn(e, t, n, r) {
if (e = e.options, t) {
t = {};
for (var i = 0; i < n.length; i++) t["$" + n[i]] = !0;
for (n = 0; n < e.length; n++) i = t.hasOwnProperty("$" + e[n].value), e[n].selected !== i && (e[n].selected = i), i && r && (e[n].defaultSelected = !0);
} else {
- for (n = "" + Xt(n), t = null, i = 0; i < e.length; i++) {
+ for (n = "" + Zt(n), t = null, i = 0; i < e.length; i++) {
if (e[i].value === n) {
e[i].selected = !0, r && (e[i].defaultSelected = !0);
return;
@@ -1429,18 +1429,18 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
t !== null && (t.selected = !0);
}
}
- function cn(e, t, n) {
- if (t != null && (t = "" + Xt(t), t !== e.value && (e.value = t), n == null)) {
+ function ln(e, t, n) {
+ if (t != null && (t = "" + Zt(t), t !== e.value && (e.value = t), n == null)) {
e.defaultValue !== t && (e.defaultValue = t);
return;
}
- e.defaultValue = n == null ? "" : "" + Xt(n);
+ e.defaultValue = n == null ? "" : "" + Zt(n);
}
- function ln(e, t, n, r) {
+ function un(e, t, n, r) {
if (t == null) {
if (r != null) {
if (n != null) throw Error(i(92));
- if (ue(r)) {
+ if (de(r)) {
if (1 < r.length) throw Error(i(93));
r = r[0];
}
@@ -1448,9 +1448,9 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
n ??= "", t = n;
}
- n = Xt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), $t(e);
+ n = Zt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), en(e);
}
- function un(e, t) {
+ function dn(e, t) {
if (t) {
var n = e.firstChild;
if (n && n === e.lastChild && n.nodeType === 3) {
@@ -1460,19 +1460,19 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
e.textContent = t;
}
- var dn = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));
- function fn(e, t, n) {
+ var fn = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));
+ function pn(e, t, n) {
var r = t.indexOf("--") === 0;
- n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || dn.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";
+ n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || fn.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";
}
- function pn(e, t, n) {
+ function mn(e, t, n) {
if (t != null && typeof t != "object") throw Error(i(62));
if (e = e.style, n != null) {
- for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = "", Gt = !0);
- for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (fn(e, a, r), Gt = !0);
- } else for (var o in t) t.hasOwnProperty(o) && fn(e, o, t[o]);
+ for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = "", Kt = !0);
+ for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (pn(e, a, r), Kt = !0);
+ } else for (var o in t) t.hasOwnProperty(o) && pn(e, o, t[o]);
}
- function mn(e) {
+ function hn(e) {
if (e.indexOf("-") === -1) return !1;
switch (e) {
case "annotation-xml":
@@ -1486,7 +1486,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
default: return !0;
}
}
- var hn = /* @__PURE__ */ new Map([
+ var gn = /* @__PURE__ */ new Map([
["acceptCharset", "accept-charset"],
["htmlFor", "for"],
["httpEquiv", "http-equiv"],
@@ -1566,56 +1566,56 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
["writingMode", "writing-mode"],
["xmlnsXlink", "xmlns:xlink"],
["xHeight", "x-height"]
- ]), gn = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;
- function _n(e) {
- return gn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
+ ]), _n = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;
+ function vn(e) {
+ return _n.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
}
- function vn() {}
- var yn = null;
- function bn(e) {
+ function yn() {}
+ var bn = null;
+ function xn(e) {
return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e;
}
- var xn = null, Sn = null;
- function Cn(e) {
- var t = Mt(e);
+ var Sn = null, Cn = null;
+ function wn(e) {
+ var t = Nt(e);
if (t && (e = t.stateNode)) {
- var n = e[Ct] || null;
+ var n = e[wt] || null;
a: switch (e = t.stateNode, t.type) {
case "input":
- if (rn(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {
+ if (an(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {
for (n = e; n.parentNode;) n = n.parentNode;
- for (n = n.querySelectorAll("input[name=\"" + nn("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
+ for (n = n.querySelectorAll("input[name=\"" + rn("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
var r = n[t];
if (r !== e && r.form === e.form) {
- var a = r[Ct] || null;
+ var a = r[wt] || null;
if (!a) throw Error(i(90));
- rn(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);
+ an(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);
}
}
- for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && en(r);
+ for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && tn(r);
}
break a;
case "textarea":
- cn(e, n.value, n.defaultValue);
+ ln(e, n.value, n.defaultValue);
break a;
- case "select": t = n.value, t != null && sn(e, !!n.multiple, t, !1);
+ case "select": t = n.value, t != null && cn(e, !!n.multiple, t, !1);
}
}
}
- var wn = !1;
- function Tn(e, t, n) {
- if (wn) return e(t, n);
- wn = !0;
+ var Tn = !1;
+ function En(e, t, n) {
+ if (Tn) return e(t, n);
+ Tn = !0;
try {
return e(t);
} finally {
- if (wn = !1, (xn !== null || Sn !== null) && (Bd(), xn && (t = xn, e = Sn, Sn = xn = null, Cn(t), e))) for (t = 0; t < e.length; t++) Cn(e[t]);
+ if (Tn = !1, (Sn !== null || Cn !== null) && (Vd(), Sn && (t = Sn, e = Cn, Cn = Sn = null, wn(t), e))) for (t = 0; t < e.length; t++) wn(e[t]);
}
}
- function En(e, t) {
+ function Dn(e, t) {
var n = e.stateNode;
if (n === null) return null;
- var r = n[Ct] || null;
+ var r = n[wt] || null;
if (r === null) return null;
n = r[t];
a: switch (t) {
@@ -1638,54 +1638,54 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
if (n && typeof n != "function") throw Error(i(231, t, typeof n));
return n;
}
- var Dn = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), On = !1;
- if (Dn) try {
- var kn = {};
- Object.defineProperty(kn, "passive", { get: function() {
- On = !0;
- } }), window.addEventListener("test", kn, kn), window.removeEventListener("test", kn, kn);
+ var On = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), kn = !1;
+ if (On) try {
+ var An = {};
+ Object.defineProperty(An, "passive", { get: function() {
+ kn = !0;
+ } }), window.addEventListener("test", An, An), window.removeEventListener("test", An, An);
} catch {
- On = !1;
+ kn = !1;
}
- var An = null, jn = null, Mn = null;
- function Nn() {
- if (Mn) return Mn;
- var e, t = jn, n = t.length, r, i = "value" in An ? An.value : An.textContent, a = i.length;
+ var jn = null, Mn = null, Nn = null;
+ function Pn() {
+ if (Nn) return Nn;
+ var e, t = Mn, n = t.length, r, i = "value" in jn ? jn.value : jn.textContent, a = i.length;
for (e = 0; e < n && t[e] === i[e]; e++);
var o = n - e;
for (r = 1; r <= o && t[n - r] === i[a - r]; r++);
- return Mn = i.slice(e, 1 < r ? 1 - r : void 0);
+ return Nn = i.slice(e, 1 < r ? 1 - r : void 0);
}
- function Pn(e) {
+ function Fn(e) {
var t = e.keyCode;
return "charCode" in e ? (e = e.charCode, e === 0 && t === 13 && (e = 13)) : e = t, e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0;
}
- function Fn() {
+ function In() {
return !0;
}
- function In() {
+ function Ln() {
return !1;
}
- function Ln(e) {
+ function Rn(e) {
function t(t, n, r, i, a) {
for (var o in this._reactName = t, this._targetInst = r, this.type = n, this.nativeEvent = i, this.target = a, this.currentTarget = null, e) e.hasOwnProperty(o) && (t = e[o], this[o] = t ? t(i) : i[o]);
- return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? Fn : In, this.isPropagationStopped = In, this;
+ return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? In : Ln, this.isPropagationStopped = Ln, this;
}
return w(t.prototype, {
preventDefault: function() {
this.defaultPrevented = !0;
var e = this.nativeEvent;
- e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = Fn);
+ e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = In);
},
stopPropagation: function() {
var e = this.nativeEvent;
- e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = Fn);
+ e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = In);
},
persist: function() {},
- isPersistent: Fn
+ isPersistent: In
}), t;
}
- var Rn = {
+ var zn = {
eventPhase: 0,
bubbles: 0,
cancelable: 0,
@@ -1694,10 +1694,10 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
},
defaultPrevented: 0,
isTrusted: 0
- }, zn = Ln(Rn), Bn = w({}, Rn, {
+ }, Bn = Rn(zn), Vn = w({}, zn, {
view: 0,
detail: 0
- }), Vn = Ln(Bn), Hn, Un, Wn, Gn = w({}, Bn, {
+ }), Hn = Rn(Vn), Un, Wn, Gn, Kn = w({}, Vn, {
screenX: 0,
screenY: 0,
clientX: 0,
@@ -1708,25 +1708,25 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
shiftKey: 0,
altKey: 0,
metaKey: 0,
- getModifierState: nr,
+ getModifierState: rr,
button: 0,
buttons: 0,
relatedTarget: function(e) {
return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget;
},
movementX: function(e) {
- return "movementX" in e ? e.movementX : (e !== Wn && (Wn && e.type === "mousemove" ? (Hn = e.screenX - Wn.screenX, Un = e.screenY - Wn.screenY) : Un = Hn = 0, Wn = e), Hn);
+ return "movementX" in e ? e.movementX : (e !== Gn && (Gn && e.type === "mousemove" ? (Un = e.screenX - Gn.screenX, Wn = e.screenY - Gn.screenY) : Wn = Un = 0, Gn = e), Un);
},
movementY: function(e) {
- return "movementY" in e ? e.movementY : Un;
+ return "movementY" in e ? e.movementY : Wn;
}
- }), Kn = Ln(Gn), qn = Ln(w({}, Gn, { dataTransfer: 0 })), Jn = Ln(w({}, Bn, { relatedTarget: 0 })), Yn = Ln(w({}, Rn, {
+ }), qn = Rn(Kn), Jn = Rn(w({}, Kn, { dataTransfer: 0 })), Yn = Rn(w({}, Vn, { relatedTarget: 0 })), Xn = Rn(w({}, zn, {
animationName: 0,
elapsedTime: 0,
pseudoElement: 0
- })), Xn = Ln(w({}, Rn, { clipboardData: function(e) {
+ })), Zn = Rn(w({}, zn, { clipboardData: function(e) {
return "clipboardData" in e ? e.clipboardData : window.clipboardData;
- } })), Zn = Ln(w({}, Rn, { data: 0 })), Qn = {
+ } })), Qn = Rn(w({}, zn, { data: 0 })), $n = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
@@ -1739,7 +1739,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
Apps: "ContextMenu",
Scroll: "ScrollLock",
MozPrintableKey: "Unidentified"
- }, $n = {
+ }, er = {
8: "Backspace",
9: "Tab",
12: "Clear",
@@ -1776,26 +1776,26 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
144: "NumLock",
145: "ScrollLock",
224: "Meta"
- }, er = {
+ }, tr = {
Alt: "altKey",
Control: "ctrlKey",
Meta: "metaKey",
Shift: "shiftKey"
};
- function tr(e) {
+ function nr(e) {
var t = this.nativeEvent;
- return t.getModifierState ? t.getModifierState(e) : (e = er[e]) ? !!t[e] : !1;
+ return t.getModifierState ? t.getModifierState(e) : (e = tr[e]) ? !!t[e] : !1;
}
- function nr() {
- return tr;
+ function rr() {
+ return nr;
}
- var rr = Ln(w({}, Bn, {
+ var ir = Rn(w({}, Vn, {
key: function(e) {
if (e.key) {
- var t = Qn[e.key] || e.key;
+ var t = $n[e.key] || e.key;
if (t !== "Unidentified") return t;
}
- return e.type === "keypress" ? (e = Pn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? $n[e.keyCode] || "Unidentified" : "";
+ return e.type === "keypress" ? (e = Fn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? er[e.keyCode] || "Unidentified" : "";
},
code: 0,
location: 0,
@@ -1805,17 +1805,17 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
metaKey: 0,
repeat: 0,
locale: 0,
- getModifierState: nr,
+ getModifierState: rr,
charCode: function(e) {
- return e.type === "keypress" ? Pn(e) : 0;
+ return e.type === "keypress" ? Fn(e) : 0;
},
keyCode: function(e) {
return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
},
which: function(e) {
- return e.type === "keypress" ? Pn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
+ return e.type === "keypress" ? Fn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
}
- })), ir = Ln(w({}, Gn, {
+ })), ar = Rn(w({}, Kn, {
pointerId: 0,
width: 0,
height: 0,
@@ -1826,7 +1826,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
twist: 0,
pointerType: 0,
isPrimary: 0
- })), ar = Ln(w({}, Rn, { submitter: 0 })), or = Ln(w({}, Bn, {
+ })), or = Rn(w({}, zn, { submitter: 0 })), sr = Rn(w({}, Vn, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
@@ -1834,12 +1834,12 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
metaKey: 0,
ctrlKey: 0,
shiftKey: 0,
- getModifierState: nr
- })), sr = Ln(w({}, Rn, {
+ getModifierState: rr
+ })), cr = Rn(w({}, zn, {
propertyName: 0,
elapsedTime: 0,
pseudoElement: 0
- })), cr = Ln(w({}, Gn, {
+ })), lr = Rn(w({}, Kn, {
deltaX: function(e) {
return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;
},
@@ -1848,21 +1848,21 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
},
deltaZ: 0,
deltaMode: 0
- })), lr = Ln(w({}, Rn, {
+ })), ur = Rn(w({}, zn, {
newState: 0,
oldState: 0,
source: 0
- })), ur = [
+ })), dr = [
9,
13,
27,
32
- ], dr = Dn && "CompositionEvent" in window, fr = null;
- Dn && "documentMode" in document && (fr = document.documentMode);
- var pr = Dn && "TextEvent" in window && !fr, mr = Dn && (!dr || fr && 8 < fr && 11 >= fr), hr = " ", gr = !1;
- function _r(e, t) {
+ ], fr = On && "CompositionEvent" in window, pr = null;
+ On && "documentMode" in document && (pr = document.documentMode);
+ var mr = On && "TextEvent" in window && !pr, hr = On && (!fr || pr && 8 < pr && 11 >= pr), gr = " ", _r = !1;
+ function vr(e, t) {
switch (e) {
- case "keyup": return ur.indexOf(t.keyCode) !== -1;
+ case "keyup": return dr.indexOf(t.keyCode) !== -1;
case "keydown": return t.keyCode !== 229;
case "keypress":
case "mousedown":
@@ -1870,20 +1870,20 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
default: return !1;
}
}
- function vr(e) {
+ function yr(e) {
return e = e.detail, typeof e == "object" && "data" in e ? e.data : null;
}
- var yr = !1;
- function br(e, t) {
+ var br = !1;
+ function xr(e, t) {
switch (e) {
- case "compositionend": return vr(t);
- case "keypress": return t.which === 32 ? (gr = !0, hr) : null;
- case "textInput": return e = t.data, e === hr && gr ? null : e;
+ case "compositionend": return yr(t);
+ case "keypress": return t.which === 32 ? (_r = !0, gr) : null;
+ case "textInput": return e = t.data, e === gr && _r ? null : e;
default: return null;
}
}
- function xr(e, t) {
- if (yr) return e === "compositionend" || !dr && _r(e, t) ? (e = Nn(), Mn = jn = An = null, yr = !1, e) : null;
+ function Sr(e, t) {
+ if (br) return e === "compositionend" || !fr && vr(e, t) ? (e = Pn(), Nn = Mn = jn = null, br = !1, e) : null;
switch (e) {
case "paste": return null;
case "keypress":
@@ -1892,11 +1892,11 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
if (t.which) return String.fromCharCode(t.which);
}
return null;
- case "compositionend": return mr && t.locale !== "ko" ? null : t.data;
+ case "compositionend": return hr && t.locale !== "ko" ? null : t.data;
default: return null;
}
}
- var Sr = {
+ var Cr = {
color: !0,
date: !0,
datetime: !0,
@@ -1913,76 +1913,76 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
url: !0,
week: !0
};
- function Cr(e) {
+ function wr(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
- return t === "input" ? !!Sr[e.type] : t === "textarea";
+ return t === "input" ? !!Cr[e.type] : t === "textarea";
}
- function wr(e, t, n, r) {
- xn ? Sn ? Sn.push(r) : Sn = [r] : xn = r, t = Zf(t, "onChange"), 0 < t.length && (n = new zn("onChange", "change", null, n, r), e.push({
+ function Tr(e, t, n, r) {
+ Sn ? Cn ? Cn.push(r) : Cn = [r] : Sn = r, t = Qf(t, "onChange"), 0 < t.length && (n = new Bn("onChange", "change", null, n, r), e.push({
event: n,
listeners: t
}));
}
- var Tr = null, Er = null;
- function Dr(e) {
- Uf(e, 0);
- }
+ var Er = null, Dr = null;
function Or(e) {
- if (en(Nt(e))) return e;
+ Wf(e, 0);
+ }
+ function kr(e) {
+ if (tn(Pt(e))) return e;
}
- function kr(e, t) {
+ function Ar(e, t) {
if (e === "change") return t;
}
- var Ar = !1;
- if (Dn) {
- var jr;
- if (Dn) {
- var Mr = "oninput" in document;
- if (!Mr) {
- var Nr = document.createElement("div");
- Nr.setAttribute("oninput", "return;"), Mr = typeof Nr.oninput == "function";
+ var jr = !1;
+ if (On) {
+ var Mr;
+ if (On) {
+ var Nr = "oninput" in document;
+ if (!Nr) {
+ var Pr = document.createElement("div");
+ Pr.setAttribute("oninput", "return;"), Nr = typeof Pr.oninput == "function";
}
- jr = Mr;
- } else jr = !1;
- Ar = jr && (!document.documentMode || 9 < document.documentMode);
+ Mr = Nr;
+ } else Mr = !1;
+ jr = Mr && (!document.documentMode || 9 < document.documentMode);
}
- function Pr() {
- Tr && (Tr.detachEvent("onpropertychange", Fr), Er = Tr = null);
+ function Fr() {
+ Er && (Er.detachEvent("onpropertychange", Ir), Dr = Er = null);
}
- function Fr(e) {
- if (e.propertyName === "value" && Or(Er)) {
+ function Ir(e) {
+ if (e.propertyName === "value" && kr(Dr)) {
var t = [];
- wr(t, Er, e, bn(e)), Tn(Dr, t);
+ Tr(t, Dr, e, xn(e)), En(Or, t);
}
}
- function Ir(e, t, n) {
- e === "focusin" ? (Pr(), Tr = t, Er = n, Tr.attachEvent("onpropertychange", Fr)) : e === "focusout" && Pr();
+ function Lr(e, t, n) {
+ e === "focusin" ? (Fr(), Er = t, Dr = n, Er.attachEvent("onpropertychange", Ir)) : e === "focusout" && Fr();
}
- function Lr(e) {
- if (e === "selectionchange" || e === "keyup" || e === "keydown") return Or(Er);
- }
- function Rr(e, t) {
- if (e === "click") return Or(t);
+ function Rr(e) {
+ if (e === "selectionchange" || e === "keyup" || e === "keydown") return kr(Dr);
}
function zr(e, t) {
- if (e === "input" || e === "change") return Or(t);
+ if (e === "click") return kr(t);
}
function Br(e, t) {
+ if (e === "input" || e === "change") return kr(t);
+ }
+ function Vr(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
- var Vr = typeof Object.is == "function" ? Object.is : Br;
- function Hr(e, t) {
- if (Vr(e, t)) return !0;
+ var Hr = typeof Object.is == "function" ? Object.is : Vr;
+ function Ur(e, t) {
+ if (Hr(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
var n = Object.keys(e), r = Object.keys(t);
if (n.length !== r.length) return !1;
for (r = 0; r < n.length; r++) {
var i = n[r];
- if (!Fe.call(t, i) || !Vr(e[i], t[i])) return !1;
+ if (!Ie.call(t, i) || !Hr(e[i], t[i])) return !1;
}
return !0;
}
- function Ur(e) {
+ function Wr(e) {
if (e ||= typeof document < "u" ? document : void 0, e === void 0) return null;
try {
return e.activeElement || e.body;
@@ -1990,12 +1990,12 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
return e.body;
}
}
- function Wr(e) {
+ function Gr(e) {
for (; e && e.firstChild;) e = e.firstChild;
return e;
}
- function Gr(e, t) {
- var n = Wr(e);
+ function Kr(e, t) {
+ var n = Gr(e);
e = 0;
for (var r; n;) {
if (n.nodeType === 3) {
@@ -2015,15 +2015,15 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
n = void 0;
}
- n = Wr(n);
+ n = Gr(n);
}
}
- function Kr(e, t) {
- return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Kr(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;
+ function qr(e, t) {
+ return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? qr(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;
}
- function qr(e) {
+ function Jr(e) {
e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window;
- for (var t = Ur(e.document); t instanceof e.HTMLIFrameElement;) {
+ for (var t = Wr(e.document); t instanceof e.HTMLIFrameElement;) {
try {
var n = typeof t.contentWindow.location.href == "string";
} catch {
@@ -2031,18 +2031,18 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
if (n) e = t.contentWindow;
else break;
- t = Ur(e.document);
+ t = Wr(e.document);
}
return t;
}
- function Jr(e) {
+ function Yr(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true");
}
- var Yr = Dn && "documentMode" in document && 11 >= document.documentMode, Xr = null, Zr = null, Qr = null, $r = !1;
- function ei(e, t, n) {
+ var Xr = On && "documentMode" in document && 11 >= document.documentMode, Zr = null, Qr = null, $r = null, ei = !1;
+ function ti(e, t, n) {
var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
- $r || Xr == null || Xr !== Ur(r) || (r = Xr, "selectionStart" in r && Jr(r) ? r = {
+ ei || Zr == null || Zr !== Wr(r) || (r = Zr, "selectionStart" in r && Yr(r) ? r = {
start: r.selectionStart,
end: r.selectionEnd
} : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = {
@@ -2050,48 +2050,48 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
- }), Qr && Hr(Qr, r) || (Qr = r, r = Zf(Zr, "onSelect"), 0 < r.length && (t = new zn("onSelect", "select", null, t, n), e.push({
+ }), $r && Ur($r, r) || ($r = r, r = Qf(Qr, "onSelect"), 0 < r.length && (t = new Bn("onSelect", "select", null, t, n), e.push({
event: t,
listeners: r
- }), t.target = Xr)));
+ }), t.target = Zr)));
}
- function ti(e, t) {
+ function ni(e, t) {
var n = {};
return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n;
}
- var ni = {
- animationend: ti("Animation", "AnimationEnd"),
- animationiteration: ti("Animation", "AnimationIteration"),
- animationstart: ti("Animation", "AnimationStart"),
- transitionrun: ti("Transition", "TransitionRun"),
- transitionstart: ti("Transition", "TransitionStart"),
- transitioncancel: ti("Transition", "TransitionCancel"),
- transitionend: ti("Transition", "TransitionEnd")
- }, B = {}, ri = {};
- Dn && (ri = document.createElement("div").style, "AnimationEvent" in window || (delete ni.animationend.animation, delete ni.animationiteration.animation, delete ni.animationstart.animation), "TransitionEvent" in window || delete ni.transitionend.transition);
- function ii(e) {
- if (B[e]) return B[e];
- if (!ni[e]) return e;
- var t = ni[e], n;
- for (n in t) if (t.hasOwnProperty(n) && n in ri) return B[e] = t[n];
+ var ri = {
+ animationend: ni("Animation", "AnimationEnd"),
+ animationiteration: ni("Animation", "AnimationIteration"),
+ animationstart: ni("Animation", "AnimationStart"),
+ transitionrun: ni("Transition", "TransitionRun"),
+ transitionstart: ni("Transition", "TransitionStart"),
+ transitioncancel: ni("Transition", "TransitionCancel"),
+ transitionend: ni("Transition", "TransitionEnd")
+ }, z = {}, ii = {};
+ On && (ii = document.createElement("div").style, "AnimationEvent" in window || (delete ri.animationend.animation, delete ri.animationiteration.animation, delete ri.animationstart.animation), "TransitionEvent" in window || delete ri.transitionend.transition);
+ function ai(e) {
+ if (z[e]) return z[e];
+ if (!ri[e]) return e;
+ var t = ri[e], n;
+ for (n in t) if (t.hasOwnProperty(n) && n in ii) return z[e] = t[n];
return e;
}
- var ai = ii("animationend"), oi = ii("animationiteration"), si = ii("animationstart"), ci = ii("transitionrun"), li = ii("transitionstart"), V = ii("transitioncancel"), ui = ii("transitionend"), di = /* @__PURE__ */ new Map(), fi = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
- fi.push("scrollEnd");
- function pi(e, t) {
- di.set(e, t), zt(t, [e]);
+ var oi = ai("animationend"), si = ai("animationiteration"), ci = ai("animationstart"), li = ai("transitionrun"), ui = ai("transitionstart"), B = ai("transitioncancel"), di = ai("transitionend"), fi = /* @__PURE__ */ new Map(), pi = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
+ pi.push("scrollEnd");
+ function mi(e, t) {
+ fi.set(e, t), Bt(t, [e]);
}
- var mi = 0;
- function hi(e, t) {
+ var hi = 0;
+ function gi(e, t) {
if (e.name != null && e.name !== "auto") return e.name;
if (t.autoName !== null) return t.autoName;
- e = xd.identifierPrefix;
- var n = mi++;
+ e = Sd.identifierPrefix;
+ var n = hi++;
return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;
}
- function gi(e) {
+ function _i(e) {
if (e == null || typeof e == "string") return e;
- var t = null, n = kd;
+ var t = null, n = Ad;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = e[n[r]];
if (i != null) {
@@ -2101,10 +2101,10 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
return t ?? e.default;
}
- function _i(e, t) {
- return e = gi(e), t = gi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
+ function vi(e, t) {
+ return e = _i(e), t = _i(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
}
- var vi = typeof reportError == "function" ? reportError : function(e) {
+ var yi = typeof reportError == "function" ? reportError : function(e) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var t = new window.ErrorEvent("error", {
bubbles: !0,
@@ -2118,62 +2118,62 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
return;
}
console.error(e);
- }, yi = [], bi = 0, xi = 0;
- function Si() {
- for (var e = bi, t = xi = bi = 0; t < e;) {
- var n = yi[t];
- yi[t++] = null;
- var r = yi[t];
- yi[t++] = null;
- var i = yi[t];
- yi[t++] = null;
- var a = yi[t];
- if (yi[t++] = null, r !== null && i !== null) {
+ }, bi = [], xi = 0, Si = 0;
+ function Ci() {
+ for (var e = xi, t = Si = xi = 0; t < e;) {
+ var n = bi[t];
+ bi[t++] = null;
+ var r = bi[t];
+ bi[t++] = null;
+ var i = bi[t];
+ bi[t++] = null;
+ var a = bi[t];
+ if (bi[t++] = null, r !== null && i !== null) {
var o = r.pending;
o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i;
}
- a !== 0 && Ei(n, i, a);
+ a !== 0 && Di(n, i, a);
}
}
- function Ci(e, t, n, r) {
- yi[bi++] = e, yi[bi++] = t, yi[bi++] = n, yi[bi++] = r, xi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
- }
function wi(e, t, n, r) {
- return Ci(e, t, n, r), Di(e);
+ bi[xi++] = e, bi[xi++] = t, bi[xi++] = n, bi[xi++] = r, Si |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
+ }
+ function Ti(e, t, n, r) {
+ return wi(e, t, n, r), Oi(e);
}
- function Ti(e, t) {
- return Ci(e, null, null, t), Di(e);
+ function Ei(e, t) {
+ return wi(e, null, null, t), Oi(e);
}
- function Ei(e, t, n) {
+ function Di(e, t, n) {
e.lanes |= n;
var r = e.alternate;
r !== null && (r.lanes |= n);
for (var i = !1, a = e.return; a !== null;) a.childLanes |= n, r = a.alternate, r !== null && (r.childLanes |= n), a.tag === 22 && (e = a.stateNode, e === null || e._visibility & 1 || (i = !0)), e = a, a = a.return;
- return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - Qe(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
+ return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - $e(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
}
- function Di(e) {
- if (50 < Ad) throw Ad = 0, jd = null, Error(i(185));
+ function Oi(e) {
+ if (50 < jd) throw jd = 0, Md = null, Error(i(185));
for (var t = e.return; t !== null;) e = t, t = e.return;
return e.tag === 3 ? e.stateNode : null;
}
- var Oi = {};
- function ki(e, t, n, r) {
+ var ki = {};
+ function Ai(e, t, n, r) {
this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;
}
- function Ai(e, t, n, r) {
- return new ki(e, t, n, r);
+ function ji(e, t, n, r) {
+ return new Ai(e, t, n, r);
}
- function ji(e) {
+ function Mi(e) {
return e = e.prototype, !(!e || !e.isReactComponent);
}
- function Mi(e, t) {
+ function Ni(e, t) {
var n = e.alternate;
- return n === null ? (n = Ai(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {
+ return n === null ? (n = ji(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {
lanes: t.lanes,
firstContext: t.firstContext
}, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n.refCleanup = e.refCleanup, n;
}
- function Ni(e, t) {
+ function Pi(e, t) {
e.flags &= 1206910978;
var n = e.alternate;
return n === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null) : (e.childLanes = n.childLanes, e.lanes = n.lanes, e.child = n.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = n.memoizedProps, e.memoizedState = n.memoizedState, e.updateQueue = n.updateQueue, e.type = n.type, t = n.dependencies, e.dependencies = t === null ? null : {
@@ -2181,21 +2181,21 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
firstContext: t.firstContext
}), e;
}
- function Pi(e, t, n, r, a, o) {
+ function Fi(e, t, n, r, a, o) {
var s = 0;
- if (r = e, typeof r == "function") ji(r) && (s = 1);
- else if (typeof r == "string") s = Zm(e, n, ve.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
+ if (r = e, typeof r == "function") Mi(r) && (s = 1);
+ else if (typeof r == "string") s = Qm(e, n, ye.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
else a: switch (r) {
- case te: return e = Ai(31, n, t, a), e.elementType = te, e.lanes = o, e;
- case O: return Fi(n.children, a, o, t);
+ case ne: return e = ji(31, n, t, a), e.elementType = ne, e.lanes = o, e;
+ case O: return Ii(n.children, a, o, t);
case k:
s = 8, a |= 24;
break;
- case A: return e = Ai(12, n, t, a | 2), e.elementType = A, e.lanes = o, e;
- case P: return e = Ai(13, n, t, a), e.elementType = P, e.lanes = o, e;
- case ee: return e = Ai(19, n, t, a), e.elementType = ee, e.lanes = o, e;
- case ne:
- case ie: return e = a | 32, e = Ai(30, n, t, e), e.elementType = ie, e.lanes = o, e.stateNode = {
+ case A: return e = ji(12, n, t, a | 2), e.elementType = A, e.lanes = o, e;
+ case P: return e = ji(13, n, t, a), e.elementType = P, e.lanes = o, e;
+ case ee: return e = ji(19, n, t, a), e.elementType = ee, e.lanes = o, e;
+ case re:
+ case ae: return e = a | 32, e = ji(30, n, t, e), e.elementType = ae, e.lanes = o, e.stateNode = {
autoName: null,
paired: null,
clones: null,
@@ -2215,165 +2215,165 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case F:
s = 14;
break a;
- case I:
+ case te:
s = 16, r = null;
break a;
}
s = 29, n = Error(i(130, e === null ? "null" : typeof e, "")), r = null;
}
- return t = Ai(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
+ return t = ji(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
}
- function Fi(e, t, n, r) {
- return e = Ai(7, e, r, t), e.lanes = n, e;
+ function Ii(e, t, n, r) {
+ return e = ji(7, e, r, t), e.lanes = n, e;
}
- function Ii(e, t, n) {
- return e = Ai(6, e, null, t), e.lanes = n, e;
+ function Li(e, t, n) {
+ return e = ji(6, e, null, t), e.lanes = n, e;
}
- function Li(e) {
- var t = Ai(18, null, null, 0);
+ function Ri(e) {
+ var t = ji(18, null, null, 0);
return t.stateNode = e, t;
}
- function Ri(e, t, n) {
- return t = Ai(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
+ function zi(e, t, n) {
+ return t = ji(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
containerInfo: e.containerInfo,
pendingChildren: null,
implementation: e.implementation
}, t;
}
- var zi = /* @__PURE__ */ new WeakMap();
- function Bi(e, t) {
+ var Bi = /* @__PURE__ */ new WeakMap();
+ function Vi(e, t) {
if (typeof e == "object" && e) {
- var n = zi.get(e);
+ var n = Bi.get(e);
return n === void 0 ? (t = {
value: e,
source: t,
- stack: Ne(t)
- }, zi.set(e, t), t) : n;
+ stack: Pe(t)
+ }, Bi.set(e, t), t) : n;
}
return {
value: e,
source: t,
- stack: Ne(t)
+ stack: Pe(t)
};
}
- var H = [], Vi = 0, Hi = null, Ui = 0, U = [], W = 0, G = null, Wi = 1, Gi = "";
- function Ki(e, t) {
- H[Vi++] = Ui, H[Vi++] = Hi, Hi = e, Ui = t;
+ var V = [], Hi = 0, Ui = null, Wi = 0, H = [], U = 0, W = null, Gi = 1, Ki = "";
+ function qi(e, t) {
+ V[Hi++] = Wi, V[Hi++] = Ui, Ui = e, Wi = t;
}
- function qi(e, t, n) {
- U[W++] = Wi, U[W++] = Gi, U[W++] = G, G = e;
- var r = Wi;
- e = Gi;
- var i = 32 - Qe(r) - 1;
+ function Ji(e, t, n) {
+ H[U++] = Gi, H[U++] = Ki, H[U++] = W, W = e;
+ var r = Gi;
+ e = Ki;
+ var i = 32 - $e(r) - 1;
r &= ~(1 << i), n += 1;
- var a = 32 - Qe(t) + i;
+ var a = 32 - $e(t) + i;
if (30 < a) {
var o = i - i % 5;
- a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Wi = 1 << 32 - Qe(t) + i | n << i | r, Gi = a + e;
- } else Wi = 1 << a | n << i | r, Gi = e;
- }
- function Ji(e) {
- e.return !== null && (Ki(e, 1), qi(e, 1, 0));
+ a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Gi = 1 << 32 - $e(t) + i | n << i | r, Ki = a + e;
+ } else Gi = 1 << a | n << i | r, Ki = e;
}
function Yi(e) {
- for (; e === Hi;) Hi = H[--Vi], H[Vi] = null, Ui = H[--Vi], H[Vi] = null;
- for (; e === G;) G = U[--W], U[W] = null, Gi = U[--W], U[W] = null, Wi = U[--W], U[W] = null;
+ e.return !== null && (qi(e, 1), Ji(e, 1, 0));
}
- function Xi(e, t) {
- U[W++] = Wi, U[W++] = Gi, U[W++] = G, Wi = t.id, Gi = t.overflow, G = e;
+ function Xi(e) {
+ for (; e === Ui;) Ui = V[--Hi], V[Hi] = null, Wi = V[--Hi], V[Hi] = null;
+ for (; e === W;) W = H[--U], H[U] = null, Ki = H[--U], H[U] = null, Gi = H[--U], H[U] = null;
}
- var Zi = null, Qi = null, $i = !1, ea = null, K = !1, ta = Error(i(519));
- function na(e) {
- throw sa(Bi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), ta;
+ function Zi(e, t) {
+ H[U++] = Gi, H[U++] = Ki, H[U++] = W, Gi = t.id, Ki = t.overflow, W = e;
}
+ var Qi = null, $i = null, ea = !1, ta = null, G = !1, na = Error(i(519));
function ra(e) {
+ throw ca(Vi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), na;
+ }
+ function ia(e) {
var t = e.stateNode, n = e.type, r = e.memoizedProps;
- switch (t[St] = e, t[Ct] = r, n) {
+ switch (t[Ct] = e, t[wt] = r, n) {
case "dialog":
- Wf("cancel", t), Wf("close", t);
+ Gf("cancel", t), Gf("close", t);
break;
case "iframe":
case "object":
case "embed":
- Wf("load", t);
+ Gf("load", t);
break;
case "video":
case "audio":
- for (n = 0; n < Vf.length; n++) Wf(Vf[n], t);
+ for (n = 0; n < Hf.length; n++) Gf(Hf[n], t);
break;
case "source":
- Wf("error", t);
+ Gf("error", t);
break;
case "img":
case "image":
case "link":
- Wf("error", t), Wf("load", t);
+ Gf("error", t), Gf("load", t);
break;
case "details":
- Wf("toggle", t);
+ Gf("toggle", t);
break;
case "input":
- Wf("invalid", t), an(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
+ Gf("invalid", t), on(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
break;
case "select":
- Wf("invalid", t);
+ Gf("invalid", t);
break;
- case "textarea": Wf("invalid", t), ln(t, r.value, r.defaultValue, r.children);
+ case "textarea": Gf("invalid", t), un(t, r.value, r.defaultValue, r.children);
}
- n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || rp(t.textContent, n) ? (r.popover != null && (Wf("beforetoggle", t), Wf("toggle", t)), r.onScroll != null && Wf("scroll", t), r.onScrollEnd != null && Wf("scrollend", t), r.onClick != null && (t.onclick = vn), t = !0) : t = !1, t || na(e, !0);
+ n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || ip(t.textContent, n) ? (r.popover != null && (Gf("beforetoggle", t), Gf("toggle", t)), r.onScroll != null && Gf("scroll", t), r.onScrollEnd != null && Gf("scrollend", t), r.onClick != null && (t.onclick = yn), t = !0) : t = !1, t || ra(e, !0);
}
- function ia(e) {
- for (Zi = e.return; Zi;) switch (Zi.tag) {
+ function aa(e) {
+ for (Qi = e.return; Qi;) switch (Qi.tag) {
case 5:
case 31:
case 13:
- K = !1;
+ G = !1;
return;
case 27:
case 3:
- K = !0;
+ G = !0;
return;
- default: Zi = Zi.return;
+ default: Qi = Qi.return;
}
}
- function aa(e) {
- if (e !== Zi) return !1;
- if (!$i) return ia(e), $i = !0, !1;
+ function oa(e) {
+ if (e !== Qi) return !1;
+ if (!ea) return aa(e), ea = !0, !1;
var t = e.tag, n;
- if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || _p(e.type, e.memoizedProps)), n = !n), n && Qi && na(e), ia(e), t === 13) {
+ if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || vp(e.type, e.memoizedProps)), n = !n), n && $i && ra(e), aa(e), t === 13) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- Qi = hm(e);
+ $i = gm(e);
} else if (t === 31) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- Qi = hm(e);
- } else t === 27 ? (t = Qi, Ep(e.type) ? (e = mm, mm = null, Qi = e) : Qi = t) : Qi = Zi ? pm(e.stateNode.nextSibling) : null;
+ $i = gm(e);
+ } else t === 27 ? (t = $i, Dp(e.type) ? (e = hm, hm = null, $i = e) : $i = t) : $i = Qi ? mm(e.stateNode.nextSibling) : null;
return !0;
}
- function q() {
- Qi = Zi = null, $i = !1;
+ function K() {
+ $i = Qi = null, ea = !1;
}
- function oa() {
- var e = ea;
- return e !== null && (pd === null ? pd = e : pd.push.apply(pd, e), ea = null), e;
+ function sa() {
+ var e = ta;
+ return e !== null && (md === null ? md = e : md.push.apply(md, e), ta = null), e;
}
- function sa(e) {
- ea === null ? ea = [e] : ea.push(e);
+ function ca(e) {
+ ta === null ? ta = [e] : ta.push(e);
}
- var ca = he(null), la = null, ua = null;
- function da(e, t, n) {
- _e(ca, t._currentValue), t._currentValue = n;
+ var la = ge(null), ua = null, da = null;
+ function fa(e, t, n) {
+ ve(la, t._currentValue), t._currentValue = n;
}
- function fa(e) {
- e._currentValue = ca.current, ge(ca);
+ function pa(e) {
+ e._currentValue = la.current, _e(la);
}
- function pa(e, t, n) {
+ function ma(e, t, n) {
for (; e !== null;) {
var r = e.alternate;
if ((e.childLanes & t) === t ? r !== null && (r.childLanes & t) !== t && (r.childLanes |= t) : (e.childLanes |= t, r !== null && (r.childLanes |= t)), e === n) break;
e = e.return;
}
}
- function ma(e, t, n, r) {
+ function ha(e, t, n, r) {
var a = e.child;
for (a !== null && (a.return = e); a !== null;) {
var o = a.dependencies;
@@ -2384,15 +2384,15 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
var c = o;
o = a;
for (var l = 0; l < t.length; l++) if (c.context === t[l]) {
- o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), pa(o.return, n, e), r || (s = null);
+ o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), ma(o.return, n, e), r || (s = null);
break a;
}
o = c.next;
}
} else if (a.tag === 18) {
if (s = a.return, s === null) throw Error(i(341));
- s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), pa(s, n, e), s = null;
- } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), pa(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;
+ s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), ma(s, n, e), s = null;
+ } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), ma(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;
if (s !== null) s.return = a;
else for (s = a; s !== null;) {
if (s === e) {
@@ -2408,7 +2408,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
a = s;
}
}
- function ha(e, t, n, r) {
+ function ga(e, t, n, r) {
e = null;
for (var a = t, o = !1; a !== null;) {
if (!o) {
@@ -2420,48 +2420,48 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
if (s === null) throw Error(i(387));
if (s = s.memoizedProps, s !== null) {
var c = a.type;
- Vr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
+ Hr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
}
- } else if (a === xe.current) {
+ } else if (a === Se.current) {
if (s = a.alternate, s === null) throw Error(i(387));
- s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [dh] : e.push(dh));
+ s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [fh] : e.push(fh));
}
a = a.return;
}
- return e !== null && ma(t, e, n, r), t.flags |= 262144, e !== null;
+ return e !== null && ha(t, e, n, r), t.flags |= 262144, e !== null;
}
- function ga(e) {
+ function _a(e) {
for (e = e.firstContext; e !== null;) {
- if (!Vr(e.context._currentValue, e.memoizedValue)) return !0;
+ if (!Hr(e.context._currentValue, e.memoizedValue)) return !0;
e = e.next;
}
return !1;
}
- function _a(e) {
- la = e, ua = null, e = e.dependencies, e !== null && (e.firstContext = null);
- }
function va(e) {
- return ba(la, e);
+ ua = e, da = null, e = e.dependencies, e !== null && (e.firstContext = null);
}
- function ya(e, t) {
- return la === null && _a(e), ba(e, t);
+ function ya(e) {
+ return xa(ua, e);
}
function ba(e, t) {
+ return ua === null && va(e), xa(e, t);
+ }
+ function xa(e, t) {
var n = t._currentValue;
if (t = {
context: t,
memoizedValue: n,
next: null
- }, ua === null) {
+ }, da === null) {
if (e === null) throw Error(i(308));
- ua = t, e.dependencies = {
+ da = t, e.dependencies = {
lanes: 0,
firstContext: t
}, e.flags |= 524288;
- } else ua = ua.next = t;
+ } else da = da.next = t;
return n;
}
- var xa = typeof AbortController < "u" ? AbortController : function() {
+ var Sa = typeof AbortController < "u" ? AbortController : function() {
var e = [], t = this.signal = {
aborted: !1,
addEventListener: function(t, n) {
@@ -2473,7 +2473,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
return e();
});
};
- }, Sa = t.unstable_scheduleCallback, Ca = t.unstable_NormalPriority, wa = {
+ }, Ca = t.unstable_scheduleCallback, wa = t.unstable_NormalPriority, Ta = {
$$typeof: M,
Consumer: null,
Provider: null,
@@ -2481,19 +2481,19 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
_currentValue2: null,
_threadCount: 0
};
- function Ta() {
+ function Ea() {
return {
- controller: new xa(),
+ controller: new Sa(),
data: /* @__PURE__ */ new Map(),
refCount: 0
};
}
- function Ea(e) {
- e.refCount--, e.refCount === 0 && Sa(Ca, function() {
+ function Da(e) {
+ e.refCount--, e.refCount === 0 && Ca(wa, function() {
e.controller.abort();
});
}
- function Da(e, t) {
+ function Oa(e, t) {
if (e.pendingLanes & 4194048) {
var n = e.transitionTypes;
for (n === null && (n = e.transitionTypes = []), e = 0; e < t.length; e++) {
@@ -2502,16 +2502,16 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
}
}
- var Oa = null;
- function ka(e) {
+ var ka = null;
+ function Aa(e) {
var t = e.transitionTypes;
return e.transitionTypes = null, t;
}
- var Aa = null, ja = 0, J = 0, Ma = null;
- function Na(e, t) {
- if (Aa === null) {
- var n = Aa = [];
- ja = 0, J = If(), Ma = {
+ var ja = null, Ma = 0, q = 0, Na = null;
+ function Pa(e, t) {
+ if (ja === null) {
+ var n = ja = [];
+ Ma = 0, q = Lf(), Na = {
status: "pending",
value: void 0,
then: function(e) {
@@ -2519,17 +2519,17 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
};
}
- return ja++, t.then(Pa, Pa), t;
+ return Ma++, t.then(Fa, Fa), t;
}
- function Pa() {
- if (--ja === 0 && (Oa = null, Aa !== null)) {
- Ma !== null && (Ma.status = "fulfilled");
- var e = Aa;
- Aa = null, J = 0, Ma = null;
+ function Fa() {
+ if (--Ma === 0 && (ka = null, ja !== null)) {
+ Na !== null && (Na.status = "fulfilled");
+ var e = ja;
+ ja = null, q = 0, Na = null;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
}
- function Fa(e, t) {
+ function Ia(e, t) {
var n = [], r = {
status: "pending",
value: null,
@@ -2545,48 +2545,48 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);
}), r;
}
- var Ia = L.S;
- L.S = function(e, t) {
- if (gd = R(), typeof t == "object" && t && typeof t.then == "function" && Na(e, t), Oa !== null) for (var n = Sf; n !== null;) Da(n, Oa), n = n.next;
+ var La = I.S;
+ I.S = function(e, t) {
+ if (_d = L(), typeof t == "object" && t && typeof t.then == "function" && Pa(e, t), ka !== null) for (var n = Cf; n !== null;) Oa(n, ka), n = n.next;
if (n = e.types, n !== null) {
- for (var r = Sf; r !== null;) Da(r, n), r = r.next;
- if (J !== 0) {
- r = Oa, r === null && (r = Oa = []);
+ for (var r = Cf; r !== null;) Oa(r, n), r = r.next;
+ if (q !== 0) {
+ r = ka, r === null && (r = ka = []);
for (var i = 0; i < n.length; i++) {
var a = n[i];
r.indexOf(a) === -1 && r.push(a);
}
}
}
- Ia !== null && Ia(e, t);
+ La !== null && La(e, t);
};
- var La = he(null);
- function Ra() {
- var e = La.current;
- return e === null ? Zu.pooledCache : e;
+ var Ra = ge(null);
+ function za() {
+ var e = Ra.current;
+ return e === null ? Qu.pooledCache : e;
}
- function za(e, t) {
- t === null ? _e(La, La.current) : _e(La, t.pool);
+ function Ba(e, t) {
+ t === null ? ve(Ra, Ra.current) : ve(Ra, t.pool);
}
- function Ba() {
- var e = Ra();
+ function Va() {
+ var e = za();
return e === null ? null : {
- parent: wa._currentValue,
+ parent: Ta._currentValue,
pool: e
};
}
- var Va = Error(i(460)), Ha = Error(i(474)), Ua = Error(i(542)), Wa = { then: function() {} };
- function Ga(e) {
+ var Ha = Error(i(460)), Ua = Error(i(474)), Wa = Error(i(542)), Ga = { then: function() {} };
+ function Ka(e) {
return e = e.status, e === "fulfilled" || e === "rejected";
}
- function Ka(e, t, n) {
- switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(vn, vn), t = n), t.status) {
+ function qa(e, t, n) {
+ switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(yn, yn), t = n), t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, Xa(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
+ case "rejected": throw e = t.reason, Za(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
default:
- if (typeof t.status == "string") t.then(vn, vn);
+ if (typeof t.status == "string") t.then(yn, yn);
else {
- if (e = Zu, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
+ if (e = Qu, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
e = t, e.status = "pending", e.then(function(e) {
if (t.status === "pending") {
var n = t;
@@ -2601,40 +2601,40 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
switch (t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, Xa(e), e;
+ case "rejected": throw e = t.reason, Za(e), e;
}
- throw Ja = t, Va;
+ throw Ya = t, Ha;
}
}
- function qa(e) {
+ function Ja(e) {
try {
var t = e._init;
return t(e._payload);
} catch (e) {
- throw typeof e == "object" && e && typeof e.then == "function" ? (Ja = e, Va) : e;
+ throw typeof e == "object" && e && typeof e.then == "function" ? (Ya = e, Ha) : e;
}
}
- var Ja = null;
- function Ya() {
- if (Ja === null) throw Error(i(459));
- var e = Ja;
- return Ja = null, e;
+ var Ya = null;
+ function Xa() {
+ if (Ya === null) throw Error(i(459));
+ var e = Ya;
+ return Ya = null, e;
}
- function Xa(e) {
- if (e === Va || e === Ua) throw Error(i(483));
+ function Za(e) {
+ if (e === Ha || e === Wa) throw Error(i(483));
}
- var Za = null, Qa = 0;
- function $a(e) {
- var t = Qa;
- return Qa += 1, Za === null && (Za = []), Ka(Za, e, t);
+ var Qa = null, $a = 0;
+ function eo(e) {
+ var t = $a;
+ return $a += 1, Qa === null && (Qa = []), qa(Qa, e, t);
}
- function eo(e, t) {
+ function to(e, t) {
t = t.props.ref, e.ref = t === void 0 ? null : t;
}
- function to(e, t) {
+ function no(e, t) {
throw t.$$typeof === T ? Error(i(525)) : (e = Object.prototype.toString.call(t), Error(i(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)));
}
- function no(e) {
+ function ro(e) {
function t(t, n) {
if (e) {
var r = t.deletions;
@@ -2651,7 +2651,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
return t;
}
function a(e, t) {
- return e = Mi(e, t), e.index = 0, e.sibling = null, e;
+ return e = Ni(e, t), e.index = 0, e.sibling = null, e;
}
function o(t, n, r) {
return t.index = r, e ? (r = t.alternate, r === null ? (t.flags |= 134217730, n) : (r = r.index, r < n ? (t.flags |= 2, n) : r)) : (t.flags |= 1048576, n);
@@ -2660,30 +2660,30 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
return e && t.alternate === null && (t.flags |= 134217730), t;
}
function c(e, t, n, r) {
- return t === null || t.tag !== 6 ? (t = Ii(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 6 ? (t = Li(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
}
function l(e, t, n, r) {
var i = n.type;
- return i === O ? (e = d(e, t, n.props.children, r, n.key), eo(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === I && qa(i) === t.type) ? (t = a(t, n.props), eo(t, n), t.return = e, t) : (t = Pi(n.type, n.key, n.props, null, e.mode, r), eo(t, n), t.return = e, t);
+ return i === O ? (e = d(e, t, n.props.children, r, n.key), to(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === te && Ja(i) === t.type) ? (t = a(t, n.props), to(t, n), t.return = e, t) : (t = Fi(n.type, n.key, n.props, null, e.mode, r), to(t, n), t.return = e, t);
}
function u(e, t, n, r) {
- return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Ri(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
+ return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = zi(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
}
function d(e, t, n, r, i) {
- return t === null || t.tag !== 7 ? (t = Fi(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 7 ? (t = Ii(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
}
function f(e, t, n) {
- if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Ii("" + t, e.mode, n), t.return = e, t;
+ if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Li("" + t, e.mode, n), t.return = e, t;
if (typeof t == "object" && t) {
switch (t.$$typeof) {
- case E: return n = Pi(t.type, t.key, t.props, null, e.mode, n), eo(n, t), n.return = e, n;
- case D: return t = Ri(t, e.mode, n), t.return = e, t;
- case I: return t = qa(t), f(e, t, n);
+ case E: return n = Fi(t.type, t.key, t.props, null, e.mode, n), to(n, t), n.return = e, n;
+ case D: return t = zi(t, e.mode, n), t.return = e, t;
+ case te: return t = Ja(t), f(e, t, n);
}
- if (ue(t) || se(t)) return t = Fi(t, e.mode, n, null), t.return = e, t;
- if (typeof t.then == "function") return f(e, $a(t), n);
- if (t.$$typeof === M) return f(e, ya(e, t), n);
- to(e, t);
+ if (de(t) || ce(t)) return t = Ii(t, e.mode, n, null), t.return = e, t;
+ if (typeof t.then == "function") return f(e, eo(t), n);
+ if (t.$$typeof === M) return f(e, ba(e, t), n);
+ no(e, t);
}
return null;
}
@@ -2694,12 +2694,12 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
switch (n.$$typeof) {
case E: return n.key === i ? l(e, t, n, r) : null;
case D: return n.key === i ? u(e, t, n, r) : null;
- case I: return n = qa(n), p(e, t, n, r);
+ case te: return n = Ja(n), p(e, t, n, r);
}
- if (ue(n) || se(n)) return i === null ? d(e, t, n, r, null) : null;
- if (typeof n.then == "function") return p(e, t, $a(n), r);
- if (n.$$typeof === M) return p(e, t, ya(e, n), r);
- to(e, n);
+ if (de(n) || ce(n)) return i === null ? d(e, t, n, r, null) : null;
+ if (typeof n.then == "function") return p(e, t, eo(n), r);
+ if (n.$$typeof === M) return p(e, t, ba(e, n), r);
+ no(e, n);
}
return null;
}
@@ -2709,12 +2709,12 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
switch (r.$$typeof) {
case E: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);
case D: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);
- case I: return r = qa(r), m(e, t, n, r, i);
+ case te: return r = Ja(r), m(e, t, n, r, i);
}
- if (ue(r) || se(r)) return e = e.get(n) || null, d(t, e, r, i, null);
- if (typeof r.then == "function") return m(e, t, n, $a(r), i);
- if (r.$$typeof === M) return m(e, t, n, ya(t, r), i);
- to(t, r);
+ if (de(r) || ce(r)) return e = e.get(n) || null, d(t, e, r, i, null);
+ if (typeof r.then == "function") return m(e, t, n, eo(r), i);
+ if (r.$$typeof === M) return m(e, t, n, ba(t, r), i);
+ no(t, r);
}
return null;
}
@@ -2728,15 +2728,15 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
e && d && _.alternate === null && t(i, d), a = o(_, a, h), u === null ? l = _ : u.sibling = _, u = _, d = g;
}
- if (h === s.length) return n(i, d), $i && Ki(i, h), l;
+ if (h === s.length) return n(i, d), ea && qi(i, h), l;
if (d === null) {
for (; h < s.length; h++) d = f(i, s[h], c), d !== null && (a = o(d, a, h), u === null ? l = d : u.sibling = d, u = d);
- return $i && Ki(i, h), l;
+ return ea && qi(i, h), l;
}
for (d = r(d); h < s.length; h++) g = m(d, i, h, s[h], c), g !== null && (e && (_ = g.alternate, _ !== null && d.delete(_.key === null ? h : _.key)), a = o(g, a, h), u === null ? l = g : u.sibling = g, u = g);
return e && d.forEach(function(e) {
return t(i, e);
- }), $i && Ki(i, h), l;
+ }), ea && qi(i, h), l;
}
function g(a, s, c, l) {
if (c == null) throw Error(i(151));
@@ -2749,15 +2749,15 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
e && h && y.alternate === null && t(a, h), s = o(y, s, g), d === null ? u = y : d.sibling = y, d = y, h = _;
}
- if (v.done) return n(a, h), $i && Ki(a, g), u;
+ if (v.done) return n(a, h), ea && qi(a, g), u;
if (h === null) {
for (; !v.done; g++, v = c.next()) v = f(a, v.value, l), v !== null && (s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);
- return $i && Ki(a, g), u;
+ return ea && qi(a, g), u;
}
for (h = r(h); !v.done; g++, v = c.next()) v = m(h, a, g, v.value, l), v !== null && (e && (_ = v.alternate, _ !== null && h.delete(_.key === null ? g : _.key)), s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);
return e && h.forEach(function(e) {
return t(a, e);
- }), $i && Ki(a, g), u;
+ }), ea && qi(a, g), u;
}
function _(e, r, o, c) {
if (typeof o == "object" && o && o.type === O && o.key === null && o.props.ref === void 0 && (o = o.props.children), typeof o == "object" && o) {
@@ -2768,11 +2768,11 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
if (r.key === l) {
if (l = o.type, l === O) {
if (r.tag === 7) {
- n(e, r.sibling), c = a(r, o.props.children), eo(c, o), c.return = e, e = c;
+ n(e, r.sibling), c = a(r, o.props.children), to(c, o), c.return = e, e = c;
break a;
}
- } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === I && qa(l) === r.type) {
- n(e, r.sibling), c = a(r, o.props), eo(c, o), c.return = e, e = c;
+ } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === te && Ja(l) === r.type) {
+ n(e, r.sibling), c = a(r, o.props), to(c, o), c.return = e, e = c;
break a;
}
n(e, r);
@@ -2780,7 +2780,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
t(e, r), r = r.sibling;
}
- o.type === O ? (c = Fi(o.props.children, e.mode, c, o.key), eo(c, o), c.return = e, e = c) : (c = Pi(o.type, o.key, o.props, null, e.mode, c), eo(c, o), c.return = e, e = c);
+ o.type === O ? (c = Ii(o.props.children, e.mode, c, o.key), to(c, o), c.return = e, e = c) : (c = Fi(o.type, o.key, o.props, null, e.mode, c), to(c, o), c.return = e, e = c);
}
return s(e);
case D:
@@ -2796,36 +2796,36 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
t(e, r), r = r.sibling;
}
- c = Ri(o, e.mode, c), c.return = e, e = c;
+ c = zi(o, e.mode, c), c.return = e, e = c;
}
return s(e);
- case I: return o = qa(o), _(e, r, o, c);
+ case te: return o = Ja(o), _(e, r, o, c);
}
- if (ue(o)) return h(e, r, o, c);
- if (se(o)) {
- if (l = se(o), typeof l != "function") throw Error(i(150));
+ if (de(o)) return h(e, r, o, c);
+ if (ce(o)) {
+ if (l = ce(o), typeof l != "function") throw Error(i(150));
return o = l.call(o), g(e, r, o, c);
}
- if (typeof o.then == "function") return _(e, r, $a(o), c);
- if (o.$$typeof === M) return _(e, r, ya(e, o), c);
- to(e, o);
+ if (typeof o.then == "function") return _(e, r, eo(o), c);
+ if (o.$$typeof === M) return _(e, r, ba(e, o), c);
+ no(e, o);
}
- return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Ii(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
+ return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Li(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
}
return function(e, t, n, r) {
try {
- Qa = 0;
+ $a = 0;
var i = _(e, t, n, r);
- return Za = null, i;
+ return Qa = null, i;
} catch (t) {
- if (t === Va || t === Ua) throw t;
- var a = Ai(29, t, null, e.mode);
+ if (t === Ha || t === Wa) throw t;
+ var a = ji(29, t, null, e.mode);
return a.lanes = r, a.return = e, a;
}
};
}
- var Y = no(!0), ro = no(!1), io = !1;
- function ao(e) {
+ var J = ro(!0), io = ro(!1), ao = !1;
+ function oo(e) {
e.updateQueue = {
baseState: e.memoizedState,
firstBaseUpdate: null,
@@ -2838,7 +2838,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
callbacks: null
};
}
- function oo(e, t) {
+ function so(e, t) {
e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
baseState: e.baseState,
firstBaseUpdate: e.firstBaseUpdate,
@@ -2847,7 +2847,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
callbacks: null
});
}
- function so(e) {
+ function co(e) {
return {
lane: e,
tag: 0,
@@ -2856,22 +2856,22 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
next: null
};
}
- function co(e, t, n) {
+ function lo(e, t, n) {
var r = e.updateQueue;
if (r === null) return null;
- if (r = r.shared, Xu & 2) {
+ if (r = r.shared, Zu & 2) {
var i = r.pending;
- return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Di(e), Ei(e, null, n), t;
+ return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Oi(e), Di(e, null, n), t;
}
- return Ci(e, r, t, n), Di(e);
+ return wi(e, r, t, n), Oi(e);
}
- function lo(e, t, n) {
+ function uo(e, t, n) {
if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {
var r = t.lanes;
- r &= e.pendingLanes, n |= r, t.lanes = n, ht(e, n);
+ r &= e.pendingLanes, n |= r, t.lanes = n, gt(e, n);
}
}
- function uo(e, t) {
+ function fo(e, t) {
var n = e.updateQueue, r = e.alternate;
if (r !== null && (r = r.updateQueue, n === r)) {
var i = null, a = null;
@@ -2899,17 +2899,17 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;
}
- var fo = !1;
- function po() {
- if (fo) {
- var e = Ma;
+ var po = !1;
+ function mo() {
+ if (po) {
+ var e = Na;
if (e !== null) throw e;
}
}
- function mo(e, t, n, r) {
- fo = !1;
+ function ho(e, t, n, r) {
+ po = !1;
var i = e.updateQueue;
- io = !1;
+ ao = !1;
var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;
if (s !== null) {
i.shared.pending = null;
@@ -2923,8 +2923,8 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
o = 0, u = l = c = null, s = a;
do {
var f = s.lane & -536870913, p = f !== s.lane;
- if (p ? ($u & f) === f : (r & f) === f) {
- f !== 0 && f === J && (fo = !0), u !== null && (u = u.next = {
+ if (p ? (ed & f) === f : (r & f) === f) {
+ f !== 0 && f === q && (po = !0), u !== null && (u = u.next = {
lane: 0,
tag: s.tag,
payload: s.payload,
@@ -2948,7 +2948,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
if (m = h.payload, f = typeof m == "function" ? m.call(g, d, f) : m, f == null) break a;
d = w({}, d, f);
break a;
- case 2: io = !0;
+ case 2: ao = !0;
}
}
f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));
@@ -2964,56 +2964,56 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;
}
} while (1);
- u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), sd |= o, e.lanes = o, e.memoizedState = d;
+ u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), cd |= o, e.lanes = o, e.memoizedState = d;
}
}
- function ho(e, t) {
+ function go(e, t) {
if (typeof e != "function") throw Error(i(191, e));
e.call(t);
}
- function go(e, t) {
+ function _o(e, t) {
var n = e.callbacks;
- if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) ho(n[e], t);
+ if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) go(n[e], t);
}
- var _o = he(null), vo = he(0);
- function yo(e, t) {
- e = ad, _e(vo, e), _e(_o, t), ad = e | t.baseLanes;
- }
- function bo() {
- _e(vo, ad), _e(_o, _o.current);
+ var vo = ge(null), yo = ge(0);
+ function bo(e, t) {
+ e = od, ve(yo, e), ve(vo, t), od = e | t.baseLanes;
}
function xo() {
- ad = vo.current, ge(_o), ge(vo);
+ ve(yo, od), ve(vo, vo.current);
}
- var So = he(null), Co = null;
- function wo(e) {
- var t = e.alternate;
- _e(ko, ko.current & 1), _e(So, e), Co === null && (t === null || _o.current !== null || t.memoizedState !== null) && (Co = e);
+ function So() {
+ od = yo.current, _e(vo), _e(yo);
}
+ var Co = ge(null), wo = null;
function To(e) {
- _e(ko, ko.current), _e(So, e), Co === null && (Co = e);
+ var t = e.alternate;
+ ve(Ao, Ao.current & 1), ve(Co, e), wo === null && (t === null || vo.current !== null || t.memoizedState !== null) && (wo = e);
}
function Eo(e) {
- e.tag === 22 ? (_e(ko, ko.current), _e(So, e), Co === null && (Co = e)) : Do();
+ ve(Ao, Ao.current), ve(Co, e), wo === null && (wo = e);
}
- function Do() {
- _e(ko, ko.current), _e(So, So.current);
+ function Do(e) {
+ e.tag === 22 ? (ve(Ao, Ao.current), ve(Co, e), wo === null && (wo = e)) : Oo();
}
- function Oo(e) {
- ge(So), Co === e && (Co = null), ge(ko);
+ function Oo() {
+ ve(Ao, Ao.current), ve(Co, Co.current);
}
- var ko = he(0);
- function Ao(e, t) {
- _e(So, So.current), _e(ko, t);
+ function ko(e) {
+ _e(Co), wo === e && (wo = null), _e(Ao);
}
- function jo(e) {
- ge(ko), ge(So), Co === e && (Co = null);
+ var Ao = ge(0);
+ function jo(e, t) {
+ ve(Co, Co.current), ve(Ao, t);
}
function Mo(e) {
+ _e(Ao), _e(Co), wo === e && (wo = null);
+ }
+ function No(e) {
for (var t = e; t !== null;) {
if (t.tag === 13) {
var n = t.memoizedState;
- if (n !== null && (n = n.dehydrated, n === null || um(n) || dm(n))) return t;
+ if (n !== null && (n = n.dehydrated, n === null || dm(n) || fm(n))) return t;
} else if (t.tag === 19 && t.memoizedProps.revealOrder !== "independent") {
if (t.flags & 128) return t;
} else if (t.child !== null) {
@@ -3029,59 +3029,59 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
return null;
}
- var No = 0, Po = null, Fo = null, Io = null, Lo = !1, Ro = !1, zo = !1, Bo = 0, Vo = 0, Ho = null, Uo = 0;
- function Wo() {
+ var Po = 0, Fo = null, Io = null, Lo = null, Ro = !1, zo = !1, Bo = !1, Vo = 0, Ho = 0, Uo = null, Wo = 0;
+ function Go() {
throw Error(i(321));
}
- function Go(e, t) {
+ function Ko(e, t) {
if (t === null) return !1;
- for (var n = 0; n < t.length && n < e.length; n++) if (!Vr(e[n], t[n])) return !1;
+ for (var n = 0; n < t.length && n < e.length; n++) if (!Hr(e[n], t[n])) return !1;
return !0;
}
- function Ko(e, t, n, r, i, a) {
- return No = a, Po = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, L.H = e === null || e.memoizedState === null ? lc : uc, zo = !1, a = n(r, i), zo = !1, Ro && (a = Jo(t, n, r, i)), qo(e), a;
+ function qo(e, t, n, r, i, a) {
+ return Po = a, Fo = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, I.H = e === null || e.memoizedState === null ? uc : dc, Bo = !1, a = n(r, i), Bo = !1, zo && (a = Yo(t, n, r, i)), Jo(e), a;
}
- function qo(e) {
- L.H = cc;
- var t = Fo !== null && Fo.next !== null;
- if (No = 0, Io = Fo = Po = null, Lo = !1, Vo = 0, Ho = null, t) throw Error(i(300));
- e === null || Dc || (e = e.dependencies, e !== null && ga(e) && (Dc = !0));
+ function Jo(e) {
+ I.H = lc;
+ var t = Io !== null && Io.next !== null;
+ if (Po = 0, Lo = Io = Fo = null, Ro = !1, Ho = 0, Uo = null, t) throw Error(i(300));
+ e === null || Oc || (e = e.dependencies, e !== null && _a(e) && (Oc = !0));
}
- function Jo(e, t, n, r) {
- Po = e;
+ function Yo(e, t, n, r) {
+ Fo = e;
var a = 0;
do {
- if (Ro && (Ho = null), Vo = 0, Ro = !1, 25 <= a) throw Error(i(301));
- if (a += 1, Io = Fo = null, e.updateQueue != null) {
+ if (zo && (Uo = null), Ho = 0, zo = !1, 25 <= a) throw Error(i(301));
+ if (a += 1, Lo = Io = null, e.updateQueue != null) {
var o = e.updateQueue;
o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);
}
- L.H = dc, o = t(n, r);
- } while (Ro);
+ I.H = fc, o = t(n, r);
+ } while (zo);
return o;
}
- function Yo() {
- var e = L.H, t = e.useState()[0];
- return t = typeof t.then == "function" ? ns(t) : t, e = e.useState()[0], (Fo === null ? null : Fo.memoizedState) !== e && (Po.flags |= 1024), t;
- }
function Xo() {
- var e = Bo !== 0;
- return Bo = 0, e;
+ var e = I.H, t = e.useState()[0];
+ return t = typeof t.then == "function" ? rs(t) : t, e = e.useState()[0], (Io === null ? null : Io.memoizedState) !== e && (Fo.flags |= 1024), t;
}
- function Zo(e, t, n) {
+ function Zo() {
+ var e = Vo !== 0;
+ return Vo = 0, e;
+ }
+ function Qo(e, t, n) {
t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n;
}
- function Qo(e) {
- if (Lo) {
+ function $o(e) {
+ if (Ro) {
for (e = e.memoizedState; e !== null;) {
var t = e.queue;
t !== null && (t.pending = null), e = e.next;
}
- Lo = !1;
+ Ro = !1;
}
- No = 0, Io = Fo = Po = null, Ro = !1, Vo = Bo = 0, Ho = null;
+ Po = 0, Lo = Io = Fo = null, zo = !1, Ho = Vo = 0, Uo = null;
}
- function $o() {
+ function es() {
var e = {
memoizedState: null,
baseState: null,
@@ -3089,28 +3089,28 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
queue: null,
next: null
};
- return Io === null ? Po.memoizedState = Io = e : Io = Io.next = e, Io;
+ return Lo === null ? Fo.memoizedState = Lo = e : Lo = Lo.next = e, Lo;
}
- function es() {
- if (Fo === null) {
- var e = Po.alternate;
+ function ts() {
+ if (Io === null) {
+ var e = Fo.alternate;
e = e === null ? null : e.memoizedState;
- } else e = Fo.next;
- var t = Io === null ? Po.memoizedState : Io.next;
- if (t !== null) Io = t, Fo = e;
+ } else e = Io.next;
+ var t = Lo === null ? Fo.memoizedState : Lo.next;
+ if (t !== null) Lo = t, Io = e;
else {
- if (e === null) throw Po.alternate === null ? Error(i(467)) : Error(i(310));
- Fo = e, e = {
- memoizedState: Fo.memoizedState,
- baseState: Fo.baseState,
- baseQueue: Fo.baseQueue,
- queue: Fo.queue,
+ if (e === null) throw Fo.alternate === null ? Error(i(467)) : Error(i(310));
+ Io = e, e = {
+ memoizedState: Io.memoizedState,
+ baseState: Io.baseState,
+ baseQueue: Io.baseQueue,
+ queue: Io.queue,
next: null
- }, Io === null ? Po.memoizedState = Io = e : Io = Io.next = e;
+ }, Lo === null ? Fo.memoizedState = Lo = e : Lo = Lo.next = e;
}
- return Io;
+ return Lo;
}
- function ts() {
+ function ns() {
return {
lastEffect: null,
events: null,
@@ -3118,22 +3118,22 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
memoCache: null
};
}
- function ns(e) {
- var t = Vo;
- return Vo += 1, Ho === null && (Ho = []), e = Ka(Ho, e, t), t = Po, (Io === null ? t.memoizedState : Io.next) === null && (t = t.alternate, L.H = t === null || t.memoizedState === null ? lc : uc), e;
- }
function rs(e) {
+ var t = Ho;
+ return Ho += 1, Uo === null && (Uo = []), e = qa(Uo, e, t), t = Fo, (Lo === null ? t.memoizedState : Lo.next) === null && (t = t.alternate, I.H = t === null || t.memoizedState === null ? uc : dc), e;
+ }
+ function is(e) {
if (typeof e == "object" && e) {
- if (typeof e.then == "function") return ns(e);
- if (e.$$typeof === ae) return;
- if (e.$$typeof === M) return va(e);
+ if (typeof e.then == "function") return rs(e);
+ if (e.$$typeof === oe) return;
+ if (e.$$typeof === M) return ya(e);
}
throw Error(i(438, String(e)));
}
- function is(e) {
- var t = null, n = Po.updateQueue;
+ function as(e) {
+ var t = null, n = Fo.updateQueue;
if (n !== null && (t = n.memoCache), t == null) {
- var r = Po.alternate;
+ var r = Fo.alternate;
r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {
data: r.data.map(function(e) {
return e.slice();
@@ -3144,16 +3144,16 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
if (t ??= {
data: [],
index: 0
- }, n === null && (n = ts(), Po.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = re;
+ }, n === null && (n = ns(), Fo.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = ie;
return t.index++, n;
}
- function as(e, t) {
+ function os(e, t) {
return typeof t == "function" ? t(e) : t;
}
- function os(e) {
- return ss(es(), Fo, e);
+ function ss(e) {
+ return cs(ts(), Io, e);
}
- function ss(e, t, n) {
+ function cs(e, t, n) {
var r = e.queue;
if (r === null) throw Error(i(311));
r.lastRenderedReducer = n;
@@ -3171,7 +3171,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
var c = s = null, l = null, u = t, d = !1;
do {
var f = u.lane & -536870913;
- if (f === u.lane ? (No & f) === f : ($u & f) === f) {
+ if (f === u.lane ? (Po & f) === f : (ed & f) === f) {
var p = u.revertLane;
if (p === 0) l !== null && (l = l.next = {
lane: 0,
@@ -3181,9 +3181,9 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }), f === J && (d = !0);
- else if ((No & p) === p) {
- u = u.next, p === J && (d = !0);
+ }), f === q && (d = !0);
+ else if ((Po & p) === p) {
+ u = u.next, p === q && (d = !0);
continue;
} else f = {
lane: 0,
@@ -3193,8 +3193,8 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = f, s = o) : l = l.next = f, Po.lanes |= p, sd |= p;
- f = u.action, zo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
+ }, l === null ? (c = l = f, s = o) : l = l.next = f, Fo.lanes |= p, cd |= p;
+ f = u.action, Bo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
} else p = {
lane: f,
revertLane: u.revertLane,
@@ -3203,16 +3203,16 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = p, s = o) : l = l.next = p, Po.lanes |= f, sd |= f;
+ }, l === null ? (c = l = p, s = o) : l = l.next = p, Fo.lanes |= f, cd |= f;
u = u.next;
} while (u !== null && u !== t);
- if (l === null ? s = o : l.next = c, !Vr(o, e.memoizedState) && (Dc = !0, d && (n = Ma, n !== null))) throw n;
+ if (l === null ? s = o : l.next = c, !Hr(o, e.memoizedState) && (Oc = !0, d && (n = Na, n !== null))) throw n;
e.memoizedState = o, e.baseState = s, e.baseQueue = l, r.lastRenderedState = o;
}
return a === null && (r.lanes = 0), [e.memoizedState, r.dispatch];
}
- function cs(e) {
- var t = es(), n = t.queue;
+ function ls(e) {
+ var t = ts(), n = t.queue;
if (n === null) throw Error(i(311));
n.lastRenderedReducer = e;
var r = n.dispatch, a = n.pending, o = t.memoizedState;
@@ -3222,61 +3222,61 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
do
o = e(o, s.action), s = s.next;
while (s !== a);
- Vr(o, t.memoizedState) || (Dc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
+ Hr(o, t.memoizedState) || (Oc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
}
return [o, r];
}
- function ls(e, t, n) {
- var r = Po, a = es(), o = $i;
+ function us(e, t, n) {
+ var r = Fo, a = ts(), o = ea;
if (o) {
if (n === void 0) throw Error(i(407));
n = n();
} else n = t();
- var s = !Vr((Fo || a).memoizedState, n);
- if (s && (a.memoizedState = n, Dc = !0), a = a.queue, Ps(fs.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Io !== null && !!(Io.memoizedState.tag & 1), ks(e ? 9 : 8, { destroy: void 0 }, ds.bind(null, r, a, n, t), null), e) {
- if (r.flags |= 2048, Zu === null) throw Error(i(349));
- o || No & 127 || us(r, t, n);
+ var s = !Hr((Io || a).memoizedState, n);
+ if (s && (a.memoizedState = n, Oc = !0), a = a.queue, Fs(ps.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Lo !== null && !!(Lo.memoizedState.tag & 1), As(e ? 9 : 8, { destroy: void 0 }, fs.bind(null, r, a, n, t), null), e) {
+ if (r.flags |= 2048, Qu === null) throw Error(i(349));
+ o || Po & 127 || ds(r, t, n);
}
return n;
}
- function us(e, t, n) {
+ function ds(e, t, n) {
e.flags |= 16384, e = {
getSnapshot: t,
value: n
- }, t = Po.updateQueue, t === null ? (t = ts(), Po.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
+ }, t = Fo.updateQueue, t === null ? (t = ns(), Fo.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
}
- function ds(e, t, n, r) {
- t.value = n, t.getSnapshot = r, ps(t) && ms(e);
+ function fs(e, t, n, r) {
+ t.value = n, t.getSnapshot = r, ms(t) && hs(e);
}
- function fs(e, t, n) {
+ function ps(e, t, n) {
return n(function() {
- ps(t) && ms(e);
+ ms(t) && hs(e);
});
}
- function ps(e) {
+ function ms(e) {
var t = e.getSnapshot;
e = e.value;
try {
var n = t();
- return !Vr(e, n);
+ return !Hr(e, n);
} catch {
return !0;
}
}
- function ms(e) {
- var t = Ti(e, 2);
- t !== null && Fd(t, e, 2);
- }
function hs(e) {
- var t = $o();
+ var t = Ei(e, 2);
+ t !== null && Id(t, e, 2);
+ }
+ function gs(e) {
+ var t = es();
if (typeof e == "function") {
var n = e;
- if (e = n(), zo) {
- Ze(!0);
+ if (e = n(), Bo) {
+ Qe(!0);
try {
n();
} finally {
- Ze(!1);
+ Qe(!1);
}
}
}
@@ -3284,15 +3284,15 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: as,
+ lastRenderedReducer: os,
lastRenderedState: e
}, t;
}
- function gs(e, t, n, r) {
- return e.baseState = n, ss(e, Fo, typeof r == "function" ? r : as);
+ function _s(e, t, n, r) {
+ return e.baseState = n, cs(e, Io, typeof r == "function" ? r : os);
}
- function _s(e, t, n, r, a) {
- if (ac(e)) throw Error(i(485));
+ function vs(e, t, n, r, a) {
+ if (oc(e)) throw Error(i(485));
if (e = t.action, e !== null) {
var o = {
payload: a,
@@ -3307,70 +3307,70 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
o.listeners.push(e);
}
};
- L.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, vs(t, o)) : (o.next = n.next, t.pending = n.next = o);
+ I.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, ys(t, o)) : (o.next = n.next, t.pending = n.next = o);
}
}
- function vs(e, t) {
+ function ys(e, t) {
var n = t.action, r = t.payload, i = e.state;
if (t.isTransition) {
- var a = L.T, o = {};
- o.types = a === null ? null : a.types, L.T = o;
+ var a = I.T, o = {};
+ o.types = a === null ? null : a.types, I.T = o;
try {
- var s = n(i, r), c = L.S;
- c !== null && c(o, s), ys(e, t, s);
+ var s = n(i, r), c = I.S;
+ c !== null && c(o, s), bs(e, t, s);
} catch (n) {
- xs(e, t, n);
+ Ss(e, t, n);
} finally {
- a !== null && o.types !== null && (a.types = o.types), L.T = a;
+ a !== null && o.types !== null && (a.types = o.types), I.T = a;
}
} else try {
- a = n(i, r), ys(e, t, a);
+ a = n(i, r), bs(e, t, a);
} catch (n) {
- xs(e, t, n);
+ Ss(e, t, n);
}
}
- function ys(e, t, n) {
+ function bs(e, t, n) {
typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) {
- bs(e, t, n);
+ xs(e, t, n);
}, function(n) {
- return xs(e, t, n);
- }) : bs(e, t, n);
- }
- function bs(e, t, n) {
- t.status = "fulfilled", t.value = n, Ss(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, vs(e, n)));
+ return Ss(e, t, n);
+ }) : xs(e, t, n);
}
function xs(e, t, n) {
+ t.status = "fulfilled", t.value = n, Cs(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, ys(e, n)));
+ }
+ function Ss(e, t, n) {
var r = e.pending;
if (e.pending = null, r !== null) {
r = r.next;
do
- t.status = "rejected", t.reason = n, Ss(t), t = t.next;
+ t.status = "rejected", t.reason = n, Cs(t), t = t.next;
while (t !== r);
}
e.action = null;
}
- function Ss(e) {
+ function Cs(e) {
e = e.listeners;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
- function Cs(e, t) {
+ function ws(e, t) {
return t;
}
- function ws(e, t) {
- if ($i) {
- var n = Zu.formState;
+ function Ts(e, t) {
+ if (ea) {
+ var n = Qu.formState;
if (n !== null) {
a: {
- var r = Po;
- if ($i) {
- if (Qi) {
+ var r = Fo;
+ if (ea) {
+ if ($i) {
b: {
- for (var i = Qi, a = K; i.nodeType !== 8;) {
+ for (var i = $i, a = G; i.nodeType !== 8;) {
if (!a) {
i = null;
break b;
}
- if (i = pm(i.nextSibling), i === null) {
+ if (i = mm(i.nextSibling), i === null) {
i = null;
break b;
}
@@ -3378,59 +3378,59 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
a = i.data, i = a === "F!" || a === "F" ? i : null;
}
if (i) {
- Qi = pm(i.nextSibling), r = i.data === "F!";
+ $i = mm(i.nextSibling), r = i.data === "F!";
break a;
}
}
- na(r);
+ ra(r);
}
r = !1;
}
r && (t = n[0]);
}
}
- return n = $o(), n.memoizedState = n.baseState = t, r = {
+ return n = es(), n.memoizedState = n.baseState = t, r = {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: Cs,
+ lastRenderedReducer: ws,
lastRenderedState: t
- }, n.queue = r, n = nc.bind(null, Po, r), r.dispatch = n, r = hs(!1), a = ic.bind(null, Po, !1, r.queue), r = $o(), i = {
+ }, n.queue = r, n = rc.bind(null, Fo, r), r.dispatch = n, r = gs(!1), a = ac.bind(null, Fo, !1, r.queue), r = es(), i = {
state: t,
dispatch: null,
action: e,
pending: null
- }, r.queue = i, n = _s.bind(null, Po, i, a, n), i.dispatch = n, r.memoizedState = e, [
+ }, r.queue = i, n = vs.bind(null, Fo, i, a, n), i.dispatch = n, r.memoizedState = e, [
t,
n,
!1
];
}
- function Ts(e) {
- return Es(es(), Fo, e);
+ function Es(e) {
+ return Ds(ts(), Io, e);
}
- function Es(e, t, n) {
- if (t = ss(e, t, Cs)[0], e = os(as)[0], typeof t == "object" && t && typeof t.then == "function") try {
- var r = ns(t);
+ function Ds(e, t, n) {
+ if (t = cs(e, t, ws)[0], e = ss(os)[0], typeof t == "object" && t && typeof t.then == "function") try {
+ var r = rs(t);
} catch (e) {
- throw e === Va ? Ua : e;
+ throw e === Ha ? Wa : e;
}
else r = t;
- t = es();
+ t = ts();
var i = t.queue, a = i.dispatch;
- return n !== t.memoizedState && (Po.flags |= 2048, ks(9, { destroy: void 0 }, Ds.bind(null, i, n), null)), [
+ return n !== t.memoizedState && (Fo.flags |= 2048, As(9, { destroy: void 0 }, Os.bind(null, i, n), null)), [
r,
a,
e
];
}
- function Ds(e, t) {
+ function Os(e, t) {
e.action = t;
}
- function Os(e) {
- var t = es(), n = Fo;
- if (n !== null) return Es(t, n, e);
- es(), t = t.memoizedState, n = es();
+ function ks(e) {
+ var t = ts(), n = Io;
+ if (n !== null) return Ds(t, n, e);
+ ts(), t = t.memoizedState, n = ts();
var r = n.queue.dispatch;
return n.memoizedState = e, [
t,
@@ -3438,60 +3438,60 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
!1
];
}
- function ks(e, t, n, r) {
+ function As(e, t, n, r) {
return e = {
tag: e,
create: n,
deps: r,
inst: t,
next: null
- }, t = Po.updateQueue, t === null && (t = ts(), Po.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
+ }, t = Fo.updateQueue, t === null && (t = ns(), Fo.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
}
- function As() {
- return es().memoizedState;
- }
- function js(e, t, n, r) {
- var i = $o();
- Po.flags |= e, i.memoizedState = ks(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
+ function js() {
+ return ts().memoizedState;
}
function Ms(e, t, n, r) {
var i = es();
+ Fo.flags |= e, i.memoizedState = As(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
+ }
+ function Ns(e, t, n, r) {
+ var i = ts();
r = r === void 0 ? null : r;
var a = i.memoizedState.inst;
- Fo !== null && r !== null && Go(r, Fo.memoizedState.deps) ? i.memoizedState = ks(t, a, n, r) : (Po.flags |= e, i.memoizedState = ks(1 | t, a, n, r));
- }
- function Ns(e, t) {
- js(8390656, 8, e, t);
+ Io !== null && r !== null && Ko(r, Io.memoizedState.deps) ? i.memoizedState = As(t, a, n, r) : (Fo.flags |= e, i.memoizedState = As(1 | t, a, n, r));
}
function Ps(e, t) {
- Ms(2048, 8, e, t);
+ Ms(8390656, 8, e, t);
+ }
+ function Fs(e, t) {
+ Ns(2048, 8, e, t);
}
- function Fs(e) {
- Po.flags |= 4;
- var t = Po.updateQueue;
- if (t === null) t = ts(), Po.updateQueue = t, t.events = [e];
+ function Is(e) {
+ Fo.flags |= 4;
+ var t = Fo.updateQueue;
+ if (t === null) t = ns(), Fo.updateQueue = t, t.events = [e];
else {
var n = t.events;
n === null ? t.events = [e] : n.push(e);
}
}
- function Is(e) {
- var t = es().memoizedState;
- return Fs({
+ function Ls(e) {
+ var t = ts().memoizedState;
+ return Is({
ref: t,
nextImpl: e
}), function() {
- if (Xu & 2) throw Error(i(440));
+ if (Zu & 2) throw Error(i(440));
return t.impl.apply(void 0, arguments);
};
}
- function Ls(e, t) {
- return Ms(4, 2, e, t);
- }
function Rs(e, t) {
- return Ms(4, 4, e, t);
+ return Ns(4, 2, e, t);
}
function zs(e, t) {
+ return Ns(4, 4, e, t);
+ }
+ function Bs(e, t) {
if (typeof t == "function") {
e = e();
var n = t(e);
@@ -3503,76 +3503,76 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
t.current = null;
};
}
- function Bs(e, t, n) {
- n = n == null ? null : n.concat([e]), Ms(4, 4, zs.bind(null, t, e), n);
+ function Vs(e, t, n) {
+ n = n == null ? null : n.concat([e]), Ns(4, 4, Bs.bind(null, t, e), n);
}
- function Vs() {}
- function Hs(e, t) {
- var n = es();
+ function Hs() {}
+ function Us(e, t) {
+ var n = ts();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- return t !== null && Go(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
+ return t !== null && Ko(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
}
- function Us(e, t) {
- var n = es();
+ function Ws(e, t) {
+ var n = ts();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- if (t !== null && Go(t, r[1])) return r[0];
- if (r = e(), zo) {
- Ze(!0);
+ if (t !== null && Ko(t, r[1])) return r[0];
+ if (r = e(), Bo) {
+ Qe(!0);
try {
e();
} finally {
- Ze(!1);
+ Qe(!1);
}
}
return n.memoizedState = [r, t], r;
}
- function Ws(e, t, n) {
- return n === void 0 || No & 1073741824 && !($u & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Nd(), Po.lanes |= e, sd |= e, n);
+ function Gs(e, t, n) {
+ return n === void 0 || Po & 1073741824 && !(ed & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Pd(), Fo.lanes |= e, cd |= e, n);
}
- function Gs(e, t, n, r) {
- return Vr(n, t) ? n : _o.current === null ? !(No & 106) || No & 1073741824 && !($u & 261930) ? (Dc = !0, e.memoizedState = n) : (e = Nd(), Po.lanes |= e, sd |= e, t) : (e = Ws(e, n, r), Vr(e, t) || (Dc = !0), e);
+ function Ks(e, t, n, r) {
+ return Hr(n, t) ? n : vo.current === null ? !(Po & 106) || Po & 1073741824 && !(ed & 261930) ? (Oc = !0, e.memoizedState = n) : (e = Pd(), Fo.lanes |= e, cd |= e, t) : (e = Gs(e, n, r), Hr(e, t) || (Oc = !0), e);
}
- function Ks(e, t, n, r, i) {
- var a = de.p;
- de.p = a !== 0 && 8 > a ? a : 8;
- var o = L.T, s = {};
- s.types = o === null ? null : o.types, L.T = s, ic(e, !1, t, n);
+ function qs(e, t, n, r, i) {
+ var a = fe.p;
+ fe.p = a !== 0 && 8 > a ? a : 8;
+ var o = I.T, s = {};
+ s.types = o === null ? null : o.types, I.T = s, ac(e, !1, t, n);
try {
- var c = i(), l = L.S;
- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? rc(e, t, Fa(c, r), Md(e)) : rc(e, t, r, Md(e));
+ var c = i(), l = I.S;
+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? ic(e, t, Ia(c, r), Nd(e)) : ic(e, t, r, Nd(e));
} catch (n) {
- rc(e, t, {
+ ic(e, t, {
then: function() {},
status: "rejected",
reason: n
- }, Md());
+ }, Nd());
} finally {
- de.p = a, o !== null && s.types !== null && (o.types = s.types), L.T = o;
+ fe.p = a, o !== null && s.types !== null && (o.types = s.types), I.T = o;
}
}
- function qs() {}
- function Js(e, t, n, r) {
+ function Js() {}
+ function Ys(e, t, n, r) {
if (e.tag !== 5) throw Error(i(476));
- var a = Ys(e).queue;
- Ks(e, a, t, fe, n === null ? qs : function() {
- return Xs(e), n(r);
+ var a = Xs(e).queue;
+ qs(e, a, t, pe, n === null ? Js : function() {
+ return Zs(e), n(r);
});
}
- function Ys(e) {
+ function Xs(e) {
var t = e.memoizedState;
if (t !== null) return t;
t = {
- memoizedState: fe,
- baseState: fe,
+ memoizedState: pe,
+ baseState: pe,
baseQueue: null,
queue: {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: as,
- lastRenderedState: fe
+ lastRenderedReducer: os,
+ lastRenderedState: pe
},
next: null
};
@@ -3585,41 +3585,41 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: as,
+ lastRenderedReducer: os,
lastRenderedState: n
},
next: null
}, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;
}
- function Xs(e) {
- var t = Ys(e);
- t.next === null && (t = e.alternate.memoizedState), rc(e, t.next.queue, {}, Md());
- }
- function Zs() {
- return va(dh);
+ function Zs(e) {
+ var t = Xs(e);
+ t.next === null && (t = e.alternate.memoizedState), ic(e, t.next.queue, {}, Nd());
}
function Qs() {
- return es().memoizedState;
+ return ya(fh);
}
function $s() {
- return es().memoizedState;
+ return ts().memoizedState;
+ }
+ function ec() {
+ return ts().memoizedState;
}
- function ec(e) {
+ function tc(e) {
for (var t = e.return; t !== null;) {
switch (t.tag) {
case 24:
case 3:
- var n = Md();
- e = so(n);
- var r = co(t, e, n);
- r !== null && (Fd(r, t, n), lo(r, t, n)), t = { cache: Ta() }, e.payload = t;
+ var n = Nd();
+ e = co(n);
+ var r = lo(t, e, n);
+ r !== null && (Id(r, t, n), uo(r, t, n)), t = { cache: Ea() }, e.payload = t;
return;
}
t = t.return;
}
}
- function tc(e, t, n) {
- var r = Md();
+ function nc(e, t, n) {
+ var r = Nd();
n = {
lane: r,
revertLane: 0,
@@ -3628,12 +3628,12 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
hasEagerState: !1,
eagerState: null,
next: null
- }, ac(e) ? oc(t, n) : (n = wi(e, t, n, r), n !== null && (Fd(n, e, r), sc(n, t, r)));
+ }, oc(e) ? sc(t, n) : (n = Ti(e, t, n, r), n !== null && (Id(n, e, r), cc(n, t, r)));
}
- function nc(e, t, n) {
- rc(e, t, n, Md());
+ function rc(e, t, n) {
+ ic(e, t, n, Nd());
}
- function rc(e, t, n, r) {
+ function ic(e, t, n, r) {
var i = {
lane: r,
revertLane: 0,
@@ -3643,111 +3643,111 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
eagerState: null,
next: null
};
- if (ac(e)) oc(t, i);
+ if (oc(e)) sc(t, i);
else {
var a = e.alternate;
if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) try {
var o = t.lastRenderedState, s = a(o, n);
- if (i.hasEagerState = !0, i.eagerState = s, Vr(s, o)) return Ci(e, t, i, 0), Zu === null && Si(), !1;
+ if (i.hasEagerState = !0, i.eagerState = s, Hr(s, o)) return wi(e, t, i, 0), Qu === null && Ci(), !1;
} catch {}
- if (n = wi(e, t, i, r), n !== null) return Fd(n, e, r), sc(n, t, r), !0;
+ if (n = Ti(e, t, i, r), n !== null) return Id(n, e, r), cc(n, t, r), !0;
}
return !1;
}
- function ic(e, t, n, r) {
+ function ac(e, t, n, r) {
if (r = {
lane: 2,
- revertLane: If(),
+ revertLane: Lf(),
gesture: null,
action: r,
hasEagerState: !1,
eagerState: null,
next: null
- }, ac(e)) {
+ }, oc(e)) {
if (t) throw Error(i(479));
- } else t = wi(e, n, r, 2), t !== null && Fd(t, e, 2);
+ } else t = Ti(e, n, r, 2), t !== null && Id(t, e, 2);
}
- function ac(e) {
+ function oc(e) {
var t = e.alternate;
- return e === Po || t !== null && t === Po;
+ return e === Fo || t !== null && t === Fo;
}
- function oc(e, t) {
- Ro = Lo = !0;
+ function sc(e, t) {
+ zo = Ro = !0;
var n = e.pending;
n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;
}
- function sc(e, t, n) {
+ function cc(e, t, n) {
if (n & 4194048) {
var r = t.lanes;
- r &= e.pendingLanes, n |= r, t.lanes = n, ht(e, n);
- }
- }
- var cc = {
- readContext: va,
- use: rs,
- useCallback: Wo,
- useContext: Wo,
- useEffect: Wo,
- useImperativeHandle: Wo,
- useLayoutEffect: Wo,
- useInsertionEffect: Wo,
- useMemo: Wo,
- useReducer: Wo,
- useRef: Wo,
- useState: Wo,
- useDebugValue: Wo,
- useDeferredValue: Wo,
- useTransition: Wo,
- useSyncExternalStore: Wo,
- useId: Wo,
- useHostTransitionStatus: Wo,
- useFormState: Wo,
- useActionState: Wo,
- useOptimistic: Wo,
- useMemoCache: Wo,
- useCacheRefresh: Wo,
- useEffectEvent: Wo
- }, lc = {
- readContext: va,
- use: rs,
+ r &= e.pendingLanes, n |= r, t.lanes = n, gt(e, n);
+ }
+ }
+ var lc = {
+ readContext: ya,
+ use: is,
+ useCallback: Go,
+ useContext: Go,
+ useEffect: Go,
+ useImperativeHandle: Go,
+ useLayoutEffect: Go,
+ useInsertionEffect: Go,
+ useMemo: Go,
+ useReducer: Go,
+ useRef: Go,
+ useState: Go,
+ useDebugValue: Go,
+ useDeferredValue: Go,
+ useTransition: Go,
+ useSyncExternalStore: Go,
+ useId: Go,
+ useHostTransitionStatus: Go,
+ useFormState: Go,
+ useActionState: Go,
+ useOptimistic: Go,
+ useMemoCache: Go,
+ useCacheRefresh: Go,
+ useEffectEvent: Go
+ }, uc = {
+ readContext: ya,
+ use: is,
useCallback: function(e, t) {
- return $o().memoizedState = [e, t === void 0 ? null : t], e;
+ return es().memoizedState = [e, t === void 0 ? null : t], e;
},
- useContext: va,
- useEffect: Ns,
+ useContext: ya,
+ useEffect: Ps,
useImperativeHandle: function(e, t, n) {
- n = n == null ? null : n.concat([e]), js(4194308, 4, zs.bind(null, t, e), n);
+ n = n == null ? null : n.concat([e]), Ms(4194308, 4, Bs.bind(null, t, e), n);
},
useLayoutEffect: function(e, t) {
- return js(4194308, 4, e, t);
+ return Ms(4194308, 4, e, t);
},
useInsertionEffect: function(e, t) {
- js(4, 2, e, t);
+ Ms(4, 2, e, t);
},
useMemo: function(e, t) {
- var n = $o();
+ var n = es();
t = t === void 0 ? null : t;
var r = e();
- if (zo) {
- Ze(!0);
+ if (Bo) {
+ Qe(!0);
try {
e();
} finally {
- Ze(!1);
+ Qe(!1);
}
}
return n.memoizedState = [r, t], r;
},
useReducer: function(e, t, n) {
- var r = $o();
+ var r = es();
if (n !== void 0) {
var i = n(t);
- if (zo) {
- Ze(!0);
+ if (Bo) {
+ Qe(!0);
try {
n(t);
} finally {
- Ze(!1);
+ Qe(!1);
}
}
} else i = t;
@@ -3757,54 +3757,54 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
dispatch: null,
lastRenderedReducer: e,
lastRenderedState: i
- }, r.queue = e, e = e.dispatch = tc.bind(null, Po, e), [r.memoizedState, e];
+ }, r.queue = e, e = e.dispatch = nc.bind(null, Fo, e), [r.memoizedState, e];
},
useRef: function(e) {
- var t = $o();
+ var t = es();
return e = { current: e }, t.memoizedState = e;
},
useState: function(e) {
- e = hs(e);
- var t = e.queue, n = nc.bind(null, Po, t);
+ e = gs(e);
+ var t = e.queue, n = rc.bind(null, Fo, t);
return t.dispatch = n, [e.memoizedState, n];
},
- useDebugValue: Vs,
+ useDebugValue: Hs,
useDeferredValue: function(e, t) {
- return Ws($o(), e, t);
+ return Gs(es(), e, t);
},
useTransition: function() {
- var e = hs(!1);
- return e = Ks.bind(null, Po, e.queue, !0, !1), $o().memoizedState = e, [!1, e];
+ var e = gs(!1);
+ return e = qs.bind(null, Fo, e.queue, !0, !1), es().memoizedState = e, [!1, e];
},
useSyncExternalStore: function(e, t, n) {
- var r = Po, a = $o();
- if ($i) {
+ var r = Fo, a = es();
+ if (ea) {
if (n === void 0) throw Error(i(407));
n = n();
} else {
- if (n = t(), Zu === null) throw Error(i(349));
- $u & 127 || us(r, t, n);
+ if (n = t(), Qu === null) throw Error(i(349));
+ ed & 127 || ds(r, t, n);
}
a.memoizedState = n;
var o = {
value: n,
getSnapshot: t
};
- return a.queue = o, Ns(fs.bind(null, r, o, e), [e]), r.flags |= 2048, ks(9, { destroy: void 0 }, ds.bind(null, r, o, n, t), null), n;
+ return a.queue = o, Ps(ps.bind(null, r, o, e), [e]), r.flags |= 2048, As(9, { destroy: void 0 }, fs.bind(null, r, o, n, t), null), n;
},
useId: function() {
- var e = $o(), t = Zu.identifierPrefix;
- if ($i) {
- var n = Gi, r = Wi;
- n = (r & ~(1 << 32 - Qe(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Bo++, 0 < n && (t += "H" + n.toString(32)), t += "_";
- } else n = Uo++, t = "_" + t + "r_" + n.toString(32) + "_";
+ var e = es(), t = Qu.identifierPrefix;
+ if (ea) {
+ var n = Ki, r = Gi;
+ n = (r & ~(1 << 32 - $e(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Vo++, 0 < n && (t += "H" + n.toString(32)), t += "_";
+ } else n = Wo++, t = "_" + t + "r_" + n.toString(32) + "_";
return e.memoizedState = t;
},
- useHostTransitionStatus: Zs,
- useFormState: ws,
- useActionState: ws,
+ useHostTransitionStatus: Qs,
+ useFormState: Ts,
+ useActionState: Ts,
useOptimistic: function(e) {
- var t = $o();
+ var t = es();
t.memoizedState = t.baseState = e;
var n = {
pending: null,
@@ -3813,132 +3813,132 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
lastRenderedReducer: null,
lastRenderedState: null
};
- return t.queue = n, t = ic.bind(null, Po, !0, n), n.dispatch = t, [e, t];
+ return t.queue = n, t = ac.bind(null, Fo, !0, n), n.dispatch = t, [e, t];
},
- useMemoCache: is,
+ useMemoCache: as,
useCacheRefresh: function() {
- return $o().memoizedState = ec.bind(null, Po);
+ return es().memoizedState = tc.bind(null, Fo);
},
useEffectEvent: function(e) {
- var t = $o(), n = { impl: e };
+ var t = es(), n = { impl: e };
return t.memoizedState = n, function() {
- if (Xu & 2) throw Error(i(440));
+ if (Zu & 2) throw Error(i(440));
return n.impl.apply(void 0, arguments);
};
}
- }, uc = {
- readContext: va,
- use: rs,
- useCallback: Hs,
- useContext: va,
- useEffect: Ps,
- useImperativeHandle: Bs,
- useInsertionEffect: Ls,
- useLayoutEffect: Rs,
- useMemo: Us,
- useReducer: os,
- useRef: As,
+ }, dc = {
+ readContext: ya,
+ use: is,
+ useCallback: Us,
+ useContext: ya,
+ useEffect: Fs,
+ useImperativeHandle: Vs,
+ useInsertionEffect: Rs,
+ useLayoutEffect: zs,
+ useMemo: Ws,
+ useReducer: ss,
+ useRef: js,
useState: function() {
- return os(as);
+ return ss(os);
},
- useDebugValue: Vs,
+ useDebugValue: Hs,
useDeferredValue: function(e, t) {
- return Gs(es(), Fo.memoizedState, e, t);
+ return Ks(ts(), Io.memoizedState, e, t);
},
useTransition: function() {
- var e = os(as)[0], t = es().memoizedState;
- return [typeof e == "boolean" ? e : ns(e), t];
+ var e = ss(os)[0], t = ts().memoizedState;
+ return [typeof e == "boolean" ? e : rs(e), t];
},
- useSyncExternalStore: ls,
- useId: Qs,
- useHostTransitionStatus: Zs,
- useFormState: Ts,
- useActionState: Ts,
+ useSyncExternalStore: us,
+ useId: $s,
+ useHostTransitionStatus: Qs,
+ useFormState: Es,
+ useActionState: Es,
useOptimistic: function(e, t) {
- return gs(es(), Fo, e, t);
+ return _s(ts(), Io, e, t);
},
- useMemoCache: is,
- useCacheRefresh: $s,
- useEffectEvent: Is
- }, dc = {
- readContext: va,
- use: rs,
- useCallback: Hs,
- useContext: va,
- useEffect: Ps,
- useImperativeHandle: Bs,
- useInsertionEffect: Ls,
- useLayoutEffect: Rs,
- useMemo: Us,
- useReducer: cs,
- useRef: As,
+ useMemoCache: as,
+ useCacheRefresh: ec,
+ useEffectEvent: Ls
+ }, fc = {
+ readContext: ya,
+ use: is,
+ useCallback: Us,
+ useContext: ya,
+ useEffect: Fs,
+ useImperativeHandle: Vs,
+ useInsertionEffect: Rs,
+ useLayoutEffect: zs,
+ useMemo: Ws,
+ useReducer: ls,
+ useRef: js,
useState: function() {
- return cs(as);
+ return ls(os);
},
- useDebugValue: Vs,
+ useDebugValue: Hs,
useDeferredValue: function(e, t) {
- var n = es();
- return Fo === null ? Ws(n, e, t) : Gs(n, Fo.memoizedState, e, t);
+ var n = ts();
+ return Io === null ? Gs(n, e, t) : Ks(n, Io.memoizedState, e, t);
},
useTransition: function() {
- var e = cs(as)[0], t = es().memoizedState;
- return [typeof e == "boolean" ? e : ns(e), t];
+ var e = ls(os)[0], t = ts().memoizedState;
+ return [typeof e == "boolean" ? e : rs(e), t];
},
- useSyncExternalStore: ls,
- useId: Qs,
- useHostTransitionStatus: Zs,
- useFormState: Os,
- useActionState: Os,
+ useSyncExternalStore: us,
+ useId: $s,
+ useHostTransitionStatus: Qs,
+ useFormState: ks,
+ useActionState: ks,
useOptimistic: function(e, t) {
- var n = es();
- return Fo === null ? (n.baseState = e, [e, n.queue.dispatch]) : gs(n, Fo, e, t);
+ var n = ts();
+ return Io === null ? (n.baseState = e, [e, n.queue.dispatch]) : _s(n, Io, e, t);
},
- useMemoCache: is,
- useCacheRefresh: $s,
- useEffectEvent: Is
+ useMemoCache: as,
+ useCacheRefresh: ec,
+ useEffectEvent: Ls
};
- function fc(e, t, n, r) {
+ function pc(e, t, n, r) {
t = e.memoizedState, n = n(r, t), n = n == null ? t : w({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n);
}
- var pc = {
+ var mc = {
enqueueSetState: function(e, t, n) {
e = e._reactInternals;
- var r = Md(), i = so(r);
- i.payload = t, n != null && (i.callback = n), t = co(e, i, r), t !== null && (Fd(t, e, r), lo(t, e, r));
+ var r = Nd(), i = co(r);
+ i.payload = t, n != null && (i.callback = n), t = lo(e, i, r), t !== null && (Id(t, e, r), uo(t, e, r));
},
enqueueReplaceState: function(e, t, n) {
e = e._reactInternals;
- var r = Md(), i = so(r);
- i.tag = 1, i.payload = t, n != null && (i.callback = n), t = co(e, i, r), t !== null && (Fd(t, e, r), lo(t, e, r));
+ var r = Nd(), i = co(r);
+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = lo(e, i, r), t !== null && (Id(t, e, r), uo(t, e, r));
},
enqueueForceUpdate: function(e, t) {
e = e._reactInternals;
- var n = Md(), r = so(n);
- r.tag = 2, t != null && (r.callback = t), t = co(e, r, n), t !== null && (Fd(t, e, n), lo(t, e, n));
+ var n = Nd(), r = co(n);
+ r.tag = 2, t != null && (r.callback = t), t = lo(e, r, n), t !== null && (Id(t, e, n), uo(t, e, n));
}
};
- function mc(e, t, n, r, i, a, o) {
- return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Hr(n, r) || !Hr(i, a) : !0;
+ function hc(e, t, n, r, i, a, o) {
+ return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Ur(n, r) || !Ur(i, a) : !0;
}
- function hc(e, t, n, r) {
- e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && pc.enqueueReplaceState(t, t.state, null);
+ function gc(e, t, n, r) {
+ e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && mc.enqueueReplaceState(t, t.state, null);
}
- function gc(e, t) {
+ function _c(e, t) {
var n = t;
if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]);
if (e = e.defaultProps) for (var i in n === t && (n = w({}, n)), e) n[i] === void 0 && (n[i] = e[i]);
return n;
}
- function _c(e) {
- vi(e);
- }
function vc(e) {
- console.error(e);
+ yi(e);
}
function yc(e) {
- vi(e);
+ console.error(e);
}
- function bc(e, t) {
+ function bc(e) {
+ yi(e);
+ }
+ function xc(e, t) {
try {
var n = e.onUncaughtError;
n(t.value, { componentStack: t.stack });
@@ -3948,7 +3948,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
});
}
}
- function xc(e, t, n) {
+ function Sc(e, t, n) {
try {
var r = e.onCaughtError;
r(n.value, {
@@ -3961,57 +3961,57 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
});
}
}
- function Sc(e, t, n) {
- return n = so(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
- bc(e, t);
+ function Cc(e, t, n) {
+ return n = co(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
+ xc(e, t);
}, n;
}
- function Cc(e) {
- return e = so(e), e.tag = 3, e;
+ function wc(e) {
+ return e = co(e), e.tag = 3, e;
}
- function wc(e, t, n, r) {
+ function Tc(e, t, n, r) {
var i = n.type.getDerivedStateFromError;
if (typeof i == "function") {
var a = r.value;
e.payload = function() {
return i(a);
}, e.callback = function() {
- xc(t, n, r);
+ Sc(t, n, r);
};
}
var o = n.stateNode;
o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
- xc(t, n, r), typeof i != "function" && (yd === null ? yd = /* @__PURE__ */ new Set([this]) : yd.add(this));
+ Sc(t, n, r), typeof i != "function" && (bd === null ? bd = /* @__PURE__ */ new Set([this]) : bd.add(this));
var e = r.stack;
this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
});
}
- function Tc(e, t, n, r, a) {
+ function Ec(e, t, n, r, a) {
if (n.flags |= 32768, typeof r == "object" && r && typeof r.then == "function") {
- if (t = n.alternate, t !== null && ha(t, n, a, !0), n = So.current, n !== null) {
+ if (t = n.alternate, t !== null && ga(t, n, a, !0), n = Co.current, n !== null) {
switch (n.tag) {
case 31:
case 13:
- case 19: return Co === null ? qd() : n.alternate === null && od === 0 && (od = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Wa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), gf(e, r, a)), !1;
- case 22: return n.flags |= 65536, r === Wa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
+ case 19: return wo === null ? Jd() : n.alternate === null && sd === 0 && (sd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ga ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), _f(e, r, a)), !1;
+ case 22: return n.flags |= 65536, r === Ga ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
transitions: null,
markerInstances: null,
retryQueue: /* @__PURE__ */ new Set([r])
- }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), gf(e, r, a)), !1;
+ }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), _f(e, r, a)), !1;
}
throw Error(i(435, n.tag));
}
- return gf(e, r, a), qd(), !1;
+ return _f(e, r, a), Jd(), !1;
}
- if ($i) return t = So.current, t === null ? (r !== ta && (t = Error(i(423), { cause: r }), sa(Bi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Bi(r, n), a = Sc(e.stateNode, r, a), uo(e, a), od !== 4 && (od = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== ta && (e = Error(i(422), { cause: r }), sa(Bi(e, n)))), !1;
+ if (ea) return t = Co.current, t === null ? (r !== na && (t = Error(i(423), { cause: r }), ca(Vi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Vi(r, n), a = Cc(e.stateNode, r, a), fo(e, a), sd !== 4 && (sd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== na && (e = Error(i(422), { cause: r }), ca(Vi(e, n)))), !1;
var o = Error(i(520), { cause: r });
- if (o = Bi(o, n), fd === null ? fd = [o] : fd.push(o), od !== 4 && (od = 2), t === null) return !0;
- r = Bi(r, n), n = t;
+ if (o = Vi(o, n), pd === null ? pd = [o] : pd.push(o), sd !== 4 && (sd = 2), t === null) return !0;
+ r = Vi(r, n), n = t;
do {
switch (n.tag) {
- case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Sc(n.stateNode, r, e), uo(n, e), !1;
+ case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Cc(n.stateNode, r, e), fo(n, e), !1;
case 1:
- if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (yd === null || !yd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Cc(a), wc(a, e, n, r), uo(n, a), !1;
+ if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (bd === null || !bd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = wc(a), Tc(a, e, n, r), fo(n, a), !1;
break;
case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;
}
@@ -4019,41 +4019,41 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
} while (n !== null);
return !1;
}
- var Ec = Error(i(461)), Dc = !1;
- function Oc(e, t, n, r) {
- t.child = e === null ? ro(t, null, n, r) : Y(t, e.child, n, r);
+ var Dc = Error(i(461)), Oc = !1;
+ function kc(e, t, n, r) {
+ t.child = e === null ? io(t, null, n, r) : J(t, e.child, n, r);
}
- function kc(e, t, n, r, i) {
+ function Ac(e, t, n, r, i) {
n = n.render;
var a = t.ref;
if ("ref" in r) {
var o = {};
for (var s in r) s !== "ref" && (o[s] = r[s]);
} else o = r;
- return _a(t), r = Ko(e, t, n, o, a, i), s = Xo(), e !== null && !Dc ? (Zo(e, t, i), rl(e, t, i)) : ($i && s && Ji(t), t.flags |= 1, Oc(e, t, r, i), t.child);
+ return va(t), r = qo(e, t, n, o, a, i), s = Zo(), e !== null && !Oc ? (Qo(e, t, i), il(e, t, i)) : (ea && s && Yi(t), t.flags |= 1, kc(e, t, r, i), t.child);
}
- function Ac(e, t, n, r, i) {
+ function jc(e, t, n, r, i) {
if (e === null) {
var a = n.type;
- return typeof a == "function" && !ji(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, jc(e, t, a, r, i)) : (e = Pi(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
+ return typeof a == "function" && !Mi(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Mc(e, t, a, r, i)) : (e = Fi(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
}
- if (a = e.child, !il(e, i)) {
+ if (a = e.child, !al(e, i)) {
var o = a.memoizedProps;
- if (n = n.compare, n = n === null ? Hr : n, n(o, r) && e.ref === t.ref) return rl(e, t, i);
+ if (n = n.compare, n = n === null ? Ur : n, n(o, r) && e.ref === t.ref) return il(e, t, i);
}
- return t.flags |= 1, e = Mi(a, r), e.ref = t.ref, e.return = t, t.child = e;
+ return t.flags |= 1, e = Ni(a, r), e.ref = t.ref, e.return = t, t.child = e;
}
- function jc(e, t, n, r, i) {
+ function Mc(e, t, n, r, i) {
if (e !== null) {
var a = e.memoizedProps;
- if (Hr(a, r) && e.ref === t.ref) {
- if (Dc = !1, t.pendingProps = r = a, il(e, i)) e.flags & 131072 && (Dc = !0);
- else return t.lanes = e.lanes, rl(e, t, i);
+ if (Ur(a, r) && e.ref === t.ref) {
+ if (Oc = !1, t.pendingProps = r = a, al(e, i)) e.flags & 131072 && (Oc = !0);
+ else return t.lanes = e.lanes, il(e, t, i);
}
}
- return zc(e, t, n, r, i);
+ return Bc(e, t, n, r, i);
}
- function Mc(e, t, n, r) {
+ function Nc(e, t, n, r) {
var i = r.children, a = e === null ? null : e.memoizedState;
if (e === null && t.stateNode === null && (t.stateNode = {
_visibility: 1,
@@ -4066,17 +4066,17 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
for (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling;
r = i & ~a;
} else r = 0, t.child = null;
- return Pc(e, t, a, n, r);
+ return Fc(e, t, a, n, r);
}
if (n & 536870912) t.memoizedState = {
baseLanes: 0,
cachePool: null
- }, e !== null && za(t, a === null ? null : a.cachePool), a === null ? bo() : yo(t, a), Eo(t);
- else return r = t.lanes = 536870912, Pc(e, t, a === null ? n : a.baseLanes | n, n, r);
- } else a === null ? (e !== null && za(t, null), bo(), Do()) : (za(t, a.cachePool), yo(t, a), Do(), t.memoizedState = null);
- return Oc(e, t, i, n), t.child;
+ }, e !== null && Ba(t, a === null ? null : a.cachePool), a === null ? xo() : bo(t, a), Do(t);
+ else return r = t.lanes = 536870912, Fc(e, t, a === null ? n : a.baseLanes | n, n, r);
+ } else a === null ? (e !== null && Ba(t, null), xo(), Oo()) : (Ba(t, a.cachePool), bo(t, a), Oo(), t.memoizedState = null);
+ return kc(e, t, i, n), t.child;
}
- function Nc(e, t) {
+ function Pc(e, t) {
return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {
_visibility: 1,
_pendingMarkers: null,
@@ -4084,68 +4084,68 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
_transitions: null
}), t.sibling;
}
- function Pc(e, t, n, r, i) {
- var a = Ra();
+ function Fc(e, t, n, r, i) {
+ var a = za();
return a = a === null ? null : {
- parent: wa._currentValue,
+ parent: Ta._currentValue,
pool: a
}, t.memoizedState = {
baseLanes: n,
cachePool: a
- }, e !== null && za(t, null), bo(), Eo(t), e !== null && ha(e, t, r, !0), t.childLanes = i, null;
+ }, e !== null && Ba(t, null), xo(), Do(t), e !== null && ga(e, t, r, !0), t.childLanes = i, null;
}
- function Fc(e, t) {
- return t = Jc({
+ function Ic(e, t) {
+ return t = Yc({
mode: t.mode,
children: t.children
}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;
}
- function Ic(e, t, n) {
- return Y(t, e.child, null, n), e = Fc(t, t.pendingProps), e.flags |= 2, Oo(t), t.memoizedState = null, e;
- }
function Lc(e, t, n) {
+ return J(t, e.child, null, n), e = Ic(t, t.pendingProps), e.flags |= 2, ko(t), t.memoizedState = null, e;
+ }
+ function Rc(e, t, n) {
var r = t.pendingProps, a = !!(t.flags & 128);
if (t.flags &= -129, e === null) {
- if ($i) {
- if (r.mode === "hidden") return e = Fc(t, r), t.lanes = 536870912, e.memoizedState = {
+ if (ea) {
+ if (r.mode === "hidden") return e = Ic(t, r), t.lanes = 536870912, e.memoizedState = {
baseLanes: 0,
cachePool: null
- }, Nc(null, e);
- if (To(t), (e = Qi) ? (e = lm(e, K), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
+ }, Pc(null, e);
+ if (Eo(t), (e = $i) ? (e = um(e, G), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: G === null ? null : {
- id: Wi,
- overflow: Gi
+ treeContext: W === null ? null : {
+ id: Gi,
+ overflow: Ki
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Li(e), n.return = t, t.child = n, Zi = t, Qi = null)) : e = null, e === null) throw na(t);
+ }, n = Ri(e), n.return = t, t.child = n, Qi = t, $i = null)) : e = null, e === null) throw ra(t);
return t.lanes = 536870912, null;
}
- return Fc(t, r);
+ return Ic(t, r);
}
var o = e.memoizedState;
if (o !== null) {
var s = o.dehydrated;
- if (To(t), a) {
- if (t.flags & 256) t.flags &= -257, t = Ic(e, t, n);
+ if (Eo(t), a) {
+ if (t.flags & 256) t.flags &= -257, t = Lc(e, t, n);
else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;
else throw Error(i(558));
- } else if (Dc || ha(e, t, n, !1), a = (n & e.childLanes) !== 0, Dc || a) {
- if (_o.current === null) {
- if (r = Zu, r !== null && (s = gt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ti(e, s), Fd(r, e, s), Ec;
- qd();
+ } else if (Oc || ga(e, t, n, !1), a = (n & e.childLanes) !== 0, Oc || a) {
+ if (vo.current === null) {
+ if (r = Qu, r !== null && (s = _t(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ei(e, s), Id(r, e, s), Dc;
+ Jd();
}
- t = Ic(e, t, n);
- } else e = o.treeContext, Qi = pm(s.nextSibling), Zi = t, $i = !0, ea = null, K = !1, e !== null && Xi(t, e), t = Fc(t, r), t.flags |= 134221824;
+ t = Lc(e, t, n);
+ } else e = o.treeContext, $i = mm(s.nextSibling), Qi = t, ea = !0, ta = null, G = !1, e !== null && Zi(t, e), t = Ic(t, r), t.flags |= 134221824;
return t;
}
- return e = Mi(e.child, {
+ return e = Ni(e.child, {
mode: r.mode,
children: r.children
}), e.ref = t.ref, t.child = e, e.return = t, e;
}
- function Rc(e, t) {
+ function zc(e, t) {
var n = t.ref;
if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);
else {
@@ -4153,135 +4153,135 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
(e === null || e.ref !== n) && (t.flags |= 4194816);
}
}
- function zc(e, t, n, r, i) {
- return _a(t), n = Ko(e, t, n, r, void 0, i), r = Xo(), e !== null && !Dc ? (Zo(e, t, i), rl(e, t, i)) : ($i && r && Ji(t), t.flags |= 1, Oc(e, t, n, i), t.child);
+ function Bc(e, t, n, r, i) {
+ return va(t), n = qo(e, t, n, r, void 0, i), r = Zo(), e !== null && !Oc ? (Qo(e, t, i), il(e, t, i)) : (ea && r && Yi(t), t.flags |= 1, kc(e, t, n, i), t.child);
}
- function Bc(e, t, n, r, i, a) {
- return _a(t), t.updateQueue = null, n = Jo(t, r, n, i), qo(e), r = Xo(), e !== null && !Dc ? (Zo(e, t, a), rl(e, t, a)) : ($i && r && Ji(t), t.flags |= 1, Oc(e, t, n, a), t.child);
+ function Vc(e, t, n, r, i, a) {
+ return va(t), t.updateQueue = null, n = Yo(t, r, n, i), Jo(e), r = Zo(), e !== null && !Oc ? (Qo(e, t, a), il(e, t, a)) : (ea && r && Yi(t), t.flags |= 1, kc(e, t, n, a), t.child);
}
- function Vc(e, t, n, r, i) {
- if (_a(t), t.stateNode === null) {
- var a = Oi, o = n.contextType;
- typeof o == "object" && o && (a = va(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = pc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, ao(t), o = n.contextType, a.context = typeof o == "object" && o ? va(o) : Oi, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (fc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && pc.enqueueReplaceState(a, a.state, null), mo(t, r, a, i), po(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
+ function Hc(e, t, n, r, i) {
+ if (va(t), t.stateNode === null) {
+ var a = ki, o = n.contextType;
+ typeof o == "object" && o && (a = ya(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = mc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, oo(t), o = n.contextType, a.context = typeof o == "object" && o ? ya(o) : ki, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (pc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && mc.enqueueReplaceState(a, a.state, null), ho(t, r, a, i), mo(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
} else if (e === null) {
a = t.stateNode;
- var s = t.memoizedProps, c = gc(n, s);
+ var s = t.memoizedProps, c = _c(n, s);
a.props = c;
var l = a.context, u = n.contextType;
- o = Oi, typeof u == "object" && u && (o = va(u));
+ o = ki, typeof u == "object" && u && (o = ya(u));
var d = n.getDerivedStateFromProps;
- u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && hc(t, a, r, o), io = !1;
+ u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && gc(t, a, r, o), ao = !1;
var f = t.memoizedState;
- a.state = f, mo(t, r, a, i), po(), l = t.memoizedState, s || f !== l || io ? (typeof d == "function" && (fc(t, n, d, r), l = t.memoizedState), (c = io || mc(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
+ a.state = f, ho(t, r, a, i), mo(), l = t.memoizedState, s || f !== l || ao ? (typeof d == "function" && (pc(t, n, d, r), l = t.memoizedState), (c = ao || hc(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
} else {
- a = t.stateNode, oo(e, t), o = t.memoizedProps, u = gc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Oi, typeof l == "object" && l && (c = va(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && hc(t, a, r, c), io = !1, f = t.memoizedState, a.state = f, mo(t, r, a, i), po();
+ a = t.stateNode, so(e, t), o = t.memoizedProps, u = _c(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = ki, typeof l == "object" && l && (c = ya(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && gc(t, a, r, c), ao = !1, f = t.memoizedState, a.state = f, ho(t, r, a, i), mo();
var p = t.memoizedState;
- o !== d || f !== p || io || e !== null && e.dependencies !== null && ga(e.dependencies) ? (typeof s == "function" && (fc(t, n, s, r), p = t.memoizedState), (u = io || mc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && ga(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
+ o !== d || f !== p || ao || e !== null && e.dependencies !== null && _a(e.dependencies) ? (typeof s == "function" && (pc(t, n, s, r), p = t.memoizedState), (u = ao || hc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && _a(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
}
- return a = r, Rc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = Y(t, e.child, null, i), t.child = Y(t, null, n, i)) : Oc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = rl(e, t, i), e;
+ return a = r, zc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = J(t, e.child, null, i), t.child = J(t, null, n, i)) : kc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = il(e, t, i), e;
}
- function Hc(e, t, n, r) {
- return q(), t.flags |= 256, Oc(e, t, n, r), t.child;
+ function Uc(e, t, n, r) {
+ return K(), t.flags |= 256, kc(e, t, n, r), t.child;
}
- var Uc = {
+ var Wc = {
dehydrated: null,
treeContext: null,
retryLane: 0,
hydrationErrors: null
};
- function Wc(e) {
+ function Gc(e) {
return {
baseLanes: e,
- cachePool: Ba()
+ cachePool: Va()
};
}
- function Gc(e, t, n) {
- return e = e === null ? 0 : e.childLanes & ~n, t && (e |= ud), e;
- }
function Kc(e, t, n) {
+ return e = e === null ? 0 : e.childLanes & ~n, t && (e |= dd), e;
+ }
+ function qc(e, t, n) {
var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;
- if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(ko.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
- if ($i) {
- if (i ? wo(t) : Do(), (e = Qi) ? (e = lm(e, K), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
+ if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Ao.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
+ if (ea) {
+ if (i ? To(t) : Oo(), (e = $i) ? (e = um(e, G), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: G === null ? null : {
- id: Wi,
- overflow: Gi
+ treeContext: W === null ? null : {
+ id: Gi,
+ overflow: Ki
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Li(e), n.return = t, t.child = n, Zi = t, Qi = null)) : e = null, e === null) throw na(t);
- return t.lanes = dm(e) ? 32 : 536870912, null;
+ }, n = Ri(e), n.return = t, t.child = n, Qi = t, $i = null)) : e = null, e === null) throw ra(t);
+ return t.lanes = fm(e) ? 32 : 536870912, null;
}
- return a = r.children, r = r.fallback, i ? (Do(), i = t.mode, a = Jc({
+ return a = r.children, r = r.fallback, i ? (Oo(), i = t.mode, a = Yc({
mode: "hidden",
children: a
- }, i), r = Fi(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Wc(n), r.childLanes = Gc(e, o, n), t.memoizedState = Uc, Nc(null, r)) : (wo(t), qc(t, a));
+ }, i), r = Ii(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Gc(n), r.childLanes = Kc(e, o, n), t.memoizedState = Wc, Pc(null, r)) : (To(t), Jc(t, a));
}
var s = e.memoizedState;
if (s !== null) {
var c = s.dehydrated;
- if (c !== null) return Xc(e, t, a, o, r, c, s, n);
+ if (c !== null) return Zc(e, t, a, o, r, c, s, n);
}
- return i ? (Do(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Mi(s, {
+ return i ? (Oo(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Ni(s, {
mode: "hidden",
children: r.children
- }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Fi(i, a, n, null), i.flags |= 2) : i = Mi(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Nc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Wc(n) : (a = i.cachePool, a === null ? a = Ba() : (s = wa._currentValue, a = a.parent === s ? a : {
+ }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Ii(i, a, n, null), i.flags |= 2) : i = Ni(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Pc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Gc(n) : (a = i.cachePool, a === null ? a = Va() : (s = Ta._currentValue, a = a.parent === s ? a : {
parent: s,
pool: s
}), i = {
baseLanes: i.baseLanes | n,
cachePool: a
- }), r.memoizedState = i, r.childLanes = Gc(e, o, n), t.memoizedState = Uc, Nc(e.child, r)) : (wo(t), n = e.child, e = n.sibling, n = Mi(n, {
+ }), r.memoizedState = i, r.childLanes = Kc(e, o, n), t.memoizedState = Wc, Pc(e.child, r)) : (To(t), n = e.child, e = n.sibling, n = Ni(n, {
mode: "visible",
children: r.children
}), n.return = t, n.sibling = null, e !== null && (o = t.deletions, o === null ? (t.deletions = [e], t.flags |= 16) : o.push(e)), t.child = n, t.memoizedState = null, n);
}
- function qc(e, t) {
- return t = Jc({
+ function Jc(e, t) {
+ return t = Yc({
mode: "visible",
children: t
}, e.mode), t.return = e, e.child = t;
}
- function Jc(e, t) {
- return e = Ai(22, e, null, t), e.lanes = 0, e;
+ function Yc(e, t) {
+ return e = ji(22, e, null, t), e.lanes = 0, e;
}
- function Yc(e, t, n) {
- return Y(t, e.child, null, n), e = qc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
+ function Xc(e, t, n) {
+ return J(t, e.child, null, n), e = Jc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
}
- function Xc(e, t, n, r, a, o, s, c) {
- if (n) return t.flags & 256 ? (wo(t), t.flags &= -257, Yc(e, t, c)) : t.memoizedState === null ? (Do(), o = a.fallback, s = t.mode, a = Jc({
+ function Zc(e, t, n, r, a, o, s, c) {
+ if (n) return t.flags & 256 ? (To(t), t.flags &= -257, Xc(e, t, c)) : t.memoizedState === null ? (Oo(), o = a.fallback, s = t.mode, a = Yc({
mode: "visible",
children: a.children
- }, s), o = Fi(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, Y(t, e.child, null, c), a = t.child, a.memoizedState = Wc(c), a.childLanes = Gc(e, r, c), t.memoizedState = Uc, Nc(null, a)) : (Do(), t.child = e.child, t.flags |= 128, null);
- if (wo(t), dm(o)) {
+ }, s), o = Ii(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, J(t, e.child, null, c), a = t.child, a.memoizedState = Gc(c), a.childLanes = Kc(e, r, c), t.memoizedState = Wc, Pc(null, a)) : (Oo(), t.child = e.child, t.flags |= 128, null);
+ if (To(t), fm(o)) {
if (r = o.nextSibling && o.nextSibling.dataset, r) var l = r.dgst;
- return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, sa({
+ return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, ca({
value: a,
source: null,
stack: null
- })), Yc(e, t, c);
+ })), Xc(e, t, c);
}
- if (Dc || ha(e, t, c, !1), r = (c & e.childLanes) !== 0, Dc || r) {
- if (_o.current !== null) return Yc(e, t, c);
- if (r = Zu, r !== null && (a = gt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ti(e, a), Fd(r, e, a), Ec;
- return um(o) || qd(), Yc(e, t, c);
+ if (Oc || ga(e, t, c, !1), r = (c & e.childLanes) !== 0, Oc || r) {
+ if (vo.current !== null) return Xc(e, t, c);
+ if (r = Qu, r !== null && (a = _t(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ei(e, a), Id(r, e, a), Dc;
+ return dm(o) || Jd(), Xc(e, t, c);
}
- return um(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, Qi = pm(o.nextSibling), Zi = t, $i = !0, ea = null, K = !1, e !== null && Xi(t, e), t = qc(t, a.children), t.flags |= 134221824, t);
+ return dm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, $i = mm(o.nextSibling), Qi = t, ea = !0, ta = null, G = !1, e !== null && Zi(t, e), t = Jc(t, a.children), t.flags |= 134221824, t);
}
- function Zc(e, t, n) {
+ function Qc(e, t, n) {
e.lanes |= t;
var r = e.alternate;
- r !== null && (r.lanes |= t), pa(e.return, t, n);
+ r !== null && (r.lanes |= t), ma(e.return, t, n);
}
- function Qc(e) {
+ function $c(e) {
for (var t = null; e !== null;) {
var n = e.alternate;
- n !== null && Mo(n) === null && (t = e), e = e.sibling;
+ n !== null && No(n) === null && (t = e), e = e.sibling;
}
return t;
}
- function $c(e, t, n, r, i, a) {
+ function el(e, t, n, r, i, a) {
var o = e.memoizedState;
o === null ? e.memoizedState = {
isBackwards: t,
@@ -4293,22 +4293,22 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
treeForkCount: a
} : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a);
}
- function el(e) {
+ function tl(e) {
var t = e.child;
for (e.child = null; t !== null;) {
var n = t.sibling;
t.sibling = e.child, e.child = t, t = n;
}
}
- function tl(e, t, n) {
+ function nl(e, t, n) {
var r = t.pendingProps, i = r.revealOrder, a = r.tail;
r = r.children;
- var o = ko.current;
- if (t.flags & 128) return Ao(t, o), null;
+ var o = Ao.current;
+ if (t.flags & 128) return jo(t, o), null;
var s = !!(o & 2);
- if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Ao(t, o), i === "backwards" && e !== null ? (el(e), Oc(e, t, r, n), el(e)) : Oc(e, t, r, n), r = $i ? Ui : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
- if (e.tag === 13) e.memoizedState !== null && Zc(e, n, t);
- else if (e.tag === 19) Zc(e, n, t);
+ if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, jo(t, o), i === "backwards" && e !== null ? (tl(e), kc(e, t, r, n), tl(e)) : kc(e, t, r, n), r = ea ? Wi : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
+ if (e.tag === 13) e.memoizedState !== null && Qc(e, n, t);
+ else if (e.tag === 19) Qc(e, n, t);
else if (e.child !== null) {
e.child.return = e, e = e.child;
continue;
@@ -4322,142 +4322,142 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
switch (i) {
case "backwards":
- n = Qc(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, el(t)), $c(t, !0, i, null, a, r);
+ n = $c(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, tl(t)), el(t, !0, i, null, a, r);
break;
case "unstable_legacy-backwards":
for (n = null, i = t.child, t.child = null; i !== null;) {
- if (e = i.alternate, e !== null && Mo(e) === null) {
+ if (e = i.alternate, e !== null && No(e) === null) {
t.child = i;
break;
}
e = i.sibling, i.sibling = n, n = i, i = e;
}
- $c(t, !0, n, null, a, r);
+ el(t, !0, n, null, a, r);
break;
case "together":
- $c(t, !1, null, null, void 0, r);
+ el(t, !1, null, null, void 0, r);
break;
case "independent":
t.memoizedState = null;
break;
- default: n = Qc(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), $c(t, !1, i, n, a, r);
+ default: n = $c(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), el(t, !1, i, n, a, r);
}
return t.child;
}
- function nl(e, t, n) {
+ function rl(e, t, n) {
var r = t.pendingProps;
- return da(t, t.type, r.value), Oc(e, t, r.children, n), t.child;
+ return fa(t, t.type, r.value), kc(e, t, r.children, n), t.child;
}
- function rl(e, t, n) {
- if (e !== null && (t.dependencies = e.dependencies), sd |= t.lanes, (n & t.childLanes) === 0) {
+ function il(e, t, n) {
+ if (e !== null && (t.dependencies = e.dependencies), cd |= t.lanes, (n & t.childLanes) === 0) {
if (e !== null) {
- if (ha(e, t, n, !1), (n & t.childLanes) === 0) return null;
+ if (ga(e, t, n, !1), (n & t.childLanes) === 0) return null;
} else return null;
}
if (e !== null && t.child !== e.child) throw Error(i(153));
if (t.child !== null) {
- for (e = t.child, n = Mi(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = Mi(e, e.pendingProps), n.return = t;
+ for (e = t.child, n = Ni(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = Ni(e, e.pendingProps), n.return = t;
n.sibling = null;
}
return t.child;
}
- function il(e, t) {
- return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && ga(e)));
+ function al(e, t) {
+ return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && _a(e)));
}
- function al(e, t, n) {
+ function ol(e, t, n) {
switch (t.tag) {
case 3:
- Se(t, t.stateNode.containerInfo), da(t, wa, e.memoizedState.cache), q();
+ Ce(t, t.stateNode.containerInfo), fa(t, Ta, e.memoizedState.cache), K();
break;
case 27:
case 5:
- we(t);
+ Te(t);
break;
case 4:
- Se(t, t.stateNode.containerInfo);
+ Ce(t, t.stateNode.containerInfo);
break;
case 10:
- da(t, t.type, t.memoizedProps.value);
+ fa(t, t.type, t.memoizedProps.value);
break;
case 31:
- if (t.memoizedState !== null) return t.flags |= 128, To(t), null;
+ if (t.memoizedState !== null) return t.flags |= 128, Eo(t), null;
break;
case 13:
var r = t.memoizedState;
if (r !== null) {
- if (r.dehydrated !== null) return wo(t), t.flags |= 128, null;
- r = ha(e, t, n, !1);
+ if (r.dehydrated !== null) return To(t), t.flags |= 128, null;
+ r = ga(e, t, n, !1);
var i = t.child.childLanes;
- return r || (n & i) !== 0 ? Kc(e, t, n) : (wo(t), e = rl(e, t, n), e === null ? null : e.sibling);
+ return r || (n & i) !== 0 ? qc(e, t, n) : (To(t), e = il(e, t, n), e === null ? null : e.sibling);
}
- wo(t);
+ To(t);
break;
case 19:
- if (t.flags & 128) return tl(e, t, n);
- if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (ha(e, t, n, !1), (n & t.childLanes) !== 0), i) {
- if (r) return tl(e, t, n);
+ if (t.flags & 128) return nl(e, t, n);
+ if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (ga(e, t, n, !1), (n & t.childLanes) !== 0), i) {
+ if (r) return nl(e, t, n);
t.flags |= 128;
}
- if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Ao(t, ko.current), r) break;
+ if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), jo(t, Ao.current), r) break;
return null;
- case 22: return t.lanes = 0, Mc(e, t, n, t.pendingProps);
- case 24: da(t, wa, e.memoizedState.cache);
+ case 22: return t.lanes = 0, Nc(e, t, n, t.pendingProps);
+ case 24: fa(t, Ta, e.memoizedState.cache);
}
- return rl(e, t, n);
+ return il(e, t, n);
}
- function ol(e, t, n) {
+ function sl(e, t, n) {
if (e !== null) {
- if (e.memoizedProps !== t.pendingProps) Dc = !0;
+ if (e.memoizedProps !== t.pendingProps) Oc = !0;
else {
- if (!il(e, n) && !(t.flags & 128)) return Dc = !1, al(e, t, n);
- Dc = !!(e.flags & 131072);
+ if (!al(e, n) && !(t.flags & 128)) return Oc = !1, ol(e, t, n);
+ Oc = !!(e.flags & 131072);
}
- } else Dc = !1, $i && t.flags & 1048576 && qi(t, Ui, t.index);
+ } else Oc = !1, ea && t.flags & 1048576 && Ji(t, Wi, t.index);
switch (t.lanes = 0, t.tag) {
case 16:
a: {
var r = t.pendingProps;
- if (e = qa(t.elementType), t.type = e, typeof e == "function") ji(e) ? (r = gc(e, r), t.tag = 1, t = Vc(null, t, e, r, n)) : (t.tag = 0, t = zc(null, t, e, r, n));
+ if (e = Ja(t.elementType), t.type = e, typeof e == "function") Mi(e) ? (r = _c(e, r), t.tag = 1, t = Hc(null, t, e, r, n)) : (t.tag = 0, t = Bc(null, t, e, r, n));
else {
if (e != null) {
var a = e.$$typeof;
if (a === N) {
- t.tag = 11, t = kc(null, t, e, r, n);
+ t.tag = 11, t = Ac(null, t, e, r, n);
break a;
}
if (a === F) {
- t.tag = 14, t = Ac(null, t, e, r, n);
+ t.tag = 14, t = jc(null, t, e, r, n);
break a;
}
if (a === M) {
- t.tag = 10, t.type = e, t = nl(null, t, n);
+ t.tag = 10, t.type = e, t = rl(null, t, n);
break a;
}
}
- throw t = le(e) || e, Error(i(306, t, ""));
+ throw t = ue(e) || e, Error(i(306, t, ""));
}
}
return t;
- case 0: return zc(e, t, t.type, t.pendingProps, n);
- case 1: return r = t.type, a = gc(r, t.pendingProps), Vc(e, t, r, a, n);
+ case 0: return Bc(e, t, t.type, t.pendingProps, n);
+ case 1: return r = t.type, a = _c(r, t.pendingProps), Hc(e, t, r, a, n);
case 3:
a: {
- if (Se(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
+ if (Ce(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
r = t.pendingProps;
var o = t.memoizedState;
- a = o.element, oo(e, t), mo(t, r, null, n);
+ a = o.element, so(e, t), ho(t, r, null, n);
var s = t.memoizedState;
- if (r = s.cache, da(t, wa, r), r !== o.cache && ma(t, [wa], n, !0), po(), r = s.element, o.isDehydrated) {
+ if (r = s.cache, fa(t, Ta, r), r !== o.cache && ha(t, [Ta], n, !0), mo(), r = s.element, o.isDehydrated) {
if (o = {
element: r,
isDehydrated: !1,
cache: s.cache
}, t.updateQueue.baseState = o, t.memoizedState = o, t.flags & 256) {
- t = Hc(e, t, r, n);
+ t = Uc(e, t, r, n);
break a;
}
if (r !== a) {
- a = Bi(Error(i(424)), t), sa(a), t = Hc(e, t, r, n);
+ a = Vi(Error(i(424)), t), ca(a), t = Uc(e, t, r, n);
break a;
}
switch (e = t.stateNode.containerInfo, e.nodeType) {
@@ -4466,76 +4466,76 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
break;
default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;
}
- for (Qi = pm(e.firstChild), Zi = t, $i = !0, ea = null, K = !0, n = ro(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
+ for ($i = mm(e.firstChild), Qi = t, ea = !0, ta = null, G = !0, n = io(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
} else {
- if (q(), r === a) {
- t = rl(e, t, n);
+ if (K(), r === a) {
+ t = il(e, t, n);
break a;
}
- Oc(e, t, r, n);
+ kc(e, t, r, n);
}
t = t.child;
}
return t;
- case 26: return Rc(e, t), e === null ? (n = Lm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : $i || (t.stateNode = gp(t.type, t.pendingProps, be.current, t)) : t.memoizedState = Lm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
- case 27: return we(t), e === null && $i && (r = t.stateNode = ym(t.type, t.pendingProps, be.current), Zi = t, K = !0, a = Qi, Ep(t.type) ? (mm = a, Qi = pm(r.firstChild)) : Qi = a), Oc(e, t, t.pendingProps.children, n), Rc(e, t), e === null && (t.flags |= 4194304), t.child;
- case 5: return e === null && $i && ((a = r = Qi) && (r = sm(r, t.type, t.pendingProps, K), r === null ? a = !1 : (t.stateNode = r, Zi = t, Qi = pm(r.firstChild), K = !1, a = !0)), a || na(t)), we(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, _p(a, o) ? r = null : s !== null && _p(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Ko(e, t, Yo, null, null, n), dh._currentValue = a), Rc(e, t), Oc(e, t, r, n), t.child;
- case 6: return e === null && $i && ((e = n = Qi) && (n = cm(n, t.pendingProps, K), n === null ? e = !1 : (t.stateNode = n, Zi = t, Qi = null, e = !0)), e || na(t)), null;
- case 13: return Kc(e, t, n);
- case 4: return Se(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = Y(t, null, r, n) : Oc(e, t, r, n), t.child;
- case 11: return kc(e, t, t.type, t.pendingProps, n);
- case 7: return r = t.pendingProps, Rc(e, t), Oc(e, t, r, n), t.child;
- case 8: return Oc(e, t, t.pendingProps.children, n), t.child;
- case 12: return Oc(e, t, t.pendingProps.children, n), t.child;
- case 10: return nl(e, t, n);
- case 9: return a = t.type._context, r = t.pendingProps.children, _a(t), a = va(a), r = r(a), t.flags |= 1, Oc(e, t, r, n), t.child;
- case 14: return Ac(e, t, t.type, t.pendingProps, n);
- case 15: return jc(e, t, t.type, t.pendingProps, n);
- case 19: return tl(e, t, n);
- case 31: return Lc(e, t, n);
- case 22: return Mc(e, t, n, t.pendingProps);
- case 24: return _a(t), r = va(wa), e === null ? (a = Ra(), a === null && (a = Zu, o = Ta(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
+ case 26: return zc(e, t), e === null ? (n = Rm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : ea || (t.stateNode = _p(t.type, t.pendingProps, xe.current, t)) : t.memoizedState = Rm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
+ case 27: return Te(t), e === null && ea && (r = t.stateNode = bm(t.type, t.pendingProps, xe.current), Qi = t, G = !0, a = $i, Dp(t.type) ? (hm = a, $i = mm(r.firstChild)) : $i = a), kc(e, t, t.pendingProps.children, n), zc(e, t), e === null && (t.flags |= 4194304), t.child;
+ case 5: return e === null && ea && ((a = r = $i) && (r = cm(r, t.type, t.pendingProps, G), r === null ? a = !1 : (t.stateNode = r, Qi = t, $i = mm(r.firstChild), G = !1, a = !0)), a || ra(t)), Te(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, vp(a, o) ? r = null : s !== null && vp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = qo(e, t, Xo, null, null, n), fh._currentValue = a), zc(e, t), kc(e, t, r, n), t.child;
+ case 6: return e === null && ea && ((e = n = $i) && (n = lm(n, t.pendingProps, G), n === null ? e = !1 : (t.stateNode = n, Qi = t, $i = null, e = !0)), e || ra(t)), null;
+ case 13: return qc(e, t, n);
+ case 4: return Ce(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = J(t, null, r, n) : kc(e, t, r, n), t.child;
+ case 11: return Ac(e, t, t.type, t.pendingProps, n);
+ case 7: return r = t.pendingProps, zc(e, t), kc(e, t, r, n), t.child;
+ case 8: return kc(e, t, t.pendingProps.children, n), t.child;
+ case 12: return kc(e, t, t.pendingProps.children, n), t.child;
+ case 10: return rl(e, t, n);
+ case 9: return a = t.type._context, r = t.pendingProps.children, va(t), a = ya(a), r = r(a), t.flags |= 1, kc(e, t, r, n), t.child;
+ case 14: return jc(e, t, t.type, t.pendingProps, n);
+ case 15: return Mc(e, t, t.type, t.pendingProps, n);
+ case 19: return nl(e, t, n);
+ case 31: return Rc(e, t, n);
+ case 22: return Nc(e, t, n, t.pendingProps);
+ case 24: return va(t), r = ya(Ta), e === null ? (a = za(), a === null && (a = Qu, o = Ea(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
parent: r,
cache: a
- }, ao(t), da(t, wa, a)) : ((e.lanes & n) !== 0 && (oo(e, t), mo(t, null, null, n), po()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, da(t, wa, r), r !== a.cache && ma(t, [wa], n, !0)) : (a = {
+ }, oo(t), fa(t, Ta, a)) : ((e.lanes & n) !== 0 && (so(e, t), ho(t, null, null, n), mo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, fa(t, Ta, r), r !== a.cache && ha(t, [Ta], n, !0)) : (a = {
parent: r,
cache: r
- }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), da(t, wa, r))), Oc(e, t, t.pendingProps.children, n), t.child;
+ }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), fa(t, Ta, r))), kc(e, t, t.pendingProps.children, n), t.child;
case 30: return t.stateNode === null && (t.stateNode = {
autoName: null,
paired: null,
clones: null,
ref: null
- }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : $i && Ji(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Rc(e, t), Oc(e, t, r.children, n), t.child;
+ }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : ea && Yi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : zc(e, t), kc(e, t, r.children, n), t.child;
case 29: throw t.pendingProps;
}
throw Error(i(156, t.tag));
}
- function sl(e) {
+ function cl(e) {
e.flags |= 4;
}
- function cl(e, t, n, r, i) {
+ function ll(e, t, n, r, i) {
var a;
- if ((a = !!(e.mode & 32)) && (a = n === null ? Qm(t, r) : Qm(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
+ if ((a = !!(e.mode & 32)) && (a = n === null ? $m(t, r) : $m(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
if (e.flags |= 16777216, (i & 335544128) === i) {
if (e.stateNode.complete) e.flags |= 8192;
- else if (Wd()) e.flags |= 8192;
- else throw Ja = Wa, Ha;
+ else if (Gd()) e.flags |= 8192;
+ else throw Ya = Ga, Ua;
}
} else e.flags &= -16777217;
}
- function ll(e, t) {
+ function ul(e, t) {
if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;
- else if (e.flags |= 16777216, !$m(t)) {
- if (Wd()) e.flags |= 8192;
- else throw Ja = Wa, Ha;
+ else if (e.flags |= 16777216, !eh(t)) {
+ if (Gd()) e.flags |= 8192;
+ else throw Ya = Ga, Ua;
}
}
- function ul(e, t) {
- t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ut(), e.lanes |= t, dd |= t);
- }
function dl(e, t) {
- if (!$i) switch (e.tailMode) {
+ t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : dt(), e.lanes |= t, fd |= t);
+ }
+ function fl(e, t) {
+ if (!ea) switch (e.tailMode) {
case "visible": break;
case "collapsed":
for (var n = e.tail, r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling;
@@ -4546,15 +4546,15 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
n === null ? e.tail = null : n.sibling = null;
}
}
- function fl(e) {
+ function pl(e) {
var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;
if (t) for (var i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 1206910976, r |= i.flags & 1206910976, i.return = e, i = i.sibling;
else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;
return e.subtreeFlags |= r, e.childLanes = n, t;
}
- function pl(e, t, n) {
+ function ml(e, t, n) {
var r = t.pendingProps;
- switch (Yi(t), t.tag) {
+ switch (Xi(t), t.tag) {
case 16:
case 15:
case 0:
@@ -4563,32 +4563,32 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case 8:
case 12:
case 9:
- case 14: return fl(t), null;
- case 1: return fl(t), null;
- case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), fa(wa), Ce(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (aa(t) ? sl(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, oa())), fl(t), null;
+ case 14: return pl(t), null;
+ case 1: return pl(t), null;
+ case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), pa(Ta), we(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (oa(t) ? cl(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, sa())), pl(t), null;
case 26:
var a = t.type, o = t.memoizedState;
- return e === null ? (sl(t), o === null ? (fl(t), cl(t, a, null, r, n)) : (fl(t), ll(t, o))) : o ? o === e.memoizedState ? (fl(t), t.flags &= -16777217) : (sl(t), fl(t), ll(t, o)) : (e = e.memoizedProps, e !== r && sl(t), fl(t), cl(t, a, e, r, n)), null;
+ return e === null ? (cl(t), o === null ? (pl(t), ll(t, a, null, r, n)) : (pl(t), ul(t, o))) : o ? o === e.memoizedState ? (pl(t), t.flags &= -16777217) : (cl(t), pl(t), ul(t, o)) : (e = e.memoizedProps, e !== r && cl(t), pl(t), ll(t, a, e, r, n)), null;
case 27:
- if (Te(t), n = be.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && sl(t);
+ if (Ee(t), n = xe.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && cl(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return fl(t), t.subtreeFlags &= -33554433, null;
+ return pl(t), t.subtreeFlags &= -33554433, null;
}
- e = ve.current, aa(t) ? ra(t, e) : (e = ym(a, r, n), t.stateNode = e, sl(t));
+ e = ye.current, oa(t) ? ia(t, e) : (e = bm(a, r, n), t.stateNode = e, cl(t));
}
- return fl(t), t.subtreeFlags &= -33554433, null;
+ return pl(t), t.subtreeFlags &= -33554433, null;
case 5:
- if (Te(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && sl(t);
+ if (Ee(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && cl(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return fl(t), t.subtreeFlags &= -33554433, null;
+ return pl(t), t.subtreeFlags &= -33554433, null;
}
- if (o = ve.current, aa(t)) ra(t, o);
+ if (o = ye.current, oa(t)) ia(t, o);
else {
- var s = pp(be.current);
+ var s = mp(xe.current);
switch (o) {
case 1:
o = s.createElementNS("http://www.w3.org/2000/svg", a);
@@ -4612,7 +4612,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
default: o = typeof r.is == "string" ? s.createElement(a, { is: r.is }) : s.createElement(a);
}
}
- o[St] = t, o[Ct] = r;
+ o[Ct] = t, o[wt] = r;
a: for (s = t.child; s !== null;) {
if (s.tag === 5 || s.tag === 6) o.appendChild(s.stateNode);
else if (s.tag !== 4 && s.tag !== 27 && s.child !== null) {
@@ -4627,7 +4627,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
s.sibling.return = s.return, s = s.sibling;
}
t.stateNode = o;
- a: switch (op(o, a, r), a) {
+ a: switch (sp(o, a, r), a) {
case "button":
case "input":
case "select":
@@ -4639,71 +4639,71 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
break a;
default: r = !1;
}
- r && sl(t);
+ r && cl(t);
}
}
- return fl(t), t.subtreeFlags &= -33554433, cl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
+ return pl(t), t.subtreeFlags &= -33554433, ll(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
case 6:
- if (e && t.stateNode != null) e.memoizedProps !== r && sl(t);
+ if (e && t.stateNode != null) e.memoizedProps !== r && cl(t);
else {
if (typeof r != "string" && t.stateNode === null) throw Error(i(166));
- if (e = be.current, aa(t)) {
- if (e = t.stateNode, n = t.memoizedProps, r = null, a = Zi, a !== null) switch (a.tag) {
+ if (e = xe.current, oa(t)) {
+ if (e = t.stateNode, n = t.memoizedProps, r = null, a = Qi, a !== null) switch (a.tag) {
case 27:
case 5: r = a.memoizedProps;
}
- e[St] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || rp(e.nodeValue, n)), e || na(t, !0);
- } else e = pp(e).createTextNode(r), e[St] = t, t.stateNode = e;
+ e[Ct] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || ip(e.nodeValue, n)), e || ra(t, !0);
+ } else e = mp(e).createTextNode(r), e[Ct] = t, t.stateNode = e;
}
- return fl(t), null;
+ return pl(t), null;
case 31:
if (n = t.memoizedState, e === null || e.memoizedState !== null) {
- if (r = aa(t), n !== null) {
+ if (r = oa(t), n !== null) {
if (e === null) {
if (!r) throw Error(i(318));
if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(557));
- e[St] = t;
- } else q(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- fl(t), e = !1;
- } else n = oa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
- if (!e) return t.flags & 256 ? (Oo(t), t) : (Oo(t), null);
+ e[Ct] = t;
+ } else K(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
+ pl(t), e = !1;
+ } else n = sa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
+ if (!e) return t.flags & 256 ? (ko(t), t) : (ko(t), null);
if (t.flags & 128) throw Error(i(558));
}
- return fl(t), null;
+ return pl(t), null;
case 13:
if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
- if (a = aa(t), r !== null && r.dehydrated !== null) {
+ if (a = oa(t), r !== null && r.dehydrated !== null) {
if (e === null) {
if (!a) throw Error(i(318));
if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(i(317));
- a[St] = t;
- } else q(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- fl(t), a = !1;
- } else a = oa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
- if (!a) return t.flags & 256 ? (Oo(t), t) : (Oo(t), null);
+ a[Ct] = t;
+ } else K(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
+ pl(t), a = !1;
+ } else a = sa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
+ if (!a) return t.flags & 256 ? (ko(t), t) : (ko(t), null);
}
- return Oo(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), ul(t, t.updateQueue), fl(t), null);
- case 4: return Ce(), e === null && qf(t.stateNode.containerInfo), t.flags |= 67108864, fl(t), null;
- case 10: return fa(t.type), fl(t), null;
+ return ko(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), dl(t, t.updateQueue), pl(t), null);
+ case 4: return we(), e === null && Jf(t.stateNode.containerInfo), t.flags |= 67108864, pl(t), null;
+ case 10: return pa(t.type), pl(t), null;
case 19:
- if (jo(t), r = t.memoizedState, r === null) return fl(t), null;
+ if (Mo(t), r = t.memoizedState, r === null) return pl(t), null;
if (a = !!(t.flags & 128), o = r.rendering, o === null) {
- if (a) dl(r, !1);
+ if (a) fl(r, !1);
else {
- if (od !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
- if (o = Mo(e), o !== null) {
- for (t.flags |= 128, dl(r, !1), e = o.updateQueue, t.updateQueue = e, ul(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Ni(n, e), n = n.sibling;
- return Ao(t, ko.current & 1 | 2), $i && Ki(t, r.treeForkCount), t.child;
+ if (sd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
+ if (o = No(e), o !== null) {
+ for (t.flags |= 128, fl(r, !1), e = o.updateQueue, t.updateQueue = e, dl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Pi(n, e), n = n.sibling;
+ return jo(t, Ao.current & 1 | 2), ea && qi(t, r.treeForkCount), t.child;
}
e = e.sibling;
}
- r.tail !== null && R() > _d && (t.flags |= 128, a = !0, dl(r, !1), t.lanes = 4194304);
+ r.tail !== null && L() > vd && (t.flags |= 128, a = !0, fl(r, !1), t.lanes = 4194304);
}
} else {
if (!a) {
- if (e = Mo(o), e !== null) {
- if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, ul(t, e), dl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !$i) return fl(t), null;
- } else 2 * R() - r.renderingStartTime > _d && n !== 536870912 && (t.flags |= 128, a = !0, dl(r, !1), t.lanes = 4194304);
+ if (e = No(o), e !== null) {
+ if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, dl(t, e), fl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !ea) return pl(t), null;
+ } else 2 * L() - r.renderingStartTime > vd && n !== 536870912 && (t.flags |= 128, a = !0, fl(r, !1), t.lanes = 4194304);
}
r.isBackwards ? (o.sibling = t.child, t.child = o) : (e = r.last, e === null ? t.child = o : e.sibling = o, r.last = o);
}
@@ -4719,79 +4719,79 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
n = !0;
}
- return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = R(), e.sibling = null, o = ko.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || $i ? Ao(t, o) : (n = o, _e(So, t), _e(ko, n), Co === null && (Co = t)), $i && Ki(t, r.treeForkCount), e;
+ return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = L(), e.sibling = null, o = Ao.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || ea ? jo(t, o) : (n = o, ve(Co, t), ve(Ao, n), wo === null && (wo = t)), ea && qi(t, r.treeForkCount), e;
}
- return fl(t), null;
+ return pl(t), null;
case 22:
- case 23: return Oo(t), xo(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (fl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : fl(t), n = t.updateQueue, n !== null && ul(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && ge(La), null;
- case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), fa(wa), fl(t), null;
+ case 23: return ko(t), So(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (pl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : pl(t), n = t.updateQueue, n !== null && dl(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && _e(Ra), null;
+ case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), pa(Ta), pl(t), null;
case 25: return null;
- case 30: return t.flags |= 33554432, fl(t), null;
+ case 30: return t.flags |= 33554432, pl(t), null;
}
throw Error(i(156, t.tag));
}
- function ml(e, t) {
- switch (Yi(t), t.tag) {
+ function hl(e, t) {
+ switch (Xi(t), t.tag) {
case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 3: return fa(wa), Ce(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
+ case 3: return pa(Ta), we(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
case 26:
case 27:
- case 5: return Te(t), null;
+ case 5: return Ee(t), null;
case 31:
if (t.memoizedState !== null) {
- if (Oo(t), t.alternate === null) throw Error(i(340));
- q();
+ if (ko(t), t.alternate === null) throw Error(i(340));
+ K();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
case 13:
- if (Oo(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
+ if (ko(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
if (t.alternate === null) throw Error(i(340));
- q();
+ K();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 19: return jo(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;
- case 4: return Ce(), null;
- case 10: return fa(t.type), null;
+ case 19: return Mo(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;
+ case 4: return we(), null;
+ case 10: return pa(t.type), null;
case 22:
- case 23: return Oo(t), xo(), e !== null && ge(La), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 24: return fa(wa), null;
+ case 23: return ko(t), So(), e !== null && _e(Ra), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
+ case 24: return pa(Ta), null;
case 25: return null;
default: return null;
}
}
- function hl(e, t) {
- switch (Yi(t), t.tag) {
+ function gl(e, t) {
+ switch (Xi(t), t.tag) {
case 3:
- fa(wa), Ce();
+ pa(Ta), we();
break;
case 26:
case 27:
case 5:
- Te(t);
+ Ee(t);
break;
case 4:
- Ce();
+ we();
break;
case 31:
- t.memoizedState !== null && Oo(t);
+ t.memoizedState !== null && ko(t);
break;
case 13:
- Oo(t);
+ ko(t);
break;
case 19:
- jo(t);
+ Mo(t);
break;
case 10:
- fa(t.type);
+ pa(t.type);
break;
case 22:
case 23:
- Oo(t), xo(), e !== null && ge(La);
+ ko(t), So(), e !== null && _e(Ra);
break;
- case 24: fa(wa);
+ case 24: pa(Ta);
}
}
- function gl(e, t) {
+ function _l(e, t) {
try {
var n = t.updateQueue, r = n === null ? null : n.lastEffect;
if (r !== null) {
@@ -4807,10 +4807,10 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
} while (n !== i);
}
} catch (e) {
- hf(t, t.return, e);
+ gf(t, t.return, e);
}
}
- function _l(e, t, n) {
+ function vl(e, t, n) {
try {
var r = t.updateQueue, i = r === null ? null : r.lastEffect;
if (i !== null) {
@@ -4825,7 +4825,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
try {
l();
} catch (e) {
- hf(i, c, e);
+ gf(i, c, e);
}
}
}
@@ -4833,29 +4833,29 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
} while (r !== a);
}
} catch (e) {
- hf(t, t.return, e);
+ gf(t, t.return, e);
}
}
- function vl(e) {
+ function yl(e) {
var t = e.updateQueue;
if (t !== null) {
var n = e.stateNode;
try {
- go(t, n);
+ _o(t, n);
} catch (t) {
- hf(e, e.return, t);
+ gf(e, e.return, t);
}
}
}
- function yl(e, t, n) {
- n.props = gc(e.type, e.memoizedProps), n.state = e.memoizedState;
+ function bl(e, t, n) {
+ n.props = _c(e.type, e.memoizedProps), n.state = e.memoizedState;
try {
n.componentWillUnmount();
} catch (n) {
- hf(e, t, n);
+ gf(e, t, n);
}
}
- function bl(e, t) {
+ function xl(e, t) {
try {
var n = e.ref;
if (n !== null) {
@@ -4866,13 +4866,13 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
var r = e.stateNode;
break;
case 30:
- var i = e.stateNode, a = hi(e.memoizedProps, i);
- (i.ref === null || i.ref.name !== a) && (i.ref = Rp(a)), r = i.ref;
+ var i = e.stateNode, a = gi(e.memoizedProps, i);
+ (i.ref === null || i.ref.name !== a) && (i.ref = zp(a)), r = i.ref;
break;
case 7:
if (e.stateNode === null) {
- var o = new zp(e);
- f(e.child, !1, nm, o, void 0, void 0), e.stateNode = o;
+ var o = new Bp(e);
+ f(e.child, !1, rm, o, void 0, void 0), e.stateNode = o;
}
r = e.stateNode;
break;
@@ -4881,43 +4881,43 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
typeof n == "function" ? e.refCleanup = n(r) : n.current = r;
}
} catch (n) {
- hf(e, t, n);
+ gf(e, t, n);
}
}
- function xl(e, t) {
+ function Sl(e, t) {
var n = e.ref, r = e.refCleanup;
if (n !== null) {
if (typeof r == "function") try {
r();
} catch (n) {
- hf(e, t, n);
+ gf(e, t, n);
} finally {
e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null);
}
else if (typeof n == "function") try {
n(null);
} catch (n) {
- hf(e, t, n);
+ gf(e, t, n);
}
else n.current = null;
}
}
- function Sl(e, t) {
- if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) im(e.stateNode, t[n]);
- }
- function Cl(e) {
- for (var t = e.return; t !== null && (El(t) && im(e.stateNode, t.stateNode), !Tl(t));) t = t.return;
+ function Cl(e, t) {
+ if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) am(e.stateNode, t[n]);
}
function wl(e) {
- for (var t = e.return; t !== null && (El(t) && am(e.stateNode, t.stateNode), !Tl(t));) t = t.return;
+ for (var t = e.return; t !== null && (Dl(t) && am(e.stateNode, t.stateNode), !El(t));) t = t.return;
}
function Tl(e) {
- return e.tag === 5 || e.tag === 3 || e.tag === 27;
+ for (var t = e.return; t !== null && (Dl(t) && om(e.stateNode, t.stateNode), !El(t));) t = t.return;
}
function El(e) {
- return e && e.tag === 7 && e.stateNode !== null;
+ return e.tag === 5 || e.tag === 3 || e.tag === 27;
}
function Dl(e) {
+ return e && e.tag === 7 && e.stateNode !== null;
+ }
+ function Ol(e) {
var t = e.type, n = e.memoizedProps, r = e.stateNode;
try {
a: switch (t) {
@@ -4930,103 +4930,103 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case "img": n.src ? r.src = n.src : n.srcSet && (r.srcset = n.srcSet);
}
} catch (t) {
- hf(e, e.return, t);
+ gf(e, e.return, t);
}
}
- function Ol(e, t, n) {
+ function kl(e, t, n) {
try {
var r = e.stateNode;
- cp(r, e.type, n, t), r[Ct] = t;
+ lp(r, e.type, n, t), r[wt] = t;
} catch (t) {
- hf(e, e.return, t);
+ gf(e, e.return, t);
}
}
- function kl(e) {
- return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Ep(e.type) || e.tag === 4;
- }
function Al(e) {
+ return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Dp(e.type) || e.tag === 4;
+ }
+ function jl(e) {
a: for (;;) {
for (; e.sibling === null;) {
- if (e.return === null || kl(e.return)) return null;
+ if (e.return === null || Al(e.return)) return null;
e = e.return;
}
for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {
- if (e.tag === 27 && Ep(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
+ if (e.tag === 27 && Dp(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
e.child.return = e, e = e.child;
}
if (!(e.flags & 2)) return e.stateNode;
}
}
- function jl(e, t, n, r) {
+ function Ml(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = vn)), Sl(e, r), Gt = !0;
- else if (i !== 4 && (i === 27 && (Sl(e, r), r = null, Ep(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (jl(e, t, n, r), e = e.sibling; e !== null;) jl(e, t, n, r), e = e.sibling;
+ if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = yn)), Cl(e, r), Kt = !0;
+ else if (i !== 4 && (i === 27 && (Cl(e, r), r = null, Dp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Ml(e, t, n, r), e = e.sibling; e !== null;) Ml(e, t, n, r), e = e.sibling;
}
- function Ml(e, t, n, r) {
+ function Nl(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Sl(e, r), Gt = !0;
- else if (i !== 4 && (i === 27 && (Sl(e, r), r = null, Ep(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Ml(e, t, n, r), e = e.sibling; e !== null;) Ml(e, t, n, r), e = e.sibling;
+ if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Cl(e, r), Kt = !0;
+ else if (i !== 4 && (i === 27 && (Cl(e, r), r = null, Dp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Nl(e, t, n, r), e = e.sibling; e !== null;) Nl(e, t, n, r), e = e.sibling;
}
- function Nl(e) {
+ function Pl(e) {
var t = e.stateNode, n = e.memoizedProps;
try {
for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);
- op(t, r, n), t[St] = e, t[Ct] = n;
+ sp(t, r, n), t[Ct] = e, t[wt] = n;
} catch (t) {
- hf(e, e.return, t);
+ gf(e, e.return, t);
}
}
- var Pl = !1, Fl = null;
- function Il(e) {
- (e.tag === 30 || e.subtreeFlags & 33554432) && (Pl = !0);
- }
- var Ll = null;
- function Rl() {
- var e = Ll;
- return Ll = null, e;
+ var Fl = !1, Il = null;
+ function Ll(e) {
+ (e.tag === 30 || e.subtreeFlags & 33554432) && (Fl = !0);
}
- var zl = 0;
- function Bl(e, t, n, r, i) {
- return zl = 0, Vl(e.child, t, n, r, i);
+ var Rl = null;
+ function zl() {
+ var e = Rl;
+ return Rl = null, e;
}
+ var Bl = 0;
function Vl(e, t, n, r, i) {
+ return Bl = 0, Hl(e.child, t, n, r, i);
+ }
+ function Hl(e, t, n, r, i) {
for (var a = !1; e !== null;) {
if (e.tag === 5) {
var o = e.stateNode;
if (r !== null) {
- var s = Mp(o);
+ var s = Np(o);
r.push(s), s.view && (a = !0);
- } else a || Mp(o).view && (a = !0);
- Pl = !0, kp(o, zl === 0 ? t : t + "_" + zl, n), zl++;
- } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Vl(e.child, t, n, r, i) && (a = !0));
+ } else a || Np(o).view && (a = !0);
+ Fl = !0, Ap(o, Bl === 0 ? t : t + "_" + Bl, n), Bl++;
+ } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Hl(e.child, t, n, r, i) && (a = !0));
e = e.sibling;
}
return a;
}
- function Hl(e, t) {
- for (; e !== null;) e.tag === 5 ? Ap(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Hl(e.child, t)), e = e.sibling;
+ function Ul(e, t) {
+ for (; e !== null;) e.tag === 5 ? jp(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Ul(e.child, t)), e = e.sibling;
}
- function Ul(e) {
+ function Wl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
- if ((e.tag !== 22 || e.memoizedState === null) && (Ul(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
+ if ((e.tag !== 22 || e.memoizedState === null) && (Wl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
var t = e.memoizedProps;
if (t.name == null || t.name === "auto") throw Error(i(544));
var n = t.name;
- t = _i(t.default, t.share), t !== "none" && (Bl(e, n, t, null, !1) || Hl(e.child, !1));
+ t = vi(t.default, t.share), t !== "none" && (Vl(e, n, t, null, !1) || Ul(e.child, !1));
}
e = e.sibling;
}
}
- function Wl(e, t) {
+ function Gl(e, t) {
if (e.tag === 30) {
- var n = e.stateNode, r = e.memoizedProps, i = hi(r, n), a = _i(r.default, n.paired ? r.share : r.enter);
- a === "none" ? Ul(e) : Bl(e, i, a, null, !1) ? (Ul(e), n.paired || t || Pd(e, r.onEnter)) : Hl(e.child, !1);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Wl(e, t), e = e.sibling;
- else Ul(e);
- }
- function Gl(e) {
- if (Fl !== null && Fl.size !== 0) {
- var t = Fl;
+ var n = e.stateNode, r = e.memoizedProps, i = gi(r, n), a = vi(r.default, n.paired ? r.share : r.enter);
+ a === "none" ? Wl(e) : Vl(e, i, a, null, !1) ? (Wl(e), n.paired || t || Fd(e, r.onEnter)) : Ul(e.child, !1);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Gl(e, t), e = e.sibling;
+ else Wl(e);
+ }
+ function Kl(e) {
+ if (Il !== null && Il.size !== 0) {
+ var t = Il;
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
@@ -5034,59 +5034,59 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
if (r != null && r !== "auto") {
var i = t.get(r);
if (i !== void 0) {
- var a = _i(n.default, n.share);
- if (a !== "none" && (Bl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Pd(e, n.onShare)) : Hl(e.child, !1)), t.delete(r), t.size === 0) break;
+ var a = vi(n.default, n.share);
+ if (a !== "none" && (Vl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Fd(e, n.onShare)) : Ul(e.child, !1)), t.delete(r), t.size === 0) break;
}
}
}
- Gl(e);
+ Kl(e);
}
e = e.sibling;
}
}
}
- function Kl(e) {
+ function ql(e) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = hi(t, e.stateNode), r = Fl === null ? void 0 : Fl.get(n), i = _i(t.default, r === void 0 ? t.exit : t.share);
- i !== "none" && (Bl(e, n, i, null, !1) ? r === void 0 ? Pd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Fl.delete(n), Pd(e, t.onShare)) : Hl(e.child, !1)), Fl !== null && Gl(e);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Kl(e), e = e.sibling;
- else Fl !== null && Gl(e);
+ var t = e.memoizedProps, n = gi(t, e.stateNode), r = Il === null ? void 0 : Il.get(n), i = vi(t.default, r === void 0 ? t.exit : t.share);
+ i !== "none" && (Vl(e, n, i, null, !1) ? r === void 0 ? Fd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Il.delete(n), Fd(e, t.onShare)) : Ul(e.child, !1)), Il !== null && Kl(e);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) ql(e), e = e.sibling;
+ else Il !== null && Kl(e);
}
- function ql(e) {
+ function Jl(e) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = hi(t, e.stateNode);
- t = _i(t.default, t.update), e.flags &= -5, t !== "none" && Bl(e, n, t, e.memoizedState = [], !1);
- } else e.subtreeFlags & 33554432 && ql(e);
+ var t = e.memoizedProps, n = gi(t, e.stateNode);
+ t = vi(t.default, t.update), e.flags &= -5, t !== "none" && Vl(e, n, t, e.memoizedState = [], !1);
+ } else e.subtreeFlags & 33554432 && Jl(e);
e = e.sibling;
}
}
- function Jl(e) {
+ function Yl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
var t = e.stateNode;
- t.paired !== null && (t.paired = null, Hl(e.child, !1));
+ t.paired !== null && (t.paired = null, Ul(e.child, !1));
}
- Jl(e);
+ Yl(e);
}
e = e.sibling;
}
}
- function Yl(e) {
- if (e.tag === 30) e.stateNode.paired = null, Hl(e.child, !1), Jl(e);
- else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Yl(e), e = e.sibling;
- else Jl(e);
- }
function Xl(e) {
- for (e = e.child; e !== null;) e.tag === 30 ? Hl(e.child, !1) : e.subtreeFlags & 33554432 && Xl(e), e = e.sibling;
+ if (e.tag === 30) e.stateNode.paired = null, Ul(e.child, !1), Yl(e);
+ else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Xl(e), e = e.sibling;
+ else Yl(e);
+ }
+ function Zl(e) {
+ for (e = e.child; e !== null;) e.tag === 30 ? Ul(e.child, !1) : e.subtreeFlags & 33554432 && Zl(e), e = e.sibling;
}
- function Zl(e, t, n, r, i, a, o) {
+ function Ql(e, t, n, r, i, a, o) {
for (var s = !1; t !== null;) {
if (t.tag === 5) {
var c = t.stateNode;
- if (a !== null && zl < a.length) {
- var l = a[zl], u = Mp(c);
+ if (a !== null && Bl < a.length) {
+ var l = a[Bl], u = Np(c);
(l.view || u.view) && (s = !0);
var d;
if (d = !(e.flags & 4)) {
@@ -5099,30 +5099,30 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
d && (e.flags |= 4), u.abs ? u = !l.abs : (l = l.rect, u = u.rect, u = l.height !== u.height || l.width !== u.width), u && (e.flags |= 32);
} else e.flags |= 32;
- e.flags & 4 && kp(c, zl === 0 ? n : n + "_" + zl, i), s && e.flags & 4 || (Ll === null && (Ll = []), Ll.push(c, zl === 0 ? r : r + "_" + zl, t.memoizedProps)), zl++;
- } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : Zl(e, t.child, n, r, i, a, o) && (s = !0));
+ e.flags & 4 && Ap(c, Bl === 0 ? n : n + "_" + Bl, i), s && e.flags & 4 || (Rl === null && (Rl = []), Rl.push(c, Bl === 0 ? r : r + "_" + Bl, t.memoizedProps)), Bl++;
+ } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : Ql(e, t.child, n, r, i, a, o) && (s = !0));
t = t.sibling;
}
return s;
}
- function Ql(e, t) {
+ function $l(e, t) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var n = e.memoizedProps, r = e.stateNode, i = hi(n, r), a = _i(n.default, n.update);
+ var n = e.memoizedProps, r = e.stateNode, i = gi(n, r), a = vi(n.default, n.update);
if (t) {
r = r.clones;
- var o = r === null ? null : r.map(Np);
+ var o = r === null ? null : r.map(Pp);
} else o = e.memoizedState, e.memoizedState = null;
r = e;
var s = e.child;
- zl = 0, i = Zl(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Pd(e, n.onUpdate));
- } else e.subtreeFlags & 33554432 && Ql(e, t);
+ Bl = 0, i = Ql(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Fd(e, n.onUpdate));
+ } else e.subtreeFlags & 33554432 && $l(e, t);
e = e.sibling;
}
}
- var $l = !1, eu = !1, tu = !1, nu = !1, ru = typeof WeakSet == "function" ? WeakSet : Set, iu = null, au = !1, ou = !1, su = !1, cu = !1;
- function lu(e, t, n) {
- if (e = e.containerInfo, dp = bh, e = qr(e), Jr(e)) {
+ var eu = !1, tu = !1, nu = !1, ru = !1, iu = typeof WeakSet == "function" ? WeakSet : Set, au = null, ou = !1, su = !1, cu = !1, lu = !1;
+ function uu(e, t, n) {
+ if (e = e.containerInfo, fp = xh, e = Jr(e), Yr(e)) {
if ("selectionStart" in e) var r = {
start: e.selectionStart,
end: e.selectionEnd
@@ -5161,31 +5161,31 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
end: 0
};
} else r = null;
- for (fp = {
+ for (pp = {
focusedElem: e,
selectionRange: r
- }, bh = !1, n = (n & 335544064) === n, iu = t, t = n ? 9270 : 1024; iu !== null;) {
- if (e = iu, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Kl(r[a]);
- if (e.alternate === null && e.flags & 2) n && Il(e), uu(n);
+ }, xh = !1, n = (n & 335544064) === n, au = t, t = n ? 9270 : 1024; au !== null;) {
+ if (e = au, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && ql(r[a]);
+ if (e.alternate === null && e.flags & 2) n && Ll(e), du(n);
else {
if (e.tag === 22) {
if (r = e.alternate, e.memoizedState !== null) {
- r !== null && r.memoizedState === null && n && Kl(r), uu(n);
+ r !== null && r.memoizedState === null && n && ql(r), du(n);
continue;
}
if (r !== null && r.memoizedState !== null) {
- n && Il(e), uu(n);
+ n && Ll(e), du(n);
continue;
}
}
- r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, iu = r) : (n && ql(e), uu(n));
+ r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, au = r) : (n && Jl(e), du(n));
}
}
- Fl = null;
+ Il = null;
}
- function uu(e) {
- for (; iu !== null;) {
- var t = iu, n = e, r = t.alternate, a = t.flags;
+ function du(e) {
+ for (; au !== null;) {
+ var t = au, n = e, r = t.alternate, a = t.flags;
switch (t.tag) {
case 0:
case 11:
@@ -5195,21 +5195,21 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
n = void 0, a = r.memoizedProps, r = r.memoizedState;
var o = t.stateNode;
try {
- var s = gc(t.type, a);
+ var s = _c(t.type, a);
n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;
} catch (e) {
- hf(t, t.return, e);
+ gf(t, t.return, e);
}
}
break;
case 3:
if (a & 1024) {
- if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) om(r);
+ if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) sm(r);
else if (n === 1) switch (r.nodeName) {
case "HEAD":
case "HTML":
case "BODY":
- om(r);
+ sm(r);
break;
default: r.textContent = "";
}
@@ -5222,46 +5222,46 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case 4:
case 17: break;
case 30:
- n && r !== null && (n = hi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = _i(a.default, a.update), a !== "none" && Bl(r, n, a, r.memoizedState = [], !0));
+ n && r !== null && (n = gi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = vi(a.default, a.update), a !== "none" && Vl(r, n, a, r.memoizedState = [], !0));
break;
default: if (a & 1024) throw Error(i(163));
}
if (r = t.sibling, r !== null) {
- r.return = t.return, iu = r;
+ r.return = t.return, au = r;
break;
}
- iu = t.return;
+ au = t.return;
}
}
- function du(e, t, n) {
+ function fu(e, t, n) {
var r = n.flags;
switch (n.tag) {
case 0:
case 11:
case 15:
- ju(e, n), r & 4 && gl(5, n);
+ Mu(e, n), r & 4 && _l(5, n);
break;
case 1:
- if (ju(e, n), r & 4) {
+ if (Mu(e, n), r & 4) {
if (e = n.stateNode, t === null) try {
e.componentDidMount();
} catch (e) {
- hf(n, n.return, e);
+ gf(n, n.return, e);
}
else {
- var i = gc(n.type, t.memoizedProps);
+ var i = _c(n.type, t.memoizedProps);
t = t.memoizedState;
try {
e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);
} catch (e) {
- hf(n, n.return, e);
+ gf(n, n.return, e);
}
}
}
- r & 64 && vl(n), r & 512 && bl(n, n.return);
+ r & 64 && yl(n), r & 512 && xl(n, n.return);
break;
case 3:
- if (ju(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
+ if (Mu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
if (t = null, n.child !== null) switch (n.child.tag) {
case 27:
case 5:
@@ -5270,43 +5270,43 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case 1: t = n.child.stateNode;
}
try {
- go(e, t);
+ _o(e, t);
} catch (e) {
- hf(n, n.return, e);
+ gf(n, n.return, e);
}
}
break;
- case 27: t === null && r & 4 && Nl(n);
+ case 27: t === null && r & 4 && Pl(n);
case 26:
case 5:
- ju(e, n), t === null && r & 4 && Dl(n), r & 512 && bl(n, n.return);
+ Mu(e, n), t === null && r & 4 && Ol(n), r & 512 && xl(n, n.return);
break;
case 12:
- ju(e, n);
+ Mu(e, n);
break;
case 31:
- ju(e, n), r & 4 && bu(e, n);
+ Mu(e, n), r & 4 && xu(e, n);
break;
case 13:
- ju(e, n), r & 4 && xu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = yf.bind(null, n), fm(e, n))));
+ Mu(e, n), r & 4 && Su(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = bf.bind(null, n), pm(e, n))));
break;
case 22:
- if (r = n.memoizedState !== null || $l, !r) {
- var a = t !== null && t.memoizedState !== null || eu;
- t = $l, i = eu, $l = r, (eu = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Nu(e, n, r)) : ju(e, n), $l = t, eu = i;
+ if (r = n.memoizedState !== null || eu, !r) {
+ var a = t !== null && t.memoizedState !== null || tu;
+ t = eu, i = tu, eu = r, (tu = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Pu(e, n, r)) : Mu(e, n), eu = t, tu = i;
}
break;
case 30:
- ju(e, n), r & 512 && bl(n, n.return);
+ Mu(e, n), r & 512 && xl(n, n.return);
break;
- case 7: r & 512 && bl(n, n.return);
- default: ju(e, n);
+ case 7: r & 512 && xl(n, n.return);
+ default: Mu(e, n);
}
}
- function fu(e, t) {
- for (e = e.child; e !== null;) pu(e, t), e = e.sibling;
- }
function pu(e, t) {
+ for (e = e.child; e !== null;) mu(e, t), e = e.sibling;
+ }
+ function mu(e, t) {
switch (e.tag) {
case 5:
case 26:
@@ -5320,182 +5320,182 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
i.style.display = o == null || typeof o == "boolean" ? "" : ("" + o).trim();
}
} catch (t) {
- hf(e, e.return, t);
+ gf(e, e.return, t);
}
- mu(e, t);
+ hu(e, t);
break;
case 6:
try {
- e.stateNode.nodeValue = t ? "" : e.memoizedProps, Gt = !0;
+ e.stateNode.nodeValue = t ? "" : e.memoizedProps, Kt = !0;
} catch (t) {
- hf(e, e.return, t);
+ gf(e, e.return, t);
}
break;
case 18:
try {
var s = e.stateNode;
- t ? Op(s, !0) : Op(e.stateNode, !1);
+ t ? kp(s, !0) : kp(e.stateNode, !1);
} catch (t) {
- hf(e, e.return, t);
+ gf(e, e.return, t);
}
break;
case 22:
case 23:
- e.memoizedState === null && fu(e, t);
+ e.memoizedState === null && pu(e, t);
break;
- default: fu(e, t);
+ default: pu(e, t);
}
}
- function mu(e, t) {
+ function hu(e, t) {
if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {
a: {
var n = e, r = t;
switch (n.tag) {
case 4:
- pu(n, r);
+ mu(n, r);
break a;
case 22:
- n.memoizedState === null && mu(n, r);
+ n.memoizedState === null && hu(n, r);
break a;
- default: mu(n, r);
+ default: hu(n, r);
}
}
e = e.sibling;
}
}
- function hu(e) {
+ function gu(e) {
var t = e.alternate;
- t !== null && (e.alternate = null, hu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && At(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
- }
- var gu = null, _u = !1;
- function vu(e, t, n) {
- for (n = n.child; n !== null;) yu(e, t, n), n = n.sibling;
+ t !== null && (e.alternate = null, gu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && jt(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
}
+ var _u = null, vu = !1;
function yu(e, t, n) {
- if (Xe && typeof Xe.onCommitFiberUnmount == "function") try {
- Xe.onCommitFiberUnmount(Ye, n);
+ for (n = n.child; n !== null;) bu(e, t, n), n = n.sibling;
+ }
+ function bu(e, t, n) {
+ if (Ze && typeof Ze.onCommitFiberUnmount == "function") try {
+ Ze.onCommitFiberUnmount(Xe, n);
} catch {}
switch (n.tag) {
case 26:
- eu || xl(n, t), vu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !eu && (n = n.stateNode, n.parentNode.removeChild(n));
+ tu || Sl(n, t), yu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !tu && (n = n.stateNode, n.parentNode.removeChild(n));
break;
case 27:
- eu || xl(n, t), wl(n);
- var r = gu, i = _u;
- Ep(n.type) && (gu = n.stateNode, _u = !1), vu(e, t, n), bm(n.stateNode, n.type, n.memoizedProps), gu = r, _u = i;
+ tu || Sl(n, t), Tl(n);
+ var r = _u, i = vu;
+ Dp(n.type) && (_u = n.stateNode, vu = !1), yu(e, t, n), xm(n.stateNode, n.type, n.memoizedProps), _u = r, vu = i;
break;
- case 5: eu || xl(n, t), wl(n);
+ case 5: tu || Sl(n, t), Tl(n);
case 6:
- if (n.tag === 6 && wl(n), r = gu, i = _u, gu = null, vu(e, t, n), gu = r, _u = i, gu !== null) {
- if (_u) try {
- (gu.nodeType === 9 ? gu.body : gu.nodeName === "HTML" ? gu.ownerDocument.body : gu).removeChild(n.stateNode), Gt = !0;
+ if (n.tag === 6 && Tl(n), r = _u, i = vu, _u = null, yu(e, t, n), _u = r, vu = i, _u !== null) {
+ if (vu) try {
+ (_u.nodeType === 9 ? _u.body : _u.nodeName === "HTML" ? _u.ownerDocument.body : _u).removeChild(n.stateNode), Kt = !0;
} catch (e) {
- hf(n, t, e);
+ gf(n, t, e);
}
else try {
- gu.removeChild(n.stateNode), Gt = !0;
+ _u.removeChild(n.stateNode), Kt = !0;
} catch (e) {
- hf(n, t, e);
+ gf(n, t, e);
}
}
break;
case 18:
- gu !== null && (_u ? (e = gu, Dp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Kh(e)) : Dp(gu, n.stateNode));
+ _u !== null && (vu ? (e = _u, Op(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), qh(e)) : Op(_u, n.stateNode));
break;
case 4:
- r = gu, i = _u, gu = n.stateNode.containerInfo, _u = !0, vu(e, t, n), gu = r, _u = i;
+ r = _u, i = vu, _u = n.stateNode.containerInfo, vu = !0, yu(e, t, n), _u = r, vu = i;
break;
case 0:
case 11:
case 14:
case 15:
- _l(2, n, t), eu || _l(4, n, t), vu(e, t, n);
+ vl(2, n, t), tu || vl(4, n, t), yu(e, t, n);
break;
case 1:
- eu || (xl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && yl(n, t, r)), vu(e, t, n);
+ tu || (Sl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && bl(n, t, r)), yu(e, t, n);
break;
case 21:
- vu(e, t, n);
+ yu(e, t, n);
break;
case 22:
- eu = (r = eu) || n.memoizedState !== null, vu(e, t, n), eu = r;
+ tu = (r = tu) || n.memoizedState !== null, yu(e, t, n), tu = r;
break;
case 30:
- xl(n, t), vu(e, t, n);
+ Sl(n, t), yu(e, t, n);
break;
case 7:
- eu || xl(n, t), vu(e, t, n);
+ tu || Sl(n, t), yu(e, t, n);
break;
- default: vu(e, t, n);
+ default: yu(e, t, n);
}
}
- function bu(e, t) {
+ function xu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
e = e.dehydrated;
try {
- Kh(e);
+ qh(e);
} catch (e) {
- hf(t, t.return, e);
+ gf(t, t.return, e);
}
}
}
- function xu(e, t) {
+ function Su(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
- Kh(e);
+ qh(e);
} catch (e) {
- hf(t, t.return, e);
+ gf(t, t.return, e);
}
}
- function Su(e) {
+ function Cu(e) {
switch (e.tag) {
case 31:
case 13:
case 19:
var t = e.stateNode;
- return t === null && (t = e.stateNode = new ru()), t;
- case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new ru()), t;
+ return t === null && (t = e.stateNode = new iu()), t;
+ case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new iu()), t;
default: throw Error(i(435, e.tag));
}
}
- function Cu(e, t) {
- var n = Su(e);
+ function wu(e, t) {
+ var n = Cu(e);
t.forEach(function(t) {
if (!n.has(t)) {
n.add(t);
- var r = bf.bind(null, e, t);
+ var r = xf.bind(null, e, t);
t.then(r, r);
}
});
}
- function wu(e, t, n) {
+ function Tu(e, t, n) {
var r = t.deletions;
if (r !== null) for (var a = 0; a < r.length; a++) {
var o = r[a], s = e, c = t, l = c;
a: for (; l !== null;) {
switch (l.tag) {
case 27:
- if (Ep(l.type)) {
- gu = l.stateNode, _u = !1;
+ if (Dp(l.type)) {
+ _u = l.stateNode, vu = !1;
break a;
}
break;
case 5:
- gu = l.stateNode, _u = !1;
+ _u = l.stateNode, vu = !1;
break a;
case 3:
case 4:
- gu = l.stateNode.containerInfo, _u = !0;
+ _u = l.stateNode.containerInfo, vu = !0;
break a;
}
l = l.return;
}
- if (gu === null) throw Error(i(160));
- yu(s, c, o), gu = null, _u = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
+ if (_u === null) throw Error(i(160));
+ bu(s, c, o), _u = null, vu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
}
- if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Eu(t, e, n), t = t.sibling;
+ if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Du(t, e, n), t = t.sibling;
}
- var Tu = null;
- function Eu(e, t, n) {
+ var Eu = null;
+ function Du(e, t, n) {
var r = e.alternate, a = e.flags;
switch (e.tag) {
case 0:
@@ -5506,120 +5506,120 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
var s = r[o];
s.ref.impl = s.nextImpl;
}
- wu(t, e, n), Du(e), a & 4 && (_l(3, e, e.return), gl(3, e), _l(5, e, e.return));
+ Tu(t, e, n), Ou(e), a & 4 && (vl(3, e, e.return), _l(3, e), vl(5, e, e.return));
break;
case 1:
- wu(t, e, n), Du(e), a & 512 && (eu || r === null || xl(r, r.return)), a & 64 && $l && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
+ Tu(t, e, n), Ou(e), a & 512 && (tu || r === null || Sl(r, r.return)), a & 64 && eu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
break;
case 26:
- if (o = Tu, wu(t, e, n), Du(e), a & 512 && (eu || r === null || xl(r, r.return)), a & 4) {
+ if (o = Eu, Tu(t, e, n), Ou(e), a & 512 && (tu || r === null || Sl(r, r.return)), a & 4) {
if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {
if (n === null) {
if (e.stateNode === null) {
- if ($l) e.stateNode = gp(e.type, e.memoizedProps, t.containerInfo, e);
+ if (eu) e.stateNode = _p(e.type, e.memoizedProps, t.containerInfo, e);
else {
a: {
t = e.type, n = e.memoizedProps, a = o.ownerDocument || o;
b: switch (t) {
case "title":
- r = a.getElementsByTagName("title")[0], (!r || r[Ot] || r[St] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), op(r, t, n), r[St] = e, Ft(r), t = r;
+ r = a.getElementsByTagName("title")[0], (!r || r[kt] || r[Ct] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), sp(r, t, n), r[Ct] = e, It(r), t = r;
break a;
case "link":
- if (o = Ym("link", "href", a).get(t + (n.href || ""))) {
+ if (o = Xm("link", "href", a).get(t + (n.href || ""))) {
for (s = 0; s < o.length; s++) if (r = o[s], r.getAttribute("href") === (n.href == null || n.href === "" ? null : n.href) && r.getAttribute("rel") === (n.rel == null ? null : n.rel) && r.getAttribute("title") === (n.title == null ? null : n.title) && r.getAttribute("crossorigin") === (n.crossOrigin == null ? null : n.crossOrigin)) {
o.splice(s, 1);
break b;
}
}
- r = a.createElement(t), op(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), sp(r, t, n), a.head.appendChild(r);
break;
case "meta":
- if (o = Ym("meta", "content", a).get(t + (n.content || ""))) {
+ if (o = Xm("meta", "content", a).get(t + (n.content || ""))) {
for (s = 0; s < o.length; s++) if (r = o[s], r.getAttribute("content") === (n.content == null ? null : "" + n.content) && r.getAttribute("name") === (n.name == null ? null : n.name) && r.getAttribute("property") === (n.property == null ? null : n.property) && r.getAttribute("http-equiv") === (n.httpEquiv == null ? null : n.httpEquiv) && r.getAttribute("charset") === (n.charSet == null ? null : n.charSet)) {
o.splice(s, 1);
break b;
}
}
- r = a.createElement(t), op(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), sp(r, t, n), a.head.appendChild(r);
break;
default: throw Error(i(468, t));
}
- r[St] = e, Ft(r), t = r;
+ r[Ct] = e, It(r), t = r;
}
e.stateNode = t;
}
- } else $l || Xm(o, e.type, e.stateNode);
- } else e.stateNode = Wm(o, n, e.memoizedProps);
- } else a === n ? n === null && e.stateNode !== null && Ol(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || eu || t.parentNode.removeChild(t)) : a.count--, n === null ? $l || Xm(o, e.type, e.stateNode) : Wm(o, n, e.memoizedProps));
+ } else eu || Zm(o, e.type, e.stateNode);
+ } else e.stateNode = Gm(o, n, e.memoizedProps);
+ } else a === n ? n === null && e.stateNode !== null && kl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || tu || t.parentNode.removeChild(t)) : a.count--, n === null ? eu || Zm(o, e.type, e.stateNode) : Gm(o, n, e.memoizedProps));
}
break;
case 27:
- wu(t, e, n), Du(e), a & 512 && (eu || r === null || xl(r, r.return)), r !== null && a & 4 && Ol(e, e.memoizedProps, r.memoizedProps);
+ Tu(t, e, n), Ou(e), a & 512 && (tu || r === null || Sl(r, r.return)), r !== null && a & 4 && kl(e, e.memoizedProps, r.memoizedProps);
break;
case 5:
- if (o = tu, tu = !1, wu(t, e, n), tu = o, Du(e), a & 512 && (eu || r === null || xl(r, r.return)), e.flags & 32) {
+ if (o = nu, nu = !1, Tu(t, e, n), nu = o, Ou(e), a & 512 && (tu || r === null || Sl(r, r.return)), e.flags & 32) {
t = e.stateNode;
try {
- un(t, ""), Gt = !0;
+ dn(t, ""), Kt = !0;
} catch (t) {
- hf(e, e.return, t);
+ gf(e, e.return, t);
}
}
- a & 4 && e.stateNode != null && (t = e.memoizedProps, Ol(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (nu = !0);
+ a & 4 && e.stateNode != null && (t = e.memoizedProps, kl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (ru = !0);
break;
case 6:
- if (wu(t, e, n), Du(e), a & 4) {
+ if (Tu(t, e, n), Ou(e), a & 4) {
if (e.stateNode === null) throw Error(i(162));
t = e.memoizedProps, n = e.stateNode;
try {
- n.nodeValue = t, Gt = !0;
+ n.nodeValue = t, Kt = !0;
} catch (t) {
- hf(e, e.return, t);
+ gf(e, e.return, t);
}
}
break;
case 3:
- if (Gt = !1, Jm = null, o = Tu, Tu = wm(t.containerInfo), wu(t, e, n), Tu = o, Du(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
- Kh(t.containerInfo);
+ if (Kt = !1, Ym = null, o = Eu, Eu = Tm(t.containerInfo), Tu(t, e, n), Eu = o, Ou(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
+ qh(t.containerInfo);
} catch (t) {
- hf(e, e.return, t);
+ gf(e, e.return, t);
}
- nu && (nu = !1, Ou(e)), Gt = !1;
+ ru && (ru = !1, ku(e)), Kt = !1;
break;
case 4:
- a = tu, tu = $l, r = Kt(), o = Tu, Tu = wm(e.stateNode.containerInfo), wu(t, e, n), Du(e), Tu = o, Gt && ou && (su = !0), Gt = r, tu = a;
+ a = nu, nu = eu, r = qt(), o = Eu, Eu = Tm(e.stateNode.containerInfo), Tu(t, e, n), Ou(e), Eu = o, Kt && su && (cu = !0), Kt = r, nu = a;
break;
case 12:
- wu(t, e, n), Du(e);
+ Tu(t, e, n), Ou(e);
break;
case 31:
- wu(t, e, n), Du(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Cu(e, t)));
+ Tu(t, e, n), Ou(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
break;
case 13:
- wu(t, e, n), Du(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (hd = R()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Cu(e, t)));
+ Tu(t, e, n), Ou(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (gd = L()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
break;
case 22:
o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;
- var c = $l, l = eu, u = tu;
- $l = c || o, tu = u || o, eu = l || s, wu(t, e, n), eu = l, tu = u, $l = c, Du(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || $l || eu || (t = s || eu, n = $l, r = eu, $l = o || $l, eu = t, Mu(e, 2), $l = n, eu = r), !o && tu || fu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Cu(e, n))));
+ var c = eu, l = tu, u = nu;
+ eu = c || o, nu = u || o, tu = l || s, Tu(t, e, n), tu = l, nu = u, eu = c, Ou(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || eu || tu || (t = s || tu, n = eu, r = tu, eu = o || eu, tu = t, Nu(e, 2), eu = n, tu = r), !o && nu || pu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, wu(e, n))));
break;
case 19:
- wu(t, e, n), Du(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Cu(e, t)));
+ Tu(t, e, n), Ou(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
break;
case 30:
- a & 512 && (eu || r === null || xl(r, r.return)), a = Kt(), o = ou, s = (n & 335544064) === n, c = e.memoizedProps, ou = s && _i(c.default, c.update) !== "none", wu(t, e, n), Du(e), s && r !== null && Gt && (e.flags |= 4), ou = o, Gt = a;
+ a & 512 && (tu || r === null || Sl(r, r.return)), a = qt(), o = su, s = (n & 335544064) === n, c = e.memoizedProps, su = s && vi(c.default, c.update) !== "none", Tu(t, e, n), Ou(e), s && r !== null && Kt && (e.flags |= 4), su = o, Kt = a;
break;
case 21: break;
- case 7: a & 512 && (eu || r === null || xl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
- default: wu(t, e, n), Du(e);
+ case 7: a & 512 && (tu || r === null || Sl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
+ default: Tu(t, e, n), Ou(e);
}
}
- function Du(e) {
+ function Ou(e) {
var t = e.flags;
if (t & 2) {
try {
for (var n, r = e.return; r !== null;) {
- if (kl(r)) {
+ if (Al(r)) {
n = r;
break;
}
@@ -5627,11 +5627,11 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
r = null;
for (var a = e.return; a !== null;) {
- if (El(a)) {
+ if (Dl(a)) {
var o = a.stateNode;
r === null ? r = [o] : r.push(o);
}
- if (Tl(a)) break;
+ if (El(a)) break;
a = a.return;
}
var s = r;
@@ -5639,46 +5639,46 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
switch (n.tag) {
case 27:
var c = n.stateNode;
- Ml(e, Al(e), c, s);
+ Nl(e, jl(e), c, s);
break;
case 5:
var l = n.stateNode;
- n.flags & 32 && (un(l, ""), n.flags &= -33), Ml(e, Al(e), l, s);
+ n.flags & 32 && (dn(l, ""), n.flags &= -33), Nl(e, jl(e), l, s);
break;
case 3:
case 4:
var u = n.stateNode.containerInfo;
- jl(e, Al(e), u, s);
+ Ml(e, jl(e), u, s);
break;
default: throw Error(i(161));
}
} catch (t) {
- hf(e, e.return, t);
+ gf(e, e.return, t);
}
e.flags &= -3;
}
t & 4096 && (e.flags &= -4097);
}
- function Ou(e) {
+ function ku(e) {
if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
var t = e;
- Ou(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, bh = !0, t.reset(), bh = !1), e = e.sibling;
+ ku(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, xh = !0, t.reset(), xh = !1), e = e.sibling;
}
}
- function ku(e, t) {
- if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Au(t, e), t = t.sibling;
- else Ql(t, !1);
- }
function Au(e, t) {
+ if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) ju(t, e), t = t.sibling;
+ else $l(t, !1);
+ }
+ function ju(e, t) {
var n = e.alternate;
- if (n === null) Wl(e, !1);
+ if (n === null) Gl(e, !1);
else switch (e.tag) {
case 3:
- if (cu = au = !1, Rl(), ku(t, e), !au && !su) {
- if (e = Ll, e !== null) for (var r = 0; r < e.length; r += 3) {
+ if (lu = ou = !1, zl(), Au(t, e), !ou && !cu) {
+ if (e = Rl, e !== null) for (var r = 0; r < e.length; r += 3) {
n = e[r];
var i = e[r + 1];
- Ap(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
+ jp(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
opacity: [0, 0],
pointerEvents: ["none", "none"]
}, {
@@ -5701,33 +5701,33 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
duration: 0,
fill: "forwards",
pseudoElement: "::view-transition"
- })), cu = !0;
+ })), lu = !0;
}
- Ll = null;
+ Rl = null;
break;
case 5:
- ku(t, e);
+ Au(t, e);
break;
case 4:
- r = au, au = !1, ku(t, e), au && (su = !0), au = r;
+ r = ou, ou = !1, Au(t, e), ou && (cu = !0), ou = r;
break;
case 22:
- e.memoizedState === null && (n.memoizedState === null ? ku(t, e) : Wl(e, !1));
+ e.memoizedState === null && (n.memoizedState === null ? Au(t, e) : Gl(e, !1));
break;
case 30:
- r = au, i = Rl(), au = !1, ku(t, e), au && (e.flags |= 4);
+ r = ou, i = zl(), ou = !1, Au(t, e), ou && (e.flags |= 4);
var a = e.memoizedProps, o = e.stateNode;
- t = hi(a, o), o = hi(n.memoizedProps, o);
- var s = _i(a.default, a.update);
- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, zl = 0, t = Zl(e, n, t, o, s, a, !0), zl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Pd(e, e.memoizedProps.onUpdate), Ll = i) : i !== null && (i.push.apply(i, Ll), Ll = i), au = e.flags & 32 ? !0 : r;
+ t = gi(a, o), o = gi(n.memoizedProps, o);
+ var s = vi(a.default, a.update);
+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Bl = 0, t = Ql(e, n, t, o, s, a, !0), Bl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Fd(e, e.memoizedProps.onUpdate), Rl = i) : i !== null && (i.push.apply(i, Rl), Rl = i), ou = e.flags & 32 ? !0 : r;
break;
- default: ku(t, e);
+ default: Au(t, e);
}
}
- function ju(e, t) {
- if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) du(e, t.alternate, t), t = t.sibling;
- }
function Mu(e, t) {
+ if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) fu(e, t.alternate, t), t = t.sibling;
+ }
+ function Nu(e, t) {
for (e = e.child; e !== null;) {
var n = e, r = t;
switch (n.tag) {
@@ -5735,218 +5735,218 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case 11:
case 14:
case 15:
- _l(4, n, n.return), Mu(n, r);
+ vl(4, n, n.return), Nu(n, r);
break;
case 1:
- xl(n, n.return);
+ Sl(n, n.return);
var i = n.stateNode;
- typeof i.componentWillUnmount == "function" && yl(n, n.return, i), Mu(n, r);
+ typeof i.componentWillUnmount == "function" && bl(n, n.return, i), Nu(n, r);
break;
- case 27: r & 2 && bm(n.stateNode, n.type, n.memoizedProps);
+ case 27: r & 2 && xm(n.stateNode, n.type, n.memoizedProps);
case 5:
- xl(n, n.return), n.tag !== 5 && n.tag !== 27 || wl(n), Mu(n, r);
+ Sl(n, n.return), n.tag !== 5 && n.tag !== 27 || Tl(n), Nu(n, r);
break;
case 6:
- wl(n);
+ Tl(n);
break;
case 26:
- xl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || eu || i.parentNode.removeChild(i), Mu(n, r);
+ Sl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || tu || i.parentNode.removeChild(i), Nu(n, r);
break;
case 22:
- n.memoizedState === null && Mu(n, r);
+ n.memoizedState === null && Nu(n, r);
break;
case 30:
- xl(n, n.return), Mu(n, r);
+ Sl(n, n.return), Nu(n, r);
break;
- case 7: xl(n, n.return);
- default: Mu(n, r);
+ case 7: Sl(n, n.return);
+ default: Nu(n, r);
}
e = e.sibling;
}
}
- function Nu(e, t, n) {
+ function Pu(e, t, n) {
for (n = t.subtreeFlags & 8772 ? n : n & -2, t = t.child; t !== null;) {
var r = t.alternate, i = e, a = t, o = a.flags, s = !!(n & 1);
switch (a.tag) {
case 0:
case 11:
case 15:
- Nu(i, a, n), gl(4, a);
+ Pu(i, a, n), _l(4, a);
break;
case 1:
- if (Nu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
+ if (Pu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
i.componentDidMount();
} catch (e) {
- hf(r, r.return, e);
+ gf(r, r.return, e);
}
if (r = a, i = r.updateQueue, i !== null) {
var c = r.stateNode;
try {
var l = i.shared.hiddenCallbacks;
- if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) ho(l[i], c);
+ if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) go(l[i], c);
} catch (e) {
- hf(r, r.return, e);
+ gf(r, r.return, e);
}
}
- s && o & 64 && vl(a), bl(a, a.return);
+ s && o & 64 && yl(a), xl(a, a.return);
break;
- case 27: n & 2 && Nl(a);
+ case 27: n & 2 && Pl(a);
case 5:
- a.tag !== 5 && a.tag !== 27 || Cl(a), Nu(i, a, n), s && r === null && o & 4 && Dl(a), bl(a, a.return);
+ a.tag !== 5 && a.tag !== 27 || wl(a), Pu(i, a, n), s && r === null && o & 4 && Ol(a), xl(a, a.return);
break;
case 6:
- Cl(a);
+ wl(a);
break;
case 26:
- c = a.stateNode, a.memoizedState !== null || c === null || $l || Xm(wm(c.ownerDocument), a.type, c), Nu(i, a, n), s && r === null && o & 4 && Dl(a), bl(a, a.return);
+ c = a.stateNode, a.memoizedState !== null || c === null || eu || Zm(Tm(c.ownerDocument), a.type, c), Pu(i, a, n), s && r === null && o & 4 && Ol(a), xl(a, a.return);
break;
case 12:
- Nu(i, a, n);
+ Pu(i, a, n);
break;
case 31:
- Nu(i, a, n), s && o & 4 && bu(i, a);
+ Pu(i, a, n), s && o & 4 && xu(i, a);
break;
case 13:
- Nu(i, a, n), s && o & 4 && xu(i, a);
+ Pu(i, a, n), s && o & 4 && Su(i, a);
break;
case 22:
- a.memoizedState === null && Nu(i, a, n), bl(a, a.return);
+ a.memoizedState === null && Pu(i, a, n), xl(a, a.return);
break;
case 30:
- Nu(i, a, n), bl(a, a.return);
+ Pu(i, a, n), xl(a, a.return);
break;
- case 7: bl(a, a.return);
- default: Nu(i, a, n);
+ case 7: xl(a, a.return);
+ default: Pu(i, a, n);
}
t = t.sibling;
}
}
- function Pu(e, t) {
+ function Fu(e, t) {
var n = null;
- e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && Ea(n));
+ e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && Da(n));
}
- function Fu(e, t) {
- e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Ea(e));
+ function Iu(e, t) {
+ e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Da(e));
}
- function Iu(e, t, n, r) {
+ function Lu(e, t, n, r) {
var i = (n & 335544064) === n;
- if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Lu(e, t, n, r), t = t.sibling;
- else i && Xl(t);
+ if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Ru(e, t, n, r), t = t.sibling;
+ else i && Zl(t);
}
- function Lu(e, t, n, r) {
+ function Ru(e, t, n, r) {
var i = (n & 335544064) === n;
- i && t.alternate === null && t.return !== null && t.return.alternate !== null && Yl(t);
+ i && t.alternate === null && t.return !== null && t.return.alternate !== null && Xl(t);
var a = t.flags;
switch (t.tag) {
case 0:
case 11:
case 15:
- Iu(e, t, n, r), a & 2048 && gl(9, t);
+ Lu(e, t, n, r), a & 2048 && _l(9, t);
break;
case 1:
- Iu(e, t, n, r);
+ Lu(e, t, n, r);
break;
case 3:
- Iu(e, t, n, r), i && cu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && Ea(a)));
+ Lu(e, t, n, r), i && lu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && Da(a)));
break;
case 12:
if (a & 2048) {
- Iu(e, t, n, r), a = t.stateNode;
+ Lu(e, t, n, r), a = t.stateNode;
try {
var o = t.memoizedProps, s = o.id, c = o.onPostCommit;
typeof c == "function" && c(s, t.alternate === null ? "mount" : "update", a.passiveEffectDuration, -0);
} catch (e) {
- hf(t, t.return, e);
+ gf(t, t.return, e);
}
- } else Iu(e, t, n, r);
+ } else Lu(e, t, n, r);
break;
case 31:
- Iu(e, t, n, r);
+ Lu(e, t, n, r);
break;
case 13:
- Iu(e, t, n, r);
+ Lu(e, t, n, r);
break;
case 23: break;
case 22:
- o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && Yl(t), o._visibility & 2 ? Iu(e, t, n, r) : (o._visibility |= 2, Ru(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && Yl(s), o._visibility & 2 ? Iu(e, t, n, r) : zu(e, t)), a & 2048 && Pu(s, t);
+ o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && Xl(t), o._visibility & 2 ? Lu(e, t, n, r) : (o._visibility |= 2, zu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && Xl(s), o._visibility & 2 ? Lu(e, t, n, r) : Bu(e, t)), a & 2048 && Fu(s, t);
break;
case 24:
- Iu(e, t, n, r), a & 2048 && Fu(t.alternate, t);
+ Lu(e, t, n, r), a & 2048 && Iu(t.alternate, t);
break;
case 30:
- i && (a = t.alternate, a !== null && (Hl(a.child, !0), Hl(t.child, !0))), Iu(e, t, n, r);
+ i && (a = t.alternate, a !== null && (Ul(a.child, !0), Ul(t.child, !0))), Lu(e, t, n, r);
break;
- default: Iu(e, t, n, r);
+ default: Lu(e, t, n, r);
}
}
- function Ru(e, t, n, r, i) {
+ function zu(e, t, n, r, i) {
for (i &&= !!(t.subtreeFlags & 10256) || !1, t = t.child; t !== null;) {
var a = e, o = t, s = n, c = r, l = o.flags;
switch (o.tag) {
case 0:
case 11:
case 15:
- Ru(a, o, s, c, i), gl(8, o);
+ zu(a, o, s, c, i), _l(8, o);
break;
case 23: break;
case 22:
var u = o.stateNode;
- o.memoizedState === null ? (u._visibility |= 2, Ru(a, o, s, c, i)) : u._visibility & 2 ? Ru(a, o, s, c, i) : zu(a, o), i && l & 2048 && Pu(o.alternate, o);
+ o.memoizedState === null ? (u._visibility |= 2, zu(a, o, s, c, i)) : u._visibility & 2 ? zu(a, o, s, c, i) : Bu(a, o), i && l & 2048 && Fu(o.alternate, o);
break;
case 24:
- Ru(a, o, s, c, i), i && l & 2048 && Fu(o.alternate, o);
+ zu(a, o, s, c, i), i && l & 2048 && Iu(o.alternate, o);
break;
- default: Ru(a, o, s, c, i);
+ default: zu(a, o, s, c, i);
}
t = t.sibling;
}
}
- function zu(e, t) {
+ function Bu(e, t) {
if (t.subtreeFlags & 10256) for (t = t.child; t !== null;) {
var n = e, r = t, i = r.flags;
switch (r.tag) {
case 22:
- zu(n, r), i & 2048 && Pu(r.alternate, r);
+ Bu(n, r), i & 2048 && Fu(r.alternate, r);
break;
case 24:
- zu(n, r), i & 2048 && Fu(r.alternate, r);
+ Bu(n, r), i & 2048 && Iu(r.alternate, r);
break;
- default: zu(n, r);
+ default: Bu(n, r);
}
t = t.sibling;
}
}
- var Bu = 8192;
- function Vu(e, t, n) {
- if (e.subtreeFlags & Bu) for (e = e.child; e !== null;) Hu(e, t, n), e = e.sibling;
- }
+ var Vu = 8192;
function Hu(e, t, n) {
+ if (e.subtreeFlags & Vu) for (e = e.child; e !== null;) Uu(e, t, n), e = e.sibling;
+ }
+ function Uu(e, t, n) {
switch (e.tag) {
case 26:
- Vu(e, t, n), e.flags & Bu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && th(n, e)) : nh(n, Tu, e.memoizedState, e.memoizedProps));
+ Hu(e, t, n), e.flags & Vu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && nh(n, e)) : rh(n, Eu, e.memoizedState, e.memoizedProps));
break;
case 5:
- Vu(e, t, n), e.flags & Bu && (e = e.stateNode, (t & 335544128) === t && th(n, e));
+ Hu(e, t, n), e.flags & Vu && (e = e.stateNode, (t & 335544128) === t && nh(n, e));
break;
case 3:
case 4:
- var r = Tu;
- Tu = wm(e.stateNode.containerInfo), Vu(e, t, n), Tu = r;
+ var r = Eu;
+ Eu = Tm(e.stateNode.containerInfo), Hu(e, t, n), Eu = r;
break;
case 22:
- e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Bu, Bu = 16777216, Vu(e, t, n), Bu = r) : Vu(e, t, n));
+ e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Vu, Vu = 16777216, Hu(e, t, n), Vu = r) : Hu(e, t, n));
break;
case 30:
- if ((e.flags & Bu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
+ if ((e.flags & Vu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
var i = e.stateNode;
- i.paired = null, Fl === null && (Fl = /* @__PURE__ */ new Map()), Fl.set(r, i);
+ i.paired = null, Il === null && (Il = /* @__PURE__ */ new Map()), Il.set(r, i);
}
- Vu(e, t, n);
+ Hu(e, t, n);
break;
- default: Vu(e, t, n);
+ default: Hu(e, t, n);
}
}
- function Uu(e) {
+ function Wu(e) {
var t = e.alternate;
if (t !== null && (e = t.child, e !== null)) {
t.child = null;
@@ -5955,69 +5955,69 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
while (e !== null);
}
}
- function Wu(e) {
+ function Gu(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- iu = r, qu(r, e);
+ au = r, Ju(r, e);
}
- Uu(e);
+ Wu(e);
}
- if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Gu(e), e = e.sibling;
+ if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Ku(e), e = e.sibling;
}
- function Gu(e) {
+ function Ku(e) {
switch (e.tag) {
case 0:
case 11:
case 15:
- Wu(e), e.flags & 2048 && _l(9, e, e.return);
+ Gu(e), e.flags & 2048 && vl(9, e, e.return);
break;
case 3:
- Wu(e);
+ Gu(e);
break;
case 12:
- Wu(e);
+ Gu(e);
break;
case 22:
var t = e.stateNode;
- e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Ku(e)) : Wu(e);
+ e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, qu(e)) : Gu(e);
break;
- default: Wu(e);
+ default: Gu(e);
}
}
- function Ku(e) {
+ function qu(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- iu = r, qu(r, e);
+ au = r, Ju(r, e);
}
- Uu(e);
+ Wu(e);
}
for (e = e.child; e !== null;) {
switch (t = e, t.tag) {
case 0:
case 11:
case 15:
- _l(8, t, t.return), Ku(t);
+ vl(8, t, t.return), qu(t);
break;
case 22:
- n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Ku(t));
+ n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, qu(t));
break;
- default: Ku(t);
+ default: qu(t);
}
e = e.sibling;
}
}
- function qu(e, t) {
- for (; iu !== null;) {
- var n = iu;
+ function Ju(e, t) {
+ for (; au !== null;) {
+ var n = au;
switch (n.tag) {
case 0:
case 11:
case 15:
- _l(8, n, t);
+ vl(8, n, t);
break;
case 23:
case 22:
@@ -6026,64 +6026,64 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
r != null && r.refCount++;
}
break;
- case 24: Ea(n.memoizedState.cache);
+ case 24: Da(n.memoizedState.cache);
}
- if (r = n.child, r !== null) r.return = n, iu = r;
- else a: for (n = e; iu !== null;) {
- r = iu;
+ if (r = n.child, r !== null) r.return = n, au = r;
+ else a: for (n = e; au !== null;) {
+ r = au;
var i = r.sibling, a = r.return;
- if (hu(r), r === n) {
- iu = null;
+ if (gu(r), r === n) {
+ au = null;
break a;
}
if (i !== null) {
- i.return = a, iu = i;
+ i.return = a, au = i;
break a;
}
- iu = a;
+ au = a;
}
}
}
- var Ju = {
+ var Yu = {
getCacheForType: function(e) {
- var t = va(wa), n = t.data.get(e);
+ var t = ya(Ta), n = t.data.get(e);
return n === void 0 && (n = e(), t.data.set(e, n)), n;
},
cacheSignal: function() {
- return va(wa).controller.signal;
+ return ya(Ta).controller.signal;
}
- }, Yu = typeof WeakMap == "function" ? WeakMap : Map, Xu = 0, Zu = null, Qu = null, $u = 0, ed = 0, td = null, nd = !1, rd = !1, id = !1, ad = 0, od = 0, sd = 0, cd = 0, ld = 0, ud = 0, dd = 0, fd = null, pd = null, md = !1, hd = 0, gd = 0, _d = Infinity, vd = null, yd = null, bd = 0, xd = null, Sd = null, Cd = 0, wd = 0, Td = null, Ed = null, Dd = null, Od = null, kd = null, Ad = 0, jd = null;
- function Md() {
- return Xu & 2 && $u !== 0 ? $u & -$u : L.T === null ? yt() : If();
- }
+ }, Xu = typeof WeakMap == "function" ? WeakMap : Map, Zu = 0, Qu = null, $u = null, ed = 0, td = 0, nd = null, rd = !1, id = !1, ad = !1, od = 0, sd = 0, cd = 0, ld = 0, ud = 0, dd = 0, fd = 0, pd = null, md = null, hd = !1, gd = 0, _d = 0, vd = Infinity, yd = null, bd = null, xd = 0, Sd = null, Cd = null, wd = 0, Td = 0, Ed = null, Dd = null, Od = null, kd = null, Ad = null, jd = 0, Md = null;
function Nd() {
- if (ud === 0) {
- if (!($u & 536870912) || $i) {
- var e = rt;
- rt <<= 1, !(rt & 3932160) && (rt = 262144), ud = e;
- } else ud = 536870912;
+ return Zu & 2 && ed !== 0 ? ed & -ed : I.T === null ? bt() : Lf();
+ }
+ function Pd() {
+ if (dd === 0) {
+ if (!(ed & 536870912) || ea) {
+ var e = it;
+ it <<= 1, !(it & 3932160) && (it = 262144), dd = e;
+ } else dd = 536870912;
}
- return e = So.current, e !== null && (e.flags |= 32), ud;
+ return e = Co.current, e !== null && (e.flags |= 32), dd;
}
- function Pd(e, t) {
+ function Fd(e, t) {
if (t != null) {
var n = e.stateNode, r = n.ref;
- r === null && (r = n.ref = Rp(hi(e.memoizedProps, n))), Od === null && (Od = []), Od.push(t.bind(null, r));
+ r === null && (r = n.ref = zp(gi(e.memoizedProps, n))), kd === null && (kd = []), kd.push(t.bind(null, r));
}
}
- function Fd(e, t, n) {
- (e === Zu && (ed === 2 || ed === 9) || e.cancelPendingCommit !== null) && (Hd(e, 0), zd(e, $u, ud, !1)), ft(e, n), (!(Xu & 2) || e !== Zu) && (e === Zu && (!(Xu & 2) && (cd |= n), od === 4 && zd(e, $u, ud, !1)), Of(e));
- }
function Id(e, t, n) {
- if (Xu & 6) throw Error(i(327));
- var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || st(e, t), a = r ? Xd(e, t) : Jd(e, t, !0), o = r;
+ (e === Qu && (td === 2 || td === 9) || e.cancelPendingCommit !== null) && (Ud(e, 0), Bd(e, ed, dd, !1)), pt(e, n), (!(Zu & 2) || e !== Qu) && (e === Qu && (!(Zu & 2) && (ld |= n), sd === 4 && Bd(e, ed, dd, !1)), kf(e));
+ }
+ function Ld(e, t, n) {
+ if (Zu & 6) throw Error(i(327));
+ var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || ct(e, t), a = r ? Zd(e, t) : Yd(e, t, !0), o = r;
do {
if (a === 0) {
- rd && !r && zd(e, t, 0, !1);
+ id && !r && Bd(e, t, 0, !1);
break;
}
- if (n = e.current.alternate, o && !Rd(n)) {
- a = Jd(e, t, !1), o = !1;
+ if (n = e.current.alternate, o && !zd(n)) {
+ a = Yd(e, t, !1), o = !1;
continue;
}
if (a === 2) {
@@ -6093,14 +6093,14 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
t = s;
a: {
var c = e;
- a = fd;
+ a = pd;
var l = c.current.memoizedState.isDehydrated;
- if (l && (Hd(c, s).flags |= 256), s = Jd(c, s, !1), s !== 2 && s !== 6) {
- if (id && !l) {
- c.errorRecoveryDisabledLanes |= o, cd |= o, a = 4;
+ if (l && (Ud(c, s).flags |= 256), s = Yd(c, s, !1), s !== 2 && s !== 6) {
+ if (ad && !l) {
+ c.errorRecoveryDisabledLanes |= o, ld |= o, a = 4;
break a;
}
- o = pd, pd = a, o !== null && (pd === null ? pd = o : pd.push.apply(pd, o));
+ o = md, md = a, o !== null && (md === null ? md = o : md.push.apply(md, o));
}
a = s;
}
@@ -6108,7 +6108,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
}
if (a === 1) {
- Hd(e, 0), zd(e, t, 0, !0);
+ Ud(e, 0), Bd(e, t, 0, !0);
break;
}
a: {
@@ -6117,27 +6117,27 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case 1: throw Error(i(345));
case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;
case 6:
- zd(r, t, ud, !nd);
+ Bd(r, t, dd, !rd);
break a;
case 2:
- pd = null;
+ md = null;
break;
case 3:
case 5: break;
default: throw Error(i(329));
}
- if ((t & 62914560) === t && (a = hd + 300 - R(), 10 < a)) {
- if (zd(r, t, ud, !nd), ot(r, 0, !0) !== 0) break a;
- Cd = t, r.timeoutHandle = bp(Ld.bind(null, r, n, pd, vd, md, t, ud, cd, dd, nd, o, "Throttled", -0, 0), a);
+ if ((t & 62914560) === t && (a = gd + 300 - L(), 10 < a)) {
+ if (Bd(r, t, dd, !rd), st(r, 0, !0) !== 0) break a;
+ wd = t, r.timeoutHandle = xp(Rd.bind(null, r, n, md, yd, hd, t, dd, ld, fd, rd, o, "Throttled", -0, 0), a);
break a;
}
- Ld(r, n, pd, vd, md, t, ud, cd, dd, nd, o, null, -0, 0);
+ Rd(r, n, md, yd, hd, t, dd, ld, fd, rd, o, null, -0, 0);
}
break;
} while (1);
- Of(e);
+ kf(e);
}
- function Ld(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
+ function Rd(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
e.timeoutHandle = -1;
var m = t.subtreeFlags, h = (a & 335544064) === a;
if (d = null, (h || m & 8192 || (m & 16785408) == 16785408) && (d = {
@@ -6148,21 +6148,21 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
suspenseyImages: [],
waitingForImages: !0,
waitingForViewTransition: !1,
- unsuspend: vn
- }, Fl = null, Hu(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = oh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? hd - R() : (a & 4194048) === a ? gd - R() : 0, m = ih(d, m), m !== null)) {
- Cd = a, e.cancelPendingCommit = m(rf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), zd(e, a, o, !l);
+ unsuspend: yn
+ }, Il = null, Uu(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = sh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? gd - L() : (a & 4194048) === a ? _d - L() : 0, m = ah(d, m), m !== null)) {
+ wd = a, e.cancelPendingCommit = m(af.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Bd(e, a, o, !l);
return;
}
- rf(e, t, a, n, r, i, o, s, c, l, u, d);
+ af(e, t, a, n, r, i, o, s, c, l, u, d);
}
- function Rd(e) {
+ function zd(e) {
for (var t = e;;) {
var n = t.tag;
if ((n === 0 || n === 11 || n === 15) && t.flags & 16384 && (n = t.updateQueue, n !== null && (n = n.stores, n !== null))) for (var r = 0; r < n.length; r++) {
var i = n[r], a = i.getSnapshot;
i = i.value;
try {
- if (!Vr(a(), i)) return !1;
+ if (!Hr(a(), i)) return !1;
} catch {
return !1;
}
@@ -6179,281 +6179,281 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
return !0;
}
- function zd(e, t, n, r) {
- t = ct(e, t), t &= ~ld, t &= ~cd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
+ function Bd(e, t, n, r) {
+ t = lt(e, t), t &= ~ud, t &= ~ld, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
for (var i = t; 0 < i;) {
- var a = 31 - Qe(i), o = 1 << a;
+ var a = 31 - $e(i), o = 1 << a;
r[a] = -1, i &= ~o;
}
- n !== 0 && mt(e, n, t);
- }
- function Bd() {
- return Xu & 6 ? !0 : (kf(0, !1), !1);
+ n !== 0 && ht(e, n, t);
}
function Vd() {
- if (Qu !== null) {
- if (ed === 0) var e = Qu.return;
- else e = Qu, ua = la = null, Qo(e), Za = null, Qa = 0, e = Qu;
- for (; e !== null;) hl(e.alternate, e), e = e.return;
- Qu = null;
- }
+ return Zu & 6 ? !0 : (Af(0, !1), !1);
}
- function Hd(e, t) {
- var n = e.timeoutHandle;
- return n !== -1 && (e.timeoutHandle = -1, xp(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Cd = 0, Vd(), Zu = e, Qu = n = Mi(e.current, null), $u = t, ed = 0, td = null, nd = !1, rd = st(e, t), id = !1, dd = ud = ld = cd = sd = od = 0, pd = fd = null, md = !1, ad = ct(e, t), Si(), n;
+ function Hd() {
+ if ($u !== null) {
+ if (td === 0) var e = $u.return;
+ else e = $u, da = ua = null, $o(e), Qa = null, $a = 0, e = $u;
+ for (; e !== null;) gl(e.alternate, e), e = e.return;
+ $u = null;
+ }
}
function Ud(e, t) {
- Po = null, L.H = cc, t === Va || t === Ua ? (t = Ya(), ed = 3) : t === Ha ? (t = Ya(), ed = 4) : ed = t === Ec ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, td = t, Qu === null && (od = 1, bc(e, Bi(t, e.current)));
+ var n = e.timeoutHandle;
+ return n !== -1 && (e.timeoutHandle = -1, Sp(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), wd = 0, Hd(), Qu = e, $u = n = Ni(e.current, null), ed = t, td = 0, nd = null, rd = !1, id = ct(e, t), ad = !1, fd = dd = ud = ld = cd = sd = 0, md = pd = null, hd = !1, od = lt(e, t), Ci(), n;
}
- function Wd() {
- var e = So.current;
- return e === null ? !0 : ($u & 4194048) === $u ? Co === null : ($u & 62914560) === $u || $u & 536870912 ? e === Co : !1;
+ function Wd(e, t) {
+ Fo = null, I.H = lc, t === Ha || t === Wa ? (t = Xa(), td = 3) : t === Ua ? (t = Xa(), td = 4) : td = t === Dc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, nd = t, $u === null && (sd = 1, xc(e, Vi(t, e.current)));
}
function Gd() {
- var e = L.H;
- return L.H = cc, e === null ? cc : e;
+ var e = Co.current;
+ return e === null ? !0 : (ed & 4194048) === ed ? wo === null : (ed & 62914560) === ed || ed & 536870912 ? e === wo : !1;
}
function Kd() {
- var e = L.A;
- return L.A = Ju, e;
+ var e = I.H;
+ return I.H = lc, e === null ? lc : e;
}
function qd() {
- od = 4, nd || ($u & 4194048) !== $u && So.current !== null || (rd = !0), !(sd & 134217727) && !(cd & 134217727) || Zu === null || zd(Zu, $u, ud, !1);
- }
- function Jd(e, t, n) {
- var r = Xu;
- Xu |= 2;
- var i = Gd(), a = Kd();
- (Zu !== e || $u !== t) && (vd = null, Hd(e, t)), t = !1;
- var o = od;
+ var e = I.A;
+ return I.A = Yu, e;
+ }
+ function Jd() {
+ sd = 4, rd || (ed & 4194048) !== ed && Co.current !== null || (id = !0), !(cd & 134217727) && !(ld & 134217727) || Qu === null || Bd(Qu, ed, dd, !1);
+ }
+ function Yd(e, t, n) {
+ var r = Zu;
+ Zu |= 2;
+ var i = Kd(), a = qd();
+ (Qu !== e || ed !== t) && (yd = null, Ud(e, t)), t = !1;
+ var o = sd;
a: do
try {
- if (ed !== 0 && Qu !== null) {
- var s = Qu, c = td;
- switch (ed) {
+ if (td !== 0 && $u !== null) {
+ var s = $u, c = nd;
+ switch (td) {
case 8:
- Vd(), o = 6;
+ Hd(), o = 6;
break a;
case 3:
case 2:
case 9:
case 6:
- So.current === null && (t = !0);
- var l = ed;
- if (ed = 0, td = null, ef(e, s, c, l), n && rd) {
+ Co.current === null && (t = !0);
+ var l = td;
+ if (td = 0, nd = null, tf(e, s, c, l), n && id) {
o = 0;
break a;
}
break;
- default: l = ed, ed = 0, td = null, ef(e, s, c, l);
+ default: l = td, td = 0, nd = null, tf(e, s, c, l);
}
}
- Yd(), o = od;
+ Xd(), o = sd;
break;
} catch (t) {
- Ud(e, t);
+ Wd(e, t);
}
while (1);
- return t && e.shellSuspendCounter++, ua = la = null, Xu = r, L.H = i, L.A = a, Qu === null && (Zu = null, $u = 0, Si()), o;
+ return t && e.shellSuspendCounter++, da = ua = null, Zu = r, I.H = i, I.A = a, $u === null && (Qu = null, ed = 0, Ci()), o;
}
- function Yd() {
- for (; Qu !== null;) Qd(Qu);
+ function Xd() {
+ for (; $u !== null;) $d($u);
}
- function Xd(e, t) {
- var n = Xu;
- Xu |= 2;
- var r = Gd(), a = Kd();
- Zu !== e || $u !== t ? (vd = null, _d = R() + 500, Hd(e, t)) : rd = st(e, t);
+ function Zd(e, t) {
+ var n = Zu;
+ Zu |= 2;
+ var r = Kd(), a = qd();
+ Qu !== e || ed !== t ? (yd = null, vd = L() + 500, Ud(e, t)) : id = ct(e, t);
a: do
try {
- if (ed !== 0 && Qu !== null) {
- t = Qu;
- var o = td;
- b: switch (ed) {
+ if (td !== 0 && $u !== null) {
+ t = $u;
+ var o = nd;
+ b: switch (td) {
case 1:
- ed = 0, td = null, ef(e, t, o, 1);
+ td = 0, nd = null, tf(e, t, o, 1);
break;
case 2:
case 9:
- if (Ga(o)) {
- ed = 0, td = null, $d(t);
+ if (Ka(o)) {
+ td = 0, nd = null, ef(t);
break;
}
t = function() {
- ed !== 2 && ed !== 9 || Zu !== e || (ed = 7), Of(e);
+ td !== 2 && td !== 9 || Qu !== e || (td = 7), kf(e);
}, o.then(t, t);
break a;
case 3:
- ed = 7;
+ td = 7;
break a;
case 4:
- ed = 5;
+ td = 5;
break a;
case 7:
- Ga(o) ? (ed = 0, td = null, $d(t)) : (ed = 0, td = null, ef(e, t, o, 7));
+ Ka(o) ? (td = 0, nd = null, ef(t)) : (td = 0, nd = null, tf(e, t, o, 7));
break;
case 5:
var s = null;
- switch (Qu.tag) {
- case 26: s = Qu.memoizedState;
+ switch ($u.tag) {
+ case 26: s = $u.memoizedState;
case 5:
case 27:
- var c = Qu;
- if (s ? $m(s) : c.stateNode.complete) {
- ed = 0, td = null;
+ var c = $u;
+ if (s ? eh(s) : c.stateNode.complete) {
+ td = 0, nd = null;
var l = c.sibling;
- if (l !== null) Qu = l;
+ if (l !== null) $u = l;
else {
var u = c.return;
- u === null ? Qu = null : (Qu = u, tf(u));
+ u === null ? $u = null : ($u = u, nf(u));
}
break b;
}
}
- ed = 0, td = null, ef(e, t, o, 5);
+ td = 0, nd = null, tf(e, t, o, 5);
break;
case 6:
- ed = 0, td = null, ef(e, t, o, 6);
+ td = 0, nd = null, tf(e, t, o, 6);
break;
case 8:
- Vd(), od = 6;
+ Hd(), sd = 6;
break a;
default: throw Error(i(462));
}
}
- Zd();
+ Qd();
break;
} catch (t) {
- Ud(e, t);
+ Wd(e, t);
}
while (1);
- return ua = la = null, L.H = r, L.A = a, Xu = n, Qu === null ? (Zu = null, $u = 0, Si(), od) : 0;
- }
- function Zd() {
- for (; Qu !== null && !ze();) Qd(Qu);
+ return da = ua = null, I.H = r, I.A = a, Zu = n, $u === null ? (Qu = null, ed = 0, Ci(), sd) : 0;
}
- function Qd(e) {
- var t = ol(e.alternate, e, ad);
- e.memoizedProps = e.pendingProps, t === null ? tf(e) : Qu = t;
+ function Qd() {
+ for (; $u !== null && !Be();) $d($u);
}
function $d(e) {
+ var t = sl(e.alternate, e, od);
+ e.memoizedProps = e.pendingProps, t === null ? nf(e) : $u = t;
+ }
+ function ef(e) {
var t = e, n = t.alternate;
switch (t.tag) {
case 15:
case 0:
- t = Bc(n, t, t.pendingProps, t.type, void 0, $u);
+ t = Vc(n, t, t.pendingProps, t.type, void 0, ed);
break;
case 11:
- t = Bc(n, t, t.pendingProps, t.type.render, t.ref, $u);
+ t = Vc(n, t, t.pendingProps, t.type.render, t.ref, ed);
break;
case 5:
- Qo(t);
+ $o(t);
var r = t;
- r === Zi && ($i ? (ia(r), r.tag === 5 && r.stateNode != null && (Qi = r.stateNode)) : (ia(r), $i = !0));
- default: hl(n, t), t = Qu = Ni(t, ad), t = ol(n, t, ad);
+ r === Qi && (ea ? (aa(r), r.tag === 5 && r.stateNode != null && ($i = r.stateNode)) : (aa(r), ea = !0));
+ default: gl(n, t), t = $u = Pi(t, od), t = sl(n, t, od);
}
- e.memoizedProps = e.pendingProps, t === null ? tf(e) : Qu = t;
+ e.memoizedProps = e.pendingProps, t === null ? nf(e) : $u = t;
}
- function ef(e, t, n, r) {
- ua = la = null, Qo(t), Za = null, Qa = 0;
+ function tf(e, t, n, r) {
+ da = ua = null, $o(t), Qa = null, $a = 0;
var i = t.return;
try {
- if (Tc(e, i, t, n, $u)) {
- od = 1, bc(e, Bi(n, e.current)), Qu = null;
+ if (Ec(e, i, t, n, ed)) {
+ sd = 1, xc(e, Vi(n, e.current)), $u = null;
return;
}
} catch (t) {
- if (i !== null) throw Qu = i, t;
- od = 1, bc(e, Bi(n, e.current)), Qu = null;
+ if (i !== null) throw $u = i, t;
+ sd = 1, xc(e, Vi(n, e.current)), $u = null;
return;
}
- t.flags & 32768 ? ($i || r === 1 ? e = !0 : rd || $u & 536870912 ? e = !1 : (nd = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = So.current, r !== null && r.tag === 13 && (r.flags |= 16384))), nf(t, e)) : tf(t);
+ t.flags & 32768 ? (ea || r === 1 ? e = !0 : id || ed & 536870912 ? e = !1 : (rd = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Co.current, r !== null && r.tag === 13 && (r.flags |= 16384))), rf(t, e)) : nf(t);
}
- function tf(e) {
+ function nf(e) {
var t = e;
do {
if (t.flags & 32768) {
- nf(t, nd);
+ rf(t, rd);
return;
}
e = t.return;
- var n = pl(t.alternate, t, ad);
+ var n = ml(t.alternate, t, od);
if (n !== null) {
- Qu = n;
+ $u = n;
return;
}
if (t = t.sibling, t !== null) {
- Qu = t;
+ $u = t;
return;
}
- Qu = t = e;
+ $u = t = e;
} while (t !== null);
- od === 0 && (od = 5);
+ sd === 0 && (sd = 5);
}
- function nf(e, t) {
+ function rf(e, t) {
do {
- var n = ml(e.alternate, e);
+ var n = hl(e.alternate, e);
if (n !== null) {
- n.flags &= 32767, Qu = n;
+ n.flags &= 32767, $u = n;
return;
}
if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {
- Qu = e;
+ $u = e;
return;
}
- Qu = e = n;
+ $u = e = n;
} while (e !== null);
- od = 6, Qu = null;
+ sd = 6, $u = null;
}
- function rf(e, t, n, r, a, o, s, c, l, u, d, f) {
+ function af(e, t, n, r, a, o, s, c, l, u, d, f) {
e.cancelPendingCommit = null;
do
- ff();
- while (bd !== 0);
- if (Xu & 6) throw Error(i(327));
+ pf();
+ while (xd !== 0);
+ if (Zu & 6) throw Error(i(327));
if (t !== null) {
if (t === e.current) throw Error(i(177));
- e === Zu && (Qu = Zu = null, $u = 0), Sd = t, xd = e, Cd = n, Td = a, Ed = r, af(e, t, n, s, c, l, f);
+ e === Qu && ($u = Qu = null, ed = 0), Cd = t, Sd = e, wd = n, Ed = a, Dd = r, of(e, t, n, s, c, l, f);
}
}
- function af(e, t, n, r, i, a, o) {
+ function of(e, t, n, r, i, a, o) {
var s = t.lanes | t.childLanes;
- if (wd = s, s |= xi, pt(e, n, s, r, i, a), Od = null, (n & 335544064) === n ? (kd = ka(e), r = 10262) : (kd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, xf(We, function() {
- return pf(), null;
- })) : (e.callbackNode = null, e.callbackPriority = 0), Pl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
- r = L.T, L.T = null, i = de.p, de.p = 2, a = Xu, Xu |= 4;
+ if (Td = s, s |= Si, mt(e, n, s, r, i, a), kd = null, (n & 335544064) === n ? (Ad = Aa(e), r = 10262) : (Ad = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, Sf(Ge, function() {
+ return mf(), null;
+ })) : (e.callbackNode = null, e.callbackPriority = 0), Fl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
+ r = I.T, I.T = null, i = fe.p, fe.p = 2, a = Zu, Zu |= 4;
try {
- lu(e, t, n);
+ uu(e, t, n);
} finally {
- Xu = a, de.p = i, L.T = r;
+ Zu = a, fe.p = i, I.T = r;
}
}
- bd = 1, Pl ? Dd = Ip(o, e.containerInfo, kd, cf, lf, sf, uf, pf, of, null, null) : (cf(), lf(), uf());
+ xd = 1, Fl ? Od = Lp(o, e.containerInfo, Ad, lf, uf, cf, df, mf, sf, null, null) : (lf(), uf(), df());
}
- function of(e) {
- if (bd !== 0) {
- var t = xd.onRecoverableError;
+ function sf(e) {
+ if (xd !== 0) {
+ var t = Sd.onRecoverableError;
t(e, { componentStack: null });
}
}
- function sf() {
- bd === 3 && (bd = 0, Au(Sd, xd), bd = 4);
- }
function cf() {
- if (bd === 1) {
- bd = 0;
- var e = xd, t = Sd, n = Cd, r = !!(t.flags & 13878);
+ xd === 3 && (xd = 0, ju(Cd, Sd), xd = 4);
+ }
+ function lf() {
+ if (xd === 1) {
+ xd = 0;
+ var e = Sd, t = Cd, n = wd, r = !!(t.flags & 13878);
if (t.subtreeFlags & 13878 || r) {
- r = L.T, L.T = null;
- var i = de.p;
- de.p = 2;
- var a = Xu;
- Xu |= 4;
+ r = I.T, I.T = null;
+ var i = fe.p;
+ fe.p = 2;
+ var a = Zu;
+ Zu |= 4;
try {
- ou = su = !1, Eu(t, e, n), n = fp;
- var o = qr(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
- if (o !== s && s && s.ownerDocument && Kr(s.ownerDocument.documentElement, s)) {
- if (c !== null && Jr(s)) {
+ su = cu = !1, Du(t, e, n), n = pp;
+ var o = Jr(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
+ if (o !== s && s && s.ownerDocument && qr(s.ownerDocument.documentElement, s)) {
+ if (c !== null && Yr(s)) {
var l = c.start, u = c.end;
if (u === void 0 && (u = l), "selectionStart" in s) s.selectionStart = l, s.selectionEnd = Math.min(u, s.value.length);
else {
@@ -6461,7 +6461,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
if (f.getSelection) {
var p = f.getSelection(), m = s.textContent.length, h = Math.min(c.start, m), g = c.end === void 0 ? h : Math.min(c.end, m);
!p.extend && h > g && (o = g, g = h, h = o);
- var _ = Gr(s, h), v = Gr(s, g);
+ var _ = Kr(s, h), v = Kr(s, g);
if (_ && v && (p.rangeCount !== 1 || p.anchorNode !== _.node || p.anchorOffset !== _.offset || p.focusNode !== v.node || p.focusOffset !== v.offset)) {
var y = d.createRange();
y.setStart(_.node, _.offset), p.removeAllRanges(), h > g ? (p.addRange(y), p.extend(v.node, v.offset)) : (y.setEnd(v.node, v.offset), p.addRange(y));
@@ -6479,122 +6479,122 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
b.element.scrollLeft = b.left, b.element.scrollTop = b.top;
}
}
- bh = !!dp, fp = dp = null;
+ xh = !!fp, pp = fp = null;
} finally {
- Xu = a, de.p = i, L.T = r;
+ Zu = a, fe.p = i, I.T = r;
}
}
- e.current = t, bd = 2;
+ e.current = t, xd = 2;
}
}
- function lf() {
- if (bd === 2) {
- bd = 0;
- var e = xd, t = Sd, n = !!(t.flags & 8772);
+ function uf() {
+ if (xd === 2) {
+ xd = 0;
+ var e = Sd, t = Cd, n = !!(t.flags & 8772);
if (t.subtreeFlags & 8772 || n) {
- n = L.T, L.T = null;
- var r = de.p;
- de.p = 2;
- var i = Xu;
- Xu |= 4;
+ n = I.T, I.T = null;
+ var r = fe.p;
+ fe.p = 2;
+ var i = Zu;
+ Zu |= 4;
try {
- du(e, t.alternate, t);
+ fu(e, t.alternate, t);
} finally {
- Xu = i, de.p = r, L.T = n;
+ Zu = i, fe.p = r, I.T = n;
}
}
- bd = 3;
+ xd = 3;
}
}
- function uf() {
- if (bd === 4 || bd === 3) {
- bd = 0;
- var e = Dd;
- Dd = null, Be();
- var t = xd, n = Sd, r = Cd, i = Ed, a = (r & 335544064) === r ? 10262 : 10256;
- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? bd = 5 : (bd = 0, Sd = xd = null, df(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (yd = null), vt(r), n = n.stateNode, Xe && typeof Xe.onCommitFiberRoot == "function") try {
- Xe.onCommitFiberRoot(Ye, n, void 0, (n.current.flags & 128) == 128);
+ function df() {
+ if (xd === 4 || xd === 3) {
+ xd = 0;
+ var e = Od;
+ Od = null, Ve();
+ var t = Sd, n = Cd, r = wd, i = Dd, a = (r & 335544064) === r ? 10262 : 10256;
+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? xd = 5 : (xd = 0, Cd = Sd = null, ff(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (bd = null), yt(r), n = n.stateNode, Ze && typeof Ze.onCommitFiberRoot == "function") try {
+ Ze.onCommitFiberRoot(Xe, n, void 0, (n.current.flags & 128) == 128);
} catch {}
if (i !== null) {
- n = L.T, a = de.p, de.p = 2, L.T = null;
+ n = I.T, a = fe.p, fe.p = 2, I.T = null;
try {
for (var o = t.onRecoverableError, s = 0; s < i.length; s++) {
var c = i[s];
o(c.value, { componentStack: c.stack });
}
} finally {
- L.T = n, de.p = a;
+ I.T = n, fe.p = a;
}
}
- if (i = Od, o = kd, kd = null, i !== null && (Od = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);
- Cd & 3 && ff(), Of(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === jd ? Ad++ : (Ad = 0, jd = t) : (Ad = 0, jd = null), kf(0, !1);
+ if (i = kd, o = Ad, Ad = null, i !== null && (kd = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);
+ wd & 3 && pf(), kf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Md ? jd++ : (jd = 0, Md = t) : (jd = 0, Md = null), Af(0, !1);
}
}
- function df(e, t) {
- (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Ea(t)));
- }
- function ff() {
- return Dd !== null && (Dd.skipTransition(), Dd = null), cf(), lf(), uf(), pf();
+ function ff(e, t) {
+ (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Da(t)));
}
function pf() {
- if (bd !== 5) return !1;
- var e = xd, t = wd;
- wd = 0;
- var n = vt(Cd), r = L.T, a = de.p;
+ return Od !== null && (Od.skipTransition(), Od = null), lf(), uf(), df(), mf();
+ }
+ function mf() {
+ if (xd !== 5) return !1;
+ var e = Sd, t = Td;
+ Td = 0;
+ var n = yt(wd), r = I.T, a = fe.p;
try {
- de.p = 32 > n ? 32 : n, L.T = null, n = Td, Td = null;
- var o = xd, s = Cd;
- if (bd = 0, Sd = xd = null, Cd = 0, Xu & 6) throw Error(i(331));
- var c = Xu;
- if (Xu |= 4, Gu(o.current), Lu(o, o.current, s, n), Xu = c, kf(0, !1), Xe && typeof Xe.onPostCommitFiberRoot == "function") try {
- Xe.onPostCommitFiberRoot(Ye, o);
+ fe.p = 32 > n ? 32 : n, I.T = null, n = Ed, Ed = null;
+ var o = Sd, s = wd;
+ if (xd = 0, Cd = Sd = null, wd = 0, Zu & 6) throw Error(i(331));
+ var c = Zu;
+ if (Zu |= 4, Ku(o.current), Ru(o, o.current, s, n), Zu = c, Af(0, !1), Ze && typeof Ze.onPostCommitFiberRoot == "function") try {
+ Ze.onPostCommitFiberRoot(Xe, o);
} catch {}
return !0;
} finally {
- de.p = a, L.T = r, df(e, t);
+ fe.p = a, I.T = r, ff(e, t);
}
}
- function mf(e, t, n) {
- t = Bi(n, t), t = Sc(e.stateNode, t, 2), e = co(e, t, 2), e !== null && (ft(e, 2), Of(e));
- }
function hf(e, t, n) {
- if (e.tag === 3) mf(e, e, n);
+ t = Vi(n, t), t = Cc(e.stateNode, t, 2), e = lo(e, t, 2), e !== null && (pt(e, 2), kf(e));
+ }
+ function gf(e, t, n) {
+ if (e.tag === 3) hf(e, e, n);
else for (; t !== null;) {
if (t.tag === 3) {
- mf(t, e, n);
+ hf(t, e, n);
break;
}
if (t.tag === 1) {
var r = t.stateNode;
- if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (yd === null || !yd.has(r))) {
- e = Bi(n, e), n = Cc(2), r = co(t, n, 2), r !== null && (wc(n, r, t, e), ft(r, 2), Of(r));
+ if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (bd === null || !bd.has(r))) {
+ e = Vi(n, e), n = wc(2), r = lo(t, n, 2), r !== null && (Tc(n, r, t, e), pt(r, 2), kf(r));
break;
}
}
t = t.return;
}
}
- function gf(e, t, n) {
+ function _f(e, t, n) {
var r = e.pingCache;
if (r === null) {
- r = e.pingCache = new Yu();
+ r = e.pingCache = new Xu();
var i = /* @__PURE__ */ new Set();
r.set(t, i);
} else i = r.get(t), i === void 0 && (i = /* @__PURE__ */ new Set(), r.set(t, i));
- i.has(n) || (id = !0, i.add(n), e = _f.bind(null, e, t, n), t.then(e, e));
+ i.has(n) || (ad = !0, i.add(n), e = vf.bind(null, e, t, n), t.then(e, e));
}
- function _f(e, t, n) {
+ function vf(e, t, n) {
var r = e.pingCache;
- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, Zu === e && ($u & n) === n && (od === 4 || od === 3 && ($u & 62914560) === $u && 300 > R() - hd ? Xu & 2 ? ld |= n : Hd(e, 0) : ld |= n, dd === $u && (dd = 0)), Of(e);
+ r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, Qu === e && (ed & n) === n && (sd === 4 || sd === 3 && (ed & 62914560) === ed && 300 > L() - gd ? Zu & 2 ? ud |= n : Ud(e, 0) : ud |= n, fd === ed && (fd = 0)), kf(e);
}
- function vf(e, t) {
- t === 0 && (t = ut()), e = Ti(e, t), e !== null && (ft(e, t), Of(e));
+ function yf(e, t) {
+ t === 0 && (t = dt()), e = Ei(e, t), e !== null && (pt(e, t), kf(e));
}
- function yf(e) {
+ function bf(e) {
var t = e.memoizedState, n = 0;
- t !== null && (n = t.retryLane), vf(e, n);
+ t !== null && (n = t.retryLane), yf(e, n);
}
- function bf(e, t) {
+ function xf(e, t) {
var n = 0;
switch (e.tag) {
case 31:
@@ -6610,122 +6610,122 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
break;
default: throw Error(i(314));
}
- r !== null && r.delete(t), vf(e, n);
+ r !== null && r.delete(t), yf(e, n);
}
- function xf(e, t) {
- return Le(e, t);
+ function Sf(e, t) {
+ return Re(e, t);
}
- var Sf = null, Cf = null, wf = !1, Tf = !1, Ef = !1, Df = 0;
- function Of(e) {
- e !== Cf && e.next === null && (Cf === null ? Sf = Cf = e : Cf = Cf.next = e), Tf = !0, wf || (wf = !0, Ff());
+ var Cf = null, wf = null, Tf = !1, Ef = !1, Df = !1, Of = 0;
+ function kf(e) {
+ e !== wf && e.next === null && (wf === null ? Cf = wf = e : wf = wf.next = e), Ef = !0, Tf || (Tf = !0, If());
}
- function kf(e, t) {
- if (!Ef && Tf) {
- Ef = !0;
+ function Af(e, t) {
+ if (!Df && Ef) {
+ Df = !0;
do
- for (var n = !1, r = Sf; r !== null;) {
+ for (var n = !1, r = Cf; r !== null;) {
if (!t) {
if (e !== 0) {
var i = r.pendingLanes;
if (i === 0) var a = 0;
else {
var o = r.suspendedLanes, s = r.pingedLanes;
- a = (1 << 31 - Qe(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
+ a = (1 << 31 - $e(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
}
- a !== 0 && (n = !0, Pf(r, a));
- } else a = $u, a = ot(r, r === Zu ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || st(r, a) || (n = !0, Pf(r, a));
+ a !== 0 && (n = !0, Ff(r, a));
+ } else a = ed, a = st(r, r === Qu ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || ct(r, a) || (n = !0, Ff(r, a));
}
r = r.next;
}
while (n);
- Ef = !1;
+ Df = !1;
}
}
- function Af() {
- jf();
- }
function jf() {
- Tf = wf = !1;
+ Mf();
+ }
+ function Mf() {
+ Ef = Tf = !1;
var e = 0;
- Df !== 0 && yp() && (e = Df);
- for (var t = R(), n = null, r = Sf; r !== null;) {
- var i = r.next, a = Mf(r, t);
- a === 0 ? (r.next = null, n === null ? Sf = i : n.next = i, i === null && (Cf = n)) : (n = r, (e !== 0 || a & 3) && (Tf = !0)), r = i;
+ Of !== 0 && bp() && (e = Of);
+ for (var t = L(), n = null, r = Cf; r !== null;) {
+ var i = r.next, a = Nf(r, t);
+ a === 0 ? (r.next = null, n === null ? Cf = i : n.next = i, i === null && (wf = n)) : (n = r, (e !== 0 || a & 3) && (Ef = !0)), r = i;
}
- bd !== 0 && bd !== 5 || kf(e, !1), Df !== 0 && (Df = 0);
+ xd !== 0 && xd !== 5 || Af(e, !1), Of !== 0 && (Of = 0);
}
- function Mf(e, t) {
+ function Nf(e, t) {
for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
- var o = 31 - Qe(a), s = 1 << o, c = i[o];
- c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = lt(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
+ var o = 31 - $e(a), s = 1 << o, c = i[o];
+ c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = ut(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
}
- if (t = Zu, n = $u, n = ot(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (ed === 2 || ed === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Re(r), e.callbackNode = null, e.callbackPriority = 0;
- if (!(n & 3) || st(e, n)) {
+ if (t = Qu, n = ed, n = st(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (td === 2 || td === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && ze(r), e.callbackNode = null, e.callbackPriority = 0;
+ if (!(n & 3) || ct(e, n)) {
if (t = n & -n, t === e.callbackPriority) return t;
- switch (r !== null && Re(r), vt(n)) {
+ switch (r !== null && ze(r), yt(n)) {
case 2:
case 8:
- n = Ue;
+ n = We;
break;
case 32:
- n = We;
+ n = Ge;
break;
case 268435456:
- n = Ke;
+ n = qe;
break;
- default: n = We;
+ default: n = Ge;
}
- return r = Nf.bind(null, e), n = Le(n, r), e.callbackPriority = t, e.callbackNode = n, t;
+ return r = Pf.bind(null, e), n = Re(n, r), e.callbackPriority = t, e.callbackNode = n, t;
}
- return r !== null && r !== null && Re(r), e.callbackPriority = 2, e.callbackNode = null, 2;
+ return r !== null && r !== null && ze(r), e.callbackPriority = 2, e.callbackNode = null, 2;
}
- function Nf(e, t) {
- if (bd !== 0 && bd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
+ function Pf(e, t) {
+ if (xd !== 0 && xd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
var n = e.callbackNode;
- if (ff() && e.callbackNode !== n) return null;
- var r = $u;
- return r = ot(e, e === Zu ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Id(e, r, t), Mf(e, R()), e.callbackNode != null && e.callbackNode === n ? Nf.bind(null, e) : null);
+ if (pf() && e.callbackNode !== n) return null;
+ var r = ed;
+ return r = st(e, e === Qu ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Ld(e, r, t), Nf(e, L()), e.callbackNode != null && e.callbackNode === n ? Pf.bind(null, e) : null);
}
- function Pf(e, t) {
- if (ff()) return null;
- Id(e, t, !0);
+ function Ff(e, t) {
+ if (pf()) return null;
+ Ld(e, t, !0);
}
- function Ff() {
- wp(function() {
- Xu & 6 ? Le(He, Af) : jf();
+ function If() {
+ Tp(function() {
+ Zu & 6 ? Re(Ue, jf) : Mf();
});
}
- function If() {
- if (Df === 0) {
- var e = J;
- e === 0 && (e = nt, nt <<= 1, !(nt & 261888) && (nt = 256)), Df = e;
+ function Lf() {
+ if (Of === 0) {
+ var e = q;
+ e === 0 && (e = rt, rt <<= 1, !(rt & 261888) && (rt = 256)), Of = e;
}
- return Df;
+ return Of;
}
- function Lf(e) {
- return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : _n(e);
+ function Rf(e) {
+ return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : vn(e);
}
- function Rf(e, t, n, r, i) {
+ function zf(e, t, n, r, i) {
if (t === "submit" && n && n.stateNode === i) {
- var a = Lf((i[Ct] || null).action), o = r.submitter;
- o && (t = (t = o[Ct] || null) ? Lf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
- var s = new zn("action", "action", null, r, i);
+ var a = Rf((i[wt] || null).action), o = r.submitter;
+ o && (t = (t = o[wt] || null) ? Rf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
+ var s = new Bn("action", "action", null, r, i);
e.push({
event: s,
listeners: [{
instance: null,
listener: function() {
if (r.defaultPrevented) {
- if (Df !== 0) {
+ if (Of !== 0) {
var e = new FormData(i, o);
- Js(n, {
+ Ys(n, {
pending: !0,
data: e,
method: i.method,
action: a
}, null, e);
}
- } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), Js(n, {
+ } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), Ys(n, {
pending: !0,
data: e,
method: i.method,
@@ -6737,18 +6737,18 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
});
}
}
- for (var zf = 0; zf < fi.length; zf++) {
- var Bf = fi[zf];
- pi(Bf.toLowerCase(), "on" + (Bf[0].toUpperCase() + Bf.slice(1)));
+ for (var Bf = 0; Bf < pi.length; Bf++) {
+ var Vf = pi[Bf];
+ mi(Vf.toLowerCase(), "on" + (Vf[0].toUpperCase() + Vf.slice(1)));
}
- pi(ai, "onAnimationEnd"), pi(oi, "onAnimationIteration"), pi(si, "onAnimationStart"), pi("dblclick", "onDoubleClick"), pi("focusin", "onFocus"), pi("focusout", "onBlur"), pi(ci, "onTransitionRun"), pi(li, "onTransitionStart"), pi(V, "onTransitionCancel"), pi(ui, "onTransitionEnd"), Bt("onMouseEnter", ["mouseout", "mouseover"]), Bt("onMouseLeave", ["mouseout", "mouseover"]), Bt("onPointerEnter", ["pointerout", "pointerover"]), Bt("onPointerLeave", ["pointerout", "pointerover"]), zt("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), zt("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), zt("onBeforeInput", [
+ mi(oi, "onAnimationEnd"), mi(si, "onAnimationIteration"), mi(ci, "onAnimationStart"), mi("dblclick", "onDoubleClick"), mi("focusin", "onFocus"), mi("focusout", "onBlur"), mi(li, "onTransitionRun"), mi(ui, "onTransitionStart"), mi(B, "onTransitionCancel"), mi(di, "onTransitionEnd"), Vt("onMouseEnter", ["mouseout", "mouseover"]), Vt("onMouseLeave", ["mouseout", "mouseover"]), Vt("onPointerEnter", ["pointerout", "pointerover"]), Vt("onPointerLeave", ["pointerout", "pointerover"]), Bt("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Bt("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Bt("onBeforeInput", [
"compositionend",
"keypress",
"textInput",
"paste"
- ]), zt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), zt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), zt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
- var Vf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), Hf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vf));
- function Uf(e, t) {
+ ]), Bt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Bt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Bt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
+ var Hf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), Uf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hf));
+ function Wf(e, t) {
t = !!(t & 4);
for (var n = 0; n < e.length; n++) {
var r = e[n], i = r.event;
@@ -6762,7 +6762,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
try {
a(i);
} catch (e) {
- vi(e);
+ yi(e);
}
i.currentTarget = null, a = c;
}
@@ -6772,49 +6772,49 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
try {
a(i);
} catch (e) {
- vi(e);
+ yi(e);
}
i.currentTarget = null, a = c;
}
}
}
}
- function Wf(e, t) {
- var n = t[Tt];
- n === void 0 && (n = t[Tt] = /* @__PURE__ */ new Set());
+ function Gf(e, t) {
+ var n = t[Et];
+ n === void 0 && (n = t[Et] = /* @__PURE__ */ new Set());
var r = e + "__bubble";
- n.has(r) || (Jf(t, e, 2, !1), n.add(r));
+ n.has(r) || (Yf(t, e, 2, !1), n.add(r));
}
- function Gf(e, t, n) {
+ function Kf(e, t, n) {
var r = 0;
- t && (r |= 4), Jf(n, e, r, t);
+ t && (r |= 4), Yf(n, e, r, t);
}
- var Kf = "_reactListening" + Math.random().toString(36).slice(2);
- function qf(e) {
- if (!e[Kf]) {
- e[Kf] = !0, Lt.forEach(function(t) {
- t !== "selectionchange" && (Hf.has(t) || Gf(t, !1, e), Gf(t, !0, e));
+ var qf = "_reactListening" + Math.random().toString(36).slice(2);
+ function Jf(e) {
+ if (!e[qf]) {
+ e[qf] = !0, Rt.forEach(function(t) {
+ t !== "selectionchange" && (Uf.has(t) || Kf(t, !1, e), Kf(t, !0, e));
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
- t === null || t[Kf] || (t[Kf] = !0, Gf("selectionchange", !1, t));
+ t === null || t[qf] || (t[qf] = !0, Kf("selectionchange", !1, t));
}
}
- function Jf(e, t, n, r) {
- switch (Dh(t)) {
+ function Yf(e, t, n, r) {
+ switch (Oh(t)) {
case 2:
- var i = xh;
+ var i = Sh;
break;
case 8:
- i = Sh;
+ i = Ch;
break;
- default: i = Ch;
+ default: i = wh;
}
- n = i.bind(null, t, n, e), i = void 0, !On || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {
+ n = i.bind(null, t, n, e), i = void 0, !kn || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {
capture: !0,
passive: i
}) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });
}
- function Yf(e, t, n, r, i) {
+ function Xf(e, t, n, r, i) {
var a = r;
if (!(t & 1) && !(t & 2) && r !== null) a: for (;;) {
if (r === null) return;
@@ -6828,7 +6828,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
s = s.return;
}
for (; c !== null;) {
- if (s = jt(c), s === null) return;
+ if (s = Mt(c), s === null) return;
if (l = s.tag, l === 5 || l === 6 || l === 26 || l === 27) {
r = a = s;
continue a;
@@ -6838,27 +6838,27 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
r = r.return;
}
- Tn(function() {
- var r = a, i = bn(n), s = [];
+ En(function() {
+ var r = a, i = xn(n), s = [];
a: {
- var c = di.get(e);
+ var c = fi.get(e);
if (c !== void 0) {
- var l = zn, u = e;
+ var l = Bn, u = e;
switch (e) {
- case "keypress": if (Pn(n) === 0) break a;
+ case "keypress": if (Fn(n) === 0) break a;
case "keydown":
case "keyup":
- l = rr;
+ l = ir;
break;
case "focusin":
- u = "focus", l = Jn;
+ u = "focus", l = Yn;
break;
case "focusout":
- u = "blur", l = Jn;
+ u = "blur", l = Yn;
break;
case "beforeblur":
case "afterblur":
- l = Jn;
+ l = Yn;
break;
case "click": if (n.button === 2) break a;
case "auxclick":
@@ -6869,7 +6869,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case "mouseout":
case "mouseover":
case "contextmenu":
- l = Kn;
+ l = qn;
break;
case "drag":
case "dragend":
@@ -6879,33 +6879,33 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case "dragover":
case "dragstart":
case "drop":
- l = qn;
+ l = Jn;
break;
case "touchcancel":
case "touchend":
case "touchmove":
case "touchstart":
- l = or;
+ l = sr;
break;
- case ai:
case oi:
case si:
- l = Yn;
+ case ci:
+ l = Xn;
break;
- case ui:
- l = sr;
+ case di:
+ l = cr;
break;
case "scroll":
case "scrollend":
- l = Vn;
+ l = Hn;
break;
case "wheel":
- l = cr;
+ l = lr;
break;
case "copy":
case "cut":
case "paste":
- l = Xn;
+ l = Zn;
break;
case "gotpointercapture":
case "lostpointercapture":
@@ -6915,19 +6915,19 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case "pointerout":
case "pointerover":
case "pointerup":
- l = ir;
+ l = ar;
break;
case "submit":
- l = ar;
+ l = or;
break;
case "toggle":
- case "beforetoggle": l = lr;
+ case "beforetoggle": l = ur;
}
var d = !!(t & 4), f = !d && (e === "scroll" || e === "scrollend"), p = d ? c === null ? null : c + "Capture" : c;
d = [];
for (var m = r, h; m !== null;) {
var g = m;
- if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = En(m, p), g != null && d.push(Xf(m, g, h))), f) break;
+ if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Dn(m, p), g != null && d.push(Zf(m, g, h))), f) break;
m = m.return;
}
0 < d.length && (c = new l(c, u, null, n, i), s.push({
@@ -6938,45 +6938,45 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
if (!(t & 7)) {
a: {
- if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== yn && (u = n.relatedTarget || n.fromElement) && (jt(u) || u[wt])) break a;
- (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? jt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Kn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = ir, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Nt(c), h = l == null ? u : Nt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, jt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? C(c, l, Qf) : null, c !== null && $f(s, u, c, d, !1), l !== null && f !== null && $f(s, f, l, d, !0)));
+ if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== bn && (u = n.relatedTarget || n.fromElement) && (Mt(u) || u[Tt])) break a;
+ (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? Mt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = qn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = ar, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Pt(c), h = l == null ? u : Pt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, Mt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? C(c, l, $f) : null, c !== null && ep(s, u, c, d, !1), l !== null && f !== null && ep(s, f, l, d, !0)));
}
a: {
- if (c = r ? Nt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = kr;
- else if (Cr(c)) {
- if (Ar) _ = zr;
+ if (c = r ? Pt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Ar;
+ else if (wr(c)) {
+ if (jr) _ = Br;
else {
- _ = Lr;
- var v = Ir;
+ _ = Rr;
+ var v = Lr;
}
- } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && mn(r.elementType) && (_ = kr) : _ = Rr;
+ } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && hn(r.elementType) && (_ = Ar) : _ = zr;
if (_ &&= _(e, r)) {
- wr(s, _, n, i);
+ Tr(s, _, n, i);
break a;
}
v && v(e, c, r);
}
- switch (v = r ? Nt(r) : window, e) {
+ switch (v = r ? Pt(r) : window, e) {
case "focusin":
- (Cr(v) || v.contentEditable === "true") && (Xr = v, Zr = r, Qr = null);
+ (wr(v) || v.contentEditable === "true") && (Zr = v, Qr = r, $r = null);
break;
case "focusout":
- Qr = Zr = Xr = null;
+ $r = Qr = Zr = null;
break;
case "mousedown":
- $r = !0;
+ ei = !0;
break;
case "contextmenu":
case "mouseup":
case "dragend":
- $r = !1, ei(s, n, i);
+ ei = !1, ti(s, n, i);
break;
- case "selectionchange": if (Yr) break;
+ case "selectionchange": if (Xr) break;
case "keydown":
- case "keyup": ei(s, n, i);
+ case "keyup": ti(s, n, i);
}
var y;
- if (dr) b: {
+ if (fr) b: {
switch (e) {
case "compositionstart":
var b = "onCompositionStart";
@@ -6990,83 +6990,83 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
b = void 0;
}
- else yr ? _r(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
- b && (mr && n.locale !== "ko" && (yr || b !== "onCompositionStart" ? b === "onCompositionEnd" && yr && (y = Nn()) : (An = i, jn = "value" in An ? An.value : An.textContent, yr = !0)), v = Zf(r, b), 0 < v.length && (b = new Zn(b, e, null, n, i), s.push({
+ else br ? vr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
+ b && (hr && n.locale !== "ko" && (br || b !== "onCompositionStart" ? b === "onCompositionEnd" && br && (y = Pn()) : (jn = i, Mn = "value" in jn ? jn.value : jn.textContent, br = !0)), v = Qf(r, b), 0 < v.length && (b = new Qn(b, e, null, n, i), s.push({
event: b,
listeners: v
- }), y ? b.data = y : (y = vr(n), y !== null && (b.data = y)))), (y = pr ? br(e, n) : xr(e, n)) && (b = Zf(r, "onBeforeInput"), 0 < b.length && (v = new Zn("onBeforeInput", "beforeinput", null, n, i), s.push({
+ }), y ? b.data = y : (y = yr(n), y !== null && (b.data = y)))), (y = mr ? xr(e, n) : Sr(e, n)) && (b = Qf(r, "onBeforeInput"), 0 < b.length && (v = new Qn("onBeforeInput", "beforeinput", null, n, i), s.push({
event: v,
listeners: b
- }), v.data = y)), Rf(s, e, r, n, i);
+ }), v.data = y)), zf(s, e, r, n, i);
}
- Uf(s, t);
+ Wf(s, t);
});
}
- function Xf(e, t, n) {
+ function Zf(e, t, n) {
return {
instance: e,
listener: t,
currentTarget: n
};
}
- function Zf(e, t) {
+ function Qf(e, t) {
for (var n = t + "Capture", r = []; e !== null;) {
var i = e, a = i.stateNode;
- if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = En(e, n), i != null && r.unshift(Xf(e, i, a)), i = En(e, t), i != null && r.push(Xf(e, i, a))), e.tag === 3) return r;
+ if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Dn(e, n), i != null && r.unshift(Zf(e, i, a)), i = Dn(e, t), i != null && r.push(Zf(e, i, a))), e.tag === 3) return r;
e = e.return;
}
return [];
}
- function Qf(e) {
+ function $f(e) {
if (e === null) return null;
do
e = e.return;
while (e && e.tag !== 5 && e.tag !== 27);
return e || null;
}
- function $f(e, t, n, r, i) {
+ function ep(e, t, n, r, i) {
for (var a = t._reactName, o = []; n !== null && n !== r;) {
var s = n, c = s.alternate, l = s.stateNode;
if (s = s.tag, c !== null && c === r) break;
- s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = En(n, a), l != null && o.unshift(Xf(n, l, c))) : i || (l = En(n, a), l != null && o.push(Xf(n, l, c)))), n = n.return;
+ s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Dn(n, a), l != null && o.unshift(Zf(n, l, c))) : i || (l = Dn(n, a), l != null && o.push(Zf(n, l, c)))), n = n.return;
}
o.length !== 0 && e.push({
event: t,
listeners: o
});
}
- var ep = /\r\n?/g, tp = /\u0000|\uFFFD/g;
- function np(e) {
- return (typeof e == "string" ? e : "" + e).replace(ep, "\n").replace(tp, "");
+ var tp = /\r\n?/g, np = /\u0000|\uFFFD/g;
+ function rp(e) {
+ return (typeof e == "string" ? e : "" + e).replace(tp, "\n").replace(np, "");
}
- function rp(e, t) {
- return t = np(t), np(e) === t;
+ function ip(e, t) {
+ return t = rp(t), rp(e) === t;
}
- function ip(e, t, n, r, a, o) {
+ function ap(e, t, n, r, a, o) {
switch (n) {
case "children":
- if (typeof r == "string") t === "body" || t === "textarea" && r === "" || un(e, r);
- else if (typeof r == "number" || typeof r == "bigint") t !== "body" && un(e, "" + r);
+ if (typeof r == "string") t === "body" || t === "textarea" && r === "" || dn(e, r);
+ else if (typeof r == "number" || typeof r == "bigint") t !== "body" && dn(e, "" + r);
else return;
break;
case "className":
- Jt(e, "class", r);
+ Yt(e, "class", r);
break;
case "tabIndex":
- Jt(e, "tabindex", r);
+ Yt(e, "tabindex", r);
break;
case "dir":
case "role":
case "viewBox":
case "width":
case "height":
- Jt(e, n, r);
+ Yt(e, n, r);
break;
case "style":
- pn(e, r, o);
+ mn(e, r, o);
return;
case "data": if (t !== "object") {
- Jt(e, "data", r);
+ Yt(e, "data", r);
break;
}
case "src":
@@ -7079,7 +7079,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
e.removeAttribute(n);
break;
}
- r = _n(r), e.setAttribute(n, r);
+ r = vn(r), e.setAttribute(n, r);
break;
case "action":
case "formAction":
@@ -7087,20 +7087,20 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
e.setAttribute(n, "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");
break;
}
- if (typeof o == "function" && (n === "formAction" ? (t !== "input" && ip(e, t, "name", a.name, a, null), ip(e, t, "formEncType", a.formEncType, a, null), ip(e, t, "formMethod", a.formMethod, a, null), ip(e, t, "formTarget", a.formTarget, a, null)) : (ip(e, t, "encType", a.encType, a, null), ip(e, t, "method", a.method, a, null), ip(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
+ if (typeof o == "function" && (n === "formAction" ? (t !== "input" && ap(e, t, "name", a.name, a, null), ap(e, t, "formEncType", a.formEncType, a, null), ap(e, t, "formMethod", a.formMethod, a, null), ap(e, t, "formTarget", a.formTarget, a, null)) : (ap(e, t, "encType", a.encType, a, null), ap(e, t, "method", a.method, a, null), ap(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
e.removeAttribute(n);
break;
}
- r = _n(r), e.setAttribute(n, r);
+ r = vn(r), e.setAttribute(n, r);
break;
case "onClick":
- r != null && (e.onclick = vn);
+ r != null && (e.onclick = yn);
return;
case "onScroll":
- r != null && Wf("scroll", e);
+ r != null && Gf("scroll", e);
return;
case "onScrollEnd":
- r != null && Wf("scrollend", e);
+ r != null && Gf("scrollend", e);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -7129,7 +7129,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
e.removeAttribute("xlink:href");
break;
}
- n = _n(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
+ n = vn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
break;
case "contentEditable":
case "spellCheck":
@@ -7182,49 +7182,49 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);
break;
case "popover":
- Wf("beforetoggle", e), Wf("toggle", e), qt(e, "popover", r);
+ Gf("beforetoggle", e), Gf("toggle", e), Jt(e, "popover", r);
break;
case "xlinkActuate":
- Yt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
+ Xt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
break;
case "xlinkArcrole":
- Yt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
+ Xt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
break;
case "xlinkRole":
- Yt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
+ Xt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
break;
case "xlinkShow":
- Yt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
+ Xt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
break;
case "xlinkTitle":
- Yt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
+ Xt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
break;
case "xlinkType":
- Yt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
+ Xt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
break;
case "xmlBase":
- Yt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);
+ Xt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);
break;
case "xmlLang":
- Yt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);
+ Xt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);
break;
case "xmlSpace":
- Yt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
+ Xt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
break;
case "is":
- qt(e, "is", r);
+ Jt(e, "is", r);
break;
case "innerText":
case "textContent": return;
- default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = hn.get(n) || n, qt(e, n, r);
+ default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = gn.get(n) || n, Jt(e, n, r);
else return;
}
- Gt = !0;
+ Kt = !0;
}
- function ap(e, t, n, r, a, o) {
+ function op(e, t, n, r, a, o) {
switch (n) {
case "style":
- pn(e, r, o);
+ mn(e, r, o);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -7236,18 +7236,18 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
break;
case "children":
- if (typeof r == "string") un(e, r);
- else if (typeof r == "number" || typeof r == "bigint") un(e, "" + r);
+ if (typeof r == "string") dn(e, r);
+ else if (typeof r == "number" || typeof r == "bigint") dn(e, "" + r);
else return;
break;
case "onScroll":
- r != null && Wf("scroll", e);
+ r != null && Gf("scroll", e);
return;
case "onScrollEnd":
- r != null && Wf("scrollend", e);
+ r != null && Gf("scrollend", e);
return;
case "onClick":
- r != null && (e.onclick = vn);
+ r != null && (e.onclick = yn);
return;
case "suppressContentEditableWarning":
case "suppressHydrationWarning":
@@ -7256,18 +7256,18 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case "innerText":
case "textContent": return;
default:
- if (!Rt.hasOwnProperty(n)) a: {
- if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[Ct] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {
+ if (!zt.hasOwnProperty(n)) a: {
+ if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[wt] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {
typeof t != "function" && t !== null && (n in e ? e[n] = null : e.hasAttribute(n) && e.removeAttribute(n)), e.addEventListener(o, r, a);
break a;
}
- Gt = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : qt(e, n, r);
+ Kt = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Jt(e, n, r);
}
return;
}
- Gt = !0;
+ Kt = !0;
}
- function op(e, t, n) {
+ function sp(e, t, n) {
switch (t) {
case "div":
case "span":
@@ -7278,7 +7278,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case "p":
case "li": break;
case "img":
- Wf("error", e), Wf("load", e);
+ Gf("error", e), Gf("load", e);
var r = !1, a = !1, o;
for (o in n) if (n.hasOwnProperty(o)) {
var s = n[o];
@@ -7291,13 +7291,13 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
break;
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: ip(e, t, o, s, n, null);
+ default: ap(e, t, o, s, n, null);
}
}
- a && ip(e, t, "srcSet", n.srcSet, n, null), r && ip(e, t, "src", n.src, n, null);
+ a && ap(e, t, "srcSet", n.srcSet, n, null), r && ap(e, t, "src", n.src, n, null);
return;
case "input":
- Wf("invalid", e);
+ Gf("invalid", e);
var c = o = s = a = null, l = null, u = null;
for (r in n) if (n.hasOwnProperty(r)) {
var d = n[r];
@@ -7324,13 +7324,13 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case "dangerouslySetInnerHTML":
if (d != null) throw Error(i(137, t));
break;
- default: ip(e, t, r, d, n, null);
+ default: ap(e, t, r, d, n, null);
}
}
- an(e, o, c, l, u, s, a, !1);
+ on(e, o, c, l, u, s, a, !1);
return;
case "select":
- for (a in Wf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
+ for (a in Gf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
case "value":
o = c;
break;
@@ -7338,12 +7338,12 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
s = c;
break;
case "multiple": r = c;
- default: ip(e, t, a, c, n, null);
+ default: ap(e, t, a, c, n, null);
}
- t = o, n = s, e.multiple = !!r, t == null ? n != null && sn(e, !!r, n, !0) : sn(e, !!r, t, !1);
+ t = o, n = s, e.multiple = !!r, t == null ? n != null && cn(e, !!r, n, !0) : cn(e, !!r, t, !1);
return;
case "textarea":
- for (s in Wf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
+ for (s in Gf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
case "value":
r = c;
break;
@@ -7356,38 +7356,38 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case "dangerouslySetInnerHTML":
if (c != null) throw Error(i(91));
break;
- default: ip(e, t, s, c, n, null);
+ default: ap(e, t, s, c, n, null);
}
- ln(e, r, a, o);
+ un(e, r, a, o);
return;
case "option":
for (l in n) if (n.hasOwnProperty(l) && (r = n[l], r != null)) switch (l) {
case "selected":
e.selected = r && typeof r != "function" && typeof r != "symbol";
break;
- default: ip(e, t, l, r, n, null);
+ default: ap(e, t, l, r, n, null);
}
return;
case "dialog":
- Wf("beforetoggle", e), Wf("toggle", e), Wf("cancel", e), Wf("close", e);
+ Gf("beforetoggle", e), Gf("toggle", e), Gf("cancel", e), Gf("close", e);
break;
case "iframe":
case "object":
- Wf("load", e);
+ Gf("load", e);
break;
case "video":
case "audio":
- for (r = 0; r < Vf.length; r++) Wf(Vf[r], e);
+ for (r = 0; r < Hf.length; r++) Gf(Hf[r], e);
break;
case "image":
- Wf("error", e), Wf("load", e);
+ Gf("error", e), Gf("load", e);
break;
case "details":
- Wf("toggle", e);
+ Gf("toggle", e);
break;
case "embed":
case "source":
- case "link": Wf("error", e), Wf("load", e);
+ case "link": Gf("error", e), Gf("load", e);
case "area":
case "base":
case "br":
@@ -7402,18 +7402,18 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
for (u in n) if (n.hasOwnProperty(u) && (r = n[u], r != null)) switch (u) {
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: ip(e, t, u, r, n, null);
+ default: ap(e, t, u, r, n, null);
}
return;
- default: if (mn(t)) {
- for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && ap(e, t, d, r, n, void 0));
+ default: if (hn(t)) {
+ for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && op(e, t, d, r, n, void 0));
return;
}
}
- for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && ip(e, t, c, r, n, null));
+ for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && ap(e, t, c, r, n, null));
}
- var sp = {};
- function cp(e, t, n, r) {
+ var cp = {};
+ function lp(e, t, n, r) {
switch (t) {
case "div":
case "span":
@@ -7431,90 +7431,90 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case "checked": break;
case "value": break;
case "defaultValue": l = f;
- default: r.hasOwnProperty(m) || ip(e, t, m, null, r, f);
+ default: r.hasOwnProperty(m) || ap(e, t, m, null, r, f);
}
}
for (var p in r) {
var m = r[p];
if (f = n[p], r.hasOwnProperty(p) && (m != null || f != null)) switch (p) {
case "type":
- m !== f && (Gt = !0), o = m;
+ m !== f && (Kt = !0), o = m;
break;
case "name":
- m !== f && (Gt = !0), a = m;
+ m !== f && (Kt = !0), a = m;
break;
case "checked":
- m !== f && (Gt = !0), u = m;
+ m !== f && (Kt = !0), u = m;
break;
case "defaultChecked":
- m !== f && (Gt = !0), d = m;
+ m !== f && (Kt = !0), d = m;
break;
case "value":
- m !== f && (Gt = !0), s = m;
+ m !== f && (Kt = !0), s = m;
break;
case "defaultValue":
- m !== f && (Gt = !0), c = m;
+ m !== f && (Kt = !0), c = m;
break;
case "children":
case "dangerouslySetInnerHTML":
if (m != null) throw Error(i(137, t));
break;
- default: m !== f && ip(e, t, p, m, r, f);
+ default: m !== f && ap(e, t, p, m, r, f);
}
}
- rn(e, s, c, l, u, d, o, a);
+ an(e, s, c, l, u, d, o, a);
return;
case "select":
for (o in m = s = c = p = null, n) if (l = n[o], n.hasOwnProperty(o) && l != null) switch (o) {
case "value": break;
case "multiple": m = l;
- default: r.hasOwnProperty(o) || ip(e, t, o, null, r, l);
+ default: r.hasOwnProperty(o) || ap(e, t, o, null, r, l);
}
for (a in r) if (o = r[a], l = n[a], r.hasOwnProperty(a) && (o != null || l != null)) switch (a) {
case "value":
- o !== l && (Gt = !0), p = o;
+ o !== l && (Kt = !0), p = o;
break;
case "defaultValue":
- o !== l && (Gt = !0), c = o;
+ o !== l && (Kt = !0), c = o;
break;
- case "multiple": o !== l && (Gt = !0), s = o;
- default: o !== l && ip(e, t, a, o, r, l);
+ case "multiple": o !== l && (Kt = !0), s = o;
+ default: o !== l && ap(e, t, a, o, r, l);
}
- t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? sn(e, !!n, n ? [] : "", !1) : sn(e, !!n, t, !0)) : sn(e, !!n, p, !1);
+ t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? cn(e, !!n, n ? [] : "", !1) : cn(e, !!n, t, !0)) : cn(e, !!n, p, !1);
return;
case "textarea":
for (c in m = p = null, n) if (a = n[c], n.hasOwnProperty(c) && a != null && !r.hasOwnProperty(c)) switch (c) {
case "value": break;
case "children": break;
- default: ip(e, t, c, null, r, a);
+ default: ap(e, t, c, null, r, a);
}
for (s in r) if (a = r[s], o = n[s], r.hasOwnProperty(s) && (a != null || o != null)) switch (s) {
case "value":
- a !== o && (Gt = !0), p = a;
+ a !== o && (Kt = !0), p = a;
break;
case "defaultValue":
- a !== o && (Gt = !0), m = a;
+ a !== o && (Kt = !0), m = a;
break;
case "children": break;
case "dangerouslySetInnerHTML":
if (a != null) throw Error(i(91));
break;
- default: a !== o && ip(e, t, s, a, r, o);
+ default: a !== o && ap(e, t, s, a, r, o);
}
- cn(e, p, m);
+ ln(e, p, m);
return;
case "option":
for (var h in n) if (p = n[h], n.hasOwnProperty(h) && p != null && !r.hasOwnProperty(h)) switch (h) {
case "selected":
e.selected = !1;
break;
- default: ip(e, t, h, null, r, p);
+ default: ap(e, t, h, null, r, p);
}
for (l in r) if (p = r[l], m = n[l], r.hasOwnProperty(l) && p !== m && (p != null || m != null)) switch (l) {
case "selected":
- p !== m && (Gt = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
+ p !== m && (Kt = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
break;
- default: ip(e, t, l, p, r, m);
+ default: ap(e, t, l, p, r, m);
}
return;
case "img":
@@ -7532,25 +7532,25 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case "track":
case "wbr":
case "menuitem":
- for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && ip(e, t, g, null, r, p);
+ for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && ap(e, t, g, null, r, p);
for (u in r) if (p = r[u], m = n[u], r.hasOwnProperty(u) && p !== m && (p != null || m != null)) switch (u) {
case "children":
case "dangerouslySetInnerHTML":
if (p != null) throw Error(i(137, t));
break;
- default: ip(e, t, u, p, r, m);
+ default: ap(e, t, u, p, r, m);
}
return;
- default: if (mn(t)) {
- for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && ap(e, t, _, void 0, r, p);
- for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || ap(e, t, d, p, r, m);
+ default: if (hn(t)) {
+ for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && op(e, t, _, void 0, r, p);
+ for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || op(e, t, d, p, r, m);
return;
}
}
- for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && ip(e, t, v, null, r, p);
- for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || ip(e, t, f, p, r, m);
+ for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && ap(e, t, v, null, r, p);
+ for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || ap(e, t, f, p, r, m);
}
- function lp(e) {
+ function up(e) {
switch (e) {
case "css":
case "script":
@@ -7562,16 +7562,16 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
default: return !1;
}
}
- function up() {
+ function dp() {
if (typeof performance.getEntriesByType == "function") {
for (var e = 0, t = 0, n = performance.getEntriesByType("resource"), r = 0; r < n.length; r++) {
var i = n[r], a = i.transferSize, o = i.initiatorType, s = i.duration;
- if (a && s && lp(o)) {
+ if (a && s && up(o)) {
for (o = 0, s = i.responseEnd, r += 1; r < n.length; r++) {
var c = n[r], l = c.startTime;
if (l > s) break;
var u = c.transferSize, d = c.initiatorType;
- u && lp(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));
+ u && up(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));
}
if (--r, t += 8 * (a + o) / (i.duration / 1e3), e++, 10 < e) break;
}
@@ -7580,18 +7580,18 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
return navigator.connection && (e = navigator.connection.downlink, typeof e == "number") ? e : 5;
}
- var dp = null, fp = null;
- function pp(e) {
+ var fp = null, pp = null;
+ function mp(e) {
return e.nodeType === 9 ? e : e.ownerDocument;
}
- function mp(e) {
+ function hp(e) {
switch (e) {
case "http://www.w3.org/2000/svg": return 1;
case "http://www.w3.org/1998/Math/MathML": return 2;
default: return 0;
}
}
- function hp(e, t) {
+ function gp(e, t) {
if (e === 0) switch (t) {
case "svg": return 1;
case "math": return 2;
@@ -7599,54 +7599,54 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
return e === 1 && t === "foreignObject" ? 0 : e;
}
- function gp(e, t, n, r) {
- return n = pp(n).createElement(e), n[St] = r, n[Ct] = t, op(n, e, t), Ft(n), n;
+ function _p(e, t, n, r) {
+ return n = mp(n).createElement(e), n[Ct] = r, n[wt] = t, sp(n, e, t), It(n), n;
}
- function _p(e, t) {
+ function vp(e, t) {
return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.children == "bigint" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null;
}
- var vp = null;
- function yp() {
+ var yp = null;
+ function bp() {
var e = window.event;
- return e && e.type === "popstate" ? e !== vp && (vp = e, !0) : (vp = null, !1);
+ return e && e.type === "popstate" ? e !== yp && (yp = e, !0) : (yp = null, !1);
}
- var bp = typeof setTimeout == "function" ? setTimeout : void 0, xp = typeof clearTimeout == "function" ? clearTimeout : void 0, Sp = typeof Promise == "function" ? Promise : void 0, Cp = typeof requestAnimationFrame == "function" ? requestAnimationFrame : bp, wp = typeof queueMicrotask == "function" ? queueMicrotask : Sp === void 0 ? bp : function(e) {
- return Sp.resolve(null).then(e).catch(Tp);
+ var xp = typeof setTimeout == "function" ? setTimeout : void 0, Sp = typeof clearTimeout == "function" ? clearTimeout : void 0, Cp = typeof Promise == "function" ? Promise : void 0, wp = typeof requestAnimationFrame == "function" ? requestAnimationFrame : xp, Tp = typeof queueMicrotask == "function" ? queueMicrotask : Cp === void 0 ? xp : function(e) {
+ return Cp.resolve(null).then(e).catch(Ep);
};
- function Tp(e) {
+ function Ep(e) {
setTimeout(function() {
throw e;
});
}
- function Ep(e) {
+ function Dp(e) {
return e === "head";
}
- function Dp(e, t) {
+ function Op(e, t) {
var n = t, r = 0;
do {
var i = n.nextSibling;
if (e.removeChild(n), i && i.nodeType === 8) {
if (n = i.data, n === "/$" || n === "/&") {
if (r === 0) {
- e.removeChild(i), Kh(t);
+ e.removeChild(i), qh(t);
return;
}
r--;
} else if (n === "$" || n === "$?" || n === "$~" || n === "$!" || n === "&") r++;
- else if (n === "html") xm(e.ownerDocument.documentElement);
+ else if (n === "html") Sm(e.ownerDocument.documentElement);
else if (n === "head") {
- n = e.ownerDocument.head, xm(n);
+ n = e.ownerDocument.head, Sm(n);
for (var a = n.firstChild; a;) {
var o = a.nextSibling, s = a.nodeName;
- a[Ot] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
+ a[kt] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
}
- } else n === "body" && xm(e.ownerDocument.body);
+ } else n === "body" && Sm(e.ownerDocument.body);
}
n = i;
} while (n);
- Kh(t);
+ qh(t);
}
- function Op(e, t) {
+ function kp(e, t) {
var n = e;
e = 0;
do {
@@ -7660,7 +7660,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
n = r;
} while (n);
}
- function kp(e, t, n) {
+ function Ap(e, t, n) {
if (t = CSS.escape(t) === t ? t : "r-" + btoa(t).replace(/=/g, ""), e.style.viewTransitionName = t, n != null && (e.style.viewTransitionClass = n), n = getComputedStyle(e), n.display === "inline") {
if (t = e.getClientRects(), t.length === 1) var r = 1;
else for (var i = r = 0; i < t.length; i++) {
@@ -7670,12 +7670,12 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
r === 1 && (e = e.style, e.display = t.length === 1 ? "inline-block" : "block", e.marginTop = "-" + n.paddingTop, e.marginBottom = "-" + n.paddingBottom);
}
}
- function Ap(e, t) {
+ function jp(e, t) {
e = e.style, t = t.style;
var n = t == null ? null : t.hasOwnProperty("viewTransitionName") ? t.viewTransitionName : t.hasOwnProperty("view-transition-name") ? t["view-transition-name"] : null;
e.viewTransitionName = n == null || typeof n == "boolean" ? "" : ("" + n).trim(), n = t == null ? null : t.hasOwnProperty("viewTransitionClass") ? t.viewTransitionClass : t.hasOwnProperty("view-transition-class") ? t["view-transition-class"] : null, e.viewTransitionClass = n == null || typeof n == "boolean" ? "" : ("" + n).trim(), e.display === "inline-block" && (t == null ? e.display = e.margin = "" : (n = t.display, e.display = n == null || typeof n == "boolean" ? "" : n, n = t.margin, n == null ? (n = t.hasOwnProperty("marginTop") ? t.marginTop : t["margin-top"], e.marginTop = n == null || typeof n == "boolean" ? "" : n, t = t.hasOwnProperty("marginBottom") ? t.marginBottom : t["margin-bottom"], e.marginBottom = t == null || typeof t == "boolean" ? "" : t) : e.margin = n));
}
- function jp(e, t, n) {
+ function Mp(e, t, n) {
return n = n.ownerDocument.defaultView, {
rect: e,
abs: t.position === "absolute" || t.position === "fixed",
@@ -7683,22 +7683,22 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
view: 0 <= e.bottom && 0 <= e.right && e.top <= n.innerHeight && e.left <= n.innerWidth
};
}
- function Mp(e) {
- return jp(e.getBoundingClientRect(), getComputedStyle(e), e);
- }
function Np(e) {
+ return Mp(e.getBoundingClientRect(), getComputedStyle(e), e);
+ }
+ function Pp(e) {
var t = e.getBoundingClientRect();
t = new DOMRect(t.x + 2e4, t.y + 2e4, t.width, t.height);
var n = getComputedStyle(e);
- return jp(t, n, e);
+ return Mp(t, n, e);
}
- function Pp(e) {
+ function Fp(e) {
return e.documentElement.clientHeight;
}
- function Fp(e) {
+ function Ip(e) {
this.addEventListener("load", e), this.addEventListener("error", e);
}
- function Ip(e, t, n, r, i, a, o, s, c) {
+ function Lp(e, t, n, r, i, a, o, s, c) {
var l = t.nodeType === 9 ? t : t.ownerDocument;
try {
var u = l.startViewTransition({
@@ -7706,16 +7706,16 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
var t = l.defaultView, n = t.navigation && t.navigation.transition, o = l.fonts.status;
r();
var s = [];
- if (o === "loaded" && (Pp(l), l.fonts.status === "loading" && s.push(l.fonts.ready)), o = s.length, e !== null) for (var c = e.suspenseyImages, u = 0, d = 0; d < c.length; d++) {
+ if (o === "loaded" && (Fp(l), l.fonts.status === "loading" && s.push(l.fonts.ready)), o = s.length, e !== null) for (var c = e.suspenseyImages, u = 0, d = 0; d < c.length; d++) {
var f = c[d];
if (!f.complete) {
var p = f.getBoundingClientRect();
if (0 < p.bottom && 0 < p.right && p.top < t.innerHeight && p.left < t.innerWidth) {
- if (u += eh(f), u > rh) {
+ if (u += th(f), u > ih) {
s.length = o;
break;
}
- f = new Promise(Fp.bind(f)), s.push(f);
+ f = new Promise(Ip.bind(f)), s.push(f);
}
}
}
@@ -7770,86 +7770,86 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
return r(), i(), o(), null;
}
}
- function Lp(e, t) {
+ function Rp(e, t) {
this._scope = document.documentElement, this._selector = "::view-transition-" + e + "(" + t + ")";
}
- Lp.prototype.animate = function(e, t) {
+ Rp.prototype.animate = function(e, t) {
return t = typeof t == "number" ? { duration: t } : w({}, t), t.pseudoElement = this._selector, this._scope.animate(e, t);
- }, Lp.prototype.getAnimations = function() {
+ }, Rp.prototype.getAnimations = function() {
for (var e = this._scope, t = this._selector, n = e.getAnimations({ subtree: !0 }), r = [], i = 0; i < n.length; i++) {
var a = n[i].effect;
a !== null && a.target === e && a.pseudoElement === t && r.push(n[i]);
}
return r;
- }, Lp.prototype.getComputedStyle = function() {
+ }, Rp.prototype.getComputedStyle = function() {
return getComputedStyle(this._scope, this._selector);
};
- function Rp(e) {
+ function zp(e) {
return {
name: e,
- group: new Lp("group", e),
- imagePair: new Lp("image-pair", e),
- old: new Lp("old", e),
- new: new Lp("new", e)
+ group: new Rp("group", e),
+ imagePair: new Rp("image-pair", e),
+ old: new Rp("old", e),
+ new: new Rp("new", e)
};
}
- function zp(e) {
+ function Bp(e) {
this._fragmentFiber = e, this._observers = this._eventListeners = null;
}
- zp.prototype.addEventListener = function(e, t, n) {
+ Bp.prototype.addEventListener = function(e, t, n) {
var r = null, i = null;
if (!(n != null && typeof n != "boolean" && (r = n.signal || null, r !== null && r.aborted))) {
this._eventListeners === null && (this._eventListeners = []);
var a = this._eventListeners;
- if (Wp(a, e, t, n) === -1) {
+ if (Gp(a, e, t, n) === -1) {
var o = this, s = t;
n != null && typeof n != "boolean" && !0 === n.once && (s = function(r) {
o.removeEventListener(e, t, n), typeof t == "function" ? t.call(this, r) : t.handleEvent(r);
- }), r !== null && (i = o.removeEventListener.bind(o, e, t, n), r.addEventListener("abort", i, { once: !0 }), i = r.removeEventListener.bind(r, "abort", i)), r = Hp(n), a.push({
+ }), r !== null && (i = o.removeEventListener.bind(o, e, t, n), r.addEventListener("abort", i, { once: !0 }), i = r.removeEventListener.bind(r, "abort", i)), r = Up(n), a.push({
type: e,
listener: t,
optionsOrUseCapture: n,
attachedListener: s,
cleanup: i
- }), f(this._fragmentFiber.child, !1, Bp, e, s, r);
+ }), f(this._fragmentFiber.child, !1, Vp, e, s, r);
}
this._eventListeners = a;
}
};
- function Bp(e, t, n, r) {
+ function Vp(e, t, n, r) {
return _(e).addEventListener(t, n, r), !1;
}
- zp.prototype.removeEventListener = function(e, t, n) {
+ Bp.prototype.removeEventListener = function(e, t, n) {
var r = this._eventListeners;
- if (r !== null && (t = Wp(r, e, t, n), t !== -1)) {
+ if (r !== null && (t = Gp(r, e, t, n), t !== -1)) {
var i = r[t];
n = i.attachedListener;
var a = i.cleanup;
- i = Hp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, Vp, e, n, i), r.splice(t, 1), a !== null && a();
+ i = Up(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, Hp, e, n, i), r.splice(t, 1), a !== null && a();
}
};
- function Vp(e, t, n, r) {
+ function Hp(e, t, n, r) {
return _(e).removeEventListener(t, n, r), !1;
}
- function Hp(e) {
+ function Up(e) {
return e != null && typeof e != "boolean" && (!0 === e.once || e.signal instanceof AbortSignal) ? {
capture: e.capture,
passive: e.passive
} : e;
}
- function Up(e) {
+ function Wp(e) {
return e == null ? "c=0" : typeof e == "boolean" ? "c=" + (e ? "1" : "0") : "c=" + (e.capture ? "1" : "0");
}
- function Wp(e, t, n, r) {
+ function Gp(e, t, n, r) {
if (e.length === 0) return -1;
- r = Up(r);
+ r = Wp(r);
for (var i = 0; i < e.length; i++) {
var a = e[i];
- if (a.type === t && a.listener === n && Up(a.optionsOrUseCapture) === r) return i;
+ if (a.type === t && a.listener === n && Wp(a.optionsOrUseCapture) === r) return i;
}
return -1;
}
- zp.prototype.dispatchEvent = function(e) {
+ Bp.prototype.dispatchEvent = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return !0;
t = _(t);
@@ -7858,74 +7858,74 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
var r = t.nodeType === 9 ? t.createComment("") : document.createTextNode("");
if (n) for (var i = 0; i < n.length; i++) {
var a = n[i];
- r.addEventListener(a.type, a.attachedListener, Hp(a.optionsOrUseCapture));
+ r.addEventListener(a.type, a.attachedListener, Up(a.optionsOrUseCapture));
}
- if (t.appendChild(r), e = r.dispatchEvent(e), n) for (i = 0; i < n.length; i++) a = n[i], r.removeEventListener(a.type, a.attachedListener, Hp(a.optionsOrUseCapture));
+ if (t.appendChild(r), e = r.dispatchEvent(e), n) for (i = 0; i < n.length; i++) a = n[i], r.removeEventListener(a.type, a.attachedListener, Up(a.optionsOrUseCapture));
return t.removeChild(r), e;
}
return t.dispatchEvent(e);
- }, zp.prototype.focus = function(e) {
- f(this._fragmentFiber.child, !0, Gp, e, void 0, void 0);
+ }, Bp.prototype.focus = function(e) {
+ f(this._fragmentFiber.child, !0, Kp, e, void 0, void 0);
};
- function Gp(e, t) {
- return e.tag !== 6 && (e = _(e), _m(e, t));
+ function Kp(e, t) {
+ return e.tag !== 6 && (e = _(e), vm(e, t));
}
- zp.prototype.focusLast = function(e) {
+ Bp.prototype.focusLast = function(e) {
var t = [];
- f(this._fragmentFiber.child, !0, Kp, t, void 0, void 0);
- for (var n = t.length - 1; 0 <= n && !Gp(t[n], e); n--);
+ f(this._fragmentFiber.child, !0, qp, t, void 0, void 0);
+ for (var n = t.length - 1; 0 <= n && !Kp(t[n], e); n--);
};
- function Kp(e, t) {
+ function qp(e, t) {
return t.push(e), !1;
}
- zp.prototype.blur = function() {
+ Bp.prototype.blur = function() {
var e = p(this._fragmentFiber);
- e !== null && (e = _(e), e = pp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, qp, e, void 0, void 0));
+ e !== null && (e = _(e), e = mp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Jp, e, void 0, void 0));
};
- function qp(e, t) {
+ function Jp(e, t) {
return e.tag !== 6 && (e = _(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);
}
- zp.prototype.observeUsing = function(e) {
- this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, Jp, e, void 0, void 0);
+ Bp.prototype.observeUsing = function(e) {
+ this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, Yp, e, void 0, void 0);
};
- function Jp(e, t) {
+ function Yp(e, t) {
return e.tag !== 6 && (e = _(e), t.observe(e), !1);
}
- zp.prototype.unobserveUsing = function(e) {
+ Bp.prototype.unobserveUsing = function(e) {
var t = this._observers;
if (t !== null && t.has(e)) {
- t.delete(e), f(this._fragmentFiber.child, !1, Yp, e, void 0, void 0);
- for (var n = t = 0; n < Xp.length; n++) {
- var r = Xp[n];
- r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : Xp[t++] = r;
+ t.delete(e), f(this._fragmentFiber.child, !1, Xp, e, void 0, void 0);
+ for (var n = t = 0; n < Zp.length; n++) {
+ var r = Zp[n];
+ r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : Zp[t++] = r;
}
- Xp.length = t;
+ Zp.length = t;
}
};
- function Yp(e, t) {
+ function Xp(e, t) {
return e.tag !== 6 && (e = _(e), t.unobserve(e), !1);
}
- var Xp = [], Zp = !1;
- function Qp(e, t, n) {
- Xp.push({
+ var Zp = [], Qp = !1;
+ function $p(e, t, n) {
+ Zp.push({
fragmentInstance: e,
observer: t,
instance: n
- }), Zp || (Zp = !0, vm(function() {
- Zp = !1;
- var e = Xp;
- Xp = [];
+ }), Qp || (Qp = !0, ym(function() {
+ Qp = !1;
+ var e = Zp;
+ Zp = [];
for (var t = 0; t < e.length; t++) {
var n = e[t];
n.observer.unobserve(n.instance);
}
}));
}
- zp.prototype.getClientRects = function() {
+ Bp.prototype.getClientRects = function() {
var e = [];
- return f(this._fragmentFiber.child, !1, $p, e, void 0, void 0), e;
+ return f(this._fragmentFiber.child, !1, em, e, void 0, void 0), e;
};
- function $p(e, t) {
+ function em(e, t) {
if (e.tag === 6) {
e = e.stateNode;
var n = e.ownerDocument.createRange();
@@ -7933,14 +7933,14 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
} else e = _(e), t.push.apply(t, e.getClientRects());
return !1;
}
- zp.prototype.getRootNode = function(e) {
+ Bp.prototype.getRootNode = function(e) {
var t = p(this._fragmentFiber);
return t === null ? this : _(t).getRootNode(e);
- }, zp.prototype.compareDocumentPosition = function(e) {
+ }, Bp.prototype.compareDocumentPosition = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return Node.DOCUMENT_POSITION_DISCONNECTED;
var n = [];
- f(this._fragmentFiber.child, !1, Kp, n, void 0, void 0);
+ f(this._fragmentFiber.child, !1, qp, n, void 0, void 0);
var r = _(t);
if (n.length === 0) {
if (n = r, m(this._fragmentFiber)) {
@@ -7966,10 +7966,10 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
if (a == null) return Node.DOCUMENT_POSITION_DISCONNECTED;
r = a.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_CONTAINED_BY, a = a.compareDocumentPosition(i) & Node.DOCUMENT_POSITION_CONTAINED_BY;
var o = t.compareDocumentPosition(e), s = i.compareDocumentPosition(e), c = o & Node.DOCUMENT_POSITION_CONTAINED_BY || s & Node.DOCUMENT_POSITION_CONTAINED_BY;
- return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || em(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
+ return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || tm(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
};
- function em(e, t, n, r, i) {
- var a = jt(i);
+ function tm(e, t, n, r, i) {
+ var a = Mt(i);
if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {
if (n = !!a) a: {
for (; a !== null;) {
@@ -7999,20 +7999,20 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
return e & Node.DOCUMENT_POSITION_PRECEDING ? ((t = !!a) && !(t = a === n) && (t = C(n, a, S), t === null ? t = !1 : (f(t, !0, b, a, n), a = v, v = null, t = a !== null)), t) : e & Node.DOCUMENT_POSITION_FOLLOWING ? ((t = !!a) && !(t = a === r) && (t = C(r, a, S), t === null ? t = !1 : (f(t, !0, x, a, r), a = v, y = v = null, t = a !== null)), t) : !1;
}
- function tm(e, t) {
+ function nm(e, t) {
var n = e.ownerDocument.createRange();
n.selectNodeContents(e), e = n.getBoundingClientRect(), window.scrollTo(window.scrollX + e.left, t ? window.scrollY + e.top : window.scrollY + e.bottom - window.innerHeight);
}
- zp.prototype.scrollIntoView = function(e) {
+ Bp.prototype.scrollIntoView = function(e) {
if (typeof e == "object") throw Error(i(566));
var t = [];
- f(this._fragmentFiber.child, !1, Kp, t, void 0, void 0);
+ f(this._fragmentFiber.child, !1, qp, t, void 0, void 0);
var n = !1 !== e;
if (t.length === 0) {
var r = h(this._fragmentFiber);
if (r = n ? r[1] || r[0] || p(this._fragmentFiber) : r[0] || r[1], r === null) return;
if (r.tag === 6) {
- e = _(r), tm(e, n);
+ e = _(r), nm(e, n);
return;
}
if (r = _(r), r.nodeType !== 9) {
@@ -8025,40 +8025,40 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
for (r = n ? t.length - 1 : 0; r !== (n ? -1 : t.length);) {
var a = t[r];
- a.tag === 6 ? (a = _(a), tm(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
+ a.tag === 6 ? (a = _(a), nm(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
}
};
- function nm(e, t) {
- return e = _(e), rm(e, t), !1;
- }
function rm(e, t) {
- e.reactFragments ??= /* @__PURE__ */ new Set(), e.reactFragments.add(t);
+ return e = _(e), im(e, t), !1;
}
function im(e, t) {
+ e.reactFragments ??= /* @__PURE__ */ new Set(), e.reactFragments.add(t);
+ }
+ function am(e, t) {
var n = t._eventListeners;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = n[r];
- e.addEventListener(i.type, i.attachedListener, Hp(i.optionsOrUseCapture));
+ e.addEventListener(i.type, i.attachedListener, Up(i.optionsOrUseCapture));
}
e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {
- for (var r = 0, i = 0; i < Xp.length; i++) {
- var a = Xp[i];
- (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (Xp[r++] = a);
+ for (var r = 0, i = 0; i < Zp.length; i++) {
+ var a = Zp[i];
+ (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (Zp[r++] = a);
}
- Xp.length = r, n.observe(e);
- }), rm(e, t));
+ Zp.length = r, n.observe(e);
+ }), im(e, t));
}
- function am(e, t) {
+ function om(e, t) {
var n = t._eventListeners;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = n[r];
- e.removeEventListener(i.type, i.attachedListener, Hp(i.optionsOrUseCapture));
+ e.removeEventListener(i.type, i.attachedListener, Up(i.optionsOrUseCapture));
}
e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {
- typeof n.rootMargin == "string" ? Qp(t, n, e) : n.unobserve(e);
+ typeof n.rootMargin == "string" ? $p(t, n, e) : n.unobserve(e);
}), e.reactFragments != null && e.reactFragments.delete(t));
}
- function om(e) {
+ function sm(e) {
var t = e.firstChild;
for (t && t.nodeType === 10 && (t = t.nextSibling); t;) {
var n = t;
@@ -8066,7 +8066,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case "HTML":
case "HEAD":
case "BODY":
- om(n), At(n);
+ sm(n), jt(n);
continue;
case "SCRIPT":
case "STYLE": continue;
@@ -8075,7 +8075,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
e.removeChild(n);
}
}
- function sm(e, t, n, r) {
+ function cm(e, t, n, r) {
for (; e.nodeType === 1;) {
var i = n;
if (e.nodeName.toLowerCase() !== t.toLowerCase()) {
@@ -8085,7 +8085,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
var a = i.name == null ? null : "" + i.name;
if (i.type === "hidden" && e.getAttribute("name") === a) return e;
} else return e;
- } else if (!e[Ot]) switch (t) {
+ } else if (!e[kt]) switch (t) {
case "meta":
if (!e.hasAttribute("itemprop")) break;
return e;
@@ -8100,26 +8100,26 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
return e;
default: return e;
}
- if (e = pm(e.nextSibling), e === null) break;
+ if (e = mm(e.nextSibling), e === null) break;
}
return null;
}
- function cm(e, t, n) {
+ function lm(e, t, n) {
if (t === "") return null;
- for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = pm(e.nextSibling), e === null)) return null;
+ for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = mm(e.nextSibling), e === null)) return null;
return e;
}
- function lm(e, t) {
- for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = pm(e.nextSibling), e === null)) return null;
+ function um(e, t) {
+ for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = mm(e.nextSibling), e === null)) return null;
return e;
}
- function um(e) {
+ function dm(e) {
return e.data === "$?" || e.data === "$~";
}
- function dm(e) {
+ function fm(e) {
return e.data === "$!" || e.data === "$?" && e.ownerDocument.readyState !== "loading";
}
- function fm(e, t) {
+ function pm(e, t) {
var n = e.ownerDocument;
if (e.data === "$~") e._reactRetry = t;
else if (e.data !== "$?" || n.readyState !== "loading") t();
@@ -8130,7 +8130,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
n.addEventListener("DOMContentLoaded", r), e._reactRetry = r;
}
}
- function pm(e) {
+ function mm(e) {
for (; e != null; e = e.nextSibling) {
var t = e.nodeType;
if (t === 1 || t === 3) break;
@@ -8141,14 +8141,14 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
return e;
}
- var mm = null;
- function hm(e) {
+ var hm = null;
+ function gm(e) {
e = e.nextSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
var n = e.data;
if (n === "/$" || n === "/&") {
- if (t === 0) return pm(e.nextSibling);
+ if (t === 0) return mm(e.nextSibling);
t--;
} else n !== "$" && n !== "$!" && n !== "$?" && n !== "$~" && n !== "&" || t++;
}
@@ -8156,7 +8156,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
return null;
}
- function gm(e) {
+ function _m(e) {
e = e.previousSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
@@ -8170,7 +8170,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
return null;
}
- function _m(e, t) {
+ function vm(e, t) {
function n() {
r = !0;
}
@@ -8183,15 +8183,15 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
return r;
}
- function vm(e) {
- Cp(function() {
- Cp(function(t) {
+ function ym(e) {
+ wp(function() {
+ wp(function(t) {
return e(t);
});
});
}
- function ym(e, t, n) {
- switch (t = pp(n), e) {
+ function bm(e, t, n) {
+ switch (t = mp(n), e) {
case "html":
if (e = t.documentElement, !e) throw Error(i(452));
return e;
@@ -8204,122 +8204,122 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
default: throw Error(i(451));
}
}
- function bm(e, t, n) {
+ function xm(e, t, n) {
for (var r in n) {
var i = n[r];
- n.hasOwnProperty(r) && i != null && ip(e, t, r, null, sp, i);
+ n.hasOwnProperty(r) && i != null && ap(e, t, r, null, cp, i);
}
- n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === vn && (e.onclick = null), At(e);
+ n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === yn && (e.onclick = null), jt(e);
}
- function xm(e) {
+ function Sm(e) {
for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
- At(e);
+ jt(e);
}
- var Sm = /* @__PURE__ */ new Map(), Cm = /* @__PURE__ */ new Set();
- function wm(e) {
+ var Cm = /* @__PURE__ */ new Map(), wm = /* @__PURE__ */ new Set();
+ function Tm(e) {
if (typeof e.getRootNode == "function") {
var t = e.getRootNode();
if (t.nodeType === 9 || t.nodeType === 11) return t;
}
return e.nodeType === 9 ? e : e.ownerDocument;
}
- var Tm = de.d;
- de.d = {
- f: Em,
- r: Dm,
- D: Am,
- C: jm,
- L: Mm,
- m: Nm,
- X: Fm,
- S: Pm,
- M: Im
- };
- function Em() {
- var e = Tm.f(), t = Bd();
+ var Em = fe.d;
+ fe.d = {
+ f: Dm,
+ r: Om,
+ D: jm,
+ C: Mm,
+ L: Nm,
+ m: Pm,
+ X: Im,
+ S: Fm,
+ M: Lm
+ };
+ function Dm() {
+ var e = Em.f(), t = Vd();
return e || t;
}
- function Dm(e) {
- var t = Mt(e);
- t !== null && t.tag === 5 && t.type === "form" ? Xs(t) : Tm.r(e);
+ function Om(e) {
+ var t = Nt(e);
+ t !== null && t.tag === 5 && t.type === "form" ? Zs(t) : Em.r(e);
}
- var Om = typeof document > "u" ? null : document;
- function km(e, t, n) {
- var r = Om;
+ var km = typeof document > "u" ? null : document;
+ function Am(e, t, n) {
+ var r = km;
if (r && typeof t == "string" && t) {
- var i = nn(t);
- i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), Cm.has(i) || (Cm.add(i), e = {
+ var i = rn(t);
+ i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), wm.has(i) || (wm.add(i), e = {
rel: e,
crossOrigin: n,
href: t
- }, r.querySelector(i) === null && (t = r.createElement("link"), op(t, "link", e), Ft(t), r.head.appendChild(t)));
+ }, r.querySelector(i) === null && (t = r.createElement("link"), sp(t, "link", e), It(t), r.head.appendChild(t)));
}
}
- function Am(e) {
- Tm.D(e), km("dns-prefetch", e, null);
+ function jm(e) {
+ Em.D(e), Am("dns-prefetch", e, null);
}
- function jm(e, t) {
- Tm.C(e, t), km("preconnect", e, t);
+ function Mm(e, t) {
+ Em.C(e, t), Am("preconnect", e, t);
}
- function Mm(e, t, n) {
- Tm.L(e, t, n);
- var r = Om;
+ function Nm(e, t, n) {
+ Em.L(e, t, n);
+ var r = km;
if (r && e && t) {
- var i = "link[rel=\"preload\"][as=\"" + nn(t) + "\"]";
- t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + nn(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + nn(n.imageSizes) + "\"]")) : i += "[href=\"" + nn(e) + "\"]";
+ var i = "link[rel=\"preload\"][as=\"" + rn(t) + "\"]";
+ t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + rn(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + rn(n.imageSizes) + "\"]")) : i += "[href=\"" + rn(e) + "\"]";
var a = i;
switch (t) {
case "style":
- a = Rm(e);
+ a = zm(e);
break;
- case "script": a = Hm(e);
+ case "script": a = Um(e);
}
- if (!(Sm.has(a) || (e = w({
+ if (!(Cm.has(a) || (e = w({
rel: "preload",
href: t === "image" && n && n.imageSrcSet ? void 0 : e,
as: t
- }, n), Sm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(zm(a)) || t === "script" && r.querySelector(Um(a))))) {
+ }, n), Cm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Bm(a)) || t === "script" && r.querySelector(Wm(a))))) {
var o = r.createElement("link");
- op(o, "link", e), t === "style" && (o[kt] = !0, o.onload = o.onerror = function() {
- It(o);
- }), Ft(o), r.head.appendChild(o);
+ sp(o, "link", e), t === "style" && (o[At] = !0, o.onload = o.onerror = function() {
+ Lt(o);
+ }), It(o), r.head.appendChild(o);
}
}
}
- function Nm(e, t) {
- Tm.m(e, t);
- var n = Om;
+ function Pm(e, t) {
+ Em.m(e, t);
+ var n = km;
if (n && e) {
- var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + nn(r) + "\"][href=\"" + nn(e) + "\"]", a = i;
+ var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + rn(r) + "\"][href=\"" + rn(e) + "\"]", a = i;
switch (r) {
case "audioworklet":
case "paintworklet":
case "serviceworker":
case "sharedworker":
case "worker":
- case "script": a = Hm(e);
+ case "script": a = Um(e);
}
- if (!Sm.has(a) && (e = w({
+ if (!Cm.has(a) && (e = w({
rel: "modulepreload",
href: e
- }, t), Sm.set(a, e), n.querySelector(i) === null)) {
+ }, t), Cm.set(a, e), n.querySelector(i) === null)) {
switch (r) {
case "audioworklet":
case "paintworklet":
case "serviceworker":
case "sharedworker":
case "worker":
- case "script": if (n.querySelector(Um(a))) return;
+ case "script": if (n.querySelector(Wm(a))) return;
}
- r = n.createElement("link"), op(r, "link", e), Ft(r), n.head.appendChild(r);
+ r = n.createElement("link"), sp(r, "link", e), It(r), n.head.appendChild(r);
}
}
}
- function Pm(e, t, n) {
- Tm.S(e, t, n);
- var r = Om;
+ function Fm(e, t, n) {
+ Em.S(e, t, n);
+ var r = km;
if (r && e) {
- var i = Pt(r).hoistableStyles, a = Rm(e);
+ var i = Ft(r).hoistableStyles, a = zm(e);
t ||= "default";
var o = i.get(a);
if (!o) {
@@ -8327,21 +8327,21 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
loading: 0,
preload: null
};
- if (o = r.querySelector(zm(a))) s.loading = 5;
+ if (o = r.querySelector(Bm(a))) s.loading = 5;
else {
e = w({
rel: "stylesheet",
href: e,
"data-precedence": t
- }, n), (n = Sm.get(a)) && Km(e, n);
+ }, n), (n = Cm.get(a)) && qm(e, n);
var c = o = r.createElement("link");
- Ft(c), op(c, "link", e), c._p = new Promise(function(e, t) {
+ It(c), sp(c, "link", e), c._p = new Promise(function(e, t) {
c.onload = e, c.onerror = t;
}), c.addEventListener("load", function() {
s.loading |= 1;
}), c.addEventListener("error", function() {
s.loading |= 2;
- }), s.loading |= 4, Gm(o, t, r);
+ }), s.loading |= 4, Km(o, t, r);
}
o = {
type: "stylesheet",
@@ -8352,15 +8352,15 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
}
}
- function Fm(e, t) {
- Tm.X(e, t);
- var n = Om;
+ function Im(e, t) {
+ Em.X(e, t);
+ var n = km;
if (n && e) {
- var r = Pt(n).hoistableScripts, i = Hm(e), a = r.get(i);
- a || (a = n.querySelector(Um(i)), a || (e = w({
+ var r = Ft(n).hoistableScripts, i = Um(e), a = r.get(i);
+ a || (a = n.querySelector(Wm(i)), a || (e = w({
src: e,
async: !0
- }, t), (t = Sm.get(i)) && qm(e, t), a = n.createElement("script"), Ft(a), op(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = Cm.get(i)) && Jm(e, t), a = n.createElement("script"), It(a), sp(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -8368,16 +8368,16 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}, r.set(i, a));
}
}
- function Im(e, t) {
- Tm.M(e, t);
- var n = Om;
+ function Lm(e, t) {
+ Em.M(e, t);
+ var n = km;
if (n && e) {
- var r = Pt(n).hoistableScripts, i = Hm(e), a = r.get(i);
- a || (a = n.querySelector(Um(i)), a || (e = w({
+ var r = Ft(n).hoistableScripts, i = Um(e), a = r.get(i);
+ a || (a = n.querySelector(Wm(i)), a || (e = w({
src: e,
async: !0,
type: "module"
- }, t), (t = Sm.get(i)) && qm(e, t), a = n.createElement("script"), Ft(a), op(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = Cm.get(i)) && Jm(e, t), a = n.createElement("script"), It(a), sp(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -8385,13 +8385,13 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}, r.set(i, a));
}
}
- function Lm(e, t, n, r) {
- var a = (a = be.current) ? wm(a) : null;
+ function Rm(e, t, n, r) {
+ var a = (a = xe.current) ? Tm(a) : null;
if (!a) throw Error(i(446));
switch (e) {
case "meta":
case "title": return null;
- case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Rm(n.href), t = Pt(a).hoistableStyles, r = t.get(n), r || (r = {
+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = zm(n.href), t = Ft(a).hoistableStyles, r = t.get(n), r || (r = {
type: "style",
instance: null,
count: 0,
@@ -8404,8 +8404,8 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
};
case "link":
if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {
- e = Rm(n.href);
- var o = Pt(a).hoistableStyles, s = o.get(e);
+ e = zm(n.href);
+ var o = Ft(a).hoistableStyles, s = o.get(e);
if (s || (a = a.ownerDocument || a, s = {
type: "stylesheet",
instance: null,
@@ -8414,7 +8414,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
loading: 0,
preload: null
}
- }, o.set(e, s), (o = a.querySelector(zm(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = Sm.get(e), o || (o = {
+ }, o.set(e, s), (o = a.querySelector(Bm(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = Cm.get(e), o || (o = {
rel: "preload",
as: "style",
href: n.href,
@@ -8423,12 +8423,12 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
media: n.media,
hrefLang: n.hrefLang,
referrerPolicy: n.referrerPolicy
- }, Sm.set(e, o)), Vm(a, e, o, s.state))), t && r === null) throw Error(i(528, ""));
+ }, Cm.set(e, o)), Hm(a, e, o, s.state))), t && r === null) throw Error(i(528, ""));
return s;
}
if (t && r !== null) throw Error(i(529, ""));
return null;
- case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = Hm(n), t = Pt(a).hoistableScripts, r = t.get(n), r || (r = {
+ case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = Um(n), t = Ft(a).hoistableScripts, r = t.get(n), r || (r = {
type: "script",
instance: null,
count: 0,
@@ -8442,66 +8442,66 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
default: throw Error(i(444, e));
}
}
- function Rm(e) {
- return "href=\"" + nn(e) + "\"";
- }
function zm(e) {
- return "link[rel=\"stylesheet\"][" + e + "]";
+ return "href=\"" + rn(e) + "\"";
}
function Bm(e) {
+ return "link[rel=\"stylesheet\"][" + e + "]";
+ }
+ function Vm(e) {
return w({}, e, {
"data-precedence": e.precedence,
precedence: null
});
}
- function Vm(e, t, n, r) {
+ function Hm(e, t, n, r) {
if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {
- if (!0 !== t[kt]) {
+ if (!0 !== t[At]) {
r.loading = 1;
return;
}
- } else t = e.createElement("link"), t[kt] = !0, t.onload = t.onerror = It.bind(null, t), op(t, "link", n), Ft(t), e.head.appendChild(t);
+ } else t = e.createElement("link"), t[At] = !0, t.onload = t.onerror = Lt.bind(null, t), sp(t, "link", n), It(t), e.head.appendChild(t);
r.preload = t, t.addEventListener("load", function() {
return r.loading |= 1;
}), t.addEventListener("error", function() {
return r.loading |= 2;
});
}
- function Hm(e) {
- return "[src=\"" + nn(e) + "\"]";
- }
function Um(e) {
+ return "[src=\"" + rn(e) + "\"]";
+ }
+ function Wm(e) {
return "script[async]" + e;
}
- function Wm(e, t, n) {
+ function Gm(e, t, n) {
if (t.count++, t.instance === null) switch (t.type) {
case "style":
- var r = e.querySelector("style[data-href~=\"" + nn(n.href) + "\"]");
- if (r) return t.instance = r, Ft(r), r;
+ var r = e.querySelector("style[data-href~=\"" + rn(n.href) + "\"]");
+ if (r) return t.instance = r, It(r), r;
var a = w({}, n, {
"data-href": n.href,
"data-precedence": n.precedence,
href: null,
precedence: null
});
- return r = (e.ownerDocument || e).createElement("style"), Ft(r), op(r, "style", a), Gm(r, n.precedence, e), t.instance = r;
+ return r = (e.ownerDocument || e).createElement("style"), It(r), sp(r, "style", a), Km(r, n.precedence, e), t.instance = r;
case "stylesheet":
- a = Rm(n.href);
- var o = e.querySelector(zm(a));
- if (o) return t.state.loading |= 4, t.instance = o, Ft(o), o;
- r = Bm(n), (a = Sm.get(a)) && Km(r, a), o = (e.ownerDocument || e).createElement("link"), Ft(o);
+ a = zm(n.href);
+ var o = e.querySelector(Bm(a));
+ if (o) return t.state.loading |= 4, t.instance = o, It(o), o;
+ r = Vm(n), (a = Cm.get(a)) && qm(r, a), o = (e.ownerDocument || e).createElement("link"), It(o);
var s = o;
return s._p = new Promise(function(e, t) {
s.onload = e, s.onerror = t;
- }), op(o, "link", r), t.state.loading |= 4, Gm(o, n.precedence, e), t.instance = o;
- case "script": return o = Hm(n.src), (a = e.querySelector(Um(o))) ? (t.instance = a, Ft(a), a) : (r = n, (a = Sm.get(o)) && (r = w({}, n), qm(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Ft(a), op(a, "link", r), e.head.appendChild(a), t.instance = a);
+ }), sp(o, "link", r), t.state.loading |= 4, Km(o, n.precedence, e), t.instance = o;
+ case "script": return o = Um(n.src), (a = e.querySelector(Wm(o))) ? (t.instance = a, It(a), a) : (r = n, (a = Cm.get(o)) && (r = w({}, n), Jm(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), It(a), sp(a, "link", r), e.head.appendChild(a), t.instance = a);
case "void": return null;
default: throw Error(i(443, t.type));
}
- else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, Gm(r, n.precedence, e));
+ else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, Km(r, n.precedence, e));
return t.instance;
}
- function Gm(e, t, n) {
+ function Km(e, t, n) {
for (var r = n.querySelectorAll("link[rel=\"stylesheet\"][data-precedence],style[data-precedence]"), i = r.length ? r[r.length - 1] : null, a = i, o = 0; o < r.length; o++) {
var s = r[o];
if (s.dataset.precedence === t) a = s;
@@ -8509,22 +8509,22 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
a ? a.parentNode.insertBefore(e, a.nextSibling) : (t = n.nodeType === 9 ? n.head : n, t.insertBefore(e, t.firstChild));
}
- function Km(e, t) {
+ function qm(e, t) {
e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.title ??= t.title;
}
- function qm(e, t) {
+ function Jm(e, t) {
e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.integrity ??= t.integrity;
}
- var Jm = null;
- function Ym(e, t, n) {
- if (Jm === null) {
- var r = /* @__PURE__ */ new Map(), i = Jm = /* @__PURE__ */ new Map();
+ var Ym = null;
+ function Xm(e, t, n) {
+ if (Ym === null) {
+ var r = /* @__PURE__ */ new Map(), i = Ym = /* @__PURE__ */ new Map();
i.set(n, r);
- } else i = Jm, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));
+ } else i = Ym, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));
if (r.has(e)) return r;
for (r.set(e, null), n = n.getElementsByTagName(e), i = 0; i < n.length; i++) {
var a = n[i];
- if (!(a[Ot] || a[St] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
+ if (!(a[kt] || a[Ct] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
var o = a.getAttribute(t) || "";
o = e + o;
var s = r.get(o);
@@ -8533,10 +8533,10 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
return r;
}
- function Xm(e, t, n) {
+ function Zm(e, t, n) {
e = e.ownerDocument || e, e.head.insertBefore(n, t === "title" ? e.querySelector("head > title") : null);
}
- function Zm(e, t, n) {
+ function Qm(e, t, n) {
if (n === 1 || t.itemProp != null) return !1;
switch (e) {
case "meta":
@@ -8554,196 +8554,196 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
return !1;
}
- function Qm(e, t) {
+ function $m(e, t) {
return e === "img" && t.src != null && t.src !== "" && t.onLoad == null && t.loading !== "lazy";
}
- function $m(e) {
+ function eh(e) {
return !(e.type === "stylesheet" && !(e.state.loading & 3));
}
- function eh(e) {
+ function th(e) {
return (e.width || 100) * (e.height || 100) * (typeof devicePixelRatio == "number" ? devicePixelRatio : 1) * .25;
}
- function th(e, t) {
- typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += eh(t), e.suspenseyImages.push(t)), e = sh.bind(e), t.decode().then(e, e));
+ function nh(e, t) {
+ typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += th(t), e.suspenseyImages.push(t)), e = ch.bind(e), t.decode().then(e, e));
}
- function nh(e, t, n, r) {
+ function rh(e, t, n, r) {
if (n.type === "stylesheet" && (typeof r.media != "string" || !1 !== matchMedia(r.media).matches) && !(n.state.loading & 4)) {
if (n.instance === null) {
- var i = Rm(r.href), a = t.querySelector(zm(i));
+ var i = zm(r.href), a = t.querySelector(Bm(i));
if (a) {
- t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = oh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Ft(a);
+ t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = sh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, It(a);
return;
}
- a = t.ownerDocument || t, r = Bm(r), (i = Sm.get(i)) && Km(r, i), a = a.createElement("link"), Ft(a);
+ a = t.ownerDocument || t, r = Vm(r), (i = Cm.get(i)) && qm(r, i), a = a.createElement("link"), It(a);
var o = a;
o._p = new Promise(function(e, t) {
o.onload = e, o.onerror = t;
- }), op(a, "link", r), n.instance = a;
+ }), sp(a, "link", r), n.instance = a;
}
- e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = oh.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
+ e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = sh.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
}
}
- var rh = 0;
- function ih(e, t) {
- return e.stylesheets && e.count === 0 && lh(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {
+ var ih = 0;
+ function ah(e, t) {
+ return e.stylesheets && e.count === 0 && uh(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {
var r = setTimeout(function() {
- if (e.stylesheets && lh(e, e.stylesheets), e.unsuspend) {
+ if (e.stylesheets && uh(e, e.stylesheets), e.unsuspend) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
}, 6e4 + t);
- 0 < e.imgBytes && rh === 0 && (rh = 62500 * up());
+ 0 < e.imgBytes && ih === 0 && (ih = 62500 * dp());
var i = setTimeout(function() {
- if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && lh(e, e.stylesheets), e.unsuspend)) {
+ if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && uh(e, e.stylesheets), e.unsuspend)) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
- }, (e.imgBytes > rh ? 50 : 800) + t);
+ }, (e.imgBytes > ih ? 50 : 800) + t);
return e.unsuspend = n, function() {
e.unsuspend = null, clearTimeout(r), clearTimeout(i);
};
} : null;
}
- function ah(e) {
+ function oh(e) {
if (e.count === 0 && (e.imgCount === 0 || !e.waitingForImages)) {
- if (e.stylesheets) lh(e, e.stylesheets);
+ if (e.stylesheets) uh(e, e.stylesheets);
else if (e.unsuspend) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
}
}
- function oh() {
- this.count--, ah(this);
- }
function sh() {
- this.imgCount--, ah(this);
+ this.count--, oh(this);
}
- var ch = null;
- function lh(e, t) {
- e.stylesheets = null, e.unsuspend !== null && (e.count++, ch = /* @__PURE__ */ new Map(), t.forEach(uh, e), ch = null, oh.call(e));
+ function ch() {
+ this.imgCount--, oh(this);
}
+ var lh = null;
function uh(e, t) {
+ e.stylesheets = null, e.unsuspend !== null && (e.count++, lh = /* @__PURE__ */ new Map(), t.forEach(dh, e), lh = null, sh.call(e));
+ }
+ function dh(e, t) {
if (!(t.state.loading & 4)) {
- var n = ch.get(e);
+ var n = lh.get(e);
if (n) var r = n.get(null);
else {
- n = /* @__PURE__ */ new Map(), ch.set(e, n);
+ n = /* @__PURE__ */ new Map(), lh.set(e, n);
for (var i = e.querySelectorAll("link[data-precedence],style[data-precedence]"), a = 0; a < i.length; a++) {
var o = i[a];
(o.nodeName === "LINK" || o.getAttribute("media") !== "not all") && (n.set(o.dataset.precedence, o), r = o);
}
r && n.set(null, r);
}
- i = t.instance, o = i.getAttribute("data-precedence"), a = n.get(o) || r, a === r && n.set(null, i), n.set(o, i), this.count++, r = oh.bind(this), i.addEventListener("load", r), i.addEventListener("error", r), a ? a.parentNode.insertBefore(i, a.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(i, e.firstChild)), t.state.loading |= 4;
+ i = t.instance, o = i.getAttribute("data-precedence"), a = n.get(o) || r, a === r && n.set(null, i), n.set(o, i), this.count++, r = sh.bind(this), i.addEventListener("load", r), i.addEventListener("error", r), a ? a.parentNode.insertBefore(i, a.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(i, e.firstChild)), t.state.loading |= 4;
}
}
- var dh = {
+ var fh = {
$$typeof: M,
Provider: null,
Consumer: null,
- _currentValue: fe,
- _currentValue2: fe,
+ _currentValue: pe,
+ _currentValue2: pe,
_threadCount: 0
};
- function fh(e, t, n, r, i, a, o, s, c) {
- this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = dt(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = dt(0), this.hiddenUpdates = dt(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();
+ function ph(e, t, n, r, i, a, o, s, c) {
+ this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = ft(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = ft(0), this.hiddenUpdates = ft(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();
}
- function ph(e, t, n, r, i, a, o, s, c, l, u, d) {
- return e = new fh(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Ai(3, null, null, t), e.current = a, a.stateNode = e, t = Ta(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
+ function mh(e, t, n, r, i, a, o, s, c, l, u, d) {
+ return e = new ph(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = ji(3, null, null, t), e.current = a, a.stateNode = e, t = Ea(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
element: r,
isDehydrated: n,
cache: t
- }, ao(a), e;
+ }, oo(a), e;
}
- function mh(e) {
- return e ? (e = Oi, e) : Oi;
+ function hh(e) {
+ return e ? (e = ki, e) : ki;
}
- function hh(e, t, n, r, i, a) {
- i = mh(i), r.context === null ? r.context = i : r.pendingContext = i, r = so(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = co(e, r, t), n !== null && (Fd(n, e, t), lo(n, e, t));
+ function gh(e, t, n, r, i, a) {
+ i = hh(i), r.context === null ? r.context = i : r.pendingContext = i, r = co(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = lo(e, r, t), n !== null && (Id(n, e, t), uo(n, e, t));
}
- function gh(e, t) {
+ function _h(e, t) {
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
var n = e.retryLane;
e.retryLane = n !== 0 && n < t ? n : t;
}
}
- function _h(e, t) {
- gh(e, t), (e = e.alternate) && gh(e, t);
+ function vh(e, t) {
+ _h(e, t), (e = e.alternate) && _h(e, t);
}
- function vh(e) {
+ function yh(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = Ti(e, 67108864);
- t !== null && Fd(t, e, 67108864), _h(e, 67108864);
+ var t = Ei(e, 67108864);
+ t !== null && Id(t, e, 67108864), vh(e, 67108864);
}
}
- function yh(e) {
+ function bh(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = Md();
- t = _t(t);
- var n = Ti(e, t);
- n !== null && Fd(n, e, t), _h(e, t);
+ var t = Nd();
+ t = vt(t);
+ var n = Ei(e, t);
+ n !== null && Id(n, e, t), vh(e, t);
}
}
- var bh = !0;
- function xh(e, t, n, r) {
- var i = L.T;
- L.T = null;
- var a = de.p;
+ var xh = !0;
+ function Sh(e, t, n, r) {
+ var i = I.T;
+ I.T = null;
+ var a = fe.p;
try {
- de.p = 2, Ch(e, t, n, r);
+ fe.p = 2, wh(e, t, n, r);
} finally {
- de.p = a, L.T = i;
+ fe.p = a, I.T = i;
}
}
- function Sh(e, t, n, r) {
- var i = L.T;
- L.T = null;
- var a = de.p;
+ function Ch(e, t, n, r) {
+ var i = I.T;
+ I.T = null;
+ var a = fe.p;
try {
- de.p = 8, Ch(e, t, n, r);
+ fe.p = 8, wh(e, t, n, r);
} finally {
- de.p = a, L.T = i;
+ fe.p = a, I.T = i;
}
}
- function Ch(e, t, n, r) {
- if (bh) {
- var i = wh(r);
- if (i === null) Yf(e, t, r, Th, n), Ih(e, r);
- else if (Rh(i, e, t, n, r)) r.stopPropagation();
- else if (Ih(e, r), t & 4 && -1 < Fh.indexOf(e)) {
+ function wh(e, t, n, r) {
+ if (xh) {
+ var i = Th(r);
+ if (i === null) Xf(e, t, r, Eh, n), Lh(e, r);
+ else if (zh(i, e, t, n, r)) r.stopPropagation();
+ else if (Lh(e, r), t & 4 && -1 < Ih.indexOf(e)) {
for (; i !== null;) {
- var a = Mt(i);
+ var a = Nt(i);
if (a !== null) switch (a.tag) {
case 3:
if (a = a.stateNode, a.current.memoizedState.isDehydrated) {
- var o = at(a.pendingLanes);
+ var o = ot(a.pendingLanes);
if (o !== 0) {
var s = a;
for (s.pendingLanes |= 2, s.entangledLanes |= 2; o;) {
- var c = 1 << 31 - Qe(o);
+ var c = 1 << 31 - $e(o);
s.entanglements[1] |= c, o &= ~c;
}
- Of(a), !(Xu & 6) && (_d = R() + 500, kf(0, !1));
+ kf(a), !(Zu & 6) && (vd = L() + 500, Af(0, !1));
}
}
break;
case 31:
- case 13: s = Ti(a, 2), s !== null && Fd(s, a, 2), Bd(), _h(a, 2);
+ case 13: s = Ei(a, 2), s !== null && Id(s, a, 2), Vd(), vh(a, 2);
}
- if (a = wh(r), a === null && Yf(e, t, r, Th, n), a === i) break;
+ if (a = Th(r), a === null && Xf(e, t, r, Eh, n), a === i) break;
i = a;
}
i !== null && r.stopPropagation();
- } else Yf(e, t, r, null, n);
+ } else Xf(e, t, r, null, n);
}
}
- function wh(e) {
- return e = bn(e), Eh(e);
+ function Th(e) {
+ return e = xn(e), Dh(e);
}
- var Th = null;
- function Eh(e) {
- if (Th = null, e = jt(e), e !== null) {
+ var Eh = null;
+ function Dh(e) {
+ if (Eh = null, e = Mt(e), e !== null) {
var t = o(e);
if (t === null) e = null;
else {
@@ -8760,9 +8760,9 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
} else t !== e && (e = null);
}
}
- return Th = e, null;
+ return Eh = e, null;
}
- function Dh(e) {
+ function Oh(e) {
switch (e) {
case "beforetoggle":
case "cancel":
@@ -8836,77 +8836,77 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
case "mouseleave":
case "pointerenter":
case "pointerleave": return 8;
- case "message": switch (Ve()) {
- case He: return 2;
- case Ue: return 8;
- case We:
- case Ge: return 32;
- case Ke: return 268435456;
+ case "message": switch (He()) {
+ case Ue: return 2;
+ case We: return 8;
+ case Ge:
+ case Ke: return 32;
+ case qe: return 268435456;
default: return 32;
}
default: return 32;
}
}
- var Oh = !1, kh = null, Ah = null, jh = null, Mh = /* @__PURE__ */ new Map(), Nh = /* @__PURE__ */ new Map(), Ph = [], Fh = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");
- function Ih(e, t) {
+ var kh = !1, Ah = null, jh = null, Mh = null, Nh = /* @__PURE__ */ new Map(), Ph = /* @__PURE__ */ new Map(), Fh = [], Ih = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");
+ function Lh(e, t) {
switch (e) {
case "focusin":
case "focusout":
- kh = null;
+ Ah = null;
break;
case "dragenter":
case "dragleave":
- Ah = null;
+ jh = null;
break;
case "mouseover":
case "mouseout":
- jh = null;
+ Mh = null;
break;
case "pointerover":
case "pointerout":
- Mh.delete(t.pointerId);
+ Nh.delete(t.pointerId);
break;
case "gotpointercapture":
- case "lostpointercapture": Nh.delete(t.pointerId);
+ case "lostpointercapture": Ph.delete(t.pointerId);
}
}
- function Lh(e, t, n, r, i, a) {
+ function Rh(e, t, n, r, i, a) {
return e === null || e.nativeEvent !== a ? (e = {
blockedOn: t,
domEventName: n,
eventSystemFlags: r,
nativeEvent: a,
targetContainers: [i]
- }, t !== null && (t = Mt(t), t !== null && vh(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
+ }, t !== null && (t = Nt(t), t !== null && yh(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
}
- function Rh(e, t, n, r, i) {
+ function zh(e, t, n, r, i) {
switch (t) {
- case "focusin": return kh = Lh(kh, e, t, n, r, i), !0;
- case "dragenter": return Ah = Lh(Ah, e, t, n, r, i), !0;
- case "mouseover": return jh = Lh(jh, e, t, n, r, i), !0;
+ case "focusin": return Ah = Rh(Ah, e, t, n, r, i), !0;
+ case "dragenter": return jh = Rh(jh, e, t, n, r, i), !0;
+ case "mouseover": return Mh = Rh(Mh, e, t, n, r, i), !0;
case "pointerover":
var a = i.pointerId;
- return Mh.set(a, Lh(Mh.get(a) || null, e, t, n, r, i)), !0;
- case "gotpointercapture": return a = i.pointerId, Nh.set(a, Lh(Nh.get(a) || null, e, t, n, r, i)), !0;
+ return Nh.set(a, Rh(Nh.get(a) || null, e, t, n, r, i)), !0;
+ case "gotpointercapture": return a = i.pointerId, Ph.set(a, Rh(Ph.get(a) || null, e, t, n, r, i)), !0;
}
return !1;
}
- function zh(e) {
- var t = jt(e.target);
+ function Bh(e) {
+ var t = Mt(e.target);
if (t !== null) {
var n = o(t);
if (n !== null) {
if (t = n.tag, t === 13) {
if (t = s(n), t !== null) {
- e.blockedOn = t, bt(e.priority, function() {
- yh(n);
+ e.blockedOn = t, xt(e.priority, function() {
+ bh(n);
});
return;
}
} else if (t === 31) {
if (t = c(n), t !== null) {
- e.blockedOn = t, bt(e.priority, function() {
- yh(n);
+ e.blockedOn = t, xt(e.priority, function() {
+ bh(n);
});
return;
}
@@ -8918,40 +8918,40 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
e.blockedOn = null;
}
- function Bh(e) {
+ function Vh(e) {
if (e.blockedOn !== null) return !1;
for (var t = e.targetContainers; 0 < t.length;) {
- var n = wh(e.nativeEvent);
+ var n = Th(e.nativeEvent);
if (n === null) {
n = e.nativeEvent;
var r = new n.constructor(n.type, n);
- yn = r, n.target.dispatchEvent(r), yn = null;
- } else return t = Mt(n), t !== null && vh(t), e.blockedOn = n, !1;
+ bn = r, n.target.dispatchEvent(r), bn = null;
+ } else return t = Nt(n), t !== null && yh(t), e.blockedOn = n, !1;
t.shift();
}
return !0;
}
- function Vh(e, t, n) {
- Bh(e) && n.delete(t);
+ function Hh(e, t, n) {
+ Vh(e) && n.delete(t);
}
- function Hh() {
- Oh = !1, kh !== null && Bh(kh) && (kh = null), Ah !== null && Bh(Ah) && (Ah = null), jh !== null && Bh(jh) && (jh = null), Mh.forEach(Vh), Nh.forEach(Vh);
+ function Uh() {
+ kh = !1, Ah !== null && Vh(Ah) && (Ah = null), jh !== null && Vh(jh) && (jh = null), Mh !== null && Vh(Mh) && (Mh = null), Nh.forEach(Hh), Ph.forEach(Hh);
}
- function Uh(e, n) {
- e.blockedOn === n && (e.blockedOn = null, Oh || (Oh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, Hh)));
+ function Wh(e, n) {
+ e.blockedOn === n && (e.blockedOn = null, kh || (kh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, Uh)));
}
- var Wh = null;
- function Gh(e) {
- Wh !== e && (Wh = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {
- Wh === e && (Wh = null);
+ var Gh = null;
+ function Kh(e) {
+ Gh !== e && (Gh = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {
+ Gh === e && (Gh = null);
for (var t = 0; t < e.length; t += 3) {
var n = e[t], r = e[t + 1], i = e[t + 2];
if (typeof r != "function") {
- if (Eh(r || n) === null) continue;
+ if (Dh(r || n) === null) continue;
break;
}
- var a = Mt(n);
- a !== null && (e.splice(t, 3), t -= 3, Js(a, {
+ var a = Nt(n);
+ a !== null && (e.splice(t, 3), t -= 3, Ys(a, {
pending: !0,
data: i,
method: n.method,
@@ -8960,30 +8960,30 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
}
}));
}
- function Kh(e) {
+ function qh(e) {
function t(t) {
- return Uh(t, e);
+ return Wh(t, e);
}
- kh !== null && Uh(kh, e), Ah !== null && Uh(Ah, e), jh !== null && Uh(jh, e), Mh.forEach(t), Nh.forEach(t);
- for (var n = 0; n < Ph.length; n++) {
- var r = Ph[n];
+ Ah !== null && Wh(Ah, e), jh !== null && Wh(jh, e), Mh !== null && Wh(Mh, e), Nh.forEach(t), Ph.forEach(t);
+ for (var n = 0; n < Fh.length; n++) {
+ var r = Fh[n];
r.blockedOn === e && (r.blockedOn = null);
}
- for (; 0 < Ph.length && (n = Ph[0], n.blockedOn === null);) zh(n), n.blockedOn === null && Ph.shift();
+ for (; 0 < Fh.length && (n = Fh[0], n.blockedOn === null);) Bh(n), n.blockedOn === null && Fh.shift();
if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {
- var i = n[r], a = n[r + 1], o = i[Ct] || null;
- if (typeof a == "function") o || Gh(n);
+ var i = n[r], a = n[r + 1], o = i[wt] || null;
+ if (typeof a == "function") o || Kh(n);
else if (o) {
var s = null;
if (a && a.hasAttribute("formAction")) {
- if (i = a, o = a[Ct] || null) s = o.formAction;
- else if (Eh(i) !== null) continue;
+ if (i = a, o = a[wt] || null) s = o.formAction;
+ else if (Dh(i) !== null) continue;
} else s = o.action;
- typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Gh(n);
+ typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Kh(n);
}
}
}
- function qh() {
+ function Jh() {
function e(e) {
e.canIntercept && e.info === "react-transition" && e.intercept({
handler: function() {
@@ -9015,63 +9015,63 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
};
}
}
- function Jh(e) {
+ function Yh(e) {
this._internalRoot = e;
}
- Yh.prototype.render = Jh.prototype.render = function(e) {
+ Xh.prototype.render = Yh.prototype.render = function(e) {
var t = this._internalRoot;
if (t === null) throw Error(i(409));
var n = t.current;
- hh(n, Md(), e, t, null, null);
- }, Yh.prototype.unmount = Jh.prototype.unmount = function() {
+ gh(n, Nd(), e, t, null, null);
+ }, Xh.prototype.unmount = Yh.prototype.unmount = function() {
var e = this._internalRoot;
if (e !== null) {
this._internalRoot = null;
var t = e.containerInfo;
- hh(e.current, 2, null, e, null, null), Bd(), t[wt] = null;
+ gh(e.current, 2, null, e, null, null), Vd(), t[Tt] = null;
}
};
- function Yh(e) {
+ function Xh(e) {
this._internalRoot = e;
}
- Yh.prototype.unstable_scheduleHydration = function(e) {
+ Xh.prototype.unstable_scheduleHydration = function(e) {
if (e) {
- var t = yt();
+ var t = bt();
e = {
blockedOn: null,
target: e,
priority: t
};
- for (var n = 0; n < Ph.length && t !== 0 && t < Ph[n].priority; n++);
- Ph.splice(n, 0, e), n === 0 && zh(e);
+ for (var n = 0; n < Fh.length && t !== 0 && t < Fh[n].priority; n++);
+ Fh.splice(n, 0, e), n === 0 && Bh(e);
}
};
- var Xh = n.version;
- if (Xh !== "19.3.0") throw Error(i(527, Xh, "19.3.0"));
- de.findDOMNode = function(e) {
+ var Zh = n.version;
+ if (Zh !== "19.3.0") throw Error(i(527, Zh, "19.3.0"));
+ fe.findDOMNode = function(e) {
var t = e._reactInternals;
if (t === void 0) throw typeof e.render == "function" ? Error(i(188)) : (e = Object.keys(e).join(","), Error(i(268, e)));
return e = u(t), e = e === null ? null : d(e), e = e === null ? null : e.stateNode, e;
};
- var Zh = {
+ var Qh = {
bundleType: 0,
version: "19.3.0",
rendererPackageName: "react-dom",
- currentDispatcherRef: L,
+ currentDispatcherRef: I,
reconcilerVersion: "19.3.0"
};
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
- var Qh = __REACT_DEVTOOLS_GLOBAL_HOOK__;
- if (!Qh.isDisabled && Qh.supportsFiber) try {
- Ye = Qh.inject(Zh), Xe = Qh;
+ var $h = __REACT_DEVTOOLS_GLOBAL_HOOK__;
+ if (!$h.isDisabled && $h.supportsFiber) try {
+ Xe = $h.inject(Qh), Ze = $h;
} catch {}
}
e.createRoot = function(e, t) {
if (!a(e)) throw Error(i(299));
- var n = !1, r = "", o = _c, s = vc, c = yc;
- return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = ph(e, 1, !1, null, null, n, r, null, o, s, c, qh), e[wt] = t.current, qf(e), new Jh(t);
+ var n = !1, r = "", o = vc, s = yc, c = bc;
+ return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = mh(e, 1, !1, null, null, n, r, null, o, s, c, Jh), e[Tt] = t.current, Jf(e), new Yh(t);
};
-})), Re = /* @__PURE__ */ Ee(((e, t) => {
+})), ze = /* @__PURE__ */ De(((e, t) => {
function n() {
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);
@@ -9079,8 +9079,8 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
console.error(e);
}
}
- n(), t.exports = Le();
-})), ze = /* @__PURE__ */ ke(Ie(), 1), Be = Re(), R = /* @__PURE__ */ ke(Pe(), 1), Ve = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+ n(), t.exports = Re();
+})), Be = /* @__PURE__ */ Ae(Le(), 1), Ve = ze(), L = /* @__PURE__ */ Ae(Fe(), 1), He = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9088,7 +9088,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), He = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Ue = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9096,7 +9096,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), Ue = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), We = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9104,7 +9104,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), We = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), Ge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9112,7 +9112,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), Ge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), Ke = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9120,7 +9120,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), Ke = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), qe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9128,7 +9128,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), qe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), Je = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9136,7 +9136,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), Je = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Ye = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9144,7 +9144,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), Ye = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), Xe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9152,7 +9152,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), Xe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), Ze = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9160,7 +9160,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), Ze = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), Qe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9168,7 +9168,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), Qe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), $e = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9176,7 +9176,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), $e = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), et = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9184,7 +9184,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), et = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), tt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9192,7 +9192,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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", {
+}, L.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" })), nt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9200,7 +9200,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), nt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), rt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9208,7 +9208,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), rt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), it = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9216,7 +9216,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), it = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), at = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9224,7 +9224,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), at = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), ot = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9232,7 +9232,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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", {
+}, L.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" })), st = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9240,7 +9240,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), st = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), ct = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9248,7 +9248,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), ct = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), lt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9256,7 +9256,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), lt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), ut = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9264,7 +9264,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), ut = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), dt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9272,7 +9272,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), dt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), ft = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9280,7 +9280,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), ft = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), pt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9288,7 +9288,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), pt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), mt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9296,7 +9296,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), mt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), ht = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9304,7 +9304,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), ht = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), gt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9312,7 +9312,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), gt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), _t = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9320,7 +9320,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), _t = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), vt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9328,7 +9328,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), vt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), yt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9336,7 +9336,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), yt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), bt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9344,7 +9344,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), bt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), xt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9352,7 +9352,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), xt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), St = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9360,7 +9360,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), St = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), Ct = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9368,7 +9368,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), Ct = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), wt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9376,7 +9376,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), wt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, L.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" })), Tt = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => L.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -9384,7 +9384,7 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
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" })), Tt = /* @__PURE__ */ Ee(((e) => {
+}, L.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" })), Et = /* @__PURE__ */ De(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
function r(e, n, r) {
var i = null;
@@ -9399,25 +9399,25 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
};
}
e.Fragment = n, e.jsx = r, e.jsxs = r;
-})), z = (/* @__PURE__ */ Ee(((e, t) => {
- t.exports = Tt();
-})))(), Et = R.createContext(void 0), Dt = (e) => {
- let t = R.useContext(Et);
+})), R = (/* @__PURE__ */ De(((e, t) => {
+ t.exports = Et();
+})))(), Dt = L.createContext(void 0), Ot = (e) => {
+ let t = L.useContext(Dt);
if (e) return e;
if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
return t;
-}, Ot = ({ client: e, children: t }) => (R.useEffect(() => (e.mount(), () => {
+}, kt = ({ client: e, children: t }) => (L.useEffect(() => (e.mount(), () => {
e.unmount();
-}), [e]), /* @__PURE__ */ (0, z.jsx)(Et.Provider, {
+}), [e]), /* @__PURE__ */ (0, R.jsx)(Dt.Provider, {
value: e,
children: t
-})), kt = {
+})), At = {
setTimeout: (e, t) => setTimeout(e, t),
clearTimeout: (e) => clearTimeout(e),
setInterval: (e, t) => setInterval(e, t),
clearInterval: (e) => clearInterval(e)
-}, At = new class {
- #e = kt;
+}, jt = new class {
+ #e = At;
setTimeoutProvider(e) {
this.#e = e;
}
@@ -9434,31 +9434,31 @@ var ye = Object.create, be = Object.defineProperty, xe = Object.getOwnPropertyDe
this.#e.clearInterval(e);
}
}();
-function jt(e) {
+function Mt(e) {
setTimeout(e, 0);
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/utils.js
-var Mt = typeof window > "u" || "Deno" in globalThis;
-function Nt() {}
-function Pt(e, t) {
+var Nt = typeof window > "u" || "Deno" in globalThis;
+function Pt() {}
+function Ft(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function Ft(e) {
+function It(e) {
return typeof e == "number" && e >= 0 && e !== Infinity;
}
-function It(e, t) {
+function Lt(e, t) {
return Math.max(e + (t || 0) - Date.now(), 0);
}
-function Lt(e, t) {
+function Rt(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function Rt(e, t) {
+function zt(e, t) {
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
if (o) {
if (r) {
- if (t.queryHash !== Bt(o, t.options)) return !1;
- } else if (!Ht(t.queryKey, o)) return !1;
+ if (t.queryHash !== Vt(o, t.options)) return !1;
+ } else if (!Ut(t.queryKey, o)) return !1;
}
if (n !== "all") {
let e = t.isActive();
@@ -9466,105 +9466,105 @@ function Rt(e, t) {
}
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
}
-function zt(e, t) {
+function Bt(e, t) {
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
if (a) {
if (!t.options.mutationKey) return !1;
if (n) {
- if (Vt(t.options.mutationKey) !== Vt(a)) return !1;
- } else if (!Ht(t.options.mutationKey, a)) return !1;
+ if (Ht(t.options.mutationKey) !== Ht(a)) return !1;
+ } else if (!Ut(t.options.mutationKey, a)) return !1;
}
return !(r && t.state.status !== r || i && !i(t));
}
-function Bt(e, t) {
- return (t?.queryKeyHashFn || Vt)(e);
+function Vt(e, t) {
+ return (t?.queryKeyHashFn || Ht)(e);
}
-function Vt(e) {
- return JSON.stringify(e, (e, t) => qt(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
+function Ht(e) {
+ return JSON.stringify(e, (e, t) => Jt(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
}
-function Ht(e, t) {
+function Ut(e, t) {
if (e === t) return !0;
if (typeof e != typeof t) return !1;
if (e && t && typeof e == "object" && typeof t == "object") {
if (Array.isArray(e) && Array.isArray(t)) {
if (t.length > e.length) return !1;
- for (let n = 0; n < t.length; n++) if (!Ht(e[n], t[n])) return !1;
+ for (let n = 0; n < t.length; n++) if (!Ut(e[n], t[n])) return !1;
return !0;
}
let n = Object.keys(t);
- for (let r of n) if (!Ht(e[r], t[r])) return !1;
+ for (let r of n) if (!Ut(e[r], t[r])) return !1;
return !0;
}
return !1;
}
-var Ut = Object.prototype.hasOwnProperty;
-function Wt(e, t, n = 0) {
+var Wt = Object.prototype.hasOwnProperty;
+function Gt(e, t, n = 0) {
if (e === t) return e;
if (n > 500) return t;
- let r = Kt(e) && Kt(t);
- if (!r && !(qt(e) && qt(t))) return t;
+ let r = qt(e) && qt(t);
+ if (!r && !(Jt(e) && Jt(t))) return t;
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
for (let l = 0; l < o; l++) {
let o = r ? l : a[l], u = e[o], d = t[o];
if (u === d) {
- s[o] = u, (r ? l < i : Ut.call(e, o)) && c++;
+ s[o] = u, (r ? l < i : Wt.call(e, o)) && c++;
continue;
}
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
s[o] = d;
continue;
}
- let f = Wt(u, d, n + 1);
+ let f = Gt(u, d, n + 1);
s[o] = f, f === u && c++;
}
return i === o && c === i ? e : s;
}
-function Gt(e, t) {
+function Kt(e, t) {
if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
for (let n in e) if (e[n] !== t[n]) return !1;
return !0;
}
-function Kt(e) {
+function qt(e) {
return Array.isArray(e) && e.length === Object.keys(e).length;
}
-function qt(e) {
- if (!Jt(e)) return !1;
+function Jt(e) {
+ if (!Yt(e)) return !1;
let t = Object.getPrototypeOf(e), n = t?.constructor;
if (n === void 0) return !0;
if (typeof n != "function") return !1;
let r = n.prototype;
- return !(!Jt(r) || !r.hasOwnProperty("isPrototypeOf") || t !== Object.prototype);
+ return !(!Yt(r) || !r.hasOwnProperty("isPrototypeOf") || t !== Object.prototype);
}
-function Jt(e) {
+function Yt(e) {
return Object.prototype.toString.call(e) === "[object Object]";
}
-function Yt(e) {
+function Xt(e) {
return new Promise((t) => {
- At.setTimeout(t, e);
+ jt.setTimeout(t, e);
});
}
-function Xt(e, t, n) {
- return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : Wt(e, t);
+function Zt(e, t, n) {
+ return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : Gt(e, t);
}
-function Zt(e) {
+function Qt(e) {
return e;
}
-function Qt(e, t, n = 0) {
+function $t(e, t, n = 0) {
let r = [...e, t];
return n && r.length > n ? r.slice(1) : r;
}
-function $t(e, t, n = 0) {
+function en(e, t, n = 0) {
let r = [t, ...e];
return n && r.length > n ? r.slice(0, -1) : r;
}
-var en = Symbol();
-function tn(e, t) {
- return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === en ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
-}
+var tn = Symbol();
function nn(e, t) {
+ return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === tn ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
+}
+function rn(e, t) {
return typeof e == "function" ? e(...t) : !!e;
}
-function rn(e, t, n) {
+function an(e, t, n) {
let r = !1, i;
return Object.defineProperty(e, "signal", {
enumerable: !0,
@@ -9573,7 +9573,7 @@ function rn(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
-var an = () => Mt, on = () => an(), sn = class {
+var on = () => Nt, sn = () => on(), cn = class {
constructor() {
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
}
@@ -9587,7 +9587,7 @@ var an = () => Mt, on = () => an(), sn = class {
}
onSubscribe() {}
onUnsubscribe() {}
-}, cn = new class extends sn {
+}, ln = new class extends cn {
#e;
#t;
#n;
@@ -9624,13 +9624,13 @@ var an = () => Mt, on = () => an(), sn = class {
isFocused() {
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
}
-}(), ln = jt;
-function un() {
+}(), un = Mt;
+function dn() {
let e = [], t = 0, n = (e) => {
e();
}, r = (e) => {
e();
- }, i = ln, a = (r) => {
+ }, i = un, a = (r) => {
t ? e.push(r) : i(() => {
n(r);
});
@@ -9672,7 +9672,7 @@ function un() {
}
};
}
-var dn = un(), fn = new class extends sn {
+var fn = dn(), pn = new class extends cn {
#e = !0;
#t;
#n;
@@ -9706,32 +9706,32 @@ var dn = un(), fn = new class extends sn {
}();
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
-function pn(e) {
+function mn(e) {
return Math.min(1e3 * 2 ** e, 3e4);
}
-function mn(e) {
- return (e ?? "online") !== "online" || fn.isOnline();
+function hn(e) {
+ return (e ?? "online") !== "online" || pn.isOnline();
}
-var hn = class extends Error {
+var gn = class extends Error {
constructor(e) {
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
}
};
-function gn(e) {
+function _n(e) {
let t = !1, n = 0, r, i = "pending", a, o, s = new Promise((e, t) => {
a = e, o = t;
});
- s.catch(Nt);
+ s.catch(Pt);
let c = () => i !== "pending", l = (t) => {
if (!c()) {
- let n = new hn(t);
+ let n = new gn(t);
h(n), e.onCancel?.(n);
}
}, u = () => {
t = !0;
}, d = () => {
t = !1;
- }, f = () => cn.isFocused() && (e.networkMode === "always" || fn.isOnline()) && e.canRun(), p = () => mn(e.networkMode) && e.canRun(), m = (e) => {
+ }, f = () => ln.isFocused() && (e.networkMode === "always" || pn.isOnline()) && e.canRun(), p = () => hn(e.networkMode) && e.canRun(), m = (e) => {
c() || (r?.(), i = "resolved", a(e));
}, h = (e) => {
c() || (r?.(), i = "rejected", o(e));
@@ -9751,12 +9751,12 @@ function gn(e) {
}
Promise.resolve(r).then(m).catch((r) => {
if (c()) return;
- let i = e.retry ?? (on() ? 0 : 3), a = e.retryDelay ?? pn, o = typeof a == "function" ? a(n, r) : a, s = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
+ let i = e.retry ?? (sn() ? 0 : 3), a = e.retryDelay ?? mn, o = typeof a == "function" ? a(n, r) : a, s = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
if (t || !s) {
h(r);
return;
}
- n++, e.onFail?.(n, r), Yt(o).then(() => f() ? void 0 : g()).then(() => {
+ n++, e.onFail?.(n, r), Xt(o).then(() => f() ? void 0 : g()).then(() => {
t ? h(r) : _();
});
});
@@ -9774,34 +9774,34 @@ function gn(e) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/removable.js
-var _n = class {
+var vn = class {
#e;
destroy() {
this.clearGcTimeout();
}
scheduleGc() {
- this.clearGcTimeout(), Ft(this.gcTime) && (this.#e = At.setTimeout(() => {
+ this.clearGcTimeout(), It(this.gcTime) && (this.#e = jt.setTimeout(() => {
this.optionalRemove();
}, this.gcTime));
}
updateGcTime(e) {
- this.gcTime = Math.max(this.gcTime || 0, e ?? (on() ? Infinity : 3e5));
+ this.gcTime = Math.max(this.gcTime || 0, e ?? (sn() ? Infinity : 3e5));
}
clearGcTimeout() {
- this.#e !== void 0 && (At.clearTimeout(this.#e), this.#e = void 0);
+ this.#e !== void 0 && (jt.clearTimeout(this.#e), this.#e = void 0);
}
};
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
-function vn(e) {
+function yn(e) {
return { onFetch: (t, n) => {
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
pages: [],
pageParams: []
}, c = 0, l = async () => {
let n = !1, l = (e) => {
- rn(e, () => t.signal, () => n = !0);
- }, u = tn(t.options, t.fetchOptions), d = async (e, r, i) => {
+ an(e, () => t.signal, () => n = !0);
+ }, u = nn(t.options, t.fetchOptions), d = async (e, r, i) => {
if (n) return Promise.reject(t.signal.reason);
if (r == null && e.pages.length) return Promise.resolve(e);
let a = (() => {
@@ -9813,14 +9813,14 @@ function vn(e) {
meta: t.options.meta
};
return l(e), e;
- })(), o = await u(a), { maxPages: s } = t.options, c = i ? $t : Qt;
+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? en : $t;
return {
pages: c(e.pages, o, s),
pageParams: c(e.pageParams, r, s)
};
};
if (i && a.length) {
- let e = i === "backward", t = e ? bn : yn, n = {
+ let e = i === "backward", t = e ? xn : bn, n = {
pages: a,
pageParams: o
};
@@ -9828,7 +9828,7 @@ function vn(e) {
} else {
let t = e ?? a.length;
do {
- let e = c === 0 ? o[0] ?? r.initialPageParam : yn(r, s);
+ let e = c === 0 ? o[0] ?? r.initialPageParam : bn(r, s);
if (c > 0 && e == null) break;
s = await d(s, e), c++;
} while (c < t);
@@ -9843,22 +9843,22 @@ function vn(e) {
}, n) : l;
} };
}
-function yn(e, { pages: t, pageParams: n }) {
+function bn(e, { pages: t, pageParams: n }) {
let r = t.length - 1;
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
}
-function bn(e, { pages: t, pageParams: n }) {
+function xn(e, { pages: t, pageParams: n }) {
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
}
-function xn(e, t) {
- return t ? yn(e, t) != null : !1;
-}
function Sn(e, t) {
- return !t || !e.getPreviousPageParam ? !1 : bn(e, t) != null;
+ return t ? bn(e, t) != null : !1;
+}
+function Cn(e, t) {
+ return !t || !e.getPreviousPageParam ? !1 : xn(e, t) != null;
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/query.js
-var Cn = class extends _n {
+var wn = class extends vn {
#e;
#t;
#n;
@@ -9868,7 +9868,7 @@ var Cn = class extends _n {
#o;
#s;
constructor(e) {
- super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = En(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
+ super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = Dn(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
}
get meta() {
return this.options.meta;
@@ -9884,15 +9884,15 @@ var Cn = class extends _n {
...this.#o,
...e
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
- let e = En(this.options);
- e.data !== void 0 && (this.setState(Tn(e.data, e.dataUpdatedAt)), this.#t = e);
+ let e = Dn(this.options);
+ e.data !== void 0 && (this.setState(En(e.data, e.dataUpdatedAt)), this.#t = e);
}
}
optionalRemove() {
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
}
setData(e, t) {
- let n = Xt(this.state.data, e, this.options);
+ let n = Zt(this.state.data, e, this.options);
return this.#c({
data: n,
type: "success",
@@ -9908,7 +9908,7 @@ var Cn = class extends _n {
}
cancel(e) {
let t = this.#a?.promise;
- return this.#a?.cancel(e), t ? t.then(Nt).catch(Nt) : Promise.resolve();
+ return this.#a?.cancel(e), t ? t.then(Pt).catch(Pt) : Promise.resolve();
}
destroy() {
super.destroy(), this.cancel({ silent: !0 });
@@ -9920,22 +9920,22 @@ var Cn = class extends _n {
this.destroy(), this.setState(this.resetState);
}
isActive() {
- return this.observers.some((e) => Lt(e.options.enabled, this) !== !1);
+ return this.observers.some((e) => Rt(e.options.enabled, this) !== !1);
}
isDisabled() {
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === en || !this.isFetched();
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === tn || !this.isFetched();
}
isFetched() {
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
}
isStatic() {
- return this.getObserversCount() > 0 && this.observers.some((e) => Lt(e.options.staleTime, this) === "static");
+ return this.getObserversCount() > 0 && this.observers.some((e) => Rt(e.options.staleTime, this) === "static");
}
isStale() {
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
}
isStaleByTime(e = 0) {
- return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !It(this.state.dataUpdatedAt, e);
+ return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !Lt(this.state.dataUpdatedAt, e);
}
onFocus() {
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
@@ -9979,7 +9979,7 @@ var Cn = class extends _n {
get: () => (this.#s = !0, n.signal)
});
}, i = () => {
- let e = tn(this.options, t), n = (() => {
+ let e = nn(this.options, t), n = (() => {
let e = {
client: this.#i,
queryKey: this.queryKey,
@@ -9999,15 +9999,15 @@ var Cn = class extends _n {
};
return r(e), e;
})();
- (this.#e === "infinite" ? vn(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({
+ (this.#e === "infinite" ? yn(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({
type: "fetch",
meta: a.fetchOptions?.meta
});
- let o = this.#a = gn({
+ let o = this.#a = _n({
initialPromise: t?.initialPromise,
fn: a.fetchFn,
onCancel: (e) => {
- e instanceof hn && e.revert && this.setState({
+ e instanceof gn && e.revert && this.setState({
...this.#n,
fetchStatus: "idle"
}), n.abort();
@@ -10035,7 +10035,7 @@ var Cn = class extends _n {
if (e === void 0) throw Error(`${this.queryHash} data is undefined`);
return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
} catch (e) {
- if (e instanceof hn) {
+ if (e instanceof gn) {
if (e.silent) return this.#a.promise;
if (e.revert) {
if (this.state.data === void 0) throw e;
@@ -10068,13 +10068,13 @@ var Cn = class extends _n {
};
case "fetch": return {
...t,
- ...wn(t.data, this.options),
+ ...Tn(t.data, this.options),
fetchMeta: e.meta ?? null
};
case "success":
let n = {
...t,
- ...Tn(e.data, e.dataUpdatedAt),
+ ...En(e.data, e.dataUpdatedAt),
dataUpdateCount: t.dataUpdateCount + 1,
...!e.manual && {
fetchStatus: "idle",
@@ -10106,7 +10106,7 @@ var Cn = class extends _n {
};
}
};
- this.state = t(this.state), dn.batch(() => {
+ this.state = t(this.state), fn.batch(() => {
this.observers.slice().forEach((e) => {
e.onQueryUpdate();
}), this.#r.notify({
@@ -10117,18 +10117,18 @@ var Cn = class extends _n {
});
}
};
-function wn(e, t) {
+function Tn(e, t) {
return {
fetchFailureCount: 0,
fetchFailureReason: null,
- fetchStatus: mn(t.networkMode) ? "fetching" : "paused",
+ fetchStatus: hn(t.networkMode) ? "fetching" : "paused",
...e === void 0 && {
error: null,
status: "pending"
}
};
}
-function Tn(e, t) {
+function En(e, t) {
return {
data: e,
dataUpdatedAt: t ?? Date.now(),
@@ -10137,7 +10137,7 @@ function Tn(e, t) {
status: "success"
};
}
-function En(e) {
+function Dn(e) {
let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
return {
data: t,
@@ -10156,7 +10156,7 @@ function En(e) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/queryObserver.js
-var Dn = class extends sn {
+var On = class extends cn {
#e;
#t = void 0;
#n = void 0;
@@ -10178,36 +10178,36 @@ var Dn = class extends sn {
this.refetch = this.refetch.bind(this);
}
onSubscribe() {
- this.listeners.size === 1 && (this.#t.addObserver(this), kn(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
+ this.listeners.size === 1 && (this.#t.addObserver(this), An(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
}
onUnsubscribe() {
this.hasListeners() || this.destroy();
}
shouldFetchOnReconnect() {
- return An(this.#t, this.options, this.options.refetchOnReconnect);
+ return jn(this.#t, this.options, this.options.refetchOnReconnect);
}
shouldFetchOnWindowFocus() {
- return An(this.#t, this.options, this.options.refetchOnWindowFocus);
+ return jn(this.#t, this.options, this.options.refetchOnWindowFocus);
}
destroy() {
this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
}
setOptions(e) {
let t = this.options, n = this.#t;
- if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof Lt(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");
- this.#S(), this.#t.setOptions(this.options), t._defaulted && !Gt(this.options, t) && this.#e.getQueryCache().notify({
+ if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof Rt(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");
+ this.#S(), this.#t.setOptions(this.options), t._defaulted && !Kt(this.options, t) && this.#e.getQueryCache().notify({
type: "observerOptionsUpdated",
query: this.#t,
observer: this
});
let r = this.hasListeners();
- r && jn(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || Lt(this.options.enabled, this.#t) !== Lt(t.enabled, this.#t) || Lt(this.options.staleTime, this.#t) !== Lt(t.staleTime, this.#t)) && this.#g();
+ r && Mn(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || Rt(this.options.enabled, this.#t) !== Rt(t.enabled, this.#t) || Rt(this.options.staleTime, this.#t) !== Rt(t.staleTime, this.#t)) && this.#g();
let i = this.#_();
- r && (this.#t !== n || Lt(this.options.enabled, this.#t) !== Lt(t.enabled, this.#t) || i !== this.#f) && this.#v(i);
+ r && (this.#t !== n || Rt(this.options.enabled, this.#t) !== Rt(t.enabled, this.#t) || i !== this.#f) && this.#v(i);
}
getOptimisticResult(e) {
let t = this.#e.getQueryCache().build(this.#e, e), n = this.createResult(t, e);
- return Gt(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
+ return Kt(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
}
getCurrentResult() {
return this.#r;
@@ -10246,44 +10246,44 @@ var Dn = class extends sn {
#m(e) {
this.#S();
let t = this.#t.fetch(this.options, e);
- return e?.throwOnError || (t = t.catch(Nt)), t;
+ return e?.throwOnError || (t = t.catch(Pt)), t;
}
#h(e) {
- return !on() && Lt(this.options.enabled, this.#t) !== !1 && Ft(e);
+ return !sn() && Rt(this.options.enabled, this.#t) !== !1 && It(e);
}
#g() {
this.#b();
- let e = Lt(this.options.staleTime, this.#t);
+ let e = Rt(this.options.staleTime, this.#t);
if (this.#r.isStale || !this.#h(e)) return;
- let t = It(this.#r.dataUpdatedAt, e) + 1;
- this.#u = At.setTimeout(() => {
+ let t = Lt(this.#r.dataUpdatedAt, e) + 1;
+ this.#u = jt.setTimeout(() => {
this.#r.isStale || this.updateResult();
}, t);
}
#_() {
- return Lt(this.options.refetchInterval, this.#t) ?? !1;
+ return Rt(this.options.refetchInterval, this.#t) ?? !1;
}
#v(e) {
- this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d = At.setInterval(() => {
- (this.options.refetchIntervalInBackground || cn.isFocused()) && this.#m();
+ this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d = jt.setInterval(() => {
+ (this.options.refetchIntervalInBackground || ln.isFocused()) && this.#m();
}, this.#f));
}
#y() {
this.#g(), this.#v(this.#_());
}
#b() {
- this.#u !== void 0 && (At.clearTimeout(this.#u), this.#u = void 0);
+ this.#u !== void 0 && (jt.clearTimeout(this.#u), this.#u = void 0);
}
#x() {
- this.#d !== void 0 && (At.clearInterval(this.#d), this.#d = void 0);
+ this.#d !== void 0 && (jt.clearInterval(this.#d), this.#d = void 0);
}
createResult(e, t) {
let n = this.#t, r = this.options, i = this.#r, a = this.#i, o = this.#a, s = e === n ? this.#n : e.state, { state: c } = e, l = { ...c }, u = !1, d;
if (t._optimisticResults) {
- let i = this.hasListeners(), a = !i && kn(e, t), o = i && jn(e, n, t, r);
+ let i = this.hasListeners(), a = !i && An(e, t), o = i && Mn(e, n, t, r);
(a || o) && (l = {
...l,
- ...wn(c.data, e.options)
+ ...Tn(c.data, e.options)
}), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
}
let { error: f, errorUpdatedAt: p, status: m } = l;
@@ -10291,12 +10291,12 @@ var Dn = class extends sn {
let h = !1;
if (t.placeholderData !== void 0 && d === void 0 && m === "pending") {
let e;
- i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#l?.state.data, this.#l) : t.placeholderData, e !== void 0 && (m = "success", d = Xt(i?.data, e, t), u = !0);
+ i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#l?.state.data, this.#l) : t.placeholderData, e !== void 0 && (m = "success", d = Zt(i?.data, e, t), u = !0);
}
if (t.select && d !== void 0 && !h) {
if (i && d === a?.data && t.select === this.#s) d = this.#c;
else try {
- this.#s = t.select, d = t.select(d), d = Xt(i?.data, d, t), this.#c = d, this.#o = null;
+ this.#s = t.select, d = t.select(d), d = Zt(i?.data, d, t), this.#c = d, this.#o = null;
} catch (e) {
this.#o = e;
}
@@ -10326,14 +10326,14 @@ var Dn = class extends sn {
isPaused: l.fetchStatus === "paused",
isPlaceholderData: u,
isRefetchError: v && b,
- isStale: Mn(e, t),
+ isStale: Nn(e, t),
refetch: this.refetch,
- isEnabled: Lt(t.enabled, e) !== !1
+ isEnabled: Rt(t.enabled, e) !== !1
};
}
updateResult() {
let e = this.#r, t = this.createResult(this.#t, this.options);
- if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), Gt(t, e)) return;
+ if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), Kt(t, e)) return;
this.#r = t;
let n = (() => {
if (!e) return !0;
@@ -10345,7 +10345,7 @@ var Dn = class extends sn {
return this.#r[n] !== e[n] && r.has(n);
});
})();
- dn.batch(() => {
+ fn.batch(() => {
n && this.listeners.forEach((e) => {
e(this.#r);
}), this.#e.getQueryCache().notify({
@@ -10364,28 +10364,28 @@ var Dn = class extends sn {
this.updateResult(), this.hasListeners() && this.#y();
}
};
-function On(e, t) {
- return Lt(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || Lt(t.retryOnMount, e) !== !1);
-}
function kn(e, t) {
- return On(e, t) || e.state.data !== void 0 && An(e, t, t.refetchOnMount);
+ return Rt(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || Rt(t.retryOnMount, e) !== !1);
}
-function An(e, t, n) {
- if (Lt(t.enabled, e) !== !1 && Lt(t.staleTime, e) !== "static") {
- let r = Lt(n, e);
- return r === "always" || r !== !1 && Mn(e, t);
+function An(e, t) {
+ return kn(e, t) || e.state.data !== void 0 && jn(e, t, t.refetchOnMount);
+}
+function jn(e, t, n) {
+ if (Rt(t.enabled, e) !== !1 && Rt(t.staleTime, e) !== "static") {
+ let r = Rt(n, e);
+ return r === "always" || r !== !1 && Nn(e, t);
}
return !1;
}
-function jn(e, t, n, r) {
- return (e !== t || Lt(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && Mn(e, n);
+function Mn(e, t, n, r) {
+ return (e !== t || Rt(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && Nn(e, n);
}
-function Mn(e, t) {
- return Lt(t.enabled, e) !== !1 && e.isStaleByTime(Lt(t.staleTime, e));
+function Nn(e, t) {
+ return Rt(t.enabled, e) !== !1 && e.isStaleByTime(Rt(t.staleTime, e));
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.js
-var Nn = class extends Dn {
+var Pn = class extends On {
constructor(e, t) {
super(e, t);
}
@@ -10416,8 +10416,8 @@ var Nn = class extends Dn {
...r,
fetchNextPage: this.fetchNextPage,
fetchPreviousPage: this.fetchPreviousPage,
- hasNextPage: xn(t, n.data),
- hasPreviousPage: Sn(t, n.data),
+ hasNextPage: Sn(t, n.data),
+ hasPreviousPage: Cn(t, n.data),
isFetchNextPageError: l,
isFetchingNextPage: u,
isFetchPreviousPageError: d,
@@ -10426,13 +10426,13 @@ var Nn = class extends Dn {
isRefetching: a && !u && !f
};
}
-}, Pn = class extends _n {
+}, Fn = class extends vn {
#e;
#t;
#n;
#r;
constructor(e) {
- super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || Fn(), this.setOptions(e.options), this.scheduleGc();
+ super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || In(), this.setOptions(e.options), this.scheduleGc();
}
setOptions(e) {
this.options = e, this.updateGcTime(this.options.gcTime);
@@ -10467,7 +10467,7 @@ var Nn = class extends Dn {
client: this.#e,
meta: this.options.meta,
mutationKey: this.options.mutationKey
- }, r = this.#r = gn({
+ }, r = this.#r = _n({
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
onFail: (e, t) => {
this.#i({
@@ -10583,7 +10583,7 @@ var Nn = class extends Dn {
};
}
};
- this.state = t(this.state), dn.batch(() => {
+ this.state = t(this.state), fn.batch(() => {
this.#t.forEach((t) => {
t.onMutationUpdate(e);
}), this.#n.notify({
@@ -10594,7 +10594,7 @@ var Nn = class extends Dn {
});
}
};
-function Fn() {
+function In() {
return {
context: void 0,
data: void 0,
@@ -10609,7 +10609,7 @@ function Fn() {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
-var In = class extends sn {
+var Ln = class extends cn {
#e;
#t;
#n;
@@ -10617,7 +10617,7 @@ var In = class extends sn {
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
}
build(e, t, n) {
- let r = new Pn({
+ let r = new Fn({
client: e,
mutationCache: this,
mutationId: ++this.#n,
@@ -10628,7 +10628,7 @@ var In = class extends sn {
}
add(e) {
this.#e.add(e);
- let t = Ln(e);
+ let t = Rn(e);
if (typeof t == "string") {
let n = this.#t.get(t);
n ? n.push(e) : this.#t.set(t, [e]);
@@ -10640,7 +10640,7 @@ var In = class extends sn {
}
remove(e) {
if (this.#e.delete(e)) {
- let t = Ln(e);
+ let t = Rn(e);
if (typeof t == "string") {
let n = this.#t.get(t);
if (n) {
@@ -10657,7 +10657,7 @@ var In = class extends sn {
});
}
canRun(e) {
- let t = Ln(e);
+ let t = Rn(e);
if (typeof t == "string") {
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
return !n || n === e;
@@ -10665,11 +10665,11 @@ var In = class extends sn {
return !0;
}
runNext(e) {
- let t = Ln(e);
+ let t = Rn(e);
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
}
clear() {
- dn.batch(() => {
+ fn.batch(() => {
this.#e.forEach((e) => {
this.notify({
type: "removed",
@@ -10686,13 +10686,13 @@ var In = class extends sn {
exact: !0,
...e
};
- return this.getAll().find((e) => zt(t, e));
+ return this.getAll().find((e) => Bt(t, e));
}
findAll(e = {}) {
- return this.getAll().filter((t) => zt(e, t));
+ return this.getAll().filter((t) => Bt(e, t));
}
notify(e) {
- dn.batch(() => {
+ fn.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
@@ -10700,15 +10700,15 @@ var In = class extends sn {
}
resumePausedMutations() {
let e = this.getAll().filter((e) => e.state.isPaused);
- return dn.batch(() => Promise.all(e.map((e) => e.continue().catch(Nt))));
+ return fn.batch(() => Promise.all(e.map((e) => e.continue().catch(Pt))));
}
};
-function Ln(e) {
+function Rn(e) {
return e.options.scope?.id;
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutationObserver.js
-var Rn = class extends sn {
+var zn = class extends cn {
#e;
#t = void 0;
#n;
@@ -10721,11 +10721,11 @@ var Rn = class extends sn {
}
setOptions(e) {
let t = this.options;
- this.options = this.#e.defaultMutationOptions(e), Gt(this.options, t) || this.#e.getMutationCache().notify({
+ this.options = this.#e.defaultMutationOptions(e), Kt(this.options, t) || this.#e.getMutationCache().notify({
type: "observerOptionsUpdated",
mutation: this.#n,
observer: this
- }), t?.mutationKey && this.options.mutationKey && Vt(t.mutationKey) !== Vt(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
+ }), t?.mutationKey && this.options.mutationKey && Ht(t.mutationKey) !== Ht(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
}
onSubscribe() {
this.listeners.size === 1 && this.#n && (this.#n.addObserver(this), this.#i());
@@ -10746,7 +10746,7 @@ var Rn = class extends sn {
return this.#r = t, this.#n?.removeObserver(this), this.#n = this.#e.getMutationCache().build(this.#e, this.options), this.#n.addObserver(this), this.#n.execute(e);
}
#i() {
- let e = this.#n?.state ?? Fn();
+ let e = this.#n?.state ?? In();
this.#t = {
...e,
isPending: e.status === "pending",
@@ -10758,7 +10758,7 @@ var Rn = class extends sn {
};
}
#a(e) {
- dn.batch(() => {
+ fn.batch(() => {
if (this.#r && this.hasListeners()) {
let t = this.#t.variables, n = this.#t.context, r = {
client: this.#e,
@@ -10794,14 +10794,14 @@ var Rn = class extends sn {
});
});
}
-}, zn = class extends sn {
+}, Bn = class extends cn {
#e;
constructor(e = {}) {
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
}
build(e, t, n) {
- let r = t.queryKey, i = t.queryHash ?? Bt(r, t), a = this.get(i);
- return a || (a = new Cn({
+ let r = t.queryKey, i = t.queryHash ?? Vt(r, t), a = this.get(i);
+ return a || (a = new wn({
client: e,
queryKey: r,
queryHash: i,
@@ -10823,7 +10823,7 @@ var Rn = class extends sn {
}));
}
clear() {
- dn.batch(() => {
+ fn.batch(() => {
this.getAll().forEach((e) => {
this.remove(e);
});
@@ -10840,34 +10840,34 @@ var Rn = class extends sn {
exact: !0,
...e
};
- return this.getAll().find((e) => Rt(t, e));
+ return this.getAll().find((e) => zt(t, e));
}
findAll(e = {}) {
let t = this.getAll();
- return Object.keys(e).length > 0 ? t.filter((t) => Rt(e, t)) : t;
+ return Object.keys(e).length > 0 ? t.filter((t) => zt(e, t)) : t;
}
notify(e) {
- dn.batch(() => {
+ fn.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
});
}
onFocus() {
- dn.batch(() => {
+ fn.batch(() => {
this.getAll().forEach((e) => {
e.onFocus();
});
});
}
onOnline() {
- dn.batch(() => {
+ fn.batch(() => {
this.getAll().forEach((e) => {
e.onOnline();
});
});
}
-}, Bn = class {
+}, Vn = class {
#e;
#t;
#n;
@@ -10877,12 +10877,12 @@ var Rn = class extends sn {
#o;
#s;
constructor(e = {}) {
- this.#e = e.queryCache || new zn(), this.#t = e.mutationCache || new In(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
+ this.#e = e.queryCache || new Bn(), this.#t = e.mutationCache || new Ln(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
}
mount() {
- this.#a++, this.#a === 1 && (this.#o = cn.subscribe(async (e) => {
+ this.#a++, this.#a === 1 && (this.#o = ln.subscribe(async (e) => {
e && (await this.resumePausedMutations(), this.#e.onFocus());
- }), this.#s = fn.subscribe(async (e) => {
+ }), this.#s = pn.subscribe(async (e) => {
e && (await this.resumePausedMutations(), this.#e.onOnline());
}));
}
@@ -10907,20 +10907,20 @@ var Rn = class extends sn {
}
ensureQueryData(e) {
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
- return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(Lt(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(Rt(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
}
getQueriesData(e) {
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
}
setQueryData(e, t, n) {
- let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = Pt(t, i);
+ let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = Ft(t, i);
if (a !== void 0) return this.#e.build(this, r).setData(a, {
...n,
manual: !0
});
}
setQueriesData(e, t, n) {
- return dn.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
+ return fn.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
}
getQueryState(e) {
let t = this.defaultQueryOptions({ queryKey: e });
@@ -10928,7 +10928,7 @@ var Rn = class extends sn {
}
removeQueries(e) {
let t = this.#e;
- dn.batch(() => {
+ fn.batch(() => {
t.findAll(e).forEach((e) => {
t.remove(e);
});
@@ -10936,7 +10936,7 @@ var Rn = class extends sn {
}
resetQueries(e, t) {
let n = this.#e;
- return dn.batch(() => {
+ return fn.batch(() => {
let r = n.findAll(e), i = new Set(r);
return r.forEach((e) => {
e.reset();
@@ -10950,11 +10950,11 @@ var Rn = class extends sn {
let n = {
revert: !0,
...t
- }, r = dn.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
- return Promise.all(r).then(Nt).catch(Nt);
+ }, r = fn.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
+ return Promise.all(r).then(Pt).catch(Pt);
}
invalidateQueries(e, t = {}) {
- return dn.batch(() => (this.#e.findAll(e).forEach((e) => {
+ return fn.batch(() => (this.#e.findAll(e).forEach((e) => {
e.invalidate();
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
...e,
@@ -10965,26 +10965,26 @@ var Rn = class extends sn {
let n = {
...t,
cancelRefetch: t.cancelRefetch ?? !0
- }, r = dn.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
+ }, r = fn.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
let t = e.fetch(void 0, n);
- return n.throwOnError || (t = t.catch(Nt)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
+ return n.throwOnError || (t = t.catch(Pt)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
}));
- return Promise.all(r).then(Nt);
+ return Promise.all(r).then(Pt);
}
async query(e) {
let t = this.defaultQueryOptions(e);
t.retry === void 0 && (t.retry = !1);
- let n = this.#e.build(this, t), r = n.isStaleByTime(Lt(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;
+ let n = this.#e.build(this, t), r = n.isStaleByTime(Rt(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;
return i ? i(r) : r;
}
fetchQuery(e) {
let t = this.defaultQueryOptions(e);
t.retry === void 0 && (t.retry = !1);
let n = this.#e.build(this, t);
- return n.isStaleByTime(Lt(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
+ return n.isStaleByTime(Rt(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
}
prefetchQuery(e) {
- return this.fetchQuery(e).then(Nt).catch(Nt);
+ return this.fetchQuery(e).then(Pt).catch(Pt);
}
infiniteQuery(e) {
return e._type = "infinite", this.query(e);
@@ -10993,13 +10993,13 @@ var Rn = class extends sn {
return e._type = "infinite", this.fetchQuery(e);
}
prefetchInfiniteQuery(e) {
- return this.fetchInfiniteQuery(e).then(Nt).catch(Nt);
+ return this.fetchInfiniteQuery(e).then(Pt).catch(Pt);
}
ensureInfiniteQueryData(e) {
return e._type = "infinite", this.ensureQueryData(e);
}
resumePausedMutations() {
- return fn.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
+ return pn.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
}
getQueryCache() {
return this.#e;
@@ -11014,7 +11014,7 @@ var Rn = class extends sn {
this.#n = e;
}
setQueryDefaults(e, t) {
- this.#r.set(Vt(e), {
+ this.#r.set(Ht(e), {
queryKey: e,
defaultOptions: t
});
@@ -11022,11 +11022,11 @@ var Rn = class extends sn {
getQueryDefaults(e) {
let t = [...this.#r.values()], n = {};
return t.forEach((t) => {
- Ht(e, t.queryKey) && Object.assign(n, t.defaultOptions);
+ Ut(e, t.queryKey) && Object.assign(n, t.defaultOptions);
}), n;
}
setMutationDefaults(e, t) {
- this.#i.set(Vt(e), {
+ this.#i.set(Ht(e), {
mutationKey: e,
defaultOptions: t
});
@@ -11034,7 +11034,7 @@ var Rn = class extends sn {
getMutationDefaults(e) {
let t = [...this.#i.values()], n = {};
return t.forEach((t) => {
- Ht(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
+ Ut(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
}), n;
}
defaultQueryOptions(e) {
@@ -11045,7 +11045,7 @@ var Rn = class extends sn {
...e,
_defaulted: !0
};
- return t.queryHash ||= Bt(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === en && (t.enabled = !1), t;
+ return t.queryHash ||= Vt(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === tn && (t.enabled = !1), t;
}
defaultMutationOptions(e) {
return e?._defaulted ? e : {
@@ -11058,11 +11058,11 @@ var Rn = class extends sn {
clear() {
this.#e.clear(), this.#t.clear();
}
-}, Vn = R.createContext(!1), Hn = () => R.useContext(Vn);
-Vn.Provider;
+}, Hn = L.createContext(!1), Un = () => L.useContext(Hn);
+Hn.Provider;
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
-function Un() {
+function Wn() {
let e = !1;
return {
clearReset: () => {
@@ -11074,34 +11074,34 @@ function Un() {
isReset: () => e
};
}
-var Wn = R.createContext(Un()), Gn = () => R.useContext(Wn), Kn = (e, t, n) => {
- let r = n?.state.error && typeof e.throwOnError == "function" ? nn(e.throwOnError, [n.state.error, n]) : e.throwOnError;
+var Gn = L.createContext(Wn()), Kn = () => L.useContext(Gn), qn = (e, t, n) => {
+ let r = n?.state.error && typeof e.throwOnError == "function" ? rn(e.throwOnError, [n.state.error, n]) : e.throwOnError;
(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));
-}, qn = (e) => {
- R.useEffect(() => {
+}, Jn = (e) => {
+ L.useEffect(() => {
e.clearReset();
}, [e]);
-}, Jn = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || nn(n, [e.error, r])), Yn = (e) => {
+}, Yn = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || rn(n, [e.error, r])), Xn = (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));
}
-}, Xn = (e, t) => e?.suspense && t.isPending, Zn = (e, t, n) => t.fetchOptimistic(e).catch(() => {
+}, Zn = (e, t) => e?.suspense && t.isPending, Qn = (e, t, n) => t.fetchOptimistic(e).catch(() => {
n.clearReset();
});
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
-function Qn(e, t, n) {
- let r = Hn(), i = Gn(), a = Dt(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
- o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, Yn(o), Kn(o, i, s), qn(i);
- let [l] = R.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
- if (R.useSyncExternalStore(R.useCallback((e) => {
- let t = d ? l.subscribe(dn.batchCalls(e)) : Nt;
+function $n(e, t, n) {
+ let r = Un(), i = Kn(), a = Ot(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
+ o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, Xn(o), qn(o, i, s), Jn(i);
+ let [l] = L.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
+ if (L.useSyncExternalStore(L.useCallback((e) => {
+ let t = d ? l.subscribe(fn.batchCalls(e)) : Pt;
return l.updateResult(), t;
- }, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), R.useEffect(() => {
+ }, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), L.useEffect(() => {
l.setOptions(o);
- }, [o, l]), Xn(o, u)) throw Zn(o, l, i);
- if (Jn({
+ }, [o, l]), Zn(o, u)) throw Qn(o, l, i);
+ if (Yn({
result: u,
errorResetBoundary: i,
throwOnError: o.throwOnError,
@@ -11112,20 +11112,20 @@ function Qn(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
-function $n(e, t) {
- return Qn(e, Dn, t);
+function er(e, t) {
+ return $n(e, On, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutation.js
-function er(e, t) {
- let n = Dt(t), [r] = R.useState(() => new Rn(n, e));
- R.useEffect(() => {
+function tr(e, t) {
+ let n = Ot(t), [r] = L.useState(() => new zn(n, e));
+ L.useEffect(() => {
r.setOptions(e);
}, [r, e]);
- let i = R.useSyncExternalStore(R.useCallback((e) => r.subscribe(dn.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = R.useCallback((...e) => {
- r.mutate(e[0], e[1]).catch(Nt);
+ let i = L.useSyncExternalStore(L.useCallback((e) => r.subscribe(fn.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = L.useCallback((...e) => {
+ r.mutate(e[0], e[1]).catch(Pt);
}, [r]);
- if (i.error && nn(r.options.throwOnError, [i.error])) throw i.error;
+ if (i.error && rn(r.options.throwOnError, [i.error])) throw i.error;
return {
...i,
mutate: a,
@@ -11134,105 +11134,105 @@ function er(e, t) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js
-function tr(e, t) {
- return Qn(e, Nn, t);
+function nr(e, t) {
+ return $n(e, Pn, t);
}
//#endregion
//#region node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var nr = (e, t) => {
+var rr = (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;
-}, rr = (e, t) => ({
+}, ir = (e, t) => ({
classGroupId: e,
validator: t
-}), ir = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), ar = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), ar = "-", or = [], sr = "arbitrary..", cr = (e) => {
- let t = dr(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), or = "-", sr = [], cr = "arbitrary..", lr = (e) => {
+ let t = fr(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return ur(e);
- let n = e.split(ar);
- return lr(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return dr(e);
+ let n = e.split(or);
+ return ur(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? nr(i, t) : t : i || or;
+ return t ? i ? rr(i, t) : t : i || sr;
}
- return n[e] || or;
+ return n[e] || sr;
}
};
-}, lr = (e, t, n) => {
+}, ur = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = lr(e, t + 1, i);
+ let n = ur(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(ar) : e.slice(t).join(ar), s = a.length;
+ let o = t === 0 ? e.join(or) : e.slice(t).join(or), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, ur = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, dr = (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 ? sr + r : void 0;
-})(), dr = (e) => {
+ return r ? cr + r : void 0;
+})(), fr = (e) => {
let { theme: t, classGroups: n } = e;
- return fr(n, t);
-}, fr = (e, t) => {
- let n = ir();
+ return pr(n, t);
+}, pr = (e, t) => {
+ let n = ar();
for (let r in e) {
let i = e[r];
- pr(i, n, r, t);
+ mr(i, n, r, t);
}
return n;
-}, pr = (e, t, n, r) => {
+}, mr = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- mr(i, t, n, r);
+ hr(i, t, n, r);
}
-}, mr = (e, t, n, r) => {
+}, hr = (e, t, n, r) => {
if (typeof e == "string") {
- hr(e, t, n);
+ gr(e, t, n);
return;
}
if (typeof e == "function") {
- gr(e, t, n, r);
+ _r(e, t, n, r);
return;
}
- _r(e, t, n, r);
-}, hr = (e, t, n) => {
- let r = e === "" ? t : vr(t, e);
+ vr(e, t, n, r);
+}, gr = (e, t, n) => {
+ let r = e === "" ? t : yr(t, e);
r.classGroupId = n;
-}, gr = (e, t, n, r) => {
- if (yr(e)) {
- pr(e(r), t, n, r);
+}, _r = (e, t, n, r) => {
+ if (br(e)) {
+ mr(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(rr(n, e));
-}, _r = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(ir(n, e));
+}, vr = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- pr(o, vr(t, a), n, r);
+ mr(o, yr(t, a), n, r);
}
-}, vr = (e, t) => {
- let n = e, r = t.split(ar), i = r.length;
+}, yr = (e, t) => {
+ let n = e, r = t.split(or), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = ir(), n.nextPart.set(t, i)), n = i;
+ i || (i = ar(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, yr = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, br = (e) => {
+}, br = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, xr = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -11250,19 +11250,19 @@ var nr = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, xr = "!", Sr = ":", Cr = [], wr = (e, t, n, r, i) => ({
+}, Sr = "!", Cr = ":", wr = [], Tr = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Tr = (e) => {
+}), Er = (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 === Sr) {
+ if (o === Cr) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -11274,13 +11274,13 @@ var nr = (e, t) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(xr) ? (c = s.slice(0, -1), l = !0) : s.startsWith(xr) && (c = s.slice(1), l = !0);
+ s.endsWith(Sr) ? (c = s.slice(0, -1), l = !0) : s.startsWith(Sr) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return wr(t, l, c, u);
+ return Tr(t, l, c, u);
};
if (t) {
- let e = t + Sr, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : wr(Cr, !1, t, void 0, !0);
+ let e = t + Cr, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Tr(wr, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -11290,7 +11290,7 @@ var nr = (e, t) => {
});
}
return r;
-}, Er = (e) => {
+}, Dr = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -11302,18 +11302,18 @@ var nr = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, Dr = (e) => ({
- cache: br(e.cacheSize),
- parseClassName: Tr(e),
- sortModifiers: Er(e),
- postfixLookupClassGroupIds: Or(e),
- ...cr(e)
-}), Or = (e) => {
+}, Or = (e) => ({
+ cache: xr(e.cacheSize),
+ parseClassName: Er(e),
+ sortModifiers: Dr(e),
+ postfixLookupClassGroupIds: kr(e),
+ ...lr(e)
+}), kr = (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;
-}, kr = /\s+/, Ar = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(kr), l = "";
+}, Ar = /\s+/, jr = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Ar), 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) {
@@ -11337,7 +11337,7 @@ var nr = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + xr : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + Sr : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -11348,34 +11348,34 @@ var nr = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, jr = (...e) => {
+}, Mr = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = Mr(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = Nr(n)) && (i && (i += " "), i += r);
return i;
-}, Mr = (e) => {
+}, Nr = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = Mr(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = Nr(e[r])) && (n && (n += " "), n += t);
return n;
-}, Nr = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = Dr(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, Pr = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = Or(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 = Ar(e, n);
+ let a = jr(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(jr(...e));
-}, Pr = [], Fr = (e) => {
- let t = (t) => t[e] || Pr;
+ return a = o, (...e) => a(Mr(...e));
+}, Fr = [], Ir = (e) => {
+ let t = (t) => t[e] || Fr;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, Ir = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Lr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Rr = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, zr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Br = /\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$/, Vr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Hr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ur = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Wr = (e) => Rr.test(e), Gr = (e) => !!e && !Number.isNaN(Number(e)), Kr = (e) => !!e && Number.isInteger(Number(e)), qr = (e) => e.endsWith("%") && Gr(e.slice(0, -1)), Jr = (e) => zr.test(e), Yr = () => !0, Xr = (e) => Br.test(e) && !Vr.test(e), Zr = () => !1, Qr = (e) => Hr.test(e), $r = (e) => Ur.test(e), ei = (e) => !B(e) && !V(e), ti = (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)), ni = (e) => _i(e, xi, Zr), B = (e) => Ir.test(e), ri = (e) => _i(e, Si, Xr), ii = (e) => _i(e, Ci, Gr), ai = (e) => _i(e, Ti, Yr), oi = (e) => _i(e, wi, Zr), si = (e) => _i(e, yi, Zr), ci = (e) => _i(e, bi, $r), li = (e) => _i(e, Ei, Qr), V = (e) => Lr.test(e), ui = (e) => vi(e, Si), di = (e) => vi(e, wi), fi = (e) => vi(e, yi), pi = (e) => vi(e, xi), mi = (e) => vi(e, bi), hi = (e) => vi(e, Ei, !0), gi = (e) => vi(e, Ti, !0), _i = (e, t, n) => {
- let r = Ir.exec(e);
- return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, vi = (e, t, n = !1) => {
+}, Lr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Rr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, zr = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Br = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Vr = /\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$/, Hr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Ur = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Wr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Gr = (e) => zr.test(e), Kr = (e) => !!e && !Number.isNaN(Number(e)), qr = (e) => !!e && Number.isInteger(Number(e)), Jr = (e) => e.endsWith("%") && Kr(e.slice(0, -1)), Yr = (e) => Br.test(e), Xr = () => !0, Zr = (e) => Vr.test(e) && !Hr.test(e), Qr = () => !1, $r = (e) => Ur.test(e), ei = (e) => Wr.test(e), ti = (e) => !z(e) && !B(e), ni = (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)), ri = (e) => vi(e, Si, Qr), z = (e) => Lr.test(e), ii = (e) => vi(e, Ci, Zr), ai = (e) => vi(e, wi, Kr), oi = (e) => vi(e, Ei, Xr), si = (e) => vi(e, Ti, Qr), ci = (e) => vi(e, bi, Qr), li = (e) => vi(e, xi, ei), ui = (e) => vi(e, Di, $r), B = (e) => Rr.test(e), di = (e) => yi(e, Ci), fi = (e) => yi(e, Ti), pi = (e) => yi(e, bi), mi = (e) => yi(e, Si), hi = (e) => yi(e, xi), gi = (e) => yi(e, Di, !0), _i = (e) => yi(e, Ei, !0), vi = (e, t, n) => {
let r = Lr.exec(e);
+ return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
+}, yi = (e, t, n = !1) => {
+ let r = Rr.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, yi = (e) => e === "position" || e === "percentage", bi = (e) => e === "image" || e === "url", xi = (e) => e === "length" || e === "size" || e === "bg-size", Si = (e) => e === "length", Ci = (e) => e === "number", wi = (e) => e === "family-name", Ti = (e) => e === "number" || e === "weight", Ei = (e) => e === "shadow", Di = () => {
- let e = Fr("color"), t = Fr("font"), n = Fr("text"), r = Fr("font-weight"), i = Fr("tracking"), a = Fr("leading"), o = Fr("breakpoint"), s = Fr("container"), c = Fr("spacing"), l = Fr("radius"), u = Fr("shadow"), d = Fr("inset-shadow"), f = Fr("text-shadow"), p = Fr("drop-shadow"), m = Fr("blur"), h = Fr("perspective"), g = Fr("aspect"), _ = Fr("ease"), v = Fr("animate"), y = () => [
+}, bi = (e) => e === "position" || e === "percentage", xi = (e) => e === "image" || e === "url", Si = (e) => e === "length" || e === "size" || e === "bg-size", Ci = (e) => e === "length", wi = (e) => e === "number", Ti = (e) => e === "family-name", Ei = (e) => e === "number" || e === "weight", Di = (e) => e === "shadow", Oi = () => {
+ let e = Ir("color"), t = Ir("font"), n = Ir("text"), r = Ir("font-weight"), i = Ir("tracking"), a = Ir("leading"), o = Ir("breakpoint"), s = Ir("container"), c = Ir("spacing"), l = Ir("radius"), u = Ir("shadow"), d = Ir("inset-shadow"), f = Ir("text-shadow"), p = Ir("drop-shadow"), m = Ir("blur"), h = Ir("perspective"), g = Ir("aspect"), _ = Ir("ease"), v = Ir("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -11400,8 +11400,8 @@ var nr = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- V,
- B
+ B,
+ z
], S = () => [
"auto",
"hidden",
@@ -11413,43 +11413,43 @@ var nr = (e, t) => {
"contain",
"none"
], w = () => [
- V,
B,
+ z,
c
], T = () => [
- Wr,
+ Gr,
"full",
"auto",
...w()
], E = () => [
- Kr,
+ qr,
"none",
"subgrid",
- V,
- B
+ B,
+ z
], D = () => [
"auto",
{ span: [
"full",
- Kr,
- V,
- B
+ qr,
+ B,
+ z
] },
- Kr,
- V,
- B
+ qr,
+ B,
+ z
], O = () => [
- Kr,
+ qr,
"auto",
- V,
- B
+ B,
+ z
], k = () => [
"auto",
"min",
"max",
"fr",
- V,
- B
+ B,
+ z
], A = () => [
"start",
"end",
@@ -11469,7 +11469,7 @@ var nr = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- Wr,
+ Gr,
"auto",
"full",
"dvw",
@@ -11484,7 +11484,7 @@ var nr = (e, t) => {
...w()
], P = () => [
s,
- Wr,
+ Gr,
"screen",
"full",
"dvw",
@@ -11495,7 +11495,7 @@ var nr = (e, t) => {
"fit",
...w()
], ee = () => [
- Wr,
+ Gr,
"screen",
"full",
"lh",
@@ -11508,48 +11508,48 @@ var nr = (e, t) => {
...w()
], F = () => [
e,
- V,
- B
- ], I = () => [
+ B,
+ z
+ ], te = () => [
...b(),
- fi,
- si,
- { position: [V, B] }
- ], te = () => ["no-repeat", { repeat: [
+ pi,
+ ci,
+ { position: [B, z] }
+ ], ne = () => ["no-repeat", { repeat: [
"",
"x",
"y",
"space",
"round"
- ] }], ne = () => [
+ ] }], re = () => [
"auto",
"cover",
"contain",
- pi,
- ni,
- { size: [V, B] }
- ], re = () => [
- qr,
- ui,
- ri
+ mi,
+ ri,
+ { size: [B, z] }
], ie = () => [
+ Jr,
+ di,
+ ii
+ ], ae = () => [
"",
"none",
"full",
l,
- V,
- B
- ], ae = () => [
- "",
- Gr,
- ui,
- ri
+ B,
+ z
], oe = () => [
+ "",
+ Kr,
+ di,
+ ii
+ ], se = () => [
"solid",
"dashed",
"dotted",
"double"
- ], se = () => [
+ ], ce = () => [
"normal",
"multiply",
"screen",
@@ -11566,33 +11566,33 @@ var nr = (e, t) => {
"saturation",
"color",
"luminosity"
- ], ce = () => [
- Gr,
- qr,
- fi,
- si
], le = () => [
+ Kr,
+ Jr,
+ pi,
+ ci
+ ], ue = () => [
"",
"none",
m,
- V,
- B
- ], ue = () => [
+ B,
+ z
+ ], de = () => [
"none",
- Gr,
- V,
- B
- ], L = () => [
+ Kr,
+ B,
+ z
+ ], I = () => [
"none",
- Gr,
- V,
- B
- ], de = () => [
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
], fe = () => [
- Wr,
+ Kr,
+ B,
+ z
+ ], pe = () => [
+ Gr,
"full",
...w()
];
@@ -11606,17 +11606,17 @@ var nr = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [Jr],
- breakpoint: [Jr],
- color: [Yr],
- container: [Jr],
- "drop-shadow": [Jr],
+ blur: [Yr],
+ breakpoint: [Yr],
+ color: [Xr],
+ container: [Yr],
+ "drop-shadow": [Yr],
ease: [
"in",
"out",
"in-out"
],
- font: [ei],
+ font: [ti],
"font-weight": [
"thin",
"extralight",
@@ -11628,7 +11628,7 @@ var nr = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [Jr],
+ "inset-shadow": [Yr],
leading: [
"none",
"tight",
@@ -11645,11 +11645,11 @@ var nr = (e, t) => {
"distant",
"none"
],
- radius: [Jr],
- shadow: [Jr],
- spacing: ["px", Gr],
- text: [Jr],
- "text-shadow": [Jr],
+ radius: [Yr],
+ shadow: [Yr],
+ spacing: ["px", Kr],
+ text: [Yr],
+ "text-shadow": [Yr],
tracking: [
"tighter",
"tight",
@@ -11663,9 +11663,9 @@ var nr = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- Wr,
+ Gr,
+ z,
B,
- V,
g
] }],
container: ["container"],
@@ -11673,15 +11673,15 @@ var nr = (e, t) => {
"",
"normal",
"size",
- V,
- B
+ B,
+ z
] }],
- "container-named": [ti],
+ "container-named": [ni],
columns: [{ columns: [
- Gr,
+ Kr,
"auto",
+ z,
B,
- V,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -11778,13 +11778,13 @@ var nr = (e, t) => {
"collapse"
],
z: [{ z: [
- Kr,
+ qr,
"auto",
- V,
- B
+ B,
+ z
] }],
basis: [{ basis: [
- Wr,
+ Gr,
"full",
"auto",
s,
@@ -11802,32 +11802,32 @@ var nr = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
+ Kr,
Gr,
- Wr,
"auto",
"initial",
"none",
- B
+ z
] }],
grow: [{ grow: [
"",
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
shrink: [{ shrink: [
"",
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
order: [{ order: [
- Kr,
+ qr,
"first",
"last",
"none",
- V,
- B
+ B,
+ z
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -11934,15 +11934,15 @@ var nr = (e, t) => {
"font-size": [{ text: [
"base",
n,
- ui,
- ri
+ di,
+ ii
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- gi,
- ai
+ _i,
+ oi
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -11954,15 +11954,15 @@ var nr = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- qr,
- B
+ Jr,
+ z
] }],
"font-family": [{ font: [
- di,
- oi,
+ fi,
+ si,
t
] }],
- "font-features": [{ "font-features": [B] }],
+ "font-features": [{ "font-features": [z] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -11971,14 +11971,14 @@ var nr = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- V,
- B
+ B,
+ z
] }],
"line-clamp": [{ "line-clamp": [
- Gr,
+ Kr,
"none",
- V,
- ii
+ B,
+ ai
] }],
leading: [{ leading: [
"none",
@@ -11987,16 +11987,16 @@ var nr = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- V,
- B
+ B,
+ z
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- V,
- B
+ B,
+ z
] }],
"text-alignment": [{ text: [
"left",
@@ -12014,20 +12014,20 @@ var nr = (e, t) => {
"line-through",
"no-underline"
],
- "text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
+ "text-decoration-style": [{ decoration: [...se(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- Gr,
+ Kr,
"from-font",
"auto",
- V,
- ri
+ B,
+ ii
] }],
"text-decoration-color": [{ decoration: F() }],
"underline-offset": [{ "underline-offset": [
- Gr,
+ Kr,
"auto",
- V,
- B
+ B,
+ z
] }],
"text-transform": [
"uppercase",
@@ -12048,9 +12048,9 @@ var nr = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- Kr,
- V,
- B
+ qr,
+ B,
+ z
] }],
"vertical-align": [{ align: [
"baseline",
@@ -12061,8 +12061,8 @@ var nr = (e, t) => {
"text-bottom",
"sub",
"super",
- V,
- B
+ B,
+ z
] }],
whitespace: [{ whitespace: [
"normal",
@@ -12090,8 +12090,8 @@ var nr = (e, t) => {
] }],
content: [{ content: [
"none",
- V,
- B
+ B,
+ z
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -12109,9 +12109,9 @@ var nr = (e, t) => {
"padding",
"content"
] }],
- "bg-position": [{ bg: I() }],
- "bg-repeat": [{ bg: te() }],
- "bg-size": [{ bg: ne() }],
+ "bg-position": [{ bg: te() }],
+ "bg-repeat": [{ bg: ne() }],
+ "bg-size": [{ bg: re() }],
"bg-image": [{ bg: [
"none",
{
@@ -12126,69 +12126,69 @@ var nr = (e, t) => {
"l",
"tl"
] },
- Kr,
- V,
- B
+ qr,
+ B,
+ z
],
radial: [
"",
- V,
- B
+ B,
+ z
],
conic: [
"",
- Kr,
- V,
- B
+ qr,
+ B,
+ z
]
},
- mi,
- ci
+ hi,
+ li
] }],
"bg-color": [{ bg: F() }],
- "gradient-from-pos": [{ from: re() }],
- "gradient-via-pos": [{ via: re() }],
- "gradient-to-pos": [{ to: re() }],
+ "gradient-from-pos": [{ from: ie() }],
+ "gradient-via-pos": [{ via: ie() }],
+ "gradient-to-pos": [{ to: ie() }],
"gradient-from": [{ from: F() }],
"gradient-via": [{ via: F() }],
"gradient-to": [{ to: F() }],
- rounded: [{ rounded: ie() }],
- "rounded-s": [{ "rounded-s": ie() }],
- "rounded-e": [{ "rounded-e": ie() }],
- "rounded-t": [{ "rounded-t": ie() }],
- "rounded-r": [{ "rounded-r": ie() }],
- "rounded-b": [{ "rounded-b": ie() }],
- "rounded-l": [{ "rounded-l": ie() }],
- "rounded-ss": [{ "rounded-ss": ie() }],
- "rounded-se": [{ "rounded-se": ie() }],
- "rounded-ee": [{ "rounded-ee": ie() }],
- "rounded-es": [{ "rounded-es": ie() }],
- "rounded-tl": [{ "rounded-tl": ie() }],
- "rounded-tr": [{ "rounded-tr": ie() }],
- "rounded-br": [{ "rounded-br": ie() }],
- "rounded-bl": [{ "rounded-bl": ie() }],
- "border-w": [{ border: ae() }],
- "border-w-x": [{ "border-x": ae() }],
- "border-w-y": [{ "border-y": ae() }],
- "border-w-s": [{ "border-s": ae() }],
- "border-w-e": [{ "border-e": ae() }],
- "border-w-bs": [{ "border-bs": ae() }],
- "border-w-be": [{ "border-be": ae() }],
- "border-w-t": [{ "border-t": ae() }],
- "border-w-r": [{ "border-r": ae() }],
- "border-w-b": [{ "border-b": ae() }],
- "border-w-l": [{ "border-l": ae() }],
- "divide-x": [{ "divide-x": ae() }],
+ rounded: [{ rounded: ae() }],
+ "rounded-s": [{ "rounded-s": ae() }],
+ "rounded-e": [{ "rounded-e": ae() }],
+ "rounded-t": [{ "rounded-t": ae() }],
+ "rounded-r": [{ "rounded-r": ae() }],
+ "rounded-b": [{ "rounded-b": ae() }],
+ "rounded-l": [{ "rounded-l": ae() }],
+ "rounded-ss": [{ "rounded-ss": ae() }],
+ "rounded-se": [{ "rounded-se": ae() }],
+ "rounded-ee": [{ "rounded-ee": ae() }],
+ "rounded-es": [{ "rounded-es": ae() }],
+ "rounded-tl": [{ "rounded-tl": ae() }],
+ "rounded-tr": [{ "rounded-tr": ae() }],
+ "rounded-br": [{ "rounded-br": ae() }],
+ "rounded-bl": [{ "rounded-bl": ae() }],
+ "border-w": [{ border: oe() }],
+ "border-w-x": [{ "border-x": oe() }],
+ "border-w-y": [{ "border-y": oe() }],
+ "border-w-s": [{ "border-s": oe() }],
+ "border-w-e": [{ "border-e": oe() }],
+ "border-w-bs": [{ "border-bs": oe() }],
+ "border-w-be": [{ "border-be": oe() }],
+ "border-w-t": [{ "border-t": oe() }],
+ "border-w-r": [{ "border-r": oe() }],
+ "border-w-b": [{ "border-b": oe() }],
+ "border-w-l": [{ "border-l": oe() }],
+ "divide-x": [{ "divide-x": oe() }],
"divide-x-reverse": ["divide-x-reverse"],
- "divide-y": [{ "divide-y": ae() }],
+ "divide-y": [{ "divide-y": oe() }],
"divide-y-reverse": ["divide-y-reverse"],
"border-style": [{ border: [
- ...oe(),
+ ...se(),
"hidden",
"none"
] }],
"divide-style": [{ divide: [
- ...oe(),
+ ...se(),
"hidden",
"none"
] }],
@@ -12205,20 +12205,20 @@ var nr = (e, t) => {
"border-color-l": [{ "border-l": F() }],
"divide-color": [{ divide: F() }],
"outline-style": [{ outline: [
- ...oe(),
+ ...se(),
"none",
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
"outline-w": [{ outline: [
"",
- Gr,
- ui,
- ri
+ Kr,
+ di,
+ ii
] }],
"outline-color": [{ outline: F() }],
shadow: [{ shadow: [
@@ -12226,42 +12226,42 @@ var nr = (e, t) => {
"inner",
"none",
u,
- hi,
- li
+ gi,
+ ui
] }],
"shadow-color": [{ shadow: F() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- hi,
- li
+ gi,
+ ui
] }],
"inset-shadow-color": [{ "inset-shadow": F() }],
- "ring-w": [{ ring: ae() }],
+ "ring-w": [{ ring: oe() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: F() }],
- "ring-offset-w": [{ "ring-offset": [Gr, ri] }],
+ "ring-offset-w": [{ "ring-offset": [Kr, ii] }],
"ring-offset-color": [{ "ring-offset": F() }],
- "inset-ring-w": [{ "inset-ring": ae() }],
+ "inset-ring-w": [{ "inset-ring": oe() }],
"inset-ring-color": [{ "inset-ring": F() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- hi,
- li
+ gi,
+ ui
] }],
"text-shadow-color": [{ "text-shadow": F() }],
opacity: [{ opacity: [
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
"mix-blend": [{ "mix-blend": [
- ...se(),
+ ...ce(),
"plus-darker",
"plus-lighter"
] }],
- "bg-blend": [{ "bg-blend": se() }],
+ "bg-blend": [{ "bg-blend": ce() }],
"mask-clip": [{ "mask-clip": [
"border",
"padding",
@@ -12276,38 +12276,38 @@ var nr = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [Gr] }],
- "mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],
- "mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],
+ "mask-image-linear-pos": [{ "mask-linear": [Kr] }],
+ "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": F() }],
"mask-image-linear-to-color": [{ "mask-linear-to": F() }],
- "mask-image-t-from-pos": [{ "mask-t-from": ce() }],
- "mask-image-t-to-pos": [{ "mask-t-to": ce() }],
+ "mask-image-t-from-pos": [{ "mask-t-from": le() }],
+ "mask-image-t-to-pos": [{ "mask-t-to": le() }],
"mask-image-t-from-color": [{ "mask-t-from": F() }],
"mask-image-t-to-color": [{ "mask-t-to": F() }],
- "mask-image-r-from-pos": [{ "mask-r-from": ce() }],
- "mask-image-r-to-pos": [{ "mask-r-to": ce() }],
+ "mask-image-r-from-pos": [{ "mask-r-from": le() }],
+ "mask-image-r-to-pos": [{ "mask-r-to": le() }],
"mask-image-r-from-color": [{ "mask-r-from": F() }],
"mask-image-r-to-color": [{ "mask-r-to": F() }],
- "mask-image-b-from-pos": [{ "mask-b-from": ce() }],
- "mask-image-b-to-pos": [{ "mask-b-to": ce() }],
+ "mask-image-b-from-pos": [{ "mask-b-from": le() }],
+ "mask-image-b-to-pos": [{ "mask-b-to": le() }],
"mask-image-b-from-color": [{ "mask-b-from": F() }],
"mask-image-b-to-color": [{ "mask-b-to": F() }],
- "mask-image-l-from-pos": [{ "mask-l-from": ce() }],
- "mask-image-l-to-pos": [{ "mask-l-to": ce() }],
+ "mask-image-l-from-pos": [{ "mask-l-from": le() }],
+ "mask-image-l-to-pos": [{ "mask-l-to": le() }],
"mask-image-l-from-color": [{ "mask-l-from": F() }],
"mask-image-l-to-color": [{ "mask-l-to": F() }],
- "mask-image-x-from-pos": [{ "mask-x-from": ce() }],
- "mask-image-x-to-pos": [{ "mask-x-to": ce() }],
+ "mask-image-x-from-pos": [{ "mask-x-from": le() }],
+ "mask-image-x-to-pos": [{ "mask-x-to": le() }],
"mask-image-x-from-color": [{ "mask-x-from": F() }],
"mask-image-x-to-color": [{ "mask-x-to": F() }],
- "mask-image-y-from-pos": [{ "mask-y-from": ce() }],
- "mask-image-y-to-pos": [{ "mask-y-to": ce() }],
+ "mask-image-y-from-pos": [{ "mask-y-from": le() }],
+ "mask-image-y-to-pos": [{ "mask-y-to": le() }],
"mask-image-y-from-color": [{ "mask-y-from": F() }],
"mask-image-y-to-color": [{ "mask-y-to": F() }],
- "mask-image-radial": [{ "mask-radial": [V, B] }],
- "mask-image-radial-from-pos": [{ "mask-radial-from": ce() }],
- "mask-image-radial-to-pos": [{ "mask-radial-to": ce() }],
+ "mask-image-radial": [{ "mask-radial": [B, z] }],
+ "mask-image-radial-from-pos": [{ "mask-radial-from": le() }],
+ "mask-image-radial-to-pos": [{ "mask-radial-to": le() }],
"mask-image-radial-from-color": [{ "mask-radial-from": F() }],
"mask-image-radial-to-color": [{ "mask-radial-to": F() }],
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
@@ -12316,9 +12316,9 @@ var nr = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [Gr] }],
- "mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],
- "mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],
+ "mask-image-conic-pos": [{ "mask-conic": [Kr] }],
+ "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": F() }],
"mask-image-conic-to-color": [{ "mask-conic-to": F() }],
"mask-mode": [{ mask: [
@@ -12334,117 +12334,117 @@ var nr = (e, t) => {
"stroke",
"view"
] }],
- "mask-position": [{ mask: I() }],
- "mask-repeat": [{ mask: te() }],
- "mask-size": [{ mask: ne() }],
+ "mask-position": [{ mask: te() }],
+ "mask-repeat": [{ mask: ne() }],
+ "mask-size": [{ mask: re() }],
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- V,
- B
+ B,
+ z
] }],
filter: [{ filter: [
"",
"none",
- V,
- B
+ B,
+ z
] }],
- blur: [{ blur: le() }],
+ blur: [{ blur: ue() }],
brightness: [{ brightness: [
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
contrast: [{ contrast: [
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- hi,
- li
+ gi,
+ ui
] }],
"drop-shadow-color": [{ "drop-shadow": F() }],
grayscale: [{ grayscale: [
"",
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
"hue-rotate": [{ "hue-rotate": [
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
invert: [{ invert: [
"",
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
saturate: [{ saturate: [
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
sepia: [{ sepia: [
"",
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- V,
- B
+ B,
+ z
] }],
- "backdrop-blur": [{ "backdrop-blur": le() }],
+ "backdrop-blur": [{ "backdrop-blur": ue() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -12460,56 +12460,56 @@ var nr = (e, t) => {
"shadow",
"transform",
"none",
- V,
- B
+ B,
+ z
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- Gr,
+ Kr,
"initial",
- V,
- B
+ B,
+ z
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- V,
- B
+ B,
+ z
] }],
delay: [{ delay: [
- Gr,
- V,
- B
+ Kr,
+ B,
+ z
] }],
animate: [{ animate: [
"none",
v,
- V,
- B
+ B,
+ z
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- V,
- B
+ B,
+ z
] }],
"perspective-origin": [{ "perspective-origin": x() }],
- rotate: [{ rotate: ue() }],
- "rotate-x": [{ "rotate-x": ue() }],
- "rotate-y": [{ "rotate-y": ue() }],
- "rotate-z": [{ "rotate-z": ue() }],
- scale: [{ scale: L() }],
- "scale-x": [{ "scale-x": L() }],
- "scale-y": [{ "scale-y": L() }],
- "scale-z": [{ "scale-z": L() }],
+ rotate: [{ rotate: de() }],
+ "rotate-x": [{ "rotate-x": de() }],
+ "rotate-y": [{ "rotate-y": de() }],
+ "rotate-z": [{ "rotate-z": de() }],
+ scale: [{ scale: I() }],
+ "scale-x": [{ "scale-x": I() }],
+ "scale-y": [{ "scale-y": I() }],
+ "scale-z": [{ "scale-z": I() }],
"scale-3d": ["scale-3d"],
- skew: [{ skew: de() }],
- "skew-x": [{ "skew-x": de() }],
- "skew-y": [{ "skew-y": de() }],
+ skew: [{ skew: fe() }],
+ "skew-x": [{ "skew-x": fe() }],
+ "skew-y": [{ "skew-y": fe() }],
transform: [{ transform: [
- V,
B,
+ z,
"",
"none",
"gpu",
@@ -12517,15 +12517,15 @@ var nr = (e, t) => {
] }],
"transform-origin": [{ origin: x() }],
"transform-style": [{ transform: ["3d", "flat"] }],
- translate: [{ translate: fe() }],
- "translate-x": [{ "translate-x": fe() }],
- "translate-y": [{ "translate-y": fe() }],
- "translate-z": [{ "translate-z": fe() }],
+ translate: [{ translate: pe() }],
+ "translate-x": [{ "translate-x": pe() }],
+ "translate-y": [{ "translate-y": pe() }],
+ "translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- Kr,
- V,
- B
+ qr,
+ B,
+ z
] }],
accent: [{ accent: F() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -12575,8 +12575,8 @@ var nr = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- V,
- B
+ B,
+ z
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -12662,15 +12662,15 @@ var nr = (e, t) => {
"scroll",
"contents",
"transform",
- V,
- B
+ B,
+ z
] }],
fill: [{ fill: ["none", ...F()] }],
"stroke-w": [{ stroke: [
- Gr,
- ui,
- ri,
- ii
+ Kr,
+ di,
+ ii,
+ ai
] }],
stroke: [{ stroke: ["none", ...F()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -12928,16 +12928,16 @@ var nr = (e, t) => {
"selection"
]
};
-}, Oi = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (ki(e, "cacheSize", t), ki(e, "prefix", n), ki(e, "experimentalParseClassName", r), Ai(e.theme, a.theme), Ai(e.classGroups, a.classGroups), Ai(e.conflictingClassGroups, a.conflictingClassGroups), Ai(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), ki(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), ki(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), ji(e.theme, i.theme), ji(e.classGroups, i.classGroups), ji(e.conflictingClassGroups, i.conflictingClassGroups), ji(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), Mi(e, i, "postfixLookupClassGroups"), Mi(e, i, "orderSensitiveModifiers"), e), ki = (e, t, n) => {
+}, ki = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Ai(e, "cacheSize", t), Ai(e, "prefix", n), Ai(e, "experimentalParseClassName", r), ji(e.theme, a.theme), ji(e.classGroups, a.classGroups), ji(e.conflictingClassGroups, a.conflictingClassGroups), ji(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Ai(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), Ai(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), Mi(e.theme, i.theme), Mi(e.classGroups, i.classGroups), Mi(e.conflictingClassGroups, i.conflictingClassGroups), Mi(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), Ni(e, i, "postfixLookupClassGroups"), Ni(e, i, "orderSensitiveModifiers"), e), Ai = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, Ai = (e, t) => {
- if (t) for (let n in t) ki(e, n, t[n]);
}, ji = (e, t) => {
- if (t) for (let n in t) Mi(e, t, n);
-}, Mi = (e, t, n) => {
+ if (t) for (let n in t) Ai(e, n, t[n]);
+}, Mi = (e, t) => {
+ if (t) for (let n in t) Ni(e, t, n);
+}, Ni = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, Ni = (e, ...t) => typeof e == "function" ? Nr(Di, e, ...t) : Nr(() => Oi(Di(), e), ...t), Pi = [
+}, Pi = (e, ...t) => typeof e == "function" ? Pr(Oi, e, ...t) : Pr(() => ki(Oi(), e), ...t), Fi = [
"large-title",
"display-1",
"display-2",
@@ -12951,18 +12951,18 @@ var nr = (e, t) => {
"body-2",
"caption-1",
"caption-2"
-], Fi = [
+], Ii = [
"regular",
"medium",
"semibold",
"bold"
-], Ii = Ni({ extend: { classGroups: { "font-size": [{ text: Pi.flatMap((e) => Fi.map((t) => `${e}-${t}`)) }] } } });
-function Li(e) {
+], Li = Pi({ extend: { classGroups: { "font-size": [{ text: Fi.flatMap((e) => Ii.map((t) => `${e}-${t}`)) }] } } });
+function Ri(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var Ri = Li({
+var zi = Ri({
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",
@@ -12981,16 +12981,16 @@ var Ri = Li({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function zi({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
- return /* @__PURE__ */ (0, z.jsx)("span", {
+function Bi({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+ return /* @__PURE__ */ (0, R.jsx)("span", {
ref: r,
- className: Ii(Ri.base, Ri.variant[e], Ri.color[t], n),
+ className: Li(zi.base, zi.variant[e], zi.color[t], n),
...i
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var Bi = Li({
+var Vi = Ri({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -13045,44 +13045,44 @@ var Bi = Li({
].join(" ")
}
});
-function H({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {
- return /* @__PURE__ */ (0, z.jsxs)("button", {
+function V({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {
+ return /* @__PURE__ */ (0, R.jsxs)("button", {
ref: c,
type: s,
- className: Ii(Bi.base, Bi.size[t], Bi.variant[e], n && Bi.iconOnlySize[t], o),
+ className: Li(Vi.base, Vi.size[t], Vi.variant[e], n && Vi.iconOnlySize[t], o),
...l,
children: [
- r ? /* @__PURE__ */ (0, z.jsx)(r, {
- className: Bi.icon[t],
+ r ? /* @__PURE__ */ (0, R.jsx)(r, {
+ className: Vi.icon[t],
"aria-hidden": !0
}) : null,
- !n && a != null && /* @__PURE__ */ (0, z.jsx)("span", {
- className: Bi.label[t],
+ !n && a != null && /* @__PURE__ */ (0, R.jsx)("span", {
+ className: Vi.label[t],
children: a
}),
- !n && i ? /* @__PURE__ */ (0, z.jsx)(i, {
- className: Bi.icon[t],
+ !n && i ? /* @__PURE__ */ (0, R.jsx)(i, {
+ className: Vi.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function Vi({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
- return /* @__PURE__ */ (0, z.jsxs)("a", {
+function Hi({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+ return /* @__PURE__ */ (0, R.jsxs)("a", {
ref: s,
- className: Ii(Bi.base, Bi.size[t], Bi.variant[e], n && Bi.iconOnlySize[t], o),
+ className: Li(Vi.base, Vi.size[t], Vi.variant[e], n && Vi.iconOnlySize[t], o),
...c,
children: [
- r ? /* @__PURE__ */ (0, z.jsx)(r, {
- className: Bi.icon[t],
+ r ? /* @__PURE__ */ (0, R.jsx)(r, {
+ className: Vi.icon[t],
"aria-hidden": !0
}) : null,
- !n && a != null && /* @__PURE__ */ (0, z.jsx)("span", {
- className: Bi.label[t],
+ !n && a != null && /* @__PURE__ */ (0, R.jsx)("span", {
+ className: Vi.label[t],
children: a
}),
- !n && i ? /* @__PURE__ */ (0, z.jsx)(i, {
- className: Bi.icon[t],
+ !n && i ? /* @__PURE__ */ (0, R.jsx)(i, {
+ className: Vi.icon[t],
"aria-hidden": !0
}) : null
]
@@ -13090,13 +13090,13 @@ function Vi({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/api.ts
-var Hi = class extends Error {
+var Ui = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(m(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, Ui = (e) => {
+}, Wi = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -13108,8 +13108,8 @@ var Hi = class extends Error {
if (typeof n == "string" && n) return n;
}
return "";
-}, U = (e) => m(e);
-async function W(e, t) {
+}, H = (e) => m(e);
+async function U(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -13118,10 +13118,10 @@ async function W(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new Hi(Ui(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new Ui(Wi(r) || `请求失败(${n.status})`, n.status);
return r;
}
-async function G(e, t, n = "POST", r) {
+async function W(e, t, n = "POST", r) {
let i = await fetch(e, {
method: n,
...r ? { signal: r } : {},
@@ -13135,73 +13135,73 @@ async function G(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new Hi(Ui(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new Ui(Wi(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/react/components/card.tsx
-var Wi = "min-w-0", Gi = {
+var Gi = "min-w-0", Ki = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, Ki = {
+}, qi = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, qi = {
+}, Ji = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, Ji = {
+}, Yi = {
none: "",
default: "p-5"
-}, Yi = "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", Xi = "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 Zi(e = {}) {
+}, Xi = "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", Zi = "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 Qi(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 [
- Wi,
- Gi[t],
- Ki[s],
- Ji[n],
- a ? qi[a] : "",
- r ? Yi : "",
- i ? Xi : "",
+ Gi,
+ Ki[t],
+ qi[s],
+ Yi[n],
+ a ? Ji[a] : "",
+ r ? Xi : "",
+ i ? Zi : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/empty-state.tsx
-var Qi = {
+var $i = {
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 $i({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+function ea({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
let a = i === "page";
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-empty-state": "",
- className: `flex flex-col items-center gap-2 text-center ${Qi[i]}`,
+ className: `flex flex-col items-center gap-2 text-center ${$i[i]}`,
children: [
- a ? /* @__PURE__ */ (0, z.jsx)("span", {
+ a ? /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
className: "mb-2 flex size-empty-glyph items-center justify-center rounded-floating border border-text-primary/15 p-2.5 text-text-secondary",
- children: /* @__PURE__ */ (0, z.jsx)(e, {
+ children: /* @__PURE__ */ (0, R.jsx)(e, {
"aria-hidden": !0,
className: "size-8"
})
- }) : /* @__PURE__ */ (0, z.jsx)(e, {
+ }) : /* @__PURE__ */ (0, R.jsx)(e, {
"aria-hidden": !0,
className: "size-6 text-text-tertiary"
}),
- /* @__PURE__ */ (0, z.jsx)("h3", {
+ /* @__PURE__ */ (0, R.jsx)("h3", {
className: `${a ? "text-body-semibold" : "text-headline-medium"} text-text-primary`,
children: t
}),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: `${a ? "max-w-empty-copy leading-empty-copy" : "max-w-prose"} text-body-2-regular text-text-secondary`,
children: r
}),
- n ? /* @__PURE__ */ (0, z.jsx)("div", {
+ n ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "mt-2 flex flex-wrap justify-center gap-2",
children: n
}) : null
@@ -13210,21 +13210,21 @@ function $i({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function ea({ label: e, inline: t = !1 }) {
- let n = /* @__PURE__ */ (0, z.jsxs)("span", {
+function ta({ label: e, inline: t = !1 }) {
+ let n = /* @__PURE__ */ (0, R.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, z.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),
- /* @__PURE__ */ (0, z.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),
- /* @__PURE__ */ (0, z.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })
+ /* @__PURE__ */ (0, R.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),
+ /* @__PURE__ */ (0, R.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),
+ /* @__PURE__ */ (0, R.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })
]
});
- return t ? /* @__PURE__ */ (0, z.jsxs)("span", {
+ return t ? /* @__PURE__ */ (0, R.jsxs)("span", {
role: "status",
className: "inline-flex items-center gap-2",
children: [n, e]
- }) : /* @__PURE__ */ (0, z.jsxs)("p", {
+ }) : /* @__PURE__ */ (0, R.jsxs)("p", {
role: "status",
className: "flex items-center gap-2 text-caption-1-regular text-text-secondary",
children: [n, e]
@@ -13232,42 +13232,42 @@ function ea({ label: e, inline: t = !1 }) {
}
//#endregion
//#region src/react/components/note.tsx
-function K({ tone: e, title: t, action: n, extra: r, children: i }) {
- let a = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+function G({ tone: e, title: t, action: n, extra: r, children: i }) {
+ let a = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-0.5",
- children: [t ? /* @__PURE__ */ (0, z.jsx)("p", {
+ children: [t ? /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-medium",
children: t
- }) : null, /* @__PURE__ */ (0, z.jsx)("p", {
+ }) : null, /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular",
children: i
})]
}), n]
}), r] });
switch (e) {
- case "info": return /* @__PURE__ */ (0, z.jsx)("div", {
+ case "info": return /* @__PURE__ */ (0, R.jsx)("div", {
role: "status",
className: "flex flex-col gap-0.5 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground",
children: a
});
- case "success": return /* @__PURE__ */ (0, z.jsx)("div", {
+ case "success": return /* @__PURE__ */ (0, R.jsx)("div", {
role: "status",
className: "flex flex-col gap-0.5 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground",
children: a
});
- case "warning": return /* @__PURE__ */ (0, z.jsx)("div", {
+ case "warning": return /* @__PURE__ */ (0, R.jsx)("div", {
role: "note",
className: "flex flex-col gap-0.5 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text",
children: a
});
- case "error": return /* @__PURE__ */ (0, z.jsx)("div", {
+ case "error": return /* @__PURE__ */ (0, R.jsx)("div", {
role: "alert",
className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary",
children: a
});
- default: return /* @__PURE__ */ (0, z.jsx)("div", {
+ default: return /* @__PURE__ */ (0, R.jsx)("div", {
role: "note",
className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary",
children: a
@@ -13276,40 +13276,40 @@ function K({ tone: e, title: t, action: n, extra: r, children: i }) {
}
//#endregion
//#region src/react/components/page.tsx
-function ta({ children: e }) {
- return /* @__PURE__ */ (0, z.jsx)("div", {
+function na({ children: e }) {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
});
}
//#endregion
//#region src/react/components/progress.tsx
-var na = 100, ra = .4;
-function ia({ 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 * na;
- return /* @__PURE__ */ (0, z.jsxs)("svg", {
+var ra = 100, ia = .4;
+function aa({ 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 * ra;
+ return /* @__PURE__ */ (0, R.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": n,
"aria-valuenow": t,
- viewBox: `0 0 ${na} 1`,
+ viewBox: `0 0 ${ra} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
- /* @__PURE__ */ (0, z.jsx)("rect", {
- width: na,
+ /* @__PURE__ */ (0, R.jsx)("rect", {
+ width: ra,
height: 1,
className: "fill-background-tertiary-default"
}),
- /* @__PURE__ */ (0, z.jsx)("rect", {
+ /* @__PURE__ */ (0, R.jsx)("rect", {
width: a(t),
height: 1,
className: "fill-border-focus-ring"
}),
- r.map((e) => /* @__PURE__ */ (0, z.jsx)("rect", {
+ r.map((e) => /* @__PURE__ */ (0, R.jsx)("rect", {
x: a(e),
- width: ra,
+ width: ia,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -13318,9 +13318,9 @@ function ia({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function aa(e = "") {
- let t = (0, R.useRef)(null), [n, r] = (0, R.useState)(""), [i, a] = (0, R.useState)(e);
- (0, R.useEffect)(() => () => t.current?.abort(), []);
+function oa(e = "") {
+ let t = (0, L.useRef)(null), [n, r] = (0, L.useState)(""), [i, a] = (0, L.useState)(e);
+ (0, L.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
if (t.current) return;
let s = new AbortController();
@@ -13330,7 +13330,7 @@ function aa(e = "") {
s.signal.aborted || i(e);
} catch (e) {
if (s.signal.aborted) return;
- o ? o(e) : a(U(e));
+ o ? o(e) : a(H(e));
} finally {
t.current === s && (t.current = null), s.signal.aborted || r("");
}
@@ -13342,7 +13342,7 @@ function aa(e = "") {
setError: a
};
}
-function q(e) {
+function K(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
@@ -13350,59 +13350,59 @@ function q(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function oa(...e) {
+function sa(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var sa = typeof document < "u" ? R.useLayoutEffect : () => {}, ca = {
+var ca = typeof document < "u" ? L.useLayoutEffect : () => {}, la = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, la = /*#__PURE__*/ R.createContext(ca), ua = /*#__PURE__*/ R.createContext(!1);
+}, ua = /*#__PURE__*/ L.createContext(la), da = /*#__PURE__*/ L.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var da = /* @__PURE__ */ new WeakMap();
-function fa(e = !1) {
- let t = (0, R.useContext)(la), n = (0, R.useRef)(null);
+var fa = /* @__PURE__ */ new WeakMap();
+function pa(e = !1) {
+ let t = (0, L.useContext)(ua), n = (0, L.useRef)(null);
if (n.current === null && !e) {
- let e = R.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
+ let e = L.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = da.get(e);
- n == null ? da.set(e, {
+ let n = fa.get(e);
+ n == null ? fa.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, da.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, fa.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function pa(e) {
- let t = (0, R.useContext)(la), n = fa(!!e), r = `react-aria${t.prefix}`;
+function ma(e) {
+ let t = (0, L.useContext)(ua), n = pa(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function ma(e) {
- let t = R.useId(), [n] = (0, R.useState)(ya()), r = n ? "react-aria" : `react-aria${ca.prefix}`;
+function ha(e) {
+ let t = L.useId(), [n] = (0, L.useState)(ba()), r = n ? "react-aria" : `react-aria${la.prefix}`;
return e || `${r}-${t}`;
}
-var ha = typeof R.useId == "function" ? ma : pa;
-function ga() {
+var ga = typeof L.useId == "function" ? ha : ma;
+function _a() {
return !1;
}
-function _a() {
+function va() {
return !0;
}
-function va(e) {
+function ya(e) {
return () => {};
}
-function ya() {
- return typeof R.useSyncExternalStore == "function" ? R.useSyncExternalStore(va, ga, _a) : (0, R.useContext)(ua);
+function ba() {
+ return typeof L.useSyncExternalStore == "function" ? L.useSyncExternalStore(ya, _a, va) : (0, L.useContext)(da);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function ba(e) {
- let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(t), i = (0, R.useRef)(null), a = (0, R.useRef)(() => {
+function xa(e) {
+ let [t, n] = (0, L.useState)(e), r = (0, L.useRef)(t), i = (0, L.useRef)(null), a = (0, L.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
if (e.done) {
@@ -13411,51 +13411,51 @@ function ba(e) {
}
r.current === e.value ? a.current() : n(e.value);
});
- return sa(() => {
+ return ca(() => {
r.current = t, i.current && a.current();
- }), [t, (0, R.useCallback)((e) => {
+ }), [t, (0, L.useCallback)((e) => {
i.current = e(r.current), a.current();
}, [a])];
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var xa = !!(typeof window < "u" && window.document && window.document.createElement), Sa = /* @__PURE__ */ new Map(), Ca;
-typeof FinalizationRegistry < "u" && (Ca = new FinalizationRegistry((e) => {
- Sa.delete(e);
+var Sa = !!(typeof window < "u" && window.document && window.document.createElement), Ca = /* @__PURE__ */ new Map(), wa;
+typeof FinalizationRegistry < "u" && (wa = new FinalizationRegistry((e) => {
+ Ca.delete(e);
}));
-var wa = /* @__PURE__ */ new WeakMap();
-function Ta(e) {
- let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(null), i = ha(t), a = (0, R.useRef)(null), o = wa.get(a);
- if (Ca && o !== i && (o != null && Ca.unregister(a), Ca.register(a, i, a), wa.set(a, i)), xa) {
- let e = Sa.get(i);
- e && !e.includes(r) ? e.push(r) : Sa.set(i, [r]);
- }
- return sa(() => {
+var Ta = /* @__PURE__ */ new WeakMap();
+function Ea(e) {
+ let [t, n] = (0, L.useState)(e), r = (0, L.useRef)(null), i = ga(t), a = (0, L.useRef)(null), o = Ta.get(a);
+ if (wa && o !== i && (o != null && wa.unregister(a), wa.register(a, i, a), Ta.set(a, i)), Sa) {
+ let e = Ca.get(i);
+ e && !e.includes(r) ? e.push(r) : Ca.set(i, [r]);
+ }
+ return ca(() => {
let e = i;
return () => {
- Ca && (Ca.unregister(a), wa.delete(a)), Sa.delete(e);
+ wa && (wa.unregister(a), Ta.delete(a)), Ca.delete(e);
};
- }, [i]), (0, R.useEffect)(() => {
+ }, [i]), (0, L.useEffect)(() => {
let e = r.current;
return e && n(e), () => {
e && (r.current = null);
};
}), i;
}
-function Ea(e, t) {
+function Da(e, t) {
if (e === t) return e;
- let n = Sa.get(e);
+ let n = Ca.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = Sa.get(t);
+ let r = Ca.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function Da(e = []) {
- let t = Ta(), [n, r] = ba(t), i = (0, R.useCallback)(() => {
+function Oa(e = []) {
+ let t = Ea(), [n, r] = xa(t), i = (0, L.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return sa(i, [
+ return ca(i, [
t,
i,
...e
@@ -13463,57 +13463,57 @@ function Da(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function Oa(...e) {
+function ka(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = ka(e, t);
+ let r = Aa(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : ka(e[n], null);
+ typeof t == "function" ? t() : Aa(e[n], null);
});
};
};
}
-function ka(e, t) {
+function Aa(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function Aa(e) {
+function ja(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
- for (t = 0; t < i; t++) e[t] && (n = Aa(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = ja(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function ja() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Aa(e)) && (r && (r += " "), r += t);
+function Ma() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = ja(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeProps.mjs
-function J(...e) {
+function q(...e) {
let t = { ...e[0] };
for (let n = 1; n < e.length; n++) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = oa(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = ja(n, i) : e === "id" && n && i ? t.id = Ea(n, i) : e === "ref" && n && i ? t.ref = Oa(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = sa(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Ma(n, i) : e === "id" && n && i ? t.id = Da(n, i) : e === "ref" && n && i ? t.ref = ka(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function Ma(e) {
- let t = (0, R.useRef)(null), n = (0, R.useRef)(void 0), r = (0, R.useCallback)((t) => {
+function Na(e) {
+ let t = (0, L.useRef)(null), n = (0, L.useRef)(void 0), r = (0, L.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
return () => {
@@ -13524,7 +13524,7 @@ function Ma(e) {
e.current = null;
};
}, [e]);
- return (0, R.useMemo)(() => ({
+ return (0, L.useMemo)(() => ({
get current() {
return t.current;
},
@@ -13535,14 +13535,14 @@ function Ma(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var Na = Symbol("default");
-function Pa({ values: e, children: t }) {
- for (let [n, r] of e) t = /*#__PURE__*/ R.createElement(n.Provider, { value: r }, t);
+var Pa = Symbol("default");
+function Fa({ values: e, children: t }) {
+ for (let [n, r] of e) t = /*#__PURE__*/ L.createElement(n.Provider, { value: r }, t);
return t;
}
-function Fa(e) {
+function Ia(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
- return (0, R.useMemo)(() => {
+ return (0, L.useMemo)(() => {
let e, l, u;
return e = typeof t == "function" ? t({
...s,
@@ -13574,11 +13574,11 @@ function Fa(e) {
c
]);
}
-function Ia(e, t) {
- let n = (0, R.useContext)(e);
+function La(e, t) {
+ let n = (0, L.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || Na;
+ let e = t || Pa;
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}.`);
@@ -13587,8 +13587,8 @@ function Ia(e, t) {
}
return n;
}
-function La(e, t, n) {
- let { ref: r, ...i } = Ia(n, e.slot) || {}, a = Ma((0, R.useMemo)(() => Oa(t, r), [t, r])), o = J(i, e);
+function Ra(e, t, n) {
+ let { ref: r, ...i } = La(n, e.slot) || {}, a = Na((0, L.useMemo)(() => ka(t, r), [t, r])), o = q(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -13606,46 +13606,46 @@ function La(e, t, n) {
...e.style
}), [o, a];
}
-function Ra(e = !0) {
- let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(!1), i = (0, R.useCallback)((e) => {
+function za(e = !0) {
+ let [t, n] = (0, L.useState)(e), r = (0, L.useRef)(!1), i = (0, L.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return sa(() => {
+ return ca(() => {
r.current || n(!1);
}, []), [i, t];
}
-function za(e) {
+function Ba(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Ba(e, t, n) {
- let { render: r, ...i } = t, a = (0, R.useRef)(null), o = (0, R.useMemo)(() => Oa(n, a), [n, a]);
- sa(() => {}, [e, r]);
+function Va(e, t, n) {
+ let { render: r, ...i } = t, a = (0, L.useRef)(null), o = (0, L.useMemo)(() => ka(n, a), [n, a]);
+ ca(() => {}, [e, r]);
let s = {
...i,
ref: o
};
- return r ? r(s, void 0) : /*#__PURE__*/ R.createElement(e, s);
+ return r ? r(s, void 0) : /*#__PURE__*/ L.createElement(e, s);
}
-var Va = {}, Ha = new Proxy({}, { get(e, t) {
+var Ha = {}, Ua = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = Va[t];
- return n || (n = /*#__PURE__*/ (0, R.forwardRef)(Ba.bind(null, t)), Va[t] = n), n;
-} }), Ua = "react-aria-clear-focus", Wa = "react-aria-focus", Ga = (e) => Ja(e) ? e.document : Ya(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Ka = (e) => Ga(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function qa(e) {
- return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
-}
+ let n = Ha[t];
+ return n || (n = /*#__PURE__*/ (0, L.forwardRef)(Va.bind(null, t)), Ha[t] = n), n;
+} }), Wa = "react-aria-clear-focus", Ga = "react-aria-focus", Ka = (e) => Ya(e) ? e.document : Xa(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), qa = (e) => Ka(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
function Ja(e) {
- return typeof e == "object" && !!e && "window" in e && e.window === e;
+ return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
function Ya(e) {
- return qa(e) && e.nodeType === 9;
+ return typeof e == "object" && !!e && "window" in e && e.window === e;
}
function Xa(e) {
- return qa(e) && e.nodeType === 11 && "host" in e;
+ return Ja(e) && e.nodeType === 9;
+}
+function Za(e) {
+ return Ja(e) && e.nodeType === 11 && "host" in e;
}
-function Za(e, t, n, r) {
+function Qa(e, t, n, r) {
if (n == null || e == null) return () => {};
let i = Array.isArray(e) ? e : [e];
for (let e of i) e.addEventListener(t, n, r);
@@ -13653,7 +13653,7 @@ function Za(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function Qa(e, t, n, r) {
+function $a(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -13668,95 +13668,95 @@ function Qa(e, t, n, r) {
}
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
-var $a = !1;
-function eo() {
- return $a;
+var eo = !1;
+function to() {
+ return eo;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function to(e, t) {
- if (!eo()) return t && e ? e.contains(t) : !1;
+function no(e, t) {
+ if (!to()) return t && e ? e.contains(t) : !1;
if (!e || !t) return !1;
let n = t;
for (; n !== null;) {
if (n === e) return !0;
- n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : Xa(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : Za(n) ? n.host : n.parentNode;
}
return !1;
}
-var no = (e = document) => {
- if (!eo()) return e.activeElement;
+var ro = (e = document) => {
+ if (!to()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
-function Y(e) {
- if (eo() && e.target instanceof Element && e.target.shadowRoot) {
+function J(e) {
+ if (to() && e.target instanceof Element && e.target.shadowRoot) {
if ("composedPath" in e) return e.composedPath()[0] ?? null;
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
}
return e.target;
}
-function ro(e, t) {
+function io(e, t) {
if (t === null) return [];
- t ??= Ka(e);
+ t ??= qa(e);
let n = [t];
- if (!eo() || !e || e === t) return n;
+ if (!to() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; Xa(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; Za(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function io(e) {
+function ao(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = Ka(e);
+ let t = e.getRootNode(), n = qa(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function ao(e) {
- let t = co(Ga(e));
- t !== e && (t && oo(t, e), e && so(e, t));
+function oo(e) {
+ let t = lo(Ka(e));
+ t !== e && (t && so(t, e), e && co(e, t));
}
-function oo(e, t) {
+function so(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function so(e, t) {
+function co(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function co(e) {
- let t = no(e), n = t?.getAttribute("aria-activedescendant");
+function lo(e) {
+ let t = ro(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function lo(e) {
- if (fo()) e.focus({ preventScroll: !0 });
+function uo(e) {
+ if (po()) e.focus({ preventScroll: !0 });
else {
- let t = po(e);
- e.focus(), mo(t);
+ let t = mo(e);
+ e.focus(), ho(t);
}
}
-var uo = null;
-function fo() {
- if (uo == null) {
- uo = !1;
+var fo = null;
+function po() {
+ if (fo == null) {
+ fo = !1;
try {
document.createElement("div").focus({ get preventScroll() {
- return uo = !0, !0;
+ return fo = !0, !0;
} });
} catch {}
}
- return uo;
+ return fo;
}
-function po(e) {
+function mo(e) {
let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
for (; t instanceof HTMLElement && t !== r;) (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
element: t,
@@ -13769,31 +13769,31 @@ function po(e) {
scrollLeft: r.scrollLeft
}), n;
}
-function mo(e) {
+function ho(e) {
for (let { element: t, scrollTop: n, scrollLeft: r } of e) t.scrollTop = n, t.scrollLeft = r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var ho = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function go(e) {
- let t = Ka(e);
+var go = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function _o(e) {
+ let t = qa(e);
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
if (i) {
- let { getComputedStyle: t } = Ka(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = qa(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function _o(e, t) {
+function vo(e, t) {
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
}
-function vo(e, t) {
- return ho ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && go(e) && _o(e, t) && (!e.parentElement || vo(e.parentElement, e));
+function yo(e, t) {
+ return go ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && _o(e) && vo(e, t) && (!e.parentElement || yo(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var yo = [
+var bo = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -13808,57 +13808,57 @@ var yo = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], bo = yo.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-yo.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var xo = yo.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function So(e, t) {
- return e.matches(bo) && !wo(e) && (t?.skipVisibilityCheck || vo(e));
-}
-function Co(e) {
- return e.matches(xo) && vo(e) && !wo(e);
+], xo = bo.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+bo.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var So = bo.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function Co(e, t) {
+ return e.matches(xo) && !To(e) && (t?.skipVisibilityCheck || yo(e));
}
function wo(e) {
+ return e.matches(So) && yo(e) && !To(e);
+}
+function To(e) {
let t = e;
for (; t != null;) {
- if (t instanceof Ka(t).HTMLElement && t.inert) return !0;
+ if (t instanceof qa(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function To(e) {
+function Eo(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function Eo(e, t) {
+function Do(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function Do(e) {
- let t = (0, R.useRef)({
+function Oo(e) {
+ let t = (0, L.useRef)({
isFocused: !1,
observer: null
});
- return sa(() => {
+ return ca(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
};
- }, []), (0, R.useCallback)((n) => {
- let r = Y(n);
+ }, []), (0, L.useCallback)((n) => {
+ let r = J(n);
if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {
t.current.isFocused = !0;
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = To(r);
+ let t = Eo(r);
e?.(t);
}
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
if (t.current.isFocused && n.disabled) {
t.current.observer?.disconnect();
- let e = n === no() ? null : no();
+ let e = n === ro() ? null : ro();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -13871,87 +13871,87 @@ function Do(e) {
}
}, [e]);
}
-var Oo = !1;
-function ko(e) {
- for (; e && !So(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = no(Ka(e).document);
+var ko = !1;
+function Ao(e) {
+ for (; e && !Co(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = ro(qa(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && Xa(n) ? n : Ka(e), i = (t) => t === e || t != null && to(e, t), a = (e) => e === t || t != null && e != null && to(t, e);
- Oo = !0;
+ let n = e?.getRootNode(), r = n != null && Za(n) ? n : qa(e), i = (t) => t === e || t != null && no(e, t), a = (e) => e === t || t != null && e != null && no(t, e);
+ ko = !0;
let o = !1, s = (e) => {
- (a(Y(e)) || o) && e.stopImmediatePropagation();
+ (a(J(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(Y(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, lo(t), d()));
+ (a(J(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, uo(t), d()));
}, l = (e) => {
- (i(Y(e)) || o) && e.stopImmediatePropagation();
+ (i(J(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(Y(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, lo(t), d()));
+ (i(J(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, uo(t), d()));
};
r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);
let d = () => {
- cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), Oo = !1, o = !1;
+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), ko = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function Ao(e) {
+function jo(e) {
if (typeof window > "u" || window.navigator == null) return !1;
let t = window.navigator.userAgentData?.brands;
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
}
-function jo(e) {
+function Mo(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function Mo(e) {
+function No(e) {
let t = null;
return () => (t ??= e(), t);
}
-var No = Mo(function() {
- return jo(/^Mac/i);
-}), Po = Mo(function() {
- return jo(/^iPhone/i);
-}), Fo = Mo(function() {
- return jo(/^iPad/i) || No() && navigator.maxTouchPoints > 1;
-}), Io = Mo(function() {
- return Po() || Fo();
-}), Lo = Mo(function() {
- return No() || Io();
-}), Ro = Mo(function() {
- return Ao(/AppleWebKit/i) && (Io() || !zo());
-}), zo = Mo(function() {
- return Ao(/Chrome|CriOS|CrMo/i);
-}), Bo = Mo(function() {
- return Ao(/Android/i);
-}), Vo = Mo(function() {
- return Ao(/(Firefox|FxiOS)/i);
+var Po = No(function() {
+ return Mo(/^Mac/i);
+}), Fo = No(function() {
+ return Mo(/^iPhone/i);
+}), Io = No(function() {
+ return Mo(/^iPad/i) || Po() && navigator.maxTouchPoints > 1;
+}), Lo = No(function() {
+ return Fo() || Io();
+}), Ro = No(function() {
+ return Po() || Lo();
+}), zo = No(function() {
+ return jo(/AppleWebKit/i) && (Lo() || !Bo());
+}), Bo = No(function() {
+ return jo(/Chrome|CriOS|CrMo/i);
+}), Vo = No(function() {
+ return jo(/Android/i);
+}), Ho = No(function() {
+ return jo(/(Firefox|FxiOS)/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function Ho(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : Bo() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
-}
function Uo(e) {
- return !Bo() && e.width === 0 && e.height === 0 || Bo() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+ return e.pointerType === "" && e.isTrusted ? !0 : Vo() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+}
+function Wo(e) {
+ return !Vo() && e.width === 0 && e.height === 0 || Vo() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/openLink.mjs
-var Wo = /*#__PURE__*/ (0, R.createContext)({
+var Go = /*#__PURE__*/ (0, L.createContext)({
isNative: !0,
- open: Yo,
+ open: Xo,
useHref: (e) => e
});
-function Go() {
- return (0, R.useContext)(Wo);
+function Ko() {
+ return (0, L.useContext)(Go);
}
-function Ko(e, t) {
+function qo(e, t) {
let n = e.getAttribute("target");
return (!n || n === "_self") && e.origin === location.origin && !e.hasAttribute("download") && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey;
}
-function qo(e, t, n = !0) {
+function Jo(e, t, n = !0) {
let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;
- !Ro() && Vo() && window.event?.type?.startsWith("key") && e.target === "_blank" && (No() ? r = !0 : i = !0);
- let s = Ro() && No() && !Fo() ? new KeyboardEvent("keydown", {
+ !zo() && Ho() && window.event?.type?.startsWith("key") && e.target === "_blank" && (Po() ? r = !0 : i = !0);
+ let s = zo() && Po() && !Io() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -13966,21 +13966,21 @@ function qo(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- qo.isOpening = n, lo(e), e.dispatchEvent(s), qo.isOpening = !1;
+ Jo.isOpening = n, uo(e), e.dispatchEvent(s), Jo.isOpening = !1;
}
-qo.isOpening = !1;
-function Jo(e, t) {
+Jo.isOpening = !1;
+function Yo(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
let n = document.createElement("a");
n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);
}
}
-function Yo(e, t) {
- Jo(e, (e) => qo(e, t));
+function Xo(e, t) {
+ Yo(e, (e) => Jo(e, t));
}
-function Xo(e) {
- let t = Go().useHref(e.href ?? "");
+function Zo(e) {
+ let t = Ko().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -13990,8 +13990,8 @@ function Xo(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function Zo(e) {
- let t = Go().useHref(e?.href ?? ""), n = {};
+function Qo(e) {
+ let t = Ko().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -14002,94 +14002,94 @@ function Zo(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function Qo(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Ko(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function $o(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && qo(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var $o = null, es = /* @__PURE__ */ new Set(), ts = /* @__PURE__ */ new Map(), ns = !1, rs = !1, is = {
+var es = null, ts = /* @__PURE__ */ new Set(), ns = /* @__PURE__ */ new Map(), rs = !1, is = !1, as = {
Tab: !0,
Escape: !0
};
-function as(e, t) {
- for (let n of es) n(e, t);
-}
-function os(e) {
- return !(e.metaKey || !No() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function os(e, t) {
+ for (let n of ts) n(e, t);
}
function ss(e) {
- ns = !0, !qo.isOpening && os(e) && ($o = "keyboard", as("keyboard", e));
+ return !(e.metaKey || !Po() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
function cs(e) {
- $o = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (ns = !0, as("pointer", e));
+ rs = !0, !Jo.isOpening && ss(e) && (es = "keyboard", os("keyboard", e));
}
function ls(e) {
- !qo.isOpening && Ho(e) && (ns = !0, $o = "virtual");
+ es = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (rs = !0, os("pointer", e));
}
function us(e) {
- if (Oo) return;
- let t = Y(e), n = Ka(t), r = Ga(t);
+ !Jo.isOpening && Uo(e) && (rs = !0, es = "virtual");
+}
+function ds(e) {
+ if (ko) return;
+ let t = J(e), n = qa(t), r = Ka(t);
if (t === n) {
- rs = !0;
+ is = !0;
return;
}
- t === r || !e.isTrusted || (!ns && !rs && ($o = "virtual", as("virtual", e)), ns = !1, rs = !1);
+ t === r || !e.isTrusted || (!rs && !is && (es = "virtual", os("virtual", e)), rs = !1, is = !1);
}
-function ds() {
- Oo || (ns = !1, rs = !0);
+function fs() {
+ ko || (rs = !1, is = !0);
}
-function fs(e) {
+function ps(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = Ka(e), n = Ga(e);
- if (ts.get(t)) return;
+ let t = qa(e), n = Ka(e);
+ if (ns.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- ns = !0, r.apply(this, arguments);
+ rs = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", ss, !0), n.addEventListener("keyup", ss, !0), n.addEventListener("click", ls, !0), t.addEventListener("focus", us, !0), t.addEventListener("blur", ds, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", cs, !0), n.addEventListener("pointermove", cs, !0), n.addEventListener("pointerup", cs, !0)), t.addEventListener("beforeunload", () => {
- ps(e);
- }, { once: !0 }), ts.set(t, { focus: r });
+ }), n.addEventListener("keydown", cs, !0), n.addEventListener("keyup", cs, !0), n.addEventListener("click", us, !0), t.addEventListener("focus", ds, !0), t.addEventListener("blur", fs, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", ls, !0), n.addEventListener("pointermove", ls, !0), n.addEventListener("pointerup", ls, !0)), t.addEventListener("beforeunload", () => {
+ ms(e);
+ }, { once: !0 }), ns.set(t, { focus: r });
}
-var ps = (e, t) => {
- let n = Ka(e), r = Ga(e);
- t && r.removeEventListener("DOMContentLoaded", t), ts.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var ms = (e, t) => {
+ let n = qa(e), r = Ka(e);
+ t && r.removeEventListener("DOMContentLoaded", t), ns.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: ts.get(n).focus
- }), r.removeEventListener("keydown", ss, !0), r.removeEventListener("keyup", ss, !0), r.removeEventListener("click", ls, !0), n.removeEventListener("focus", us, !0), n.removeEventListener("blur", ds, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", cs, !0), r.removeEventListener("pointermove", cs, !0), r.removeEventListener("pointerup", cs, !0)), ts.delete(n));
+ value: ns.get(n).focus
+ }), r.removeEventListener("keydown", cs, !0), r.removeEventListener("keyup", cs, !0), r.removeEventListener("click", us, !0), n.removeEventListener("focus", ds, !0), n.removeEventListener("blur", fs, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", ls, !0), r.removeEventListener("pointermove", ls, !0), r.removeEventListener("pointerup", ls, !0)), ns.delete(n));
};
-function ms(e) {
- let t = Ga(e), n;
+function hs(e) {
+ let t = Ka(e), n;
return t.readyState === "loading" ? (n = () => {
- fs(e);
- }, t.addEventListener("DOMContentLoaded", n)) : fs(e), () => ps(e, n);
-}
-typeof document < "u" && ms();
-function hs() {
- return $o !== "pointer";
+ ps(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : ps(e), () => ms(e, n);
}
+typeof document < "u" && hs();
function gs() {
- return $o;
+ return es !== "pointer";
+}
+function _s() {
+ return es;
}
-function _s(e) {
- $o = e, as(e, null);
+function vs(e) {
+ es = e, os(e, null);
}
-function vs() {
- fs();
- let [e, t] = (0, R.useState)($o);
- return (0, R.useEffect)(() => {
+function ys() {
+ ps();
+ let [e, t] = (0, L.useState)(es);
+ return (0, L.useEffect)(() => {
let e = () => {
- t($o);
+ t(es);
};
- return es.add(e), () => {
- es.delete(e);
+ return ts.add(e), () => {
+ ts.delete(e);
};
- }, []), ya() ? null : e;
+ }, []), ba() ? null : e;
}
-var ys = /* @__PURE__ */ new Set([
+var bs = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -14100,33 +14100,33 @@ var ys = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function bs(e, t, n) {
- let r = n ? Y(n) : void 0, i = Ga(r), a = Ka(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = no(i);
- return e = e || u instanceof o && !ys.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !is[n.key]);
+function xs(e, t, n) {
+ let r = n ? J(n) : void 0, i = Ka(r), a = qa(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = ro(i);
+ return e = e || u instanceof o && !bs.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !as[n.key]);
}
-function xs(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, R.useState)(n || hs());
- return Ss((e) => {
+function Ss(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, L.useState)(n || gs());
+ return Cs((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function Ss(e, t, n) {
- fs(), (0, R.useEffect)(() => {
+function Cs(e, t, n) {
+ ps(), (0, L.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- bs(!!n?.isTextInput, t, r) && e(hs());
+ xs(!!n?.isTextInput, t, r) && e(gs());
};
- return es.add(t), () => {
- es.delete(t);
+ return ts.add(t), () => {
+ ts.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
-function Cs(e) {
- return No() ? e.metaKey : e.ctrlKey;
+function ws(e) {
+ return Po() ? e.metaKey : e.ctrlKey;
}
-var ws = /* @__PURE__ */ new Set([
+var Ts = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -14137,27 +14137,27 @@ var ws = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Ts(e) {
- return e instanceof HTMLInputElement && !ws.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
+function Es(e) {
+ return e instanceof HTMLInputElement && !Ts.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var Es = R.useInsertionEffect ?? sa;
-function Ds(e) {
- let t = (0, R.useRef)(null);
- return Es(() => {
+var Ds = L.useInsertionEffect ?? ca;
+function Os(e) {
+ let t = (0, L.useRef)(null);
+ return Ds(() => {
t.current = e;
- }, [e]), (0, R.useCallback)((...e) => {
+ }, [e]), (0, L.useCallback)((...e) => {
let n = t.current;
return n?.(...e);
}, []);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function Os(e, t, n, r) {
- let i = Ds(n), a = n == null;
- (0, R.useEffect)(() => {
- if (!(a || e.current == null)) return Za(e.current, t, i, r);
+function ks(e, t, n, r) {
+ let i = Os(n), a = n == null;
+ (0, L.useEffect)(() => {
+ if (!(a || e.current == null)) return Qa(e.current, t, i, r);
}, [
e,
t,
@@ -14167,9 +14167,9 @@ function Os(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function ks(e, t) {
+function As(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = Ta(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = Ea(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
@@ -14177,7 +14177,7 @@ function ks(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/utils.mjs
-var As = /* @__PURE__ */ new Set([
+var js = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -14188,7 +14188,7 @@ var As = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), js = /* @__PURE__ */ new Set([
+]), Ms = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -14209,20 +14209,20 @@ var As = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function Ms(e) {
+function Ns(e) {
if (Intl.Locale) {
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
if (n) return n.direction === "rtl";
- if (t.script) return As.has(t.script);
+ if (t.script) return js.has(t.script);
}
let t = e.split("-")[0];
- return js.has(t);
+ return Ms.has(t);
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var Ns = Symbol.for("react-aria.i18n.locale");
-function Ps() {
- let e = typeof window < "u" && window[Ns] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Ps = Symbol.for("react-aria.i18n.locale");
+function Fs() {
+ let e = typeof window < "u" && window[Ps] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -14230,33 +14230,33 @@ function Ps() {
}
return {
locale: e,
- direction: Ms(e) ? "rtl" : "ltr"
+ direction: Ns(e) ? "rtl" : "ltr"
};
}
-var Fs = Ps(), Is = /* @__PURE__ */ new Set();
-function Ls() {
- Fs = Ps();
- for (let e of Is) e(Fs);
-}
+var Is = Fs(), Ls = /* @__PURE__ */ new Set();
function Rs() {
- let e = ya(), [t, n] = (0, R.useState)(Fs);
- return (0, R.useEffect)(() => (Is.size === 0 && window.addEventListener("languagechange", Ls), Is.add(n), () => {
- Is.delete(n), Is.size === 0 && window.removeEventListener("languagechange", Ls);
+ Is = Fs();
+ for (let e of Ls) e(Is);
+}
+function zs() {
+ let e = ba(), [t, n] = (0, L.useState)(Is);
+ return (0, L.useEffect)(() => (Ls.size === 0 && window.addEventListener("languagechange", Rs), Ls.add(n), () => {
+ Ls.delete(n), Ls.size === 0 && window.removeEventListener("languagechange", Rs);
}), []), e ? {
- locale: typeof window < "u" && window[Ns] || "en-US",
+ locale: typeof window < "u" && window[Ps] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var zs = /*#__PURE__*/ R.createContext(null);
-function Bs() {
- let e = Rs();
- return (0, R.useContext)(zs) || e;
+var Bs = /*#__PURE__*/ L.createContext(null);
+function Vs() {
+ let e = zs();
+ return (0, L.useContext)(Bs) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var Vs = Symbol.for("react-aria.i18n.locale"), Hs = Symbol.for("react-aria.i18n.strings"), Us = void 0, Ws = class e {
+var Hs = Symbol.for("react-aria.i18n.locale"), Us = Symbol.for("react-aria.i18n.strings"), Ws = void 0, Gs = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -14267,39 +14267,39 @@ var Vs = Symbol.for("react-aria.i18n.locale"), Hs = Symbol.for("react-aria.i18n.
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = Gs(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = Ks(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[Vs];
- if (Us === void 0) {
- let t = window[Hs];
+ let n = window[Hs];
+ if (Ws === void 0) {
+ let t = window[Us];
if (!t) return null;
- Us = {};
- for (let r in t) Us[r] = new e({ [n]: t[r] }, n);
+ Ws = {};
+ for (let r in t) Ws[r] = new e({ [n]: t[r] }, n);
}
- let r = Us?.[t];
+ let r = Ws?.[t];
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
return r;
}
};
-function Gs(e, t, n = "en-US") {
+function Ks(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Ks(e), i = qs(e);
+ let r = qs(e), i = Js(e);
if (i && t[`${r}-${i}`]) return t[`${r}-${i}`];
if (t[r]) return t[r];
for (let e in t) if (e.startsWith(r + "-")) return t[e];
return t[n];
}
-function Ks(e) {
+function qs(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function qs(e) {
+function Js(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Js = /* @__PURE__ */ new Map(), Ys = /* @__PURE__ */ new Map(), Xs = class {
+var Ys = /* @__PURE__ */ new Map(), Xs = /* @__PURE__ */ new Map(), Zs = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -14310,50 +14310,50 @@ var Js = /* @__PURE__ */ new Map(), Ys = /* @__PURE__ */ new Map(), Xs = class {
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Js.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Js.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Ys.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Ys.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Ys.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Ys.set(this.locale, t)), t.format(e);
+ let t = Xs.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Xs.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, Zs = /* @__PURE__ */ new WeakMap();
-function Qs(e) {
- let t = Zs.get(e);
- return t || (t = new Ws(e), Zs.set(e, t)), t;
-}
-function $s(e, t) {
- return t && Ws.getGlobalDictionaryForPackage(t) || Qs(e);
+}, Qs = /* @__PURE__ */ new WeakMap();
+function $s(e) {
+ let t = Qs.get(e);
+ return t || (t = new Gs(e), Qs.set(e, t)), t;
}
function ec(e, t) {
- let { locale: n } = Bs(), r = $s(e, t);
- return (0, R.useMemo)(() => new Xs(n, r), [n, r]);
+ return t && Gs.getGlobalDictionaryForPackage(t) || $s(e);
+}
+function tc(e, t) {
+ let { locale: n } = Vs(), r = ec(e, t);
+ return (0, L.useMemo)(() => new Zs(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var tc = typeof document < "u" ? R.useInsertionEffect ?? R.useLayoutEffect : () => {};
-function nc(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)(() => {
+var nc = typeof document < "u" ? L.useInsertionEffect ?? L.useLayoutEffect : () => {};
+function rc(e, t, n) {
+ let [r, i] = (0, L.useState)(e || t), a = (0, L.useRef)(r), o = (0, L.useRef)(e !== void 0), s = e !== void 0;
+ (0, L.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- tc(() => {
+ nc(() => {
a.current = c;
});
- let [, l] = (0, R.useReducer)(() => ({}), {});
- return [c, (0, R.useCallback)((e, ...t) => {
+ let [, l] = (0, L.useReducer)(() => ({}), {});
+ return [c, (0, L.useCallback)((e, ...t) => {
let r = typeof e == "function" ? e(a.current) : e;
Object.is(a.current, r) || (a.current = r, i(r), l(), n?.(r, ...t));
}, [n])];
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Autocomplete.mjs
-var rc = /*#__PURE__*/ (0, R.createContext)(null), ic = /*#__PURE__*/ (0, R.createContext)(null), ac = class {
+var ic = /*#__PURE__*/ (0, L.createContext)(null), ac = /*#__PURE__*/ (0, L.createContext)(null), oc = class {
constructor(e) {
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = e;
}
@@ -14368,22 +14368,22 @@ var rc = /*#__PURE__*/ (0, R.createContext)(null), ic = /*#__PURE__*/ (0, R.crea
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, oc = class extends ac {
+}, sc = class extends oc {
filter(e, t, n) {
- let [r, i] = dc(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = fc(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends ac {
+(class extends oc {
static {
this.type = "header";
}
});
-var sc = class extends ac {
+var cc = class extends oc {
static {
this.type = "loader";
}
-}, cc = class extends oc {
+}, lc = class extends sc {
static {
this.type = "item";
}
@@ -14394,7 +14394,7 @@ var sc = class extends ac {
}
return null;
}
-}, lc = class extends oc {
+}, uc = class extends sc {
static {
this.type = "section";
}
@@ -14406,7 +14406,7 @@ var sc = class extends ac {
}
return null;
}
-}, uc = class {
+}, dc = class {
get size() {
return this.itemCount;
}
@@ -14481,14 +14481,14 @@ var sc = class extends ac {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = dc(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = fc(this, t, this.firstKey, e);
return t?.commit(n, r), t;
}
constructor() {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
}
};
-function dc(e, t, n, r) {
+function fc(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -14503,7 +14503,7 @@ function dc(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var fc = class {
+var pc = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -14584,7 +14584,7 @@ var fc = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, pc = class e extends fc {
+}, mc = class e extends pc {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -14635,7 +14635,7 @@ var fc = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, mc = class extends fc {
+}, hc = class extends pc {
constructor(e) {
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -14643,7 +14643,7 @@ var fc = class {
return !0;
}
createElement(e) {
- return new pc(e, this);
+ return new mc(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -14665,8 +14665,8 @@ var fc = class {
return this.inSubscription ? this.collection : (this.queuedRender = !1, this.updateCollection(), this.collection);
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof pc && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof pc ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
+ for (let e of this.dirtyNodes) e instanceof mc && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof mc ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));
}
queueUpdate() {
@@ -14685,19 +14685,19 @@ var fc = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function hc(e) {
- let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, R.useMemo)(() => void 0, [t]), s = (0, R.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
- return (0, R.useMemo)(() => {
+function gc(e) {
+ let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, L.useMemo)(() => void 0, [t]), s = (0, L.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
+ return (0, L.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = gc(a) ? a : null, o = n ? s.get(n) : null;
+ let n = _c(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
r != null && o.props.id == null && c != null && (c = r + ":" + c);
let l = c ?? e.length;
- o = (0, R.cloneElement)(o, i ? {
+ o = (0, L.cloneElement)(o, i ? {
key: l,
id: c,
value: a
@@ -14716,7 +14716,7 @@ function hc(e) {
i
]);
}
-function gc(e) {
+function _c(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -14726,57 +14726,57 @@ function gc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var _c = /* @__PURE__ */ new Map(), vc = /* @__PURE__ */ new Set();
-function yc() {
+var vc = /* @__PURE__ */ new Map(), yc = /* @__PURE__ */ new Set();
+function bc() {
if (typeof window > "u") return;
function e(e) {
return "propertyName" in e;
}
let t = (t) => {
- let r = Y(t);
+ let r = J(t);
if (!e(t) || !r) return;
- let i = _c.get(r);
- i || (i = /* @__PURE__ */ new Set(), _c.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
+ let i = vc.get(r);
+ i || (i = /* @__PURE__ */ new Set(), vc.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
}, n = (t) => {
- let r = Y(t);
+ let r = J(t);
if (!e(t) || !r) return;
- let i = _c.get(r);
- if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), _c.delete(r)), _c.size === 0)) {
- for (let e of vc) e();
- vc.clear();
+ let i = vc.get(r);
+ if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), vc.delete(r)), vc.size === 0)) {
+ for (let e of yc) e();
+ yc.clear();
}
};
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
}
-typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", yc) : yc());
-function bc() {
- for (let [e] of _c) "isConnected" in e && !e.isConnected && _c.delete(e);
+typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", bc) : bc());
+function xc() {
+ for (let [e] of vc) "isConnected" in e && !e.isConnected && vc.delete(e);
}
-function xc(e) {
+function Sc(e) {
requestAnimationFrame(() => {
- bc(), _c.size === 0 ? e() : vc.add(e);
+ xc(), vc.size === 0 ? e() : yc.add(e);
});
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function Sc(e) {
+function Cc(e) {
if (!e.isConnected) return;
- let t = Ga(e);
- if (gs() === "virtual") {
- let n = no(t);
- xc(() => {
- let r = no(t);
- (r === n || r === t.body) && e.isConnected && lo(e);
+ let t = Ka(e);
+ if (_s() === "virtual") {
+ let n = ro(t);
+ Sc(() => {
+ let r = ro(t);
+ (r === n || r === t.body) && e.isConnected && uo(e);
});
- } else lo(e);
+ } else uo(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function Cc(e) {
- let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, R.useCallback)((e) => {
- if (Y(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = Do(a), s = (0, R.useCallback)((e) => {
- let t = Y(e), r = Ga(t), a = r ? no(r) : no();
+function wc(e) {
+ let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, L.useCallback)((e) => {
+ if (J(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
+ }, [r, i]), o = Oo(a), s = (0, L.useCallback)((e) => {
+ let t = J(e), r = Ka(t), a = r ? ro(r) : ro();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -14790,7 +14790,7 @@ function Cc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function wc(e) {
+function Tc(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -14815,33 +14815,33 @@ function wc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var Tc = /* @__PURE__ */ new Set([
+var Ec = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Ec = [
+]), Dc = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Dc(e) {
- let t = /* @__PURE__ */ new Set();
- return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(No() ? "Meta" : "Control"), t;
-}
function Oc(e) {
let t = /* @__PURE__ */ new Set();
- return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(Po() ? "Meta" : "Control"), t;
}
function kc(e) {
- return Ec.filter((t) => e.has(t));
+ let t = /* @__PURE__ */ new Set();
+ return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
function Ac(e) {
+ return Dc.filter((t) => e.has(t));
+}
+function jc(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return Tc.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return Ec.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -14853,10 +14853,10 @@ function Ac(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function jc(e) {
+function Mc(e) {
return e.toLowerCase();
}
-var Mc = {
+var Nc = {
space: " ",
esc: "escape",
del: "delete",
@@ -14868,26 +14868,26 @@ var Mc = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Nc(e) {
- let t = jc(e);
- return Mc[t] ?? t;
-}
function Pc(e) {
- let t = kc(Dc(e)), n = Nc(e.key);
- return t.length > 0 ? `${t.join("+")}+${n}` : n;
+ let t = Mc(e);
+ return Nc[t] ?? t;
}
function Fc(e) {
- let t = kc(Oc(e)), n = jc(e.key);
- return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+ let t = Ac(Oc(e)), n = Pc(e.key);
+ return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
function Ic(e) {
+ let t = Ac(kc(e)), n = Mc(e.key);
+ return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+}
+function Lc(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = Ac(n);
- t.set(Pc(e), r);
+ let e = jc(n);
+ t.set(Fc(e), r);
}
return (e) => {
- let n = Fc(e), r = t.get(n), i = r?.(e);
+ let n = Ic(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -14899,11 +14899,11 @@ function Ic(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function Lc(e) {
+function Rc(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = Ic(t), s = wc((e) => {
- if (!to(e.currentTarget, Y(e))) {
+ let o = Lc(t), s = Tc((e) => {
+ if (!no(e.currentTarget, J(e))) {
e.continuePropagation();
return;
}
@@ -14912,8 +14912,8 @@ function Lc(e) {
return;
}
o(e);
- }), c = wc((e) => {
- if (!to(e.currentTarget, Y(e))) {
+ }), c = Tc((e) => {
+ if (!no(e.currentTarget, J(e))) {
e.continuePropagation();
return;
}
@@ -14923,8 +14923,8 @@ function Lc(e) {
}
e.continuePropagation();
});
- i = e.onKeyDown ? oa(e.onKeyDown, s) : s, a = e.onKeyUp ? oa(e.onKeyUp, c) : c;
- } else i = wc(e.onKeyDown), a = wc(e.onKeyUp);
+ i = e.onKeyDown ? sa(e.onKeyDown, s) : s, a = e.onKeyUp ? sa(e.onKeyUp, c) : c;
+ } else i = Tc(e.onKeyDown), a = Tc(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -14932,8 +14932,8 @@ function Lc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function Rc(e, t) {
- sa(() => {
+function zc(e, t) {
+ ca(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
@@ -14941,20 +14941,20 @@ function Rc(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var zc = /*#__PURE__*/ R.createContext(null);
-function Bc(e) {
- let t = (0, R.useContext)(zc) || {};
- Rc(t, e);
+var Bc = /*#__PURE__*/ L.createContext(null);
+function Vc(e) {
+ let t = (0, L.useContext)(Bc) || {};
+ zc(t, e);
let { ref: n, ...r } = t;
return r;
}
-function Vc(e, t) {
- let { focusProps: n } = Cc(e), { keyboardProps: r } = Lc(e), i = J(n, r), a = Bc(t), o = e.isDisabled ? {} : a, s = (0, R.useRef)(e.autoFocus);
- (0, R.useEffect)(() => {
- s.current && t.current && Sc(t.current), s.current = !1;
+function Hc(e, t) {
+ let { focusProps: n } = wc(e), { keyboardProps: r } = Rc(e), i = q(n, r), a = Vc(t), o = e.isDisabled ? {} : a, s = (0, L.useRef)(e.autoFocus);
+ (0, L.useEffect)(() => {
+ s.current && t.current && Cc(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
- return e.isDisabled && (c = void 0), { focusableProps: J({
+ return e.isDisabled && (c = void 0), { focusableProps: q({
...i,
tabIndex: c
}, o) };
@@ -14986,23 +14986,23 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var Hc = /*#__PURE__*/ (0, R.createContext)(!1);
-function Uc(e) {
- if ((0, R.useContext)(Hc)) return /*#__PURE__*/ R.createElement(R.Fragment, null, e.children);
- let t = /*#__PURE__*/ R.createElement(Hc.Provider, { value: !0 }, e.children);
- return /*#__PURE__*/ R.createElement("template", null, t);
-}
+var Uc = /*#__PURE__*/ (0, L.createContext)(!1);
function Wc(e) {
- let t = (t, n) => (0, R.useContext)(Hc) ? null : e(t, n);
- return t.displayName = e.displayName || e.name, (0, R.forwardRef)(t);
+ if ((0, L.useContext)(Uc)) return /*#__PURE__*/ L.createElement(L.Fragment, null, e.children);
+ let t = /*#__PURE__*/ L.createElement(Uc.Provider, { value: !0 }, e.children);
+ return /*#__PURE__*/ L.createElement("template", null, t);
+}
+function Gc(e) {
+ let t = (t, n) => (0, L.useContext)(Uc) ? null : e(t, n);
+ return t.displayName = e.displayName || e.name, (0, L.forwardRef)(t);
}
-function Gc() {
- return (0, R.useContext)(Hc);
+function Kc() {
+ return (0, L.useContext)(Uc);
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var Kc = /* @__PURE__ */ Ee(((e) => {
- var t = Pe();
+var qc = /* @__PURE__ */ De(((e) => {
+ var t = Fe();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -15039,48 +15039,48 @@ var Kc = /* @__PURE__ */ Ee(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), qc = /* @__PURE__ */ Ee(((e, t) => {
- t.exports = Kc();
-})), Jc = qc(), Yc = /*#__PURE__*/ (0, R.createContext)(!1), Xc = /*#__PURE__*/ (0, R.createContext)(null);
-function Zc(e) {
- if ((0, R.useContext)(Xc)) return e.content;
- let { collection: t, document: n } = tl(e.createCollection);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Uc, null, /*#__PURE__*/ R.createElement(Xc.Provider, { value: n }, e.content)), /*#__PURE__*/ R.createElement(Qc, {
+})), Jc = /* @__PURE__ */ De(((e, t) => {
+ t.exports = qc();
+})), Yc = Jc(), Xc = /*#__PURE__*/ (0, L.createContext)(!1), Zc = /*#__PURE__*/ (0, L.createContext)(null);
+function Qc(e) {
+ if ((0, L.useContext)(Zc)) return e.content;
+ let { collection: t, document: n } = nl(e.createCollection);
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(Wc, null, /*#__PURE__*/ L.createElement(Zc.Provider, { value: n }, e.content)), /*#__PURE__*/ L.createElement($c, {
render: e.children,
collection: t
}));
}
-function Qc({ collection: e, render: t }) {
+function $c({ collection: e, render: t }) {
return t(e);
}
-function $c(e, t, n) {
- let r = ya(), i = (0, R.useRef)(r);
+function el(e, t, n) {
+ let r = ba(), i = (0, L.useRef)(r);
i.current = r;
- let a = (0, R.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, Jc.useSyncExternalStore)(e, a);
+ let a = (0, L.useCallback)(() => i.current ? n() : t(), [t, n]);
+ return (0, Yc.useSyncExternalStore)(e, a);
}
-var el = typeof R.useSyncExternalStore == "function" ? R.useSyncExternalStore : $c;
-function tl(e) {
- let [t] = (0, R.useState)(() => new mc(e?.() || new uc()));
+var tl = typeof L.useSyncExternalStore == "function" ? L.useSyncExternalStore : el;
+function nl(e) {
+ let [t] = (0, L.useState)(() => new hc(e?.() || new dc()));
return {
- collection: el((0, R.useCallback)((e) => t.subscribe(e), [t]), (0, R.useCallback)(() => {
+ collection: tl((0, L.useCallback)((e) => t.subscribe(e), [t]), (0, L.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
- }, [t]), (0, R.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
+ }, [t]), (0, L.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var nl = /*#__PURE__*/ (0, R.createContext)(null);
-function rl(e) {
- return class extends ac {
+var rl = /*#__PURE__*/ (0, L.createContext)(null);
+function il(e) {
+ return class extends oc {
static {
this.type = e;
}
};
}
-function il(e, t, n, r, i, a) {
- typeof e == "string" && (e = rl(e));
- let o = (0, R.useCallback)((i) => {
+function al(e, t, n, r, i, a) {
+ typeof e == "string" && (e = il(e));
+ let o = (0, L.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
t,
@@ -15088,76 +15088,76 @@ function il(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, R.useContext)(nl);
+ ]), s = (0, L.useContext)(rl);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ R.createElement(nl.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ L.createElement(rl.Provider, { value: o }, i) : null;
}
- return /*#__PURE__*/ R.createElement(e.type, { ref: o }, i);
+ return /*#__PURE__*/ L.createElement(e.type, { ref: o }, i);
}
-function al(e, t) {
- let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, R.forwardRef)((r, i) => {
- let a = (0, R.useContext)(zc);
- if (!(0, R.useContext)(Yc)) {
+function ol(e, t) {
+ let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, L.forwardRef)((r, i) => {
+ let a = (0, L.useContext)(Bc);
+ if (!(0, L.useContext)(Xc)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return il(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ R.createElement(zc.Provider, { value: a }, /*#__PURE__*/ R.createElement(n, { node: e })));
+ return al(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ L.createElement(Bc.Provider, { value: a }, /*#__PURE__*/ L.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function ol(e, t, n = sl) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, R.forwardRef)((t, i) => il(e, t, i, null, n(t), (e) => /*#__PURE__*/ R.createElement(r, { node: e })) ?? /*#__PURE__*/ R.createElement(R.Fragment, null));
+function sl(e, t, n = cl) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, L.forwardRef)((t, i) => al(e, t, i, null, n(t), (e) => /*#__PURE__*/ L.createElement(r, { node: e })) ?? /*#__PURE__*/ L.createElement(L.Fragment, null));
return i.displayName = t.name, i;
}
-function sl(e) {
- return hc({
+function cl(e) {
+ return gc({
...e,
addIdAndValue: !0
});
}
-var cl = /*#__PURE__*/ (0, R.createContext)(null);
-function ll(e) {
- let t = (0, R.useContext)(cl), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = sl({
+var ll = /*#__PURE__*/ (0, L.createContext)(null);
+function ul(e) {
+ let t = (0, L.useContext)(ll), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = cl({
...e,
idScope: r,
dependencies: n
});
- return (0, R.useContext)(Xc) && (i = /*#__PURE__*/ R.createElement(ul, null, i)), t = (0, R.useMemo)(() => ({
+ return (0, L.useContext)(Zc) && (i = /*#__PURE__*/ L.createElement(dl, null, i)), t = (0, L.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ R.createElement(cl.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ L.createElement(ll.Provider, { value: t }, i);
}
-function ul({ children: e }) {
- let t = (0, R.useContext)(Xc), n = (0, R.useMemo)(() => /*#__PURE__*/ R.createElement(Xc.Provider, { value: null }, /*#__PURE__*/ R.createElement(Yc.Provider, { value: !0 }, e)), [e]);
- return ya() ? /*#__PURE__*/ R.createElement(nl.Provider, { value: t }, n) : /*#__PURE__*/ (0, ze.createPortal)(n, t);
+function dl({ children: e }) {
+ let t = (0, L.useContext)(Zc), n = (0, L.useMemo)(() => /*#__PURE__*/ L.createElement(Zc.Provider, { value: null }, /*#__PURE__*/ L.createElement(Xc.Provider, { value: !0 }, e)), [e]);
+ return ba() ? /*#__PURE__*/ L.createElement(rl.Provider, { value: t }, n) : /*#__PURE__*/ (0, Be.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Collection.mjs
-var dl = /*#__PURE__*/ (0, R.createContext)(null), fl = {
+var fl = /*#__PURE__*/ (0, L.createContext)(null), pl = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return pl(e, null, t);
+ return ml(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return pl(e, t, n);
+ return ml(e, t, n);
}
};
-function pl(e, t, n) {
- return hc({
+function ml(e, t, n) {
+ return gc({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
- if (t.type === "content") return /*#__PURE__*/ R.createElement(R.Fragment, null);
+ if (t.type === "content") return /*#__PURE__*/ L.createElement(L.Fragment, null);
let r = t.render(t);
- return !n || t.type !== "item" ? r : /*#__PURE__*/ R.createElement(R.Fragment, null, n({
+ return !n || t.type !== "item" ? r : /*#__PURE__*/ L.createElement(L.Fragment, null, n({
type: "item",
key: t.key,
dropPosition: "before"
- }), r, ml(e, t, n));
+ }), r, hl(e, t, n));
}
});
}
-function ml(e, t, n) {
+function hl(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);
@@ -15171,23 +15171,23 @@ function ml(e, t, n) {
key: r.key,
dropPosition: "after"
});
- /*#__PURE__*/ (0, R.isValidElement)(t) && s.push(/*#__PURE__*/ (0, R.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);
+ /*#__PURE__*/ (0, L.isValidElement)(t) && s.push(/*#__PURE__*/ (0, L.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);
}
}
return s;
}
-var hl = /*#__PURE__*/ (0, R.createContext)(fl);
-function gl(e) {
- return (0, R.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
+var gl = /*#__PURE__*/ (0, L.createContext)(pl);
+function _l(e) {
+ return (0, L.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var _l = /* @__PURE__ */ new Set(["id"]), vl = /* @__PURE__ */ new Set([
+var vl = /* @__PURE__ */ new Set(["id"]), yl = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), yl = /* @__PURE__ */ new Set([
+]), bl = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -15195,72 +15195,72 @@ var _l = /* @__PURE__ */ new Set(["id"]), vl = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), bl = /* @__PURE__ */ new Set([
+]), xl = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate"
-]), xl = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Sl = /^(data-.*)$/;
-function Cl(e, t = {}) {
+]), Sl = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Cl = /^(data-.*)$/;
+function wl(e, t = {}) {
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (_l.has(t) || n && vl.has(t) || r && yl.has(t) || i && bl.has(t) || a && (xl.has(t) || t.endsWith("Capture") && xl.has(t.slice(0, -7))) || o?.has(t) || Sl.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (vl.has(t) || n && yl.has(t) || r && bl.has(t) || i && xl.has(t) || a && (Sl.has(t) || t.endsWith("Capture") && Sl.has(t.slice(0, -7))) || o?.has(t) || Cl.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var wl = "default", Tl = "", El = /* @__PURE__ */ new WeakMap();
-function Dl(e) {
- if (Io() && Ro()) {
- if (wl === "default") {
- let t = Ga(e);
- Tl = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- wl = "disabled";
+var Tl = "default", El = "", Dl = /* @__PURE__ */ new WeakMap();
+function Ol(e) {
+ if (Lo() && zo()) {
+ if (Tl === "default") {
+ let t = Ka(e);
+ El = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ Tl = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- El.set(e, e.style[t]), e.style[t] = "none";
+ Dl.set(e, e.style[t]), e.style[t] = "none";
}
}
-function Ol(e) {
- if (Io() && Ro()) {
- if (wl !== "disabled") return;
- wl = "restoring", setTimeout(() => {
- xc(() => {
- if (wl === "restoring") {
- let t = Ga(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Tl || ""), Tl = "", wl = "default";
+function kl(e) {
+ if (Lo() && zo()) {
+ if (Tl !== "disabled") return;
+ Tl = "restoring", setTimeout(() => {
+ Sc(() => {
+ if (Tl === "restoring") {
+ let t = Ka(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = El || ""), El = "", Tl = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && El.has(e)) {
- let t = El.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), El.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Dl.has(e)) {
+ let t = Dl.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Dl.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function kl(e, t) {
- let n = Ka(t), r = Ga(t);
+function Al(e, t) {
+ let n = qa(t), r = Ka(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
-var Al = /* @__PURE__ */ new WeakMap();
-function jl(e) {
- let t = Ga(e), n = Al.get(t);
- return n ??= kl("csp-nonce", t), n !== void 0 && Al.set(t, n), n;
+var jl = /* @__PURE__ */ new WeakMap();
+function Ml(e) {
+ let t = Ka(e), n = jl.get(t);
+ return n ??= Al("csp-nonce", t), n !== void 0 && jl.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var Ml = R.createContext({ register: () => {} });
-Ml.displayName = "PressResponderContext";
+var Nl = L.createContext({ register: () => {} });
+Nl.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function Nl() {
- let e = (0, R.useRef)(/* @__PURE__ */ new Map()), t = (0, R.useCallback)((t, n, r, i) => {
+function Pl() {
+ let e = (0, L.useRef)(/* @__PURE__ */ new Map()), t = (0, L.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
} : r;
@@ -15270,15 +15270,15 @@ function Nl() {
fn: a,
options: i
}), t.addEventListener(n, a, i);
- }, []), n = (0, R.useCallback)((t, n, r, i) => {
+ }, []), n = (0, L.useCallback)((t, n, r, i) => {
let a = e.current.get(r)?.fn || r;
t.removeEventListener(n, a, i), e.current.delete(r);
- }, []), r = (0, R.useCallback)(() => {
+ }, []), r = (0, L.useCallback)(() => {
e.current.forEach((e, t) => {
n(e.eventTarget, e.type, t, e.options);
});
}, [n]);
- return (0, R.useEffect)(() => r, [r]), {
+ return (0, L.useEffect)(() => r, [r]), {
addGlobalListener: t,
removeGlobalListener: n,
removeAllGlobalListeners: r
@@ -15286,15 +15286,15 @@ function Nl() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function Pl(e) {
- let t = (0, R.useContext)(Ml);
+function Fl(e) {
+ let t = (0, L.useContext)(Nl);
if (t) {
let { register: n, ref: r, ...i } = t;
- e = J(i, e), n();
+ e = q(i, e), n();
}
- return Rc(t, e.ref), e;
+ return zc(t, e.ref), e;
}
-var Fl = class {
+var Il = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -15307,9 +15307,9 @@ var Fl = class {
get shouldStopPropagation() {
return this.#e;
}
-}, Il = Symbol("linkClicked"), Ll = "react-aria-pressable-style", Rl = "data-react-aria-pressable";
-function zl(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Pl(e), [m, h] = (0, R.useState)(!1), g = (0, R.useRef)({
+}, Ll = Symbol("linkClicked"), Rl = "react-aria-pressable-style", zl = "data-react-aria-pressable";
+function Bl(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Fl(e), [m, h] = (0, L.useState)(!1), g = (0, L.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -15319,12 +15319,12 @@ function zl(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = Nl(), y = (0, R.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = Pl(), y = (0, L.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new Fl("pressstart", t, e);
+ let n = new Il("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -15332,17 +15332,17 @@ function zl(e) {
s,
r,
n
- ]), b = (0, R.useCallback)((e, r, a = !0) => {
+ ]), b = (0, L.useCallback)((e, r, a = !0) => {
let o = g.current;
if (!o.didFirePressStart) return !1;
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new Fl("pressend", r, e);
+ let t = new Il("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new Fl("press", r, e);
+ let n = new Il("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -15351,19 +15351,19 @@ function zl(e) {
i,
n,
t
- ]), x = Ds(b), S = Ds((0, R.useCallback)((e, t) => {
+ ]), x = Os(b), S = Os((0, L.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new Fl("pressup", t, e);
+ let r = new Il("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
- }, [s, a])), C = (0, R.useCallback)((e) => {
+ }, [s, a])), C = (0, L.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(Hl(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Ol(t.target);
+ t.didFirePressStart && t.pointerType != null && b(Ul(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || kl(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -15371,8 +15371,8 @@ function zl(e) {
d,
v,
b
- ]), w = Ds(C);
- (0, R.useEffect)(() => {
+ ]), w = Os(C);
+ (0, L.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
shiftKey: !1,
@@ -15381,46 +15381,46 @@ function zl(e) {
altKey: !1
});
}, [s]);
- let T = (0, R.useCallback)((e) => {
+ let T = (0, L.useCallback)((e) => {
u && C(e);
- }, [u, C]), E = (0, R.useCallback)((e) => {
+ }, [u, C]), E = (0, L.useCallback)((e) => {
s || o?.(e);
- }, [s, o]), D = (0, R.useCallback)((e, t) => {
+ }, [s, o]), D = (0, L.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- Eo(n, t), o(To(n));
+ Do(n, t), o(Eo(n));
}
- }, [s, o]), O = (0, R.useMemo)(() => {
+ }, [s, o]), O = (0, L.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (Vl(t.nativeEvent, t.currentTarget) && to(t.currentTarget, Y(t))) {
- Wl(Y(t), t.key) && t.preventDefault();
+ if (Hl(t.nativeEvent, t.currentTarget) && no(t.currentTarget, J(t))) {
+ Gl(J(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
- _(Ga(t.currentTarget), "keyup", oa((t) => {
- Vl(t, i) && !t.repeat && to(i, Y(t)) && e.target && S(Hl(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && No() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(Ka(t.currentTarget), "keyup", sa((t) => {
+ Hl(t, i) && !t.repeat && no(i, J(t)) && e.target && S(Ul(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && Po() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if (!(t && !to(t.currentTarget, Y(t))) && t && t.button === 0 && !e.isTriggeringEvent && !qo.isOpening) {
+ if (!(t && !no(t.currentTarget, J(t))) && t && t.button === 0 && !e.isTriggeringEvent && !Jo.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Ho(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Uo(t.nativeEvent))) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(Hl(t.currentTarget, t), r), a = x(Hl(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(Ul(t.currentTarget, t), r), a = x(Ul(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, E(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && Vl(t, e.target)) {
- Wl(Y(t), t.key) && t.preventDefault();
- let n = Y(t), r = to(e.target, n);
- x(Hl(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && Bl(e.target) && to(e.target, n) && !t[Il] && (t[Il] = !0, qo(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && Hl(t, e.target)) {
+ Gl(J(t), t.key) && t.preventDefault();
+ let n = J(t), r = no(e.target, n);
+ x(Ul(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && Vl(e.target) && no(e.target, n) && !t[Ll] && (t[Ll] = !0, Jo(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -15429,39 +15429,39 @@ function zl(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !to(t.currentTarget, Y(t))) return;
- if (Uo(t.nativeEvent)) {
+ if (t.button !== 0 || !no(t.currentTarget, J(t))) return;
+ if (Wo(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Dl(e.target), i = y(t, e.pointerType);
- let a = Y(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(Ga(t.currentTarget), "pointerup", n, !1), _(Ga(t.currentTarget), "pointercancel", r, !1);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Ol(e.target), i = y(t, e.pointerType);
+ let a = J(t);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(Ka(t.currentTarget), "pointerup", n, !1), _(Ka(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (to(t.currentTarget, Y(t)) && t.button === 0) {
+ if (no(t.currentTarget, J(t)) && t.button === 0) {
if (l) {
- let n = ko(t.target);
+ let n = Ao(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- !to(t.currentTarget, Y(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ !no(t.currentTarget, J(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(Hl(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(Ul(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Hl(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Ul(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (to(e.target, Y(t)) && e.pointerType != null) {
+ if (no(e.target, J(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (lo(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (uo(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -15471,7 +15471,7 @@ function zl(e) {
w(e);
};
t.onDragStart = (e) => {
- to(e.currentTarget, Y(e)) && w(e);
+ no(e.currentTarget, J(e)) && w(e);
};
}
return t;
@@ -15486,40 +15486,40 @@ function zl(e) {
E,
D
]);
- return (0, R.useEffect)(() => {
+ return (0, L.useEffect)(() => {
if (!f) return;
- let e = Ga(f.current);
- if (!e || !e.head || e.getElementById(Ll)) return;
+ let e = Ka(f.current);
+ if (!e || !e.head || e.getElementById(Rl)) return;
let t = e.createElement("style");
- t.id = Ll;
- let n = jl(e);
+ t.id = Rl;
+ let n = Ml(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${Rl}] {
+ [${zl}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
`.trim(), e.head.prepend(t);
- }, [f]), (0, R.useEffect)(() => {
+ }, [f]), (0, L.useEffect)(() => {
let e = g.current;
return () => {
- d || Ol(e.target ?? void 0);
+ d || kl(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: J(p, O, { [Rl]: !0 })
+ pressProps: q(p, O, { [zl]: !0 })
};
}
-function Bl(e) {
+function Vl(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function Vl(e, t) {
+function Hl(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Ka(i).HTMLInputElement && !Kl(i, n) || i instanceof Ka(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Bl(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof qa(i).HTMLInputElement && !ql(i, n) || i instanceof qa(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Vl(i)) && n !== "Enter");
}
-function Hl(e, t) {
+function Ul(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -15532,13 +15532,13 @@ function Hl(e, t) {
key: t.key
};
}
-function Ul(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Bl(e);
+function Wl(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Vl(e);
}
-function Wl(e, t) {
- return No() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Kl(e, t) : Ul(e);
+function Gl(e, t) {
+ return Po() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !ql(e, t) : Wl(e);
}
-var Gl = /* @__PURE__ */ new Set([
+var Kl = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -15549,31 +15549,31 @@ var Gl = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Kl(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Gl.has(e.type);
+function ql(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Kl.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function ql(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, R.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Nl(), c = (0, R.useCallback)((e) => {
- to(e.currentTarget, Y(e)) && a.current.isFocusWithin && !to(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function Jl(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, L.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Pl(), c = (0, L.useCallback)((e) => {
+ no(e.currentTarget, J(e)) && a.current.isFocusWithin && !no(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = Do(c), u = (0, R.useCallback)((e) => {
- if (!to(e.currentTarget, Y(e))) return;
- let t = Y(e), n = Ga(t), s = no(n);
+ ]), l = Oo(c), u = (0, L.useCallback)((e) => {
+ if (!no(e.currentTarget, J(e))) return;
+ let t = J(e), n = Ka(t), s = ro(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
- let r = Y(e);
- if (a.current.isFocusWithin && !to(t, r)) {
+ let r = J(e);
+ if (a.current.isFocusWithin && !no(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- Eo(e, t);
- let i = To(e);
+ Do(e, t);
+ let i = Eo(e);
c(i);
}
}, { capture: !0 });
@@ -15595,23 +15595,23 @@ function ql(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function Jl(e = {}) {
- let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, R.useRef)({
+function Yl(e = {}) {
+ let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, L.useRef)({
isFocused: !1,
- isFocusVisible: t || hs()
- }), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, R.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, R.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = hs(), o(e), l();
+ isFocusVisible: t || gs()
+ }), [a, o] = (0, L.useState)(!1), [s, c] = (0, L.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, L.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, L.useCallback)((e) => {
+ i.current.isFocused = e, i.current.isFocusVisible = gs(), o(e), l();
}, [l]);
- Ss((e) => {
+ Cs((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = Cc({
+ let { focusProps: d } = wc({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = ql({
+ }), { focusWithinProps: f } = Jl({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -15623,36 +15623,36 @@ function Jl(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var Yl = !1, Xl = 0;
-function Zl() {
- Yl = !0, setTimeout(() => {
- Yl = !1;
+var Xl = !1, Zl = 0;
+function Ql() {
+ Xl = !0, setTimeout(() => {
+ Xl = !1;
}, 500);
}
-function Ql(e) {
- e.pointerType === "touch" && Zl();
+function $l(e) {
+ e.pointerType === "touch" && Ql();
}
-function $l() {
- let e = Ga(null);
- if (e !== void 0) return Xl === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", Ql), Xl++, () => {
- Xl--, !(Xl > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", Ql);
+function eu() {
+ let e = Ka(null);
+ if (e !== void 0) return Zl === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", $l), Zl++, () => {
+ Zl--, !(Zl > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", $l);
};
}
-function eu(e) {
- let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, R.useState)(!1), s = (0, R.useRef)({
+function tu(e) {
+ let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, L.useState)(!1), s = (0, L.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, R.useEffect)($l, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = Nl(), { hoverProps: u, triggerHoverEnd: d } = (0, R.useMemo)(() => {
+ (0, L.useEffect)(eu, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = Pl(), { hoverProps: u, triggerHoverEnd: d } = (0, L.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !to(e.currentTarget, Y(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !no(e.currentTarget, J(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(Ga(Y(e)), "pointerover", (e) => {
- s.isHovered && s.target && !to(s.target, Y(e)) && a(e, e.pointerType);
+ s.target = l, c(Ka(J(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !no(s.target, J(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -15667,9 +15667,9 @@ function eu(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- Yl && t.pointerType === "mouse" || e(t, t.pointerType);
+ Xl && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && to(e.currentTarget, Y(e)) && a(e, e.pointerType);
+ !i && no(e.currentTarget, J(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -15683,7 +15683,7 @@ function eu(e) {
c,
l
]);
- return (0, R.useEffect)(() => {
+ return (0, L.useEffect)(() => {
i && d({ currentTarget: s.target }, s.pointerType);
}, [i]), {
hoverProps: u,
@@ -15692,10 +15692,10 @@ function eu(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var tu = /*#__PURE__*/ (0, R.createContext)({}), nu = /*#__PURE__*/ Wc(function(e, t) {
- [e, t] = La(e, t, tu);
- let { elementType: n = "label", ...r } = e, i = Ha[n];
- return /*#__PURE__*/ R.createElement(i, {
+var nu = /*#__PURE__*/ (0, L.createContext)({}), ru = /*#__PURE__*/ Gc(function(e, t) {
+ [e, t] = Ra(e, t, nu);
+ let { elementType: n = "label", ...r } = e, i = Ua[n];
+ return /*#__PURE__*/ L.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
@@ -15703,15 +15703,15 @@ var tu = /*#__PURE__*/ (0, R.createContext)({}), nu = /*#__PURE__*/ Wc(function(
});
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function ru(e) {
+function iu(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = Ta(t);
- let o = Ta(), s = {};
+ t = Ea(t);
+ let o = Ea(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = ks({
+ let c = As({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -15723,18 +15723,18 @@ function ru(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function iu(e, t = -Infinity, n = Infinity) {
+function au(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ProgressBar.mjs
-var au = /*#__PURE__*/ (0, R.createContext)(null), ou = 7e3, su = null;
-function cu(e, t = "assertive", n = ou) {
- su ? su.announce(e, t, n) : (su = new lu(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? su.announce(e, t, n) : setTimeout(() => {
- su?.isAttached() && su?.announce(e, t, n);
+var ou = /*#__PURE__*/ (0, L.createContext)(null), su = 7e3, cu = null;
+function lu(e, t = "assertive", n = su) {
+ cu ? cu.announce(e, t, n) : (cu = new uu(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? cu.announce(e, t, n) : setTimeout(() => {
+ cu?.isAttached() && cu?.announce(e, t, n);
}, 100));
}
-var lu = class {
+var uu = class {
constructor() {
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
border: 0,
@@ -15759,7 +15759,7 @@ var lu = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = ou) {
+ announce(e, t = "assertive", n = su) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -15772,7 +15772,7 @@ var lu = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function uu(e, t) {
+function du(e, t) {
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
g = n === "button" ? {
type: h,
@@ -15794,7 +15794,7 @@ function uu(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = zl({
+ let { pressProps: _, isPressed: v } = Bl({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -15804,12 +15804,12 @@ function uu(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = Vc(e, t);
+ }), { focusableProps: y } = Hc(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = J(y, _, Cl(e, { labelable: !0 }));
+ let b = q(y, _, wl(e, { labelable: !0 }));
return {
isPressed: v,
- buttonProps: J(g, b, {
+ buttonProps: q(g, b, {
"aria-haspopup": e["aria-haspopup"],
"aria-expanded": e["aria-expanded"],
"aria-controls": e["aria-controls"],
@@ -15821,11 +15821,11 @@ function uu(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Button.mjs
-var du = /*#__PURE__*/ (0, R.createContext)({}), fu = /*#__PURE__*/ Wc(function(e, t) {
- [e, t] = La(e, t, du);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = uu(e, t);
- i = mu(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = Jl(e), { hoverProps: l, isHovered: u } = eu({
+var fu = /*#__PURE__*/ (0, L.createContext)({}), pu = /*#__PURE__*/ Gc(function(e, t) {
+ [e, t] = Ra(e, t, fu);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = du(e, t);
+ i = hu(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = Yl(e), { hoverProps: l, isHovered: u } = tu({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -15835,25 +15835,25 @@ var du = /*#__PURE__*/ (0, R.createContext)({}), fu = /*#__PURE__*/ Wc(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = Fa({
+ }, f = Ia({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = Ta(i.id), m = Ta(), h = i["aria-labelledby"];
+ }), p = Ea(i.id), m = Ea(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
- let g = (0, R.useRef)(r);
- (0, R.useEffect)(() => {
+ let g = (0, L.useRef)(r);
+ (0, L.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && cu(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && lu(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = Cl(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ R.createElement(Ha.button, {
- ...J(_, f, i, o, l),
+ let _ = wl(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ L.createElement(Ua.button, {
+ ...q(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
ref: t,
@@ -15866,29 +15866,29 @@ var du = /*#__PURE__*/ (0, R.createContext)({}), fu = /*#__PURE__*/ Wc(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ R.createElement(au.Provider, { value: { id: m } }, f.children));
-}), pu = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function mu(e, t) {
+ }, /*#__PURE__*/ L.createElement(ou.Provider, { value: { id: m } }, f.children));
+}), mu = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function hu(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !pu.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !mu.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 hu = /*#__PURE__*/ (0, R.createContext)({}), gu = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = La(e, t, hu);
- let { children: n, level: r = 3, className: i, ...a } = e, o = Ha[`h${r}`];
- return /*#__PURE__*/ R.createElement(o, {
+var gu = /*#__PURE__*/ (0, L.createContext)({}), _u = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ [e, t] = Ra(e, t, gu);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = Ua[`h${r}`];
+ return /*#__PURE__*/ L.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), _u = /*#__PURE__*/ (0, R.createContext)({}), vu = /*#__PURE__*/ Wc(function(e, t) {
- [e, t] = La(e, t, _u);
- let { elementType: n = "span", ...r } = e, i = Ha[n];
- return /*#__PURE__*/ R.createElement(i, {
+}), vu = /*#__PURE__*/ (0, L.createContext)({}), yu = /*#__PURE__*/ Gc(function(e, t) {
+ [e, t] = Ra(e, t, vu);
+ let { elementType: n = "span", ...r } = e, i = Ua[n];
+ return /*#__PURE__*/ L.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
@@ -15896,57 +15896,57 @@ var hu = /*#__PURE__*/ (0, R.createContext)({}), gu = /*#__PURE__*/ (0, R.forwar
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function yu(e, t) {
- let n = (0, R.useRef)(!0), r = (0, R.useRef)(null), i = Ds(e);
- (0, R.useEffect)(() => (n.current = !0, () => {
+function bu(e, t) {
+ let n = (0, L.useRef)(!0), r = (0, L.useRef)(null), i = Os(e);
+ (0, L.useEffect)(() => (n.current = !0, () => {
n.current = !1;
- }), []), (0, R.useEffect)(() => {
+ }), []), (0, L.useEffect)(() => {
let e = r.current;
n.current ? n.current = !1 : (!e || t.some((t, n) => !Object.is(t, e[n]))) && i(), r.current = t;
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function bu(e, t) {
+function xu(e, t) {
if (!e) return !1;
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, i = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
return e === r && n.overflow !== "hidden" && (i = !0), i && t && (i = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function xu(e, t) {
+function Su(e, t) {
let n = e;
- for (bu(n, t) && (n = n.parentElement); n && !bu(n, t);) n = n.parentElement;
+ for (xu(n, t) && (n = n.parentElement); n && !xu(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function Su(e, t) {
+function Cu(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (bu(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (xu(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function Cu(e, t, n = {}) {
- e !== t && wu(e, t, t.getBoundingClientRect(), n);
-}
-function wu(e, t, n, r = {}) {
- let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, P = e === d ? 0 : T + E, ee = e === d ? 0 : e.offsetWidth - e.clientWidth - N, F = e === d ? 0 : e.offsetHeight - e.clientHeight - P, I = p + (f ? 0 : T) + x, te = m - (f ? 0 : E) - S - F, ne = h + (f ? 0 : D) + C, re = g - (f ? 0 : O) - w;
- Io() && Ro() || u.direction === "ltr" ? re -= ee : u.direction === "rtl" && (ne += ee);
- let ie = k < I || A > te, ae = j < ne || M > re;
- if (ie && i === "start") o += k - I;
- else if (ie && i === "center") o += (k + A) / 2 - (I + te) / 2;
- else if (ie && i === "end") o += A - te;
- else if (ie && i === "nearest") {
- let e = k - I, t = A - te;
+function wu(e, t, n = {}) {
+ e !== t && Tu(e, t, t.getBoundingClientRect(), n);
+}
+function Tu(e, t, n, r = {}) {
+ let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, P = e === d ? 0 : T + E, ee = e === d ? 0 : e.offsetWidth - e.clientWidth - N, F = e === d ? 0 : e.offsetHeight - e.clientHeight - P, te = p + (f ? 0 : T) + x, ne = m - (f ? 0 : E) - S - F, re = h + (f ? 0 : D) + C, ie = g - (f ? 0 : O) - w;
+ Lo() && zo() || u.direction === "ltr" ? ie -= ee : u.direction === "rtl" && (re += ee);
+ let ae = k < te || A > ne, oe = j < re || M > ie;
+ if (ae && i === "start") o += k - te;
+ else if (ae && i === "center") o += (k + A) / 2 - (te + ne) / 2;
+ else if (ae && i === "end") o += A - ne;
+ else if (ae && i === "nearest") {
+ let e = k - te, t = A - ne;
o += Math.abs(e) <= Math.abs(t) ? e : t;
}
- if (ae && a === "start") s += j - ne;
- else if (ae && a === "center") s += (j + M) / 2 - (ne + re) / 2;
- else if (ae && a === "end") s += M - re;
- else if (ae && a === "nearest") {
- let e = j - ne, t = M - re;
+ if (oe && a === "start") s += j - re;
+ else if (oe && a === "center") s += (j + M) / 2 - (re + ie) / 2;
+ else if (oe && a === "end") s += M - ie;
+ else if (oe && a === "nearest") {
+ let e = j - re, t = M - ie;
s += Math.abs(e) <= Math.abs(t) ? e : t;
}
e.scrollTo({
@@ -15954,7 +15954,7 @@ function wu(e, t, n, r = {}) {
top: o
});
}
-function Tu(e, t = {}) {
+function Eu(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -15967,46 +15967,46 @@ function Tu(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = Su(e, !0);
- for (let t of i) Cu(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = Cu(e, !0);
+ for (let t of i) wu(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? Su(n, !0) : [];
- for (let e of i) Cu(e, n, {
+ i = n ? Cu(n, !0) : [];
+ for (let e of i) wu(e, n, {
block: "center",
inline: "center"
});
- for (let t of Su(e, !0)) Cu(t, e);
+ for (let t of Cu(e, !0)) wu(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var Eu = 0, Du = /* @__PURE__ */ new Map();
-function Ou(e) {
- let [t, n] = (0, R.useState)();
- return sa(() => {
+var Du = 0, Ou = /* @__PURE__ */ new Map();
+function ku(e) {
+ let [t, n] = (0, L.useState)();
+ return ca(() => {
if (!e) return;
- let t = Du.get(e);
+ let t = Ou.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${Eu++}`;
+ let r = `react-aria-description-${Du++}`;
n(r);
let i = document.createElement("div");
i.id = r, i.style.display = "none", i.textContent = e, document.body.appendChild(i), t = {
refCount: 0,
element: i
- }, Du.set(e, t);
+ }, Ou.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), Du.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), Ou.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var ku = {
+var Au = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -16018,26 +16018,26 @@ var ku = {
width: "1px",
whiteSpace: "nowrap"
};
-function Au(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, R.useState)(!1), { focusWithinProps: a } = ql({
+function ju(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, L.useState)(!1), { focusWithinProps: a } = Jl({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
- }), o = (0, R.useMemo)(() => r ? t : t ? {
- ...ku,
+ }), o = (0, L.useMemo)(() => r ? t : t ? {
+ ...Au,
...t
- } : ku, [r]);
+ } : Au, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function ju(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = Au(e);
- return /*#__PURE__*/ R.createElement(n, J(a, o), t);
+function Mu(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = ju(e);
+ return /*#__PURE__*/ L.createElement(n, q(a, o), t);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/FieldError.mjs
-var Mu = /*#__PURE__*/ (0, R.createContext)(null), Nu = {
+var Nu = /*#__PURE__*/ (0, L.createContext)(null), Pu = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -16049,18 +16049,18 @@ var Mu = /*#__PURE__*/ (0, R.createContext)(null), Nu = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, Pu = {
- ...Nu,
+}, Fu = {
+ ...Pu,
customError: !0,
valid: !1
-}, Fu = {
+}, Iu = {
isInvalid: !1,
- validationDetails: Nu,
+ validationDetails: Pu,
validationErrors: []
-}, Iu = (0, R.createContext)({}), Lu = "__reactAriaFormValidationState";
-function Ru(e) {
+}, Lu = (0, L.createContext)({}), Ru = "__reactAriaFormValidationState";
+function zu(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[Lu];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[Ru];
return {
realtimeValidation: t,
displayValidation: n,
@@ -16069,78 +16069,78 @@ function Ru(e) {
commitValidation: a
};
}
- return zu(e);
+ return Bu(e);
}
-function zu(e) {
+function Bu(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: Pu
- }, l = (0, R.useMemo)(() => !o || i == null ? null : Hu(Vu(o, i)), [o, i]);
+ validationDetails: Fu
+ }, l = (0, L.useMemo)(() => !o || i == null ? null : Uu(Hu(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, R.useContext)(Iu), d = (0, R.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Bu(u[e])) : Bu(u[r]) : [], [u, r]), [f, p] = (0, R.useState)(u), [m, h] = (0, R.useState)(!1);
+ let u = (0, L.useContext)(Lu), d = (0, L.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Vu(u[e])) : Vu(u[r]) : [], [u, r]), [f, p] = (0, L.useState)(u), [m, h] = (0, L.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, R.useMemo)(() => Hu(m ? [] : d), [m, d]), _ = (0, R.useRef)(Fu), [v, y] = (0, R.useState)(Fu), b = (0, R.useRef)(Fu), x = () => {
+ let g = (0, L.useMemo)(() => Uu(m ? [] : d), [m, d]), _ = (0, L.useRef)(Iu), [v, y] = (0, L.useState)(Iu), b = (0, L.useRef)(Iu), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- Uu(e, b.current) || (b.current = e, y(e));
- }, [S, C] = (0, R.useState)(!1);
- return (0, R.useEffect)(x), {
- realtimeValidation: c || g || l || a || Fu,
+ Wu(e, b.current) || (b.current = e, y(e));
+ }, [S, C] = (0, L.useState)(!1);
+ return (0, L.useEffect)(x), {
+ realtimeValidation: c || g || l || a || Iu,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !Uu(v, e) ? y(e) : _.current = e;
+ s === "aria" && !Wu(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = Fu;
- Uu(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = Iu;
+ Wu(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function Bu(e) {
+function Vu(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function Vu(e, t) {
+function Hu(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return Bu(n);
+ if (n && typeof n != "boolean") return Vu(n);
}
return [];
}
-function Hu(e) {
+function Uu(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: Pu
+ validationDetails: Fu
} : null;
}
-function Uu(e, t) {
+function Wu(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-components/dist/private/Form.mjs
-var Wu = /*#__PURE__*/ (0, R.createContext)(null), Gu = /* @__PURE__ */ new WeakMap();
+var Gu = /*#__PURE__*/ (0, L.createContext)(null), Ku = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function Ku(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = ru(e), s = Da([
+function qu(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = iu(e), s = Oa([
!!t,
!!n,
r,
i
- ]), c = Da([
+ ]), c = Oa([
!!t,
!!n,
r,
i
]);
- return o = J(o, { "aria-describedby": [
+ return o = q(o, { "aria-describedby": [
s,
c,
e["aria-describedby"]
@@ -16153,11 +16153,11 @@ function Ku(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function qu(e, t, n) {
- let r = Ds((e) => {
+function Ju(e, t, n) {
+ let r = Os((e) => {
n && !e.defaultPrevented && n(t);
});
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
let t = e?.current?.form;
return t?.addEventListener("reset", r), () => {
t?.removeEventListener("reset", r);
@@ -16166,35 +16166,35 @@ function qu(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function Ju(e, t, n) {
+function Yu(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- sa(() => {
+ ca(() => {
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
- n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Xu(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Zu(n.current));
}
});
- let a = (0, R.useRef)(!1), o = Ds(() => {
+ let a = (0, L.useRef)(!1), o = Os(() => {
a.current || t.resetValidation();
- }), s = Ds((e) => {
+ }), s = Os((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && Zu(r) === n.current && (i ? i() : n.current?.focus(), _s("keyboard")), e.preventDefault();
- }), c = Ds(() => {
+ !e.defaultPrevented && n && r && Qu(r) === n.current && (i ? i() : n.current?.focus(), vs("keyboard")), e.preventDefault();
+ }), c = Os(() => {
t.commitValidation();
});
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
let e = n?.current;
if (!e) return;
let t = e.form, r = t?.reset;
return t && (t.reset = () => {
- a.current = !window.event || window.event.type === "message" && Y(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
+ a.current = !window.event || window.event.type === "message" && J(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
}), e.addEventListener("invalid", s), e.addEventListener("change", c), t?.addEventListener("reset", o), () => {
e.removeEventListener("invalid", s), e.removeEventListener("change", c), t?.removeEventListener("reset", o), t && (t.reset = r);
};
}, [n, r]);
}
-function Yu(e) {
+function Xu(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -16210,14 +16210,14 @@ function Yu(e) {
valid: t.valid
};
}
-function Xu(e) {
+function Zu(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: Yu(e),
+ validationDetails: Xu(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function Zu(e) {
+function Qu(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -16226,16 +16226,16 @@ function Zu(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function Qu(e = !0) {
- let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(!1), i = (0, R.useCallback)((e) => {
+function $u(e = !0) {
+ let [t, n] = (0, L.useState)(e), r = (0, L.useRef)(!1), i = (0, L.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return sa(() => {
+ return ca(() => {
r.current || n(!1);
}, []), [i, t];
}
-function $u(e = !0) {
- let t = Ta(), [n, r] = Qu(e);
+function ed(e = !0) {
+ let t = Ea(), [n, r] = $u(e);
return {
id: r ? t : void 0,
ref: n
@@ -16243,15 +16243,15 @@ function $u(e = !0) {
}
//#endregion
//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function ed(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 = Ru({
+function td(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 = zu({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- Ju(e, b, n);
+ Yu(e, b, n);
let w = (e) => {
- e.stopPropagation(), t.setSelected(Y(e).checked);
- }, { pressProps: T, isPressed: E } = zl({
+ e.stopPropagation(), t.setSelected(J(e).checked);
+ }, { pressProps: T, isPressed: E } = Bl({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -16259,7 +16259,7 @@ function ed(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, R.useState)(!1), { pressProps: k } = zl({
+ }), [D, O] = (0, L.useState)(!1), { pressProps: k } = Bl({
onPressStart(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
@@ -16288,16 +16288,16 @@ function ed(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [Lu]: i } = e, { commitValidation: a } = i || b;
+ let { [Ru]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = Vc(e, n), j = J(T, A), M = Cl(e, { labelable: !0 });
- qu(n, t.defaultSelected, t.setSelected);
- let N = $u(), P = $u();
+ }), { focusableProps: A } = Hc(e, n), j = q(T, A), M = wl(e, { labelable: !0 });
+ Ju(n, t.defaultSelected, t.setSelected);
+ let N = ed(), P = ed();
return {
- labelProps: J(k, { onClick: (e) => e.preventDefault() }),
- inputProps: J(M, {
+ labelProps: q(k, { onClick: (e) => e.preventDefault() }),
+ inputProps: q(M, {
checked: t.isSelected,
"aria-required": l && u === "aria" || void 0,
required: l && u === "native",
@@ -16331,12 +16331,12 @@ function ed(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function td(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 } = ed(e, t, n), { isIndeterminate: m } = e;
- return (0, R.useEffect)(() => {
+function nd(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 } = td(e, t, n), { isIndeterminate: m } = e;
+ return (0, L.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
- labelProps: J(r, (0, R.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
+ labelProps: q(r, (0, L.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
inputProps: i,
descriptionProps: a,
errorMessageProps: o,
@@ -16351,8 +16351,8 @@ function td(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function nd(e = {}) {
- let { isReadOnly: t } = e, [n, r] = nc(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, R.useState)(n);
+function rd(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = rc(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, L.useState)(n);
function a(e) {
t || r(e);
}
@@ -16368,26 +16368,26 @@ function nd(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function rd(e, t, n) {
- let r = nd({
+function id(e, t, n) {
+ let r = rd({
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 } = Gu.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Ku.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = Ru({
+ let { realtimeValidation: l } = zu({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, R.useRef)(Fu), d = () => {
+ }), u = (0, L.useRef)(Iu), d = () => {
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 = td({
+ (0, L.useEffect)(d);
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = nd({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -16395,7 +16395,7 @@ function rd(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [Lu]: {
+ [Ru]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -16419,35 +16419,35 @@ function rd(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Checkbox.mjs
-var id = /*#__PURE__*/ (0, R.createContext)(null), ad = /*#__PURE__*/ (0, R.createContext)(null), od = /*#__PURE__*/ (0, R.createContext)(null), sd = /*#__PURE__*/ (0, R.createContext)(null);
-function cd(e, t) {
- let { validationBehavior: n } = Ia(Wu) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useContext)(od), a = Ma((0, R.useMemo)(() => Oa(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...za(e),
+var ad = /*#__PURE__*/ (0, L.createContext)(null), od = /*#__PURE__*/ (0, L.createContext)(null), sd = /*#__PURE__*/ (0, L.createContext)(null), cd = /*#__PURE__*/ (0, L.createContext)(null);
+function ld(e, t) {
+ let { validationBehavior: n } = La(Gu) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, L.useContext)(sd), a = Na((0, L.useMemo)(() => ka(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...Ba(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? rd(o, i, a) : td(o, nd(e), a), a];
+ return [i ? id(o, i, a) : nd(o, rd(e), a), a];
}
-var ld = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+var ud = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = La(r, t, id);
- let [i, a] = cd(e, n);
- return /*#__PURE__*/ R.createElement(sd.Provider, { value: {
+ [e, t] = Ra(r, t, ad);
+ let [i, a] = ld(e, n);
+ return /*#__PURE__*/ L.createElement(cd.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ R.createElement(ud, {
+ } }, /*#__PURE__*/ L.createElement(dd, {
...e,
ref: t
}));
-}), ud = /*#__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)(sd), { isFocused: p, isFocusVisible: m, focusProps: h } = Jl(), g = a || o, { hoverProps: _, isHovered: v } = eu({
+}), dd = /*#__PURE__*/ (0, L.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, L.useContext)(cd), { isFocused: p, isFocusVisible: m, focusProps: h } = Yl(), g = a || o, { hoverProps: _, isHovered: v } = tu({
...e,
isDisabled: g
- }), y = Fa({
+ }), y = Ia({
...e,
defaultClassName: u,
values: {
@@ -16462,9 +16462,9 @@ var ld = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = Cl(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(Ha.label, {
- ...J(b, n, _, y),
+ }), b = wl(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ L.createElement(Ua.label, {
+ ...q(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -16477,20 +16477,20 @@ var ld = /*#__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(ju, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
- ...J(r, h),
+ }, /*#__PURE__*/ L.createElement(Mu, { elementType: "span" }, /*#__PURE__*/ L.createElement("input", {
+ ...q(r, h),
ref: l
})), y.children);
-}), dd = /*#__PURE__*/ (0, R.createContext)({}), fd = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = La(e, t, dd);
+}), fd = /*#__PURE__*/ (0, L.createContext)({}), pd = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ [e, t] = Ra(e, t, fd);
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 } = eu({
+ let { hoverProps: l, isHovered: u } = tu({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = Jl({ within: !0 }), m = Fa({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = Yl({ within: !0 }), m = Ia({
...e,
values: {
isHovered: u,
@@ -16501,8 +16501,8 @@ var ld = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ R.createElement(Ha.div, {
- ...J(c, p, l),
+ return /*#__PURE__*/ L.createElement(Ua.div, {
+ ...q(c, p, l),
...m,
ref: t,
role: e.role ?? "group",
@@ -16514,18 +16514,18 @@ var ld = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), pd = /*#__PURE__*/ (0, R.createContext)({}), md = (e) => {
+}), md = /*#__PURE__*/ (0, L.createContext)({}), hd = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, hd = /*#__PURE__*/ Wc(function(e, t) {
- [e, t] = La(e, t, pd);
- let { hoverProps: n, isHovered: r } = eu({
+}, gd = /*#__PURE__*/ Gc(function(e, t) {
+ [e, t] = Ra(e, t, md);
+ let { hoverProps: n, isHovered: r } = tu({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = Jl({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = Yl({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Fa({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Ia({
...e,
values: {
isHovered: r,
@@ -16536,8 +16536,8 @@ var ld = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ R.createElement(Ha.input, {
- ...J(md(e), o, n),
+ return /*#__PURE__*/ L.createElement(Ua.input, {
+ ...q(hd(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -16549,21 +16549,21 @@ var ld = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
});
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function gd(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = nc(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Vc(e, t), d = Ru({
+function _d(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = rc(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Hc(e, t), d = zu({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = Ku({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = qu({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = Cl(e, { labelable: !0 }), b = {
+ }), y = wl(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
- }, [x] = (0, R.useState)(c);
- return qu(t, e.defaultValue ?? x, l), Ju(e, d, t), {
+ }, [x] = (0, L.useState)(c);
+ return Ju(t, e.defaultValue ?? x, l), Yu(e, d, t), {
labelProps: h,
- inputProps: J(y, n === "input" ? b : void 0, {
+ inputProps: q(y, n === "input" ? b : void 0, {
disabled: r,
readOnly: a,
required: i && s === "native",
@@ -16575,7 +16575,7 @@ function gd(e, t) {
"aria-haspopup": e["aria-haspopup"],
"aria-controls": e["aria-controls"],
value: c,
- onChange: (e) => l(Y(e).value),
+ onChange: (e) => l(J(e).value),
autoComplete: e.autoComplete,
autoCapitalize: e.autoCapitalize,
maxLength: e.maxLength,
@@ -16608,8 +16608,8 @@ function gd(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ar-AE.mjs
-var _d = {};
-_d = {
+var vd = {};
+vd = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -16617,8 +16617,8 @@ _d = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var vd = {};
-vd = {
+var yd = {};
+yd = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -16626,8 +16626,8 @@ vd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var yd = {};
-yd = {
+var bd = {};
+bd = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -16635,8 +16635,8 @@ yd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var bd = {};
-bd = {
+var xd = {};
+xd = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -16644,8 +16644,8 @@ bd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var xd = {};
-xd = {
+var Sd = {};
+Sd = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -16653,8 +16653,8 @@ xd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var Sd = {};
-Sd = {
+var Cd = {};
+Cd = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -16662,8 +16662,8 @@ Sd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var Cd = {};
-Cd = {
+var wd = {};
+wd = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -16671,8 +16671,8 @@ Cd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var wd = {};
-wd = {
+var Td = {};
+Td = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -16680,8 +16680,8 @@ wd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var Td = {};
-Td = {
+var Ed = {};
+Ed = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -16689,8 +16689,8 @@ Td = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var Ed = {};
-Ed = {
+var Dd = {};
+Dd = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -16698,8 +16698,8 @@ Ed = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var Dd = {};
-Dd = {
+var Od = {};
+Od = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -16707,8 +16707,8 @@ Dd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var Od = {};
-Od = {
+var kd = {};
+kd = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -16716,8 +16716,8 @@ Od = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var kd = {};
-kd = {
+var Ad = {};
+Ad = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -16725,8 +16725,8 @@ kd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var Ad = {};
-Ad = {
+var jd = {};
+jd = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -16734,8 +16734,8 @@ Ad = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var jd = {};
-jd = {
+var Md = {};
+Md = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -16743,8 +16743,8 @@ jd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var Md = {};
-Md = {
+var Nd = {};
+Nd = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -16752,8 +16752,8 @@ Md = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var Nd = {};
-Nd = {
+var Pd = {};
+Pd = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -16761,8 +16761,8 @@ Nd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var Pd = {};
-Pd = {
+var Fd = {};
+Fd = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -16770,8 +16770,8 @@ Pd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var Fd = {};
-Fd = {
+var Id = {};
+Id = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -16779,8 +16779,8 @@ Fd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var Id = {};
-Id = {
+var Ld = {};
+Ld = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -16788,8 +16788,8 @@ Id = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var Ld = {};
-Ld = {
+var Rd = {};
+Rd = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -16797,8 +16797,8 @@ Ld = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var Rd = {};
-Rd = {
+var zd = {};
+zd = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -16806,8 +16806,8 @@ Rd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var zd = {};
-zd = {
+var Bd = {};
+Bd = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -16815,8 +16815,8 @@ zd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var Bd = {};
-Bd = {
+var Vd = {};
+Vd = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -16824,8 +16824,8 @@ Bd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var Vd = {};
-Vd = {
+var Hd = {};
+Hd = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -16833,8 +16833,8 @@ Vd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var Hd = {};
-Hd = {
+var Ud = {};
+Ud = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -16842,8 +16842,8 @@ Hd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var Ud = {};
-Ud = {
+var Wd = {};
+Wd = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -16851,8 +16851,8 @@ Ud = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var Wd = {};
-Wd = {
+var Gd = {};
+Gd = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -16860,8 +16860,8 @@ Wd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var Gd = {};
-Gd = {
+var Kd = {};
+Kd = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -16869,8 +16869,8 @@ Gd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var Kd = {};
-Kd = {
+var qd = {};
+qd = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -16878,8 +16878,8 @@ Kd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var qd = {};
-qd = {
+var Jd = {};
+Jd = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -16887,8 +16887,8 @@ qd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var Jd = {};
-Jd = {
+var Yd = {};
+Yd = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -16896,8 +16896,8 @@ Jd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var Yd = {};
-Yd = {
+var Xd = {};
+Xd = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -16905,8 +16905,8 @@ Yd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var Xd = {};
-Xd = {
+var Zd = {};
+Zd = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -16914,52 +16914,52 @@ Xd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var Zd = {};
-Zd = {
- "ar-AE": _d,
- "bg-BG": vd,
- "cs-CZ": yd,
- "da-DK": bd,
- "de-DE": xd,
- "el-GR": Sd,
- "en-US": Cd,
- "es-ES": wd,
- "et-EE": Td,
- "fi-FI": Ed,
- "fr-FR": Dd,
- "he-IL": Od,
- "hr-HR": kd,
- "hu-HU": Ad,
- "it-IT": jd,
- "ja-JP": Md,
- "ko-KR": Nd,
- "lt-LT": Pd,
- "lv-LV": Fd,
- "nb-NO": Id,
- "nl-NL": Ld,
- "pl-PL": Rd,
- "pt-BR": zd,
- "pt-PT": Bd,
- "ro-RO": Vd,
- "ru-RU": Hd,
- "sk-SK": Ud,
- "sl-SI": Wd,
- "sr-SP": Gd,
- "sv-SE": Kd,
- "tr-TR": qd,
- "uk-UA": Jd,
- "zh-CN": Yd,
- "zh-TW": Xd
+var Qd = {};
+Qd = {
+ "ar-AE": vd,
+ "bg-BG": yd,
+ "cs-CZ": bd,
+ "da-DK": xd,
+ "de-DE": Sd,
+ "el-GR": Cd,
+ "en-US": wd,
+ "es-ES": Td,
+ "et-EE": Ed,
+ "fi-FI": Dd,
+ "fr-FR": Od,
+ "he-IL": kd,
+ "hr-HR": Ad,
+ "hu-HU": jd,
+ "it-IT": Md,
+ "ja-JP": Nd,
+ "ko-KR": Pd,
+ "lt-LT": Fd,
+ "lv-LV": Id,
+ "nb-NO": Ld,
+ "nl-NL": Rd,
+ "pl-PL": zd,
+ "pt-BR": Bd,
+ "pt-PT": Vd,
+ "ro-RO": Hd,
+ "ru-RU": Ud,
+ "sk-SK": Wd,
+ "sl-SI": Gd,
+ "sr-SP": Kd,
+ "sv-SE": qd,
+ "tr-TR": Jd,
+ "uk-UA": Yd,
+ "zh-CN": Xd,
+ "zh-TW": Zd
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var Qd = /*#__PURE__*/ (0, R.createContext)({}), $d = /*#__PURE__*/ (0, R.createContext)(null), ef = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { render: n } = (0, R.useContext)($d);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, n(e, t));
+var $d = /*#__PURE__*/ (0, L.createContext)({}), ef = /*#__PURE__*/ (0, L.createContext)(null), tf = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ let { render: n } = (0, L.useContext)(ef);
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, n(e, t));
});
-function tf(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(ef, { target: e });
+function nf(e, t) {
+ let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, L.useCallback)((e) => {
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ L.createElement(tf, { target: e });
}, [
t?.target,
r,
@@ -16967,7 +16967,7 @@ function tf(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function nf(e, t, n) {
+function rf(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;
@@ -16986,22 +16986,22 @@ function nf(e, t, n) {
}
i = e ?? t ?? i;
}
- return (0, R.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
+ return (0, L.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var rf = /*#__PURE__*/ (0, R.createContext)({}), af = /*#__PURE__*/ (0, R.createContext)(null);
-function of(e) {
- let t = (0, R.useRef)({});
- return /*#__PURE__*/ R.createElement(af.Provider, { value: t }, e.children);
+var af = /*#__PURE__*/ (0, L.createContext)({}), of = /*#__PURE__*/ (0, L.createContext)(null);
+function sf(e) {
+ let t = (0, L.useRef)({});
+ return /*#__PURE__*/ L.createElement(of.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var sf = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 });
+var cf = /*#__PURE__*/ (0, L.createContext)({ isSelected: !1 });
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function cf(e) {
- let t = Cl(e, { labelable: !0 }), n;
+function lf(e) {
+ let t = wl(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -17010,7 +17010,7 @@ function cf(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Separator.mjs
-var lf = /*#__PURE__*/ (0, R.createContext)({}), uf = /*#__PURE__*/ al(class extends ac {
+var uf = /*#__PURE__*/ (0, L.createContext)({}), df = /*#__PURE__*/ ol(class extends oc {
static {
this.type = "separator";
}
@@ -17023,34 +17023,34 @@ var lf = /*#__PURE__*/ (0, R.createContext)({}), uf = /*#__PURE__*/ al(class ext
return null;
}
}, function(e, t) {
- [e, t] = La(e, t, lf);
+ [e, t] = Ra(e, t, uf);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = Ha[c], { separatorProps: u } = cf({
+ let l = Ua[c], { separatorProps: u } = lf({
...s,
elementType: n,
orientation: r
- }), d = Cl(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(l, {
+ }), d = wl(e, { global: !0 });
+ return /*#__PURE__*/ L.createElement(l, {
render: e.render,
- ...J(d, u),
+ ...q(d, u),
style: i,
className: a ?? "react-aria-Separator",
ref: t,
slot: o || void 0
});
-}), df = /* @__PURE__ */ new WeakMap();
-function ff(e) {
+}), ff = /* @__PURE__ */ new WeakMap();
+function pf(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function pf(e, t) {
- let n = df.get(e);
+function mf(e, t) {
+ let n = ff.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${ff(t)}`;
+ return `${n.id}-option-${pf(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var mf = class {
+var hf = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -17075,7 +17075,7 @@ var mf = class {
return this._currentNode;
}
set currentNode(e) {
- if (!to(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!no(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -17089,7 +17089,7 @@ var mf = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return to(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return no(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -17153,202 +17153,202 @@ var mf = class {
return null;
}
};
-function hf(e, t, n, r) {
- return eo() ? new mf(e, t, n, r) : e.createTreeWalker(t, n, r);
+function gf(e, t, n, r) {
+ return to() ? new hf(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var gf = /*#__PURE__*/ R.createContext(null), _f = "react-aria-focus-scope-restore", vf = null;
-function yf(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)([]), { parentNode: c } = (0, R.useContext)(gf) || {}, l = (0, R.useMemo)(() => new Vf({ scopeRef: s }), [s]);
- sa(() => {
- let e = c || Hf.root;
- if (Hf.getTreeNode(e.scopeRef) && vf && !Af(vf, e.scopeRef)) {
- let t = Hf.getTreeNode(vf);
+var _f = /*#__PURE__*/ L.createContext(null), vf = "react-aria-focus-scope-restore", yf = null;
+function bf(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = (0, L.useRef)([]), { parentNode: c } = (0, L.useContext)(_f) || {}, l = (0, L.useMemo)(() => new Hf({ scopeRef: s }), [s]);
+ ca(() => {
+ let e = c || Uf.root;
+ if (Uf.getTreeNode(e.scopeRef) && yf && !jf(yf, e.scopeRef)) {
+ let t = Uf.getTreeNode(yf);
t && (e = t);
}
- e.addChild(l), Hf.addNode(l);
- }, [l, c]), sa(() => {
- let e = Hf.getTreeNode(s);
+ e.addChild(l), Uf.addNode(l);
+ }, [l, c]), ca(() => {
+ let e = Uf.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), sa(() => {
+ }, [n]), ca(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(_f, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(vf, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(_f, n);
+ for (let e of t) e.removeEventListener(vf, n);
};
- }, [t]), Ff(s, r, n), Tf(s, n), Lf(s, r, n), Pf(s, i), (0, R.useEffect)(() => {
- let e = no(Ga(s.current ? s.current[0] : void 0)), t = null;
- if (Df(e, s.current)) {
- for (let n of Hf.traverse()) n.scopeRef && Df(e, n.scopeRef.current) && (t = n);
- t === Hf.getTreeNode(s) && (vf = t.scopeRef);
- }
- }, [s]), sa(() => () => {
- let e = Hf.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === vf || Af(s, vf)) && (!e || Hf.getTreeNode(e)) && (vf = e), Hf.removeTreeNode(s);
+ }, [t]), If(s, r, n), Ef(s, n), Rf(s, r, n), Ff(s, i), (0, L.useEffect)(() => {
+ let e = ro(Ka(s.current ? s.current[0] : void 0)), t = null;
+ if (Of(e, s.current)) {
+ for (let n of Uf.traverse()) n.scopeRef && Of(e, n.scopeRef.current) && (t = n);
+ t === Uf.getTreeNode(s) && (yf = t.scopeRef);
+ }
+ }, [s]), ca(() => () => {
+ let e = Uf.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === yf || jf(s, yf)) && (!e || Uf.getTreeNode(e)) && (yf = e), Uf.removeTreeNode(s);
}, [s]);
- let u = (0, R.useMemo)(() => bf(s), []), d = (0, R.useMemo)(() => ({
+ let u = (0, L.useMemo)(() => xf(s), []), d = (0, L.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ R.createElement(gf.Provider, { value: d }, /*#__PURE__*/ R.createElement("span", {
+ return /*#__PURE__*/ L.createElement(_f.Provider, { value: d }, /*#__PURE__*/ L.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
- }), t, /*#__PURE__*/ R.createElement("span", {
+ }), t, /*#__PURE__*/ L.createElement("span", {
"data-focus-scope-end": !0,
hidden: !0,
ref: o
}));
}
-function bf(e) {
+function xf(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || no(Ga(n[0] ?? void 0)), c = n[0].previousElementSibling, l = zf(xf(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || ro(Ka(n[0] ?? void 0)), c = n[0].previousElementSibling, l = Bf(Sf(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Df(s, n) ? s : c;
+ l.currentNode = Of(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && jf(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && Mf(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || no(Ga(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = zf(xf(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || ro(Ka(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = Bf(Sf(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Df(s, n) ? s : c;
+ l.currentNode = Of(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && jf(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && Mf(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = zf(xf(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = Bf(Sf(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && jf(o, !0), o;
+ return o && Mf(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = zf(xf(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = Bf(Sf(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && jf(o, !0), o;
+ return o && Mf(o, !0), o;
}
};
}
-function xf(e) {
+function Sf(e) {
return e[0].parentElement;
}
-function Sf(e) {
- let t = Hf.getTreeNode(vf);
+function Cf(e) {
+ let t = Uf.getTreeNode(yf);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Cf(e) {
- if (!e.form) return Array.from(Ga(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = Ka(e);
+function wf(e) {
+ if (!e.form) return Array.from(Ka(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = qa(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function wf(e) {
+function Tf(e) {
if (e.checked) return !0;
- let t = Cf(e);
+ let t = wf(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Tf(e, t) {
- let n = (0, R.useRef)(void 0), r = (0, R.useRef)(void 0);
- sa(() => {
+function Ef(e, t) {
+ let n = (0, L.useRef)(void 0), r = (0, L.useRef)(void 0);
+ ca(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = Ga(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Sf(e) || t.isComposing) return;
- let n = no(a), r = e.current;
- if (!r || !Df(n, r)) return;
- let i = zf(xf(r), { tabbable: !0 }, r);
+ let a = Ka(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Cf(e) || t.isComposing) return;
+ let n = ro(a), r = e.current;
+ if (!r || !Of(n, r)) return;
+ let i = Bf(Sf(r), { tabbable: !0 }, r);
if (!n) return;
i.currentNode = n;
let o = t.shiftKey ? i.previousNode() : i.nextNode();
- o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (jf(o, !0), o instanceof Ka(o).HTMLInputElement && o.select());
+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (Mf(o, !0), o instanceof qa(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!vf || Af(vf, e)) && Df(Y(t), e.current) ? (vf = e, n.current = Y(t)) : Sf(e) && !Of(Y(t), e) ? n.current ? jf(n.current) : vf && vf.current && Nf(vf.current) : Sf(e) && (n.current = Y(t));
+ (!yf || jf(yf, e)) && Of(J(t), e.current) ? (yf = e, n.current = J(t)) : Cf(e) && !kf(J(t), e) ? n.current ? Mf(n.current) : yf && yf.current && Pf(yf.current) : Cf(e) && (n.current = J(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = gs(), i = (r === "virtual" || r === null) && Bo() && zo(), o = no(a);
- if (!i && o && Sf(e) && !Of(o, e)) {
- vf = e;
- let r = Y(t);
- r && r.isConnected ? (n.current = r, jf(n.current)) : vf.current && Nf(vf.current);
+ let r = _s(), i = (r === "virtual" || r === null) && Vo() && Bo(), o = ro(a);
+ if (!i && o && Cf(e) && !kf(o, e)) {
+ yf = e;
+ let r = J(t);
+ r && r.isConnected ? (n.current = r, Mf(n.current)) : yf.current && Pf(yf.current);
}
});
};
return a.addEventListener("keydown", o, !1), a.addEventListener("focusin", s, !1), i?.forEach((e) => e.addEventListener("focusin", s, !1)), i?.forEach((e) => e.addEventListener("focusout", c, !1)), () => {
a.removeEventListener("keydown", o, !1), a.removeEventListener("focusin", s, !1), i?.forEach((e) => e.removeEventListener("focusin", s, !1)), i?.forEach((e) => e.removeEventListener("focusout", c, !1));
};
- }, [e, t]), sa(() => () => {
+ }, [e, t]), ca(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function Ef(e) {
- return Of(e);
+function Df(e) {
+ return kf(e);
}
-function Df(e, t) {
- return !e || !t ? !1 : t.some((t) => to(t, e));
+function Of(e, t) {
+ return !e || !t ? !1 : t.some((t) => no(t, e));
}
-function Of(e, t = null) {
+function kf(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of Hf.traverse(Hf.getTreeNode(t))) if (n && Df(e, n.current)) return !0;
+ for (let { scopeRef: n } of Uf.traverse(Uf.getTreeNode(t))) if (n && Of(e, n.current)) return !0;
return !1;
}
-function kf(e) {
- return Of(e, vf);
+function Af(e) {
+ return kf(e, yf);
}
-function Af(e, t) {
- let n = Hf.getTreeNode(t)?.parent;
+function jf(e, t) {
+ let n = Uf.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function jf(e, t = !1) {
+function Mf(e, t = !1) {
if (e != null && !t) try {
- Sc(e);
+ Cc(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function Mf(e, t = !0) {
- let n = e[0].previousElementSibling, r = xf(e), i = zf(r, { tabbable: t }, e);
+function Nf(e, t = !0) {
+ let n = e[0].previousElementSibling, r = Sf(e), i = Bf(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = xf(e), i = zf(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = Sf(e), i = Bf(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function Nf(e, t = !0) {
- jf(Mf(e, t));
+function Pf(e, t = !0) {
+ Mf(Nf(e, t));
}
-function Pf(e, t) {
- let n = R.useRef(t);
- (0, R.useEffect)(() => {
- n.current && (vf = e, !Df(no(Ga(e.current ? e.current[0] : void 0)), vf.current) && e.current && Nf(e.current)), n.current = !1;
+function Ff(e, t) {
+ let n = L.useRef(t);
+ (0, L.useEffect)(() => {
+ n.current && (yf = e, !Of(ro(Ka(e.current ? e.current[0] : void 0)), yf.current) && e.current && Pf(e.current)), n.current = !1;
}, [e]);
}
-function Ff(e, t, n) {
- sa(() => {
+function If(e, t, n) {
+ ca(() => {
if (t || n) return;
- let r = e.current, i = Ga(r ? r[0] : void 0), a = (t) => {
- let n = Y(t);
- Df(n, e.current) ? vf = e : Ef(n) || (vf = null);
+ let r = e.current, i = Ka(r ? r[0] : void 0), a = (t) => {
+ let n = J(t);
+ Of(n, e.current) ? yf = e : Df(n) || (yf = null);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -17359,43 +17359,43 @@ function Ff(e, t, n) {
n
]);
}
-function If(e) {
- let t = Hf.getTreeNode(vf);
+function Lf(e) {
+ let t = Uf.getTreeNode(yf);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function Lf(e, t, n) {
- let r = (0, R.useRef)(typeof document < "u" ? no(Ga(e.current ? e.current[0] : void 0)) : null);
- sa(() => {
- let r = e.current, i = Ga(r ? r[0] : void 0);
+function Rf(e, t, n) {
+ let r = (0, L.useRef)(typeof document < "u" ? ro(Ka(e.current ? e.current[0] : void 0)) : null);
+ ca(() => {
+ let r = e.current, i = Ka(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!vf || Af(vf, e)) && Df(no(i), e.current) && (vf = e);
+ (!yf || jf(yf, e)) && Of(ro(i), e.current) && (yf = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
};
- }, [e, n]), sa(() => {
- let r = Ga(e.current ? e.current[0] : void 0);
+ }, [e, n]), ca(() => {
+ let r = Ka(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Sf(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Cf(e) || t.isComposing) return;
let n = r.activeElement;
- if (!Of(n, e) || !If(e)) return;
- let i = Hf.getTreeNode(e);
+ if (!kf(n, e) || !Lf(e)) return;
+ let i = Uf.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = zf(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = Bf(r.body, { tabbable: !0 });
o.currentNode = n;
let s = t.shiftKey ? o.previousNode() : o.nextNode();
- if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !Of(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !kf(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (Of(s, e));
- t.preventDefault(), t.stopPropagation(), s ? jf(s, !0) : Ef(a) ? jf(a, !0) : n.blur();
+ while (kf(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? Mf(s, !0) : Df(a) ? Mf(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -17405,31 +17405,31 @@ function Lf(e, t, n) {
e,
t,
n
- ]), sa(() => {
- let n = Ga(e.current ? e.current[0] : void 0);
+ ]), ca(() => {
+ let n = Ka(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = Hf.getTreeNode(e);
+ let i = Uf.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = Hf.getTreeNode(e);
+ let r = Uf.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = no(n);
- if (t && i && (a && Of(a, e) || a === n.body && If(e))) {
- let t = Hf.clone();
+ let i = r.nodeToRestore, a = ro(n);
+ if (t && i && (a && kf(a, e) || a === n.body && Lf(e))) {
+ let t = Uf.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- Rf(n.nodeToRestore);
+ zf(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && Hf.getTreeNode(n.scopeRef)) {
- let e = Mf(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && Uf.getTreeNode(n.scopeRef)) {
+ let e = Nf(n.scopeRef.current, !0);
if (e) {
- Rf(e);
+ zf(e);
return;
}
}
@@ -17441,21 +17441,21 @@ function Lf(e, t, n) {
};
}, [e, t]);
}
-function Rf(e) {
- e.dispatchEvent(new CustomEvent(_f, {
+function zf(e) {
+ e.dispatchEvent(new CustomEvent(vf, {
bubbles: !0,
cancelable: !0
- })) && jf(e);
+ })) && Mf(e);
}
-function zf(e, t, n) {
- let r = t?.tabbable ? Co : So, i = Ga(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = hf(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return to(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!wf(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Df(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function Bf(e, t, n) {
+ let r = t?.tabbable ? wo : Co, i = Ka(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = gf(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return no(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Tf(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Of(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var Bf = class e {
+var Vf = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new Vf({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new Hf({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -17466,7 +17466,7 @@ var Bf = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new Vf({ scopeRef: e });
+ let i = new Hf({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -17477,7 +17477,7 @@ var Bf = class e {
let t = this.fastMap.get(e);
if (!t) return;
let n = t.parent;
- for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && Df(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && Of(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -17489,7 +17489,7 @@ var Bf = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, Vf = class {
+}, Hf = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -17499,33 +17499,33 @@ var Bf = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, Hf = new Bf();
+}, Uf = new Vf();
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function Uf(e) {
- return Lo() ? e.altKey : e.ctrlKey;
+function Wf(e) {
+ return Ro() ? e.altKey : e.ctrlKey;
}
-function Wf(e, t) {
+function Gf(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 Gf = /* @__PURE__ */ new WeakMap();
-function Kf(e) {
- let t = Ta();
- return Gf.set(e, t), t;
-}
+var Kf = /* @__PURE__ */ new WeakMap();
function qf(e) {
- return Gf.get(e);
+ let t = Ea();
+ return Kf.set(e, t), t;
+}
+function Jf(e) {
+ return Kf.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var Jf = 1e3;
-function Yf(e) {
- let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, R.useRef)({
+var Yf = 1e3;
+function Xf(e) {
+ let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, L.useRef)({
search: "",
timeout: void 0
});
- return (0, R.useEffect)(() => {
+ return (0, L.useEffect)(() => {
let e = i.current.timeout;
return () => {
clearTimeout(e);
@@ -17539,12 +17539,12 @@ function Yf(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, Jf);
+ }, Yf);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Xf(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !to(e.currentTarget, Y(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = Zf(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !no(e.currentTarget, J(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -17555,34 +17555,34 @@ function Yf(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, Jf);
+ }, Yf);
}
} : void 0
} };
}
-function Xf(e) {
+function Zf(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function Zf(e, t) {
- let n = (0, R.useRef)(!0), r = (0, R.useRef)(null);
- sa(() => (n.current = !0, () => {
+function Qf(e, t) {
+ let n = (0, L.useRef)(!0), r = (0, L.useRef)(null);
+ ca(() => (n.current = !0, () => {
n.current = !1;
- }), []), sa(() => {
+ }), []), ca(() => {
n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function Qf(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 } = Bs(), _ = Go(), v = (e, n, i) => {
+function $f(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 } = Vs(), _ = Ko(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !Uf(e)) {
- (0, ze.flushSync)(() => {
+ if (t.isLink(n) && m === "selection" && l && !Wf(e)) {
+ (0, Be.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = Wf(r, n), o = t.getItemProps(n);
+ let a = Gf(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -17594,7 +17594,7 @@ function Qf(e) {
t.extendSelection(n);
return;
}
- if (l && !Uf(e)) {
+ if (l && !Wf(e)) {
t.replaceSelection(n);
return;
}
@@ -17621,9 +17621,9 @@ function Qf(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, Cs(e));
+ let r = n.getFirstKey(t.focusedKey, ws(e));
if (t.setFocusedKey(r), r != null) {
- if (Cs(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (ws(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -17655,9 +17655,9 @@ function Qf(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, Cs(e));
+ let r = n.getLastKey(t.focusedKey, ws(e));
if (t.setFocusedKey(r), r != null) {
- if (Cs(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (ws(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -17694,12 +17694,12 @@ function Qf(e) {
return !1;
}, k = () => {
if (!f && r.current) {
- let e = zf(r.current, { tabbable: !0 }), t, n;
+ let e = Bf(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = no();
- t && (!io(t) || i && !Co(i)) && lo(t);
+ let i = ro();
+ t && (!ao(t) || i && !wo(i)) && uo(t);
}
return {
shouldContinuePropagation: !0,
@@ -17709,11 +17709,11 @@ function Qf(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [No() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [Po() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [No() ? e + "+Alt" : e + "+Control"]: t,
+ [Po() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: M } = Lc({
+ }), { keyboardProps: M } = Rc({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -17723,18 +17723,18 @@ function Qf(e) {
...j("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: N } = Lc({ shortcuts: {
+ }), { keyboardProps: N } = Rc({ shortcuts: {
...j("Home", x),
...j("End", w),
"Mod+A": D,
Escape: O,
Tab: k,
"Tab+Shift": A
- } }), P = (0, R.useRef)({
+ } }), P = (0, L.useRef)({
top: 0,
left: 0
});
- Os(p, "scroll", () => {
+ ks(p, "scroll", () => {
P.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -17742,11 +17742,11 @@ function Qf(e) {
});
let ee = (e) => {
if (t.isFocused) {
- to(e.currentTarget, Y(e)) || t.setFocused(!1);
+ no(e.currentTarget, J(e)) || t.setFocused(!1);
return;
}
- if (!to(e.currentTarget, Y(e))) return;
- let i = gs();
+ if (!no(e.currentTarget, J(e))) return;
+ let i = _s();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -17757,32 +17757,32 @@ function Qf(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 = P.current.top, p.current.scrollLeft = P.current.left);
if (t.focusedKey != null && p.current) {
- let e = Wf(r, t.focusedKey);
- e instanceof HTMLElement && (!io(e) && !d && lo(e), (i === "keyboard" || h && i === "virtual") && Tu(e, { containingElement: r.current }));
+ let e = Gf(r, t.focusedKey);
+ e instanceof HTMLElement && (!ao(e) && !d && uo(e), (i === "keyboard" || h && i === "virtual") && Eu(e, { containingElement: r.current }));
}
}, F = (e) => {
- to(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
- }, I = (0, R.useRef)(!1);
- Os(r, Wa, d ? (e) => {
+ no(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ }, te = (0, L.useRef)(!1);
+ ks(r, Ga, d ? (e) => {
let { detail: n } = e;
- e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (I.current = !0);
+ e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (te.current = !0);
} : void 0);
- let te = n.getFirstKey?.() ?? null;
- Zf(() => {
- if (I.current) {
- if (te == null) {
- let e = no();
- ao(r.current), so(e, null), t.collection.size > 0 && (I.current = !1);
- } else t.setFocusedKey(te), I.current = !1;
- }
- }, [te, t.collection.size]), Zf(() => {
- t.collection.size > 0 && (I.current = !1);
- }, [t.focusedKey]), Os(r, Ua, d ? (e) => {
+ let ne = n.getFirstKey?.() ?? null;
+ Qf(() => {
+ if (te.current) {
+ if (ne == null) {
+ let e = ro();
+ oo(r.current), co(e, null), t.collection.size > 0 && (te.current = !1);
+ } else t.setFocusedKey(ne), te.current = !1;
+ }
+ }, [ne, t.collection.size]), Qf(() => {
+ t.collection.size > 0 && (te.current = !1);
+ }, [t.focusedKey]), ks(r, Wa, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
- let ne = (0, R.useRef)(i), re = (0, R.useRef)(!1);
- (0, R.useEffect)(() => {
- if (ne.current) {
+ let re = (0, L.useRef)(i), ie = (0, L.useRef)(!1);
+ (0, L.useEffect)(() => {
+ if (re.current) {
let e = null;
i === "first" && (e = n.getFirstKey?.() ?? null), i === "last" && (e = n.getLastKey?.() ?? null);
let a = t.selectedKeys;
@@ -17792,54 +17792,54 @@ function Qf(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && Sc(r.current), t.collection.size > 0 && (ne.current = !1, re.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && Cc(r.current), t.collection.size > 0 && (re.current = !1, ie.current = !0);
}
});
- let ie = (0, R.useRef)(t.focusedKey), ae = (0, R.useRef)(null);
- (0, R.useEffect)(() => {
- if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ie.current || re.current) && p.current && r.current) {
- let e = gs(), n = Wf(r, t.focusedKey);
+ let ae = (0, L.useRef)(t.focusedKey), oe = (0, L.useRef)(null);
+ (0, L.useEffect)(() => {
+ if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ae.current || ie.current) && p.current && r.current) {
+ let e = _s(), n = Gf(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
- (e === "keyboard" || re.current) && (ae.current && cancelAnimationFrame(ae.current), ae.current = requestAnimationFrame(() => {
- p.current && (Cu(p.current, n), e !== "virtual" && Tu(n, { containingElement: r.current }));
+ (e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
+ p.current && (wu(p.current, n), e !== "virtual" && Eu(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ie.current != null && r.current && Sc(r.current), ie.current = t.focusedKey, re.current = !1;
- }), (0, R.useEffect)(() => () => {
- ae.current && cancelAnimationFrame(ae.current);
- }, []), Os(r, "react-aria-focus-scope-restore", (e) => {
+ !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && Cc(r.current), ae.current = t.focusedKey, ie.current = !1;
+ }), (0, L.useEffect)(() => () => {
+ oe.current && cancelAnimationFrame(oe.current);
+ }, []), ks(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
- let oe = {
- ...J(N, M),
+ let se = {
+ ...q(N, M),
onFocus: ee,
onBlur: F,
onMouseDown(e) {
- p.current === Y(e) && e.preventDefault();
+ p.current === J(e) && e.preventDefault();
}
- }, { typeSelectProps: se } = Yf({
+ }, { typeSelectProps: ce } = Xf({
keyboardDelegate: n,
selectionManager: t
});
- u || (oe = J(se, oe));
- let ce;
- d || (ce = t.focusedKey == null ? 0 : -1);
- let le = Kf(t.collection);
- return { collectionProps: J(oe, {
- tabIndex: ce,
- "data-collection": le
+ u || (se = q(ce, se));
+ let le;
+ d || (le = t.focusedKey == null ? 0 : -1);
+ let ue = qf(t.collection);
+ return { collectionProps: q(se, {
+ tabIndex: le,
+ "data-collection": ue
}) };
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var $f = class {
+var ep = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : Wf(this.ref, e);
+ let n = e == null ? null : Gf(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -17865,12 +17865,12 @@ var $f = class {
height: e?.clientHeight ?? 0
};
}
-}, ep = class {
+}, tp = 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 $f(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 $f(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 ep(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 ep(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -17910,14 +17910,14 @@ var $f = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = Wf(this.ref, e);
+ let t = this.getNextKey(e), n = Gf(this.ref, e);
if (t != null) {
- let e = Wf(this.ref, t);
+ let e = Gf(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = Wf(this.ref, r);
+ let e = Gf(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -17951,7 +17951,7 @@ var $f = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !bu(t)) return this.getFirstKey();
+ if (t && !xu(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -17966,7 +17966,7 @@ var $f = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !bu(t)) return this.getLastKey();
+ if (t && !xu(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -17989,20 +17989,20 @@ var $f = class {
}
return null;
}
-}, tp = /* @__PURE__ */ new Map();
-function np(e) {
- let { locale: t } = Bs(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (tp.has(n)) return tp.get(n);
+}, np = /* @__PURE__ */ new Map();
+function rp(e) {
+ let { locale: t } = Vs(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (np.has(n)) return np.get(n);
let r = new Intl.Collator(t, e);
- return tp.set(n, r), r;
+ return np.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function rp(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = np({
+function ip(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = rp({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, R.useMemo)(() => a || new ep({
+ }), l = t.disabledBehavior, u = (0, L.useMemo)(() => a || new tp({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -18019,7 +18019,7 @@ function rp(e) {
c,
l,
s
- ]), { collectionProps: d } = Qf({
+ ]), { collectionProps: d } = $f({
...e,
ref: i,
selectionManager: t,
@@ -18029,22 +18029,22 @@ function rp(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function ip(e, t, n) {
- let r = Cl(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function ap(e, t, n) {
+ let r = wl(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 } = rp({
+ let { listProps: s } = ip({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = ql({
+ }), { focusWithinProps: c } = Jl({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = Ta(e.id);
- df.set(t, {
+ }), l = Ea(e.id);
+ ff.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -18054,25 +18054,25 @@ function ip(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = ru({
+ let { labelProps: u, fieldProps: d } = iu({
...e,
id: l,
labelElementType: "span"
});
return {
labelProps: u,
- listBoxProps: J(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
+ listBoxProps: q(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
role: "listbox",
"aria-orientation": a,
- ...J(d, s)
+ ...q(d, s)
})
};
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var ap = 500;
-function op(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = ap, accessibilityDescription: s } = e, c = (0, R.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Nl(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = zl({
+var op = 500;
+function sp(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = op, accessibilityDescription: s } = e, c = (0, L.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Pl(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Bl({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -18080,12 +18080,12 @@ function op(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), Ga(e.target).activeElement !== e.target && lo(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), Ka(e.target).activeElement !== e.target && uo(e.target), a && a({
...e,
type: "longpress"
}), c.current = void 0;
}, o), e.pointerType === "touch" && l(e.target, "contextmenu", (e) => e.preventDefault(), { once: !0 });
- let t = Ka(e.target);
+ let t = qa(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -18100,15 +18100,15 @@ function op(e) {
});
}
});
- return { longPressProps: J(f, Ou(a && !t ? s : void 0)) };
+ return { longPressProps: q(f, ku(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function sp(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 = Go();
- t = Ta(t);
+function cp(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 = Ko();
+ t = Ea(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && Uf(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && Wf(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -18119,11 +18119,11 @@ function sp(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Cs(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (ws(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
- (0, R.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? ao(i.current) : s ? s() : no() !== i.current && i.current && Sc(i.current));
+ (0, L.useEffect)(() => {
+ r === n.focusedKey && n.isFocused && (o ? oo(i.current) : s ? s() : ro() !== i.current && i.current && Cc(i.current));
}, [
i,
r,
@@ -18136,38 +18136,38 @@ function sp(e) {
!o && !c ? m = {
tabIndex: r === n.focusedKey ? 0 : -1,
onFocus(e) {
- Y(e) === i.current && n.setFocusedKey(r);
+ J(e) === i.current && n.setFocusedKey(r);
}
} : c && (m.onMouseDown = (e) => {
e.preventDefault();
- }), (0, R.useEffect)(() => {
+ }), (0, L.useEffect)(() => {
c && n.focusedKey === r && n.setFocusedKey(null);
}, [
n,
c,
r
]);
- let h = n.isLink(r) && d === "override", g = l && e.UNSTABLE_itemBehavior === "action", _ = n.isLink(r) && d !== "selection" && d !== "none", v = !c && n.canSelectItem(r) && !h && !g, y = (l || _) && !c, b = y && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), x = y && v && n.selectionBehavior === "replace", S = b || x, C = (0, R.useRef)(null), w = S && v, T = (0, R.useRef)(!1), E = (0, R.useRef)(!1), D = n.getItemProps(r), O = (e) => {
+ let h = n.isLink(r) && d === "override", g = l && e.UNSTABLE_itemBehavior === "action", _ = n.isLink(r) && d !== "selection" && d !== "none", v = !c && n.canSelectItem(r) && !h && !g, y = (l || _) && !c, b = y && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), x = y && v && n.selectionBehavior === "replace", S = b || x, C = (0, L.useRef)(null), w = S && v, T = (0, L.useRef)(!1), E = (0, L.useRef)(!1), D = n.getItemProps(r), O = (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 || lp(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || up(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" && !cp(e.key)) return;
+ if (e.pointerType === "keyboard" && !lp(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 || lp(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || up(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && cp(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 && lp(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = qf(n.collection);
- if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = J(k, {
+ let A = Jf(n.collection);
+ if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = q(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
},
@@ -18181,10 +18181,10 @@ function sp(e) {
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = oa(k[e], D[e]));
- let { pressProps: j, isPressed: M } = zl(k), N = x ? (e) => {
+ ]) D[e] && (k[e] = sa(k[e], D[e]));
+ let { pressProps: j, isPressed: M } = Bl(k), N = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: P } = op({
+ } : void 0, { longPressProps: P } = sp({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -18192,39 +18192,39 @@ function sp(e) {
}), ee = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, F = d !== "none" && n.isLink(r) ? (e) => {
- qo.isOpening || e.preventDefault();
- } : void 0, I = J(m, v || b || o && !c ? j : {}, w ? P : {}, {
+ Jo.isOpening || e.preventDefault();
+ } : void 0, te = q(m, v || b || o && !c ? j : {}, w ? P : {}, {
onDoubleClick: N,
onDragStartCapture: ee,
onClick: F,
id: t
- }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), te = (e) => {
+ }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), ne = (e) => {
let t = e;
for (; t && t !== i.current;) {
let e = t.getAttribute("data-collection");
if (e != null) return e !== A;
t = t.parentElement;
}
- return Co(e);
- }, ne = I.onPointerDown;
- I.onPointerDown = (e) => {
- let t = Y(e);
- if (t && t !== i.current && te(t)) {
+ return wo(e);
+ }, re = te.onPointerDown;
+ te.onPointerDown = (e) => {
+ let t = J(e);
+ if (t && t !== i.current && ne(t)) {
e.stopPropagation();
return;
}
- ne?.(e);
+ re?.(e);
};
- let re = I.onMouseDown;
- return I.onMouseDown = (e) => {
- let t = Y(e);
- if (t && t !== i.current && te(t)) {
+ let ie = te.onMouseDown;
+ return te.onMouseDown = (e) => {
+ let t = J(e);
+ if (t && t !== i.current && ne(t)) {
e.stopPropagation();
return;
}
- re?.(e);
+ ie?.(e);
}, {
- itemProps: I,
+ itemProps: te,
isPressed: M,
isSelected: n.isSelected(r),
isFocused: n.isFocused && n.focusedKey === r,
@@ -18233,21 +18233,21 @@ function sp(e) {
hasAction: S
};
}
-function cp(e) {
+function lp(e) {
return e === "Enter";
}
-function lp(e) {
+function up(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function up(e, t) {
+function dp(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function dp(e) {
- return fp(e, 0);
+function fp(e) {
+ return pp(e, 0);
}
-function fp(e, t) {
+function pp(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -18255,36 +18255,36 @@ function fp(e, t) {
n++;
}
}
-function pp(e) {
+function mp(e) {
let t;
for (let n of e) t = n;
return t;
}
-function mp(e, t, n) {
+function hp(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...hp(e, t), t], i = [...hp(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...gp(e, t), t], i = [...gp(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 hp(e, t) {
+function gp(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 gp = /* @__PURE__ */ new WeakMap();
-function _p(e) {
- let t = gp.get(e);
+var _p = /* @__PURE__ */ new WeakMap();
+function vp(e) {
+ let t = _p.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(up(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(dp(i, e)) : i.type === "item" && n++;
};
- return r(e), gp.set(e, n), n;
+ return r(e), _p.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function vp(e, t, n) {
- let { key: r } = e, i = df.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 = Da(), f = Da(), p = {
+function yp(e, t, n) {
+ let { key: r } = e, i = ff.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 = Oa(), f = Oa(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -18294,9 +18294,9 @@ function vp(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"] = _p(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = vp(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = pf(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = sp({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = mf(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = cp({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -18305,28 +18305,28 @@ function vp(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? oa(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? sa(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = eu({
+ }), { hoverProps: S } = tu({
isDisabled: a || !c,
onHoverStart() {
- hs() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ gs() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = Cl(m?.props);
+ }), C = wl(m?.props);
delete C.id;
- let w = Zo(m?.props);
+ let w = Qo(m?.props);
return {
optionProps: {
...p,
- ...J(C, _, S, w),
+ ...q(C, _, S, w),
id: g
},
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && hs(),
+ isFocusVisible: y && t.selectionManager.isFocused && gs(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -18336,8 +18336,8 @@ function vp(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function yp(e) {
- let { heading: t, "aria-label": n } = e, r = Ta();
+function bp(e) {
+ let { heading: t, "aria-label": n } = e, r = Ea();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -18356,13 +18356,13 @@ function yp(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function bp(e) {
- let t = R.version.split(".");
+function xp(e) {
+ let t = L.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 xp = class {
+var Sp = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -18406,23 +18406,23 @@ var xp = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Sp = class e extends Set {
+}, Cp = 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 Cp(e, t) {
+function wp(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function wp(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] = nc((0, R.useMemo)(() => Tp(e.selectedKeys), [e.selectedKeys]), (0, R.useMemo)(() => Tp(e.defaultSelectedKeys, new Sp()), [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 Tp(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, L.useRef)(!1), [, s] = (0, L.useState)(!1), c = (0, L.useRef)(null), l = (0, L.useRef)(null), [, u] = (0, L.useState)(null), [d, f] = rc((0, L.useMemo)(() => Ep(e.selectedKeys), [e.selectedKeys]), (0, L.useMemo)(() => Ep(e.defaultSelectedKeys, new Cp()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, L.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, L.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
- let g = (0, R.useRef)(i);
- return (0, R.useEffect)(() => {
+ let g = (0, L.useRef)(i);
+ return (0, L.useEffect)(() => {
i !== g.current && (h(i), g.current = i);
}, [i]), {
selectionMode: t,
@@ -18446,18 +18446,18 @@ function wp(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !Cp(e, d)) && f(e);
+ (r || !wp(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function Tp(e, t) {
- return e ? e === "all" ? "all" : new Sp(e) : t;
+function Ep(e, t) {
+ return e ? e === "all" ? "all" : new Cp(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var Ep = class e {
+var Dp = 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;
}
@@ -18513,7 +18513,7 @@ var Ep = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && mp(this.collection, n, e) < 0) && (e = n);
+ (!e || n && hp(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -18521,7 +18521,7 @@ var Ep = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && mp(this.collection, n, e) > 0) && (e = n);
+ (!e || n && hp(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -18540,10 +18540,10 @@ var Ep = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new Sp([t], t, t);
+ if (this.state.selectedKeys === "all") n = new Cp([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new Sp(e, r, t);
+ n = new Cp(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);
}
@@ -18551,7 +18551,7 @@ var Ep = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? mp(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? hp(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);
@@ -18577,19 +18577,19 @@ var Ep = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new Sp(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new Cp(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 Sp([t], t, t) : new Sp();
+ let n = this.canSelectItem(t) ? new Cp([t], t, t) : new Cp();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new Sp();
+ let t = new Cp();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -18601,7 +18601,7 @@ var Ep = 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(dp(up(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(fp(dp(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -18612,7 +18612,7 @@ var Ep = 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 Sp());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new Cp());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -18653,13 +18653,13 @@ var Ep = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, Dp = class {
+}, Op = class {
build(e, t) {
- return this.context = t, Op(() => this.iterateCollection(e));
+ return this.context = t, kp(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
- if (R.isValidElement(t) && t.type === R.Fragment) yield* this.iterateCollection({
+ if (L.isValidElement(t) && t.type === L.Fragment) yield* this.iterateCollection({
children: t.props.children,
items: n
});
@@ -18672,7 +18672,7 @@ var Ep = class e {
}, { renderer: t }), e++;
} else {
let e = [];
- R.Children.forEach(t, (t) => {
+ L.Children.forEach(t, (t) => {
t && e.push(t);
});
let n = 0;
@@ -18700,9 +18700,9 @@ var Ep = class e {
return { renderer: t.renderer || e.renderer };
}
*getFullNode(e, t, n, r) {
- if (R.isValidElement(e.element) && e.element.type === R.Fragment) {
+ if (L.isValidElement(e.element) && e.element.type === L.Fragment) {
let i = [];
- R.Children.forEach(e.element.props.children, (e) => {
+ L.Children.forEach(e.element.props.children, (e) => {
i.push(e);
});
let a = e.index ?? 0;
@@ -18721,7 +18721,7 @@ var Ep = class e {
}
i = t.renderer(e.value);
}
- if (R.isValidElement(i)) {
+ if (L.isValidElement(i)) {
let a = i.type;
if (typeof a != "function" && typeof a.getCollectionNode != "function") {
let e = i.type;
@@ -18737,10 +18737,10 @@ var Ep = class e {
...a,
key: l,
index: s,
- wrapper: kp(e.wrapper, a.wrapper)
+ wrapper: Ap(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 <${Ap(t.type)}> in <${Ap(r?.type ?? "unknown parent type")}>. Only <${Ap(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 <${jp(t.type)}> in <${jp(r?.type ?? "unknown parent type")}>. Only <${jp(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -18762,7 +18762,7 @@ var Ep = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: Op(function* () {
+ childNodes: kp(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -18781,7 +18781,7 @@ var Ep = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function Op(e) {
+function kp(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -18789,19 +18789,19 @@ function Op(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function kp(e, t) {
+function Ap(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function Ap(e) {
+function jp(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function jp(e, t, n) {
- let r = (0, R.useMemo)(() => new Dp(), []), { children: i, items: a, collection: o } = e;
- return (0, R.useMemo)(() => o || t(r.build({
+function Mp(e, t, n) {
+ let r = (0, L.useMemo)(() => new Op(), []), { children: i, items: a, collection: o } = e;
+ return (0, L.useMemo)(() => o || t(r.build({
children: i,
items: a
}, n)), [
@@ -18815,29 +18815,29 @@ function jp(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function Mp(e) {
- let { filter: t, layoutDelegate: n } = e, r = wp(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = jp(e, (0, R.useCallback)((e) => t ? new xp(t(e)) : new xp(e), [t]), (0, R.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, R.useMemo)(() => new Ep(a, r, { layoutDelegate: n }), [
+function Np(e) {
+ let { filter: t, layoutDelegate: n } = e, r = Tp(e), i = (0, L.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = Mp(e, (0, L.useCallback)((e) => t ? new Sp(t(e)) : new Sp(e), [t]), (0, L.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, L.useMemo)(() => new Dp(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return Pp(a, o), {
+ return Fp(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function Np(e, t) {
- let n = (0, R.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return Pp(n, r), {
+function Pp(e, t) {
+ let n = (0, L.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
+ return Fp(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function Pp(e, t) {
- let n = (0, R.useRef)(null);
- (0, R.useEffect)(() => {
+function Fp(e, t) {
+ let n = (0, L.useRef)(null);
+ (0, L.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
let r = n.current.getKeyAfter(t.focusedKey), i = null;
for (; r != null;) {
@@ -18863,15 +18863,15 @@ function Pp(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function Fp(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, R.useRef)(null), s = Ds((e) => {
+function Ip(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, L.useRef)(null), s = Os((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- sa(() => {
+ ca(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: xu(t?.current),
+ root: Su(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -18887,42 +18887,42 @@ function Fp(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var Ip = /*#__PURE__*/ (0, R.createContext)(null), Lp = /*#__PURE__*/ (0, R.createContext)(null), Rp = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = La(e, t, Ip);
- let n = (0, R.useContext)(Lp);
- return n ? /*#__PURE__*/ R.createElement(Bp, {
+var Lp = /*#__PURE__*/ (0, L.createContext)(null), Rp = /*#__PURE__*/ (0, L.createContext)(null), zp = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ [e, t] = Ra(e, t, Lp);
+ let n = (0, L.useContext)(Rp);
+ return n ? /*#__PURE__*/ L.createElement(Vp, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ R.createElement(Zc, { content: /*#__PURE__*/ R.createElement(ll, e) }, (n) => /*#__PURE__*/ R.createElement(zp, {
+ }) : /*#__PURE__*/ L.createElement(Qc, { content: /*#__PURE__*/ L.createElement(ul, e) }, (n) => /*#__PURE__*/ L.createElement(Bp, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function zp({ props: e, listBoxRef: t, collection: n }) {
+function Bp({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, R.useContext)(hl), i = Mp({
+ let { layoutDelegate: r } = (0, L.useContext)(gl), i = Np({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ R.createElement(Bp, {
+ return /*#__PURE__*/ L.createElement(Vp, {
state: i,
props: e,
listBoxRef: t
});
}
-function Bp({ state: e, props: t, listBoxRef: n }) {
- [t, n] = La(t, n, rc);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Np(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Bs(), { disabledBehavior: p, disabledKeys: m } = l, h = np({
+function Vp({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = Ra(t, n, ic);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Pp(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Vs(), { disabledBehavior: p, disabledKeys: m } = l, h = rp({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, R.useContext)(hl), b = (0, R.useMemo)(() => t.keyboardDelegate || new ep({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, L.useContext)(gl), b = (0, L.useMemo)(() => t.keyboardDelegate || new tp({
collection: c,
collator: h,
ref: n,
@@ -18943,14 +18943,14 @@ function Bp({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = ip({
+ ]), { listBoxProps: x } = ap({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
isVirtualized: g
}, s, n);
- (0, R.useRef)(u), (0, R.useRef)(d), (0, R.useEffect)(() => {}, [u, d]);
- let S, C, w, T = !1, E = null, D = (0, R.useRef)(null);
+ (0, L.useRef)(u), (0, L.useRef)(d), (0, L.useEffect)(() => {}, [u, d]);
+ let S, C, w, T = !1, E = null, D = (0, L.useRef)(null);
if (u && r) {
S = r.useDraggableCollectionState({
collection: c,
@@ -18958,7 +18958,7 @@ function Bp({ state: e, props: t, listBoxRef: n }) {
preview: r.renderDragPreview ? D : void 0
}), r.useDraggableCollection({}, S, n);
let e = r.DragPreview;
- E = r.renderDragPreview ? /*#__PURE__*/ R.createElement(e, { ref: D }, r.renderDragPreview) : null;
+ E = r.renderDragPreview ? /*#__PURE__*/ L.createElement(e, { ref: D }, r.renderDragPreview) : null;
}
if (d && r) {
C = r.useDroppableCollectionState({
@@ -18975,7 +18975,7 @@ function Bp({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = Jl(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = Yl(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -18983,19 +18983,19 @@ function Bp({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, N = Fa({
+ }, N = Ia({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
values: M
}), P = null;
- j && t.renderEmptyState && (P = /*#__PURE__*/ R.createElement("div", {
+ j && t.renderEmptyState && (P = /*#__PURE__*/ L.createElement("div", {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let ee = Cl(t, { global: !0 });
- return /*#__PURE__*/ R.createElement(yf, null, /*#__PURE__*/ R.createElement(Ha.div, {
- ...J(ee, N, x, O, w?.collectionProps),
+ let ee = wl(t, { global: !0 });
+ return /*#__PURE__*/ L.createElement(bf, null, /*#__PURE__*/ L.createElement(Ua.div, {
+ ...q(ee, N, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
onScroll: t.onScroll,
@@ -19005,60 +19005,60 @@ function Bp({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ R.createElement(Pa, { values: [
- [Ip, t],
- [Lp, s],
- [Qd, {
+ }, /*#__PURE__*/ L.createElement(Fa, { values: [
+ [Lp, t],
+ [Rp, s],
+ [$d, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [lf, { elementType: "div" }],
- [$d, { render: Up }],
- [dl, {
+ [uf, { elementType: "div" }],
+ [ef, { render: Wp }],
+ [fl, {
name: "ListBoxSection",
- render: Vp
+ render: Hp
}]
- ] }, /*#__PURE__*/ R.createElement(of, null, /*#__PURE__*/ R.createElement(y, {
+ ] }, /*#__PURE__*/ L.createElement(sf, null, /*#__PURE__*/ L.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: nf(l, r, C),
- renderDropIndicator: tf(r, C)
+ persistedKeys: rf(l, r, C),
+ renderDropIndicator: nf(r, C)
}))), P, E));
}
-function Vp(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, R.useContext)(Lp), { dragAndDropHooks: a, dropState: o } = (0, R.useContext)(Qd), { CollectionBranch: s } = (0, R.useContext)(hl), [c, l] = Ra(), { headingProps: u, groupProps: d } = yp({
+function Hp(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, L.useContext)(Rp), { dragAndDropHooks: a, dropState: o } = (0, L.useContext)($d), { CollectionBranch: s } = (0, L.useContext)(gl), [c, l] = za(), { headingProps: u, groupProps: d } = bp({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = Fa({
+ }), f = Ia({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = Cl(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ R.createElement(Ha.section, {
- ...J(p, f, d),
+ }), p = wl(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ L.createElement(Ua.section, {
+ ...q(p, f, d),
ref: t
- }, /*#__PURE__*/ R.createElement(rf.Provider, { value: {
+ }, /*#__PURE__*/ L.createElement(af.Provider, { value: {
...u,
ref: c
- } }, /*#__PURE__*/ R.createElement(s, {
+ } }, /*#__PURE__*/ L.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: tf(a, o)
+ renderDropIndicator: nf(a, o)
})));
}
-var Hp = /*#__PURE__*/ al(cc, function(e, t, n) {
- let r = Ma(t), i = (0, R.useContext)(Lp), { 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 } = vp({
+var Up = /*#__PURE__*/ ol(lc, function(e, t, n) {
+ let r = Na(t), i = (0, L.useContext)(Rp), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, L.useContext)($d), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = yp({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = eu({
+ }, i, r), { hoverProps: p, isHovered: m } = tu({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = Lc(e), { focusProps: g } = Cc(e), _ = null;
+ }), { keyboardProps: h } = Rc(e), { focusProps: g } = wc(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -19069,7 +19069,7 @@ var Hp = /*#__PURE__*/ al(cc, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = Fa({
+ let y = o && o.isDragging(n.key), b = Ia({
...e,
id: void 0,
children: e.children,
@@ -19084,12 +19084,12 @@ var Hp = /*#__PURE__*/ al(cc, function(e, t, n) {
isDropTarget: v?.isDropTarget
}
});
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? Ha.a : Ha.div, S = Cl(e, { global: !0 });
- return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ R.createElement(x, {
- ...J(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
+ let x = e.href ? Ua.a : Ua.div, S = wl(e, { global: !0 });
+ return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ L.createElement(x, {
+ ...q(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
"data-allows-dragging": !!o || void 0,
"data-selected": f.isSelected || void 0,
@@ -19101,29 +19101,29 @@ var Hp = /*#__PURE__*/ al(cc, 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(Pa, { values: [[_u, { slots: {
- [Na]: u,
+ }, /*#__PURE__*/ L.createElement(Fa, { values: [[vu, { slots: {
+ [Pa]: u,
label: u,
description: d
- } }], [sf, { isSelected: f.isSelected }]] }, b.children));
+ } }], [cf, { isSelected: f.isSelected }]] }, b.children));
});
-function Up(e, t) {
- t = Ma(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(Gp, {
+function Wp(e, t) {
+ t = Na(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, L.useContext)($d), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ L.createElement(Kp, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Wp(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Fa({
+function Gp(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Ia({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Ha.div, {
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(Ua.div, {
...n,
...a,
role: "option",
@@ -19131,10 +19131,10 @@ function Wp(e, t) {
"data-drop-target": r || void 0
}));
}
-var Gp = /*#__PURE__*/ (0, R.forwardRef)(Wp);
-al(sc, function(e, t, n) {
- let r = (0, R.useContext)(Lp), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
- Fp((0, R.useMemo)(() => ({
+var Kp = /*#__PURE__*/ (0, L.forwardRef)(Gp);
+ol(cc, function(e, t, n) {
+ let r = (0, L.useContext)(Rp), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, L.useRef)(null);
+ Ip((0, L.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -19144,21 +19144,21 @@ al(sc, function(e, t, n) {
o,
r?.collection
]), c);
- let l = Fa({
+ let l = Ia({
...s,
id: void 0,
children: n.rendered,
defaultClassName: "react-aria-ListBoxLoadingIndicator",
values: void 0
});
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement("div", {
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement("div", {
style: {
position: "relative",
width: 0,
height: 0
},
- inert: bp(!0)
- }, /*#__PURE__*/ R.createElement("div", {
+ inert: xp(!0)
+ }, /*#__PURE__*/ L.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
style: {
@@ -19166,8 +19166,8 @@ al(sc, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Ha.div, {
- ...J(Cl(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(Ua.div, {
+ ...q(wl(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -19175,42 +19175,42 @@ al(sc, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Kp = /*#__PURE__*/ (0, R.createContext)({ placement: "bottom" }), qp = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function Jp(e) {
+var qp = /*#__PURE__*/ (0, L.createContext)({ placement: "bottom" }), Jp = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function Yp(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var Yp = /* @__PURE__ */ new WeakMap(), Xp = [];
-function Zp(e, t) {
- let n = Ka(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && qp, 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 Xp = /* @__PURE__ */ new WeakMap(), Zp = [];
+function Qp(e, t) {
+ let n = qa(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Jp, 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 (eo()) {
+ if (to()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; Xa(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; Za(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (to(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (no(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = hf(Ga(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = gf(Ka(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
let e = n.nextNode();
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = Yp.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Yp.set(e, t + 1));
+ let t = Xp.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Xp.set(e, t + 1));
};
- Xp.length && Xp[Xp.length - 1].disconnect(), d(i);
+ Zp.length && Zp[Zp.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) => to(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Jp(e) ? o.add(e) : e instanceof Element && d(e);
- if (eo()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => no(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Yp(e) ? o.add(e) : e instanceof Element && d(e);
+ if (to()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -19223,11 +19223,11 @@ function Zp(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (eo()) for (let e of u) {
+ if (to()) 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) => to(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Jp(e) ? o.add(e) : e instanceof Element && d(e);
- if (eo()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => no(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Yp(e) ? o.add(e) : e instanceof Element && d(e);
+ if (to()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -19253,50 +19253,50 @@ function Zp(e, t) {
p.disconnect();
}
};
- return Xp.push(h), () => {
- if (p.disconnect(), eo()) for (let e of m) e.disconnect();
+ return Zp.push(h), () => {
+ if (p.disconnect(), to()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = Yp.get(e);
- t != null && (t === 1 ? (l(e, !1), Yp.delete(e)) : Yp.set(e, t - 1));
+ let t = Xp.get(e);
+ t != null && (t === 1 ? (l(e, !1), Xp.delete(e)) : Xp.set(e, t - 1));
}
- h === Xp[Xp.length - 1] ? (Xp.pop(), Xp.length && Xp[Xp.length - 1].observe()) : Xp.splice(Xp.indexOf(h), 1);
+ h === Zp[Zp.length - 1] ? (Zp.pop(), Zp.length && Zp[Zp.length - 1].observe()) : Zp.splice(Zp.indexOf(h), 1);
};
}
-function Qp(e) {
- let t = Xp[Xp.length - 1];
+function $p(e) {
+ let t = Zp[Zp.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/overlays/calculatePosition.mjs
-var $p = {
+var em = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, em = {
+}, tm = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, tm = {
+}, nm = {
top: "left",
left: "top"
-}, nm = {
+}, rm = {
top: "height",
left: "width"
-}, rm = {
+}, im = {
width: "totalWidth",
height: "totalHeight"
-}, im = {}, am = () => typeof document < "u" ? window.visualViewport : null;
-function om(e, t) {
+}, am = {}, om = () => typeof document < "u" ? window.visualViewport : null;
+function sm(e, t) {
let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = {}, l = (t?.scale ?? 1) > 1;
if (e.tagName === "BODY" || e.tagName === "HTML") {
let l = document.documentElement;
i = l.clientWidth, a = l.clientHeight, n = t?.width ?? i, r = t?.height ?? a, c.top = l.scrollTop || e.scrollTop, c.left = l.scrollLeft || e.scrollLeft, t && (o = Math.max(0, t.pageTop - (c.top ?? 0)), s = Math.max(0, t.pageLeft - (c.left ?? 0)));
- } else ({width: n, height: r, top: o, left: s} = _m(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return Ro() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ } else ({width: n, height: r, top: o, left: s} = vm(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return zo() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
totalWidth: i,
@@ -19306,7 +19306,7 @@ function om(e, t) {
left: s
};
}
-function sm(e) {
+function cm(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -19314,11 +19314,11 @@ function sm(e) {
height: e.scrollHeight
};
}
-function cm(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[nm[e]], l = o[e] + r.scroll[$p[e]] + a, u = o[e] + r.scroll[$p[e]] + c - a, d = t - s + r.scroll[$p[e]] + o[e] - r[$p[e]], f = t - s + n + r.scroll[$p[e]] + o[e] - r[$p[e]];
+function lm(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[rm[e]], l = o[e] + r.scroll[em[e]] + a, u = o[e] + r.scroll[em[e]] + c - a, d = t - s + r.scroll[em[e]] + o[e] - r[em[e]], f = t - s + n + r.scroll[em[e]] + o[e] - r[em[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function lm(e) {
+function um(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -19327,56 +19327,56 @@ function lm(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function um(e) {
- if (im[e]) return im[e];
- let [t, n] = e.split(" "), r = $p[t] || "right", i = tm[r];
- $p[n] || (n = "center");
- let a = nm[r], o = nm[i];
- return im[e] = {
+function dm(e) {
+ if (am[e]) return am[e];
+ let [t, n] = e.split(" "), r = em[t] || "right", i = nm[r];
+ em[n] || (n = "center");
+ let a = rm[r], o = rm[i];
+ return am[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, im[e];
+ }, am[e];
}
-function dm(e, t, n, r, i, a, o, s, c, l, u) {
+function fm(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] = iu(_[m], v, y), d === p) {
- let t = s ? u[h] : u[rm[h]];
- _[em[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = au(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[im[h]];
+ _[tm[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function fm(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[rm.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function pm(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[im.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
top: Math.max(t.top + f, (u?.offsetTop ?? t.top) + f),
bottom: Math.min(t.top + t.height + f, (u?.offsetTop ?? 0) + (u?.height ?? 0))
};
return s === "top" ? Math.max(0, d + o - p.top - ((i.top ?? 0) + (i.bottom ?? 0) + a)) : Math.max(0, p.bottom - d - ((i.top ?? 0) + (i.bottom ?? 0) + a));
}
-function pm(e, t, n, r, i, a, o, s) {
+function mm(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[em[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[em[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[tm[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[tm[l]] - i);
}
-function mm(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = um(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = dm(t, s, n, v, u, d, l, f, m, h, c), T = u, E = pm(s, l, t, i, a + u, v, c, g);
+function hm(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = dm(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = fm(t, s, n, v, u, d, l, f, m, h, c), T = u, E = mm(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = um(`${em[S]} ${C}`), r = dm(t, s, n, e, u, d, l, f, m, h, c);
- pm(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = dm(`${tm[S]} ${C}`), r = fm(t, s, n, e, u, d, l, f, m, h, c);
+ mm(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 = cm(b, w[b], n[x], s, c, a, l);
+ let O = lm(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = fm(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = dm(t, s, n, v, T, d, l, f, m, h, c), O = cm(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[$p[b]], M = j + .5 * t[x], N = m / 2 + h, P = $p[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ee = n[x] - P - m / 2 - h;
- A[b] = iu(iu(M, t[b] + m / 2 - (w[b] + i[$p[b]]), t[b] + t[x] - m / 2 - (w[b] + i[$p[b]])), N, ee), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
- let F = S === "left" || S === "top" ? n[y] : 0, I = {
+ let k = pm(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = fm(t, s, n, v, T, d, l, f, m, h, c), O = lm(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[em[b]], M = j + .5 * t[x], N = m / 2 + h, P = em[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ee = n[x] - P - m / 2 - h;
+ A[b] = au(au(M, t[b] + m / 2 - (w[b] + i[em[b]]), t[b] + t[x] - m / 2 - (w[b] + i[em[b]])), N, ee), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let F = S === "left" || S === "top" ? n[y] : 0, te = {
x: S === "top" || S === "bottom" ? j : F,
y: S === "left" || S === "right" ? j : F
};
@@ -19386,20 +19386,20 @@ function mm(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
arrowOffsetLeft: A.left,
arrowOffsetTop: A.top,
placement: S,
- triggerAnchorPoint: I
+ triggerAnchorPoint: te
};
}
-function hm(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 = am(), h = r instanceof HTMLElement ? ym(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? _m(n, !1, p) : vm(n, h, !1, p);
+function gm(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 = om(), h = r instanceof HTMLElement ? bm(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? vm(n, !1, p) : ym(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 = _m(r, !0), x = lm(r);
+ let b = vm(r, !0), x = um(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = sm(i), C = om(s, m), w = om(h, m), T;
+ let S = cm(i), C = sm(s, m), w = sm(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = gm(h, !1);
+ let e = _m(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -19411,11 +19411,11 @@ function hm(e) {
left: 0,
width: 0,
height: 0
- } : vm(s, h, !1);
- let E = to(s, h);
- return mm(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : ym(s, h, !1);
+ let E = no(s, h);
+ return hm(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function gm(e, t) {
+function _m(e, t) {
let { top: n, left: r, width: i, height: a } = e.getBoundingClientRect();
return t && e instanceof e.ownerDocument.defaultView.HTMLElement && (i = e.offsetWidth, a = e.offsetHeight), {
top: n,
@@ -19424,8 +19424,8 @@ function gm(e, t) {
height: a
};
}
-function _m(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || gm(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function vm(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || _m(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -19433,34 +19433,34 @@ function _m(e, t, n) {
height: o
};
}
-function vm(e, t, n, r) {
+function ym(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || gm(e, n);
+ if (i.position === "fixed") a = r || _m(e, n);
else {
- a = _m(e, n, r);
- let i = _m(t, n), o = window.getComputedStyle(t);
+ a = vm(e, n, r);
+ let i = vm(t, n), o = window.getComputedStyle(t);
i.top += (parseInt(o.borderTopWidth, 10) || 0) - t.scrollTop, i.left += (parseInt(o.borderLeftWidth, 10) || 0) - t.scrollLeft, a.top -= i.top, a.left -= i.left;
}
return a.top -= parseInt(i.marginTop, 10) || 0, a.left -= parseInt(i.marginLeft, 10) || 0, a;
}
-function ym(e) {
+function bm(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !bm(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !bm(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !xm(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !xm(t);) t = t.parentElement;
return t || document.documentElement;
}
-function bm(e) {
+function xm(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var xm = /* @__PURE__ */ new WeakMap();
-function Sm(e) {
+var Sm = /* @__PURE__ */ new WeakMap();
+function Cm(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, R.useEffect)(() => !n || r === null ? void 0 : Za(ro(t.current), "scroll", (e) => {
- let n = Y(e);
- if (!t.current || n instanceof Node && !to(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || xm.get(t.current);
+ (0, L.useEffect)(() => !n || r === null ? void 0 : Qa(io(t.current), "scroll", (e) => {
+ let n = J(e);
+ if (!t.current || n instanceof Node && !no(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || Sm.get(t.current);
i && i();
}, !0), [
n,
@@ -19470,15 +19470,15 @@ function Sm(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Cm() {
+function wm() {
return window.ResizeObserver !== void 0;
}
-function wm(e) {
- let { ref: t, box: n, onResize: r } = e, i = Ds(r);
- (0, R.useEffect)(() => {
+function Tm(e) {
+ let { ref: t, box: n, onResize: r } = e, i = Os(r);
+ (0, L.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Cm()) {
+ if (wm()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -19494,9 +19494,9 @@ function wm(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var Tm = typeof document < "u" ? window.visualViewport : null;
-function Em(e) {
- let { direction: t } = Bs(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, R.useState)(null), x = [
+var Em = typeof document < "u" ? window.visualViewport : null;
+function Dm(e) {
+ let { direction: t } = Vs(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, L.useState)(null), x = [
p,
s,
i.current,
@@ -19513,15 +19513,15 @@ function Em(e) {
g,
_,
n
- ], S = (0, R.useRef)(Tm?.scale);
- (0, R.useEffect)(() => {
- m && (S.current = Tm?.scale);
+ ], S = (0, L.useRef)(Em?.scale);
+ (0, L.useEffect)(() => {
+ m && (S.current = Em?.scale);
}, [m]);
- let C = (0, R.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Tm?.scale !== S.current) return;
+ let C = (0, L.useCallback)(() => {
+ if (p === !1 || !m || !i.current || !r.current || !u || Em?.scale !== S.current) return;
let e = null;
- if (o.current && io(o.current)) {
- let t = no()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && ao(o.current)) {
+ let t = ro()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -19529,8 +19529,8 @@ function Em(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let y = hm({
- placement: Om(s, t),
+ let y = gm({
+ placement: km(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -19540,28 +19540,28 @@ function Em(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? gm(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? _m(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = no();
+ let x = ro();
if (e && x && o.current) {
let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
b(y);
}, x);
- sa(C, x), Dm(C), wm({
+ ca(C, x), Om(C), Tm({
ref: i,
onResize: C
- }), wm({
+ }), Tm({
ref: r,
onResize: C
});
- let w = (0, R.useRef)(!1);
- sa(() => {
+ let w = (0, L.useRef)(!1);
+ ca(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -19569,16 +19569,16 @@ function Em(e) {
}, n = () => {
w.current && t();
};
- Tm?.addEventListener("resize", t), Tm?.addEventListener("scroll", n);
- let r = Za(ro(window), "scroll", n);
+ Em?.addEventListener("resize", t), Em?.addEventListener("scroll", n);
+ let r = Qa(io(window), "scroll", n);
return () => {
- Tm?.removeEventListener("resize", t), Tm?.removeEventListener("scroll", n), r();
+ Em?.removeEventListener("resize", t), Em?.removeEventListener("scroll", n), r();
};
}, [C]);
- let T = (0, R.useCallback)(() => {
+ let T = (0, L.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return Sm({
+ return Cm({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -19604,32 +19604,32 @@ function Em(e) {
updatePosition: C
};
}
-function Dm(e) {
- sa(() => (window.addEventListener("resize", e, !1), () => {
+function Om(e) {
+ ca(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function Om(e, t) {
+function km(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function km(e) {
- let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, R.useRef)({
+function Am(e) {
+ let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, L.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = Ds((e) => {
- n && Am(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = Ds((e) => {
+ }), o = Os((e) => {
+ n && jm(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = Os((e) => {
n && n(e);
});
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = Ga(n);
+ let n = t.current, i = Ka(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && Am(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && jm(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);
@@ -19637,49 +19637,49 @@ function km(e) {
}
}, [t, r]);
}
-function Am(e, t) {
+function jm(e, t) {
if (e.button > 0) return !1;
- let n = Y(e);
+ let n = J(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !to(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !no(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var jm = [];
-function Mm(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 && !jm.includes(t)) return jm.push(t), () => {
- let e = jm.indexOf(t);
- e >= 0 && jm.splice(e, 1);
+var Mm = [];
+function Nm(e, t) {
+ let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, L.useRef)(void 0);
+ (0, L.useEffect)(() => {
+ if (i && !Mm.includes(t)) return Mm.push(t), () => {
+ let e = Mm.indexOf(t);
+ e >= 0 && Mm.splice(e, 1);
};
}, [i, t]);
let l = () => {
- jm[jm.length - 1] === t && n && n();
+ Mm[Mm.length - 1] === t && n && n();
}, u = (e) => {
- let n = jm[jm.length - 1];
- c.current = n, (!s || s(Y(e))) && n === t && e.stopPropagation();
+ let n = Mm[Mm.length - 1];
+ c.current = n, (!s || s(J(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(Y(e))) && (jm[jm.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = Lc({ shortcuts: { Escape: () => {
+ (!s || s(J(e))) && (Mm[Mm.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = Rc({ shortcuts: { Escape: () => {
if (!o) {
l();
return;
}
return !1;
} } });
- km({
+ Am({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = ql({
+ let { focusWithinProps: p } = Jl({
isDisabled: !r,
onBlurWithin: (e) => {
- !e.relatedTarget || kf(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
+ !e.relatedTarget || Af(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -19692,26 +19692,26 @@ function Mm(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Nm = typeof document < "u" && window.visualViewport, Pm = 0, Fm;
-function Im(e = {}) {
+var Pm = typeof document < "u" && window.visualViewport, Fm = 0, Im;
+function Lm(e = {}) {
let { isDisabled: t } = e;
- sa(() => {
- if (!t) return Pm++, Pm === 1 && (Fm = Io() && Ro() ? Rm() : Lm()), () => {
- Pm--, Pm === 0 && Fm();
+ ca(() => {
+ if (!t) return Fm++, Fm === 1 && (Im = Lo() && zo() ? zm() : Rm()), () => {
+ Fm--, Fm === 0 && Im();
};
}, [t]);
}
-function Lm() {
+function Rm() {
let e = window.innerWidth - document.documentElement.clientWidth;
- return oa(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Qa(document.documentElement, "scrollbar-gutter", "stable") : Qa(document.documentElement, "padding-right", `${e}px`)), Qa(document.documentElement, "overflow", "hidden"));
+ return sa(e > 0 && ("scrollbarGutter" in document.documentElement.style ? $a(document.documentElement, "scrollbar-gutter", "stable") : $a(document.documentElement, "padding-right", `${e}px`)), $a(document.documentElement, "overflow", "hidden"));
}
-function Rm() {
- let e = Qa(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
- let r = Y(e);
- t = bu(r) ? r : xu(r, !0), n = !1;
+function zm() {
+ let e = $a(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+ let r = J(e);
+ t = xu(r) ? r : Su(r, !0), n = !1;
let i = r.ownerDocument.defaultView.getSelection();
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
- }, i = document.createElement("style"), a = jl();
+ }, i = document.createElement("style"), a = Ml();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
if (!(e.touches.length === 2 || n)) {
@@ -19722,27 +19722,27 @@ function Rm() {
t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth && e.preventDefault();
}
}, s = (e) => {
- let t = Y(e), n = e.relatedTarget;
- n && Ts(n) ? (n.focus({ preventScroll: !0 }), zm(n, Ts(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ let t = J(e), n = e.relatedTarget;
+ n && Es(n) ? (n.focus({ preventScroll: !0 }), Bm(n, Es(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function(e) {
- let t = no(), n = t != null && Ts(t);
+ let t = ro(), n = t != null && Es(t);
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && zm(this, n);
+ }), (!e || !e.preventScroll) && Bm(this, n);
}
});
- let l = oa(Za(document, "touchstart", r, {
+ let l = sa(Qa(document, "touchstart", r, {
passive: !1,
capture: !0
- }), Za(document, "touchmove", o, {
+ }), Qa(document, "touchmove", o, {
passive: !1,
capture: !0
- }), Za(document, "blur", s, !0));
+ }), Qa(document, "blur", s, !0));
return () => {
e(), l(), i.remove(), Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -19751,18 +19751,18 @@ function Rm() {
});
};
}
-function zm(e, t) {
- t || !Nm ? Bm(e) : Nm.addEventListener("resize", () => Bm(e), { once: !0 });
+function Bm(e, t) {
+ t || !Pm ? Vm(e) : Pm.addEventListener("resize", () => Vm(e), { once: !0 });
}
-function Bm(e) {
+function Vm(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = xu(n);
+ let e = Su(n);
if (e !== document.documentElement && e !== document.body && e !== n) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- Nm && (n = Math.min(n, Nm.offsetTop + Nm.height));
+ Pm && (n = Math.min(n, Pm.offsetTop + Pm.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)),
@@ -19775,15 +19775,15 @@ function Bm(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function Vm(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 } = Mm({
+function Hm(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 } = Nm({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
isDismissable: !a || l,
isKeyboardDismissDisabled: o,
shouldCloseOnInteractOutside: s
- }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Em({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Dm({
...c,
targetRef: n,
overlayRef: r,
@@ -19791,17 +19791,17 @@ function Vm(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)
});
- Im({ isDisabled: a || !t.isOpen }), (0, R.useEffect)(() => {
- if (t.isOpen && r.current) return a ? Qp(i?.current ?? r.current) : Zp([i?.current ?? r.current], { shouldUseInert: !0 });
+ Lm({ isDisabled: a || !t.isOpen }), (0, L.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? $p(i?.current ?? r.current) : Qp([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = ql(e);
+ let { focusWithinProps: g } = Jl(e);
return {
- popoverProps: J(u, f, g),
+ popoverProps: q(u, f, g),
arrowProps: p,
underlayProps: d,
placement: m,
@@ -19810,189 +19810,189 @@ function Vm(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var Hm = {};
-Hm = { dismiss: "تجاهل" };
+var Um = {};
+Um = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var Um = {};
-Um = { dismiss: "Отхвърляне" };
+var Wm = {};
+Wm = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var Wm = {};
-Wm = { dismiss: "Odstranit" };
+var Gm = {};
+Gm = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var Gm = {};
-Gm = { dismiss: "Luk" };
+var Km = {};
+Km = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var Km = {};
-Km = { dismiss: "Schließen" };
+var qm = {};
+qm = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var qm = {};
-qm = { dismiss: "Απόρριψη" };
+var Jm = {};
+Jm = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var Jm = {};
-Jm = { dismiss: "Dismiss" };
+var Ym = {};
+Ym = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var Ym = {};
-Ym = { dismiss: "Descartar" };
+var Xm = {};
+Xm = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var Xm = {};
-Xm = { dismiss: "Lõpeta" };
+var Zm = {};
+Zm = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var Zm = {};
-Zm = { dismiss: "Hylkää" };
+var Qm = {};
+Qm = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var Qm = {};
-Qm = { dismiss: "Rejeter" };
+var $m = {};
+$m = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var $m = {};
-$m = { dismiss: "התעלם" };
+var eh = {};
+eh = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var eh = {};
-eh = { dismiss: "Odbaci" };
+var th = {};
+th = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var th = {};
-th = { dismiss: "Elutasítás" };
+var nh = {};
+nh = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var nh = {};
-nh = { dismiss: "Ignora" };
+var rh = {};
+rh = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var rh = {};
-rh = { dismiss: "閉じる" };
+var ih = {};
+ih = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var ih = {};
-ih = { dismiss: "무시" };
+var ah = {};
+ah = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var ah = {};
-ah = { dismiss: "Atmesti" };
+var oh = {};
+oh = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var oh = {};
-oh = { dismiss: "Nerādīt" };
+var sh = {};
+sh = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var sh = {};
-sh = { dismiss: "Lukk" };
+var ch = {};
+ch = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var ch = {};
-ch = { dismiss: "Negeren" };
+var lh = {};
+lh = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var lh = {};
-lh = { dismiss: "Zignoruj" };
+var uh = {};
+uh = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var uh = {};
-uh = { dismiss: "Descartar" };
+var dh = {};
+dh = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var dh = {};
-dh = { dismiss: "Dispensar" };
+var fh = {};
+fh = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var fh = {};
-fh = { dismiss: "Revocare" };
+var ph = {};
+ph = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var ph = {};
-ph = { dismiss: "Пропустить" };
+var mh = {};
+mh = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var mh = {};
-mh = { dismiss: "Zrušiť" };
+var hh = {};
+hh = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var hh = {};
-hh = { dismiss: "Opusti" };
+var gh = {};
+gh = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var gh = {};
-gh = { dismiss: "Odbaci" };
+var _h = {};
+_h = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var _h = {};
-_h = { dismiss: "Avvisa" };
+var vh = {};
+vh = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var vh = {};
-vh = { dismiss: "Kapat" };
+var yh = {};
+yh = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var yh = {};
-yh = { dismiss: "Скасувати" };
+var bh = {};
+bh = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var bh = {};
-bh = { dismiss: "取消" };
+var xh = {};
+xh = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var xh = {};
-xh = { dismiss: "關閉" };
+var Sh = {};
+Sh = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var Sh = {};
-Sh = {
- "ar-AE": Hm,
- "bg-BG": Um,
- "cs-CZ": Wm,
- "da-DK": Gm,
- "de-DE": Km,
- "el-GR": qm,
- "en-US": Jm,
- "es-ES": Ym,
- "et-EE": Xm,
- "fi-FI": Zm,
- "fr-FR": Qm,
- "he-IL": $m,
- "hr-HR": eh,
- "hu-HU": th,
- "it-IT": nh,
- "ja-JP": rh,
- "ko-KR": ih,
- "lt-LT": ah,
- "lv-LV": oh,
- "nb-NO": sh,
- "nl-NL": ch,
- "pl-PL": lh,
- "pt-BR": uh,
- "pt-PT": dh,
- "ro-RO": fh,
- "ru-RU": ph,
- "sk-SK": mh,
- "sl-SI": hh,
- "sr-SP": gh,
- "sv-SE": _h,
- "tr-TR": vh,
- "uk-UA": yh,
- "zh-CN": bh,
- "zh-TW": xh
+var Ch = {};
+Ch = {
+ "ar-AE": Um,
+ "bg-BG": Wm,
+ "cs-CZ": Gm,
+ "da-DK": Km,
+ "de-DE": qm,
+ "el-GR": Jm,
+ "en-US": Ym,
+ "es-ES": Xm,
+ "et-EE": Zm,
+ "fi-FI": Qm,
+ "fr-FR": $m,
+ "he-IL": eh,
+ "hr-HR": th,
+ "hu-HU": nh,
+ "it-IT": rh,
+ "ja-JP": ih,
+ "ko-KR": ah,
+ "lt-LT": oh,
+ "lv-LV": sh,
+ "nb-NO": ch,
+ "nl-NL": lh,
+ "pl-PL": uh,
+ "pt-BR": dh,
+ "pt-PT": fh,
+ "ro-RO": ph,
+ "ru-RU": mh,
+ "sk-SK": hh,
+ "sl-SI": gh,
+ "sr-SP": _h,
+ "sv-SE": vh,
+ "tr-TR": yh,
+ "uk-UA": bh,
+ "zh-CN": xh,
+ "zh-TW": Sh
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Ch(e) {
+function wh(e) {
return e && e.__esModule ? e.default : e;
}
-function wh(e) {
- let { onDismiss: t, ...n } = e, r = ks(n, ec(Ch(Sh), "@react-aria/overlays").format("dismiss")), i = () => {
+function Th(e) {
+ let { onDismiss: t, ...n } = e, r = As(n, tc(wh(Ch), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ R.createElement(ju, null, /*#__PURE__*/ R.createElement("button", {
+ return /*#__PURE__*/ L.createElement(Mu, null, /*#__PURE__*/ L.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -20004,66 +20004,66 @@ function wh(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Th = /*#__PURE__*/ R.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, R.useRef)(!1), i = (0, R.useContext)(Ml), a = J(i || {}, {
+var Eh = /*#__PURE__*/ L.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, L.useRef)(!1), i = (0, L.useContext)(Nl), a = q(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = Ma(n || i?.ref), Rc(i, a.ref), (0, R.useEffect)(() => {
+ return a.ref = Na(n || i?.ref), zc(i, a.ref), (0, L.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ R.createElement(Ml.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ L.createElement(Nl.Provider, { value: a }, e);
});
-function Eh({ children: e }) {
- let t = (0, R.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ R.createElement(Ml.Provider, { value: t }, e);
+function Dh({ children: e }) {
+ let t = (0, L.useMemo)(() => ({ register: () => {} }), []);
+ return /*#__PURE__*/ L.createElement(Nl.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var Dh = /*#__PURE__*/ (0, R.createContext)({});
-function Oh(e) {
- let { getContainer: t } = e, { getContainer: n } = kh();
- return /*#__PURE__*/ R.createElement(Dh.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var Oh = /*#__PURE__*/ (0, L.createContext)({});
+function kh(e) {
+ let { getContainer: t } = e, { getContainer: n } = Ah();
+ return /*#__PURE__*/ L.createElement(Oh.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function kh() {
- return (0, R.useContext)(Dh) ?? {};
+function Ah() {
+ return (0, L.useContext)(Oh) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var Ah = /*#__PURE__*/ R.createContext(null);
-function jh(e) {
- let t = ya(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, R.useState)(!1), o = (0, R.useMemo)(() => ({
+var jh = /*#__PURE__*/ L.createContext(null);
+function Mh(e) {
+ let t = ba(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, L.useState)(!1), o = (0, L.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = kh();
+ }), [i, a]), { getContainer: s } = Ah();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ R.createElement(yf, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ L.createElement(bf, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ R.createElement(Ah.Provider, { value: o }, /*#__PURE__*/ R.createElement(Eh, null, /*#__PURE__*/ R.createElement(zc.Provider, { value: null }, c))), /*#__PURE__*/ ze.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ L.createElement(jh.Provider, { value: o }, /*#__PURE__*/ L.createElement(Dh, null, /*#__PURE__*/ L.createElement(Bc.Provider, { value: null }, c))), /*#__PURE__*/ Be.createPortal(c, n);
}
-function Mh() {
- let e = (0, R.useContext)(Ah)?.setContain;
- sa(() => {
+function Nh() {
+ let e = (0, L.useContext)(jh)?.setContain;
+ ca(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function Nh(e) {
- let [t, n] = nc(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, R.useState)(null);
+function Ph(e) {
+ let [t, n] = rc(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, L.useState)(null);
return {
isOpen: t,
setOpen: n,
- open: (0, R.useCallback)(() => {
+ open: (0, L.useCallback)(() => {
n(!0);
}, [n]),
- close: (0, R.useCallback)(() => {
+ close: (0, L.useCallback)(() => {
n(!1);
}, [n]),
- toggle: (0, R.useCallback)(() => {
+ toggle: (0, L.useCallback)(() => {
n(!t);
}, [n, t]),
point: r,
@@ -20072,14 +20072,14 @@ function Nh(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function Ph(e, t = !0) {
- let [n, r] = (0, R.useState)(!0), i = n && t;
- return sa(() => {
+function Fh(e, t = !0) {
+ let [n, r] = (0, L.useState)(!0), i = n && t;
+ return ca(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), Ih(e, i, (0, R.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), Lh(e, i, (0, L.useCallback)(() => r(!1), [])), i;
}
-function Fh(e, t) {
- let [n, r] = (0, R.useState)(t ? "open" : "closed");
+function Ih(e, t) {
+ let [n, r] = (0, L.useState)(t ? "open" : "closed");
switch (n) {
case "open":
t || r("exiting");
@@ -20088,12 +20088,12 @@ function Fh(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return Ih(e, i, (0, R.useCallback)(() => {
+ return Lh(e, i, (0, L.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function Ih(e, t, n) {
- sa(() => {
+function Lh(e, t, n) {
+ ca(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
n();
@@ -20106,7 +20106,7 @@ function Ih(e, t, n) {
}
let r = !1;
return Promise.allSettled(t.map((e) => e.finished)).then(() => {
- r || (0, ze.flushSync)(() => {
+ r || (0, Be.flushSync)(() => {
n();
});
}), () => {
@@ -20121,9 +20121,9 @@ function Ih(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var Lh = /*#__PURE__*/ (0, R.createContext)(null), Rh = /*#__PURE__*/ (0, R.createContext)(null), zh = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = La(e, t, Lh);
- let n = (0, R.useContext)(Fg), r = Nh(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Fh(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Gc(), { direction: c } = Bs();
+var Rh = /*#__PURE__*/ (0, L.createContext)(null), zh = /*#__PURE__*/ (0, L.createContext)(null), Bh = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ [e, t] = Ra(e, t, Rh);
+ let n = (0, L.useContext)(Ig), r = Ph(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Ih(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Kc(), { direction: c } = Vs();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -20132,9 +20132,9 @@ var Lh = /*#__PURE__*/ (0, R.createContext)(null), Rh = /*#__PURE__*/ (0, R.crea
isEntering: !1,
isExiting: !1,
defaultChildren: null
- })), /*#__PURE__*/ R.createElement(R.Fragment, null, t);
+ })), /*#__PURE__*/ L.createElement(L.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ R.createElement(Bh, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ L.createElement(Vh, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -20143,13 +20143,13 @@ var Lh = /*#__PURE__*/ (0, R.createContext)(null), Rh = /*#__PURE__*/ (0, R.crea
dir: c
});
});
-function Bh({ 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)(Rh), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Vm({
+function Vh({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = (0, L.useContext)(zh), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Hm({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = Ph(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Fa({
+ }, e), m = i.popoverRef, h = Fh(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Ia({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -20158,24 +20158,24 @@ function Bh({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
isEntering: g,
isExiting: t
}
- }), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, R.useState)(i.trigger === "PreviewTrigger");
- sa(() => {
+ }), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, L.useState)(i.trigger === "PreviewTrigger");
+ ca(() => {
m.current && b(v && !m.current.querySelector("[role=dialog]"));
- }, [m, v]), (0, R.useEffect)(() => {
- y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || gs() !== "pointer") && m.current && !io(m.current) && Sc(m.current);
+ }, [m, v]), (0, L.useEffect)(() => {
+ y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || _s() !== "pointer") && m.current && !ao(m.current) && Cc(m.current);
}, [
y,
m,
i.trigger
]);
- let x = (0, R.useMemo)(() => {
+ let x = (0, L.useMemo)(() => {
let e = _.children;
- if (r) for (let t of r) e = /*#__PURE__*/ R.createElement(t.Provider, { value: null }, e);
+ if (r) for (let t of r) e = /*#__PURE__*/ L.createElement(t.Provider, { value: null }, e);
return e;
- }, [_.children, r]), [S, C] = (0, R.useState)(null), w = (0, R.useCallback)(() => {
+ }, [_.children, r]), [S, C] = (0, L.useState)(null), w = (0, L.useCallback)(() => {
i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- sa(w, [w]), wm({
+ ca(w, [w]), Tm({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: w
});
@@ -20184,8 +20184,8 @@ function Bh({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
..._.style,
"--trigger-width": _.style?.["--trigger-width"] || S
- }, E = /*#__PURE__*/ R.createElement(Ha.div, {
- ...J(Cl(i, { global: !0 }), l),
+ }, E = /*#__PURE__*/ L.createElement(Ua.div, {
+ ...q(wl(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
role: y ? "dialog" : void 0,
@@ -20200,212 +20200,212 @@ function Bh({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ R.createElement(wh, { onDismiss: e.close }), /*#__PURE__*/ R.createElement(Kp.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ L.createElement(Th, { onDismiss: e.close }), /*#__PURE__*/ L.createElement(qp.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ R.createElement(wh, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ R.createElement(jh, {
+ } }, x), /*#__PURE__*/ L.createElement(Th, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ L.createElement(Mh, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, E) : /*#__PURE__*/ R.createElement(jh, {
+ }, E) : /*#__PURE__*/ L.createElement(Mh, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n
- }, !i.isNonModal && e.isOpen && /*#__PURE__*/ R.createElement("div", {
+ }, !i.isNonModal && e.isOpen && /*#__PURE__*/ L.createElement("div", {
"data-testid": "underlay",
...u,
style: {
position: "fixed",
inset: 0
}
- }), /*#__PURE__*/ R.createElement("div", {
+ }), /*#__PURE__*/ L.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ R.createElement(Rh.Provider, { value: o }, E)));
+ }, /*#__PURE__*/ L.createElement(zh.Provider, { value: o }, E)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Vh = /*#__PURE__*/ (0, R.createContext)({}), Hh = {};
-Hh = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+var Hh = /*#__PURE__*/ (0, L.createContext)({}), Uh = {};
+Uh = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var Uh = {};
-Uh = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var Wh = {};
+Wh = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var Wh = {};
-Wh = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var Gh = {};
+Gh = { 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 Gh = {};
-Gh = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var Kh = {};
+Kh = { 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 Kh = {};
-Kh = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var qh = {};
+qh = { 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 qh = {};
-qh = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var Jh = {};
+Jh = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var Jh = {};
-Jh = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var Yh = {};
+Yh = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var Yh = {};
-Yh = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var Xh = {};
+Xh = { 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 Xh = {};
-Xh = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var Zh = {};
+Zh = { 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 Zh = {};
-Zh = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var Qh = {};
+Qh = { 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 Qh = {};
-Qh = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var $h = {};
+$h = { 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 $h = {};
-$h = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var eg = {};
+eg = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var eg = {};
-eg = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var tg = {};
+tg = { 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 tg = {};
-tg = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var ng = {};
+ng = { 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 ng = {};
-ng = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var rg = {};
+rg = { 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 rg = {};
-rg = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var ig = {};
+ig = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var ig = {};
-ig = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var ag = {};
+ag = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var ag = {};
-ag = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var og = {};
+og = { 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 og = {};
-og = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var sg = {};
+sg = { 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 sg = {};
-sg = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var cg = {};
+cg = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var cg = {};
-cg = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var lg = {};
+lg = { 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 lg = {};
-lg = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var ug = {};
+ug = { 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 ug = {};
-ug = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var dg = {};
+dg = { 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 dg = {};
-dg = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var fg = {};
+fg = { 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 fg = {};
-fg = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var pg = {};
+pg = { 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 pg = {};
-pg = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var mg = {};
+mg = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var mg = {};
-mg = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var hg = {};
+hg = { 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 hg = {};
-hg = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var gg = {};
+gg = { 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 gg = {};
-gg = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var _g = {};
+_g = { 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 _g = {};
-_g = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var vg = {};
+vg = { 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 vg = {};
-vg = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var yg = {};
+yg = { 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 yg = {};
-yg = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var bg = {};
+bg = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var bg = {};
-bg = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var xg = {};
+xg = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var xg = {};
-xg = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var Sg = {};
+Sg = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var Sg = {};
-Sg = {
- "ar-AE": Hh,
- "bg-BG": Uh,
- "cs-CZ": Wh,
- "da-DK": Gh,
- "de-DE": Kh,
- "el-GR": qh,
- "en-US": Jh,
- "es-ES": Yh,
- "et-EE": Xh,
- "fi-FI": Zh,
- "fr-FR": Qh,
- "he-IL": $h,
- "hr-HR": eg,
- "hu-HU": tg,
- "it-IT": ng,
- "ja-JP": rg,
- "ko-KR": ig,
- "lt-LT": ag,
- "lv-LV": og,
- "nb-NO": sg,
- "nl-NL": cg,
- "pl-PL": lg,
- "pt-BR": ug,
- "pt-PT": dg,
- "ro-RO": fg,
- "ru-RU": pg,
- "sk-SK": mg,
- "sl-SI": hg,
- "sr-SP": gg,
- "sv-SE": _g,
- "tr-TR": vg,
- "uk-UA": yg,
- "zh-CN": bg,
- "zh-TW": xg
+var Cg = {};
+Cg = {
+ "ar-AE": Uh,
+ "bg-BG": Wh,
+ "cs-CZ": Gh,
+ "da-DK": Kh,
+ "de-DE": qh,
+ "el-GR": Jh,
+ "en-US": Yh,
+ "es-ES": Xh,
+ "et-EE": Zh,
+ "fi-FI": Qh,
+ "fr-FR": $h,
+ "he-IL": eg,
+ "hr-HR": tg,
+ "hu-HU": ng,
+ "it-IT": rg,
+ "ja-JP": ig,
+ "ko-KR": ag,
+ "lt-LT": og,
+ "lv-LV": sg,
+ "nb-NO": cg,
+ "nl-NL": lg,
+ "pl-PL": ug,
+ "pt-BR": dg,
+ "pt-PT": fg,
+ "ro-RO": pg,
+ "ru-RU": mg,
+ "sk-SK": hg,
+ "sl-SI": gg,
+ "sr-SP": _g,
+ "sv-SE": vg,
+ "tr-TR": yg,
+ "uk-UA": bg,
+ "zh-CN": xg,
+ "zh-TW": Sg
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
function eee(e) {
- let { onContextMenu: t } = e, n = (0, R.useRef)(!1), { longPressProps: r } = op({
+ let { onContextMenu: t } = e, n = (0, L.useRef)(!1), { longPressProps: r } = sp({
onLongPressStart() {
n.current = !1;
},
@@ -20417,7 +20417,7 @@ function eee(e) {
});
}
});
- return t ? { contextMenuProps: J(Io() ? r : {}, {
+ return t ? { contextMenuProps: q(Lo() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -20428,7 +20428,7 @@ function eee(e) {
});
},
onKeyDown(e) {
- if (No() && e.ctrlKey && e.key === "Enter") {
+ if (Po() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -20450,12 +20450,12 @@ function eee(e) {
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
function tee(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
- (0, R.useEffect)(() => {
- n && n.current && xm.set(n.current, t.close);
+ (0, L.useEffect)(() => {
+ n && n.current && Sm.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = Ta();
+ let o = Ea();
return {
triggerProps: {
"aria-haspopup": a,
@@ -20471,11 +20471,11 @@ function tee(e, t, n) {
function nee(e) {
return e && e.__esModule ? e.default : e;
}
-function Cg(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Ta(), { triggerProps: s, overlayProps: c } = tee({ type: r }, t, n), l = (e, n, r = "first") => {
+function wg(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Ea(), { triggerProps: s, overlayProps: c } = tee({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = Lc({
+ }, { keyboardProps: u } = Rc({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -20487,7 +20487,7 @@ function Cg(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = ec(nee(Sg), "@react-aria/menu"), { longPressProps: f } = op({
+ }), d = tc(nee(Cg), "@react-aria/menu"), { longPressProps: f } = sp({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -20499,10 +20499,10 @@ function Cg(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (lo(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (uo(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (lo(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (uo(e.target), t.toggle());
}
};
delete s.onPress;
@@ -20513,10 +20513,10 @@ function Cg(e, t, n) {
y: n.y + e.y
}), t.open();
} });
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
if (t.isOpen && a === "contextMenu") {
let e = (e) => {
- (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && Y(e) === document.body && t.close();
+ (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && J(e) === document.body && t.close();
};
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
}
@@ -20551,13 +20551,13 @@ function Cg(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var wg = /* @__PURE__ */ new WeakMap();
+var Tg = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
function ree(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = Cl(e, { labelable: !0 }), { listProps: c } = rp({
+ let s = wl(e, { labelable: !0 }), { listProps: c } = ip({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -20566,11 +20566,11 @@ function ree(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return wg.set(t, {
+ return Tg.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
- }), { menuProps: J(s, {
+ }), { menuProps: q(s, {
onKeyDown: i,
onKeyUp: a
}, {
@@ -20583,15 +20583,15 @@ function ree(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function Tg(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 = wg.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = Go(), M = () => {
+function Eg(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 = Tg.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = Ko(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
}
}, N = "menuitem";
w || (C.selectionMode === "single" ? N = "menuitemradio" : C.selectionMode === "multiple" && (N = "menuitemcheckbox"));
- let P = Da(), ee = Da(), F = Da(), I = {
+ let P = Oa(), ee = Oa(), F = Oa(), te = {
id: r,
"aria-disabled": E || void 0,
role: N,
@@ -20606,19 +20606,19 @@ function Tg(e, t, n) {
"aria-haspopup": c,
"aria-expanded": e["aria-expanded"]
};
- if (C.selectionMode !== "none" && !w && (I["aria-checked"] = D), s) {
+ if (C.selectionMode !== "none" && !w && (te["aria-checked"] = D), s) {
let e = Number(k?.index);
- I["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, I["aria-setsize"] = _p(t.collection);
- }
- let te = (0, R.useRef)(!1), ne = (e) => {
- f?.(e), te.current = e;
- }, re = (0, R.useRef)(null), ie = (e) => {
- e.pointerType !== "keyboard" && (re.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (te.current || e.target.click()), u?.(e);
- }, ae = (e) => {
- m?.(e), M(), Qo(e, j, k.props.href, k?.props.routerOptions);
- let t = re.current?.pointerType === "keyboard" ? re.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
- t = o ?? a ?? t, A && !w && t && A(), re.current = null;
- }, { itemProps: oe, isFocused: se } = sp({
+ te["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, te["aria-setsize"] = vp(t.collection);
+ }
+ let ne = (0, L.useRef)(!1), re = (e) => {
+ f?.(e), ne.current = e;
+ }, ie = (0, L.useRef)(null), ae = (e) => {
+ e.pointerType !== "keyboard" && (ie.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (ne.current || e.target.click()), u?.(e);
+ }, oe = (e) => {
+ m?.(e), M(), $o(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 } = cp({
id: r,
selectionManager: C,
key: i,
@@ -20627,39 +20627,39 @@ function Tg(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: ce, isPressed: le } = zl({
+ }), { pressProps: le, isPressed: ue } = Bl({
onPressStart: l,
onPress: d,
- onPressUp: ie,
- onPressChange: ne,
+ onPressUp: ae,
+ onPressChange: re,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: ue } = eu({
+ }), { hoverProps: de } = tu({
isDisabled: E,
onHoverStart(e) {
- !hs() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !gs() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: L } = Lc({
+ }), { keyboardProps: I } = Rc({
shortcuts: {
" ": (e) => {
- re.current = {
+ ie.current = {
pointerType: "keyboard",
key: " "
- }, Y(e).click(), _s("keyboard");
+ }, J(e).click(), vs("keyboard");
},
Enter: (e) => {
- re.current = {
+ ie.current = {
pointerType: "keyboard",
key: "Enter"
};
- let t = Y(e);
+ let t = J(e);
if (t.tagName !== "A") {
- t.click(), _s("keyboard");
+ t.click(), vs("keyboard");
return;
}
- return _s("keyboard"), {
+ return vs("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -20667,37 +20667,37 @@ function Tg(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: de } = Vc({
+ }), { focusableProps: fe } = Hc({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), fe = Cl(k?.props);
- delete fe.id;
- let pe = Zo(k?.props);
+ }, n), pe = wl(k?.props);
+ delete pe.id;
+ let me = Qo(k?.props);
return {
menuItemProps: {
- ...I,
- ...J(fe, pe, w ? {
- onFocus: oe.onFocus,
- "data-collection": oe["data-collection"],
- "data-key": oe["data-key"]
- } : oe, ce, ue, L, de, O.shouldUseVirtualFocus || w ? { onMouseDown: (e) => e.preventDefault() } : void 0, E ? void 0 : { onClick: ae }),
- tabIndex: oe.tabIndex != null && T && !O.shouldUseVirtualFocus ? -1 : oe.tabIndex
+ ...te,
+ ...q(pe, me, w ? {
+ onFocus: se.onFocus,
+ "data-collection": se["data-collection"],
+ "data-key": se["data-key"]
+ } : se, le, de, I, fe, O.shouldUseVirtualFocus || w ? { onMouseDown: (e) => e.preventDefault() } : void 0, E ? void 0 : { onClick: oe }),
+ tabIndex: se.tabIndex != null && T && !O.shouldUseVirtualFocus ? -1 : se.tabIndex
},
labelProps: { id: P },
descriptionProps: { id: ee },
keyboardShortcutProps: { id: F },
- isFocused: se,
- isFocusVisible: se && C.isFocused && hs() && !T,
+ isFocused: ce,
+ isFocusVisible: ce && C.isFocused && gs() && !T,
isSelected: D,
- isPressed: le,
+ isPressed: ue,
isDisabled: E
};
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
function iee(e) {
- let { heading: t, "aria-label": n } = e, r = Ta();
+ let { heading: t, "aria-label": n } = e, r = Ea();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -20713,8 +20713,8 @@ function iee(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function Eg(e) {
- let t = Nh(e), [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)([]), o = () => {
+function Dg(e) {
+ let t = Ph(e), [n, r] = (0, L.useState)(null), [i, a] = (0, L.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -20785,8 +20785,8 @@ var aee = class {
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
function oee(e) {
- let { onExpandedChange: t } = e, [n, r] = nc(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = wp(e), a = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = jp(e, (0, R.useCallback)((e) => new aee(e, { expandedKeys: n }), [n]), null);
- return (0, R.useEffect)(() => {
+ let { onExpandedChange: t } = e, [n, r] = rc(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = Tp(e), a = (0, L.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = Mp(e, (0, L.useCallback)((e) => new aee(e, { expandedKeys: n }), [n]), null);
+ return (0, L.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
collection: o,
@@ -20796,7 +20796,7 @@ function oee(e) {
r(see(n, e));
},
setExpandedKeys: r,
- selectionManager: new Ep(o, i)
+ selectionManager: new Dp(o, i)
};
}
function see(e, t) {
@@ -20805,20 +20805,20 @@ function see(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Menu.mjs
-var Dg = /*#__PURE__*/ (0, R.createContext)(null), Og = /*#__PURE__*/ (0, R.createContext)(null), kg = /*#__PURE__*/ (0, R.createContext)(null), Ag = /*#__PURE__*/ (0, R.createContext)(null);
+var Og = /*#__PURE__*/ (0, L.createContext)(null), kg = /*#__PURE__*/ (0, L.createContext)(null), Ag = /*#__PURE__*/ (0, L.createContext)(null), jg = /*#__PURE__*/ (0, L.createContext)(null);
function cee(e) {
- let t = Eg(e), n = (0, R.useRef)(null), { menuTriggerProps: r, menuProps: i } = Cg({
+ let t = Dg(e), n = (0, L.useRef)(null), { menuTriggerProps: r, menuProps: i } = wg({
...e,
type: "menu"
- }, t, n), a = (0, R.useRef)(null);
- return Gc() ? null : /*#__PURE__*/ R.createElement(Pa, { values: [
- [Dg, {
+ }, t, n), a = (0, L.useRef)(null);
+ return Kc() ? null : /*#__PURE__*/ L.createElement(Fa, { values: [
+ [Og, {
...i,
ref: a
}],
- [Fg, t],
- [kg, t],
- [Lh, {
+ [Ig, t],
+ [Ag, t],
+ [Rh, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -20826,14 +20826,14 @@ function cee(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ R.createElement(Th, {
+ ] }, /*#__PURE__*/ L.createElement(Eh, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var lee = /*#__PURE__*/ (0, R.createContext)(null);
-(class extends ac {
+var lee = /*#__PURE__*/ (0, L.createContext)(null);
+(class extends oc {
static {
this.type = "submenutrigger";
}
@@ -20846,63 +20846,63 @@ var lee = /*#__PURE__*/ (0, R.createContext)(null);
return null;
}
});
-var uee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- return [e, t] = La(e, t, Dg), /*#__PURE__*/ R.createElement(Zc, { content: /*#__PURE__*/ R.createElement(ll, e) }, (n) => /*#__PURE__*/ R.createElement(dee, {
+var uee = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ return [e, t] = Ra(e, t, Og), /*#__PURE__*/ L.createElement(Qc, { content: /*#__PURE__*/ L.createElement(ul, e) }, (n) => /*#__PURE__*/ L.createElement(dee, {
props: e,
collection: n,
menuRef: t
}));
});
function dee({ props: e, collection: t, menuRef: n }) {
- [e, n] = La(e, n, rc);
- let { filter: r, ...i } = e, a = (0, R.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = oee({
+ [e, n] = Ra(e, n, ic);
+ let { filter: r, ...i } = e, a = (0, L.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = oee({
...e,
collection: a,
children: void 0
- }), s = (0, R.useContext)(kg), { isVirtualized: c, CollectionRoot: l } = (0, R.useContext)(hl), { menuProps: u } = ree({
+ }), s = (0, L.useContext)(Ag), { isVirtualized: c, CollectionRoot: l } = (0, L.useContext)(gl), { menuProps: u } = ree({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = Fa({
+ }, o, n), d = Ia({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
values: { isEmpty: o.collection.size === 0 }
}), f = null;
- o.collection.size === 0 && e.renderEmptyState && (f = /*#__PURE__*/ R.createElement("div", {
+ o.collection.size === 0 && e.renderEmptyState && (f = /*#__PURE__*/ L.createElement("div", {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = Cl(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(yf, null, /*#__PURE__*/ R.createElement(Ha.div, {
- ...J(p, d, u),
+ let p = wl(e, { global: !0 });
+ return /*#__PURE__*/ L.createElement(bf, null, /*#__PURE__*/ L.createElement(Ua.div, {
+ ...q(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ R.createElement(Pa, { values: [
- [Og, o],
- [lf, { elementType: "div" }],
- [dl, {
+ }, /*#__PURE__*/ L.createElement(Fa, { values: [
+ [kg, o],
+ [uf, { elementType: "div" }],
+ [fl, {
name: "MenuSection",
- render: jg
+ render: Mg
}],
[lee, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [Ng, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [rc, null],
+ [Pg, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
[ic, null],
- [Ag, o.selectionManager],
- [kg, s ?? Eg({})]
- ] }, /*#__PURE__*/ R.createElement(of, null, /*#__PURE__*/ R.createElement(l, {
+ [ac, null],
+ [jg, o.selectionManager],
+ [Ag, s ?? Dg({})]
+ ] }, /*#__PURE__*/ L.createElement(sf, null, /*#__PURE__*/ L.createElement(l, {
collection: o.collection,
- persistedKeys: gl(o.selectionManager.focusedKey),
+ persistedKeys: _l(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var fee = class extends Ep {
+var fee = class extends Dp {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -20922,11 +20922,11 @@ var fee = class extends Ep {
return this.parent.childFocusStrategy;
}
};
-function jg(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, R.useContext)(Og), { CollectionBranch: a } = (0, R.useContext)(hl), [o, s] = Ra(), { headingProps: c, groupProps: l } = iee({
+function Mg(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, L.useContext)(kg), { CollectionBranch: a } = (0, L.useContext)(gl), [o, s] = za(), { headingProps: c, groupProps: l } = iee({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = Fa({
+ }), u = Ia({
...e,
id: void 0,
children: void 0,
@@ -20934,31 +20934,31 @@ function jg(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, R.useContext)(Ag), f = wp(e), p = e.selectionMode == null ? d : new fee(d, f), m = Ia(Ng)?.shouldCloseOnSelect, h = Cl(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ R.createElement(Ha.section, {
- ...J(h, u, l),
+ }), d = (0, L.useContext)(jg), f = Tp(e), p = e.selectionMode == null ? d : new fee(d, f), m = La(Pg)?.shouldCloseOnSelect, h = wl(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ L.createElement(Ua.section, {
+ ...q(h, u, l),
ref: t
- }, /*#__PURE__*/ R.createElement(Pa, { values: [
- [rf, {
+ }, /*#__PURE__*/ L.createElement(Fa, { values: [
+ [af, {
...c,
ref: o
}],
- [Ag, p],
- [Ng, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
- ] }, /*#__PURE__*/ R.createElement(a, {
+ [jg, p],
+ [Pg, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ ] }, /*#__PURE__*/ L.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var Mg = /*#__PURE__*/ ol(lc, jg), Ng = /*#__PURE__*/ (0, R.createContext)(null), Pg = /*#__PURE__*/ al(cc, function(e, t, n) {
- [e, t] = La(e, t, Ng);
- let r = Ia(Ng)?.id, i = (0, R.useContext)(Og), a = Ma(t), o = (0, R.useContext)(Ag), { isVirtualized: s } = (0, R.useContext)(hl), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Tg({
+var Ng = /*#__PURE__*/ sl(uc, Mg), Pg = /*#__PURE__*/ (0, L.createContext)(null), Fg = /*#__PURE__*/ ol(lc, function(e, t, n) {
+ [e, t] = Ra(e, t, Pg);
+ let r = La(Pg)?.id, i = (0, L.useContext)(kg), a = Na(t), o = (0, L.useContext)(jg), { isVirtualized: s } = (0, L.useContext)(gl), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Eg({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = eu({ isDisabled: f.isDisabled }), h = Fa({
+ }, i, a), { hoverProps: p, isHovered: m } = tu({ isDisabled: f.isDisabled }), h = Ia({
...e,
id: void 0,
children: n.rendered,
@@ -20972,9 +20972,9 @@ var Mg = /*#__PURE__*/ ol(lc, jg), Ng = /*#__PURE__*/ (0, R.createContext)(null)
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? Ha.a : Ha.div, _ = Cl(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(g, {
- ...J(_, h, c, p),
+ }), g = e.href ? Ua.a : Ua.div, _ = wl(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ L.createElement(g, {
+ ...q(_, h, c, p),
ref: a,
"data-disabled": f.isDisabled || void 0,
"data-hovered": m || void 0,
@@ -20985,19 +20985,19 @@ var Mg = /*#__PURE__*/ ol(lc, jg), Ng = /*#__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(Pa, { values: [
- [_u, { slots: {
- [Na]: l,
+ }, /*#__PURE__*/ L.createElement(Fa, { values: [
+ [vu, { slots: {
+ [Pa]: l,
label: l,
description: u
} }],
- [Vh, d],
- [sf, { isSelected: f.isSelected }]
+ [Hh, d],
+ [cf, { isSelected: f.isSelected }]
] }, h.children));
});
-al(sc, function(e, t, n) {
- let r = (0, R.useContext)(Og), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
- Fp((0, R.useMemo)(() => ({
+ol(cc, function(e, t, n) {
+ let r = (0, L.useContext)(kg), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, L.useRef)(null);
+ Ip((0, L.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -21007,21 +21007,21 @@ al(sc, function(e, t, n) {
o,
r?.collection
]), c);
- let l = Fa({
+ let l = Ia({
...s,
id: void 0,
children: n.rendered,
defaultClassName: "react-aria-MenuLoadingIndicator",
values: void 0
});
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement("div", {
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement("div", {
style: {
position: "relative",
width: 0,
height: 0
},
- inert: bp(!0)
- }, /*#__PURE__*/ R.createElement("div", {
+ inert: xp(!0)
+ }, /*#__PURE__*/ L.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
style: {
@@ -21029,8 +21029,8 @@ al(sc, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Ha.div, {
- ...J(Cl(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(Ua.div, {
+ ...q(wl(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
@@ -21039,26 +21039,26 @@ al(sc, function(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
function pee(e, t) {
- let { role: n = "dialog" } = e, r = Da();
+ let { role: n = "dialog" } = e, r = Oa();
r = e["aria-label"] ? void 0 : r;
- let i = Da();
+ let i = Oa();
i = n === "alertdialog" && !e["aria-describedby"] ? i : void 0;
- let a = (0, R.useRef)(!1);
- (0, R.useEffect)(() => {
- if (t.current && !io(t.current)) {
- Sc(t.current);
+ let a = (0, L.useRef)(!1);
+ (0, L.useEffect)(() => {
+ if (t.current && !ao(t.current)) {
+ Cc(t.current);
let e = setTimeout(() => {
- (no() === t.current || no() === document.body) && (a.current = !0, t.current && (t.current.blur(), Sc(t.current)), a.current = !1);
+ (ro() === t.current || ro() === document.body) && (a.current = !0, t.current && (t.current.blur(), Cc(t.current)), a.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t]), Mh(), (0, R.useRef)(!1), (0, R.useEffect)(() => {});
+ }, [t]), Nh(), (0, L.useRef)(!1), (0, L.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
- ...Cl(e, { labelable: !0 }),
+ ...wl(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? r,
@@ -21073,40 +21073,40 @@ function pee(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var mee = /*#__PURE__*/ (0, R.createContext)(null), Fg = /*#__PURE__*/ (0, R.createContext)(null), Ig = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+var mee = /*#__PURE__*/ (0, L.createContext)(null), Ig = /*#__PURE__*/ (0, L.createContext)(null), Lg = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = La(e, t, mee);
+ [e, t] = Ra(e, t, mee);
let { dialogProps: r, titleProps: i, contentProps: a } = pee({
...e,
"aria-labelledby": n
- }, t), o = (0, R.useContext)(Fg);
+ }, t), o = (0, L.useContext)(Ig);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = Fa({
+ let s = Ia({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = Cl(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(Ha.section, {
- ...J(c, s, r),
+ }), c = wl(e, { global: !0 });
+ return /*#__PURE__*/ L.createElement(Ua.section, {
+ ...q(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ R.createElement(Pa, { values: [
- [hu, { slots: {
- [Na]: {},
+ }, /*#__PURE__*/ L.createElement(Fa, { values: [
+ [gu, { slots: {
+ [Pa]: {},
title: {
...i,
level: 2
}
} }],
- [_u, { slots: {
- [Na]: {},
+ [vu, { slots: {
+ [Pa]: {},
description: a
} }],
- [du, { slots: {
- [Na]: {},
+ [fu, { slots: {
+ [Pa]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
@@ -21114,13 +21114,13 @@ var mee = /*#__PURE__*/ (0, R.createContext)(null), Fg = /*#__PURE__*/ (0, R.cre
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
function hee(e = {}) {
- let { locale: t } = Bs();
- return (0, R.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
+ let { locale: t } = Vs();
+ return (0, L.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var Lg = {};
-Lg = {
+var Rg = {};
+Rg = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -21134,8 +21134,8 @@ Lg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var Rg = {};
-Rg = {
+var zg = {};
+zg = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -21149,8 +21149,8 @@ Rg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var zg = {};
-zg = {
+var Bg = {};
+Bg = {
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",
@@ -21164,8 +21164,8 @@ zg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var Bg = {};
-Bg = {
+var Vg = {};
+Vg = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -21179,8 +21179,8 @@ Bg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var Vg = {};
-Vg = {
+var Hg = {};
+Hg = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -21194,8 +21194,8 @@ Vg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var Hg = {};
-Hg = {
+var Ug = {};
+Ug = {
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: "Επιλογή",
@@ -21209,8 +21209,8 @@ Hg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var Ug = {};
-Ug = {
+var Wg = {};
+Wg = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -21224,8 +21224,8 @@ Ug = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var Wg = {};
-Wg = {
+var Gg = {};
+Gg = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -21239,8 +21239,8 @@ Wg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var Gg = {};
-Gg = {
+var Kg = {};
+Kg = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -21254,8 +21254,8 @@ Gg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var Kg = {};
-Kg = {
+var qg = {};
+qg = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -21269,8 +21269,8 @@ Kg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var qg = {};
-qg = {
+var Jg = {};
+Jg = {
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",
@@ -21284,8 +21284,8 @@ qg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var Jg = {};
-Jg = {
+var Yg = {};
+Yg = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -21299,8 +21299,8 @@ Jg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var Yg = {};
-Yg = {
+var Xg = {};
+Xg = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -21314,8 +21314,8 @@ Yg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var Xg = {};
-Xg = {
+var Zg = {};
+Zg = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -21329,8 +21329,8 @@ Xg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var Zg = {};
-Zg = {
+var Qg = {};
+Qg = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -21344,8 +21344,8 @@ Zg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var Qg = {};
-Qg = {
+var $g = {};
+$g = {
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: "選択",
@@ -21359,8 +21359,8 @@ Qg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var $g = {};
-$g = {
+var e_ = {};
+e_ = {
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: "선택",
@@ -21374,8 +21374,8 @@ $g = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var e_ = {};
-e_ = {
+var t_ = {};
+t_ = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -21389,8 +21389,8 @@ e_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var t_ = {};
-t_ = {
+var n_ = {};
+n_ = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -21404,8 +21404,8 @@ t_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var n_ = {};
-n_ = {
+var r_ = {};
+r_ = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -21419,8 +21419,8 @@ n_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var r_ = {};
-r_ = {
+var i_ = {};
+i_ = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -21434,8 +21434,8 @@ r_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var i_ = {};
-i_ = {
+var a_ = {};
+a_ = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -21449,8 +21449,8 @@ i_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var a_ = {};
-a_ = {
+var o_ = {};
+o_ = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -21464,8 +21464,8 @@ a_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var o_ = {};
-o_ = {
+var s_ = {};
+s_ = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -21479,8 +21479,8 @@ o_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var s_ = {};
-s_ = {
+var c_ = {};
+c_ = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -21494,8 +21494,8 @@ s_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var c_ = {};
-c_ = {
+var l_ = {};
+l_ = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -21509,8 +21509,8 @@ c_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var l_ = {};
-l_ = {
+var u_ = {};
+u_ = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -21524,8 +21524,8 @@ l_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var u_ = {};
-u_ = {
+var d_ = {};
+d_ = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -21539,8 +21539,8 @@ u_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var d_ = {};
-d_ = {
+var f_ = {};
+f_ = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -21554,8 +21554,8 @@ d_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var f_ = {};
-f_ = {
+var p_ = {};
+p_ = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -21569,8 +21569,8 @@ f_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var p_ = {};
-p_ = {
+var m_ = {};
+m_ = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -21584,8 +21584,8 @@ p_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var m_ = {};
-m_ = {
+var h_ = {};
+h_ = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -21599,8 +21599,8 @@ m_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var h_ = {};
-h_ = {
+var g_ = {};
+g_ = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -21614,8 +21614,8 @@ h_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var g_ = {};
-g_ = {
+var __ = {};
+__ = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -21629,42 +21629,42 @@ g_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var __ = {};
-__ = {
- "ar-AE": Lg,
- "bg-BG": Rg,
- "cs-CZ": zg,
- "da-DK": Bg,
- "de-DE": Vg,
- "el-GR": Hg,
- "en-US": Ug,
- "es-ES": Wg,
- "et-EE": Gg,
- "fi-FI": Kg,
- "fr-FR": qg,
- "he-IL": Jg,
- "hr-HR": Yg,
- "hu-HU": Xg,
- "it-IT": Zg,
- "ja-JP": Qg,
- "ko-KR": $g,
- "lt-LT": e_,
- "lv-LV": t_,
- "nb-NO": n_,
- "nl-NL": r_,
- "pl-PL": i_,
- "pt-BR": a_,
- "pt-PT": o_,
- "ro-RO": s_,
- "ru-RU": c_,
- "sk-SK": l_,
- "sl-SI": u_,
- "sr-SP": d_,
- "sv-SE": f_,
- "tr-TR": p_,
- "uk-UA": m_,
- "zh-CN": h_,
- "zh-TW": g_
+var v_ = {};
+v_ = {
+ "ar-AE": Rg,
+ "bg-BG": zg,
+ "cs-CZ": Bg,
+ "da-DK": Vg,
+ "de-DE": Hg,
+ "el-GR": Ug,
+ "en-US": Wg,
+ "es-ES": Gg,
+ "et-EE": Kg,
+ "fi-FI": qg,
+ "fr-FR": Jg,
+ "he-IL": Yg,
+ "hr-HR": Xg,
+ "hu-HU": Zg,
+ "it-IT": Qg,
+ "ja-JP": $g,
+ "ko-KR": e_,
+ "lt-LT": t_,
+ "lv-LV": n_,
+ "nb-NO": r_,
+ "nl-NL": i_,
+ "pl-PL": a_,
+ "pt-BR": o_,
+ "pt-PT": s_,
+ "ro-RO": c_,
+ "ru-RU": l_,
+ "sk-SK": u_,
+ "sl-SI": d_,
+ "sr-SP": f_,
+ "sv-SE": p_,
+ "tr-TR": m_,
+ "uk-UA": h_,
+ "zh-CN": g_,
+ "zh-TW": __
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
@@ -21672,12 +21672,12 @@ function gee(e) {
return e && e.__esModule ? e.default : e;
}
function _ee(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = ec(gee(__), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, R.useRef)(i), o = (0, R.useCallback)(() => {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = tc(gee(v_), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, L.useRef)(i), o = (0, L.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = v_(i, a.current), o = v_(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = y_(i, a.current), o = y_(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)) {
@@ -21697,7 +21697,7 @@ function _ee(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && cu(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && lu(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -21708,7 +21708,7 @@ function _ee(e, t) {
n,
r
]);
- yu(() => {
+ bu(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -21716,7 +21716,7 @@ function _ee(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function v_(e, t) {
+function y_(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);
@@ -21724,13 +21724,13 @@ function v_(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function y_(e, t) {
- let n = t?.isDisabled, [r, i] = (0, R.useState)(!1);
- return sa(() => {
+function b_(e, t) {
+ let n = t?.isDisabled, [r, i] = (0, L.useState)(!1);
+ return ca(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = zf(e.current, { tabbable: !0 });
+ let t = Bf(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -21753,8 +21753,8 @@ function vee(e) {
return e && e.__esModule ? e.default : e;
}
function yee(e) {
- let t = ec(vee(__), "@react-aria/grid"), n = vs(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return Ou((0, R.useMemo)(() => {
+ let t = tc(vee(v_), "@react-aria/grid"), n = ys(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return ku((0, L.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;
}, [
@@ -21771,10 +21771,10 @@ function bee(e) {
return e && e.__esModule ? e.default : e;
}
function xee(e, t) {
- let { key: n } = e, r = t.selectionManager, i = Ta(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+ let { key: n } = e, r = t.selectionManager, i = Ea(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": ec(bee(__), "@react-aria/grid").format("select"),
+ "aria-label": tc(bee(v_), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -21783,60 +21783,60 @@ function xee(e, t) {
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
function See(e, t, n) {
- let { overlayProps: r, underlayProps: i } = Mm({
+ let { overlayProps: r, underlayProps: i } = Nm({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return Im({ isDisabled: !t.isOpen }), Mh(), (0, R.useEffect)(() => {
- if (t.isOpen && n.current) return Zp([n.current], { shouldUseInert: !0 });
+ return Lm({ isDisabled: !t.isOpen }), Nh(), (0, L.useEffect)(() => {
+ if (t.isOpen && n.current) return Qp([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
- modalProps: J(r),
+ modalProps: q(r),
underlayProps: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useViewportSize.mjs
-var b_ = typeof document < "u" && window.visualViewport;
+var x_ = typeof document < "u" && window.visualViewport;
function Cee() {
- let e = ya(), [t, n] = (0, R.useState)(() => e ? {
+ let e = ba(), [t, n] = (0, L.useState)(() => e ? {
width: 0,
height: 0
- } : x_());
- return (0, R.useEffect)(() => {
+ } : S_());
+ return (0, L.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- b_ && b_.scale > 1 || e(x_());
+ x_ && x_.scale > 1 || e(S_());
}, r, i = (t) => {
- b_ && b_.scale > 1 || Ts(Y(t)) && (r = requestAnimationFrame(() => {
- let t = no();
- (!t || !Ts(t)) && e({
+ x_ && x_.scale > 1 || Es(J(t)) && (r = requestAnimationFrame(() => {
+ let t = ro();
+ (!t || !Es(t)) && e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(x_()), Io() && Ro() && window.addEventListener("blur", i, !0), b_ ? b_.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), Io() && Ro() && window.removeEventListener("blur", i, !0), b_ ? b_.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(S_()), Lo() && zo() && window.addEventListener("blur", i, !0), x_ ? x_.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), Lo() && zo() && window.removeEventListener("blur", i, !0), x_ ? x_.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function x_() {
+function S_() {
return {
- width: b_ ? Math.min(b_.width * b_.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: b_ ? b_.height * b_.scale : document.documentElement.clientHeight
+ width: x_ ? Math.min(x_.width * x_.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: x_ ? x_.height * x_.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var wee = /*#__PURE__*/ (0, R.createContext)(null), S_ = /*#__PURE__*/ (0, R.createContext)(null), Tee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- if ((0, R.useContext)(S_)) return /*#__PURE__*/ R.createElement(w_, {
+var wee = /*#__PURE__*/ (0, L.createContext)(null), C_ = /*#__PURE__*/ (0, L.createContext)(null), Tee = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ if ((0, L.useContext)(C_)) return /*#__PURE__*/ L.createElement(T_, {
...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(C_, {
+ return /*#__PURE__*/ L.createElement(w_, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -21846,15 +21846,15 @@ var wee = /*#__PURE__*/ (0, R.createContext)(null), S_ = /*#__PURE__*/ (0, R.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ R.createElement(w_, {
+ }, /*#__PURE__*/ L.createElement(T_, {
...f,
modalRef: t
}, s));
});
function Eee(e, t) {
- [e, t] = La(e, t, wee);
- let n = (0, R.useContext)(Fg), r = Nh(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Ma(t), o = (0, R.useRef)(null), s = Fh(a, i.isOpen), c = Fh(o, i.isOpen), l = s || c || e.isExiting || !1, u = ya();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ R.createElement(Dee, {
+ [e, t] = Ra(e, t, wee);
+ let n = (0, L.useContext)(Ig), r = Ph(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Na(t), o = (0, L.useRef)(null), s = Ih(a, i.isOpen), c = Ih(o, i.isOpen), l = s || c || e.isExiting || !1, u = ba();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ L.createElement(Dee, {
...e,
state: i,
isExiting: l,
@@ -21862,9 +21862,9 @@ function Eee(e, t) {
modalRef: o
});
}
-var C_ = /*#__PURE__*/ (0, R.forwardRef)(Eee);
+var w_ = /*#__PURE__*/ (0, L.forwardRef)(Eee);
function Dee({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = See(t, r, n), o = Ph(t.overlayRef) || t.isEntering || !1, s = Fa({
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = See(t, r, n), o = Fh(t.overlayRef) || t.isEntering || !1, s = Ia({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -21874,7 +21874,7 @@ function Dee({ UNSTABLE_portalContainer: e, ...t }) {
}
}), c = Cee(), l, u;
if (typeof document < "u") {
- let e = bu(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = xu(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;
}
let d = {
@@ -21884,25 +21884,25 @@ function Dee({ 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(jh, {
+ return /*#__PURE__*/ L.createElement(Mh, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ R.createElement(Ha.div, {
- ...J(Cl(t, { global: !0 }), a),
+ }, /*#__PURE__*/ L.createElement(Ua.div, {
+ ...q(wl(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ R.createElement(Pa, { values: [[S_, {
+ }, /*#__PURE__*/ L.createElement(Fa, { values: [[C_, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [Fg, r]] }, s.children)));
+ }], [Ig, r]] }, s.children)));
}
-function w_(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, R.useContext)(S_), a = (0, R.useContext)(Fg), o = Ma((0, R.useMemo)(() => Oa(e.modalRef, n), [e.modalRef, n])), s = Ph(o), c = Fa({
+function T_(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, L.useContext)(C_), a = (0, L.useContext)(Ig), o = Na((0, L.useMemo)(() => ka(e.modalRef, n), [e.modalRef, n])), s = Fh(o), c = Ia({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -21911,23 +21911,23 @@ function w_(e) {
state: a
}
});
- return /*#__PURE__*/ R.createElement(Ha.div, {
- ...J(Cl(e, { global: !0 }), t),
+ return /*#__PURE__*/ L.createElement(Ua.div, {
+ ...q(wl(e, { global: !0 }), t),
...c,
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ R.createElement(wh, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ L.createElement(Th, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var T_ = /* @__PURE__ */ new WeakMap();
+var E_ = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
function Oee(e, t, n) {
let { value: r, children: i, "aria-label": a, "aria-labelledby": o, onPressStart: s, onPressEnd: c, onPressChange: l, onPress: u, onPressUp: d, onClick: f } = e, p = e.isDisabled || t.isDisabled, m = t.selectedValue === r, h = (e) => {
e.stopPropagation(), t.setSelectedValue(r);
- }, { pressProps: g, isPressed: _ } = zl({
+ }, { pressProps: g, isPressed: _ } = Bl({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -21935,7 +21935,7 @@ function Oee(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = zl({
+ }), { pressProps: v, isPressed: y } = Bl({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -21945,17 +21945,17 @@ function Oee(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = Vc(J(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = J(g, b), S = Cl(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = Hc(q(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = q(g, b), S = wl(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = T_.get(t);
- qu(n, t.defaultSelectedValue, t.setSelectedValue), Ju({ validationBehavior: O }, t, n);
- let k = $u();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = E_.get(t);
+ Ju(n, t.defaultSelectedValue, t.setSelectedValue), Yu({ validationBehavior: O }, t, n);
+ let k = ed();
return {
- labelProps: J(v, (0, R.useMemo)(() => ({
+ labelProps: q(v, (0, L.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
onMouseDown: (e) => e.preventDefault()
}), [])),
- inputProps: J(S, {
+ inputProps: q(S, {
...x,
type: "radio",
name: w,
@@ -21982,12 +21982,12 @@ function Oee(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
function kee(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Bs(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = Ku({
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Vs(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = qu({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = Cl(e, { labelable: !0 }), { focusWithinProps: v } = ql({
+ }), _ = wl(e, { labelable: !0 }), { focusWithinProps: v } = Jl({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -21995,13 +21995,13 @@ function kee(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = zf(n.currentTarget, {
- from: Y(n),
- accept: (e) => e instanceof Ka(e).HTMLInputElement && e.type === "radio"
+ let r = Bf(n.currentTarget, {
+ from: J(n),
+ accept: (e) => e instanceof qa(e).HTMLInputElement && e.type === "radio"
}), i;
return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;
}
- let { keyboardProps: b } = Lc({
+ let { keyboardProps: b } = Rc({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -22009,15 +22009,15 @@ function kee(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = Ta(n);
- return T_.set(t, {
+ }), x = Ea(n);
+ return E_.set(t, {
name: x,
form: r,
descriptionId: h.id,
errorMessageId: g.id,
validationBehavior: c
}), {
- radioGroupProps: J(_, {
+ radioGroupProps: q(_, {
role: "radiogroup",
...b,
"aria-invalid": t.isInvalid || void 0,
@@ -22041,7 +22041,7 @@ function kee(e, t) {
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
var Aee = Math.round(Math.random() * 1e10), jee = 0;
function Mee(e) {
- let t = (0, R.useMemo)(() => e.name || `radio-group-${Aee}-${++jee}`, [e.name]), [n, r] = nc(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, R.useState)(n), [a, o] = (0, R.useState)(null), s = Ru({
+ let t = (0, L.useMemo)(() => e.name || `radio-group-${Aee}-${++jee}`, [e.name]), [n, r] = rc(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, L.useState)(n), [a, o] = (0, L.useState)(null), s = zu({
...e,
value: n
}), c = (t) => {
@@ -22064,16 +22064,16 @@ function Mee(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Nee = /*#__PURE__*/ (0, R.createContext)(null), Pee = /*#__PURE__*/ (0, R.createContext)(null), E_ = /*#__PURE__*/ (0, R.createContext)(null), D_ = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = La(e, t, Nee);
- let { validationBehavior: n } = Ia(Wu) || {}, r = e.validationBehavior ?? n ?? "native", i = Mee({
+var Nee = /*#__PURE__*/ (0, L.createContext)(null), Pee = /*#__PURE__*/ (0, L.createContext)(null), D_ = /*#__PURE__*/ (0, L.createContext)(null), O_ = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ [e, t] = Ra(e, t, Nee);
+ let { validationBehavior: n } = La(Gu) || {}, r = e.validationBehavior ?? n ?? "native", i = Mee({
...e,
validationBehavior: r
- }), [a, o] = Ra(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = kee({
+ }), [a, o] = za(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = kee({
...e,
label: o,
validationBehavior: r
- }, i), f = Fa({
+ }, i), f = Ia({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -22084,9 +22084,9 @@ var Nee = /*#__PURE__*/ (0, R.createContext)(null), Pee = /*#__PURE__*/ (0, R.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = Cl(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(Ha.div, {
- ...J(p, f, s),
+ }), p = wl(e, { global: !0 });
+ return /*#__PURE__*/ L.createElement(Ua.div, {
+ ...q(p, f, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": e.orientation || "vertical",
@@ -22094,39 +22094,39 @@ var Nee = /*#__PURE__*/ (0, R.createContext)(null), Pee = /*#__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(Pa, { values: [
- [E_, i],
- [tu, {
+ }, /*#__PURE__*/ L.createElement(Fa, { values: [
+ [D_, i],
+ [nu, {
...c,
ref: a,
elementType: "span"
}],
- [_u, { slots: {
+ [vu, { slots: {
description: l,
errorMessage: u
} }],
- [Mu, d]
- ] }, /*#__PURE__*/ R.createElement(of, null, f.children)));
-}), O_ = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [Nu, d]
+ ] }, /*#__PURE__*/ L.createElement(sf, null, f.children)));
+}), k_ = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = La(r, t, Pee);
- let i = R.useContext(E_), a = Ma((0, R.useMemo)(() => Oa(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Oee({
- ...za(e),
+ [e, t] = Ra(r, t, Pee);
+ let i = L.useContext(D_), a = Na((0, L.useMemo)(() => ka(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Oee({
+ ...Ba(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ R.createElement(k_.Provider, { value: {
+ return /*#__PURE__*/ L.createElement(A_.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ R.createElement(Fee, {
+ } }, /*#__PURE__*/ L.createElement(Fee, {
...e,
ref: t
}));
-}), k_ = /*#__PURE__*/ (0, R.createContext)(null), Fee = /*#__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)(k_), l = R.useContext(E_), { isFocused: u, isFocusVisible: d, focusProps: f } = Jl(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = eu({
+}), A_ = /*#__PURE__*/ (0, L.createContext)(null), Fee = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, L.useContext)(A_), l = L.useContext(D_), { isFocused: u, isFocusVisible: d, focusProps: f } = Yl(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = tu({
...e,
isDisabled: p
- }), g = Fa({
+ }), g = Ia({
...e,
defaultClassName: s,
values: {
@@ -22140,9 +22140,9 @@ var Nee = /*#__PURE__*/ (0, R.createContext)(null), Pee = /*#__PURE__*/ (0, R.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = Cl(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(Ha.label, {
- ...J(_, n, m, g),
+ }), _ = wl(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ L.createElement(Ua.label, {
+ ...q(_, n, m, g),
ref: t,
"data-selected": i || void 0,
"data-pressed": o || void 0,
@@ -22153,25 +22153,25 @@ var Nee = /*#__PURE__*/ (0, R.createContext)(null), Pee = /*#__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(ju, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
- ...J(r, f),
+ }, /*#__PURE__*/ L.createElement(Mu, { elementType: "span" }, /*#__PURE__*/ L.createElement("input", {
+ ...q(r, f),
ref: c
})), g.children);
-}), A_ = /* @__PURE__ */ new WeakMap();
+}), j_ = /* @__PURE__ */ new WeakMap();
function Iee(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = np({
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = rp({
usage: "search",
sensitivity: "base"
- }), u = (0, R.useMemo)(() => r || new ep(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, L.useMemo)(() => r || new tp(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = Cg({
+ ]), { menuTriggerProps: d, menuProps: f } = wg({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = Lc({
+ }, t, n), { keyboardProps: p } = Rc({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -22187,21 +22187,21 @@ function Iee(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = Yf({
+ }), { typeSelectProps: m } = Xf({
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 } = Ku({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = qu({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = Cl(e, { labelable: !0 }), C = J(m, d, y), w = Ta();
- return A_.set(t, {
+ let S = wl(e, { labelable: !0 }), C = q(m, d, y), w = Ea();
+ return j_.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -22211,13 +22211,13 @@ function Iee(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), _s("keyboard"));
+ e.isDisabled || (n.current?.focus(), vs("keyboard"));
}
},
- triggerProps: J(S, {
+ triggerProps: q(S, {
...C,
isDisabled: i,
- onKeyDown: oa(C.onKeyDown, p.onKeyDown),
+ onKeyDown: sa(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -22241,7 +22241,7 @@ function Iee(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- to(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ no(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], C["aria-label"] && !y["aria-labelledby"] ? C.id : null].filter(Boolean).join(" ")
},
@@ -22263,17 +22263,17 @@ function Iee(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
function Lee(e, t, n) {
- let r = A_.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Au({ style: {
+ let r = j_.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = ju({ style: {
position: "fixed",
top: 0,
left: 0
} });
- qu(e.selectRef, t.defaultValue, t.setValue), Ju({
+ Ju(e.selectRef, t.defaultValue, t.setValue), Yu({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
- let d = t.setValue, f = (0, R.useCallback)((e) => {
- let t = Y(e);
+ let d = t.setValue, f = (0, L.useCallback)((e) => {
+ let t = J(e);
t.multiple ? d(Array.from(t.selectedOptions, (e) => e.value)) : d(e.currentTarget.value);
}, [d]);
return {
@@ -22299,31 +22299,31 @@ function Lee(e, t, n) {
};
}
function Ree(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, R.useRef)(null), c = (0, R.useRef)(null), { containerProps: l, selectProps: u } = Lee({
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, L.useRef)(null), c = (0, L.useRef)(null), { containerProps: l, selectProps: u } = Lee({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
- if (t.collection.size <= 300) return /*#__PURE__*/ R.createElement("div", {
+ if (t.collection.size <= 300) return /*#__PURE__*/ L.createElement("div", {
...l,
"data-testid": "hidden-select-container"
- }, /*#__PURE__*/ R.createElement("label", null, r, /*#__PURE__*/ R.createElement("select", {
+ }, /*#__PURE__*/ L.createElement("label", null, r, /*#__PURE__*/ L.createElement("select", {
...u,
ref: s
- }, /*#__PURE__*/ R.createElement("option", {
+ }, /*#__PURE__*/ L.createElement("option", {
value: "",
label: "\xA0"
}, "\xA0"), [...t.collection.getKeys()].map((e) => {
let n = t.collection.getItem(e);
- if (n && n.type === "item") return /*#__PURE__*/ R.createElement("option", {
+ if (n && n.type === "item") return /*#__PURE__*/ L.createElement("option", {
key: n.key,
value: n.key
}, n.textValue);
- }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ R.createElement("option", {
+ }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ L.createElement("option", {
key: t,
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = A_.get(t) || {};
+ let { validationBehavior: e } = j_.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -22334,7 +22334,7 @@ function Ree(e) {
disabled: o,
value: t ?? ""
};
- return e === "native" ? /*#__PURE__*/ R.createElement("input", {
+ return e === "native" ? /*#__PURE__*/ L.createElement("input", {
key: n,
...r,
ref: n === 0 ? c : null,
@@ -22342,24 +22342,24 @@ function Ree(e) {
type: "text",
required: n === 0 && u.required,
onChange: () => {}
- }) : /*#__PURE__*/ R.createElement("input", {
+ }) : /*#__PURE__*/ L.createElement("input", {
key: n,
...r,
ref: n === 0 ? c : null
});
});
- return /*#__PURE__*/ R.createElement(R.Fragment, null, n);
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, n);
}
return null;
}
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
function zee(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = Nh(e), [i, a] = (0, R.useState)(null), o = (0, R.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = Ph(e), [i, a] = (0, L.useState)(null), o = (0, L.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = nc((0, R.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = rc((0, L.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -22371,12 +22371,12 @@ function zee(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = Mp({
+ }, d = Np({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, R.useMemo)(() => Bee(l), [l]),
+ selectedKeys: (0, L.useMemo)(() => Bee(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -22386,10 +22386,10 @@ function zee(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 = Ru({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, L.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = zu({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
- }), [h, g] = (0, R.useState)(!1), [_] = (0, R.useState)(l);
+ }), [h, g] = (0, L.useState)(!1), [_] = (0, L.useState)(l);
return {
...m,
...d,
@@ -22421,9 +22421,9 @@ function Bee(e) {
function Vee(e) {
return e && e.__esModule ? e.default : e;
}
-var j_ = /*#__PURE__*/ (0, R.createContext)(null), M_ = /*#__PURE__*/ (0, R.createContext)(null), Hee = /*#__PURE__*/ Wc(function(e, t) {
- [e, t] = La(e, t, j_);
- let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, R.useMemo)(() => typeof n == "function" ? n({
+var M_ = /*#__PURE__*/ (0, L.createContext)(null), N_ = /*#__PURE__*/ (0, L.createContext)(null), Hee = /*#__PURE__*/ Gc(function(e, t) {
+ [e, t] = Ra(e, t, M_);
+ let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, L.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
isInvalid: i,
@@ -22437,27 +22437,27 @@ var j_ = /*#__PURE__*/ (0, R.createContext)(null), M_ = /*#__PURE__*/ (0, R.crea
i,
a
]);
- return /*#__PURE__*/ R.createElement(Zc, { content: o }, (n) => /*#__PURE__*/ R.createElement(Wee, {
+ return /*#__PURE__*/ L.createElement(Qc, { content: o }, (n) => /*#__PURE__*/ L.createElement(Wee, {
props: e,
collection: n,
selectRef: t
}));
}), Uee = [
- tu,
- du,
- _u
+ nu,
+ fu,
+ vu
];
function Wee({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = Ia(Wu) || {}, i = e.validationBehavior ?? r ?? "native", a = zee({
+ let { validationBehavior: r } = La(Gu) || {}, i = e.validationBehavior ?? r ?? "native", a = zee({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = Jl({ within: !0 }), c = (0, R.useRef)(null), [l, u] = Ra(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Iee({
- ...za(e),
+ }), { isFocusVisible: o, focusProps: s } = Yl({ within: !0 }), c = (0, L.useRef)(null), [l, u] = za(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Iee({
+ ...Ba(e),
label: u,
validationBehavior: i
- }, a, c), y = (0, R.useMemo)(() => ({
+ }, a, c), y = (0, L.useMemo)(() => ({
isOpen: a.isOpen,
isFocused: a.isFocused,
isFocusVisible: o,
@@ -22471,30 +22471,30 @@ function Wee({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = Fa({
+ ]), b = Ia({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = Cl(e, { global: !0 });
+ }), x = wl(e, { global: !0 });
delete x.id;
- let S = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(Pa, { values: [
- [j_, e],
- [M_, a],
- [N_, p],
- [tu, {
+ let S = (0, L.useRef)(null);
+ return /*#__PURE__*/ L.createElement(Fa, { values: [
+ [M_, e],
+ [N_, a],
+ [P_, p],
+ [nu, {
...d,
ref: l,
elementType: "span"
}],
- [du, {
+ [fu, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [Fg, a],
- [Lh, {
+ [Ig, a],
+ [Rh, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
@@ -22502,18 +22502,18 @@ function Wee({ props: e, selectRef: t, collection: n }) {
"aria-labelledby": m["aria-labelledby"],
clearContexts: Uee
}],
- [Ip, {
+ [Lp, {
...m,
ref: S
}],
- [Lp, a],
- [_u, { slots: {
+ [Rp, a],
+ [vu, { slots: {
description: h,
errorMessage: g
} }],
- [Mu, v]
- ] }, /*#__PURE__*/ R.createElement(Ha.div, {
- ...J(x, b, s),
+ [Nu, v]
+ ] }, /*#__PURE__*/ L.createElement(Ua.div, {
+ ...q(x, b, s),
ref: t,
slot: e.slot || void 0,
"data-focused": a.isFocused || void 0,
@@ -22522,14 +22522,14 @@ function Wee({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ R.createElement(Ree, {
+ }, b.children, /*#__PURE__*/ L.createElement(Ree, {
..._,
autoComplete: e.autoComplete
})));
}
-var N_ = /*#__PURE__*/ (0, R.createContext)(null), Gee = /*#__PURE__*/ Wc(function(e, t) {
- [e, t] = La(e, t, N_);
- let n = (0, R.useContext)(M_), { placeholder: r } = Ia(j_), i = n.selectedItems.map((e) => {
+var P_ = /*#__PURE__*/ (0, L.createContext)(null), Gee = /*#__PURE__*/ Gc(function(e, t) {
+ [e, t] = Ra(e, t, P_);
+ let n = (0, L.useContext)(N_), { placeholder: r } = La(M_), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -22541,44 +22541,44 @@ var N_ = /*#__PURE__*/ (0, R.createContext)(null), Gee = /*#__PURE__*/ Wc(functi
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = hee(), 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 = hee(), o = (0, L.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, L.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
- ]), l = (0, R.useMemo)(() => {
+ ]), l = (0, L.useMemo)(() => {
if (s === "single") return i[0];
let e = a.formatToParts(o);
if (e.length === 0) return null;
let t = 0;
- return e.map((e) => e.type === "element" ? /*#__PURE__*/ R.createElement(R.Fragment, { key: t }, i[t++]) : e.value);
+ return e.map((e) => e.type === "element" ? /*#__PURE__*/ L.createElement(L.Fragment, { key: t }, i[t++]) : e.value);
}, [
s,
a,
o,
i
- ]), u = ec(Vee(Zd), "react-aria-components"), d = Fa({
+ ]), u = tc(Vee(Qd), "react-aria-components"), d = Ia({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
values: {
selectedItem: n.selectedItems[0]?.value ?? null,
- selectedItems: (0, R.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),
+ selectedItems: (0, L.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),
selectedText: c,
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = Cl(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(Ha.span, {
+ }), f = wl(e, { global: !0 });
+ return /*#__PURE__*/ L.createElement(Ua.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ R.createElement(_u.Provider, { value: void 0 }, d.children));
+ }, /*#__PURE__*/ L.createElement(vu.Provider, { value: void 0 }, d.children));
});
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
function Kee(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = ed(e, t, n);
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = td(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -22590,26 +22590,26 @@ function Kee(e, t, n) {
...o
};
}
-for (var qee = /*#__PURE__*/ (0, R.createContext)(null), P_ = /*#__PURE__*/ (0, R.createContext)(null), Jee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+for (var qee = /*#__PURE__*/ (0, L.createContext)(null), F_ = /*#__PURE__*/ (0, L.createContext)(null), Jee = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = La(r, t, qee);
- let i = Ma((0, R.useMemo)(() => Oa(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = nd(e), o = Kee({
- ...za(e),
+ [e, t] = Ra(r, t, qee);
+ let i = Na((0, L.useMemo)(() => ka(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = rd(e), o = Kee({
+ ...Ba(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ R.createElement(Pa, { values: [[P_, a], [F_, {
+ return /*#__PURE__*/ L.createElement(Fa, { values: [[F_, a], [I_, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ R.createElement(Yee, {
+ }]] }, /*#__PURE__*/ L.createElement(Yee, {
...e,
ref: t
}));
-}), F_ = /*#__PURE__*/ (0, R.createContext)(null), Yee = /*#__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)(F_), { isFocused: f, isFocusVisible: p, focusProps: m } = Jl(), h = a || o, g = (0, R.useContext)(P_), { hoverProps: _, isHovered: v } = eu({
+}), I_ = /*#__PURE__*/ (0, L.createContext)(null), Yee = /*#__PURE__*/ (0, L.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, L.useContext)(I_), { isFocused: f, isFocusVisible: p, focusProps: m } = Yl(), h = a || o, g = (0, L.useContext)(F_), { hoverProps: _, isHovered: v } = tu({
...e,
isDisabled: h
- }), y = Fa({
+ }), y = Ia({
...e,
defaultClassName: u,
values: {
@@ -22624,9 +22624,9 @@ for (var qee = /*#__PURE__*/ (0, R.createContext)(null), P_ = /*#__PURE__*/ (0,
isRequired: d || !1,
state: g
}
- }), b = Cl(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(Ha.label, {
- ...J(b, n, _, y),
+ }), b = wl(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ L.createElement(Ua.label, {
+ ...q(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -22638,11 +22638,11 @@ for (var qee = /*#__PURE__*/ (0, R.createContext)(null), P_ = /*#__PURE__*/ (0,
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ R.createElement(ju, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
- ...J(r, m),
+ }, /*#__PURE__*/ L.createElement(Mu, { elementType: "span" }, /*#__PURE__*/ L.createElement("input", {
+ ...q(r, m),
ref: l
})), y.children);
-}), I_ = 10, L_ = 5, R_ = class {
+}), L_ = 10, R_ = 5, z_ = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -22652,7 +22652,7 @@ for (var qee = /*#__PURE__*/ (0, R.createContext)(null), P_ = /*#__PURE__*/ (0,
}
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) > L_ && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > I_ && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > R_ && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > L_ && (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);
@@ -22731,11 +22731,11 @@ for (var qee = /*#__PURE__*/ (0, R.createContext)(null), P_ = /*#__PURE__*/ (0,
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > L_ && i) {
+ if (Math.abs(r - c.lastSwitchY) > R_ && 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 > I_ && a) {
+ if (l > L_ && 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;
}
@@ -22750,7 +22750,7 @@ for (var qee = /*#__PURE__*/ (0, R.createContext)(null), P_ = /*#__PURE__*/ (0,
boundaryContext: null
};
}
-}, z_ = class {
+}, B_ = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -22820,8 +22820,8 @@ for (var qee = /*#__PURE__*/ (0, R.createContext)(null), P_ = /*#__PURE__*/ (0,
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, B_ = "row-header-column-" + Math.random().toString(36).slice(2), V_ = "row-header-column-" + Math.random().toString(36).slice(2); B_ === V_;) V_ = "row-header-column-" + Math.random().toString(36).slice(2);
-function H_(e, t) {
+}, V_ = "row-header-column-" + Math.random().toString(36).slice(2), H_ = "row-header-column-" + Math.random().toString(36).slice(2); V_ === H_;) H_ = "row-header-column-" + Math.random().toString(36).slice(2);
+function U_(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -22905,13 +22905,13 @@ function H_(e, t) {
textValue: ""
}));
}
-var Xee = class extends z_ {
+var Xee = class extends B_ {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: B_,
+ key: V_,
value: null,
textValue: "",
level: 0,
@@ -22926,7 +22926,7 @@ var Xee = class extends z_ {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: V_,
+ key: H_,
value: null,
textValue: "",
level: 0,
@@ -22953,7 +22953,7 @@ var Xee = class extends z_ {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = H_(s, a);
+ let l = U_(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -22979,10 +22979,10 @@ var Xee = class extends z_ {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return dp(this.body.childNodes)?.key ?? null;
+ return fp(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return pp(this.body.childNodes)?.key ?? null;
+ return mp(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -23015,19 +23015,19 @@ var Xee = class extends z_ {
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
function Zee(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || wp(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || Tp(e), i = (0, L.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 = up(n, t);
- e = r === "last" ? pp(i)?.key ?? null : dp(i)?.key ?? null;
+ let i = dp(n, t);
+ e = r === "last" ? mp(i)?.key ?? null : fp(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, R.useMemo)(() => new Ep(t, r), [t, r]), s = (0, R.useRef)(null);
- return (0, R.useEffect)(() => {
+ let o = (0, L.useMemo)(() => new Dp(t, r), [t, r]), s = (0, L.useRef)(null);
+ return (0, L.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;
if (!n) {
@@ -23046,7 +23046,7 @@ function Zee(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...up(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...dp(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);
}
@@ -23070,7 +23070,7 @@ var Qee = {
descending: "ascending"
};
function $ee(e) {
- let [t, n] = (0, R.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, R.useMemo)(() => ({
+ let [t, n] = (0, L.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, L.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
selectionMode: r,
@@ -23080,11 +23080,11 @@ function $ee(e) {
i,
r,
a
- ]), c = jp(e, (0, R.useCallback)((e) => new Xee(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Zee({
+ ]), c = Mp(e, (0, L.useCallback)((e) => new Xee(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Zee({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = nc(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = rc(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -23110,7 +23110,7 @@ function $ee(e) {
};
}
function ete(e, t) {
- let n = (0, R.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
+ let n = (0, L.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
collection: n,
@@ -23119,10 +23119,10 @@ function ete(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var U_ = class {
+var W_ = 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 tte(e.layout) : new $f(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new tte(e.layout) : new ep(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -23158,7 +23158,7 @@ var U_ = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of up(n, this.collection)) {
+ for (let e of dp(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -23192,13 +23192,13 @@ var U_ = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = up(t, this.collection);
- return (this.direction === "rtl" ? pp(e)?.key : dp(e)?.key) ?? null;
+ let e = dp(t, this.collection);
+ return (this.direction === "rtl" ? mp(e)?.key : fp(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = up(n, this.collection), i = (this.direction === "rtl" ? fp(r, t.index - 1) : fp(r, t.index + 1)) ?? null;
+ let r = dp(n, this.collection), i = (this.direction === "rtl" ? pp(r, t.index - 1) : pp(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;
@@ -23207,13 +23207,13 @@ var U_ = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = up(t, this.collection);
- return (this.direction === "rtl" ? dp(e)?.key : pp(e)?.key) ?? null;
+ let e = dp(t, this.collection);
+ return (this.direction === "rtl" ? fp(e)?.key : mp(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = up(n, this.collection), i = (this.direction === "rtl" ? fp(r, t.index + 1) : fp(r, t.index - 1)) ?? null;
+ let r = dp(n, this.collection), i = (this.direction === "rtl" ? pp(r, t.index + 1) : pp(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;
@@ -23224,13 +23224,13 @@ var U_ = 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 ? dp(up(e, this.collection))?.key ?? null : null;
+ return e ? fp(dp(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 = dp(up(e, this.collection))?.key ?? null;
+ n = fp(dp(e, this.collection))?.key ?? null;
}
return n;
}
@@ -23240,13 +23240,13 @@ var U_ = 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 ? pp(up(e, this.collection))?.key ?? null : null;
+ return e ? mp(dp(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 = pp(up(e, this.collection))?.key ?? null;
+ n = mp(dp(e, this.collection))?.key ?? null;
}
return n;
}
@@ -23282,7 +23282,7 @@ var U_ = 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" ? dp(up(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? fp(dp(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
@@ -23301,16 +23301,16 @@ var U_ = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, W_ = /* @__PURE__ */ new WeakMap();
+}, G_ = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
function nte(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 = np({
+ let h = rp({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Bs(), _ = t.selectionManager.disabledBehavior, v = (0, R.useMemo)(() => a || new U_({
+ }), { direction: g } = Vs(), _ = t.selectionManager.disabledBehavior, v = (0, L.useMemo)(() => a || new W_({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -23327,7 +23327,7 @@ function nte(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = Qf({
+ ]), { collectionProps: y } = $f({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -23335,8 +23335,8 @@ function nte(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = Ta(e.id);
- W_.set(t, {
+ }), b = Ea(e.id);
+ G_.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -23348,16 +23348,16 @@ function nte(e, t, n) {
let x = yee({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = Cl(e, { labelable: !0 }), C = (0, R.useCallback)((e) => {
+ }), S = wl(e, { labelable: !0 }), C = (0, L.useCallback)((e) => {
if (m.isFocused) {
- to(e.currentTarget, Y(e)) || m.setFocused(!1);
+ no(e.currentTarget, J(e)) || m.setFocused(!1);
return;
}
- to(e.currentTarget, Y(e)) && m.setFocused(!0);
- }, [m]), w = (0, R.useMemo)(() => ({
+ no(e.currentTarget, J(e)) && m.setFocused(!0);
+ }, [m]), w = (0, L.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = y_(n, { isDisabled: t.collection.size !== 0 }), E = J(S, {
+ }), [C, y.onBlur]), T = b_(n, { isDisabled: t.collection.size !== 0 }), E = q(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
@@ -23366,27 +23366,27 @@ function nte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var G_ = /* @__PURE__ */ new WeakMap();
-function K_(e) {
+var K_ = /* @__PURE__ */ new WeakMap();
+function q_(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
function rte(e, t) {
- let n = G_.get(e);
+ let n = K_.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${K_(t)}`;
+ return `${n}-${q_(t)}`;
}
-function q_(e, t, n) {
- let r = G_.get(e);
+function J_(e, t, n) {
+ let r = K_.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${K_(t)}-${K_(n)}`;
+ return `${r}-${q_(t)}-${q_(n)}`;
}
-function J_(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => q_(e, t, n)).join(" ");
+function Y_(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => J_(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var Y_ = {};
-Y_ = {
+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: "طي",
@@ -23401,8 +23401,8 @@ Y_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var X_ = {};
-X_ = {
+var Z_ = {};
+Z_ = {
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: "Свиване",
@@ -23417,8 +23417,8 @@ X_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var Z_ = {};
-Z_ = {
+var Q_ = {};
+Q_ = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -23433,8 +23433,8 @@ Z_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var Q_ = {};
-Q_ = {
+var $_ = {};
+$_ = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -23449,8 +23449,8 @@ Q_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var $_ = {};
-$_ = {
+var ev = {};
+ev = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -23465,8 +23465,8 @@ $_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var ev = {};
-ev = {
+var tv = {};
+tv = {
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: "Σύμπτυξη",
@@ -23481,8 +23481,8 @@ ev = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var tv = {};
-tv = {
+var nv = {};
+nv = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -23497,8 +23497,8 @@ tv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var nv = {};
-nv = {
+var rv = {};
+rv = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -23513,8 +23513,8 @@ nv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var rv = {};
-rv = {
+var iv = {};
+iv = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -23529,8 +23529,8 @@ rv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var iv = {};
-iv = {
+var av = {};
+av = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -23545,8 +23545,8 @@ iv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var av = {};
-av = {
+var ov = {};
+ov = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -23561,8 +23561,8 @@ av = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var ov = {};
-ov = {
+var sv = {};
+sv = {
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: "כווץ",
@@ -23577,8 +23577,8 @@ ov = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var sv = {};
-sv = {
+var cv = {};
+cv = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -23593,8 +23593,8 @@ sv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var cv = {};
-cv = {
+var lv = {};
+lv = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -23609,8 +23609,8 @@ cv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var lv = {};
-lv = {
+var uv = {};
+uv = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -23625,8 +23625,8 @@ lv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var uv = {};
-uv = {
+var dv = {};
+dv = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -23641,8 +23641,8 @@ uv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var dv = {};
-dv = {
+var fv = {};
+fv = {
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: "접기",
@@ -23657,8 +23657,8 @@ dv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var fv = {};
-fv = {
+var pv = {};
+pv = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -23673,8 +23673,8 @@ fv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var pv = {};
-pv = {
+var mv = {};
+mv = {
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",
@@ -23689,8 +23689,8 @@ pv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var mv = {};
-mv = {
+var hv = {};
+hv = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -23705,8 +23705,8 @@ mv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var hv = {};
-hv = {
+var gv = {};
+gv = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -23721,8 +23721,8 @@ hv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var gv = {};
-gv = {
+var _v = {};
+_v = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -23737,8 +23737,8 @@ gv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var _v = {};
-_v = {
+var vv = {};
+vv = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -23753,8 +23753,8 @@ _v = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var vv = {};
-vv = {
+var yv = {};
+yv = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -23769,8 +23769,8 @@ vv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var yv = {};
-yv = {
+var bv = {};
+bv = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -23785,8 +23785,8 @@ yv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var bv = {};
-bv = {
+var xv = {};
+xv = {
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: "Свернуть",
@@ -23801,8 +23801,8 @@ bv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var xv = {};
-xv = {
+var Sv = {};
+Sv = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -23817,8 +23817,8 @@ xv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var Sv = {};
-Sv = {
+var Cv = {};
+Cv = {
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",
@@ -23833,8 +23833,8 @@ Sv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var Cv = {};
-Cv = {
+var wv = {};
+wv = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -23849,8 +23849,8 @@ Cv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var wv = {};
-wv = {
+var Tv = {};
+Tv = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -23865,8 +23865,8 @@ wv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var Tv = {};
-Tv = {
+var Ev = {};
+Ev = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -23881,8 +23881,8 @@ Tv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var Ev = {};
-Ev = {
+var Dv = {};
+Dv = {
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: "Згорнути",
@@ -23897,8 +23897,8 @@ Ev = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var Dv = {};
-Dv = {
+var Ov = {};
+Ov = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -23913,8 +23913,8 @@ Dv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var Ov = {};
-Ov = {
+var kv = {};
+kv = {
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: "收合",
@@ -23929,46 +23929,46 @@ Ov = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var kv = {};
-kv = {
- "ar-AE": Y_,
- "bg-BG": X_,
- "cs-CZ": Z_,
- "da-DK": Q_,
- "de-DE": $_,
- "el-GR": ev,
- "en-US": tv,
- "es-ES": nv,
- "et-EE": rv,
- "fi-FI": iv,
- "fr-FR": av,
- "he-IL": ov,
- "hr-HR": sv,
- "hu-HU": cv,
- "it-IT": lv,
- "ja-JP": uv,
- "ko-KR": dv,
- "lt-LT": fv,
- "lv-LV": pv,
- "nb-NO": mv,
- "nl-NL": hv,
- "pl-PL": gv,
- "pt-BR": _v,
- "pt-PT": vv,
- "ro-RO": yv,
- "ru-RU": bv,
- "sk-SK": xv,
- "sl-SI": Sv,
- "sr-SP": Cv,
- "sv-SE": wv,
- "tr-TR": Tv,
- "uk-UA": Ev,
- "zh-CN": Dv,
- "zh-TW": Ov
+var Av = {};
+Av = {
+ "ar-AE": X_,
+ "bg-BG": Z_,
+ "cs-CZ": Q_,
+ "da-DK": $_,
+ "de-DE": ev,
+ "el-GR": tv,
+ "en-US": nv,
+ "es-ES": rv,
+ "et-EE": iv,
+ "fi-FI": av,
+ "fr-FR": ov,
+ "he-IL": sv,
+ "hr-HR": cv,
+ "hu-HU": lv,
+ "it-IT": uv,
+ "ja-JP": dv,
+ "ko-KR": fv,
+ "lt-LT": pv,
+ "lv-LV": mv,
+ "nb-NO": hv,
+ "nl-NL": gv,
+ "pl-PL": _v,
+ "pt-BR": vv,
+ "pt-PT": yv,
+ "ro-RO": bv,
+ "ru-RU": xv,
+ "sk-SK": Sv,
+ "sl-SI": Cv,
+ "sr-SP": wv,
+ "sv-SE": Tv,
+ "tr-TR": Ev,
+ "uk-UA": Dv,
+ "zh-CN": Ov,
+ "zh-TW": kv
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var ite = class extends U_ {
+var ite = class extends W_ {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -23976,7 +23976,7 @@ var ite = class extends U_ {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = dp(up(n, this.collection));
+ let e = fp(dp(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);
@@ -23997,13 +23997,13 @@ var ite = class extends U_ {
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 up(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of dp(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 = [...up(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...dp(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -24032,7 +24032,7 @@ var ite = class extends U_ {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of up(o, this.collection)) {
+ for (let r of dp(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);
@@ -24050,10 +24050,10 @@ function ate(e) {
return e && e.__esModule ? e.default : e;
}
function ote(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = np({
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = rp({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Bs(), l = t.selectionManager.disabledBehavior, u = (0, R.useMemo)(() => r || new ite({
+ }), { direction: c } = Vs(), l = t.selectionManager.disabledBehavior, u = (0, L.useMemo)(() => r || new ite({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -24072,43 +24072,43 @@ function ote(e, t, n) {
s,
a,
o
- ]), d = Ta(e.id);
- G_.set(t, d);
+ ]), d = Ea(e.id);
+ K_.set(t, d);
let { gridProps: f } = nte({
...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 = ec(ate(kv), "@react-aria/table"), g = (0, R.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = tc(ate(Av), "@react-aria/table"), g = (0, L.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = Ou(g);
- return yu(() => {
- g && cu(g, "assertive", 500);
- }, [g]), { gridProps: J(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
+ ]), _ = ku(g);
+ return bu(() => {
+ g && lu(g, "assertive", 500);
+ }, [g]), { gridProps: q(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function Av(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Bs(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = W_.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, R.useRef)(null), h = () => {
+function jv(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Vs(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = G_.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, L.useRef)(null), h = () => {
if (n.current) {
- let e = zf(n.current);
+ let e = Bf(n.current);
if (p === "child") {
- if (io(n.current) && n.current !== no(Ga(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? jv(e) : e.firstChild();
+ if (ao(n.current) && n.current !== ro(Ka(n.current))) return;
+ let r = t.selectionManager.childFocusStrategy === "last" ? Mv(e) : e.firstChild();
if (r) {
- Sc(r);
+ Cc(r);
return;
}
}
- (m.current != null && r.key !== m.current || !io(n.current)) && Sc(n.current);
+ (m.current != null && r.key !== m.current || !ao(n.current)) && Cc(n.current);
}
- }, { itemProps: g, isPressed: _ } = sp({
+ }, { itemProps: g, isPressed: _ } = cp({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -24117,50 +24117,50 @@ function Av(e, t, n) {
shouldSelectOnPressUp: s,
onAction: d ? () => d(r.key) : c,
isDisabled: t.collection.size === 0
- }), v = J(g, {
+ }), v = q(g, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = no(Ga(n.current));
- if (!to(e.currentTarget, Y(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = zf(n.current);
+ let i = ro(Ka(n.current));
+ if (!no(e.currentTarget, J(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = Bf(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Sc(t), Tu(t, { containingElement: xu(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Cc(t), Eu(t, { containingElement: Su(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (Sc(n.current), Tu(n.current, { containingElement: xu(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : jv(a), t && (Sc(t), Tu(t, { containingElement: xu(n.current) })));
+ p === "cell" && l === "rtl" ? (Cc(n.current), Eu(n.current, { containingElement: Su(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : Mv(a), t && (Cc(t), Eu(t, { containingElement: Su(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Sc(t), Tu(t, { containingElement: xu(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Cc(t), Eu(t, { containingElement: Su(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (Sc(n.current), Tu(n.current, { containingElement: xu(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? jv(a) : a.firstChild(), t && (Sc(t), Tu(t, { containingElement: xu(n.current) })));
+ p === "cell" && l === "ltr" ? (Cc(n.current), Eu(n.current, { containingElement: Su(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? Mv(a) : a.firstChild(), t && (Cc(t), Eu(t, { containingElement: Su(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && to(n.current, Y(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && no(n.current, J(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = no(Ga(n.current));
- if (!(!to(e.currentTarget, Y(e)) || t.isKeyboardNavigationDisabled || !n.current || !r)) {
- if (f === "tab" && Y(e) !== n.current && e.key !== "Tab") {
+ let r = ro(Ka(n.current));
+ if (!(!no(e.currentTarget, J(e)) || t.isKeyboardNavigationDisabled || !n.current || !r)) {
+ if (f === "tab" && J(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
if (e.key === "Tab" && f === "tab") {
- let t = zf(n.current, { tabbable: !0 });
+ let t = Bf(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -24169,12 +24169,12 @@ function Av(e, t, n) {
"aria-colindex": r.colIndex == null ? void 0 : r.colIndex + 1,
colSpan: i ? void 0 : r.colSpan,
onFocus: (e) => {
- if (m.current = r.key, Y(e) !== n.current) {
- hs() || t.selectionManager.setFocusedKey(r.key);
+ if (m.current = r.key, J(e) !== n.current) {
+ gs() || t.selectionManager.setFocusedKey(r.key);
return;
}
- p === "child" && e.relatedTarget && to(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && no(Ga(n.current)) === n.current && h();
+ p === "child" && e.relatedTarget && no(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && ro(Ka(n.current)) === n.current && h();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -24189,7 +24189,7 @@ function Av(e, t, n) {
isPressed: _
};
}
-function jv(e) {
+function Mv(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -24202,21 +24202,21 @@ function ste(e) {
return e && e.__esModule ? e.default : e;
}
function cte(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = Av({
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = jv({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = zl({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Bl({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = Vc({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !Bo() && (u = d ? f : "none");
- let p = ec(ste(kv), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && Bo() && (m = `${m}, ${p.format(f)}`));
- let h = Ou(m), g = t.collection.size === 0;
- return (0, R.useEffect)(() => {
+ }), { focusableProps: l } = Hc({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !Vo() && (u = d ? f : "none");
+ let p = tc(ste(Av), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && Vo() && (m = `${m}, ${p.format(f)}`));
+ let h = ku(m), g = t.collection.size === 0;
+ return (0, L.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
g,
@@ -24224,7 +24224,7 @@ function cte(e, t, n) {
r.key
]), {
columnHeaderProps: {
- ...J(l, a, s, h, g ? { tabIndex: -1 } : null),
+ ...q(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
id: rte(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
@@ -24236,13 +24236,13 @@ function cte(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
function lte(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = W_.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = sp({
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = G_.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = cp({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? oa(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? sa(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -24260,7 +24260,7 @@ function lte(e, t, n) {
function ute(e) {
return e && e.__esModule ? e.default : e;
}
-var Mv = {
+var Nv = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -24271,20 +24271,20 @@ var Mv = {
}
};
function dte(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = lte(e, t, n), { direction: s } = Bs();
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = lte(e, t, n), { direction: s } = Vs();
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 = ec(ute(kv), "@react-aria/table"), u = ks({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = tc(ute(Av), "@react-aria/table"), u = As({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": J_(t, r.key)
+ "aria-labelledby": Y_(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = Nv(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 = Nv(t.collection, a);
+ let n = Pv(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 = Pv(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === Mv.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === Mv.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 === Nv.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === Nv.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,
@@ -24302,17 +24302,17 @@ function dte(e, t, n) {
};
}
}
- let p = Xo(r.props), m = o.hasAction ? p : {};
+ let p = Zo(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
- ...J(a, d, m),
- "aria-labelledby": J_(t, r.key)
+ ...q(a, d, m),
+ "aria-labelledby": Y_(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function Nv(e, t) {
+function Pv(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
@@ -24324,8 +24324,8 @@ function fte(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
function pte(e, t, n) {
- let { gridCellProps: r, isPressed: i } = Av(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = q_(t, e.node.parentKey, a)), {
+ let { gridCellProps: r, isPressed: i } = jv(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = J_(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
@@ -24339,13 +24339,13 @@ function hte(e, t) {
let { key: n } = e, { checkboxProps: r } = xee(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${J_(t, n)}`
+ "aria-labelledby": `${r.id} ${Y_(t, n)}`
} };
}
function gte(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": ec(mte(kv), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": tc(mte(Av), "@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,
@@ -24359,12 +24359,12 @@ function _te() {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function Pv() {
+function Fv() {
return _te();
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var vte = class extends uc {
+var vte = class extends dc {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -24379,7 +24379,7 @@ var vte = class extends uc {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new qv(-2);
+ return new Jv(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -24405,7 +24405,7 @@ var vte = class extends uc {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = H_(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 = U_(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;
@@ -24486,11 +24486,11 @@ var vte = class extends uc {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Hv(-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 Uv(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, yte = /*#__PURE__*/ (0, R.createContext)(null), bte = /*#__PURE__*/ (0, R.createContext)(null), Fv = /*#__PURE__*/ (0, R.createContext)(null), Iv = /*#__PURE__*/ (0, R.createContext)(null), Lv = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = La(e, t, bte);
- let n = wp(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, R.useMemo)(() => ({
+}, yte = /*#__PURE__*/ (0, L.createContext)(null), bte = /*#__PURE__*/ (0, L.createContext)(null), Iv = /*#__PURE__*/ (0, L.createContext)(null), Lv = /*#__PURE__*/ (0, L.createContext)(null), Rv = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ [e, t] = Ra(e, t, bte);
+ let n = Tp(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, L.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -24500,26 +24500,26 @@ var vte = class extends uc {
i,
a,
o
- ]), c = /*#__PURE__*/ R.createElement(Vv.Provider, { value: s }, /*#__PURE__*/ R.createElement(ll, e));
- return /*#__PURE__*/ R.createElement(Zc, {
+ ]), c = /*#__PURE__*/ L.createElement(Hv.Provider, { value: s }, /*#__PURE__*/ L.createElement(ul, e));
+ return /*#__PURE__*/ L.createElement(Qc, {
content: c,
createCollection: () => new vte()
- }, (r) => /*#__PURE__*/ R.createElement(Bv, {
+ }, (r) => /*#__PURE__*/ L.createElement(Vv, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), Rv = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(hl);
- return n ? /*#__PURE__*/ R.createElement(Ha.div, {
+}), zv = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, L.useContext)(gl);
+ return n ? /*#__PURE__*/ L.createElement(Ua.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(Ha.table, {
+ }) : /*#__PURE__*/ L.createElement(Ua.table, {
...e,
ref: t
});
-}), zv = {
+}), Bv = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -24529,12 +24529,12 @@ var vte = class extends uc {
rtl: "ArrowRight"
}
};
-function Bv({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = La(e, t, rc);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, R.useContext)(yte);
- t = Ma((0, R.useMemo)(() => Oa(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = nc(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]);
+function Vv({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = Ra(e, t, ic);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, L.useContext)(yte);
+ t = Na((0, L.useMemo)(() => ka(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = rc(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ r = (0, L.useMemo)(() => r.withExpandedKeys(l), [r, l]);
let d = $ee({
...s,
collection: r,
@@ -24542,13 +24542,13 @@ function Bv({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = ete(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, R.useContext)(hl), { dragAndDropHooks: _ } = e, { gridProps: v } = ote({
+ }), f = ete(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, L.useContext)(gl), { dragAndDropHooks: _ } = e, { gridProps: v } = ote({
...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 } = Bs(), [k] = (0, R.useState)(() => new R_());
+ (0, L.useRef)(b), (0, L.useRef)(x), (0, L.useEffect)(() => {}, [b, x]);
+ let S, C, w, T = !1, E = null, D = (0, L.useRef)(null), { direction: O } = Vs(), [k] = (0, L.useState)(() => new z_());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -24556,14 +24556,14 @@ function Bv({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
preview: _.renderDragPreview ? D : void 0
}), _.useDraggableCollection({}, S, t);
let e = _.DragPreview;
- E = _.renderDragPreview ? /*#__PURE__*/ R.createElement(e, { ref: D }, _.renderDragPreview) : null;
+ E = _.renderDragPreview ? /*#__PURE__*/ L.createElement(e, { ref: D }, _.renderDragPreview) : null;
}
if (x && _) {
C = _.useDroppableCollectionState({
collection: f.collection,
selectionManager: y
});
- let e = new ep({
+ let e = new tp({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -24583,12 +24583,12 @@ function Bv({ 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 === zv.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === zv.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === Bv.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Bv.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 } = Jl(), N = Fa({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = Yl(), N = Ia({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -24604,20 +24604,20 @@ function Bv({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let I = Cl(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(Pa, { values: [
- [Fv, f],
- [Iv, F],
- [Qd, {
+ let te = wl(e, { global: !0 });
+ return /*#__PURE__*/ L.createElement(Fa, { values: [
+ [Iv, f],
+ [Lv, F],
+ [$d, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [$d, { render: Ote }],
- [rc, null],
- [ic, null]
- ] }, /*#__PURE__*/ R.createElement(yf, null, /*#__PURE__*/ R.createElement(Rv, {
- ...J(I, N, v, A, w?.collectionProps),
+ [ef, { render: Ote }],
+ [ic, null],
+ [ac, null]
+ ] }, /*#__PURE__*/ L.createElement(bf, null, /*#__PURE__*/ L.createElement(zv, {
+ ...q(te, N, v, A, w?.collectionProps),
style: ee,
ref: t,
slot: e.slot || void 0,
@@ -24626,98 +24626,98 @@ function Bv({ 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(of, null, /*#__PURE__*/ R.createElement(g, {
+ }, /*#__PURE__*/ L.createElement(sf, null, /*#__PURE__*/ L.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: nf(y, _, C)
+ persistedKeys: rf(y, _, C)
})))), E);
}
-var Vv = /*#__PURE__*/ (0, R.createContext)(null), Hv = class extends ac {
+var Hv = /*#__PURE__*/ (0, L.createContext)(null), Uv = class extends oc {
static {
this.type = "tableheader";
}
-}, Uv = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(hl);
- return n ? /*#__PURE__*/ R.createElement(Ha.div, {
+}, Wv = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, L.useContext)(gl);
+ return n ? /*#__PURE__*/ L.createElement(Ua.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(Ha.thead, {
+ }) : /*#__PURE__*/ L.createElement(Ua.thead, {
...e,
ref: t
});
-}), Wv = /*#__PURE__*/ ol(Hv, (e, t) => {
- let n = (0, R.useContext)(Fv).collection, r = hc({
+}), Gv = /*#__PURE__*/ sl(Uv, (e, t) => {
+ let n = (0, L.useContext)(Iv).collection, r = gc({
items: n.headerRows,
- children: (0, R.useCallback)((e) => {
+ children: (0, L.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ R.createElement(xte, { item: e });
+ case "headerrow": return /*#__PURE__*/ L.createElement(xte, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = Pv(), { hoverProps: a, isHovered: o } = eu({
+ }), { rowGroupProps: i } = Fv(), { hoverProps: a, isHovered: o } = tu({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = Fa({
+ }), s = Ia({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ R.createElement(Uv, {
- ...J(Cl(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ L.createElement(Wv, {
+ ...q(wl(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ R.createElement(ll, {
+}, (e) => /*#__PURE__*/ L.createElement(ul, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), Gv = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(hl);
- return n ? /*#__PURE__*/ R.createElement("div", {
+}, e.children)), Kv = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, L.useContext)(gl);
+ return n ? /*#__PURE__*/ L.createElement("div", {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement("tr", {
+ }) : /*#__PURE__*/ L.createElement("tr", {
...e,
ref: t
});
});
function xte({ item: e }) {
- let t = (0, R.useRef)(null), n = (0, R.useContext)(Fv), { isVirtualized: r, CollectionBranch: i } = (0, R.useContext)(hl), { rowProps: a } = fte({
+ let t = (0, L.useRef)(null), n = (0, L.useContext)(Iv), { isVirtualized: r, CollectionBranch: i } = (0, L.useContext)(gl), { rowProps: a } = fte({
node: e,
isVirtualized: r
}, n, t), { checkboxProps: o } = gte(n);
- return /*#__PURE__*/ R.createElement(Gv, {
+ return /*#__PURE__*/ L.createElement(Kv, {
...a,
ref: t
- }, /*#__PURE__*/ R.createElement(Pa, { values: [[id, { slots: { selection: o } }], [ad, { slots: { selection: o } }]] }, /*#__PURE__*/ R.createElement(i, {
+ }, /*#__PURE__*/ L.createElement(Fa, { values: [[ad, { slots: { selection: o } }], [od, { slots: { selection: o } }]] }, /*#__PURE__*/ L.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Ste = class extends ac {
+var Ste = class extends oc {
static {
this.type = "column";
}
-}, Cte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(hl);
- return n ? /*#__PURE__*/ R.createElement(Ha.div, {
+}, Cte = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, L.useContext)(gl);
+ return n ? /*#__PURE__*/ L.createElement(Ua.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(Ha.th, {
+ }) : /*#__PURE__*/ L.createElement(Ua.th, {
...e,
ref: t
});
-}), Kv = /*#__PURE__*/ al(Ste, (e, t, n) => {
- let r = Ma(t), i = (0, R.useContext)(Fv), { isVirtualized: a } = (0, R.useContext)(hl), { columnHeaderProps: o, isPressed: s } = cte({
+}), qv = /*#__PURE__*/ ol(Ste, (e, t, n) => {
+ let r = Na(t), i = (0, L.useContext)(Iv), { isVirtualized: a } = (0, L.useContext)(gl), { columnHeaderProps: o, isPressed: s } = cte({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = Jl(), d = (0, R.useContext)(Iv), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = Yl(), d = (0, L.useContext)(Lv), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = eu({ isDisabled: !e.allowsSorting }), h = Fa({
+ let { hoverProps: p, isHovered: m } = tu({ isDisabled: !e.allowsSorting }), h = Ia({
...e,
id: void 0,
children: n.rendered,
@@ -24743,9 +24743,9 @@ var Ste = class extends ac {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = Cl(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ R.createElement(Cte, {
- ...J(_, o, u, p),
+ let _ = wl(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ L.createElement(Cte, {
+ ...q(_, o, u, p),
...h,
style: g,
ref: r,
@@ -24756,28 +24756,28 @@ var Ste = class extends ac {
"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(Pa, { values: [[wte, {
+ }, /*#__PURE__*/ L.createElement(Fa, { values: [[wte, {
column: n,
triggerRef: r
- }], [hl, fl]] }, h.children));
-}), wte = /*#__PURE__*/ (0, R.createContext)(null), qv = class extends oc {
+ }], [gl, pl]] }, h.children));
+}), wte = /*#__PURE__*/ (0, L.createContext)(null), Jv = class extends sc {
static {
this.type = "tablebody";
}
-}, Tte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(hl);
- return n ? /*#__PURE__*/ R.createElement(Ha.div, {
+}, Tte = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, L.useContext)(gl);
+ return n ? /*#__PURE__*/ L.createElement(Ua.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(Ha.tbody, {
+ }) : /*#__PURE__*/ L.createElement(Ua.tbody, {
...e,
ref: t
});
-}), Jv = /*#__PURE__*/ ol(qv, (e, t, n) => {
- let r = (0, R.useContext)(Fv), { isVirtualized: i } = (0, R.useContext)(hl), a = r.collection, { CollectionBranch: o } = (0, R.useContext)(hl), { 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 = {
+}), Yv = /*#__PURE__*/ sl(Jv, (e, t, n) => {
+ let r = (0, L.useContext)(Iv), { isVirtualized: i } = (0, L.useContext)(gl), a = r.collection, { CollectionBranch: o } = (0, L.useContext)(gl), { dragAndDropHooks: s, dropState: c } = (0, L.useContext)($d), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = Fa({
+ }, p = Ia({
...e,
id: void 0,
children: void 0,
@@ -24786,33 +24786,33 @@ var Ste = class extends ac {
}), 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(Xv, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ L.createElement(Zv, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ R.createElement(Qv, {
+ }, /*#__PURE__*/ L.createElement($v, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = Pv(), _ = Cl(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(Tte, {
- ...J(_, p, g),
+ let { rowGroupProps: g } = Fv(), _ = wl(e, { global: !0 });
+ return /*#__PURE__*/ L.createElement(Tte, {
+ ...q(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ R.createElement(Nte, null), /*#__PURE__*/ R.createElement(o, {
+ }, l && /*#__PURE__*/ L.createElement(Nte, null), /*#__PURE__*/ L.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: tf(s, c)
+ renderDropIndicator: nf(s, c)
}), m);
});
-(class extends oc {
+(class extends sc {
static {
this.type = "tablefooter";
}
});
-var Yv = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Ete = class extends ac {
+var Xv = /*#__PURE__*/ (0, L.createContext)({ isFocusVisibleWithinRow: !1 }), Ete = class extends oc {
static {
this.type = "item";
}
@@ -24824,21 +24824,21 @@ var Yv = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Et
}
return null;
}
-}, Xv = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(hl);
- return n ? /*#__PURE__*/ R.createElement(Ha.div, {
+}, Zv = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, L.useContext)(gl);
+ return n ? /*#__PURE__*/ L.createElement(Ua.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(Ha.tr, {
+ }) : /*#__PURE__*/ L.createElement(Ua.tr, {
...e,
ref: t
});
-}), Zv = /*#__PURE__*/ ol(Ete, (e, t, n) => {
- let r = Ma(t), i = (0, R.useContext)(Fv), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(Qd), { isVirtualized: c, CollectionBranch: l } = (0, R.useContext)(hl), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = dte({
+}), Qv = /*#__PURE__*/ sl(Ete, (e, t, n) => {
+ let r = Na(t), i = (0, L.useContext)(Iv), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, L.useContext)($d), { isVirtualized: c, CollectionBranch: l } = (0, L.useContext)(gl), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = dte({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = Jl(), { isFocusVisible: _, focusProps: v } = Jl({ within: !0 }), { hoverProps: y, isHovered: b } = eu({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = Yl(), { isFocusVisible: _, focusProps: v } = Yl({ within: !0 }), { hoverProps: y, isHovered: b } = tu({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
@@ -24848,17 +24848,17 @@ var Yv = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Et
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, R.useRef)(null), { visuallyHiddenProps: T } = Au();
+ let C, w = (0, L.useRef)(null), { visuallyHiddenProps: T } = ju();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
dropPosition: "on"
} }, s, w));
- let E = (0, R.useRef)(null);
- (0, R.useEffect)(() => {
+ let E = (0, L.useRef)(null);
+ (0, L.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 = Fa({
+ 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 = Ia({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -24879,21 +24879,21 @@ var Yv = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Et
isExpanded: j,
level: n.level + 1
}
- }), N = Cl(e, { global: !0 });
- return delete N.id, delete N.onClick, /*#__PURE__*/ R.createElement(R.Fragment, null, C && !C.isHidden && /*#__PURE__*/ R.createElement(Xv, {
+ }), N = wl(e, { global: !0 });
+ return delete N.id, delete N.onClick, /*#__PURE__*/ L.createElement(L.Fragment, null, C && !C.isHidden && /*#__PURE__*/ L.createElement(Zv, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ R.createElement(Qv, {
+ }, /*#__PURE__*/ L.createElement($v, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
- }, /*#__PURE__*/ R.createElement("div", {
+ }, /*#__PURE__*/ L.createElement("div", {
role: "button",
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ R.createElement(Xv, {
- ...J(N, M, d, g, y, S?.dragProps, v),
+ }))), /*#__PURE__*/ L.createElement(Zv, {
+ ...q(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
"data-selected": p.isSelected || void 0,
@@ -24908,17 +24908,17 @@ var Yv = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Et
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ R.createElement(Pa, { values: [
- [id, { slots: {
- [Na]: {},
+ }, /*#__PURE__*/ L.createElement(Fa, { values: [
+ [ad, { slots: {
+ [Pa]: {},
selection: x
} }],
- [ad, { slots: {
- [Na]: {},
+ [od, { slots: {
+ [Pa]: {},
selection: x
} }],
- [du, { slots: {
- [Na]: {},
+ [fu, { slots: {
+ [Pa]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -24926,35 +24926,35 @@ var Yv = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Et
style: { pointerEvents: "none" }
}
} }],
- [sf, { isSelected: p.isSelected }],
- [Yv, { isFocusVisibleWithinRow: _ }]
- ] }, /*#__PURE__*/ R.createElement(l, {
+ [cf, { isSelected: p.isSelected }],
+ [Xv, { isFocusVisibleWithinRow: _ }]
+ ] }, /*#__PURE__*/ L.createElement(l, {
collection: i.collection,
parent: n
}))));
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ R.createElement(ll, {
+ return /*#__PURE__*/ L.createElement(ul, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), Dte = class extends ac {
+}), Dte = class extends oc {
static {
this.type = "cell";
}
-}, Qv = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(hl);
- return n ? /*#__PURE__*/ R.createElement(Ha.div, {
+}, $v = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, L.useContext)(gl);
+ return n ? /*#__PURE__*/ L.createElement(Ua.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(Ha.td, {
+ }) : /*#__PURE__*/ L.createElement(Ua.td, {
...e,
ref: t
});
-}), $v = /*#__PURE__*/ al(Dte, (e, t, n) => {
- let r = Ma(t), i = (0, R.useContext)(Fv), { dragState: a } = (0, R.useContext)(Qd), { isVirtualized: o } = (0, R.useContext)(hl);
+}), ey = /*#__PURE__*/ ol(Dte, (e, t, n) => {
+ let r = Na(t), i = (0, L.useContext)(Iv), { dragState: a } = (0, L.useContext)($d), { isVirtualized: o } = (0, L.useContext)(gl);
n.column = i.collection.columns[n.index];
let { gridCellProps: s, isPressed: c } = pte({
node: n,
@@ -24962,7 +24962,7 @@ var Yv = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Et
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = Jl(), { hoverProps: f, isHovered: p } = eu({}), { isFocusVisibleWithinRow: m } = (0, R.useContext)(Yv), 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 = Fa({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = Yl(), { hoverProps: f, isHovered: p } = tu({}), { isFocusVisibleWithinRow: m } = (0, L.useContext)(Xv), 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 = Ia({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -24981,9 +24981,9 @@ var Yv = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Et
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = Cl(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ R.createElement(Qv, {
- ...J(S, x, s, d, f),
+ }), S = wl(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ L.createElement($v, {
+ ...q(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
@@ -24996,14 +24996,14 @@ var Yv = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Et
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ R.createElement(hl.Provider, { value: fl }, x.children));
+ }, /*#__PURE__*/ L.createElement(gl.Provider, { value: pl }, x.children));
});
function Ote(e, t) {
- t = Ma(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);
+ t = Na(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, L.useContext)($d), i = (0, L.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(Mte, {
+ return /*#__PURE__*/ L.createElement(Mte, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -25012,71 +25012,71 @@ function Ote(e, t) {
ref: t
});
}
-var kte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(hl);
- return n ? /*#__PURE__*/ R.createElement(Ha.div, {
+var kte = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, L.useContext)(gl);
+ return n ? /*#__PURE__*/ L.createElement(Ua.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(Ha.tr, {
+ }) : /*#__PURE__*/ L.createElement(Ua.tr, {
...e,
ref: t
});
-}), Ate = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(hl);
- return n ? /*#__PURE__*/ R.createElement(Ha.div, {
+}), Ate = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, L.useContext)(gl);
+ return n ? /*#__PURE__*/ L.createElement(Ua.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(Ha.td, {
+ }) : /*#__PURE__*/ L.createElement(Ua.td, {
...e,
ref: t
});
});
function jte(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, R.useContext)(Fv), { visuallyHiddenProps: c } = Au(), l = Fa({
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, L.useContext)(Iv), { visuallyHiddenProps: c } = ju(), l = Ia({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ R.createElement(kte, {
- ...Cl(e, { global: !0 }),
+ return /*#__PURE__*/ L.createElement(kte, {
+ ...wl(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ R.createElement(Ate, {
+ }, /*#__PURE__*/ L.createElement(Ate, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
- }, /*#__PURE__*/ R.createElement("div", {
+ }, /*#__PURE__*/ L.createElement("div", {
...c,
role: "button",
...n,
ref: i
}), l.children));
}
-var Mte = /*#__PURE__*/ (0, R.forwardRef)(jte);
+var Mte = /*#__PURE__*/ (0, L.forwardRef)(jte);
function Nte() {
- let e = (0, R.useContext)(Fv), { 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 } = Au();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ R.createElement(Xv, {
+ let e = (0, L.useContext)(Iv), { dragAndDropHooks: t, dropState: n } = (0, L.useContext)($d), r = (0, L.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = ju();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ L.createElement(Zv, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ R.createElement(Qv, {
+ }, /*#__PURE__*/ L.createElement($v, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
- }, /*#__PURE__*/ R.createElement("div", {
+ }, /*#__PURE__*/ L.createElement("div", {
role: "button",
...o,
...i,
ref: r
})));
}
-al(sc, function(e, t, n) {
- let r = (0, R.useContext)(Fv), { isVirtualized: i } = (0, R.useContext)(hl), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, R.useRef)(null);
- Fp((0, R.useMemo)(() => ({
+ol(cc, function(e, t, n) {
+ let r = (0, L.useContext)(Iv), { isVirtualized: i } = (0, L.useContext)(gl), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, L.useRef)(null);
+ Ip((0, L.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -25086,7 +25086,7 @@ al(sc, function(e, t, n) {
s,
r?.collection
]), u);
- let d = Fa({
+ let d = Ia({
...c,
id: void 0,
children: n.rendered,
@@ -25094,13 +25094,13 @@ al(sc, 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(Xv, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(Zv, {
style: { height: 0 },
- inert: bp(!0)
- }, /*#__PURE__*/ R.createElement(Qv, { style: {
+ inert: xp(!0)
+ }, /*#__PURE__*/ L.createElement($v, { style: {
padding: 0,
border: 0
- } }, /*#__PURE__*/ R.createElement("div", {
+ } }, /*#__PURE__*/ L.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: u,
style: {
@@ -25108,14 +25108,14 @@ al(sc, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ R.createElement(Xv, {
- ...J(Cl(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ L.createElement(Zv, {
+ ...q(wl(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ R.createElement(Qv, {
+ }, /*#__PURE__*/ L.createElement($v, {
role: "rowheader",
...p,
style: m
@@ -25123,28 +25123,28 @@ al(sc, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var ey = /* @__PURE__ */ new WeakMap();
-function ty(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${ey.get(e)}-${n}-${t}`) : "";
+var ty = /* @__PURE__ */ new WeakMap();
+function ny(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${ty.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
function Pte(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 } = sp({
+ 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 } = cp({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = ty(t, r, "tab"), m = ty(t, r, "tabpanel"), { tabIndex: h } = d, g = Cl(u?.props, { labelable: !0 });
+ }), p = ny(t, r, "tab"), m = ny(t, r, "tabpanel"), { tabIndex: h } = d, g = wl(u?.props, { labelable: !0 });
delete g.id;
- let _ = Zo(u?.props), { focusableProps: v } = Vc({
+ let _ = Qo(u?.props), { focusableProps: v } = Hc({
...u?.props,
isDisabled: l
}, n);
return {
- tabProps: J(g, v, _, d, {
+ tabProps: q(g, v, _, d, {
id: p,
"aria-selected": c,
"aria-disabled": l || void 0,
@@ -25160,11 +25160,11 @@ function Pte(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
function Fte(e, t, n) {
- let r = y_(n) ? void 0 : 0, i = ty(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: J(ks({
+ let r = b_(n) ? void 0 : 0, i = ny(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: q(As({
...e,
id: i,
- "aria-labelledby": ty(t, t?.selectedKey, "tab")
+ "aria-labelledby": ny(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -25219,10 +25219,10 @@ var Ite = class {
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
function Lte(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Bs(), { collectionProps: l } = Qf({
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Vs(), { collectionProps: l } = $f({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, R.useMemo)(() => new Ite(a, c, r, s), [
+ keyboardDelegate: (0, L.useMemo)(() => new Ite(a, c, r, s), [
a,
s,
r,
@@ -25232,9 +25232,9 @@ function Lte(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = Ta();
- return ey.set(t, u), { tabListProps: {
- ...J(l, ks({
+ }), u = Ea();
+ return ty.set(t, u), { tabListProps: {
+ ...q(l, As({
...e,
id: u
})),
@@ -25246,7 +25246,7 @@ function Lte(e, t, n) {
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
function Rte(e) {
- let [t, n] = nc(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, R.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = Mp({
+ let [t, n] = rc(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, L.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = Np({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -25276,17 +25276,17 @@ function zte(e) {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? ny(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)(() => {
+ defaultSelectedKey: e.defaultSelectedKey ?? ry(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ }), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, L.useRef)(i);
+ return (0, L.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = ny(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 = ry(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 ny(e, t) {
+function ry(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);
@@ -25296,13 +25296,13 @@ function ny(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var ry = /*#__PURE__*/ (0, R.createContext)(null), iy = /*#__PURE__*/ (0, R.createContext)(null), ay = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = La(e, t, ry);
+var iy = /*#__PURE__*/ (0, L.createContext)(null), ay = /*#__PURE__*/ (0, L.createContext)(null), oy = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ [e, t] = Ra(e, t, iy);
let { children: n, orientation: r = "horizontal" } = e;
- return n = (0, R.useMemo)(() => typeof n == "function" ? n({
+ return n = (0, L.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ R.createElement(Zc, { content: n }, (n) => /*#__PURE__*/ R.createElement(Bte, {
+ }) : n, [n, r]), /*#__PURE__*/ L.createElement(Qc, { content: n }, (n) => /*#__PURE__*/ L.createElement(Bte, {
props: e,
collection: n,
tabsRef: t
@@ -25313,7 +25313,7 @@ function Bte({ props: e, tabsRef: t, collection: n }) {
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = Jl({ within: !0 }), c = (0, R.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = Yl({ within: !0 }), c = (0, L.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -25321,33 +25321,33 @@ function Bte({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = Fa({
+ ]), l = Ia({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = Cl(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(Ha.div, {
- ...J(u, l, a),
+ }), u = wl(e, { global: !0 });
+ return /*#__PURE__*/ L.createElement(Ua.div, {
+ ...q(u, l, a),
ref: t,
slot: e.slot || void 0,
"data-focused": o || void 0,
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ R.createElement(Pa, { values: [[ry, e], [iy, i]] }, l.children));
+ }, /*#__PURE__*/ L.createElement(Fa, { values: [[iy, e], [ay, i]] }, l.children));
}
-var oy = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- return (0, R.useContext)(iy) ? /*#__PURE__*/ R.createElement(Vte, {
+var sy = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ return (0, L.useContext)(ay) ? /*#__PURE__*/ L.createElement(Vte, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ R.createElement(ll, e);
+ }) : /*#__PURE__*/ L.createElement(ul, e);
});
function Vte({ props: e, forwardedRef: t }) {
- let n = (0, R.useContext)(iy), { CollectionRoot: r } = (0, R.useContext)(hl), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Ia(ry), o = Ma(t), { tabListProps: s } = Lte({
+ let n = (0, L.useContext)(ay), { CollectionRoot: r } = (0, L.useContext)(gl), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = La(iy), o = Na(t), { tabListProps: s } = Lte({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = Fa({
+ }, n, o), c = Ia({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -25355,30 +25355,30 @@ function Vte({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = Cl(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ R.createElement(Ha.div, {
- ...J(l, c, s),
+ }), l = wl(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ L.createElement(Ua.div, {
+ ...q(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ R.createElement(of, null, /*#__PURE__*/ R.createElement(r, {
+ }, /*#__PURE__*/ L.createElement(sf, null, /*#__PURE__*/ L.createElement(r, {
collection: n.collection,
- persistedKeys: gl(n.selectionManager.focusedKey)
+ persistedKeys: _l(n.selectionManager.focusedKey)
})));
}
-var sy = /*#__PURE__*/ al(class extends ac {
+var cy = /*#__PURE__*/ ol(class extends oc {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, R.useContext)(iy), i = Ma(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Pte({
+ let r = (0, L.useContext)(ay), i = Na(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Pte({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = Jl(), { hoverProps: f, isHovered: p } = eu({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = Yl(), { hoverProps: f, isHovered: p } = tu({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = Fa({
+ }), m = Ia({
...e,
id: void 0,
children: n.rendered,
@@ -25391,9 +25391,9 @@ var sy = /*#__PURE__*/ al(class extends ac {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? Ha.a : Ha.div, g = Cl(e, { global: !0 });
- return delete g.id, delete g.onClick, /*#__PURE__*/ R.createElement(h, {
- ...J(g, m, a, l, f),
+ }), h = n.props.href ? Ua.a : Ua.div, g = wl(e, { global: !0 });
+ return delete g.id, delete g.onClick, /*#__PURE__*/ L.createElement(h, {
+ ...q(g, m, a, l, f),
ref: i,
"data-selected": o || void 0,
"data-disabled": s || void 0,
@@ -25401,12 +25401,12 @@ var sy = /*#__PURE__*/ al(class extends ac {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ R.createElement(sf.Provider, { value: { isSelected: o } }, m.children));
-}), cy = /*#__PURE__*/ Wc(function(e, t) {
- let n = (0, R.useContext)(iy), r = Ma(t), i = n.selectedKey === e.id, [a, o] = (0, R.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ L.createElement(cf.Provider, { value: { isSelected: o } }, m.children));
+}), ly = /*#__PURE__*/ Gc(function(e, t) {
+ let n = (0, L.useContext)(ay), r = Na(t), i = n.selectedKey === e.id, [a, o] = (0, L.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = Fh(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ R.createElement(Hte, {
+ let s = Ih(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ L.createElement(Hte, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
@@ -25414,45 +25414,45 @@ var sy = /*#__PURE__*/ al(class extends ac {
});
});
function Hte(e) {
- let t = (0, R.useContext)(iy), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Fte(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Jl(), d = t.selectedKey === e.id, f = Ph(r) && !i, p = Fa({
+ let t = (0, L.useContext)(ay), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Fte(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Yl(), d = t.selectedKey === e.id, f = Fh(r) && !i, p = Ia({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: bp(!d),
+ isInert: xp(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = Cl(o, { global: !0 });
+ }), m = wl(o, { global: !0 });
delete m.id;
- let h = d ? J(m, s, c, p) : J(m, p);
- return /*#__PURE__*/ R.createElement(Ha.div, {
+ let h = d ? q(m, s, c, p) : q(m, p);
+ return /*#__PURE__*/ L.createElement(Ua.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: bp(!d || e.inert),
+ inert: xp(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ R.createElement(Pa, { values: [[ry, null], [iy, null]] }, /*#__PURE__*/ R.createElement(hl.Provider, { value: fl }, p.children)));
+ }, /*#__PURE__*/ L.createElement(Fa, { values: [[iy, null], [ay, null]] }, /*#__PURE__*/ L.createElement(gl.Provider, { value: pl }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var Ute = /*#__PURE__*/ (0, R.createContext)({}), Wte = /*#__PURE__*/ (0, R.createContext)(null), Gte = /*#__PURE__*/ Wc(function(e, t) {
- [e, t] = La(e, t, Wte);
- let { validationBehavior: n } = Ia(Wu) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useRef)(null);
- [e, i] = La(e, i, ic);
- let [a, o] = Ra(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, R.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = gd({
- ...za(e),
+var Ute = /*#__PURE__*/ (0, L.createContext)({}), Wte = /*#__PURE__*/ (0, L.createContext)(null), Gte = /*#__PURE__*/ Gc(function(e, t) {
+ [e, t] = Ra(e, t, Wte);
+ let { validationBehavior: n } = La(Gu) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, L.useRef)(null);
+ [e, i] = Ra(e, i, ac);
+ let [a, o] = za(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, L.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = _d({
+ ...Ba(e),
inputElementType: s,
label: o,
validationBehavior: r
- }, i), m = (0, R.useCallback)((e) => {
+ }, i), m = (0, L.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = Fa({
+ }, [i]), h = Ia({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -25461,8 +25461,8 @@ var Ute = /*#__PURE__*/ (0, R.createContext)({}), Wte = /*#__PURE__*/ (0, R.crea
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = Cl(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ R.createElement(Ha.div, {
+ }), g = wl(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ L.createElement(Ua.div, {
...g,
...h,
ref: t,
@@ -25471,12 +25471,12 @@ var Ute = /*#__PURE__*/ (0, R.createContext)({}), Wte = /*#__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(Pa, { values: [
- [tu, {
+ }, /*#__PURE__*/ L.createElement(Fa, { values: [
+ [nu, {
...l,
ref: a
}],
- [pd, {
+ [md, {
...u,
ref: m
}],
@@ -25484,33 +25484,33 @@ var Ute = /*#__PURE__*/ (0, R.createContext)({}), Wte = /*#__PURE__*/ (0, R.crea
...u,
ref: m
}],
- [dd, {
+ [fd, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [_u, { slots: {
+ [vu, { slots: {
description: d,
errorMessage: f
} }],
- [Mu, p]
+ [Nu, p]
] }, h.children));
});
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
function Kte({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, z.jsxs)(nu, {
+ return /* @__PURE__ */ (0, R.jsxs)(ru, {
"data-label": "true",
...a,
- className: Ii("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: Li("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
- e && /* @__PURE__ */ (0, z.jsx)("span", {
+ e && /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": "true",
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, z.jsx)(ct, {
+ n && /* @__PURE__ */ (0, R.jsx)(lt, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -25520,32 +25520,32 @@ function Kte({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
function qte({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, z.jsx)(vu, {
+ return /* @__PURE__ */ (0, R.jsx)(yu, {
slot: e ? "errorMessage" : "description",
...n,
- className: Ii("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: Li("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 ly = (0, R.createContext)({});
-function uy({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, z.jsx)(ly.Provider, {
+var uy = (0, L.createContext)({});
+function dy({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, R.jsx)(uy.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, z.jsx)(Gte, {
+ children: /* @__PURE__ */ (0, R.jsx)(Gte, {
...a,
"data-input-size": e,
- className: Ii("group flex h-max w-full flex-col items-start gap-1", r),
+ className: Li("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-uy.displayName = "TextField";
-var dy = Li({
+dy.displayName = "TextField";
+var fy = Ri({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -25574,44 +25574,44 @@ var dy = Li({
].join(" "),
icon: "size-5 shrink-0"
});
-function fy({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, R.useContext)(ly), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, z.jsx)(fd, {
+function py({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, L.useContext)(uy), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, R.jsx)(pd, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => Ii(dy.field, d ? dy.fieldWithAddonSize[u] : dy.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, z.jsxs)("div", {
- className: dy.content,
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
- className: dy.leftSection,
- children: [d ? r : t ? /* @__PURE__ */ (0, z.jsx)(t, {
- className: dy.icon,
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => Li(fy.field, d ? fy.fieldWithAddonSize[u] : fy.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, R.jsxs)("div", {
+ className: fy.content,
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
+ className: fy.leftSection,
+ children: [d ? r : t ? /* @__PURE__ */ (0, R.jsx)(t, {
+ className: fy.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, z.jsx)(hd, {
+ }) : null, /* @__PURE__ */ (0, R.jsx)(gd, {
ref: o,
...c,
- className: Ii(dy.input, l.inputClassName, a)
+ className: Li(fy.input, l.inputClassName, a)
})]
- }), n ? /* @__PURE__ */ (0, z.jsx)(n, {
- className: dy.icon,
+ }), n ? /* @__PURE__ */ (0, R.jsx)(n, {
+ className: fy.icon,
"aria-hidden": !0
}) : null]
})
});
}
-fy.displayName = "InputBase";
-function py({ 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, z.jsx)(uy, {
+py.displayName = "InputBase";
+function my({ 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, R.jsx)(dy, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
- children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- e && /* @__PURE__ */ (0, z.jsx)(Kte, {
+ children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ e && /* @__PURE__ */ (0, R.jsx)(Kte, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, z.jsx)(fy, {
+ /* @__PURE__ */ (0, R.jsx)(py, {
ref: c,
groupRef: l,
placeholder: r,
@@ -25620,17 +25620,17 @@ function py({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, z.jsx)(qte, {
+ t && /* @__PURE__ */ (0, R.jsx)(qte, {
isInvalid: d,
children: t
})
] })
});
}
-py.displayName = "Input";
+my.displayName = "Input";
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var my = [
+var hy = [
"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",
@@ -25638,16 +25638,16 @@ var my = [
"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(" "), Jte = "w-[266px]", Yte = "flex w-full flex-col gap-1 outline-none", hy = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), gy = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), Jte = "w-[266px]", Yte = "flex w-full flex-col gap-1 outline-none", gy = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), _y = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
function Xte(e) {
- return /* @__PURE__ */ (0, z.jsx)("svg", {
+ return /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
"aria-hidden": !0,
...e,
- children: /* @__PURE__ */ (0, z.jsx)("path", {
+ children: /* @__PURE__ */ (0, R.jsx)("path", {
d: "M4 7L7.29289 10.2929C7.68342 10.6834 8.31658 10.6834 8.70711 10.2929L12 7",
stroke: "currentColor",
strokeWidth: "2",
@@ -25656,12 +25656,12 @@ function Xte(e) {
});
}
function Zte(e) {
- return /* @__PURE__ */ (0, z.jsx)("svg", {
+ return /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
"aria-hidden": !0,
...e,
- children: /* @__PURE__ */ (0, z.jsx)("path", {
+ children: /* @__PURE__ */ (0, R.jsx)("path", {
d: "M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z",
fill: "currentColor"
})
@@ -25670,7 +25670,7 @@ function Zte(e) {
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
function Qte(e, t, n) {
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
if (!e) return;
let r = (e) => {
let r = e.target;
@@ -25684,8 +25684,8 @@ function Qte(e, t, n) {
]);
}
function $te(e, t) {
- let n = (0, R.useRef)(!1);
- return (0, R.useEffect)(() => {
+ let n = (0, L.useRef)(!1);
+ return (0, L.useEffect)(() => {
if (!e) return;
let r = (e) => {
t.current?.contains(e.target) && (n.current = !0, setTimeout(() => {
@@ -25697,33 +25697,33 @@ function $te(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var _y = (0, R.createContext)("md");
-function vy({ 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);
+var vy = (0, L.createContext)("md");
+function yy({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+ let l = (0, L.useRef)(null), u = (0, L.useRef)(null), [d, f] = (0, L.useState)(!1);
Qte(d, () => f(!1), [l, u]);
let p = $te(d, l);
- return /* @__PURE__ */ (0, z.jsx)(Hee, {
+ return /* @__PURE__ */ (0, R.jsx)(Hee, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: Ii("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)(fu, {
+ className: Li("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)(pu, {
ref: l,
- className: Ii("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, z.jsx)(Gee, {
- className: Ii("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: Li("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, R.jsx)(Gee, {
+ className: Li("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, z.jsx)(Xte, { className: Ii("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, z.jsx)(zh, {
+ }), /* @__PURE__ */ (0, R.jsx)(Xte, { className: Li("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, R.jsx)(Bh, {
ref: u,
isNonModal: !0,
offset: 4,
- className: Ii(Jte, my, "p-2", n),
- children: /* @__PURE__ */ (0, z.jsx)(Rp, {
+ className: Li(Jte, hy, "p-2", n),
+ children: /* @__PURE__ */ (0, R.jsx)(zp, {
items: a,
- className: Ii(Yte, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, z.jsx)(_y.Provider, {
+ className: Li(Yte, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, R.jsx)(vy.Provider, {
value: r,
children: i
})
@@ -25731,37 +25731,37 @@ function vy({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function yy({ className: e, children: t, ...n }) {
- let r = (0, R.useContext)(_y);
- return /* @__PURE__ */ (0, z.jsx)(Hp, {
+function by({ className: e, children: t, ...n }) {
+ let r = (0, L.useContext)(vy);
+ return /* @__PURE__ */ (0, R.jsx)(Up, {
...n,
- className: (t) => Ii(hy, 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) => Li(gy, 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 by({ className: e, children: t }) {
- return /* @__PURE__ */ (0, z.jsx)("div", {
- className: Ii("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+function xy({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
+ className: Li("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function xy({ className: e, children: t }) {
- return /* @__PURE__ */ (0, z.jsx)("p", {
- className: Ii("w-full px-3 text-body-2-medium text-text-secondary", e),
+function Sy({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, R.jsx)("p", {
+ className: Li("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function Sy({ label: e, description: t, children: n }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Ii("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, z.jsxs)("div", {
+function Cy({ label: e, description: t, children: n }) {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
+ className: Li("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, R.jsxs)("div", {
className: "flex min-w-0 flex-col",
- children: [/* @__PURE__ */ (0, z.jsx)("p", {
+ children: [/* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-regular text-text-primary",
children: e
- }), t && /* @__PURE__ */ (0, z.jsx)("p", {
+ }), t && /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: t
})]
@@ -25770,7 +25770,7 @@ function Sy({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var Cy = Li({
+var wy = Ri({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -25794,21 +25794,21 @@ var Cy = Li({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function wy({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = Ii(Cy.base, Cy.size[t], Cy.variant[e], a), l = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- n ? /* @__PURE__ */ (0, z.jsx)(n, {
- className: Cy.icon[t],
+function Ty({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = Li(wy.base, wy.size[t], wy.variant[e], a), l = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ n ? /* @__PURE__ */ (0, R.jsx)(n, {
+ className: wy.icon[t],
"aria-hidden": !0
}) : null,
- i != null && /* @__PURE__ */ (0, z.jsx)("span", { children: i }),
- r ? /* @__PURE__ */ (0, z.jsx)(r, {
- className: Cy.icon[t],
+ i != null && /* @__PURE__ */ (0, R.jsx)("span", { children: i }),
+ r ? /* @__PURE__ */ (0, R.jsx)(r, {
+ className: wy.icon[t],
"aria-hidden": !0
}) : null
] });
if (s.href !== void 0) {
let { ref: e, href: t, ...n } = s;
- return /* @__PURE__ */ (0, z.jsx)("a", {
+ return /* @__PURE__ */ (0, R.jsx)("a", {
ref: e,
href: o ? void 0 : t,
"aria-disabled": o || void 0,
@@ -25818,7 +25818,7 @@ function wy({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
let { ref: u, type: d = "button", ...f } = s;
- return /* @__PURE__ */ (0, z.jsx)("button", {
+ return /* @__PURE__ */ (0, R.jsx)("button", {
ref: u,
type: d,
disabled: o,
@@ -25829,127 +25829,127 @@ function wy({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/settings/section.tsx
-function Ty({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
- let a = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [n ? /* @__PURE__ */ (0, z.jsxs)("div", {
+function Ey({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+ let a = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [n ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, z.jsx)(xy, { children: e })
+ children: /* @__PURE__ */ (0, R.jsx)(Sy, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, z.jsx)(xy, { children: e }), /* @__PURE__ */ (0, z.jsx)(by, { children: i })] });
- return r ? /* @__PURE__ */ (0, z.jsx)("form", {
+ }) : /* @__PURE__ */ (0, R.jsx)(Sy, { children: e }), /* @__PURE__ */ (0, R.jsx)(xy, { children: i })] });
+ return r ? /* @__PURE__ */ (0, R.jsx)("form", {
id: t,
"aria-label": e,
noValidate: !0,
onSubmit: r,
className: "flex w-full flex-col gap-2",
children: a
- }) : /* @__PURE__ */ (0, z.jsx)("section", {
+ }) : /* @__PURE__ */ (0, R.jsx)("section", {
id: t,
"aria-label": e,
className: "flex w-full flex-col gap-2",
children: a
});
}
-function Ey({ children: e }) {
- return /* @__PURE__ */ (0, z.jsx)("div", {
+function Dy({ children: e }) {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function Dy({ divided: e = !1, children: t }) {
- return e ? /* @__PURE__ */ (0, z.jsx)("div", {
+function Oy({ divided: e = !1, children: t }) {
+ return e ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
- }) : /* @__PURE__ */ (0, z.jsx)("div", {
+ }) : /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-col gap-4 py-4 pr-3",
children: t
});
}
-function Oy({ status: e, children: t }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+function ky({ status: e, children: t }) {
+ return /* @__PURE__ */ (0, R.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, z.jsx)("div", {
+ children: [e ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "mr-auto min-w-0 text-body-2-regular text-text-secondary",
children: e
}) : null, t]
});
}
-function ky({ role: e, children: t }) {
- return /* @__PURE__ */ (0, z.jsx)("p", {
+function Ay({ role: e, children: t }) {
+ return /* @__PURE__ */ (0, R.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function Ay({ children: e }) {
- return /* @__PURE__ */ (0, z.jsx)("p", {
+function jy({ children: e }) {
+ return /* @__PURE__ */ (0, R.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function jy({ children: e }) {
- return /* @__PURE__ */ (0, z.jsx)("p", {
+function My({ children: e }) {
+ return /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function My({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, z.jsx)(wy, {
+function Ny({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, R.jsx)(Ty, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: tt,
+ trailingIcon: nt,
className: "min-w-0 max-w-full",
- children: /* @__PURE__ */ (0, z.jsx)("span", {
+ children: /* @__PURE__ */ (0, R.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
children: t
})
});
}
-function Ny({ children: e }) {
- return /* @__PURE__ */ (0, z.jsx)("dl", {
+function Py({ children: e }) {
+ return /* @__PURE__ */ (0, R.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function Py({ term: e, children: t }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+function Fy({ term: e, children: t }) {
+ return /* @__PURE__ */ (0, R.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, z.jsx)("dt", {
+ children: [/* @__PURE__ */ (0, R.jsx)("dt", {
className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",
children: e
- }), /* @__PURE__ */ (0, z.jsx)("dd", {
+ }), /* @__PURE__ */ (0, R.jsx)("dd", {
className: "flex min-w-0 flex-wrap items-center justify-end gap-2 text-right text-body-regular break-all text-text-primary",
children: t
})]
});
}
-function Fy({ 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, z.jsxs)("details", {
+function Iy({ summary: e, defaultOpen: t = !1, children: n }) {
+ let r = (0, L.useId)(), i = (0, L.useRef)(null), a = (0, L.useRef)(null), o = (0, L.useRef)(!1), [s, c] = (0, L.useState)(t);
+ return /* @__PURE__ */ (0, R.jsxs)("details", {
ref: (e) => {
i.current = e, e && t && !o.current && (o.current = !0, e.open = !0);
},
- children: [/* @__PURE__ */ (0, z.jsxs)("summary", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("summary", {
"aria-expanded": s,
"aria-controls": r,
onClick: (e) => {
- e.preventDefault(), !(!i.current || !a.current) && (ne(i.current, a.current, !s), c(!s));
+ e.preventDefault(), !(!i.current || !a.current) && (re(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, z.jsx)(Ge, {
+ children: [/* @__PURE__ */ (0, R.jsx)(Ke, {
"aria-hidden": !0,
className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
ref: a,
id: r,
inert: !s,
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-col gap-2 pt-3",
children: n
})
@@ -25957,36 +25957,36 @@ function Fy({ summary: e, defaultOpen: t = !1, children: n }) {
});
}
function ene({ name: e }) {
- return /* @__PURE__ */ (0, z.jsx)("svg", {
+ return /* @__PURE__ */ (0, R.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
className: "size-4 shrink-0 stroke-current stroke-2",
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
});
}
-function Iy({ mark: e }) {
- return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, z.jsx)("img", {
+function Ly({ mark: e }) {
+ return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, R.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, z.jsx)(ene, { name: e });
+ }) : /* @__PURE__ */ (0, R.jsx)(ene, { name: e });
}
//#endregion
//#region src/react/query.ts
-var X = new Bn({ defaultOptions: { queries: {
+var Y = new Vn({ defaultOptions: { queries: {
networkMode: "always",
retry: 0,
refetchOnWindowFocus: !1,
refetchOnMount: !1,
retryOnMount: !1
-} } }), Ly = "/api/tasks", Ry = ["tasks"], tne = (e, t) => W(`${Ly}?${new URLSearchParams({
+} } }), Ry = "/api/tasks", zy = ["tasks"], tne = (e, t) => U(`${Ry}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function zy(...e) {
+function By(...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) => {
@@ -25994,14 +25994,14 @@ function zy(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var nne = 2e3, rne = 1e4, ine = (e) => e?.running.length ? nne : rne, By = (e) => W(Ly, e);
+var nne = 2e3, rne = 1e4, ine = (e) => e?.running.length ? nne : rne, Vy = (e) => U(Ry, e);
async function ane(e) {
- await X.fetchQuery({
- queryKey: Ry,
- queryFn: () => By(e)
+ await Y.fetchQuery({
+ queryKey: zy,
+ queryFn: () => Vy(e)
});
}
-var Vy = {
+var Hy = {
manual: "手动",
scheduled: "定时",
startup: "启动",
@@ -26074,19 +26074,19 @@ function une(e, t) {
}
return n;
}
-var dne = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), Hy = (e) => e.status === "pending" || e.status === "running";
+var dne = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), Uy = (e) => e.status === "pending" || e.status === "running";
function fne(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 || Gy(e.result_summary) || (Hy(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
+ return [r, e.error || Ky(e.result_summary) || (Uy(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
}
-function Uy(e) {
+function Wy(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 Wy(e) {
+function Gy(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -26105,12 +26105,12 @@ var pne = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function Gy(e) {
+function Ky(e) {
return Object.entries(e || {}).filter(([e, t]) => !pne.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${cne[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/downloads-panel.tsx
-var Ky = "/api/downloads", qy = ["downloads"], mne = "/api/downloads/cancel", hne = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, gne = {
+var qy = "/api/downloads", Jy = ["downloads"], mne = "/api/downloads/cancel", hne = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, gne = {
ingested: "lime",
failed: "rose",
cancelled: "yellow",
@@ -26121,37 +26121,37 @@ var Ky = "/api/downloads", qy = ["downloads"], mne = "/api/downloads/cancel", hn
adopted_remote: "远端已经有同一个任务,已接管,没有再扣配额。",
refused: "这个资源被判为违规,不再提交。",
failed: "提交没有成功。"
-}, vne = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, Jy = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
+}, vne = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, Yy = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
function yne({ prefill: e }) {
- let t = $n({
- queryKey: qy,
- queryFn: ({ signal: e }) => W(`${Ky}?limit=50`, e),
+ let t = er({
+ queryKey: Jy,
+ queryFn: ({ signal: e }) => U(`${qy}?limit=50`, e),
refetchInterval: (e) => hne(e.state.data)
}), n = t.data;
- if (!n) return t.error ? /* @__PURE__ */ (0, z.jsx)(K, {
+ if (!n) return t.error ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
- children: U(t.error)
+ children: H(t.error)
}) : null;
let r = n.providers.filter((e) => e.configured);
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- t.error ? /* @__PURE__ */ (0, z.jsx)(K, {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ t.error ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
- children: U(t.error)
+ children: H(t.error)
}) : null,
- n.available ? r.length ? /* @__PURE__ */ (0, z.jsx)(bne, {
+ n.available ? r.length ? /* @__PURE__ */ (0, R.jsx)(bne, {
snapshot: n,
prefill: e
- }) : /* @__PURE__ */ (0, z.jsx)(K, {
+ }) : /* @__PURE__ */ (0, R.jsx)(G, {
tone: "neutral",
children: "还没有配置云下载。在配置页「媒体」分组填好 CloudDrive2 的地址与令牌,或登录 PikPak, 这里就能粘贴磁力提交离线下载。"
- }) : /* @__PURE__ */ (0, z.jsx)(K, {
+ }) : /* @__PURE__ */ (0, R.jsx)(G, {
tone: "neutral",
children: "云下载只在账本写入端可用。"
}),
- n.tasks.length ? /* @__PURE__ */ (0, z.jsx)("ul", {
+ n.tasks.length ? /* @__PURE__ */ (0, R.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: n.tasks.map((e) => /* @__PURE__ */ (0, z.jsx)(Sne, {
+ children: n.tasks.map((e) => /* @__PURE__ */ (0, R.jsx)(Sne, {
task: e,
writable: n.available
}, e.id))
@@ -26159,14 +26159,14 @@ function yne({ prefill: e }) {
] });
}
function bne({ snapshot: e, prefill: t }) {
- let n = Dt(), 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 = aa(), h = (0, R.useRef)(null);
- (0, R.useEffect)(() => {
+ let n = Ot(), r = e.providers.filter((e) => e.configured), [i, a] = (0, L.useState)(r[0].key), [o, s] = (0, L.useState)(""), [c, l] = (0, L.useState)(t?.code ?? ""), [u, d] = (0, L.useState)(r[0].target), [f, p] = (0, L.useState)(null), m = oa(), h = (0, L.useRef)(null);
+ (0, L.useEffect)(() => {
t && h.current?.focus();
}, [t]);
let g = r.find((e) => e.key === i) ?? r[0], _ = (e) => {
a(e), d(r.find((t) => t.key === e)?.target ?? "");
};
- return /* @__PURE__ */ (0, z.jsx)("form", {
+ return /* @__PURE__ */ (0, R.jsx)("form", {
"aria-label": "提交磁力",
noValidate: !0,
onSubmit: (e) => {
@@ -26179,14 +26179,14 @@ function bne({ snapshot: e, prefill: t }) {
title: t?.title,
origin: t?.origin
};
- p(null), m.run("submit", (e) => G(Ky, r, "POST", e), (e) => {
- p(e), e.ok && s(""), n.invalidateQueries({ queryKey: qy });
+ p(null), m.run("submit", (e) => W(qy, r, "POST", e), (e) => {
+ p(e), e.ok && s(""), n.invalidateQueries({ queryKey: Jy });
});
},
- children: /* @__PURE__ */ (0, z.jsxs)(by, { children: [
- /* @__PURE__ */ (0, z.jsxs)(Dy, { children: [
- t?.title ? /* @__PURE__ */ (0, z.jsx)(ky, { children: `给「${t.title}」找来的资源,下载完由推送发现登记入库。` }) : null,
- /* @__PURE__ */ (0, z.jsx)(py, {
+ children: /* @__PURE__ */ (0, R.jsxs)(xy, { children: [
+ /* @__PURE__ */ (0, R.jsxs)(Oy, { children: [
+ t?.title ? /* @__PURE__ */ (0, R.jsx)(Ay, { children: `给「${t.title}」找来的资源,下载完由推送发现登记入库。` }) : null,
+ /* @__PURE__ */ (0, R.jsx)(my, {
ref: h,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -26195,21 +26195,21 @@ function bne({ snapshot: e, prefill: t }) {
value: o,
onChange: s
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, z.jsx)(jy, { children: "下载到" }), /* @__PURE__ */ (0, z.jsx)(vy, {
+ children: [/* @__PURE__ */ (0, R.jsx)(My, { children: "下载到" }), /* @__PURE__ */ (0, R.jsx)(yy, {
"aria-label": "下载到",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && _(String(e));
},
- children: r.map((e) => /* @__PURE__ */ (0, z.jsx)(yy, {
+ children: r.map((e) => /* @__PURE__ */ (0, R.jsx)(by, {
id: e.key,
children: e.label
}, e.key))
})]
}),
- /* @__PURE__ */ (0, z.jsx)(py, {
+ /* @__PURE__ */ (0, R.jsx)(my, {
label: "目标目录",
placeholder: g.target || "/云下载",
autoComplete: "off",
@@ -26218,7 +26218,7 @@ function bne({ snapshot: e, prefill: t }) {
value: u,
onChange: d
}),
- /* @__PURE__ */ (0, z.jsx)(py, {
+ /* @__PURE__ */ (0, R.jsx)(my, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
@@ -26227,20 +26227,20 @@ function bne({ snapshot: e, prefill: t }) {
onChange: l
})
] }),
- f ? /* @__PURE__ */ (0, z.jsx)(Dy, {
+ f ? /* @__PURE__ */ (0, R.jsx)(Oy, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsx)(xne, { result: f })
+ children: /* @__PURE__ */ (0, R.jsx)(xne, { result: f })
}) : null,
- m.error ? /* @__PURE__ */ (0, z.jsx)(Dy, {
+ m.error ? /* @__PURE__ */ (0, R.jsx)(Oy, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsx)(Ay, { children: m.error })
+ children: /* @__PURE__ */ (0, R.jsx)(jy, { children: m.error })
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Oy, {
+ /* @__PURE__ */ (0, R.jsx)(ky, {
status: i === "115" ? "115 每提交一次扣一条离线配额,重新提交也算。" : void 0,
- children: /* @__PURE__ */ (0, z.jsx)(H, {
+ children: /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
disabled: !o.trim(),
- ...q(m.busy === "submit"),
+ ...K(m.busy === "submit"),
children: "提交离线下载"
})
})
@@ -26248,22 +26248,22 @@ function bne({ snapshot: e, prefill: t }) {
});
}
function xne({ result: e }) {
- let t = Jy(e.task), n = _ne[e.outcome];
- return e.outcome === "failed" ? /* @__PURE__ */ (0, z.jsx)(Ay, { children: t ? `${n}${t}` : n }) : e.outcome === "refused" ? /* @__PURE__ */ (0, z.jsx)(Ay, { children: n }) : /* @__PURE__ */ (0, z.jsx)(ky, {
+ let t = Yy(e.task), n = _ne[e.outcome];
+ return e.outcome === "failed" ? /* @__PURE__ */ (0, R.jsx)(jy, { children: t ? `${n}${t}` : n }) : e.outcome === "refused" ? /* @__PURE__ */ (0, R.jsx)(jy, { children: n }) : /* @__PURE__ */ (0, R.jsx)(Ay, {
role: "status",
children: n
});
}
function Sne({ task: e, writable: t }) {
- let n = Dt(), r = aa(), [i, a] = (0, R.useState)(!1), o = Jy(e), s = e.state === "failed", c = [
+ let n = Ot(), r = oa(), [i, a] = (0, L.useState)(!1), o = Yy(e), s = e.state === "failed", c = [
e.provider_label,
e.code,
e.target,
- Wy(e.submitted_at)
+ Gy(e.submitted_at)
].filter(Boolean).join(" · "), l = () => {
- n.invalidateQueries({ queryKey: qy });
+ n.invalidateQueries({ queryKey: Jy });
}, u = () => {
- r.run("cancel", (t) => G(mne, { id: e.id }, "POST", t), l);
+ r.run("cancel", (t) => W(mne, { id: e.id }, "POST", t), l);
}, d = () => {
let t = {
magnet: e.source_uri,
@@ -26273,63 +26273,63 @@ function Sne({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => G(Ky, t, "POST", e), l);
+ r.run("resubmit", (e) => W(qy, t, "POST", e), l);
}, f = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
};
- return /* @__PURE__ */ (0, z.jsxs)("li", {
+ return /* @__PURE__ */ (0, R.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: Zi({
+ className: Qi({
padding: "none",
bordered: "line",
className: s ? "flex flex-col border-border-error-default" : "flex flex-col"
}),
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-1.5 px-5 pt-5 pb-4",
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)("strong", {
+ children: [/* @__PURE__ */ (0, R.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: vne(e)
- }), /* @__PURE__ */ (0, z.jsx)(zi, {
+ }), /* @__PURE__ */ (0, R.jsx)(Bi, {
color: gne[e.state] ?? "neutral",
children: e.state_label
})]
}),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: c
}),
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, z.jsx)(ia, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, R.jsx)(aa, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
}) : null,
- e.ledger_path ? /* @__PURE__ */ (0, z.jsx)("p", {
+ e.ledger_path ? /* @__PURE__ */ (0, R.jsx)("p", {
className: "min-w-0 break-all text-caption-1-regular text-text-secondary",
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, z.jsx)(Ay, { children: r.error }) : null,
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ r.error ? /* @__PURE__ */ (0, R.jsx)(jy, { children: r.error }) : null,
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2 pt-1",
children: [
- t && e.cancellable ? /* @__PURE__ */ (0, z.jsx)(H, {
+ t && e.cancellable ? /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
- ...q(r.busy === "cancel"),
+ ...K(r.busy === "cancel"),
onClick: u,
children: "取消"
}) : null,
- t && e.resubmittable ? /* @__PURE__ */ (0, z.jsx)(H, {
+ t && e.resubmittable ? /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
- ...q(r.busy === "resubmit"),
+ ...K(r.busy === "resubmit"),
onClick: d,
children: "重新提交"
}) : null,
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
size: "small",
onClick: f,
@@ -26338,9 +26338,9 @@ function Sne({ task: e, writable: t }) {
]
})
]
- }), o ? /* @__PURE__ */ (0, z.jsx)("div", {
+ }), o ? /* @__PURE__ */ (0, R.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, z.jsx)("p", {
+ children: /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: o
})
@@ -26355,28 +26355,28 @@ var Cne = {
cancelled: "yellow",
interrupted: "yellow"
};
-function Yy({ status: e }) {
- return /* @__PURE__ */ (0, z.jsx)(zi, {
+function Xy({ status: e }) {
+ return /* @__PURE__ */ (0, R.jsx)(Bi, {
color: Cne[e] ?? "neutral",
children: sne(e)
});
}
function wne({ rows: e }) {
- return /* @__PURE__ */ (0, z.jsx)("ul", {
+ return /* @__PURE__ */ (0, R.jsx)("ul", {
className: "flex min-w-0 flex-col",
children: e.map((e) => {
let t = fne(e);
- return /* @__PURE__ */ (0, z.jsxs)("li", {
+ return /* @__PURE__ */ (0, R.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
className: "flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1 border-t border-separator-border px-5 py-2.5",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
- /* @__PURE__ */ (0, z.jsx)(Yy, { status: e.status }),
- t ? /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)(Xy, { status: e.status }),
+ t ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: t
}) : null
@@ -26385,38 +26385,38 @@ function wne({ rows: e }) {
})
});
}
-function Xy({ run: e, meta: t, children: n, footer: r, followups: i }) {
- return /* @__PURE__ */ (0, z.jsxs)("li", {
+function Zy({ run: e, meta: t, children: n, footer: r, followups: i }) {
+ return /* @__PURE__ */ (0, R.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
"data-run-id": e.id,
- className: Zi({
+ className: Qi({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
}),
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-1.5 px-5 pt-5 pb-4",
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)("strong", {
+ children: [/* @__PURE__ */ (0, R.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, z.jsx)(Yy, { status: e.status })]
+ }), /* @__PURE__ */ (0, R.jsx)(Xy, { status: e.status })]
}),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: t
}),
n
]
}),
- i?.length ? /* @__PURE__ */ (0, z.jsx)(wne, { rows: i }) : null,
- r ? /* @__PURE__ */ (0, z.jsx)("div", {
+ i?.length ? /* @__PURE__ */ (0, R.jsx)(wne, { rows: i }) : null,
+ r ? /* @__PURE__ */ (0, R.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, z.jsx)("p", {
+ children: /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: r
})
@@ -26425,18 +26425,18 @@ function Xy({ run: e, meta: t, children: n, footer: r, followups: i }) {
});
}
function Tne({ run: e, followups: t }) {
- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = Uy(e.elapsed_seconds), o = [Vy[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, z.jsx)(Xy, {
+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = Wy(e.elapsed_seconds), o = [Hy[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, R.jsx)(Zy, {
run: e,
meta: o,
followups: t,
- children: n > 0 ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: n > 0 ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, z.jsx)(ia, {
+ children: [/* @__PURE__ */ (0, R.jsx)(aa, {
label: i,
value: r,
max: n
- }), /* @__PURE__ */ (0, z.jsxs)("p", {
+ }), /* @__PURE__ */ (0, R.jsxs)("p", {
className: "text-caption-1-regular text-text-secondary",
children: [
i,
@@ -26447,67 +26447,67 @@ function Tne({ run: e, followups: t }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, z.jsx)(ea, { label: i })
+ }) : /* @__PURE__ */ (0, R.jsx)(ta, { label: i })
});
}
-function Zy({ run: e, followups: t, runs: n }) {
- let r = Gy(e.result_summary), i = Uy(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
- Vy[e.trigger] || e.trigger,
+function Qy({ run: e, followups: t, runs: n }) {
+ let r = Ky(e.result_summary), i = Wy(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
+ Hy[e.trigger] || e.trigger,
`近 ${n.length} 轮`,
- `${Wy(a.finished_at)} – ${Wy(e.finished_at)}`
+ `${Gy(a.finished_at)} – ${Gy(e.finished_at)}`
] : [
- Vy[e.trigger] || e.trigger,
- Wy(e.finished_at),
+ Hy[e.trigger] || e.trigger,
+ Gy(e.finished_at),
i && `用时 ${i}`
]).filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, z.jsx)(Xy, {
+ return /* @__PURE__ */ (0, R.jsx)(Zy, {
run: e,
meta: o,
footer: e.error,
followups: t,
- children: r ? /* @__PURE__ */ (0, z.jsx)("p", {
+ children: r ? /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: r
}) : null
});
}
-function Qy({ title: e, children: t }) {
- let n = (0, R.useId)();
- return /* @__PURE__ */ (0, z.jsxs)("section", {
+function $y({ title: e, children: t }) {
+ let n = (0, L.useId)();
+ return /* @__PURE__ */ (0, R.jsxs)("section", {
"aria-labelledby": n,
className: "flex min-w-0 flex-col gap-3",
- children: [/* @__PURE__ */ (0, z.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h3", {
id: n,
className: "text-title-2-semibold text-text-primary",
children: e
}), t]
});
}
-function $y({ live: e = !1, children: t }) {
- return /* @__PURE__ */ (0, z.jsx)("ul", {
+function eb({ live: e = !1, children: t }) {
+ return /* @__PURE__ */ (0, R.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
function Ene({ prefill: e }) {
- let t = $n({
- queryKey: Ry,
- queryFn: ({ signal: e }) => By(e),
+ let t = er({
+ queryKey: zy,
+ queryFn: ({ signal: e }) => Vy(e),
refetchInterval: (e) => ine(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(zy(i, c)));
- let u = er({
+ }), n = t.data, r = n?.finished, [i, a] = (0, L.useState)([]), [o, s] = (0, L.useState)(!1), [c, l] = (0, L.useState)(r);
+ r !== c && (l(r), i.length && c && a(By(i, c)));
+ let u = tr({
mutationFn: ({ oldest: e }) => tne(e),
onSuccess: (e, { shown: t }) => {
- a((n) => zy(n, t, e.finished || [])), s(!!e.finished_has_more);
+ a((n) => By(n, t, e.finished || [])), s(!!e.finished_has_more);
}
- }), d = t.error ? U(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, z.jsx)(ta, { children: /* @__PURE__ */ (0, z.jsx)(K, {
+ }), d = t.error ? H(t.error) : "";
+ if (!n) return /* @__PURE__ */ (0, R.jsx)(na, { children: /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
children: d || "读取任务中心失败"
}) });
- let f = zy(n.finished || [], i), p = [
+ let f = By(n.finished || [], i), p = [
...n.running || [],
...n.skipped || [],
...f
@@ -26516,84 +26516,84 @@ function Ene({ prefill: e }) {
oldest: v,
shown: f
});
- }, x = _.filter((e) => m.get(e.id)?.some(Hy)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = une(w, (e) => dne(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
- return /* @__PURE__ */ (0, z.jsxs)(ta, { children: [
- d ? /* @__PURE__ */ (0, z.jsx)(K, {
+ }, x = _.filter((e) => m.get(e.id)?.some(Uy)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = une(w, (e) => dne(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
+ return /* @__PURE__ */ (0, R.jsxs)(na, { children: [
+ d ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
children: d
}) : null,
- n.available === !1 ? /* @__PURE__ */ (0, z.jsx)(K, {
+ n.available === !1 ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- E ? /* @__PURE__ */ (0, z.jsx)($i, {
+ E ? /* @__PURE__ */ (0, R.jsx)(ea, {
shell: "plain",
- icon: ot,
+ icon: st,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
- }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)(Qy, {
+ }) : /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsx)($y, {
title: "正在进行",
- children: S.length || x.length ? /* @__PURE__ */ (0, z.jsxs)($y, {
+ children: S.length || x.length ? /* @__PURE__ */ (0, R.jsxs)(eb, {
live: !0,
- children: [S.map((e) => /* @__PURE__ */ (0, z.jsx)(Tne, {
+ children: [S.map((e) => /* @__PURE__ */ (0, R.jsx)(Tne, {
run: e,
followups: m.get(e.id)
- }, e.id)), x.map((e) => /* @__PURE__ */ (0, z.jsx)(Zy, {
+ }, e.id)), x.map((e) => /* @__PURE__ */ (0, R.jsx)(Qy, {
run: e,
followups: m.get(e.id)
}, e.id))]
- }) : /* @__PURE__ */ (0, z.jsx)(K, {
+ }) : /* @__PURE__ */ (0, R.jsx)(G, {
tone: "neutral",
children: "没有任务在跑。"
})
}),
- C.length ? /* @__PURE__ */ (0, z.jsx)(Qy, {
+ C.length ? /* @__PURE__ */ (0, R.jsx)($y, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, z.jsx)($y, { children: C.map((e) => /* @__PURE__ */ (0, z.jsx)(Zy, {
+ children: /* @__PURE__ */ (0, R.jsx)(eb, { children: C.map((e) => /* @__PURE__ */ (0, R.jsx)(Qy, {
run: e,
followups: m.get(e.id)
}, e.id)) })
}) : null,
- w.length || y ? /* @__PURE__ */ (0, z.jsxs)(Qy, {
+ w.length || y ? /* @__PURE__ */ (0, R.jsxs)($y, {
title: "最近完成",
children: [
- w.length ? /* @__PURE__ */ (0, z.jsx)($y, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, z.jsx)(Zy, {
+ w.length ? /* @__PURE__ */ (0, R.jsx)(eb, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, R.jsx)(Qy, {
run: e,
runs: t,
followups: m.get(e.id)
}, e.id)) }) : null,
- u.error ? /* @__PURE__ */ (0, z.jsx)(K, {
+ u.error ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
- children: U(u.error)
+ children: H(u.error)
}) : null,
- y ? /* @__PURE__ */ (0, z.jsx)(H, {
+ y ? /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
- leadingIcon: Ue,
+ leadingIcon: We,
className: "self-start",
- ...q(u.isPending),
+ ...K(u.isPending),
onClick: b,
children: "加载更早"
}) : null
]
}) : null
] }),
- /* @__PURE__ */ (0, z.jsx)(Qy, {
+ /* @__PURE__ */ (0, R.jsx)($y, {
title: "云下载",
- children: /* @__PURE__ */ (0, z.jsx)(yne, { prefill: e })
+ children: /* @__PURE__ */ (0, R.jsx)(yne, { prefill: e })
})
] });
}
//#endregion
//#region src/jav-artwork.ts
-function eb(e) {
+function tb(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function tb(e, t) {
- return e.is_jav && e.code && e.has_cover && (eb(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
-}
function nb(e, t) {
+ return e.is_jav && e.code && e.has_cover && (tb(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+}
+function rb(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
@@ -26611,19 +26611,19 @@ var Dne = (e, t) => [
async function kne(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 = {
+ let o = await U(`/api/items?${a}`, i), s = {
...o,
items: o.items || [],
offset: t
};
- return !t && !s.items.length && !r && (s.libraryEmpty = (await W("/api/items?limit=1&thumb=0", i)).total === 0), s;
+ return !t && !s.items.length && !r && (s.libraryEmpty = (await U("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
var Ane = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, jne = (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 rb(e) {
- let t = nb(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function ib(e) {
+ let t = rb(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
queryKey: Dne(t, e.revision || 0),
queryFn: async ({ pageParam: i, signal: a }) => {
@@ -26656,8 +26656,8 @@ function Mne(e) {
}
async function Nne(e, t) {
if (e.mode !== "catalog") return;
- let n = rb(e);
- await X.fetchInfiniteQuery({
+ let n = ib(e);
+ await Y.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
pageParam: e,
@@ -26680,14 +26680,14 @@ function Pne(e, t, n) {
return !0;
}) : [...e];
}
-var ib = (e, t) => !!e && !!tb(e, t);
+var ab = (e, t) => !!e && !!nb(e, t);
function Fne(e, t) {
let n = (e.performers || [])[0];
return (e.is_jav && n ? n : e.creator) || n || e.studio || e.code || t((e.tags || [])[0] || "") || "为你推荐";
}
function Ine(e, t) {
- let n = (e) => ib(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) => ib(e, t)) || e[e.length - 1];
+ let n = (e) => ab(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) => ab(e, t)) || e[e.length - 1];
}
function Lne(e, { collapse: t, mix: n, javImage: r }) {
let i = {
@@ -26736,8 +26736,8 @@ function Bne(e, t) {
strip: null
}), r;
}
-function ab(e, t) {
- X.setQueriesData({
+function ob(e, t) {
+ Y.setQueriesData({
queryKey: ["catalog-grid"],
predicate: (e) => Array.isArray(e.state.data?.pages)
}, (n) => !n || !n.pages.some((t) => t.items.some((t) => t.id === e)) ? n : {
@@ -26753,20 +26753,20 @@ function ab(e, t) {
}
//#endregion
//#region src/react/components/grid-reveal.tsx
-function ob(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)(() => {
+function sb(e, t) {
+ let [n, r] = (0, L.useState)(e ? "skeleton" : "none"), [i] = (0, L.useState)(() => e ? t() : ""), a = (0, L.useRef)(null);
+ return (0, L.useLayoutEffect)(() => {
a.current && w(a.current);
- }, []), (0, R.useLayoutEffect)(() => {
+ }, []), (0, L.useLayoutEffect)(() => {
if (e || n !== "skeleton") return;
let t = !!a.current && !a.current.querySelector(".skeleton-awaiting");
r(t ? "fade" : "none");
- }, [e]), (0, R.useEffect)(() => {
+ }, [e]), (0, L.useEffect)(() => {
if (n !== "fade") return;
let e = setTimeout(() => r("none"), 1e3);
return () => clearTimeout(e);
}, [n]), {
- layer: n === "none" ? null : /* @__PURE__ */ (0, z.jsx)("div", {
+ layer: n === "none" ? null : /* @__PURE__ */ (0, R.jsx)("div", {
ref: a,
"data-grid-fade": n === "fade" ? "" : void 0,
"aria-hidden": !e || void 0,
@@ -26779,8 +26779,8 @@ function ob(e, t) {
fading: n === "fade"
};
}
-function sb({ message: e, onRetry: t }) {
- return /* @__PURE__ */ (0, z.jsx)("div", {
+function cb({ message: e, onRetry: t }) {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
e.target.closest("[data-note-action]") && t();
@@ -26793,21 +26793,21 @@ function sb({ message: e, onRetry: t }) {
}
//#endregion
//#region src/react/catalog-grid/artwork.ts
-var cb = {
+var lb = {
kind: "",
html: ""
};
-function lb(e, t, n, r, a) {
- let o = tb(e, r);
- if (!o) return cb;
+function ub(e, t, n, r, a) {
+ let o = nb(e, r);
+ if (!o) return lb;
let s = e.has_cover && e.code ? `/cover?code=${encodeURIComponent(e.code)}&thumb=1` : "", c = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", l = a(e, t, n), u = (l.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), d = o === "cover" ? l : `<img class="poster" src="${c}" alt="" loading="${n ? "eager" : "lazy"}"${u}>`;
return {
kind: o === "cover" ? "cover" : "thumb",
html: d.replace("<img ", `<img data-jav-image="${e.id}" data-jav-cover="${i(s)}" data-jav-thumb="${i(c)}" data-jav-image-layout="${t}" `)
};
}
-function ub(e, t, n, r, a) {
- if (e.is_jav) return lb(e, t, n, r, a);
+function db(e, t, n, r, a) {
+ if (e.is_jav) return ub(e, t, n, r, a);
let o = n ? "eager" : "lazy";
return e.follow_thumb_url ? {
kind: "thumb",
@@ -26815,12 +26815,12 @@ function ub(e, t, n, r, a) {
} : e.has_thumb || e.has_local_poster ? {
kind: "thumb",
html: `<img class="poster" src="/poster?id=${e.id}&c=4" alt="" loading="${o}">`
- } : cb;
+ } : lb;
}
//#endregion
//#region src/react/components/art-slot.tsx
-function db({ artwork: e, identity: t = e.html, relayout: n }) {
- let [r, i] = (0, R.useState)({
+function fb({ artwork: e, identity: t = e.html, relayout: n }) {
+ let [r, i] = (0, L.useState)({
identity: t,
artwork: e
});
@@ -26828,10 +26828,10 @@ function db({ artwork: e, identity: t = e.html, relayout: n }) {
identity: t,
artwork: e
});
- let a = r.identity === t ? r.artwork : e, o = (0, R.useRef)(null), s = (0, R.useRef)(n);
- return s.current = n, (0, R.useLayoutEffect)(() => {
+ let a = r.identity === t ? r.artwork : e, o = (0, L.useRef)(null), s = (0, L.useRef)(n);
+ return s.current = n, (0, L.useLayoutEffect)(() => {
o.current && s.current?.(o.current);
- }, [e.html]), /* @__PURE__ */ (0, z.jsx)("span", {
+ }, [e.html]), /* @__PURE__ */ (0, R.jsx)("span", {
ref: o,
"data-media-art": a.kind,
dangerouslySetInnerHTML: { __html: a.html }
@@ -26839,29 +26839,29 @@ function db({ artwork: e, identity: t = e.html, relayout: n }) {
}
//#endregion
//#region src/react/components/media-card.tsx
-var fb = .75, pb = 9 / 16;
-function mb({ name: e }) {
- return /* @__PURE__ */ (0, z.jsx)("svg", {
+var pb = .75, mb = 9 / 16;
+function hb({ name: e }) {
+ return /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
});
}
-var hb = {
+var gb = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, gb = (e) => e.is_jav ? "女优" : "艺人";
-function _b(e, t, n) {
- return t === "short" || n.portrait ? pb : n.active && n.size === "big" ? fb : 16 / 9;
+}, _b = (e) => e.is_jav ? "女优" : "艺人";
+function vb(e, t, n) {
+ return t === "short" || n.portrait ? mb : n.active && n.size === "big" ? pb : 16 / 9;
}
-function vb(e, t) {
- let n = e.performers || [], r = e.performer_entities || [], i = n[0] || "", a = e.is_jav && i ? "" : e.creator || "", o = a ? "creator" : i ? "performer" : "", s = a || i || "未归属", c = n.length > 1 && !a, l = gb(e);
+function yb(e, t) {
+ let n = e.performers || [], r = e.performer_entities || [], i = n[0] || "", a = e.is_jav && i ? "" : e.creator || "", o = a ? "creator" : i ? "performer" : "", s = a || i || "未归属", c = n.length > 1 && !a, l = _b(e);
return {
- avatar: c ? /* @__PURE__ */ (0, z.jsx)("div", {
+ avatar: c ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-media-avatars": "",
- children: n.slice(0, 5).map((e, n) => /* @__PURE__ */ (0, z.jsx)("button", {
+ children: n.slice(0, 5).map((e, n) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-media-avatar": "",
"data-entity-kind": "performer",
@@ -26869,33 +26869,33 @@ function vb(e, t) {
title: `打开${l}页:${e}`,
dangerouslySetInnerHTML: { __html: t.avatarHtml(e, r[n] ?? null, "performer") }
}, `${e}:${n}`))
- }) : o ? /* @__PURE__ */ (0, z.jsx)("button", {
+ }) : o ? /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-media-avatar": "",
"data-entity-kind": o,
"data-entity-name": s,
title: `打开${o === "performer" ? l : "资料"}页`,
dangerouslySetInnerHTML: { __html: t.avatarHtml(s, o === "performer" ? r[0] ?? null : e.creator_entity ?? null, o) }
- }) : /* @__PURE__ */ (0, z.jsx)("span", {
+ }) : /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-avatar": "",
dangerouslySetInnerHTML: { __html: t.avatarHtml(s, null, "") }
}),
- who: c ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("button", {
+ who: c ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-media-who": "",
"data-entity-kind": "performer",
"data-entity-name": i,
children: i
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-who-more": "",
children: `等 ${e.performer_total || n.length} 人`
- })] }) : o ? /* @__PURE__ */ (0, z.jsx)("button", {
+ })] }) : o ? /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-media-who": "",
"data-entity-kind": o,
"data-entity-name": s,
children: s
- }) : /* @__PURE__ */ (0, z.jsx)("button", {
+ }) : /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-media-who": "",
"data-open-unowned": "",
@@ -26903,30 +26903,30 @@ function vb(e, t) {
})
};
}
-function yb() {
- return /* @__PURE__ */ (0, z.jsxs)("button", {
+function bb() {
+ return /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-media-preview": "",
"data-open": "",
title: "打开预览",
"aria-label": "打开预览",
- children: [/* @__PURE__ */ (0, z.jsxs)("svg", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("svg", {
viewBox: "-18 -18 36 36",
"aria-hidden": "true",
- children: [/* @__PURE__ */ (0, z.jsx)("circle", { r: "17" }), /* @__PURE__ */ (0, z.jsx)("circle", { r: "17" })]
- }), /* @__PURE__ */ (0, z.jsx)("svg", {
+ children: [/* @__PURE__ */ (0, R.jsx)("circle", { r: "17" }), /* @__PURE__ */ (0, R.jsx)("circle", { r: "17" })]
+ }), /* @__PURE__ */ (0, R.jsx)("svg", {
"data-media-ring-play": "",
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: "#i-play" })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: "#i-play" })
})]
});
}
-function bb({ 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, z.jsx)("div", {
+function xb({ item: e, actions: t }) {
+ let [n, r] = (0, L.useState)(null), [i, a] = (0, L.useState)(!1), o = n?.id === e.id ? n.on : !!e.watch_later;
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-media-later": "",
- children: /* @__PURE__ */ (0, z.jsx)("button", {
+ children: /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-later": "",
"aria-pressed": o,
@@ -26940,16 +26940,16 @@ function bb({ item: e, actions: t }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, z.jsx)(mb, { name: o ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, R.jsx)(hb, { name: o ? "check" : "bookmark-plus" })
})
});
}
-function xb(e, t) {
+function Sb(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 Sb({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: c, actions: l, onOpen: u }) {
- let d = (0, R.useRef)(null), f = (0, R.useRef)({
+function Cb({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: c, actions: l, onOpen: u }) {
+ let d = (0, L.useRef)(null), f = (0, L.useRef)({
item: e,
helpers: c
});
@@ -26957,10 +26957,10 @@ function Sb({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
item: e,
helpers: c
};
- let p = (0, R.useCallback)((e) => {
+ let p = (0, L.useCallback)((e) => {
let { item: t, helpers: n } = f.current;
d.current && d.current !== e && n.releaseHover(d.current), d.current = e, e && (!t.medium || t.medium === "video") && n.wireHover(e, t);
- }, []), m = e.part_group || null, h = e.edition_group || null, g = !!(m || h), _ = n.active && e.is_jav ? n.size : "small", v = ub(e, _, !1, n.javImage, c.coverHtml), y = _ === "small" ? v.html : ub(e, "small", !1, n.javImage, c.coverHtml).html, b = m?.title || e.name || "", x = c.displayName(e, b), S = m?.total_size ?? e.size, C = m?.total_duration ?? e.duration, w = !m && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: T, who: E } = vb(e, c), D = (e.follow_tags || e.tags || []).slice(0, 3), O = [
+ }, []), m = e.part_group || null, h = e.edition_group || null, g = !!(m || h), _ = n.active && e.is_jav ? n.size : "small", v = db(e, _, !1, n.javImage, c.coverHtml), y = _ === "small" ? v.html : db(e, "small", !1, n.javImage, c.coverHtml).html, b = m?.title || e.name || "", x = c.displayName(e, b), S = m?.total_size ?? e.size, C = m?.total_duration ?? e.duration, w = !m && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: T, who: E } = yb(e, c), D = (e.follow_tags || e.tags || []).slice(0, 3), O = [
e.feedback === "dislike" && "dislike",
e.feedback === "seen" && "seen",
e.disposal === "trash" && "dispose",
@@ -26992,93 +26992,93 @@ function Sb({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
return;
}
u(e, r);
- }, A = /* @__PURE__ */ (0, z.jsxs)("div", {
+ }, A = /* @__PURE__ */ (0, R.jsxs)("div", {
"data-media-pic": "",
- style: { "--card-ratio": String(_b(e, t, n)) },
+ style: { "--card-ratio": String(vb(e, t, n)) },
children: [
- v.html ? /* @__PURE__ */ (0, z.jsx)(db, {
+ v.html ? /* @__PURE__ */ (0, R.jsx)(fb, {
artwork: v,
identity: y,
relayout: (e) => c.relayoutArt(e, _)
- }) : /* @__PURE__ */ (0, z.jsx)("span", {
+ }) : /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-nopic": "",
children: "无预览"
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"data-media-badge": "",
dangerouslySetInnerHTML: { __html: c.badgeHtml(e.location || "", e.cost || "") }
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, z.jsx)(mb, { name: "check" })
+ children: /* @__PURE__ */ (0, R.jsx)(hb, { name: "check" })
}),
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, z.jsx)(mb, { name: "trash" }), /* @__PURE__ */ (0, z.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, R.jsx)(hb, { name: "trash" }), /* @__PURE__ */ (0, R.jsx)("b", { children: "回收站" })]
}),
- m ? /* @__PURE__ */ (0, z.jsx)("span", {
+ m ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-group": "",
children: `${m.count} 卷`
}) : null,
- h ? /* @__PURE__ */ (0, z.jsx)("span", {
+ h ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-group": "",
title: h.editions.join(" · "),
children: `${h.count} 个版本`
}) : null,
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-duration": "",
children: o(C)
}),
- w > 0 ? /* @__PURE__ */ (0, z.jsx)("div", {
+ w > 0 ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-media-progress": "",
role: "progressbar",
"aria-label": "观看进度",
"aria-valuemin": 0,
"aria-valuemax": 100,
"aria-valuenow": Math.round(w * 100),
- children: /* @__PURE__ */ (0, z.jsx)("i", { style: { "--media-fill": `${(w * 100).toFixed(1)}%` } })
- }) : e.leave_ratio == null ? null : /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("i", { style: { "--media-fill": `${(w * 100).toFixed(1)}%` } })
+ }) : e.leave_ratio == null ? null : /* @__PURE__ */ (0, R.jsx)("div", {
"data-media-scrub": "",
- children: /* @__PURE__ */ (0, z.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
+ children: /* @__PURE__ */ (0, R.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, z.jsx)(yb, {}),
- /* @__PURE__ */ (0, z.jsx)(bb, {
+ /* @__PURE__ */ (0, R.jsx)(bb, {}),
+ /* @__PURE__ */ (0, R.jsx)(xb, {
item: e,
actions: l
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-media-seek": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), xb(d.current, -a);
+ e.stopPropagation(), Sb(d.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, z.jsx)(mb, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, R.jsx)(hb, { name: "rotate-ccw" })
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), xb(d.current, a);
+ e.stopPropagation(), Sb(d.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, z.jsx)(mb, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, R.jsx)(hb, { name: "rotate-cw" })
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, z.jsx)(mb, { name: "expand" })
+ children: /* @__PURE__ */ (0, R.jsx)(hb, { name: "expand" })
})
]
})
]
});
- return /* @__PURE__ */ (0, z.jsxs)("article", {
+ return /* @__PURE__ */ (0, R.jsxs)("article", {
ref: p,
"data-media-card": "",
"data-id": e.id,
@@ -27089,52 +27089,52 @@ function Sb({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-selected": r ? "" : void 0,
onClick: k,
children: [
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-media-open": "",
"data-open": "",
"aria-label": `打开 ${x}${m ? "分卷" : h ? "版本" : "详情"}`
}),
- g ? /* @__PURE__ */ (0, z.jsx)("div", {
+ g ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-media-stack": "",
children: A
}) : A,
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-media-meta": "",
- children: [T, /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [T, /* @__PURE__ */ (0, R.jsxs)("div", {
"data-media-text": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-media-title": "",
"data-open": "",
dangerouslySetInnerHTML: { __html: c.titleHtml(e, b) }
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-media-byline": "",
children: [
E,
- e.why ? /* @__PURE__ */ (0, z.jsx)("span", {
+ e.why ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-why": "",
children: e.why
}) : null,
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-size": "",
children: Number(S) > 0 ? s(Number(S)) : "大小未知"
}),
- e.play_count ? /* @__PURE__ */ (0, z.jsx)("span", {
+ e.play_count ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-watch-count": "",
children: `看过 ${e.play_count}`
}) : null,
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-flags": "",
- children: O.map((e) => /* @__PURE__ */ (0, z.jsx)("i", { "data-flag": e }, e))
+ children: O.map((e) => /* @__PURE__ */ (0, R.jsx)("i", { "data-flag": e }, e))
})
]
}),
- D.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ D.length ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-media-tags": "",
- children: D.map((t) => /* @__PURE__ */ (0, z.jsx)("button", {
+ children: D.map((t) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-media-tag": "",
disabled: !!e.follow_item_id,
@@ -27148,8 +27148,8 @@ function Sb({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
]
});
}
-function Cb({ item: e, selected: t, selectMode: n, helpers: r, actions: a, onOpen: o }) {
- let c = (0, R.useRef)(null), [l, u] = (0, R.useState)(!1), d = e.medium === "image" && e.location !== "online", f = String(e.name || ""), p = f.toLowerCase().endsWith(".url") ? "网址快捷方式" : hb[e.medium || ""] || "其它文件", m = d ? "pics" : p === "网址快捷方式" ? "globe" : "hard-drive", h = e.disposal === "trash" ? "restore" : "dispose", g = h === "restore" ? "还原" : "移入回收站", _ = (t) => {
+function wb({ item: e, selected: t, selectMode: n, helpers: r, actions: a, onOpen: o }) {
+ let c = (0, L.useRef)(null), [l, u] = (0, L.useState)(!1), d = e.medium === "image" && e.location !== "online", f = String(e.name || ""), p = f.toLowerCase().endsWith(".url") ? "网址快捷方式" : gb[e.medium || ""] || "其它文件", m = d ? "pics" : p === "网址快捷方式" ? "globe" : "hard-drive", h = e.disposal === "trash" ? "restore" : "dispose", g = h === "restore" ? "还原" : "移入回收站", _ = (t) => {
t.preventDefault(), t.stopPropagation(), !l && (u(!0), a.resourceOperation(e, h).catch(() => {}).finally(() => u(!1)));
}, v = (t) => {
if (c.current) {
@@ -27160,7 +27160,7 @@ function Cb({ item: e, selected: t, selectMode: n, helpers: r, actions: a, onOpe
o(e, c.current);
}
}, y = h === "restore" ? "正在还原" : "正在处理";
- return /* @__PURE__ */ (0, z.jsxs)("article", {
+ return /* @__PURE__ */ (0, R.jsxs)("article", {
ref: c,
"data-media-card": "",
"data-id": e.id,
@@ -27169,31 +27169,31 @@ function Cb({ item: e, selected: t, selectMode: n, helpers: r, actions: a, onOpe
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": t ? "" : void 0,
onClick: v,
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, z.jsx)(mb, { name: m }), /* @__PURE__ */ (0, z.jsx)("b", { children: p })]
+ children: [/* @__PURE__ */ (0, R.jsx)(hb, { name: m }), /* @__PURE__ */ (0, R.jsx)("b", { children: p })]
}),
- d ? /* @__PURE__ */ (0, z.jsx)("span", {
+ d ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-art": "thumb",
dangerouslySetInnerHTML: { __html: `<img class="poster" src="/photo-thumb?id=${e.id}" alt="" loading="lazy" data-drop="self">` }
}) : null,
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"data-media-badge": "",
dangerouslySetInnerHTML: { __html: r.badgeHtml(e.location || "", e.cost || "") }
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, z.jsx)(mb, { name: "check" })
+ children: /* @__PURE__ */ (0, R.jsx)(hb, { name: "check" })
}),
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, z.jsx)(mb, { name: "trash" }), /* @__PURE__ */ (0, z.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, R.jsx)(hb, { name: "trash" }), /* @__PURE__ */ (0, R.jsx)("b", { children: "回收站" })]
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-media-resource-action": h,
"aria-label": `${g} ${f}`,
@@ -27201,35 +27201,35 @@ function Cb({ item: e, selected: t, selectMode: n, helpers: r, actions: a, onOpe
onClick: _,
"aria-busy": l || void 0,
"aria-disabled": l || void 0,
- children: l ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { dangerouslySetInnerHTML: { __html: ie(h === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, z.jsx)("span", { children: y })] }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(mb, { name: h === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, z.jsx)("span", { children: g })] })
+ children: l ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("span", { dangerouslySetInnerHTML: { __html: ae(h === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, R.jsx)("span", { children: y })] }) : /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(hb, { name: h === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, R.jsx)("span", { children: g })] })
})
]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
"data-media-meta": "",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)(mb, { name: m })
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)(hb, { name: m })
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
"data-media-text": "",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-media-title": "",
"data-middle-truncate": "",
title: f,
dangerouslySetInnerHTML: { __html: i(f || "未命名资源") }
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
"data-media-byline": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-who": "",
children: p
}),
- e.why ? /* @__PURE__ */ (0, z.jsx)("span", {
+ e.why ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-why": "",
children: e.why
}) : null,
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-size": "",
children: Number(e.size) > 0 ? s(Number(e.size)) : "大小未知"
})
@@ -27239,39 +27239,39 @@ function Cb({ item: e, selected: t, selectMode: n, helpers: r, actions: a, onOpe
})]
});
}
-function wb(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, z.jsx)(Cb, { ...e }) : /* @__PURE__ */ (0, z.jsx)(Sb, { ...e });
+function Tb(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, R.jsx)(wb, { ...e }) : /* @__PURE__ */ (0, R.jsx)(Cb, { ...e });
}
-var Tb = (0, R.memo)(wb), Eb = { "text-aa": 1.435 }, Db = /* @__PURE__ */ new Map();
-function Ob(e) {
- let t = Db.get(e);
+var Eb = (0, L.memo)(Tb), Db = { "text-aa": 1.435 }, Ob = /* @__PURE__ */ new Map();
+function kb(e) {
+ let t = Ob.get(e);
if (t) return t;
- let n = Eb[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, z.jsx)("svg", {
+ let n = Db[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, R.jsx)("svg", {
"aria-hidden": !0,
viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,
className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
- }) : ({ className: t }) => /* @__PURE__ */ (0, z.jsx)("svg", {
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
+ }) : ({ className: t }) => /* @__PURE__ */ (0, R.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
strokeLinecap: "round",
strokeLinejoin: "round",
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
});
- return r.displayName = `SpriteGlyph(${e})`, Db.set(e, r), r;
+ return r.displayName = `SpriteGlyph(${e})`, Ob.set(e, r), r;
}
//#endregion
//#region src/react/components/use-stack-flip.ts
-var kb = 1100, Ab = 340, jb = 5e3;
-function Mb(e, t, n) {
+var Ab = 1100, jb = 340, Mb = 5e3;
+function Nb(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, jb);
+ }, s = () => o(!1), c = setTimeout(s, Mb);
t.cancels.add(s), i.onerror = s, i.onload = () => {
if (!i.naturalWidth) {
o(!1);
@@ -27281,8 +27281,8 @@ function Mb(e, t, n) {
}, i.src = e;
});
}
-function Nb({ 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)({
+function Pb({ load: e, canFlip: t, referrerPolicy: n }) {
+ let [r, i] = (0, L.useState)([]), [a, o] = (0, L.useState)(0), [s, c] = (0, L.useState)(null), l = (0, L.useRef)({
live: !1,
generation: 0,
timers: /* @__PURE__ */ new Set(),
@@ -27291,7 +27291,7 @@ function Nb({ load: e, canFlip: t, referrerPolicy: n }) {
armed: null,
count: 0,
at: 0
- }), u = (0, R.useRef)({
+ }), u = (0, L.useRef)({
load: e,
canFlip: t
});
@@ -27299,7 +27299,7 @@ function Nb({ load: e, canFlip: t, referrerPolicy: n }) {
load: e,
canFlip: t
};
- let d = (0, R.useCallback)(() => {
+ let d = (0, L.useCallback)(() => {
let e = l.current;
e.live = !1, e.generation += 1, e.timers.forEach(clearTimeout), e.timers.clear(), e.armed = null, e.cycle !== null && clearInterval(e.cycle), e.cycle = null, e.cancels.forEach((e) => e()), e.count = 0, e.at = 0;
}, []), f = (e, t) => {
@@ -27323,20 +27323,20 @@ function Nb({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => Mb(t, e, n)));
+ let s = await Promise.all(a.map((t) => Nb(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, kb);
+ p(), e.cycle = setInterval(p, Ab);
}));
};
- return (0, R.useEffect)(() => d, [d]), {
+ return (0, L.useEffect)(() => d, [d]), {
faces: r,
current: a,
leaving: s,
onPointerEnter: () => {
let e = l.current;
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(Ab, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(jb, () => {
e.armed = null, m();
});
},
@@ -27347,10 +27347,10 @@ function Nb({ load: e, canFlip: t, referrerPolicy: n }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var Pb = Ob("play");
-function Fb({ src: e }) {
- let [t, n] = (0, R.useState)(!1);
- return t ? null : /* @__PURE__ */ (0, z.jsx)("img", {
+var Fb = kb("play");
+function Ib({ src: e }) {
+ let [t, n] = (0, L.useState)(!1);
+ return t ? null : /* @__PURE__ */ (0, R.jsx)("img", {
"data-mix-poster": "",
src: e,
alt: "",
@@ -27359,37 +27359,37 @@ function Fb({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var Ib = "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";
+var Lb = "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 Vne({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
- return e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ return e.length ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-mix-avatars": "",
- children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, z.jsx)("button", {
+ children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => r(e.kind, e.name),
- className: `${Ib} cursor-pointer outline-none`,
+ className: `${Lb} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: n(e) }
}, `${e.kind}:${e.id}`))
- }) : /* @__PURE__ */ (0, z.jsx)("span", {
+ }) : /* @__PURE__ */ (0, R.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${Ib} mt-0.5`,
+ className: `${Lb} mt-0.5`,
children: t
});
}
-function Lb({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, faceAvatar: s, onOpenEntity: c, onOpen: l, openLabel: u, menu: d, ratio: f, artwork: p, artworkIdentity: m, relayoutArt: h, faceHtml: g, badge: _, glyph: v, wholeCard: y, ...b }) {
- let x = Nb({
+function Rb({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, faceAvatar: s, onOpenEntity: c, onOpen: l, openLabel: u, menu: d, ratio: f, artwork: p, artworkIdentity: m, relayoutArt: h, faceHtml: g, badge: _, glyph: v, wholeCard: y, ...b }) {
+ let x = Pb({
load: i,
canFlip: a
- }), S = (0, R.useRef)(x.onPointerLeave);
+ }), S = (0, L.useRef)(x.onPointerLeave);
S.current = x.onPointerLeave;
- let C = (0, R.useRef)(null), w = (0, R.useCallback)((e) => {
+ let C = (0, L.useRef)(null), w = (0, L.useCallback)((e) => {
C.current = e, e && (e._stopHover = () => S.current());
}, []), T = l ? () => {
C.current && l(C.current);
} : void 0, E = p !== void 0 || f !== void 0;
- return /* @__PURE__ */ (0, z.jsxs)("article", {
+ return /* @__PURE__ */ (0, R.jsxs)("article", {
...b,
ref: w,
"data-mix-card": "",
@@ -27397,39 +27397,39 @@ function Lb({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
onMouseLeave: x.onPointerLeave,
onClick: y ? T : void 0,
className: "relative flex min-w-0 cursor-pointer flex-col gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
"data-mix-stack": "",
className: "relative isolate rounded-surface",
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
"data-mix-cover": "",
"data-media-pic": E ? "" : void 0,
style: f === void 0 ? void 0 : { "--card-ratio": String(f) },
className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden rounded-surface",
children: [
- p?.html ? /* @__PURE__ */ (0, z.jsx)(db, {
+ p?.html ? /* @__PURE__ */ (0, R.jsx)(fb, {
artwork: p,
identity: m,
relayout: h
- }) : r ? /* @__PURE__ */ (0, z.jsx)(Fb, { src: r }, r) : /* @__PURE__ */ (0, z.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, R.jsx)(Ib, { src: r }, r) : /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"data-mix-faces": "",
hidden: !x.faces.length,
- children: x.faces.map((e, t) => /* @__PURE__ */ (0, z.jsx)("div", {
+ children: x.faces.map((e, t) => /* @__PURE__ */ (0, R.jsx)("div", {
"data-mix-face": t === x.current ? "on" : t === x.leaving ? "off" : "",
- children: g ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: g ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-art": "",
dangerouslySetInnerHTML: { __html: g(e) }
- }) : /* @__PURE__ */ (0, z.jsx)("img", {
+ }) : /* @__PURE__ */ (0, R.jsx)("img", {
src: e,
alt: "",
loading: "eager"
})
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-mix-open": "",
"aria-label": u,
@@ -27437,36 +27437,36 @@ function Lb({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
onClick: y ? void 0 : T,
className: "absolute inset-0 z-1 cursor-pointer rounded-surface outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring disabled:cursor-default"
}),
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.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, z.jsx)(Pb, {
+ children: [/* @__PURE__ */ (0, R.jsx)(Fb, {
"aria-hidden": !0,
className: "size-3.75"
}), _ ?? `${n} 个视频`]
})
]
})
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 items-start gap-2.25",
children: [
- v ? /* @__PURE__ */ (0, z.jsx)("span", {
+ v ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, z.jsx)(Pb, {})
- }) : /* @__PURE__ */ (0, z.jsx)(Vne, {
+ children: /* @__PURE__ */ (0, R.jsx)(Fb, {})
+ }) : /* @__PURE__ */ (0, R.jsx)(Vne, {
faces: o,
fallback: e.slice(0, 1),
faceAvatar: s,
onOpenEntity: c
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col",
- children: [/* @__PURE__ */ (0, z.jsx)("b", {
+ children: [/* @__PURE__ */ (0, R.jsx)("b", {
"data-mix-title": "",
className: "truncate text-body-bold text-text-primary",
children: e
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-mix-caption": "",
className: "mt-0.5 truncate text-caption-1-regular text-text-secondary",
children: t
@@ -27479,20 +27479,20 @@ function Lb({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
-function Rb(e) {
- if (e.mode === "items") return /* @__PURE__ */ (0, z.jsx)(Une, { ...e });
- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${nb(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return /* @__PURE__ */ (0, z.jsx)(Wne, { ...e }, t);
+function zb(e) {
+ if (e.mode === "items") return /* @__PURE__ */ (0, R.jsx)(Une, { ...e });
+ let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${rb(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ return /* @__PURE__ */ (0, R.jsx)(Wne, { ...e }, t);
}
function Hne({ name: e }) {
- return /* @__PURE__ */ (0, z.jsx)("svg", {
+ return /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
});
}
function Une(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, z.jsx)(Tb, {
+ let { actions: t } = e, n = (0, L.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, R.jsx)(Eb, {
item: i,
variant: r,
layout: e.layout,
@@ -27503,24 +27503,24 @@ function Une(e) {
actions: t,
onOpen: n
}, i.id));
- return r === "next" ? /* @__PURE__ */ (0, z.jsx)("div", {
+ return r === "next" ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-media-next-row": "",
children: i
- }) : /* @__PURE__ */ (0, z.jsx)("div", {
+ }) : /* @__PURE__ */ (0, R.jsx)("div", {
"data-media-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
children: i
});
}
function Wne(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Mne(e) : rb(e), s = i && e.initial ? {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Mne(e) : ib(e), s = i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
offset: 0
}],
pageParams: [0]
- } : void 0, c = tr({
+ } : void 0, c = nr({
queryKey: o.queryKey,
queryFn: ({ pageParam: e, signal: t }) => o.queryFn({
pageParam: e,
@@ -27529,11 +27529,11 @@ function Wne(e) {
initialPageParam: 0,
getNextPageParam: o.getNextPageParam,
initialData: s
- }), l = (0, R.useRef)(!1);
- (0, R.useEffect)(() => {
+ }), l = (0, L.useRef)(!1);
+ (0, L.useEffect)(() => {
c.isPending || l.current || (l.current = !0, e.settled?.(e.revision));
}, [c.isPending]);
- let { tiles: u, pageStarts: d } = (0, R.useMemo)(() => Lne(c.data?.pages || [], {
+ let { tiles: u, pageStarts: d } = (0, L.useMemo)(() => Lne(c.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -27543,23 +27543,23 @@ function Wne(e) {
e.mix,
a,
r.javImage
- ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), h = ob(c.isPending, e.skeletonHtml), g = (0, R.useRef)(null), _ = Gne(e, c.data, u, d, g);
- (0, R.useLayoutEffect)(() => {
+ ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), h = sb(c.isPending, e.skeletonHtml), g = (0, L.useRef)(null), _ = Gne(e, c.data, u, d, g);
+ (0, L.useLayoutEffect)(() => {
c.data && e.onCount?.(p, f);
}, [
c.data,
p,
f
]);
- let v = (0, R.useCallback)((e, t) => n.open(e, t), [n]), y = (0, R.useCallback)((e, t) => n.openResource(e, t), [n]), b = (0, R.useCallback)((e) => n.openShort(e), [n]), x = (0, R.useCallback)(async () => {
+ let v = (0, L.useCallback)((e, t) => n.open(e, t), [n]), y = (0, L.useCallback)((e, t) => n.openResource(e, t), [n]), b = (0, L.useCallback)((e) => n.openShort(e), [n]), x = (0, L.useCallback)(async () => {
let e = await c.fetchNextPage({ cancelRefetch: !1 });
if (e.isFetchNextPageError) throw e.error;
- }, [c.fetchNextPage]), S = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, z.jsx)(qne, {
+ }, [c.fetchNextPage]), S = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, R.jsx)(qne, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, z.jsx)(Tb, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, R.jsx)(Eb, {
item: i.item,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
layout: r,
@@ -27570,13 +27570,13 @@ function Wne(e) {
actions: n,
onOpen: a ? y : v
}, i.item.id);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
ref: g,
"data-media-body": "",
"data-grid-reveal": h.fading ? "" : void 0,
children: [h.layer, (() => {
if (c.isPending) return null;
- if (!c.data) return /* @__PURE__ */ (0, z.jsx)(sb, {
+ if (!c.data) return /* @__PURE__ */ (0, R.jsx)(cb, {
message: m(c.error),
onRetry: () => void c.refetch()
});
@@ -27585,23 +27585,23 @@ function Wne(e) {
trash: a,
libraryEmpty: !!c.data.pages[0]?.libraryEmpty
}) || "";
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-media-empty": "",
dangerouslySetInnerHTML: { __html: t }
});
}
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: Bne(u, _).map((t) => /* @__PURE__ */ (0, z.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: Bne(u, _).map((t) => /* @__PURE__ */ (0, R.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("div", {
"data-media-grid": "",
children: t.tiles.map(S)
- }), t.strip ? /* @__PURE__ */ (0, z.jsx)(Kne, {
+ }), t.strip ? /* @__PURE__ */ (0, R.jsx)(Kne, {
cut: t.strip,
props: e,
onOpen: b
}) : null] }, t.start))
- }), c.hasNextPage ? /* @__PURE__ */ (0, z.jsx)(zb, {
+ }), c.hasNextPage ? /* @__PURE__ */ (0, R.jsx)(Bb, {
entity: i,
load: x,
enabled: () => e.canLoadMore?.() !== !1
@@ -27609,11 +27609,11 @@ function Wne(e) {
})()]
});
}
-function zb({ 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)({
+function Bb({ entity: e, load: t, enabled: n, children: r }) {
+ let i = (0, L.useRef)(null), a = (0, L.useRef)(!1), o = (0, L.useRef)(!1), [s, c] = (0, L.useState)({
busy: !1,
error: ""
- }), l = (0, R.useRef)({
+ }), l = (0, L.useRef)({
load: t,
enabled: n
});
@@ -27621,7 +27621,7 @@ function zb({ entity: e, load: t, enabled: n, children: r }) {
load: t,
enabled: n
};
- let u = (0, R.useCallback)(async (e) => {
+ let u = (0, L.useCallback)(async (e) => {
let t = i.current;
if (!(a.current || !t?.isConnected || !e && o.current || !l.current.enabled())) {
a.current = !0, o.current = !1, c({
@@ -27642,10 +27642,10 @@ function zb({ entity: e, load: t, enabled: n, children: r }) {
a.current = !1;
}
}
- }, []), d = (0, R.useCallback)((e) => {
+ }, []), d = (0, L.useCallback)((e) => {
i.current = e;
}, []);
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
let e = i.current;
if (!e) return;
let t = new IntersectionObserver((e) => {
@@ -27657,34 +27657,34 @@ function zb({ entity: e, load: t, enabled: n, children: r }) {
"aria-busy": !0,
"aria-disabled": !0
} : {};
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [e ? /* @__PURE__ */ (0, z.jsx)("button", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [e ? /* @__PURE__ */ (0, R.jsx)("button", {
ref: d,
type: "button",
"data-entity-more": "",
...f,
onClick: () => void u(!0),
children: r ?? "载入更多"
- }) : /* @__PURE__ */ (0, z.jsx)("div", {
+ }) : /* @__PURE__ */ (0, R.jsx)("div", {
ref: d,
"data-load-more": "",
...f,
onClick: () => void u(!0),
dangerouslySetInnerHTML: { __html: k("继续载入中…") }
- }), s.error ? /* @__PURE__ */ (0, z.jsx)(sb, {
+ }), s.error ? /* @__PURE__ */ (0, R.jsx)(cb, {
message: s.error,
onRetry: () => void u(!0)
}) : null] });
}
function Gne(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 [a, o] = (0, L.useState)([]), [s, c] = (0, L.useState)(null), l = (0, L.useRef)(0), u = (0, L.useRef)(0), d = (0, L.useRef)([]);
+ return (0, L.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, L.useEffect)(() => {
let n = t?.pages.length || 0;
if (!e.shorts || u.current >= n) return;
u.current = n;
let r = new AbortController();
d.current.push(r);
let i = n - 1;
- W(`/api/items?${zne(e.filters || {}, l.current)}`, r.signal).then((t) => {
+ U(`/api/items?${zne(e.filters || {}, l.current)}`, r.signal).then((t) => {
let n = t.items || [];
if (!n.length) {
l.current = 0;
@@ -27697,7 +27697,7 @@ function Gne(e, t, n, r, i) {
more: t.has_more !== !1
});
}).catch(() => {});
- }, [t]), (0, R.useLayoutEffect)(() => {
+ }, [t]), (0, L.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 = Rne(n.length - e, f, d);
@@ -27711,27 +27711,27 @@ function Gne(e, t, n, r, i) {
}, [s]), a;
}
function Kne({ cut: e, props: t, onOpen: n }) {
- let r = (0, R.useRef)(null), { wireDrag: i } = t;
- return (0, R.useEffect)(() => {
+ let r = (0, L.useRef)(null), { wireDrag: i } = t;
+ return (0, L.useEffect)(() => {
r.current && i(r.current);
- }, [i]), /* @__PURE__ */ (0, z.jsxs)("section", {
+ }, [i]), /* @__PURE__ */ (0, R.jsxs)("section", {
"data-shorts-strip": "",
- children: [/* @__PURE__ */ (0, z.jsxs)("h2", { children: [
+ children: [/* @__PURE__ */ (0, R.jsxs)("h2", { children: [
"竖屏 ",
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-shorts-count": "",
children: `${e.total.toLocaleString()} 个`
}),
- /* @__PURE__ */ (0, z.jsxs)("button", {
+ /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, z.jsx)(Hne, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, R.jsx)(Hne, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, R.jsx)("span", { children: "进入沉浸模式" })]
})
- ] }), /* @__PURE__ */ (0, z.jsx)("div", {
+ ] }), /* @__PURE__ */ (0, R.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, z.jsx)(Tb, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, R.jsx)(Eb, {
item: e,
variant: "short",
layout: t.layout,
@@ -27745,9 +27745,9 @@ function Kne({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function Bb(e, t, n, r) {
+function Vb(e, t, n, r) {
let i = t.active && !!e.is_jav;
- return e.is_jav ? lb(e, i ? t.size : "small", n, t.javImage, r.coverHtml) : !e.has_thumb && !e.has_local_poster ? {
+ return e.is_jav ? ub(e, i ? t.size : "small", n, t.javImage, r.coverHtml) : !e.has_thumb && !e.has_local_poster ? {
kind: "",
html: ""
} : {
@@ -27756,17 +27756,17 @@ function Bb(e, t, n, r) {
};
}
function qne({ seed: e, layout: t, helpers: n, actions: r }) {
- let i = (0, R.useRef)(/* @__PURE__ */ new Map()), a = (0, R.useRef)(t);
+ let i = (0, L.useRef)(/* @__PURE__ */ new Map()), a = (0, L.useRef)(t);
a.current = t;
- let o = Fne(e, n.tagLabel), s = (0, R.useCallback)(async () => {
- let t = a.current, o = [e, ...await r.mixRelated(e.id)].filter((e) => ib(e, t.javImage)).slice(0, 9);
- return i.current = new Map(o.map((e) => [String(e.id), Bb(e, t, !0, n).html])), o.map((e) => String(e.id));
+ let o = Fne(e, n.tagLabel), s = (0, L.useCallback)(async () => {
+ let t = a.current, o = [e, ...await r.mixRelated(e.id)].filter((e) => ab(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(o.map((e) => [String(e.id), Vb(e, t, !0, n).html])), o.map((e) => String(e.id));
}, [
e,
r,
n
- ]), c = t.active && e.is_jav ? t.size : "small", l = Bb(e, t, !1, n);
- return /* @__PURE__ */ (0, z.jsx)(Lb, {
+ ]), c = t.active && e.is_jav ? t.size : "small", l = Vb(e, t, !1, n);
+ return /* @__PURE__ */ (0, R.jsx)(Rb, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -27776,12 +27776,12 @@ function qne({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : Bb(e, {
+ artworkIdentity: c === "small" ? l.html : Vb(e, {
...t,
size: "small"
}, !1, n).html,
relayoutArt: (e) => n.relayoutArt(e, c),
- ratio: _b(e, "grid", t),
+ ratio: vb(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -27794,31 +27794,31 @@ function qne({ seed: e, layout: t, helpers: n, actions: r }) {
}
//#endregion
//#region src/react/media-sources.ts
-var Jne = "/api/sources", Vb = ["media-sources"], Hb = (e) => W(Jne, e);
-async function Ub(e) {
- await X.fetchQuery({
- queryKey: Vb,
- queryFn: () => Hb(e)
+var Jne = "/api/sources", Hb = ["media-sources"], Ub = (e) => U(Jne, e);
+async function Wb(e) {
+ await Y.fetchQuery({
+ queryKey: Hb,
+ queryFn: () => Ub(e)
});
}
var Yne = [
"local",
"115",
"pikpak"
-], Xne = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Zne = "/api/duplicates?limit=120", Wb = ["duplicates"], Gb = "/api/batch", Kb = (e) => W(Zne, e);
+], Xne = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Zne = "/api/duplicates?limit=120", Gb = ["duplicates"], Kb = "/api/batch", qb = (e) => U(Zne, e);
async function Qne(e) {
- await Promise.all([X.fetchQuery({
- queryKey: Wb,
- queryFn: () => Kb(e)
- }), Ub(e)]);
+ await Promise.all([Y.fetchQuery({
+ queryKey: Gb,
+ queryFn: () => qb(e)
+ }), Wb(e)]);
}
-var qb = {
+var Jb = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, $ne = (e, t) => t.filter((t) => e.some((e) => e.location === t)), Jb = (e, t) => $ne(e, t).filter((t) => e.some((e) => e.location !== t)), ere = (e, t) => t.filter((t) => e.some((e) => Jb(e.files, [t]).length));
+}, $ne = (e, t) => t.filter((t) => e.some((e) => e.location === t)), Yb = (e, t) => $ne(e, t).filter((t) => e.some((e) => e.location !== t)), ere = (e, t) => t.filter((t) => e.some((e) => Yb(e.files, [t]).length));
function tre(e, t) {
let n = [];
for (let r of e) {
@@ -27842,22 +27842,22 @@ function nre(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 Yb(e, t) {
- for (let n = 0; n < e.length; n += 200) await G(Gb, {
+async function Xb(e, t) {
+ for (let n = 0; n < e.length; n += 200) await W(Kb, {
ids: e.slice(n, n + 200),
operation: t
});
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var Xb = "/api/library-processing", Zb = ["library-processing"], Qb = (e) => W(Xb, e);
-async function $b(e) {
- await X.fetchQuery({
- queryKey: Zb,
- queryFn: () => Qb(e)
+var Zb = "/api/library-processing", Qb = ["library-processing"], $b = (e) => U(Zb, e);
+async function ex(e) {
+ await Y.fetchQuery({
+ queryKey: Qb,
+ queryFn: () => $b(e)
});
}
-var rre = 2e3, ire = 1e4, ex = "连接中断,正在重新读取处理进度";
+var rre = 2e3, ire = 1e4, tx = "连接中断,正在重新读取处理进度";
function are(e, t) {
return e?.status === "running" ? rre : t ? ire : !1;
}
@@ -27866,15 +27866,15 @@ var ore = {
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, tx = {
+}, nx = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
function sre(e) {
- let t = Object.entries(e).filter(([e, t]) => tx[e] && t > 0).map(([e, t]) => `${tx[e]} ${t} 部`);
+ let t = Object.entries(e).filter(([e, t]) => nx[e] && t > 0).map(([e, t]) => `${nx[e]} ${t} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function nx(e) {
+function rx(e) {
let t = ore[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;
}
@@ -27892,21 +27892,21 @@ function cre(e) {
log: e.issues_log || ""
} : null;
}
-var rx = "peach.library-processing.announced", lre = 120;
+var ix = "peach.library-processing.announced", lre = 120;
function ure(e, t, n) {
if (e.status !== "complete") return;
let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < lre;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(rx) === e.job_id) return;
- e.job_id && localStorage.setItem(rx, e.job_id);
+ if (e.job_id && localStorage.getItem(ix) === e.job_id) return;
+ e.job_id && localStorage.setItem(ix, 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 ix = "/api/media-repair", ax = ["media-repair"], ox = ["media-repair", "libraries"], dre = {
+var ax = "/api/media-repair", ox = ["media-repair"], sx = ["media-repair", "libraries"], dre = {
status: "idle",
library: "",
stage: "",
@@ -27918,33 +27918,33 @@ var ix = "/api/media-repair", ax = ["media-repair"], ox = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, sx = (e) => W(ix, e), cx = async (e) => (await W("/api/libraries", e)).libraries || [];
+}, cx = (e) => U(ax, e), lx = async (e) => (await U("/api/libraries", e)).libraries || [];
async function fre(e) {
- await Promise.all([X.fetchQuery({
- queryKey: ax,
- queryFn: () => sx(e)
- }), X.fetchQuery({
+ await Promise.all([Y.fetchQuery({
queryKey: ox,
queryFn: () => cx(e)
+ }), Y.fetchQuery({
+ queryKey: sx,
+ queryFn: () => lx(e)
})]);
}
-var lx = (e) => Number(e).toLocaleString();
+var ux = (e) => Number(e).toLocaleString();
function pre(e) {
if (e.status === "running") {
- let t = e.total ? `${lx(e.checked)} / ${lx(e.total)}` : "准备中";
+ let t = e.total ? `${ux(e.checked)} / ${ux(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${lx(e.repaired)} 部,${lx(e.failed)} 部修不了` : `修好 ${lx(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${ux(e.repaired)} 部,${ux(e.failed)} 部修不了` : `修好 ${ux(e.repaired)} 部` : "";
}
-var mre = (e) => `${lx(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, hre = "/api/quality-goals?limit=200", ux = ["quality-goals"], dx = (e) => W(hre, e);
+var mre = (e) => `${ux(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, hre = "/api/quality-goals?limit=200", dx = ["quality-goals"], fx = (e) => U(hre, e);
async function gre(e) {
- await X.fetchQuery({
- queryKey: ux,
- queryFn: () => dx(e)
+ await Y.fetchQuery({
+ queryKey: dx,
+ queryFn: () => fx(e)
});
}
var _re = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
-function fx(e, t, n = 1) {
+function px(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;
@@ -27964,10 +27964,10 @@ function fx(e, t, n = 1) {
t
];
}
-function px(e, t) {
+function mx(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function mx(e, t) {
+function hx(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
@@ -27978,7 +27978,7 @@ function vre(e, t, n, r, i, a = i || !e.has(r)) {
}
//#endregion
//#region src/react/time.ts
-function hx(e) {
+function gx(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);
@@ -27987,7 +27987,7 @@ function hx(e) {
}
//#endregion
//#region src/react/review/review.ts
-var yre = "/api/review", bre = "/api/review/decision", xre = "/api/review/genre", gx = ["review"], _x = {
+var yre = "/api/review", bre = "/api/review/decision", xre = "/api/review/genre", _x = ["review"], vx = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -27997,7 +27997,7 @@ var yre = "/api/review", bre = "/api/review/decision", xre = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, Sre = Object.keys(_x), Cre = "metadata_fields", vx = (e) => typeof e == "string" && Object.hasOwn(_x, e), wre = {
+}, Sre = Object.keys(vx), Cre = "metadata_fields", yx = (e) => typeof e == "string" && Object.hasOwn(vx, e), wre = {
creator_tags: "creator",
western_identity: "creator"
};
@@ -28005,7 +28005,7 @@ function Tre(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 yx(e, t) {
+function bx(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -28023,10 +28023,10 @@ function yx(e, t) {
return [...n.values()];
}
function Ere(e, t, n) {
- return n && yx(e, t).find((e) => e.key === n)?.rows || e;
+ return n && bx(e, t).find((e) => e.key === n)?.rows || e;
}
function Dre(e, t) {
- let n = px(e.length, 20), r = mx(t, n);
+ let n = mx(e.length, 20), r = hx(t, n);
return {
page: r,
pages: n,
@@ -28039,15 +28039,15 @@ function Ore(e) {
function kre(e, t, n, r, i, a) {
return vre(e, t, n, r, i, a);
}
-function bx(e, t) {
+function xx(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function xx(e, t) {
+function Sx(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var Sx = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+var Cx = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
function Are(e, t) {
- let n = xx(e, t), r = Sx(e, t);
+ let n = Sx(e, t), r = Cx(e, t);
return r ? `${n} · ${r}` : n;
}
var jre = (e) => e.reason || e.evidence || e.note || e.decision_note || "", Mre = (e) => String(e.tags || "").split("|").filter(Boolean), Nre = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
@@ -28058,7 +28058,7 @@ function Pre(e) {
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function Cx(e, t, n, r) {
+function wx(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -28074,19 +28074,19 @@ function Cx(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var Fre = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", wx = (e) => W(yre, e), Tx = (e) => G(bre, e), Ire = (e, t) => G(xre, {
+var Fre = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Tx = (e) => U(yre, e), Ex = (e) => W(bre, e), Ire = (e, t) => W(xre, {
genre: e,
tag: t
});
async function Lre(e) {
- await X.fetchQuery({
- queryKey: gx,
- queryFn: () => wx(e)
+ await Y.fetchQuery({
+ queryKey: _x,
+ queryFn: () => Tx(e)
});
}
-function Ex(e, t) {
+function Dx(e, t) {
let n = new Set(t);
- n.size && X.setQueryData(gx, (t) => {
+ n.size && Y.setQueryData(_x, (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 : {
@@ -28102,187 +28102,187 @@ function Ex(e, t) {
};
});
}
-var Rre = () => X.invalidateQueries({
- queryKey: gx,
+var Rre = () => Y.invalidateQueries({
+ queryKey: _x,
exact: !0
});
function zre(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${hx(e.fetched_at)} 的缓存` : e?.error || t;
+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${gx(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var Bre = "/api/links", Dx = "/api/links/check", Ox = "/api/links/prune", kx = ["links"], Ax = ["links", "check"], jx = ["links", "prune"], Mx = {
+var Bre = "/api/links", Ox = "/api/links/check", kx = "/api/links/prune", Ax = ["links"], jx = ["links", "check"], Mx = ["links", "prune"], Nx = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function Nx(e) {
+async function Px(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var Px = (e) => W(Bre, e), Fx = (e) => G(Dx, { status_only: !0 }, "POST", e), Vre = ({ retry: e, checkId: t }) => Nx(G(Dx, e ? {
+var Fx = (e) => U(Bre, e), Ix = (e) => W(Ox, { status_only: !0 }, "POST", e), Vre = ({ retry: e, checkId: t }) => Px(W(Ox, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), Ix = (e) => W(Ox, e), Hre = (e) => Nx(G(Ox, {
+} : { restart: !0 })), Lx = (e) => U(kx, e), Hre = (e) => Px(W(kx, {
confirm: !0,
check_id: e,
background: !0
-})), Lx = (e) => Number(e || 0).toLocaleString(), Ure = (e) => `已删除 ${Lx(e.removed)} 条;${e.marked ? `已隐退女优的 ${Lx(e.marked)} 条留作不可点的记录;` : ""}保留 ${Lx(e.recovered)} 条未确认失效的链接。`;
+})), Rx = (e) => Number(e || 0).toLocaleString(), Ure = (e) => `已删除 ${Rx(e.removed)} 条;${e.marked ? `已隐退女优的 ${Rx(e.marked)} 条留作不可点的记录;` : ""}保留 ${Rx(e.recovered)} 条未确认失效的链接。`;
function Wre(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${Lx(e.checked)} / ${Lx(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${Rx(e.checked)} / ${Rx(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/settings-panel/settings-data.ts
-var Rx = "/api/settings", zx = "/api/follow/schedule", Bx = "/api/thumbnail-jobs", Vx = ["settings"], Hx = ["follow-schedule"], Ux = ["thumbnail-jobs"], Gre = (e) => W(Rx, e), Wx = (e) => W(zx, e), Gx = (e) => W(Bx, e);
-function Kre(e = X) {
+var zx = "/api/settings", Bx = "/api/follow/schedule", Vx = "/api/thumbnail-jobs", Hx = ["settings"], Ux = ["follow-schedule"], Wx = ["thumbnail-jobs"], Gre = (e) => U(zx, e), Gx = (e) => U(Bx, e), Kx = (e) => U(Vx, e);
+function Kre(e = Y) {
return e.fetchQuery({
- queryKey: Hx,
- queryFn: ({ signal: e }) => Wx(e),
- staleTime: 0
- }).catch(() => null), e.fetchQuery({
queryKey: Ux,
queryFn: ({ signal: e }) => Gx(e),
staleTime: 0
}).catch(() => null), e.fetchQuery({
- queryKey: Vx,
+ queryKey: Wx,
+ queryFn: ({ signal: e }) => Kx(e),
+ staleTime: 0
+ }).catch(() => null), e.fetchQuery({
+ queryKey: Hx,
queryFn: ({ signal: e }) => Gre(e),
staleTime: 0
}).catch(() => null);
}
-function Kx() {
- return er({
- mutationFn: (e) => G(Rx, e),
- onSuccess: (e) => X.setQueryData(Vx, e)
+function qx() {
+ return tr({
+ mutationFn: (e) => W(zx, e),
+ onSuccess: (e) => Y.setQueryData(Hx, e)
});
}
function qre() {
- return er({
- mutationFn: (e) => G(zx, {
+ return tr({
+ mutationFn: (e) => W(Bx, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => X.setQueryData(Hx, e)
+ onSuccess: (e) => Y.setQueryData(Ux, e)
});
}
function Jre() {
- return er({
- mutationFn: (e) => G(Bx, { mode: e }),
- onSuccess: (e) => X.setQueryData(Ux, e)
+ return tr({
+ mutationFn: (e) => W(Vx, { mode: e }),
+ onSuccess: (e) => Y.setQueryData(Wx, e)
});
}
function Yre(e) {
- return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${hx(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${hx(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
+ return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${gx(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${gx(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
}
function Xre(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 Zre = "/api/organize", Qre = "/api/organize/preview", $re = "/api/organize/apply", eie = "/api/organize/rollback", qx = ["organize"], Jx = (e) => W(Zre, e);
+var Zre = "/api/organize", Qre = "/api/organize/preview", $re = "/api/organize/apply", eie = "/api/organize/rollback", Jx = ["organize"], Yx = (e) => U(Zre, e);
async function tie(e) {
- await X.fetchQuery({
- queryKey: qx,
- queryFn: () => Jx(e)
+ await Y.fetchQuery({
+ queryKey: Jx,
+ queryFn: () => Yx(e)
});
}
-var nie = (e) => G(Qre, e), rie = (e) => e.kind === "apply" ? G($re, {
+var nie = (e) => W(Qre, e), rie = (e) => e.kind === "apply" ? W($re, {
...e.request,
confirm: !0
-}) : G(eie, { confirm: !0 });
+}) : W(eie, { confirm: !0 });
async function iie(e) {
- X.setQueryData(qx, (t) => t && {
+ Y.setQueryData(Jx, (t) => t && {
...t,
templates: e
});
try {
- await G(Rx, { organizeTemplates: e });
+ await W(zx, { organizeTemplates: e });
} catch {}
}
var aie = (e, t) => e && {
...e,
...t
}, oie = /目录模板|分隔符|盘符|`\.`/;
-function Yx(e) {
+function Xx(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var Xx = (e) => Number(e || 0).toLocaleString();
+var Zx = (e) => Number(e || 0).toLocaleString();
function sie(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Xx(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${Xx(e.counts.change)} 个文件会改名或移动,${Xx(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Zx(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${Zx(e.counts.change)} 个文件会改名或移动,${Zx(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function Zx(e) {
+function Qx(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${Xx(r)} 个文件${n ? `,${Xx(n)} 行未能退回` : ""}。` : `已整理 ${Xx(r)} 个文件${n ? `,${Xx(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${Zx(r)} 个文件${n ? `,${Zx(n)} 行未能退回` : ""}。` : `已整理 ${Zx(r)} 个文件${n ? `,${Zx(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
-var Qx = "/api/resource-sync/scan", $x = "/api/resource-sync/apply", eS = ["resource-sync", "scan"], tS = ["resource-sync", "apply"], nS = (e) => G(Qx, {
+var $x = "/api/resource-sync/scan", eS = "/api/resource-sync/apply", tS = ["resource-sync", "scan"], nS = ["resource-sync", "apply"], rS = (e) => W($x, {
background: !0,
status_only: !0
-}, "POST", e), cie = () => G(Qx, {
+}, "POST", e), cie = () => W($x, {
background: !0,
restart: !0
-}), rS = (e) => W($x, e), lie = (e) => G($x, {
+}), iS = (e) => U(eS, e), lie = (e) => W(eS, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), iS = (e) => (e?.sources ?? []).some((e) => Yne.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+}), aS = (e) => (e?.sources ?? []).some((e) => Yne.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
async function uie(e) {
- iS(X.getQueryData(Vb)) && await Promise.all([X.fetchQuery({
- queryKey: eS,
- queryFn: () => nS(e)
- }), X.fetchQuery({
+ aS(Y.getQueryData(Hb)) && await Promise.all([Y.fetchQuery({
queryKey: tS,
queryFn: () => rS(e)
+ }), Y.fetchQuery({
+ queryKey: nS,
+ queryFn: () => iS(e)
})]);
}
var die = (e) => !!(e?.missing || e?.empty || e?.cache?.files), fie = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, aS = (e) => Number(e || 0).toLocaleString(), pie = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", oS = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), sS = (e) => e.vanish ? `${aS(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", cS = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", mie = (e) => `将永久删除文件已不在盘上的 ${aS(oS(e))} 条记录和 ${aS(e.empty)} 个空文件夹,并清理 ${aS(e.cache?.files)} 个闲置缓存。${cS(e)}${sS(e)}`, hie = (e) => `将永久删除文件已不在盘上的 ${aS(oS(e))} 条记录(含回收站里的)、${aS(e.empty)} 个空文件夹,并清理 ${aS(e.cache?.files)} 个闲置缓存。来源根目录保留。${cS(e)}${sS(e)}`, gie = (e) => e.online ? [
- `找不到文件 · 共 ${aS(e.total)} 项`,
- e.vanish ? `${aS(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${aS(e.empty)} 个` : "",
- e.unreadable ? `${aS(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${aS(e.total)} 项`;
-function lS(e) {
+}, oS = (e) => Number(e || 0).toLocaleString(), pie = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", sS = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), cS = (e) => e.vanish ? `${oS(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", lS = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", mie = (e) => `将永久删除文件已不在盘上的 ${oS(sS(e))} 条记录和 ${oS(e.empty)} 个空文件夹,并清理 ${oS(e.cache?.files)} 个闲置缓存。${lS(e)}${cS(e)}`, hie = (e) => `将永久删除文件已不在盘上的 ${oS(sS(e))} 条记录(含回收站里的)、${oS(e.empty)} 个空文件夹,并清理 ${oS(e.cache?.files)} 个闲置缓存。来源根目录保留。${lS(e)}${cS(e)}`, gie = (e) => e.online ? [
+ `找不到文件 · 共 ${oS(e.total)} 项`,
+ e.vanish ? `${oS(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${oS(e.empty)} 个` : "",
+ e.unreadable ? `${oS(e.unreadable)} 个目录读取失败,已跳过` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${oS(e.total)} 项`;
+function uS(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 ? `${aS(t.length)} 条记录没有删除(${o})` : "",
- n ? `${aS(n)} 个文件夹没有删除` : "",
- r.length ? `${aS(r.length)} 个缓存没有清理` : ""
+ t.length ? `${oS(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${oS(n)} 个文件夹没有删除` : "",
+ r.length ? `${oS(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
var _ie = (e, t) => {
- let { rest: n } = lS(e), r = `已永久删除 ${aS(e.purged)} 条失效记录和 ${aS(e.dirs_removed)} 个空文件夹,清理 ${aS(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${aS(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${aS(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+ let { rest: n } = uS(e), r = `已永久删除 ${oS(e.purged)} 条失效记录和 ${oS(e.dirs_removed)} 个空文件夹,清理 ${oS(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${oS(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${oS(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, vie = "/api/review?counts=1", uS = ["review", "counts"], yie = "/api/ads?limit=1", dS = ["junk-summary"], fS = "/api/items?state=trash&limit=1", pS = ["trash-summary"], bie = [
+}, vie = "/api/review?counts=1", dS = ["review", "counts"], yie = "/api/ads?limit=1", fS = ["junk-summary"], pS = "/api/items?state=trash&limit=1", mS = ["trash-summary"], bie = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], mS = (e) => W(vie, e), hS = (e) => W(yie, e), gS = (e) => {
+], hS = (e) => U(vie, e), gS = (e) => U(yie, e), _S = (e) => {
let t = sessionStorage.getItem("peach.library");
- return W(t ? `${fS}&library=${encodeURIComponent(t)}` : fS, e);
-}, _S = (e) => Number(e || 0).toLocaleString();
+ return U(t ? `${pS}&library=${encodeURIComponent(t)}` : pS, e);
+}, vS = (e) => Number(e || 0).toLocaleString();
function xie(e) {
- let t = _x, 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);
+ let t = vx, 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(" · ")
@@ -28290,40 +28290,40 @@ function xie(e) {
}
function Sie(e) {
if (!e) return "";
- let t = bie.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${_S(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${_S(e.dismissed_total)}`), t.join(" · ");
+ let t = bie.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${vS(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${vS(e.dismissed_total)}`), t.join(" · ");
}
var Cie = [
- [uS, ({ signal: e }) => mS(e)],
- [ux, ({ signal: e }) => dx(e)],
- [pS, ({ signal: e }) => gS(e)],
- [kx, ({ signal: e }) => Px(e)],
+ [dS, ({ signal: e }) => hS(e)],
+ [dx, ({ signal: e }) => fx(e)],
+ [mS, ({ signal: e }) => _S(e)],
[Ax, ({ signal: e }) => Fx(e)],
- [jx, ({ signal: e }) => Ix(e)]
+ [jx, ({ signal: e }) => Ix(e)],
+ [Mx, ({ signal: e }) => Lx(e)]
];
async function wie(e) {
let t = location.hash === "#resource-sync", n = Cie.map(([n, r]) => {
- if (t) return X.fetchQuery({
+ if (t) return Y.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
}).catch(() => void 0);
- X.getQueryState(n) && X.prefetchQuery({
+ Y.getQueryState(n) && Y.prefetchQuery({
queryKey: n,
queryFn: r
});
});
await Promise.all([
...n,
- X.fetchQuery({
- queryKey: dS,
- queryFn: () => hS(e)
+ Y.fetchQuery({
+ queryKey: fS,
+ queryFn: () => gS(e)
}),
- X.fetchQuery({
- queryKey: Wb,
- queryFn: () => Kb(e)
+ Y.fetchQuery({
+ queryKey: Gb,
+ queryFn: () => qb(e)
}),
- Ub(e).then(() => uie(e)),
- $b(e),
+ Wb(e).then(() => uie(e)),
+ ex(e),
fre(e),
tie(e)
]);
@@ -28341,15 +28341,15 @@ var Tie = [
"bg-chart-7/10",
"bg-chart-8/10"
];
-function vS(e = {}) {
- return `${Zi({
+function yS(e = {}) {
+ return `${Qi({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var yS = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", Die = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function bS({ interactive: e = !1 } = {}) {
- return Zi({
+var bS = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", Die = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function xS({ interactive: e = !1 } = {}) {
+ return Qi({
padding: "none",
radius: "plain",
interactive: e,
@@ -28357,60 +28357,60 @@ function bS({ interactive: e = !1 } = {}) {
});
}
var Oie = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function xS({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsxs)("span", {
+function SS({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
children: [
- t || n ? /* @__PURE__ */ (0, z.jsx)("i", {
+ t || n ? /* @__PURE__ */ (0, R.jsx)("i", {
"aria-hidden": !0,
className: "flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary",
- children: t ? /* @__PURE__ */ (0, z.jsx)(t, {
+ children: t ? /* @__PURE__ */ (0, R.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
}) : n
}) : null,
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "min-w-0 truncate",
children: e
}),
- r ? /* @__PURE__ */ (0, z.jsx)("span", {
+ r ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "ml-auto shrink-0 text-caption-1-regular",
children: r
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsx)("strong", {
+ /* @__PURE__ */ (0, R.jsx)("strong", {
className: "block text-title-1-medium tabular-nums text-text-primary",
children: i
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: `block min-h-4 text-caption-1-regular text-text-tertiary ${o ? "" : "truncate"}`,
children: a
})
] });
}
-function SS({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsxs)("span", {
+function CS({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.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, z.jsx)("i", {
+ children: [t ? /* @__PURE__ */ (0, R.jsx)("i", {
"aria-hidden": !0,
className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${Tie[n % 4]} ${Eie[n % 4]}`,
- children: /* @__PURE__ */ (0, z.jsx)(t, {
+ children: /* @__PURE__ */ (0, R.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
})
- }) : null, /* @__PURE__ */ (0, z.jsx)("span", {
+ }) : null, /* @__PURE__ */ (0, R.jsx)("span", {
className: "min-w-0 truncate",
children: e
})]
}),
- /* @__PURE__ */ (0, z.jsx)("b", {
+ /* @__PURE__ */ (0, R.jsx)("b", {
className: "px-4 pt-3 pb-4 text-title-1-medium tabular-nums text-text-primary max-sm:px-3 max-sm:pb-3",
children: r
}),
- /* @__PURE__ */ (0, z.jsx)("small", {
+ /* @__PURE__ */ (0, R.jsx)("small", {
className: "mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular text-text-secondary max-sm:px-3 max-sm:py-2",
children: i
})
@@ -28418,34 +28418,34 @@ function SS({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region node_modules/motion-utils/dist/es/array.mjs
-function CS(e, t) {
+function wS(e, t) {
e.indexOf(t) === -1 && e.push(t);
}
-function wS(e, t) {
+function TS(e, t) {
let n = e.indexOf(t);
n > -1 && e.splice(n, 1);
}
//#endregion
//#region node_modules/motion-utils/dist/es/clamp.mjs
-var TS = (e, t, n) => n > t ? t : n < e ? e : n, ES = {}, DS = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), OS = (e) => typeof e == "object" && !!e, kS = (e) => /^0[^.\s]+$/u.test(e);
+var ES = (e, t, n) => n > t ? t : n < e ? e : n, DS = {}, OS = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), kS = (e) => typeof e == "object" && !!e, AS = (e) => /^0[^.\s]+$/u.test(e);
//#endregion
//#region node_modules/motion-utils/dist/es/memo.mjs
/*#__NO_SIDE_EFFECTS__*/
-function AS(e) {
+function jS(e) {
let t;
return () => (t === void 0 && (t = e()), t);
}
//#endregion
//#region node_modules/motion-utils/dist/es/noop.mjs
-var jS = /* @__NO_SIDE_EFFECTS__ */ (e) => e, MS = (...e) => e.reduce((e, t) => (n) => t(e(n))), NS = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
+var MS = /* @__NO_SIDE_EFFECTS__ */ (e) => e, NS = (...e) => e.reduce((e, t) => (n) => t(e(n))), PS = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
let r = t - e;
return r ? (n - e) / r : 1;
-}, PS = class {
+}, FS = class {
constructor() {
this.subscriptions = [];
}
add(e) {
- return CS(this.subscriptions, e), () => wS(this.subscriptions, e);
+ return wS(this.subscriptions, e), () => TS(this.subscriptions, e);
}
notify(e, t, n) {
let r = this.subscriptions.length;
@@ -28463,42 +28463,42 @@ var jS = /* @__NO_SIDE_EFFECTS__ */ (e) => e, MS = (...e) => e.reduce((e, t) =>
clear() {
this.subscriptions.length = 0;
}
-}, FS = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, IS = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, LS = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, RS = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, kie = 1e-7, Aie = 12;
+}, IS = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, LS = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, RS = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, zS = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, kie = 1e-7, Aie = 12;
function jie(e, t, n, r, i) {
let a, o, s = 0;
do
- o = t + (n - t) / 2, a = RS(o, r, i) - e, a > 0 ? n = o : t = o;
+ o = t + (n - t) / 2, a = zS(o, r, i) - e, a > 0 ? n = o : t = o;
while (Math.abs(a) > kie && ++s < Aie);
return o;
}
/*#__NO_SIDE_EFFECTS__*/
-function zS(e, t, n, r) {
- if (e === t && n === r) return jS;
+function BS(e, t, n, r) {
+ if (e === t && n === r) return MS;
let i = (t) => jie(t, 0, 1, e, n);
- return (e) => e === 0 || e === 1 ? e : RS(i(e), t, r);
+ return (e) => e === 0 || e === 1 ? e : zS(i(e), t, r);
}
//#endregion
//#region node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
-var BS = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, VS = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), HS = /*@__PURE__*/ zS(.33, 1.53, .69, .99), US = /*@__PURE__*/ VS(HS), WS = /*@__PURE__*/ BS(US), GS = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * US(e) : .5 * (2 - 2 ** (-10 * (e - 1))), KS = (e) => 1 - Math.sin(Math.acos(e)), qS = /* @__PURE__ */ VS(KS), JS = /* @__PURE__ */ BS(KS), Mie = /*@__PURE__*/ zS(.42, 0, 1, 1), Nie = /*@__PURE__*/ zS(0, 0, .58, 1), YS = /*@__PURE__*/ zS(.42, 0, .58, 1), Pie = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", XS = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", ZS = {
- linear: jS,
+var VS = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, HS = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), US = /*@__PURE__*/ BS(.33, 1.53, .69, .99), WS = /*@__PURE__*/ HS(US), GS = /*@__PURE__*/ VS(WS), KS = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * WS(e) : .5 * (2 - 2 ** (-10 * (e - 1))), qS = (e) => 1 - Math.sin(Math.acos(e)), JS = /* @__PURE__ */ HS(qS), YS = /* @__PURE__ */ VS(qS), Mie = /*@__PURE__*/ BS(.42, 0, 1, 1), Nie = /*@__PURE__*/ BS(0, 0, .58, 1), XS = /*@__PURE__*/ BS(.42, 0, .58, 1), Pie = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", ZS = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", QS = {
+ linear: MS,
easeIn: Mie,
- easeInOut: YS,
+ easeInOut: XS,
easeOut: Nie,
- circIn: KS,
- circInOut: JS,
- circOut: qS,
- backIn: US,
- backInOut: WS,
- backOut: HS,
- anticipate: GS
-}, Fie = (e) => typeof e == "string", QS = (e) => {
- if (/* @__PURE__ */ XS(e)) {
+ circIn: qS,
+ circInOut: YS,
+ circOut: JS,
+ backIn: WS,
+ backInOut: GS,
+ backOut: US,
+ anticipate: KS
+}, Fie = (e) => typeof e == "string", $S = (e) => {
+ if (/* @__PURE__ */ ZS(e)) {
e.length;
let [t, n, r, i] = e;
- return /* @__PURE__ */ zS(t, n, r, i);
+ return /* @__PURE__ */ BS(t, n, r, i);
}
- return Fie(e) ? (ZS[e], `${e}`, ZS[e]) : e;
-}, $S = [
+ return Fie(e) ? (QS[e], `${e}`, QS[e]) : e;
+}, eC = [
"setup",
"read",
"resolveKeyframes",
@@ -28542,24 +28542,24 @@ function Iie(e) {
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/batcher.mjs
var Lie = 40;
-function eC(e, t) {
+function tC(e, t) {
let n = !1, r = !0, i = {
delta: 0,
timestamp: 0,
isProcessing: !1
- }, a = () => n = !0, o = $S.reduce((e, t) => (e[t] = Iie(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
- let a = ES.useManualTiming, o = a ? i.timestamp : performance.now();
+ }, a = () => n = !0, o = eC.reduce((e, t) => (e[t] = Iie(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
+ let a = DS.useManualTiming, o = a ? i.timestamp : performance.now();
n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, Lie), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
}, g = () => {
n = !0, r = !0, i.isProcessing || e(h);
};
return {
- schedule: $S.reduce((e, t) => {
+ schedule: eC.reduce((e, t) => {
let r = o[t];
return e[t] = (e, t = !1, i = !1) => (n || g(), r.schedule(e, t, i)), e;
}, {}),
cancel: (e) => {
- for (let t = 0; t < $S.length; t++) o[$S[t]].cancel(e);
+ for (let t = 0; t < eC.length; t++) o[eC[t]].cancel(e);
},
state: i,
steps: o
@@ -28567,32 +28567,32 @@ function eC(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: tC, cancel: nC, state: rC, steps: iC } = /* @__PURE__ */ eC(typeof requestAnimationFrame < "u" ? requestAnimationFrame : jS, !0), aC;
+var { schedule: nC, cancel: rC, state: iC, steps: aC } = /* @__PURE__ */ tC(typeof requestAnimationFrame < "u" ? requestAnimationFrame : MS, !0), oC;
function Rie() {
- aC = void 0;
+ oC = void 0;
}
-var oC = {
- now: () => (aC === void 0 && oC.set(rC.isProcessing || ES.useManualTiming ? rC.timestamp : performance.now()), aC),
+var sC = {
+ now: () => (oC === void 0 && sC.set(iC.isProcessing || DS.useManualTiming ? iC.timestamp : performance.now()), oC),
set: (e) => {
- aC = e, queueMicrotask(Rie);
+ oC = e, queueMicrotask(Rie);
}
-}, sC = (e) => (t) => typeof t == "string" && t.startsWith(e), cC = /*@__PURE__*/ sC("--"), zie = /*@__PURE__*/ sC("var(--"), lC = (e) => zie(e) ? Bie.test(e.split("/*")[0].trim()) : !1, Bie = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
-function uC(e) {
+}, cC = (e) => (t) => typeof t == "string" && t.startsWith(e), lC = /*@__PURE__*/ cC("--"), zie = /*@__PURE__*/ cC("var(--"), uC = (e) => zie(e) ? Bie.test(e.split("/*")[0].trim()) : !1, Bie = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
+function dC(e) {
return typeof e == "string" && e.split("/*")[0].includes("var(--");
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
-var dC = {
+var fC = {
test: (e) => typeof e == "number",
parse: parseFloat,
transform: (e) => e
-}, fC = {
- ...dC,
- transform: (e) => TS(0, 1, e)
}, pC = {
- ...dC,
+ ...fC,
+ transform: (e) => ES(0, 1, e)
+}, mC = {
+ ...fC,
default: 1
-}, mC = (e) => Math.round(e * 1e5) / 1e5, hC = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
+}, hC = (e) => Math.round(e * 1e5) / 1e5, gC = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
function Vie(e) {
@@ -28600,22 +28600,22 @@ function Vie(e) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
-var Hie = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, gC = (e, t) => (n) => !!(typeof n == "string" && Hie.test(n) && n.startsWith(e) || t && !Vie(n) && Object.prototype.hasOwnProperty.call(n, t)), _C = (e, t, n) => (r) => {
+var Hie = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, _C = (e, t) => (n) => !!(typeof n == "string" && Hie.test(n) && n.startsWith(e) || t && !Vie(n) && Object.prototype.hasOwnProperty.call(n, t)), vC = (e, t, n) => (r) => {
if (typeof r != "string") return r;
- let [i, a, o, s] = r.match(hC);
+ let [i, a, o, s] = r.match(gC);
return {
[e]: parseFloat(i),
[t]: parseFloat(a),
[n]: parseFloat(o),
alpha: s === void 0 ? 1 : parseFloat(s)
};
-}, Uie = (e) => TS(0, 255, e), vC = {
- ...dC,
+}, Uie = (e) => ES(0, 255, e), yC = {
+ ...fC,
transform: (e) => Math.round(Uie(e))
-}, yC = {
- test: /*@__PURE__*/ gC("rgb", "red"),
- parse: /*@__PURE__*/ _C("red", "green", "blue"),
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + vC.transform(e) + ", " + vC.transform(t) + ", " + vC.transform(n) + ", " + mC(fC.transform(r)) + ")"
+}, bC = {
+ test: /*@__PURE__*/ _C("rgb", "red"),
+ parse: /*@__PURE__*/ vC("red", "green", "blue"),
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + yC.transform(e) + ", " + yC.transform(t) + ", " + yC.transform(n) + ", " + hC(pC.transform(r)) + ")"
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hex.mjs
@@ -28628,26 +28628,26 @@ function Wie(e) {
alpha: i ? parseInt(i, 16) / 255 : 1
};
}
-var bC = {
- test: /*@__PURE__*/ gC("#"),
+var xC = {
+ test: /*@__PURE__*/ _C("#"),
parse: Wie,
- transform: yC.transform
-}, xC = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
+ transform: bC.transform
+}, SC = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
parse: parseFloat,
transform: (t) => `${t}${e}`
-}), SC = /*@__PURE__*/ xC("deg"), CC = /*@__PURE__*/ xC("%"), wC = /*@__PURE__*/ xC("px"), TC = /*@__PURE__*/ xC("vh"), EC = /*@__PURE__*/ xC("vw"), DC = {
- ...CC,
- parse: (e) => CC.parse(e) / 100,
- transform: (e) => CC.transform(e * 100)
+}), CC = /*@__PURE__*/ SC("deg"), wC = /*@__PURE__*/ SC("%"), X = /*@__PURE__*/ SC("px"), TC = /*@__PURE__*/ SC("vh"), EC = /*@__PURE__*/ SC("vw"), DC = {
+ ...wC,
+ parse: (e) => wC.parse(e) / 100,
+ transform: (e) => wC.transform(e * 100)
}, OC = {
- test: /*@__PURE__*/ gC("hsl", "hue"),
- parse: /*@__PURE__*/ _C("hue", "saturation", "lightness"),
- transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + CC.transform(mC(t)) + ", " + CC.transform(mC(n)) + ", " + mC(fC.transform(r)) + ")"
+ test: /*@__PURE__*/ _C("hsl", "hue"),
+ parse: /*@__PURE__*/ vC("hue", "saturation", "lightness"),
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + wC.transform(hC(t)) + ", " + wC.transform(hC(n)) + ", " + hC(pC.transform(r)) + ")"
}, kC = {
- test: (e) => yC.test(e) || bC.test(e) || OC.test(e),
- parse: (e) => yC.test(e) ? yC.parse(e) : OC.test(e) ? OC.parse(e) : bC.parse(e),
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? yC.transform(e) : OC.transform(e),
+ test: (e) => bC.test(e) || xC.test(e) || OC.test(e),
+ parse: (e) => bC.test(e) ? bC.parse(e) : OC.test(e) ? OC.parse(e) : xC.parse(e),
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? bC.transform(e) : OC.transform(e),
getAnimatableNone: (e) => {
let t = kC.parse(e);
return t.alpha = 0, kC.transform(t);
@@ -28656,7 +28656,7 @@ var bC = {
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/complex/index.mjs
function jC(e) {
- return isNaN(e) && typeof e == "string" && (e.match(hC)?.length || 0) + (e.match(AC)?.length || 0) > 0;
+ return isNaN(e) && typeof e == "string" && (e.match(gC)?.length || 0) + (e.match(AC)?.length || 0) > 0;
}
var MC = "number", NC = "color", PC = "var", FC = "var(", IC = "${}", LC = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
function RC(e) {
@@ -28681,7 +28681,7 @@ function BC({ split: e, types: t }) {
let i = "";
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
let e = t[a];
- i += e === MC ? mC(r[a]) : e === NC ? kC.transform(r[a]) : r[a];
+ i += e === MC ? hC(r[a]) : e === NC ? kC.transform(r[a]) : r[a];
}
return i;
};
@@ -28731,8 +28731,8 @@ var YC = (e, t, n) => e + (t - e) * n, XC = (e, t, n) => {
let r = e * e, i = n * (t * t - r) + r;
return i < 0 ? 0 : Math.sqrt(i);
}, ZC = [
+ xC,
bC,
- yC,
OC
], QC = (e) => ZC.find((t) => t.test(e));
function $C(e) {
@@ -28745,7 +28745,7 @@ var ew = (e, t) => {
let n = $C(e), r = $C(t);
if (!n || !r) return JC(e, t);
let i = { ...n };
- return (e) => (i.red = XC(n.red, r.red, e), i.green = XC(n.green, r.green, e), i.blue = XC(n.blue, r.blue, e), i.alpha = YC(n.alpha, r.alpha, e), yC.transform(i));
+ return (e) => (i.red = XC(n.red, r.red, e), i.green = XC(n.green, r.green, e), i.blue = XC(n.blue, r.blue, e), i.alpha = YC(n.alpha, r.alpha, e), bC.transform(i));
}, tw = /* @__PURE__ */ new Set(["none", "hidden"]);
function nw(e, t) {
return tw.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
@@ -28756,7 +28756,7 @@ function rw(e, t) {
return (n) => YC(e, t, n);
}
function iw(e) {
- return typeof e == "number" ? rw : typeof e == "string" ? lC(e) ? JC : kC.test(e) ? ew : cw : Array.isArray(e) ? aw : typeof e == "object" ? kC.test(e) ? ew : ow : JC;
+ return typeof e == "number" ? rw : typeof e == "string" ? uC(e) ? JC : kC.test(e) ? ew : cw : Array.isArray(e) ? aw : typeof e == "object" ? kC.test(e) ? ew : ow : JC;
}
function aw(e, t) {
let n = [...e], r = n.length, i = e.map((e, n) => iw(e)(e, t[n]));
@@ -28790,7 +28790,7 @@ function sw(e, t) {
}
var cw = (e, t) => {
let n = GC.createTransformer(t), r = RC(e), i = RC(t);
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? tw.has(e) && !i.values.length || tw.has(t) && !r.values.length ? nw(e, t) : MS(aw(sw(r, i), i.values), n) : (`${e}${t}`, JC(e, t));
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? tw.has(e) && !i.values.length || tw.has(t) && !r.values.length ? nw(e, t) : NS(aw(sw(r, i), i.values), n) : (`${e}${t}`, JC(e, t));
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/index.mjs
@@ -28802,9 +28802,9 @@ function lw(e, t, n) {
var uw = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
- start: (e = !0) => tC.update(t, e),
- stop: () => nC(t),
- now: () => rC.isProcessing ? rC.timestamp : oC.now()
+ start: (e = !0) => nC.update(t, e),
+ stop: () => rC(t),
+ now: () => iC.isProcessing ? iC.timestamp : sC.now()
};
}, dw = (e, t, n = 10) => {
let r = "", i = Math.max(Math.round(t / n), 2);
@@ -28826,7 +28826,7 @@ function mw(e, t = 100, n) {
return {
type: "keyframes",
ease: (e) => r.next(i * e).value / t,
- duration: /* @__PURE__ */ IS(i)
+ duration: /* @__PURE__ */ LS(i)
};
}
//#endregion
@@ -28866,7 +28866,7 @@ function Kie({ duration: e = hw.duration, bounce: t = hw.bounce, velocity: n = h
let i, a;
hw.maxDuration;
let o = 1 - t;
- o = TS(hw.minDamping, hw.maxDamping, o), e = TS(hw.minDuration, hw.maxDuration, /* @__PURE__ */ IS(e)), o < 1 ? (i = (t) => {
+ o = ES(hw.minDamping, hw.maxDamping, o), e = ES(hw.minDuration, hw.maxDuration, /* @__PURE__ */ LS(e)), o < 1 ? (i = (t) => {
let r = t * o, i = r * e, a = r - n, s = gw(t, o), c = Math.exp(-i);
return vw - a / s * c;
}, a = (t) => {
@@ -28874,7 +28874,7 @@ function Kie({ duration: e = hw.duration, bounce: t = hw.bounce, velocity: n = h
return (-i(t) + vw > 0 ? -1 : 1) * ((a - s) * c) / l;
}) : (i = (t) => -.001 + Math.exp(-t * e) * ((t - n) * e + 1), a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));
let s = 5 / e, c = Gie(i, a, s);
- if (e = /* @__PURE__ */ FS(e), isNaN(c)) return {
+ if (e = /* @__PURE__ */ IS(e), isNaN(c)) return {
stiffness: hw.stiffness,
damping: hw.damping,
duration: e
@@ -28907,7 +28907,7 @@ function Yie(e) {
};
if (!yw(e, Jie) && yw(e, qie)) {
if (t.velocity = 0, e.visualDuration) {
- let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * TS(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
+ let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * ES(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
t = {
...t,
mass: hw.mass,
@@ -28938,8 +28938,8 @@ function bw(e = hw.visualDuration, t = hw.bounce) {
value: a
}, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = Yie({
...n,
- velocity: -/* @__PURE__ */ IS(n.velocity || 0)
- }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ IS(Math.sqrt(c / u)), v = Math.abs(g) < 5;
+ velocity: -/* @__PURE__ */ LS(n.velocity || 0)
+ }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ LS(Math.sqrt(c / u)), v = Math.abs(g) < 5;
r ||= v ? hw.restSpeed.granular : hw.restSpeed.default, i ||= v ? hw.restDelta.granular : hw.restDelta.default;
let y, b, x, S, C, w;
if (h < 1) x = gw(_, h), S = (m + h * _ * g) / x, y = (e) => {
@@ -28964,16 +28964,16 @@ function bw(e = hw.visualDuration, t = hw.bounce) {
}
let T = {
calculatedDuration: p && d || null,
- velocity: (e) => /* @__PURE__ */ FS(b(e)),
+ velocity: (e) => /* @__PURE__ */ IS(b(e)),
next: (e) => {
if (!p && h < 1) {
- let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ FS(t * (C * n + w * a));
+ let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ IS(t * (C * n + w * a));
return s.done = Math.abs(l) <= r && Math.abs(o - c) <= i, s.value = s.done ? o : c, s;
}
let t = y(e);
if (p) s.done = e >= d;
else {
- let n = /* @__PURE__ */ FS(b(e));
+ let n = /* @__PURE__ */ IS(b(e));
s.done = Math.abs(n) <= r && Math.abs(o - t) <= i;
}
return s.value = s.done ? o : t, s;
@@ -28988,14 +28988,14 @@ function bw(e = hw.visualDuration, t = hw.bounce) {
}
bw.applyToOptions = (e) => {
let t = mw(e, 100, bw);
- return e.ease = t.ease, e.duration = /* @__PURE__ */ FS(t.duration), e.type = "keyframes", e;
+ return e.ease = t.ease, e.duration = /* @__PURE__ */ IS(t.duration), e.type = "keyframes", e;
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
var Xie = 5;
function xw(e, t, n) {
let r = Math.max(t - Xie, 0);
- return /* @__PURE__ */ LS(n - e(r), t - r);
+ return /* @__PURE__ */ RS(n - e(r), t - r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
@@ -29029,10 +29029,10 @@ function Sw({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
//#endregion
//#region node_modules/motion-dom/dist/es/utils/interpolate.mjs
function Zie(e, t, n) {
- let r = [], i = n || ES.mix || lw, a = e.length - 1;
+ let r = [], i = n || DS.mix || lw, a = e.length - 1;
for (let n = 0; n < a; n++) {
let a = i(e[n], e[n + 1]);
- t && (a = MS(Array.isArray(t) ? t[n] || jS : t, a)), r.push(a);
+ t && (a = NS(Array.isArray(t) ? t[n] || MS : t, a)), r.push(a);
}
return r;
}
@@ -29046,17 +29046,17 @@ function Cw(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
if (o && n < e[0]) return t[0];
let r = 0;
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
- let i = /* @__PURE__ */ NS(e[r], e[r + 1], n);
+ let i = /* @__PURE__ */ PS(e[r], e[r + 1], n);
return s[r](i);
};
- return n ? (t) => l(TS(e[0], e[a - 1], t)) : l;
+ return n ? (t) => l(ES(e[0], e[a - 1], t)) : l;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
function Qie(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
- let i = /* @__PURE__ */ NS(0, t, r);
+ let i = /* @__PURE__ */ PS(0, t, r);
e.push(YC(n, 1, i));
}
}
@@ -29074,10 +29074,10 @@ function eae(e, t) {
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
function tae(e, t) {
- return e.map(() => t || YS).splice(0, e.length - 1);
+ return e.map(() => t || XS).splice(0, e.length - 1);
}
function ww({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
- let i = /* @__PURE__ */ Pie(r) ? r.map(QS) : QS(r), a = {
+ let i = /* @__PURE__ */ Pie(r) ? r.map($S) : $S(r), a = {
done: !1,
value: t[0]
}, o = Cw(eae(n && n.length === t.length ? n : $ie(t), e), t, { ease: Array.isArray(i) ? i : tae(t, i) });
@@ -29132,14 +29132,14 @@ var Dw = class {
value: void 0
}, this.stop = () => {
let { motionValue: e } = this.options;
- e && e.updatedAt !== oC.now() && this.tick(oC.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
+ e && e.updatedAt !== sC.now() && this.tick(sC.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
}, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
}
initAnimation() {
let { options: e } = this;
Ew(e);
let { type: t = ww, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || ww;
- s !== ww && typeof o[0] != "number" && (this.mixKeyframes = MS(iae, lw(o[0], o[1])), o = [0, 100]);
+ s !== ww && typeof o[0] != "number" && (this.mixKeyframes = NS(iae, lw(o[0], o[1])), o = [0, 100]);
let c = s({
...e,
keyframes: o
@@ -29166,7 +29166,7 @@ var Dw = class {
let v = this.currentTime, y = n;
if (u) {
let e = Math.min(this.currentTime, r) / o, t = Math.floor(e), n = e % 1;
- !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = TS(0, 1, n) * o;
+ !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = ES(0, 1, n) * o;
}
let b;
_ ? (this.delayState.value = l[0], b = this.delayState) : b = y.next(v), i && !_ && (b.value = i(b.value));
@@ -29179,17 +29179,17 @@ var Dw = class {
return this.finished.then(e, t);
}
get duration() {
- return /* @__PURE__ */ IS(this.calculatedDuration);
+ return /* @__PURE__ */ LS(this.calculatedDuration);
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ IS(e);
+ return this.duration + /* @__PURE__ */ LS(e);
}
get time() {
- return /* @__PURE__ */ IS(this.currentTime);
+ return /* @__PURE__ */ LS(this.currentTime);
}
set time(e) {
- e = /* @__PURE__ */ FS(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
+ e = /* @__PURE__ */ IS(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
let e = this.currentTime;
@@ -29203,7 +29203,7 @@ var Dw = class {
}
set speed(e) {
let t = this.playbackSpeed !== e;
- t && this.driver && this.updateTime(oC.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ IS(this.currentTime));
+ t && this.driver && this.updateTime(sC.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ LS(this.currentTime));
}
play() {
if (this.isStopped) return;
@@ -29213,7 +29213,7 @@ var Dw = class {
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? n : this.startTime = n - this.holdTime, this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
}
pause() {
- this.state = "paused", this.updateTime(oC.now()), this.holdTime = this.currentTime;
+ this.state = "paused", this.updateTime(sC.now()), this.holdTime = this.currentTime;
}
complete() {
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -29317,7 +29317,7 @@ var Rw = [
"skew",
"skewX",
"skewY"
-], zw = /* @__PURE__ */ new Set([...Rw, "pathRotation"]), Bw = (e) => e === dC || e === wC, lae = /* @__PURE__ */ new Set([
+], zw = /* @__PURE__ */ new Set([...Rw, "pathRotation"]), Bw = (e) => e === fC || e === X, lae = /* @__PURE__ */ new Set([
"x",
"y",
"z"
@@ -29380,7 +29380,7 @@ var Jw = class {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (Hw.add(this), Uw || (Uw = !0, tC.read(qw), tC.resolveKeyframes(Kw))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (Hw.add(this), Uw || (Uw = !0, nC.read(qw), nC.resolveKeyframes(Kw))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -29420,7 +29420,7 @@ var pae = {};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/memo.mjs
function Zw(e, t) {
- let n = /* @__PURE__ */ AS(e);
+ let n = /* @__PURE__ */ jS(e);
return () => pae[t] ?? n();
}
//#endregion
@@ -29466,7 +29466,7 @@ var mae = /* @__PURE__ */ Zw(() => window.ScrollTimeline !== void 0, "scrollTime
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
function tT(e, t) {
- if (e) return typeof e == "function" ? Qw() ? dw(e, t) : "ease-out" : /* @__PURE__ */ XS(e) ? $w(e) : Array.isArray(e) ? e.map((e) => tT(e, t) || eT.easeOut) : eT[e];
+ if (e) return typeof e == "function" ? Qw() ? dw(e, t) : "ease-out" : /* @__PURE__ */ ZS(e) ? $w(e) : Array.isArray(e) ? e.map((e) => tT(e, t) || eT.easeOut) : eT[e];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
@@ -29537,18 +29537,18 @@ var rT = class extends Dw {
}
get duration() {
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
- return /* @__PURE__ */ IS(Number(e));
+ return /* @__PURE__ */ LS(Number(e));
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ IS(e);
+ return this.duration + /* @__PURE__ */ LS(e);
}
get time() {
- return /* @__PURE__ */ IS(Number(this.animation.currentTime) || 0);
+ return /* @__PURE__ */ LS(Number(this.animation.currentTime) || 0);
}
set time(e) {
let t = this.finishedTime !== null;
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ FS(e), t && this.animation.pause();
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ IS(e), t && this.animation.pause();
}
get speed() {
return this.animation.playbackRate;
@@ -29566,12 +29566,12 @@ var rT = class extends Dw {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, rangeStart: t, rangeEnd: n, observe: r }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && mae() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), jS) : r(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && mae() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), MS) : r(this);
}
}, iT = {
- anticipate: GS,
- backInOut: WS,
- circInOut: JS
+ anticipate: KS,
+ backInOut: GS,
+ circInOut: YS
};
function _ae(e) {
return e in iT;
@@ -29595,7 +29595,7 @@ var aT = 10, yae = class extends rT {
let o = new Ow({
...a,
autoplay: !1
- }), s = Math.max(aT, oC.now() - this.startTime), c = TS(0, aT, s - aT), l = o.sample(s).value, { name: u } = this.options;
+ }), s = Math.max(aT, sC.now() - this.startTime), c = ES(0, aT, s - aT), l = o.sample(s).value, { name: u } = this.options;
i && u && Xw(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
}
}, oT = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (GC.test(e) || e === "0") && !e.startsWith("url("));
@@ -29644,7 +29644,7 @@ var wae = /* @__PURE__ */ new Set([
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), Tae = /*@__PURE__*/ AS(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
+]), Tae = /*@__PURE__*/ jS(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
function Eae(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e, c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
@@ -29657,7 +29657,7 @@ var Dae = 40, Oae = class extends Dw {
constructor({ autoplay: e = !0, delay: t = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: a = "loop", keyframes: o, name: s, motionValue: c, element: l, ...u }) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
- }, this.createdAt = oC.now();
+ }, this.createdAt = sC.now();
let d = {
autoplay: e,
delay: t,
@@ -29675,9 +29675,9 @@ var Dae = 40, Oae = class extends Dw {
onKeyframesResolved(e, t, n, r) {
this.keyframeResolver = void 0;
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
- this.resolvedAt = oC.now();
+ this.resolvedAt = sC.now();
let u = !0;
- xae(e, i, a, o) || (u = !1, (ES.instantAnimations || !s) && l?.(Tw(e, n, t)), e[0] = e[e.length - 1], sT(n), n.repeat = 0);
+ xae(e, i, a, o) || (u = !1, (DS.instantAnimations || !s) && l?.(Tw(e, n, t)), e[0] = e[e.length - 1], sT(n), n.repeat = 0);
let d = {
startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > Dae ? this.resolvedAt : this.createdAt : void 0,
finalKeyframe: t,
@@ -29695,7 +29695,7 @@ var Dae = 40, Oae = class extends Dw {
else m = new Ow(d);
m.finished.then(() => {
this.notifyFinished();
- }).catch(jS), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
+ }).catch(MS), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
return this._animation ? this.animation.finished : this._finished;
@@ -29836,12 +29836,12 @@ function dT(e, t, n, r = 0, i = 1) {
var fT = 30, Nae = (e) => !isNaN(parseFloat(e)), pT = { current: void 0 }, Pae = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
- let t = oC.now();
+ let t = sC.now();
if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents)) for (let e of this.dependents) e.dirty();
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = oC.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Nae(this.current));
+ this.current = e, this.updatedAt = sC.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Nae(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -29850,10 +29850,10 @@ var fT = 30, Nae = (e) => !isNaN(parseFloat(e)), pT = { current: void 0 }, Pae =
return this.on("change", e);
}
on(e, t) {
- this.events[e] || (this.events[e] = new PS());
+ this.events[e] || (this.events[e] = new FS());
let n = this.events[e].add(t);
return e === "change" ? () => {
- n(), tC.read(() => {
+ n(), nC.read(() => {
this.events.change.getSize() || this.stop();
});
} : n;
@@ -29889,10 +29889,10 @@ var fT = 30, Nae = (e) => !isNaN(parseFloat(e)), pT = { current: void 0 }, Pae =
return this.prev;
}
getVelocity() {
- let e = oC.now();
+ let e = sC.now();
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > fT) return 0;
let t = Math.min(this.updatedAt - this.prevUpdatedAt, fT);
- return /* @__PURE__ */ LS(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
+ return /* @__PURE__ */ RS(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
return this.stop(), new Promise((t) => {
@@ -29979,7 +29979,7 @@ function Vae(e) {
//#region node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
var _T = (e, t, n, r = {}, i, a) => (o) => {
let s = gT(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
- l -= /* @__PURE__ */ FS(c);
+ l -= /* @__PURE__ */ IS(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
ease: "easeOut",
@@ -29996,12 +29996,12 @@ var _T = (e, t, n, r = {}, i, a) => (o) => {
motionValue: t,
element: a ? void 0 : i
};
- Vae(s) || Object.assign(u, zae(e, u)), u.duration &&= /* @__PURE__ */ FS(u.duration), u.repeatDelay &&= /* @__PURE__ */ FS(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ Vae(s) || Object.assign(u, zae(e, u)), u.duration &&= /* @__PURE__ */ IS(u.duration), u.repeatDelay &&= /* @__PURE__ */ IS(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (sT(u), u.delay === 0 && (d = !0)), (ES.instantAnimations || ES.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, sT(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (sT(u), u.delay === 0 && (d = !0)), (DS.instantAnimations || DS.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, sT(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
let e = Tw(u.keyframes, s);
if (e !== void 0) {
- tC.update(() => {
+ nC.update(() => {
u.onUpdate(e), u.onComplete();
});
return;
@@ -30022,9 +30022,9 @@ function vT(e, t, n = 1) {
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
- return DS(e) ? parseFloat(e) : e;
+ return OS(e) ? parseFloat(e) : e;
}
- return lC(i) ? vT(i, t, n + 1) : i;
+ return uC(i) ? vT(i, t, n + 1) : i;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
@@ -30091,8 +30091,8 @@ function qae(e) {
function TT(e, t) {
let n = e.getValue("willChange");
if (qae(n)) return n.add(t);
- if (!n && ES.WillChange) {
- let n = new ES.WillChange("auto");
+ if (!n && DS.WillChange) {
+ let n = new DS.WillChange("auto");
e.addValue("willChange", n), n.add(t);
}
}
@@ -30130,14 +30130,14 @@ function kT(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
u && (o.skipAnimations = !0);
let c = r.get();
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
- tC.update(() => r.set(i));
+ nC.update(() => r.set(i));
continue;
}
let p = !1;
if (window.MotionHandoffAnimation) {
let n = OT(e);
if (n) {
- let e = window.MotionHandoffAnimation(n, t, tC);
+ let e = window.MotionHandoffAnimation(n, t, nC);
e !== null && (o.startTime = e, p = !0);
}
}
@@ -30148,7 +30148,7 @@ function kT(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
h && d.push(h);
}
if (o) {
- let t = () => tC.update(() => {
+ let t = () => nC.update(() => {
o && Kae(e, o);
});
d.length ? Promise.all(d).then(t) : t();
@@ -30201,10 +30201,10 @@ var Zae = {
test: (e) => e === "auto",
parse: (e) => e
}, jT = (e) => (t) => t.test(e), MT = [
- dC,
+ fC,
+ X,
wC,
CC,
- SC,
EC,
TC,
Zae
@@ -30212,7 +30212,7 @@ var Zae = {
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
function Qae(e) {
- return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || kS(e);
+ return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || AS(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
@@ -30225,7 +30225,7 @@ var $ae = /* @__PURE__ */ new Set([
function eoe(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
- let [r] = n.match(hC) || [];
+ let [r] = n.match(gC) || [];
if (!r) return e;
let i = n.replace(r, ""), a = +!!$ae.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
@@ -30246,87 +30246,87 @@ var toe = /\b([a-z-]*)\(.*?\)/gu, PT = {
} : e));
}
}, IT = {
- ...dC,
+ ...fC,
transform: Math.round
}, LT = {
- borderWidth: wC,
- borderTopWidth: wC,
- borderRightWidth: wC,
- borderBottomWidth: wC,
- borderLeftWidth: wC,
- borderRadius: wC,
- borderTopLeftRadius: wC,
- borderTopRightRadius: wC,
- borderBottomRightRadius: wC,
- borderBottomLeftRadius: wC,
- width: wC,
- maxWidth: wC,
- height: wC,
- maxHeight: wC,
- top: wC,
- right: wC,
- bottom: wC,
- left: wC,
- inset: wC,
- insetBlock: wC,
- insetBlockStart: wC,
- insetBlockEnd: wC,
- insetInline: wC,
- insetInlineStart: wC,
- insetInlineEnd: wC,
- padding: wC,
- paddingTop: wC,
- paddingRight: wC,
- paddingBottom: wC,
- paddingLeft: wC,
- paddingBlock: wC,
- paddingBlockStart: wC,
- paddingBlockEnd: wC,
- paddingInline: wC,
- paddingInlineStart: wC,
- paddingInlineEnd: wC,
- margin: wC,
- marginTop: wC,
- marginRight: wC,
- marginBottom: wC,
- marginLeft: wC,
- marginBlock: wC,
- marginBlockStart: wC,
- marginBlockEnd: wC,
- marginInline: wC,
- marginInlineStart: wC,
- marginInlineEnd: wC,
- fontSize: wC,
- backgroundPositionX: wC,
- backgroundPositionY: wC,
- rotate: SC,
- pathRotation: SC,
- rotateX: SC,
- rotateY: SC,
- rotateZ: SC,
- scale: pC,
- scaleX: pC,
- scaleY: pC,
- scaleZ: pC,
- skew: SC,
- skewX: SC,
- skewY: SC,
- distance: wC,
- translateX: wC,
- translateY: wC,
- translateZ: wC,
- x: wC,
- y: wC,
- z: wC,
- perspective: wC,
- transformPerspective: wC,
- opacity: fC,
+ borderWidth: X,
+ borderTopWidth: X,
+ borderRightWidth: X,
+ borderBottomWidth: X,
+ borderLeftWidth: X,
+ borderRadius: X,
+ borderTopLeftRadius: X,
+ borderTopRightRadius: X,
+ borderBottomRightRadius: X,
+ borderBottomLeftRadius: X,
+ width: X,
+ maxWidth: X,
+ height: X,
+ maxHeight: X,
+ top: X,
+ right: X,
+ bottom: X,
+ left: X,
+ inset: X,
+ insetBlock: X,
+ insetBlockStart: X,
+ insetBlockEnd: X,
+ insetInline: X,
+ insetInlineStart: X,
+ insetInlineEnd: X,
+ padding: X,
+ paddingTop: X,
+ paddingRight: X,
+ paddingBottom: X,
+ paddingLeft: X,
+ paddingBlock: X,
+ paddingBlockStart: X,
+ paddingBlockEnd: X,
+ paddingInline: X,
+ paddingInlineStart: X,
+ paddingInlineEnd: X,
+ margin: X,
+ marginTop: X,
+ marginRight: X,
+ marginBottom: X,
+ marginLeft: X,
+ marginBlock: X,
+ marginBlockStart: X,
+ marginBlockEnd: X,
+ marginInline: X,
+ marginInlineStart: X,
+ marginInlineEnd: X,
+ fontSize: X,
+ backgroundPositionX: X,
+ backgroundPositionY: X,
+ rotate: CC,
+ pathRotation: CC,
+ rotateX: CC,
+ rotateY: CC,
+ rotateZ: CC,
+ scale: mC,
+ scaleX: mC,
+ scaleY: mC,
+ scaleZ: mC,
+ skew: CC,
+ skewX: CC,
+ skewY: CC,
+ distance: X,
+ translateX: X,
+ translateY: X,
+ translateZ: X,
+ x: X,
+ y: X,
+ z: X,
+ perspective: X,
+ transformPerspective: X,
+ opacity: pC,
originX: DC,
originY: DC,
- originZ: wC,
+ originZ: X,
zIndex: IT,
- fillOpacity: fC,
- strokeOpacity: fC,
+ fillOpacity: pC,
+ strokeOpacity: pC,
numOctaves: IT
}, noe = {
...LT,
@@ -30376,14 +30376,14 @@ var ooe = class extends Jw {
super.readKeyframes();
for (let n = 0; n < e.length; n++) {
let r = e[n];
- if (typeof r == "string" && (r = r.trim(), lC(r))) {
+ if (typeof r == "string" && (r = r.trim(), uC(r))) {
let i = vT(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
if (this.resolveNoneKeyframes(), !ST.has(n) || e.length !== 2) return;
let [r, i] = e, a = NT(r), o = NT(i);
- if (uC(r) !== uC(i) && Vw[n]) {
+ if (dC(r) !== dC(i) && Vw[n]) {
this.needsMeasurement = !0;
return;
}
@@ -30495,11 +30495,11 @@ var HT = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-html-element.mjs
function UT(e) {
- return OS(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
+ return kS(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/microtask.mjs
-var { schedule: WT, cancel: loe } = /* @__PURE__ */ eC(queueMicrotask, !1), GT = {
+var { schedule: WT, cancel: loe } = /* @__PURE__ */ tC(queueMicrotask, !1), GT = {
x: !1,
y: !1
};
@@ -30647,7 +30647,7 @@ function tE(e, t) {
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
function nE(e) {
- return OS(e) && "ownerSVGElement" in e;
+ return kS(e) && "ownerSVGElement" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-element.mjs
@@ -30753,7 +30753,7 @@ function koe(e, t, n = {}) {
});
};
if (e.attach((e, t) => {
- a = e, o = (e) => t(uE(e, s)), tC.postRender(u);
+ a = e, o = (e) => t(uE(e, s)), nC.postRender(u);
}, c), wT(t)) {
let r = n.skipInitialAnimation === !0, i = t.on("change", (t) => {
r ? (r = !1, e.jump(uE(t, s), !1)) : e.set(uE(t, s));
@@ -30876,8 +30876,8 @@ var Ioe = class {
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Jw, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
- let e = oC.now();
- this.renderScheduledAt < e && (this.renderScheduledAt = e, tC.render(this.render, !1, !0));
+ let e = sC.now();
+ this.renderScheduledAt < e && (this.renderScheduledAt = e, nC.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = bE(t), this.isVariantNode = xE(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
@@ -30892,7 +30892,7 @@ var Ioe = class {
this.current = e, Moe.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (CE.current || wE(), this.shouldReduceMotion = SE.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
- this.projection && this.projection.unmount(), nC(this.notifyUpdate), nC(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
+ this.projection && this.projection.unmount(), rC(this.notifyUpdate), rC(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
for (let e in this.events) this.events[e].clear();
for (let e in this.features) {
let t = this.features[e];
@@ -30914,7 +30914,7 @@ var Ioe = class {
keyframes: r,
times: i,
ease: a,
- duration: /* @__PURE__ */ FS(o)
+ duration: /* @__PURE__ */ IS(o)
}), c = n(s);
this.valueSubscriptions.set(e, () => {
c(), s.cancel();
@@ -30924,7 +30924,7 @@ var Ioe = class {
let n = zw.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && tC.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && nC.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i && i();
@@ -31005,7 +31005,7 @@ var Ioe = class {
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (DS(n) || kS(n)) ? n = parseFloat(n) : !joe(n) && GC.test(t) && (n = zT(e, t)), this.setBaseTarget(e, wT(n) ? n.get() : n)), wT(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (OS(n) || AS(n)) ? n = parseFloat(n) : !joe(n) && GC.test(t) && (n = zT(e, t)), this.setBaseTarget(e, wT(n) ? n.get() : n)), wT(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
@@ -31021,7 +31021,7 @@ var Ioe = class {
return r !== void 0 && !wT(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
}
on(e, t) {
- return this.events[e] || (this.events[e] = new PS()), this.events[e].add(t);
+ return this.events[e] || (this.events[e] = new FS()), this.events[e].add(t);
}
notify(e, ...t) {
this.events[e] && this.events[e].notify(...t);
@@ -31202,7 +31202,7 @@ function qE(e, t, n) {
o = !0;
continue;
}
- if (cC(e)) {
+ if (lC(e)) {
i[e] = n;
continue;
}
@@ -31231,7 +31231,7 @@ function YE(e, t) {
var XE = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
- if (wC.test(e)) e = parseFloat(e);
+ if (X.test(e)) e = parseFloat(e);
else return e;
}
return `${YE(e, t.target.x)}% ${YE(e, t.target.y)}%`;
@@ -31281,7 +31281,7 @@ var Koe = class extends OE {
readValueFromInstance(e, t) {
if (zw.has(t)) return this.projection?.isProjecting ? Iw(t) : sae(e, t);
{
- let n = Goe(e), r = (cC(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = Goe(e), r = (lC(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
@@ -31589,7 +31589,7 @@ function _D(e, t, n, r, i) {
return e -= t, e = IE(e, 1 / n, r), i !== void 0 && (e = IE(e, 1 / i, r)), e;
}
function dse(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
- if (CC.test(t) && (t = parseFloat(t), t = YC(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
+ if (wC.test(t) && (t = parseFloat(t), t = YC(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
let s = YC(a.min, a.max, r);
e === a && (s -= t), e.min = _D(e.min, t, n, s, i), e.max = _D(e.max, t, n, s, i);
}
@@ -31652,21 +31652,21 @@ function hse(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
-var gse = BT.length, OD = (e) => typeof e == "string" ? parseFloat(e) : e, kD = (e) => typeof e == "number" || wC.test(e);
+var gse = BT.length, OD = (e) => typeof e == "string" ? parseFloat(e) : e, kD = (e) => typeof e == "number" || X.test(e);
function _se(e, t, n, r, i, a) {
i ? (e.opacity = YC(0, n.opacity ?? 1, vse(r)), e.opacityExit = YC(t.opacity ?? 1, 0, yse(r))) : a && (e.opacity = YC(t.opacity ?? 1, n.opacity ?? 1, r));
for (let i = 0; i < gse; i++) {
let a = BT[i], o = AD(t, a), s = AD(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || kD(o) === kD(s) ? (e[a] = Math.max(YC(OD(o), OD(s), r), 0), (CC.test(s) || CC.test(o)) && (e[a] += "%")) : e[a] = s);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || kD(o) === kD(s) ? (e[a] = Math.max(YC(OD(o), OD(s), r), 0), (wC.test(s) || wC.test(o)) && (e[a] += "%")) : e[a] = s);
}
(t.rotate || n.rotate) && (e.rotate = YC(t.rotate || 0, n.rotate || 0, r));
}
function AD(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var vse = /*@__PURE__*/ jD(0, .5, qS), yse = /*@__PURE__*/ jD(.5, .95, jS);
+var vse = /*@__PURE__*/ jD(0, .5, JS), yse = /*@__PURE__*/ jD(.5, .95, MS);
function jD(e, t, n) {
- return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ NS(e, t, r));
+ return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ PS(e, t, r));
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
@@ -31686,10 +31686,10 @@ var xse = (e, t) => e.depth - t.depth, Sse = class {
this.children = [], this.isDirty = !1;
}
add(e) {
- CS(this.children, e), this.isDirty = !0;
+ wS(this.children, e), this.isDirty = !0;
}
remove(e) {
- wS(this.children, e), this.isDirty = !0;
+ TS(this.children, e), this.isDirty = !0;
}
forEach(e) {
this.isDirty && this.children.sort(xse), this.isDirty = !1, this.children.forEach(e);
@@ -31698,11 +31698,11 @@ var xse = (e, t) => e.depth - t.depth, Sse = class {
//#endregion
//#region node_modules/motion-dom/dist/es/utils/delay.mjs
function Cse(e, t) {
- let n = oC.now(), r = ({ timestamp: i }) => {
+ let n = sC.now(), r = ({ timestamp: i }) => {
let a = i - n;
- a >= t && (nC(r), e(a - t));
+ a >= t && (rC(r), e(a - t));
};
- return tC.setup(r, !0), () => nC(r);
+ return nC.setup(r, !0), () => rC(r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
@@ -31716,17 +31716,17 @@ var wse = class {
this.members = [];
}
add(e) {
- CS(this.members, e);
+ wS(this.members, e);
for (let t = this.members.length - 1; t >= 0; t--) {
let n = this.members[t];
if (n === e || n === this.lead || n === this.prevLead) continue;
let r = n.instance;
- (!r || r.isConnected === !1) && !n.snapshot && (wS(this.members, n), n.unmount());
+ (!r || r.isConnected === !1) && !n.snapshot && (TS(this.members, n), n.unmount());
}
e.scheduleRender();
}
remove(e) {
- if (wS(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
+ if (TS(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
let e = this.members[this.members.length - 1];
e && this.promote(e);
}
@@ -31781,7 +31781,7 @@ function RD(e) {
let n = OT(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
- window.MotionCancelOptimisedAnimation(n, "transform", tC, !(t || r));
+ window.MotionCancelOptimisedAnimation(n, "transform", nC, !(t || r));
}
let { parent: r } = e;
r && !r.hasCheckedOptimisedAppear && RD(r);
@@ -31801,7 +31801,7 @@ function zD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.root === this && (this.nodes = new Sse());
}
addEventListener(e, t) {
- return this.eventHandlers.has(e) || this.eventHandlers.set(e, new PS()), this.eventHandlers.get(e).add(t);
+ return this.eventHandlers.has(e) || this.eventHandlers.set(e, new FS()), this.eventHandlers.get(e).add(t);
}
notifyListeners(e, ...t) {
let n = this.eventHandlers.get(e);
@@ -31816,7 +31816,7 @@ function zD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
- tC.read(() => {
+ nC.read(() => {
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
@@ -31844,7 +31844,7 @@ function zD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
unmount() {
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
let e = this.getStack();
- e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), nC(this.updateProjection);
+ e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), rC(this.updateProjection);
}
blockUpdate() {
this.updateManuallyBlocked = !0;
@@ -31892,8 +31892,8 @@ function zD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return;
}
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Nse), this.nodes.forEach(Pse), this.nodes.forEach(Dse), this.nodes.forEach(Ose)) : this.nodes.forEach(VD), this.clearAllSnapshots();
- let e = oC.now();
- rC.delta = TS(0, 1e3 / 60, e - rC.timestamp), rC.timestamp = e, rC.isProcessing = !0, iC.update.process(rC), iC.preRender.process(rC), iC.render.process(rC), rC.isProcessing = !1;
+ let e = sC.now();
+ iC.delta = ES(0, 1e3 / 60, e - iC.timestamp), iC.timestamp = e, iC.isProcessing = !0, aC.update.process(iC), aC.preRender.process(iC), aC.render.process(iC), iC.isProcessing = !1;
}
didUpdate() {
this.updateScheduled || (this.updateScheduled = !0, WT.read(this.scheduleUpdate));
@@ -31902,10 +31902,10 @@ function zD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.nodes.forEach(jse), this.sharedNodes.forEach(Rse);
}
scheduleUpdateProjection() {
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, tC.preRender(this.updateProjection, !1, !0));
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, nC.preRender(this.updateProjection, !1, !0));
}
scheduleCheckAfterUnmount() {
- tC.postRender(() => {
+ nC.postRender(() => {
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
});
}
@@ -32001,7 +32001,7 @@ function zD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
}
forceRelativeParentToResolveTarget() {
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== rC.timestamp && this.relativeParent.resolveTargetDelta(!0);
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== iC.timestamp && this.relativeParent.resolveTargetDelta(!0);
}
resolveTargetDelta(e = !1) {
let t = this.getLead();
@@ -32010,7 +32010,7 @@ function zD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
let { layout: r, layoutId: i } = this.options;
if (!this.layout || !(r || i)) return;
- this.resolvedRelativeTargetAt = rC.timestamp;
+ this.resolvedRelativeTargetAt = iC.timestamp;
let a = this.getClosestProjectingParent();
a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = hE(), this.targetWithTransforms = hE()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), use(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : lD(this.target, this.layout.layoutBox), zE(this.target, this.targetDelta)) : lD(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), lE.value && FD.calculatedTargetDeltas++);
}
@@ -32028,7 +32028,7 @@ function zD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
calcProjection() {
let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === rC.timestamp && (n = !1), n) return;
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === iC.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
lD(this.layoutCorrected, this.layout.layoutBox);
@@ -32069,7 +32069,7 @@ function zD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (nC(this.pendingAnimation), void 0), this.pendingAnimation = tC.update(() => {
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (rC(this.pendingAnimation), void 0), this.pendingAnimation = nC.update(() => {
PD.hasAnimatedSinceResize = !0, this.motionValue ||= mT(0), this.motionValue.jump(0, !1), this.currentAnimation = bse(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
@@ -32298,7 +32298,7 @@ var Vse = {
.1,
1
]
-}, GD = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), KD = GD("applewebkit/") && !GD("chrome/") ? Math.round : jS;
+}, GD = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), KD = GD("applewebkit/") && !GD("chrome/") ? Math.round : MS;
function qD(e) {
e.min = KD(e.min), e.max = KD(e.max);
}
@@ -32349,7 +32349,7 @@ function Gse(e, t, n, r) {
let n = t[e];
Array.isArray(n) || (n = [n]);
let i = { ...gT(s, e) };
- i.duration &&= /* @__PURE__ */ FS(i.duration), i.delay &&= /* @__PURE__ */ FS(i.delay);
+ i.duration &&= /* @__PURE__ */ IS(i.duration), i.delay &&= /* @__PURE__ */ IS(i.delay);
let a = Mae(r), c = jae(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
@@ -32400,8 +32400,8 @@ var Jse = {
}
};
function QD(e) {
- let [t, n] = (0, R.useState)(null);
- return (0, R.useLayoutEffect)(() => {
+ let [t, n] = (0, L.useState)(null);
+ return (0, L.useLayoutEffect)(() => {
if (!t) return;
let n = document.createElement("span");
n.setAttribute("aria-hidden", "true"), n.dataset.movingSurface = e, n.hidden = !0, t.prepend(n), t.dataset.surfaceHost = e;
@@ -32459,7 +32459,7 @@ function QD(e) {
//#region src/react/components/menu-dialog.tsx
function $D(e) {
let t = QD("hover");
- return /* @__PURE__ */ (0, z.jsx)(Ig, {
+ return /* @__PURE__ */ (0, R.jsx)(Lg, {
...e,
ref: t
});
@@ -32470,7 +32470,7 @@ function $D(e) {
}).medium;
//#endregion
//#region src/management.ts
-var Yse = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Xse = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", Zse = Zi({
+var Yse = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Xse = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", Zse = Qi({
padding: "none",
bordered: "line",
className: "overflow-hidden"
@@ -32483,46 +32483,46 @@ var Yse = "扫描媒体文件夹,导入已有资料,采集缺失信息。两
}, ece = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", tce = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, nce = Zi({
+}, nce = Qi({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
}), eO = "border-t border-border-button-default p-4 first:border-t-0";
function tO({ tone: e = "neutral", status: t, children: n }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: `${ece} ${tce[e]}`,
- children: [t ? /* @__PURE__ */ (0, z.jsx)("p", {
+ children: [t ? /* @__PURE__ */ (0, R.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 nO({ id: e, children: t }) {
- return /* @__PURE__ */ (0, z.jsx)("h2", {
+ return /* @__PURE__ */ (0, R.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
function rO({ id: e, gap: t = "none", children: n }) {
- return /* @__PURE__ */ (0, z.jsx)("h3", {
+ return /* @__PURE__ */ (0, R.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
function iO({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
- return /* @__PURE__ */ (0, z.jsxs)("section", {
+ return /* @__PURE__ */ (0, R.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
className: `${Zse} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: Qse[e],
children: a
- }), i ? /* @__PURE__ */ (0, z.jsx)("footer", {
+ }), i ? /* @__PURE__ */ (0, R.jsx)("footer", {
className: $se[e],
children: i
}) : null]
@@ -32531,14 +32531,14 @@ function iO({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a,
//#endregion
//#region src/react/components/overlay-scrollbar.ts
function aO() {
- let e = (0, R.useRef)(null);
- return (0, R.useEffect)(() => {
+ let e = (0, L.useRef)(null);
+ return (0, L.useEffect)(() => {
v(e.current);
}), e;
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var oO = Li({
+var oO = Ri({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -32560,12 +32560,12 @@ var oO = Li({
}
});
function sO({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
- return /* @__PURE__ */ (0, z.jsx)("button", {
+ return /* @__PURE__ */ (0, R.jsx)("button", {
ref: i,
type: r,
- className: Ii(oO.base, oO.size[t], n),
+ className: Li(oO.base, oO.size[t], n),
...a,
- children: /* @__PURE__ */ (0, z.jsx)(e, {
+ children: /* @__PURE__ */ (0, R.jsx)(e, {
className: oO.icon[t],
"aria-hidden": !0
})
@@ -32574,7 +32574,7 @@ function sO({ icon: e, size: t = "medium", className: n, type: r = "button", ref
//#endregion
//#region src/react/components/path-line.tsx
function rce({ className: e }) {
- return /* @__PURE__ */ (0, z.jsx)("svg", {
+ return /* @__PURE__ */ (0, R.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
@@ -32583,43 +32583,43 @@ function rce({ className: e }) {
strokeLinecap: "round",
strokeLinejoin: "round",
className: e,
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: "#i-folder-open" })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: "#i-folder-open" })
});
}
var ice = "打开文件管理器失败,请重试";
function cO({ 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)(() => () => {
+ let [i, a] = (0, L.useState)(!1), [o, s] = (0, L.useState)(""), c = (0, L.useRef)(!0);
+ (0, L.useEffect)(() => () => {
c.current = !1;
}, []);
let l = async () => {
if (!i) {
a(!0), s("");
try {
- await G("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
+ await W("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof Hi ? e.message : ice);
+ c.current && s(e instanceof Ui ? e.message : ice);
} finally {
c.current && a(!1);
}
}
};
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex items-center justify-between gap-2",
- children: [/* @__PURE__ */ (0, z.jsxs)("p", {
- className: Ii("min-w-0 break-all", n),
+ children: [/* @__PURE__ */ (0, R.jsxs)("p", {
+ className: Li("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, z.jsx)(sO, {
+ }), /* @__PURE__ */ (0, R.jsx)(sO, {
icon: rce,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
onClick: () => void l(),
- ...q(i)
+ ...K(i)
})]
- }), o ? /* @__PURE__ */ (0, z.jsx)("p", {
+ }), o ? /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-caption-1-regular text-text-error-primary",
children: o
}) : null]
@@ -32628,32 +32628,32 @@ function cO({ path: e, prefix: t, className: n, onRevealed: r }) {
//#endregion
//#region src/react/components/task-progress.tsx
function lO({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : Zi({
+ className: r ? "flex flex-col gap-1.5" : Qi({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(ia, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(aa, {
label: e,
value: t,
max: n
- }), /* @__PURE__ */ (0, z.jsx)("p", {
+ }), /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: e
- })] }) : /* @__PURE__ */ (0, z.jsx)(ea, { label: e })
+ })] }) : /* @__PURE__ */ (0, R.jsx)(ta, { label: e })
});
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
function uO({ toast: e, mode: t, monitor: n }) {
- let r = t === "notice" || !!n, i = $n({
- queryKey: Zb,
- queryFn: ({ signal: e }) => Qb(e),
+ let r = t === "notice" || !!n, i = er({
+ queryKey: Qb,
+ queryFn: ({ signal: e }) => $b(e),
refetchInterval: (e) => are(e.state.data, r)
- }), [a, o] = (0, R.useState)(null), s = (0, R.useRef)(void 0), c = i.data;
- return (0, R.useEffect)(() => {
+ }), [a, o] = (0, L.useState)(null), s = (0, L.useRef)(void 0), c = i.data;
+ return (0, L.useEffect)(() => {
if (!c) return;
let n = s.current;
s.current = c.status;
@@ -32674,65 +32674,65 @@ function uO({ toast: e, mode: t, monitor: n }) {
var ace = [
{
label: "扫描并补全资料",
- icon: Qe,
+ icon: $e,
command: {}
},
{
label: "只扫描",
- icon: at,
+ icon: ot,
command: { stage: "scan" }
},
{
label: "只采集",
- icon: it,
+ icon: at,
command: { stage: "collect" }
}
-], oce = Ii(hy, gy, "text-body-2-medium"), sce = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", cce = (e) => {
+], oce = Li(gy, _y, "text-body-2-medium"), sce = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", cce = (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(",")}。`;
}, lce = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + cce(e);
function uce({ busy: e, onRun: t }) {
- let n = (0, R.useRef)(null), [r, i] = (0, R.useState)(!1), a = (n) => {
+ let n = (0, L.useRef)(null), [r, i] = (0, L.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("span", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("span", {
"data-button-group": !0,
"data-split-button": !0,
"data-variant": "primary",
- children: [/* @__PURE__ */ (0, z.jsx)(H, {
- leadingIcon: Qe,
+ children: [/* @__PURE__ */ (0, R.jsx)(V, {
+ leadingIcon: $e,
onClick: () => a({}),
- ...q(e),
+ ...K(e),
children: "扫描并补全资料"
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
ref: n,
iconOnly: !0,
- leadingIcon: Ue,
+ leadingIcon: We,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
- ...q(e),
+ ...K(e),
onClick: () => {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, z.jsx)(zh, {
+ }), /* @__PURE__ */ (0, R.jsx)(Bh, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: my,
- children: /* @__PURE__ */ (0, z.jsx)($D, {
+ className: hy,
+ children: /* @__PURE__ */ (0, R.jsx)($D, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: ace.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: ace.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
className: oce,
onClick: () => a(n),
- children: [/* @__PURE__ */ (0, z.jsx)(t, {
+ children: [/* @__PURE__ */ (0, R.jsx)(t, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), e]
@@ -32742,57 +32742,57 @@ function uce({ busy: e, onRun: t }) {
}
function dce({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
let a = cre(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = sre(e.notes || {}), c = aO();
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- e.status === "running" && e.stalled ? /* @__PURE__ */ (0, z.jsx)(K, {
+ e.status === "running" && e.stalled ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "warning",
title: "处理较慢",
children: sce
}) : null,
- t || e.status === "failed" ? /* @__PURE__ */ (0, z.jsx)(K, {
+ t || e.status === "failed" ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
- action: o ? /* @__PURE__ */ (0, z.jsx)(H, {
+ action: o ? /* @__PURE__ */ (0, R.jsx)(V, {
variant: "primary",
size: "small",
onClick: r,
children: "重试未完成项"
}) : null,
- extra: a ? /* @__PURE__ */ (0, z.jsx)("div", {
+ extra: a ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, z.jsxs)(Fy, {
+ children: /* @__PURE__ */ (0, R.jsxs)(Iy, {
summary: a.label,
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "relative",
- children: /* @__PURE__ */ (0, z.jsx)("ul", {
+ children: /* @__PURE__ */ (0, R.jsx)("ul", {
ref: c,
className: "max-h-96 overflow-y-auto pr-3",
- children: a.items.map((e) => /* @__PURE__ */ (0, z.jsxs)("li", {
+ children: a.items.map((e) => /* @__PURE__ */ (0, R.jsxs)("li", {
className: "flex flex-col gap-0.5 border-b border-current/15 py-2 first:pt-1 last:border-b-0 last:pb-1",
children: [
- e.href ? /* @__PURE__ */ (0, z.jsx)("a", {
+ e.href ? /* @__PURE__ */ (0, R.jsx)("a", {
href: e.href,
className: "text-body-2-medium underline-offset-4 hover:underline",
children: e.label
- }) : /* @__PURE__ */ (0, z.jsx)("span", {
+ }) : /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-medium",
children: e.label
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-caption-1-regular",
children: e.note
}),
- e.hint ? /* @__PURE__ */ (0, z.jsx)("code", {
+ e.hint ? /* @__PURE__ */ (0, R.jsx)("code", {
className: "text-caption-1-regular break-all",
children: e.hint
}) : null
]
}, e.key))
})
- }), a.log ? /* @__PURE__ */ (0, z.jsx)("div", {
+ }), a.log ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, z.jsx)(cO, {
+ children: /* @__PURE__ */ (0, R.jsx)(cO, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -32803,16 +32803,16 @@ function dce({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
children: t || e.error || "处理未完成,请重试"
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, z.jsx)(K, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "success",
title: "处理完成",
children: lce(n)
}) : null,
- e.status !== "running" && s ? /* @__PURE__ */ (0, z.jsx)(K, {
+ e.status !== "running" && s ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "neutral",
- extra: e.issues_log ? /* @__PURE__ */ (0, z.jsx)("div", {
+ extra: e.issues_log ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, z.jsx)(cO, {
+ children: /* @__PURE__ */ (0, R.jsx)(cO, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -32825,50 +32825,50 @@ function dce({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
});
}
function dO(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = uO(e), o = er({
- mutationFn: (e) => G(Xb, e),
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = uO(e), o = tr({
+ mutationFn: (e) => W(Zb, e),
onSuccess: (e) => {
- a(), X.setQueryData(Zb, e), X.invalidateQueries({ queryKey: Zb });
+ a(), Y.setQueryData(Qb, e), Y.invalidateQueries({ queryKey: Qb });
}
});
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? U(o.error) : r.isError ? r.data ? ex : U(r.error) : "", l = o.isPending || s.status === "running", u = nx(s), d = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? H(o.error) : r.isError ? r.data ? tx : H(r.error) : "", l = o.isPending || s.status === "running", u = rx(s), d = (e) => {
l || (o.reset(), o.mutate(e));
};
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, z.jsx)(iO, {
+ children: [/* @__PURE__ */ (0, R.jsx)(iO, {
layout: "stack",
label: "扫描与采集",
- footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)(wy, {
+ footer: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsx)(Ty, {
href: "/scraping",
size: "small",
- trailingIcon: We,
+ trailingIcon: Ge,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, z.jsx)(wy, {
+ s.candidates ? /* @__PURE__ */ (0, R.jsx)(Ty, {
href: "/review",
size: "small",
- trailingIcon: We,
+ trailingIcon: Ge,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, z.jsx)(uce, {
+ /* @__PURE__ */ (0, R.jsx)(uce, {
busy: l,
onRun: d
})
] }),
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(rO, { children: "扫描与采集" }),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)(rO, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: Yse
}),
- s.status === "running" ? /* @__PURE__ */ (0, z.jsx)(lO, {
+ s.status === "running" ? /* @__PURE__ */ (0, R.jsx)(lO, {
embedded: !0,
label: u,
value: s.checked,
@@ -32876,7 +32876,7 @@ function dO(e) {
}) : null
]
})
- }), /* @__PURE__ */ (0, z.jsx)(dce, {
+ }), /* @__PURE__ */ (0, R.jsx)(dce, {
state: s,
problem: c,
settled: i,
@@ -32894,28 +32894,28 @@ function dO(e) {
//#region src/react/background-job.ts
var fO = 2e3, fce = (e) => e, pce = (e, t) => t;
function pO(e) {
- let { queryKey: t, jobOf: n = fce, withJob: r = pce, idlePollMs: i } = e, [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(e);
- (0, R.useEffect)(() => {
+ let { queryKey: t, jobOf: n = fce, withJob: r = pce, idlePollMs: i } = e, [a, o] = (0, L.useState)(!1), [s, c] = (0, L.useState)(null), l = (0, L.useRef)(e);
+ (0, L.useEffect)(() => {
l.current = e;
});
- let u = $n({
+ let u = er({
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" ? fO : i ?? !1;
}
- }), d = er({
+ }), d = tr({
mutationFn: (e) => l.current.start(e),
onSuccess: (e) => {
- o(!0), c(null), l.current.onStarted?.(e), X.setQueryData(t, (t) => r(t, e)), X.invalidateQueries({
+ o(!0), c(null), l.current.onStarted?.(e), Y.setQueryData(t, (t) => r(t, e)), Y.invalidateQueries({
queryKey: t,
exact: !0
});
},
onError: (e) => l.current.onError?.(e)
}), f = u.data === void 0 ? void 0 : n(u.data), p = f?.status === "running";
- return (0, R.useEffect)(() => {
+ return (0, L.useEffect)(() => {
if (f) {
if (f.status === "running") {
a || o(!0);
@@ -32934,32 +32934,32 @@ function pO(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var mce = (e) => _[e] || e, mO = (e) => X.setQueryData(ax, e);
+var mce = (e) => _[e] || e, mO = (e) => Y.setQueryData(ox, e);
function hce() {
- let e = $n({
- queryKey: ax,
- queryFn: ({ signal: e }) => sx(e),
- refetchInterval: (e) => e.state.data?.status === "running" && fO
- }), t = $n({
+ let e = er({
queryKey: ox,
- queryFn: ({ signal: e }) => cx(e)
- }), [n, r] = (0, R.useState)(""), i = aa(), a = e.data ?? dre, 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 = () => {
+ queryFn: ({ signal: e }) => cx(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && fO
+ }), t = er({
+ queryKey: sx,
+ queryFn: ({ signal: e }) => lx(e)
+ }), [n, r] = (0, L.useState)(""), i = oa(), a = e.data ?? dre, 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 && b({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => mO(await G(ix, {
+ onConfirm: async () => mO(await W(ax, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => G(ix, { stop: !0 }, "POST", e), mO), d = pre(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ }, u = () => void i.run("stop", (e) => W(ax, { stop: !0 }, "POST", e), mO), d = pre(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, z.jsx)(iO, {
+ children: [/* @__PURE__ */ (0, R.jsx)(iO, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(vy, {
+ footer: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(yy, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@ -32967,55 +32967,55 @@ function hce() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, z.jsxs)(yy, {
+ children: o.map((e) => /* @__PURE__ */ (0, R.jsxs)(by, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, z.jsx)(Iy, { mark: mce(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, R.jsx)(Ly, { mark: mce(e.icon) }), e.name]
}, e.id))
- }), s ? /* @__PURE__ */ (0, z.jsx)(H, {
+ }), s ? /* @__PURE__ */ (0, R.jsx)(V, {
onClick: u,
- ...q(i.busy === "stop"),
+ ...K(i.busy === "stop"),
children: "停止"
- }) : /* @__PURE__ */ (0, z.jsx)(H, {
+ }) : /* @__PURE__ */ (0, R.jsx)(V, {
onClick: l,
disabled: !c,
children: "开始修复"
})] }),
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(rO, { children: "媒体修复" }),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)(rO, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: Xse
}),
- s && a.total ? /* @__PURE__ */ (0, z.jsx)(ia, {
+ s && a.total ? /* @__PURE__ */ (0, R.jsx)(aa, {
label: "修复进度",
value: a.checked,
max: a.total
}) : null,
- d ? /* @__PURE__ */ (0, z.jsx)("p", {
+ d ? /* @__PURE__ */ (0, R.jsx)("p", {
role: "status",
className: "text-caption-1-regular text-text-secondary",
children: d
}) : null
]
})
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- f && !a.repaired && !a.failed ? /* @__PURE__ */ (0, z.jsx)(K, {
+ f && !a.repaired && !a.failed ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "info",
title: "没有要修的",
children: "这个库里的片子都能直接播。"
}) : null,
- f && a.missing_tool ? /* @__PURE__ */ (0, z.jsx)(K, {
+ f && a.missing_tool ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "warning",
title: "缺少 untrunc",
children: mre(a)
}) : null,
- p ? /* @__PURE__ */ (0, z.jsx)(K, {
+ p ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
children: p
}) : null
@@ -33041,19 +33041,19 @@ var hO = {
};
function gO({ state: e, size: t = "md" }) {
let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = hO[t], c = n || r, l = o && !a;
- return /* @__PURE__ */ (0, z.jsx)("span", {
+ return /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
- className: Ii("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Ii("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Ii("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, z.jsx)("svg", {
+ className: Li("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Li("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Li("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, R.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
className: s.glyph,
- children: r ? /* @__PURE__ */ (0, z.jsx)("path", {
+ children: r ? /* @__PURE__ */ (0, R.jsx)("path", {
d: "M4.5 8H8H11.5",
stroke: "white",
strokeWidth: "2",
strokeLinecap: "round"
- }) : n ? /* @__PURE__ */ (0, z.jsx)("path", {
+ }) : n ? /* @__PURE__ */ (0, R.jsx)("path", {
d: "M4 7.7002L6.64645 10.3466C6.84171 10.5419 7.15829 10.5419 7.35355 10.3466L12 5.7002",
stroke: "white",
strokeWidth: "2",
@@ -33069,15 +33069,15 @@ function gO({ state: e, size: t = "md" }) {
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
function _O({ className: e, children: t, size: n = "md", ref: r, ...i }) {
let a = hO[n];
- return /* @__PURE__ */ (0, z.jsx)(ld, {
+ return /* @__PURE__ */ (0, R.jsx)(ud, {
ref: r,
...i,
- className: (t) => Ii("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, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(gO, {
+ className: (t) => Li("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, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(gO, {
state: e,
size: n
- }), t != null && /* @__PURE__ */ (0, z.jsx)("span", {
- className: Ii(a.label, "text-text-primary"),
+ }), t != null && /* @__PURE__ */ (0, R.jsx)("span", {
+ className: Li(a.label, "text-text-primary"),
children: t
})] })
});
@@ -33085,12 +33085,12 @@ function _O({ className: e, children: t, size: n = "md", ref: r, ...i }) {
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
function vO({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
- return /* @__PURE__ */ (0, z.jsx)("div", {
- className: Ii("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, z.jsx)(Lv, {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
+ className: Li("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, R.jsx)(Rv, {
ref: r,
...i,
- className: Ii("bui-table", e === "sm" && "bui-table-sm", t)
+ className: Li("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
@@ -33118,7 +33118,7 @@ function yO(e, t) {
//#endregion
//#region src/react/components/data-table-frame.tsx
function bO({ children: e, follow: t = !1, onRowClick: n }) {
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
onClick: n ? (e) => {
@@ -33132,20 +33132,20 @@ function bO({ children: e, follow: t = !1, onRowClick: n }) {
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var _ce = Ob("unlink"), xO = Ob("rotate-cw"), vce = "站点返回 404 或 410,确认这个地址不存在。", yce = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", bce = "删除前会逐条重验一次;此操作不可撤销。", xce = "暂时无法读取进度,正在重新连接…", SO = (e) => Number(e || 0).toLocaleString();
+var _ce = kb("unlink"), xO = kb("rotate-cw"), vce = "站点返回 404 或 410,确认这个地址不存在。", yce = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", bce = "删除前会逐条重验一次;此操作不可撤销。", xce = "暂时无法读取进度,正在重新连接…", SO = (e) => Number(e || 0).toLocaleString();
function CO({ label: e, value: t, note: n }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-caption-1-regular leading-5 text-text-secondary",
children: e
}),
- /* @__PURE__ */ (0, z.jsx)("b", {
+ /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary",
children: t
}),
- n ? /* @__PURE__ */ (0, z.jsx)("small", {
+ n ? /* @__PURE__ */ (0, R.jsx)("small", {
className: "text-caption-1-regular leading-5 text-text-secondary",
children: n
}) : null
@@ -33155,27 +33155,27 @@ function CO({ label: e, value: t, note: n }) {
function wO({ 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, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: eO,
children: [
- /* @__PURE__ */ (0, z.jsxs)("h4", {
+ /* @__PURE__ */ (0, R.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
- children: [e, /* @__PURE__ */ (0, z.jsx)("b", {
+ children: [e, /* @__PURE__ */ (0, R.jsx)("b", {
className: "ml-1.5 font-semibold tabular-nums text-text-secondary",
children: t.length
})]
}),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "mb-3 text-caption-1-regular text-text-secondary",
children: n
}),
- /* @__PURE__ */ (0, z.jsx)(bO, { children: /* @__PURE__ */ (0, z.jsxs)(vO, {
+ /* @__PURE__ */ (0, R.jsx)(bO, { children: /* @__PURE__ */ (0, R.jsxs)(vO, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsxs)(Wv, { children: [
- i ? /* @__PURE__ */ (0, z.jsx)(Kv, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(Gv, { children: [
+ i ? /* @__PURE__ */ (0, R.jsx)(qv, {
id: "pick",
- children: /* @__PURE__ */ (0, z.jsx)(_O, {
+ children: /* @__PURE__ */ (0, R.jsx)(_O, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -33183,54 +33183,54 @@ function wO({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Kv, {
+ /* @__PURE__ */ (0, R.jsx)(qv, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, z.jsx)(Kv, {
+ /* @__PURE__ */ (0, R.jsx)(qv, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, z.jsx)(Kv, {
+ /* @__PURE__ */ (0, R.jsx)(qv, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, z.jsx)(Kv, {
+ /* @__PURE__ */ (0, R.jsx)(qv, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, z.jsx)(Kv, {
+ /* @__PURE__ */ (0, R.jsx)(qv, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, z.jsx)(Jv, { children: t.map((e) => /* @__PURE__ */ (0, z.jsxs)(Zv, {
+ ] }), /* @__PURE__ */ (0, R.jsx)(Yv, { children: t.map((e) => /* @__PURE__ */ (0, R.jsxs)(Qv, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, z.jsx)($v, { children: /* @__PURE__ */ (0, z.jsx)(_O, {
+ i ? /* @__PURE__ */ (0, R.jsx)(ey, { children: /* @__PURE__ */ (0, R.jsx)(_O, {
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, z.jsx)($v, { children: e.entity }),
- /* @__PURE__ */ (0, z.jsx)($v, { children: Mx[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, z.jsx)($v, { children: e.label || "" }),
- /* @__PURE__ */ (0, z.jsx)($v, { children: /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)(ey, { children: e.entity }),
+ /* @__PURE__ */ (0, R.jsx)(ey, { children: Nx[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, R.jsx)(ey, { children: e.label || "" }),
+ /* @__PURE__ */ (0, R.jsx)(ey, { children: /* @__PURE__ */ (0, R.jsx)("span", {
className: "tabular-nums text-text-error-primary",
children: e.note
}) }),
- /* @__PURE__ */ (0, z.jsx)($v, { children: /* @__PURE__ */ (0, z.jsxs)("a", {
+ /* @__PURE__ */ (0, R.jsx)(ey, { children: /* @__PURE__ */ (0, R.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.url,
className: "flex max-w-90 min-w-0 items-center gap-1 text-text-secondary hover:text-text-primary",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-middle-truncate": !0,
className: "min-w-0 truncate",
children: e.url
- }), /* @__PURE__ */ (0, z.jsx)(tt, {
+ }), /* @__PURE__ */ (0, R.jsx)(nt, {
"aria-hidden": !0,
className: "size-3.5 shrink-0"
})]
@@ -33243,31 +33243,31 @@ function wO({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
});
}
function Sce() {
- let e = $n({
- queryKey: kx,
- queryFn: ({ signal: e }) => Px(e)
- }), [t, n] = (0, R.useState)([]), r = pO({
- queryKey: jx,
- queryFn: ({ signal: e }) => Ix(e),
+ let e = er({
+ queryKey: Ax,
+ queryFn: ({ signal: e }) => Fx(e)
+ }), [t, n] = (0, L.useState)([]), r = pO({
+ queryKey: Mx,
+ queryFn: ({ signal: e }) => Lx(e),
start: Hre,
onFinish: () => {
- X.invalidateQueries({
- queryKey: kx,
- exact: !0
- }), X.invalidateQueries({
+ Y.invalidateQueries({
queryKey: Ax,
exact: !0
+ }), Y.invalidateQueries({
+ queryKey: jx,
+ exact: !0
});
}
}), i = pO({
- queryKey: Ax,
- queryFn: ({ signal: e }) => Fx(e),
+ queryKey: jx,
+ queryFn: ({ signal: e }) => Ix(e),
start: Vre,
onStarted: () => {
r.dismiss(), n([]);
}
}), a = i.job, o = a?.check_id ?? "";
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
n([]);
}, [o]);
let s = i.running || i.start.isPending, c = r.running || r.start.isPending, l = a?.status === "complete", u = a?.gone ?? [], d = a?.unclear ?? [], f = l ? d : [], p = e.data, m = (p?.top_hosts ?? []).slice(0, 3).map(([e, t]) => `${e} ${t}`).join(" · "), h = (e) => {
@@ -33284,147 +33284,147 @@ function Sce() {
onConfirm: () => r.start.mutateAsync(o)
});
}, _ = r.outcome, v = i.start.error ?? r.start.error, y = null, x = null;
- if (_?.status === "failed") x = /* @__PURE__ */ (0, z.jsx)(K, {
+ if (_?.status === "failed") x = /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "链接清理未完成",
children: _.error || "请查看任务记录,核对已处理的链接。"
});
- else if (_) x = /* @__PURE__ */ (0, z.jsx)(K, {
+ else if (_) x = /* @__PURE__ */ (0, R.jsx)(G, {
tone: "success",
title: "完成",
children: Ure(_)
});
- else if (v) x = /* @__PURE__ */ (0, z.jsx)(K, {
+ else if (v) x = /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "检查失败",
- children: U(v)
+ children: H(v)
});
- else if (i.query.isError && a) x = /* @__PURE__ */ (0, z.jsx)(K, {
+ else if (i.query.isError && a) x = /* @__PURE__ */ (0, R.jsx)(G, {
tone: "neutral",
title: "任务状态",
children: xce
});
- else if (a?.status === "failed") x = /* @__PURE__ */ (0, z.jsx)(K, {
+ else if (a?.status === "failed") x = /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "检查失败",
children: a.error || "检查失败"
});
else if (a && a.status !== "idle") {
- y = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, z.jsx)(lO, {
+ y = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, R.jsx)(lO, {
embedded: !0,
label: Wre(a),
value: a.checked,
total: a.total
- }) : null, c ? /* @__PURE__ */ (0, z.jsx)(lO, {
+ }) : null, c ? /* @__PURE__ */ (0, R.jsx)(lO, {
embedded: !0,
label: r.job?.message || "正在重验并删除失效链接…",
value: r.job?.checked,
total: r.job?.total
}) : null] });
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
- x = l || u.length || d.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ x = l || u.length || d.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: nce,
children: [
- /* @__PURE__ */ (0, z.jsx)(wO, {
+ /* @__PURE__ */ (0, R.jsx)(wO, {
title: "地址已失效",
items: u,
hint: vce
}),
- /* @__PURE__ */ (0, z.jsx)(wO, {
+ /* @__PURE__ */ (0, R.jsx)(wO, {
title: "本次未访问成功",
items: d,
hint: yce,
picked: f.length ? t : void 0,
onPick: f.length ? n : void 0,
- children: f.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ children: f.length ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, z.jsxs)(tO, { children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ children: /* @__PURE__ */ (0, R.jsxs)(tO, { children: [/* @__PURE__ */ (0, R.jsx)(V, {
leadingIcon: xO,
disabled: !t.length,
- ...q(s),
+ ...K(s),
onClick: () => h(t),
children: e
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
leadingIcon: xO,
- ...q(s),
+ ...K(s),
onClick: () => h(f.map((e) => e.id)),
children: `全部重试(${f.length})`
})] })
}) : null
}),
- l && u.length ? /* @__PURE__ */ (0, z.jsx)(tO, {
+ l && u.length ? /* @__PURE__ */ (0, R.jsx)(tO, {
tone: "error",
status: bce,
- children: /* @__PURE__ */ (0, z.jsx)(H, {
+ children: /* @__PURE__ */ (0, R.jsx)(V, {
variant: "danger",
- ...q(c),
+ ...K(c),
onClick: g,
children: `删除 ${u.length} 条失效链接`
})
}) : null,
- l && !u.length && !d.length ? /* @__PURE__ */ (0, z.jsx)("p", {
+ l && !u.length && !d.length ? /* @__PURE__ */ (0, R.jsx)("p", {
className: `${eO} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
}) : null;
}
- return /* @__PURE__ */ (0, z.jsxs)("section", {
+ return /* @__PURE__ */ (0, R.jsxs)("section", {
id: "link-manager",
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, z.jsx)(nO, {
+ /* @__PURE__ */ (0, R.jsx)(nO, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, z.jsxs)(iO, {
+ /* @__PURE__ */ (0, R.jsxs)(iO, {
layout: "stack",
labelledBy: "link-manager-box",
- footer: /* @__PURE__ */ (0, z.jsx)(H, {
+ footer: /* @__PURE__ */ (0, R.jsx)(V, {
leadingIcon: _ce,
- ...q(s),
+ ...K(s),
onClick: () => h(),
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
children: [
- /* @__PURE__ */ (0, z.jsx)(rO, {
+ /* @__PURE__ */ (0, R.jsx)(rO, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
}),
- e.isError ? /* @__PURE__ */ (0, z.jsx)(K, {
+ e.isError ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "链接统计读取失败",
- children: U(e.error)
- }) : p ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: H(e.error)
+ }) : p ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, z.jsx)(CO, {
+ children: [/* @__PURE__ */ (0, R.jsx)(CO, {
label: "链接总数",
value: SO(p.total),
note: `分布在 ${SO(p.entities)} 个女优、厂牌与系列`
- }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(CO, {
- label: Mx[e] || e,
+ }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(CO, {
+ label: Nx[e] || e,
value: SO(t)
}, e))]
- }), m ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), m ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "主要站点"
- }), /* @__PURE__ */ (0, z.jsx)("b", {
+ }), /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-body-2-medium break-words text-text-primary",
children: m
})]
}) : null] }) : null,
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"aria-live": "polite",
className: "mt-4 flex flex-col gap-3 empty:hidden",
children: y
})
]
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"aria-live": "polite",
className: "empty:hidden",
children: x
@@ -33436,50 +33436,50 @@ function Sce() {
//#region src/react/data-cleanup/organize-card.tsx
var Cce = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, wce = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Tce = 8;
function Ece({ plan: e }) {
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("ol", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, Tce).map((e) => /* @__PURE__ */ (0, z.jsxs)("li", {
+ children: e.rows.slice(0, Tce).map((e) => /* @__PURE__ */ (0, R.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: Yx(e.current_path)
+ children: Xx(e.current_path)
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
children: "→"
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: Yx(e.target_path)
+ children: Xx(e.target_path)
})
]
}, e.current_path))
- }), e.truncated ? /* @__PURE__ */ (0, z.jsx)("p", {
+ }), e.truncated ? /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
function Dce({ toast: t, failure: n }) {
- let r = $n({
- queryKey: qx,
- queryFn: ({ signal: e }) => Jx(e)
- }), i = r.data, a = i?.locations ?? [], [o, s] = (0, R.useState)(""), c = a.some((e) => e.location === o) ? o : a[0]?.location ?? "", l = i?.templates?.[c], [u, d] = (0, R.useState)(null), f = u?.location === c ? u : {
+ let r = er({
+ queryKey: Jx,
+ queryFn: ({ signal: e }) => Yx(e)
+ }), i = r.data, a = i?.locations ?? [], [o, s] = (0, L.useState)(""), c = a.some((e) => e.location === o) ? o : a[0]?.location ?? "", l = i?.templates?.[c], [u, d] = (0, L.useState)(null), f = u?.location === c ? u : {
location: c,
file: l?.file ?? "",
dir: l?.dir ?? ""
}, p = (e) => d({
...f,
...e
- }), [m, h] = (0, R.useState)(null), g = (0, R.useRef)(null), v = (0, R.useRef)(null), y = () => ({
+ }), [m, h] = (0, L.useState)(null), g = (0, L.useRef)(null), v = (0, L.useRef)(null), y = () => ({
location: c,
file_template: f.file.trim(),
dir_template: f.dir.trim()
- }), x = er({
+ }), x = tr({
mutationFn: nie,
onSuccess: (e, t) => void iie({
...i?.templates ?? {},
@@ -33489,22 +33489,22 @@ function Dce({ toast: t, failure: n }) {
}
}),
onError: (e) => {
- let t = oie.test(U(e)) ? "dir" : "file";
+ let t = oie.test(H(e)) ? "dir" : "file";
h(t), (t === "dir" ? v : g).current?.focus();
}
}), S = pO({
- queryKey: qx,
- queryFn: ({ signal: e }) => Jx(e),
+ queryKey: Jx,
+ queryFn: ({ signal: e }) => Yx(e),
start: rie,
jobOf: (e) => e,
withJob: aie,
onStarted: () => x.reset(),
onFinish: (e) => {
- if (X.invalidateQueries({
- queryKey: qx,
+ if (Y.invalidateQueries({
+ queryKey: Jx,
exact: !0
}), e.status !== "complete") return;
- let { text: r, failed: i } = Zx(e);
+ let { text: r, failed: i } = Qx(e);
i ? n("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : t(r.replace(/。$/, ""));
}
}), C = S.running || S.start.isPending, w = x.data, T = Number(w?.counts?.change || 0), E = e[c] || c, D = (i?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), O = () => {
@@ -33525,98 +33525,98 @@ function Dce({ toast: t, failure: n }) {
}), j = null, M = S.job, N = S.outcome;
if (M?.status === "running") {
let e = M.message || M.stage || "正在整理文件…";
- j = /* @__PURE__ */ (0, z.jsx)(lO, {
+ j = /* @__PURE__ */ (0, R.jsx)(lO, {
embedded: !0,
label: e,
value: M.checked,
total: M.total
});
- } else if (N?.status === "failed") j = /* @__PURE__ */ (0, z.jsx)(K, {
+ } else if (N?.status === "failed") j = /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "文件整理未完成",
children: N.error || "请查看任务记录,核对已处理的文件。"
});
else if (N) {
- let { text: e, failed: t } = Zx(N);
- j = /* @__PURE__ */ (0, z.jsx)(K, {
+ let { text: e, failed: t } = Qx(N);
+ j = /* @__PURE__ */ (0, R.jsx)(G, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
children: e
});
- } else S.start.isError ? j = /* @__PURE__ */ (0, z.jsx)(K, {
+ } else S.start.isError ? j = /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "整理失败",
- children: U(S.start.error)
- }) : x.isPending ? j = /* @__PURE__ */ (0, z.jsx)(lO, {
+ children: H(S.start.error)
+ }) : x.isPending ? j = /* @__PURE__ */ (0, R.jsx)(lO, {
embedded: !0,
label: "正在按模板算计划…"
- }) : x.isError ? j = /* @__PURE__ */ (0, z.jsx)(K, {
+ }) : x.isError ? j = /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "模板不可用",
- children: U(x.error)
- }) : w && (j = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(K, {
+ children: H(x.error)
+ }) : w && (j = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(G, {
tone: "neutral",
title: "预览结果",
children: sie(w)
- }), T ? /* @__PURE__ */ (0, z.jsx)(Ece, { plan: w }) : null] }));
- return /* @__PURE__ */ (0, z.jsxs)(iO, {
+ }), T ? /* @__PURE__ */ (0, R.jsx)(Ece, { plan: w }) : null] }));
+ return /* @__PURE__ */ (0, R.jsxs)(iO, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
attributes: { "data-cleanup-organize": "" },
- footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)(H, {
+ footer: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsx)(V, {
disabled: !a.length,
- ...q(x.isPending),
+ ...K(x.isPending),
onClick: O,
children: "预览"
}),
- T && !C && !S.outcome ? /* @__PURE__ */ (0, z.jsx)(H, {
+ T && !C && !S.outcome ? /* @__PURE__ */ (0, R.jsx)(V, {
onClick: k,
children: "执行整理"
}) : null,
- i?.last_batch ? /* @__PURE__ */ (0, z.jsx)(H, {
+ i?.last_batch ? /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
- ...q(C),
+ ...K(C),
onClick: A,
children: "回滚上一批"
}) : null
] }),
children: [
- /* @__PURE__ */ (0, z.jsx)(rO, {
+ /* @__PURE__ */ (0, R.jsx)(rO, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
}),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-regular text-text-secondary",
children: "按模板给文件改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。"
}),
- r.isError ? /* @__PURE__ */ (0, z.jsx)("div", {
+ r.isError ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "mt-3",
- children: /* @__PURE__ */ (0, z.jsx)(K, {
+ children: /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "整理配置读取失败",
- children: U(r.error)
+ children: H(r.error)
})
}) : null,
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- a.length ? /* @__PURE__ */ (0, z.jsx)(vy, {
+ a.length ? /* @__PURE__ */ (0, R.jsx)(yy, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: c || null,
onSelectionChange: (e) => {
e !== null && (s(String(e)), h(null), x.reset());
},
- children: a.map((t) => /* @__PURE__ */ (0, z.jsxs)(yy, {
+ children: a.map((t) => /* @__PURE__ */ (0, R.jsxs)(by, {
id: t.location,
textValue: e[t.location] || t.location,
- children: [/* @__PURE__ */ (0, z.jsx)(Iy, { mark: _[t.location] || "database" }), e[t.location] || t.location]
+ children: [/* @__PURE__ */ (0, R.jsx)(Ly, { mark: _[t.location] || "database" }), e[t.location] || t.location]
}, t.location))
}) : null,
- /* @__PURE__ */ (0, z.jsx)(py, {
+ /* @__PURE__ */ (0, R.jsx)(my, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: f.file,
@@ -33627,7 +33627,7 @@ function Dce({ toast: t, failure: n }) {
p({ file: e }), h(null);
}
}),
- /* @__PURE__ */ (0, z.jsx)(py, {
+ /* @__PURE__ */ (0, R.jsx)(my, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: f.dir,
@@ -33638,9 +33638,9 @@ function Dce({ toast: t, failure: n }) {
p({ dir: e }), h(null);
}
}),
- i?.presets?.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ i?.presets?.length ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-wrap gap-2",
- children: i.presets.map((e) => /* @__PURE__ */ (0, z.jsx)(H, {
+ children: i.presets.map((e) => /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
onClick: () => {
p({
@@ -33651,13 +33651,13 @@ function Dce({ toast: t, failure: n }) {
children: e.label
}, e.label))
}) : null,
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-caption-1-regular leading-4.5 text-text-secondary",
children: `${D};方括号里的内容在字段为空时整段省略。`
})
]
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"aria-live": "polite",
className: "mt-3 flex flex-col gap-2 empty:hidden",
children: j
@@ -33674,28 +33674,28 @@ var Oce = "/api/orphan-records", kce = "/api/orphan-records/attach", TO = ["orph
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], jce = (e) => W(Oce, e), Mce = (e, t) => G(kce, {
+], jce = (e) => U(Oce, e), Mce = (e, t) => W(kce, {
id: e,
target: t
-}), Nce = (e) => G(Gb, {
+}), Nce = (e) => W(Kb, {
ids: [e],
operation: "delete"
}), Pce = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], EO = (e) => [...Ace.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Pce(e)].filter(Boolean).join(" · "), Fce = (e) => e ? `${Math.round(e / 60)} 分钟` : "", DO = (e) => [e.name, Fce(e.duration)].filter(Boolean).join(" · "), Ice = Ob("play"), OO = () => X.invalidateQueries({
+], EO = (e) => [...Ace.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Pce(e)].filter(Boolean).join(" · "), Fce = (e) => e ? `${Math.round(e / 60)} 分钟` : "", DO = (e) => [e.name, Fce(e.duration)].filter(Boolean).join(" · "), Ice = kb("play"), OO = () => Y.invalidateQueries({
queryKey: TO,
exact: !0
});
function Lce({ item: t, toast: n }) {
- let [r, i] = (0, R.useState)(t.candidates[0]?.id ?? null), a = er({
+ let [r, i] = (0, L.useState)(t.candidates[0]?.id ?? null), a = tr({
mutationFn: () => Mce(t.id, Number(r)),
onSuccess: (e) => {
n(`记录已接到新文件,批次 ${e.batch}`), OO();
},
- onError: (e) => n(U(e))
- }), o = er({
+ onError: (e) => n(H(e))
+ }), o = tr({
mutationFn: () => Nce(t.id),
onSuccess: (e) => {
n(e.blocked.length ? `${t.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${t.name}`), OO();
@@ -33709,68 +33709,68 @@ function Lce({ item: t, toast: n }) {
onConfirm: () => o.mutateAsync()
});
}, c = a.isPending || o.isPending;
- return /* @__PURE__ */ (0, z.jsxs)(Zv, {
+ return /* @__PURE__ */ (0, R.jsxs)(Qv, {
id: t.id,
children: [
- /* @__PURE__ */ (0, z.jsx)($v, { children: /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsx)(ey, { children: /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 items-center gap-3",
- children: [/* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, R.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, z.jsx)(Ice, {
+ children: [/* @__PURE__ */ (0, R.jsx)(Ice, {
"aria-hidden": !0,
className: "size-5"
- }), t.has_thumb ? /* @__PURE__ */ (0, z.jsx)("img", {
+ }), t.has_thumb ? /* @__PURE__ */ (0, R.jsx)("img", {
src: `/thumb?id=${t.id}&c=4`,
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
className: "absolute inset-0 size-full object-contain"
}) : null]
- }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ }), /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
title: t.name,
className: "max-w-72 truncate text-body-regular text-text-primary",
children: t.name
- }), /* @__PURE__ */ (0, z.jsx)("small", {
+ }), /* @__PURE__ */ (0, R.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: [t.code, e[t.location] || t.location].filter(Boolean).join(" · ")
})]
})]
}) }),
- /* @__PURE__ */ (0, z.jsx)($v, { children: /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)(ey, { children: /* @__PURE__ */ (0, R.jsx)("span", {
className: "block min-w-44",
children: EO(t.records)
}) }),
- /* @__PURE__ */ (0, z.jsx)($v, { children: t.candidates.length ? /* @__PURE__ */ (0, z.jsx)(vy, {
+ /* @__PURE__ */ (0, R.jsx)(ey, { children: t.candidates.length ? /* @__PURE__ */ (0, R.jsx)(yy, {
"aria-label": `把 ${t.name} 的记录接到哪个文件`,
className: "w-64",
selectedKey: r,
onSelectionChange: (e) => {
e !== null && i(Number(e));
},
- children: t.candidates.map((e) => /* @__PURE__ */ (0, z.jsx)(yy, {
+ children: t.candidates.map((e) => /* @__PURE__ */ (0, R.jsx)(by, {
id: e.id,
textValue: DO(e),
children: DO(e)
}, e.id))
- }) : /* @__PURE__ */ (0, z.jsx)("span", {
+ }) : /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-text-secondary",
children: "没有番号或文件名对得上的文件"
}) }),
- /* @__PURE__ */ (0, z.jsx)($v, { children: /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsx)(ey, { children: /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex flex-wrap gap-2",
- children: [t.candidates.length ? /* @__PURE__ */ (0, z.jsx)(H, {
+ children: [t.candidates.length ? /* @__PURE__ */ (0, R.jsx)(V, {
size: "small",
disabled: c || r === null,
- ...q(a.isPending),
+ ...K(a.isPending),
onClick: () => a.mutate(),
children: "接到这个文件"
- }) : null, /* @__PURE__ */ (0, z.jsx)(H, {
+ }) : null, /* @__PURE__ */ (0, R.jsx)(V, {
variant: "danger",
size: "small",
disabled: c,
- ...q(o.isPending),
+ ...K(o.isPending),
onClick: s,
children: "彻底删除"
})]
@@ -33779,56 +33779,56 @@ function Lce({ item: t, toast: n }) {
});
}
function Rce({ toast: e }) {
- let t = $n({
+ let t = er({
queryKey: TO,
queryFn: ({ signal: e }) => jce(e)
}), n = t.data?.items ?? [];
- return !t.isError && !n.length ? null : /* @__PURE__ */ (0, z.jsxs)("section", {
+ return !t.isError && !n.length ? null : /* @__PURE__ */ (0, R.jsxs)("section", {
id: "orphan-records",
"aria-labelledby": "orphan-records-title",
className: "flex scroll-mt-20 flex-col gap-4",
- children: [/* @__PURE__ */ (0, z.jsx)(nO, {
+ children: [/* @__PURE__ */ (0, R.jsx)(nO, {
id: "orphan-records-title",
children: "孤儿记录"
- }), /* @__PURE__ */ (0, z.jsxs)(iO, {
+ }), /* @__PURE__ */ (0, R.jsxs)(iO, {
layout: "stack",
labelledBy: "orphan-records-box",
children: [
- /* @__PURE__ */ (0, z.jsx)(rO, {
+ /* @__PURE__ */ (0, R.jsx)(rO, {
id: "orphan-records-box",
gap: "small",
children: "文件已消失的作品"
}),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "mb-3 text-body-regular text-text-secondary",
children: "这些作品的文件已不在盘上,喜欢、稍后看、播放列表与观看历史都还留着。接到新文件后记录跟过去,旧的这一条删掉。"
}),
- t.isError ? /* @__PURE__ */ (0, z.jsx)(K, {
+ t.isError ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "孤儿记录读取失败",
- children: U(t.error)
- }) : /* @__PURE__ */ (0, z.jsx)(bO, { children: /* @__PURE__ */ (0, z.jsxs)(vO, {
+ children: H(t.error)
+ }) : /* @__PURE__ */ (0, R.jsx)(bO, { children: /* @__PURE__ */ (0, R.jsxs)(vO, {
"aria-label": "文件已消失的作品",
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsxs)(Wv, { children: [
- /* @__PURE__ */ (0, z.jsx)(Kv, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(Gv, { children: [
+ /* @__PURE__ */ (0, R.jsx)(qv, {
id: "item",
isRowHeader: !0,
children: "作品"
}),
- /* @__PURE__ */ (0, z.jsx)(Kv, {
+ /* @__PURE__ */ (0, R.jsx)(qv, {
id: "records",
children: "带的记录"
}),
- /* @__PURE__ */ (0, z.jsx)(Kv, {
+ /* @__PURE__ */ (0, R.jsx)(qv, {
id: "target",
children: "接到"
}),
- /* @__PURE__ */ (0, z.jsx)(Kv, {
+ /* @__PURE__ */ (0, R.jsx)(qv, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, z.jsx)(Jv, { children: n.map((t) => /* @__PURE__ */ (0, z.jsx)(Lce, {
+ ] }), /* @__PURE__ */ (0, R.jsx)(Yv, { children: n.map((t) => /* @__PURE__ */ (0, R.jsx)(Lce, {
item: t,
toast: e
}, t.id)) })]
@@ -33839,20 +33839,20 @@ function Rce({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var zce = Ob("git-compare"), Bce = Ob("rotate-cw"), Vce = "暂时无法读取进度,正在重新连接…", kO = "清理失效条目", AO = "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", jO = (e) => Number(e || 0).toLocaleString();
+var zce = kb("git-compare"), Bce = kb("rotate-cw"), Vce = "暂时无法读取进度,正在重新连接…", kO = "清理失效条目", AO = "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", jO = (e) => Number(e || 0).toLocaleString();
function Hce({ scan: e }) {
let t = e.cache ?? {
files: 0,
bytes: 0
};
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: AO,
- children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, z.jsx)("article", {
- className: bS(),
- children: /* @__PURE__ */ (0, z.jsx)(xS, {
+ children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, R.jsx)("article", {
+ className: xS(),
+ children: /* @__PURE__ */ (0, R.jsx)(SS, {
label: fie[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, z.jsx)(Iy, { mark: _[e.location] ?? "database" }),
- aside: /* @__PURE__ */ (0, z.jsx)("span", {
+ mark: /* @__PURE__ */ (0, R.jsx)(Ly, { mark: _[e.location] ?? "database" }),
+ aside: /* @__PURE__ */ (0, R.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
@@ -33861,36 +33861,36 @@ function Hce({ scan: e }) {
wrapMeta: !0
})
}, e.location))
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: AO,
children: [
- /* @__PURE__ */ (0, z.jsx)("article", {
- className: bS(),
- children: /* @__PURE__ */ (0, z.jsx)(xS, {
+ /* @__PURE__ */ (0, R.jsx)("article", {
+ className: xS(),
+ children: /* @__PURE__ */ (0, R.jsx)(SS, {
label: "待永久删除",
- figure: `${jO(oS(e))} 项`,
+ figure: `${jO(sS(e))} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
- /* @__PURE__ */ (0, z.jsx)("article", {
- className: bS(),
- children: /* @__PURE__ */ (0, z.jsx)(xS, {
+ /* @__PURE__ */ (0, R.jsx)("article", {
+ className: xS(),
+ children: /* @__PURE__ */ (0, R.jsx)(SS, {
label: "将标为已消失",
figure: `${jO(e.vanish)} 项`,
meta: "带个人记录,记录留着"
})
}),
- /* @__PURE__ */ (0, z.jsx)("article", {
- className: bS(),
- children: /* @__PURE__ */ (0, z.jsx)(xS, {
+ /* @__PURE__ */ (0, R.jsx)("article", {
+ className: xS(),
+ children: /* @__PURE__ */ (0, R.jsx)(SS, {
label: "空文件夹",
figure: `${jO(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
- /* @__PURE__ */ (0, z.jsx)("article", {
- className: bS(),
- children: /* @__PURE__ */ (0, z.jsx)(xS, {
+ /* @__PURE__ */ (0, R.jsx)("article", {
+ className: xS(),
+ children: /* @__PURE__ */ (0, R.jsx)(SS, {
label: "可清理的缓存",
figure: `${jO(t.files)} 个`,
meta: t.files ? s(t.bytes) : ""
@@ -33901,23 +33901,23 @@ function Hce({ scan: e }) {
}
function Uce({ toast: e }) {
let t = pO({
- queryKey: tS,
- queryFn: ({ signal: e }) => rS(e),
+ queryKey: nS,
+ queryFn: ({ signal: e }) => iS(e),
start: lie,
onFinish: (t) => {
- if (X.invalidateQueries({
- queryKey: pS,
+ if (Y.invalidateQueries({
+ queryKey: mS,
exact: !0
- }), X.invalidateQueries({
- queryKey: eS,
+ }), Y.invalidateQueries({
+ queryKey: tS,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = lS(t);
+ let { done: n, left: r } = uS(t);
r ? e(`已完成 ${jO(n)} 项,${jO(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
}), n = pO({
- queryKey: eS,
- queryFn: ({ signal: e }) => nS(e),
+ queryKey: tS,
+ queryFn: ({ signal: e }) => rS(e),
start: cie,
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", c = i ? "扫描中" : o ? "重新扫描" : "检查文件", l = (e) => void b({
@@ -33927,117 +33927,117 @@ function Uce({ toast: e }) {
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), u = t.outcome, d = (e) => {
- let t = lS(e).left > 0;
- return /* @__PURE__ */ (0, z.jsx)(K, {
+ let t = uS(e).left > 0;
+ return /* @__PURE__ */ (0, R.jsx)(G, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
children: _ie(e, s)
});
}, f = null, p = null;
- if (u?.status === "failed") p = /* @__PURE__ */ (0, z.jsx)(K, {
+ if (u?.status === "failed") p = /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "资源清理未完成",
children: u.error || "请查看任务记录,核对已处理的文件。"
});
else if (u) p = d(u);
- else if (t.running) f = /* @__PURE__ */ (0, z.jsx)(lO, {
+ else if (t.running) f = /* @__PURE__ */ (0, R.jsx)(lO, {
embedded: !0,
label: t.job?.message || "正在复核并清理失效条目…"
});
- else if (n.start.isError) p = /* @__PURE__ */ (0, z.jsx)(K, {
+ else if (n.start.isError) p = /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "扫描失败",
- children: U(n.start.error)
+ children: H(n.start.error)
});
- else if (n.query.isError && r) p = /* @__PURE__ */ (0, z.jsx)(K, {
+ else if (n.query.isError && r) p = /* @__PURE__ */ (0, R.jsx)(G, {
tone: "neutral",
title: "任务状态",
children: Vce
});
else if (r?.status === "running") {
let e = pie(r);
- f = /* @__PURE__ */ (0, z.jsx)(lO, {
+ f = /* @__PURE__ */ (0, R.jsx)(lO, {
embedded: !0,
label: e,
value: r.completed_sources,
total: r.total_sources
});
- } else if (r?.status === "failed") p = /* @__PURE__ */ (0, z.jsx)(K, {
+ } else if (r?.status === "failed") p = /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "扫描失败",
children: r.error || "后台扫描失败"
});
- else if (r?.status === "complete" && r.applied) p = t.job?.status === "complete" ? d(t.job) : /* @__PURE__ */ (0, z.jsx)(K, {
+ else if (r?.status === "complete" && r.applied) p = t.job?.status === "complete" ? d(t.job) : /* @__PURE__ */ (0, R.jsx)(G, {
tone: "neutral",
title: "清理结果",
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (r?.status === "complete") {
let e = die(r);
- p = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)(Hce, { scan: r }),
- e ? /* @__PURE__ */ (0, z.jsx)(K, {
+ p = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsx)(Hce, { scan: r }),
+ e ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "neutral",
title: "清理内容",
children: mie(r)
}) : null,
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
- children: e ? /* @__PURE__ */ (0, z.jsx)(H, {
+ children: e ? /* @__PURE__ */ (0, R.jsx)(V, {
variant: "danger",
- ...q(a),
+ ...K(a),
onClick: () => l(r),
children: a ? "正在复核并清理…" : kO
- }) : /* @__PURE__ */ (0, z.jsx)("p", {
+ }) : /* @__PURE__ */ (0, R.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
})
})
] });
}
- return t.start.isError && !u && (p = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [p, /* @__PURE__ */ (0, z.jsx)(K, {
+ return t.start.isError && !u && (p = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [p, /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "清理失败",
- children: U(t.start.error)
- })] })), /* @__PURE__ */ (0, z.jsxs)("section", {
+ children: H(t.start.error)
+ })] })), /* @__PURE__ */ (0, R.jsxs)("section", {
id: "resource-sync",
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, z.jsx)(nO, {
+ /* @__PURE__ */ (0, R.jsx)(nO, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, z.jsxs)(iO, {
+ /* @__PURE__ */ (0, R.jsxs)(iO, {
layout: "split",
labelledBy: "resource-sync-box",
- footer: /* @__PURE__ */ (0, z.jsx)(H, {
+ footer: /* @__PURE__ */ (0, R.jsx)(V, {
"data-resource-scan": !0,
leadingIcon: o && !i ? Bce : zce,
- ...q(i),
+ ...K(i),
onClick: () => {
i || n.start.mutate();
},
children: c
}),
children: [
- /* @__PURE__ */ (0, z.jsx)(rO, {
+ /* @__PURE__ */ (0, R.jsx)(rO, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
}),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "max-w-190 text-body-2-regular leading-5 text-text-secondary",
children: "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。"
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"aria-live": "polite",
className: "mt-4 empty:hidden",
children: f
})
]
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: p
@@ -34051,12 +34051,12 @@ function MO(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
function NO({ section: e, label: t, icon: n, value: r, open: i }) {
- return /* @__PURE__ */ (0, z.jsx)("button", {
+ return /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
- className: bS({ interactive: !0 }),
+ className: xS({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, z.jsx)(xS, {
+ children: /* @__PURE__ */ (0, R.jsx)(SS, {
label: t,
icon: n,
figure: r.figure,
@@ -34064,55 +34064,55 @@ function NO({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var Wce = Ob("square-check-big"), Gce = Ob("sparkles"), Kce = Ob("file-stack"), qce = Ob("file-archive"), Jce = Ob("trash"), Yce = [
- uS,
- ux,
- Wb
+var Wce = kb("square-check-big"), Gce = kb("sparkles"), Kce = kb("file-stack"), qce = kb("file-archive"), Jce = kb("trash"), Yce = [
+ dS,
+ dx,
+ Gb
], Xce = () => {
- for (let e of Yce) X.invalidateQueries({
+ for (let e of Yce) Y.invalidateQueries({
queryKey: e,
exact: !0
});
};
function Zce({ toast: e, failure: t, open: n }) {
- let r = $n({
- queryKey: uS,
- queryFn: ({ signal: e }) => mS(e)
- }), i = $n({
- queryKey: ux,
- queryFn: ({ signal: e }) => dx(e)
- }), a = $n({
- queryKey: Wb,
- queryFn: ({ signal: e }) => Kb(e)
- }), o = $n({
+ let r = er({
queryKey: dS,
queryFn: ({ signal: e }) => hS(e)
- }), c = $n({
- queryKey: pS,
+ }), i = er({
+ queryKey: dx,
+ queryFn: ({ signal: e }) => fx(e)
+ }), a = er({
+ queryKey: Gb,
+ queryFn: ({ signal: e }) => qb(e)
+ }), o = er({
+ queryKey: fS,
queryFn: ({ signal: e }) => gS(e)
- }), l = $n({
- queryKey: Vb,
- queryFn: ({ signal: e }) => Hb(e)
+ }), c = er({
+ queryKey: mS,
+ queryFn: ({ signal: e }) => _S(e)
+ }), l = er({
+ queryKey: Hb,
+ queryFn: ({ signal: e }) => Ub(e)
}), u = (t) => e(t);
- return /* @__PURE__ */ (0, z.jsxs)(ta, { children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)(na, { children: [
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: Oie,
children: [
- /* @__PURE__ */ (0, z.jsx)(NO, {
+ /* @__PURE__ */ (0, R.jsx)(NO, {
section: "review",
label: "人工复核",
icon: Wce,
open: n,
value: MO(r, xie)
}),
- /* @__PURE__ */ (0, z.jsx)(NO, {
+ /* @__PURE__ */ (0, R.jsx)(NO, {
section: "quality",
label: "高清版",
icon: Gce,
open: n,
value: MO(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, z.jsx)(NO, {
+ /* @__PURE__ */ (0, R.jsx)(NO, {
section: "duplicates",
label: "重复文件",
icon: Kce,
@@ -34122,7 +34122,7 @@ function Zce({ toast: e, failure: t, open: n }) {
meta: `可回收 ${s(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, z.jsx)(NO, {
+ /* @__PURE__ */ (0, R.jsx)(NO, {
section: "ads",
label: "垃圾文件",
icon: qce,
@@ -34132,7 +34132,7 @@ function Zce({ toast: e, failure: t, open: n }) {
meta: Sie(e)
}))
}),
- /* @__PURE__ */ (0, z.jsx)(NO, {
+ /* @__PURE__ */ (0, R.jsx)(NO, {
section: "trash",
label: "回收站",
icon: Jce,
@@ -34144,55 +34144,55 @@ function Zce({ toast: e, failure: t, open: n }) {
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-4 max-cleanup-tight:gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, z.jsx)(dO, {
+ children: /* @__PURE__ */ (0, R.jsx)(dO, {
toast: u,
monitor: !0,
onComplete: Xce
})
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, z.jsx)(hce, {})
+ children: /* @__PURE__ */ (0, R.jsx)(hce, {})
}),
- /* @__PURE__ */ (0, z.jsx)(Dce, {
+ /* @__PURE__ */ (0, R.jsx)(Dce, {
toast: u,
failure: t
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(Sce, {}),
- /* @__PURE__ */ (0, z.jsx)(Rce, { toast: u }),
- iS(l.data) ? /* @__PURE__ */ (0, z.jsx)(Uce, { toast: e }) : null
+ /* @__PURE__ */ (0, R.jsx)(Sce, {}),
+ /* @__PURE__ */ (0, R.jsx)(Rce, { toast: u }),
+ aS(l.data) ? /* @__PURE__ */ (0, R.jsx)(Uce, { toast: e }) : null
] });
}
//#endregion
//#region src/react/components/collection-summary.tsx
function PO({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.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
max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4
dark:bg-background-primary-default`,
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 flex-col gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-regular text-text-secondary",
children: e
- }), /* @__PURE__ */ (0, z.jsx)("strong", {
+ }), /* @__PURE__ */ (0, R.jsx)("strong", {
className: "text-display-4-medium tabular-nums text-text-primary",
- children: r ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: r ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-skeleton": "count",
"aria-hidden": !0,
className: "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen"
}) : t
})]
- }), n ? /* @__PURE__ */ (0, z.jsx)("p", {
+ }), n ? /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-regular text-text-secondary",
children: n
}) : null]
@@ -34201,7 +34201,7 @@ function PO({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
//#endregion
//#region src/react/components/use-stuck.ts
function FO(e) {
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
let t = e.current;
if (!t) return;
let n = 0, r = () => {
@@ -34219,44 +34219,44 @@ function FO(e) {
//#endregion
//#region src/react/components/filter-glass.tsx
function Qce({ title: e, children: t }) {
- let n = (0, R.useRef)(null);
- return FO(n), /* @__PURE__ */ (0, z.jsxs)("div", {
+ let n = (0, L.useRef)(null);
+ return FO(n), /* @__PURE__ */ (0, R.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
className: "sticky top-topbar z-10 mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5",
- children: [/* @__PURE__ */ (0, z.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h3", {
className: "mr-1 text-body-medium",
children: e
}), t]
});
}
function IO({ 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 FO(d), /* @__PURE__ */ (0, z.jsxs)("div", {
+ let d = (0, L.useRef)(null);
+ return FO(d), /* @__PURE__ */ (0, R.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: Ii("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ className: Li("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
children: [
s,
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
role: "group",
"aria-label": t,
"data-filter-row": "top",
- className: Ii("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ className: Li("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, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
ref: u,
"data-filter-row": "bottom",
"aria-busy": l || void 0,
- className: Ii("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: Li("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
})
]
@@ -34264,18 +34264,18 @@ function IO({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
}
var $ce = "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 LO({ children: e, pressed: t, onPress: n, className: r, ...i }) {
- return /* @__PURE__ */ (0, z.jsx)("button", {
+ return /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: Ii($ce, r),
+ className: Li($ce, r),
onClick: n,
children: e
});
}
var ele = "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 RO({ children: e, onPress: t, busy: n = !1 }) {
- return /* @__PURE__ */ (0, z.jsx)("button", {
+ return /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-glass-pill": "",
className: ele,
@@ -34289,42 +34289,42 @@ function RO({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var tle = Ob("play"), nle = Ob("file-stack"), rle = Zi({
+var tle = kb("play"), nle = kb("file-stack"), rle = Qi({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
}), zO = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", BO = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", VO = "font-mono text-caption-1-regular leading-5 text-text-secondary", HO = () => {
- X.invalidateQueries({
- queryKey: Wb,
+ Y.invalidateQueries({
+ queryKey: Gb,
exact: !0
- }), X.invalidateQueries({
- queryKey: pS,
+ }), Y.invalidateQueries({
+ queryKey: mS,
exact: !0
});
};
function ile(e) {
- return e.identical ? /* @__PURE__ */ (0, z.jsx)("span", {
+ return e.identical ? /* @__PURE__ */ (0, R.jsx)("span", {
className: `${BO} text-(--keep)`,
children: "sha1 一致"
- }) : /* @__PURE__ */ (0, z.jsx)("span", {
+ }) : /* @__PURE__ */ (0, R.jsx)("span", {
className: `${BO} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
function ale({ file: t, openItem: n }) {
let r = () => n(t.id);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
children: [
- /* @__PURE__ */ (0, z.jsxs)("button", {
+ /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
onClick: r,
"aria-label": `预览 ${t.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, z.jsx)(tle, {
+ children: [/* @__PURE__ */ (0, R.jsx)(tle, {
"aria-hidden": !0,
className: "size-6"
- }), /* @__PURE__ */ (0, z.jsx)("img", {
+ }), /* @__PURE__ */ (0, R.jsx)("img", {
src: `/thumb?id=${t.id}&c=4`,
alt: "",
loading: "lazy",
@@ -34332,9 +34332,9 @@ function ale({ file: t, openItem: n }) {
className: "absolute inset-0 size-full object-contain"
})]
}),
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1",
- children: [/* @__PURE__ */ (0, z.jsx)("button", {
+ children: [/* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
onClick: r,
title: t.name,
@@ -34342,33 +34342,33 @@ function ale({ file: t, openItem: n }) {
"data-middle-truncate-within": !0,
className: "min-w-0 shrink cursor-pointer truncate text-left text-body-regular hover:text-text-secondary",
children: t.name
- }), t.is_largest || t.is_longest ? /* @__PURE__ */ (0, z.jsxs)("span", {
+ }), t.is_largest || t.is_longest ? /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex flex-none gap-1",
- children: [t.is_largest ? /* @__PURE__ */ (0, z.jsx)("i", {
+ children: [t.is_largest ? /* @__PURE__ */ (0, R.jsx)("i", {
className: `${zO} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
- }) : null, t.is_longest ? /* @__PURE__ */ (0, z.jsx)("i", {
+ }) : null, t.is_longest ? /* @__PURE__ */ (0, R.jsx)("i", {
className: `${zO} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
className: `${VO} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, z.jsx)(Iy, { mark: _[t.location] || "database" }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)(Ly, { mark: _[t.location] || "database" }), /* @__PURE__ */ (0, R.jsx)("span", {
className: "whitespace-nowrap",
children: e[t.location] || t.location || t.drive
})]
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: VO,
children: s(t.size || 0)
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: VO,
children: o(t.duration)
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-middle-truncate": !0,
title: t.path ?? "",
className: `${VO} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
@@ -34378,18 +34378,18 @@ function ale({ file: t, openItem: n }) {
});
}
function ole({ openItem: t, toast: n, failure: r }) {
- let i = $n({
- queryKey: Wb,
- queryFn: ({ signal: e }) => Kb(e)
- }), a = $n({
- queryKey: Vb,
- queryFn: ({ signal: e }) => Hb(e)
- }), [o, c] = (0, R.useState)(""), l = er({
- mutationFn: (e) => Yb(e, "dispose"),
+ let i = er({
+ queryKey: Gb,
+ queryFn: ({ signal: e }) => qb(e)
+ }), a = er({
+ queryKey: Hb,
+ queryFn: ({ signal: e }) => Ub(e)
+ }), [o, c] = (0, L.useState)(""), l = tr({
+ mutationFn: (e) => Xb(e, "dispose"),
onSuccess: (e, t) => {
HO(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
try {
- await Yb(t, "restore");
+ await Xb(t, "restore");
} catch (e) {
r("撤销移入回收站", e);
} finally {
@@ -34399,12 +34399,12 @@ function ole({ openItem: t, toast: n, failure: r }) {
},
onSettled: () => c("")
}), u = i.data;
- if (!u) return /* @__PURE__ */ (0, z.jsx)("div", {
+ if (!u) return /* @__PURE__ */ (0, R.jsx)("div", {
className: "mx-auto w-full max-w-board",
- children: /* @__PURE__ */ (0, z.jsx)(K, {
+ children: /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "重复文件读取失败",
- children: i.error ? U(i.error) : "未取得重复文件列表,请刷新页面重试。"
+ children: i.error ? H(i.error) : "未取得重复文件列表,请刷新页面重试。"
})
});
let d = u.groups ?? [], f = Xne(a.data), p = ({ groups: e, keep: t, key: n }) => {
@@ -34412,23 +34412,23 @@ function ole({ openItem: t, toast: n, failure: r }) {
let r = tre(e, t);
r.length && b({
title: "移入回收站",
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${qb[t] ?? qb.largest}。文件共 ${s(nre(e, r))},记录可从回收站还原。`,
+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${Jb[t] ?? Jb.largest}。文件共 ${s(nre(e, r))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (c(n), l.mutateAsync(r))
});
- }, m = (e) => q(o === e && l.isPending);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ }, m = (e) => K(o === e && l.isPending);
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, z.jsx)(PO, {
+ /* @__PURE__ */ (0, R.jsx)(PO, {
label: "重复内容",
figure: `${Number(u.total || 0).toLocaleString()} 组`,
detail: `${u.files} 个文件 · 可回收 ${s(u.reclaimable)}`
}),
- d.length ? /* @__PURE__ */ (0, z.jsxs)(Qce, {
+ d.length ? /* @__PURE__ */ (0, R.jsxs)(Qce, {
title: "批量保留",
children: [
- /* @__PURE__ */ (0, z.jsx)(RO, {
+ /* @__PURE__ */ (0, R.jsx)(RO, {
busy: o === "all:largest",
onPress: () => p({
groups: d,
@@ -34437,7 +34437,7 @@ function ole({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最大"
}),
- /* @__PURE__ */ (0, z.jsx)(RO, {
+ /* @__PURE__ */ (0, R.jsx)(RO, {
busy: o === "all:longest",
onPress: () => p({
groups: d,
@@ -34446,7 +34446,7 @@ function ole({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最长"
}),
- ere(d, f).map((t) => /* @__PURE__ */ (0, z.jsx)(RO, {
+ ere(d, f).map((t) => /* @__PURE__ */ (0, R.jsx)(RO, {
busy: o === `all:${t}`,
onPress: () => p({
groups: d,
@@ -34457,39 +34457,39 @@ function ole({ openItem: t, toast: n, failure: r }) {
}, t))
]
}) : null,
- l.isError ? /* @__PURE__ */ (0, z.jsx)("div", {
+ l.isError ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "mb-5",
- children: /* @__PURE__ */ (0, z.jsx)(K, {
+ children: /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "移入回收站失败",
- children: U(l.error)
+ children: H(l.error)
})
}) : null,
d.length ? d.map((n, r) => {
let i = [n], a = (e) => `${r}:${e}`;
- return /* @__PURE__ */ (0, z.jsxs)("section", {
+ return /* @__PURE__ */ (0, R.jsxs)("section", {
"aria-label": n.code,
className: rle,
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.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: [
- /* @__PURE__ */ (0, z.jsx)("b", {
+ /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-title-2-medium text-text-primary",
children: n.code
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${n.count} 个 · 可回收 ${s(n.reclaimable)}`
}),
ile(n),
- n.cross_drive ? /* @__PURE__ */ (0, z.jsx)("span", {
+ n.cross_drive ? /* @__PURE__ */ (0, R.jsx)("span", {
className: `${BO} text-text-secondary`,
children: `跨盘 ${n.drives.join(" ")}`
}) : null,
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
className: "ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full",
children: [
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
...m(a("largest")),
@@ -34500,7 +34500,7 @@ function ole({ openItem: t, toast: n, failure: r }) {
}),
children: "留最大"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
...m(a("longest")),
@@ -34511,7 +34511,7 @@ function ole({ openItem: t, toast: n, failure: r }) {
}),
children: "留最长"
}),
- Jb(n.files, f).map((t) => /* @__PURE__ */ (0, z.jsx)(H, {
+ Yb(n.files, f).map((t) => /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
...m(a(t)),
@@ -34522,7 +34522,7 @@ function ole({ openItem: t, toast: n, failure: r }) {
}),
children: `留 ${e[t] || t}`
}, t)),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "danger",
size: "small",
...m(a("all")),
@@ -34536,12 +34536,12 @@ function ole({ openItem: t, toast: n, failure: r }) {
]
})
]
- }), /* @__PURE__ */ (0, z.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, z.jsx)(ale, {
+ }), /* @__PURE__ */ (0, R.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, R.jsx)(ale, {
file: e,
openItem: t
}, e.id)) })]
}, `${n.code}-${r}`);
- }) : /* @__PURE__ */ (0, z.jsx)($i, {
+ }) : /* @__PURE__ */ (0, R.jsx)(ea, {
icon: nle,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
@@ -34576,7 +34576,7 @@ function sle(e, t, n) {
};
}
function UO(e, t, n, r, { axis: i = "x" } = {}) {
- let a = (0, R.useRef)(null), o = (0, R.useCallback)((r, o) => {
+ let a = (0, L.useRef)(null), o = (0, L.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 ? sle(u, l, i) : null;
@@ -34591,11 +34591,11 @@ function UO(e, t, n, r, { axis: i = "x" } = {}) {
t,
n,
i
- ]), s = (0, R.useRef)(!1);
- return (0, R.useLayoutEffect)(() => {
+ ]), s = (0, L.useRef)(!1);
+ return (0, L.useLayoutEffect)(() => {
let t = e.current;
t && !s.current && (t.hidden = !0), o(null, s.current), s.current = !0;
- }, [o, r]), (0, R.useEffect)(() => {
+ }, [o, r]), (0, L.useEffect)(() => {
let t = e.current?.parentElement, n = 0, r = () => {
n ||= requestAnimationFrame(() => {
n = 0, o(null, !1);
@@ -34608,13 +34608,13 @@ function UO(e, t, n, r, { axis: i = "x" } = {}) {
cancelAnimationFrame(n), t?.removeEventListener("scroll", r, { capture: !0 }), removeEventListener("resize", r);
};
}, [e, o]), {
- hover: (0, R.useCallback)((e) => {
+ hover: (0, L.useCallback)((e) => {
e.pointerType !== "touch" && o(e.currentTarget, !0);
}, [o]),
- leave: (0, R.useCallback)((e) => {
+ leave: (0, L.useCallback)((e) => {
e.pointerType !== "touch" && o(null, !0);
}, [o]),
- sync: (0, R.useCallback)(() => {
+ sync: (0, L.useCallback)(() => {
e.current?.getAnimations().forEach((e) => e.cancel()), o(null, !1);
}, [e, o])
};
@@ -34623,31 +34623,31 @@ function UO(e, t, n, r, { axis: i = "x" } = {}) {
//#region src/react/components/segmented.tsx
function WO(e) {
let t = QD("selection");
- return /* @__PURE__ */ (0, z.jsx)(oy, {
+ return /* @__PURE__ */ (0, R.jsx)(sy, {
...e,
ref: t
});
}
function GO(e) {
let t = QD("selection");
- return /* @__PURE__ */ (0, z.jsx)(D_, {
+ return /* @__PURE__ */ (0, R.jsx)(O_, {
...e,
ref: t
});
}
-var KO = "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", qO = "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", cle = "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", JO = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", YO = "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)", lle = (e) => e === "videos", XO = () => /* @__PURE__ */ (0, z.jsx)("span", {
+var KO = "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", qO = "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", cle = "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", JO = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", YO = "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)", lle = (e) => e === "videos", XO = () => /* @__PURE__ */ (0, R.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
function ule(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = lle(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), _ = UO(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = UO(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
- return (0, R.useEffect)(() => {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = lle(t), u = (0, L.useRef)(null), d = (0, L.useRef)(null), f = (0, L.useRef)(null), p = (0, L.useRef)(null), m = (0, L.useRef)(null), h = (0, L.useRef)(null), g = (0, L.useRef)(null), _ = UO(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = UO(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
+ return (0, L.useEffect)(() => {
c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);
- }, [c]), /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(ZO, {
+ }, [c]), /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(ZO, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, z.jsx)(IO, {
+ }), /* @__PURE__ */ (0, R.jsx)(IO, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -34658,32 +34658,32 @@ function ule(e) {
bottomClassName: "min-h-12",
bottomRef: g,
busy: e.busy,
- panes: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ panes: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("span", {
ref: u,
"data-view-glide": "",
"aria-hidden": "true"
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
ref: d,
"data-view-glide": "round",
"aria-hidden": "true"
})] }),
- top: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [n ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(dle, {
+ top: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [n ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(dle, {
keys: n,
view: t,
row: p,
glide: v,
onView: s.setView
- }), l ? /* @__PURE__ */ (0, z.jsx)(XO, {}) : null] }) : null, /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), l ? /* @__PURE__ */ (0, R.jsx)(XO, {}) : null] }) : null, /* @__PURE__ */ (0, R.jsxs)("div", {
ref: m,
"data-entity-scroll": "",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
ref: f,
role: "group",
"aria-label": "观看状态",
"data-entity-states": "",
hidden: !l,
onPointerLeave: _.leave,
- children: [i.map((e) => /* @__PURE__ */ (0, z.jsx)("button", {
+ children: [i.map((e) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-entity-state": e.k,
"data-entity-press": "",
@@ -34693,23 +34693,23 @@ function ule(e) {
r !== e.k && s.setState(e.k);
},
children: e.label
- }, e.k)), /* @__PURE__ */ (0, z.jsx)(XO, {})]
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }, e.k)), /* @__PURE__ */ (0, R.jsx)(XO, {})]
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
ref: h,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, z.jsxs)(LO, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, R.jsxs)(LO, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
onPress: () => s.toggleTag(e.k),
- children: [e.label, /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [e.label, /* @__PURE__ */ (0, R.jsx)("span", {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
}, e.k)) : null
})]
})] }),
- bottom: /* @__PURE__ */ (0, z.jsx)(fle, { ...e })
+ bottom: /* @__PURE__ */ (0, R.jsx)(fle, { ...e })
})] });
}
function dle({ keys: e, view: t, row: n, glide: r, onView: i }) {
@@ -34732,7 +34732,7 @@ function dle({ keys: e, view: t, row: n, glide: r, onView: i }) {
count: e.photos.count,
symbol: "pics",
kind: "image"
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
ref: n,
role: "group",
"aria-label": e.label,
@@ -34740,7 +34740,7 @@ function dle({ keys: e, view: t, row: n, glide: r, onView: i }) {
onPointerLeave: r.leave,
children: a.map(({ value: e, text: n, count: a, symbol: o, kind: s }) => {
let c = `${n} ${Math.max(0, a || 0).toLocaleString()}`;
- return /* @__PURE__ */ (0, z.jsx)("button", {
+ return /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-media-view": e,
"data-media-icon": s,
@@ -34755,18 +34755,18 @@ function dle({ keys: e, view: t, row: n, glide: r, onView: i }) {
});
}
function ZO({ items: e, hidden: t, actions: n }) {
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-entity-combo": "",
hidden: t,
- children: e.length ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [e.map((e) => /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: e.length ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [e.map((e) => /* @__PURE__ */ (0, R.jsxs)("span", {
"data-combo-chip": "",
- children: [e.label, /* @__PURE__ */ (0, z.jsx)("button", {
+ children: [e.label, /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"aria-label": `撤掉 ${e.label}`,
onClick: () => e.kind === "untag" ? n.toggleTag(e.key) : n.clearFilter(e.key),
children: "✕"
})]
- }, `${e.kind}:${e.key}`)), /* @__PURE__ */ (0, z.jsx)("button", {
+ }, `${e.kind}:${e.key}`)), /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-combo-clear": "",
onClick: n.clearAll,
@@ -34776,25 +34776,25 @@ function ZO({ items: e, hidden: t, actions: n }) {
}
function fle(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- t === "photos" && a?.back ? /* @__PURE__ */ (0, z.jsxs)("button", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ t === "photos" && a?.back ? /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-photo-back": "",
onClick: o.photoBack,
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: l("chevron-left") }
- }), /* @__PURE__ */ (0, z.jsx)("span", { children: "全部照片" })]
+ }), /* @__PURE__ */ (0, R.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, z.jsx)(ple, {
+ /* @__PURE__ */ (0, R.jsx)(ple, {
text: n,
busy: r
}),
- t === "videos" && i ? /* @__PURE__ */ (0, z.jsx)(mle, {
+ t === "videos" && i ? /* @__PURE__ */ (0, R.jsx)(mle, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, z.jsx)(hle, {
+ t === "photos" && a ? /* @__PURE__ */ (0, R.jsx)(hle, {
head: a,
actions: o,
helpers: s
@@ -34802,9 +34802,9 @@ function fle(e) {
] });
}
function ple({ text: e, busy: t }) {
- return /* @__PURE__ */ (0, z.jsx)("h3", {
+ return /* @__PURE__ */ (0, R.jsx)("h3", {
"data-entity-readout": "",
- children: t ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: t ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-skeleton": "count",
"aria-hidden": !0,
className: "relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"
@@ -34812,7 +34812,7 @@ function ple({ text: e, busy: t }) {
});
}
function QO({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, z.jsx)(D_, {
+ return /* @__PURE__ */ (0, R.jsx)(O_, {
name: e,
"aria-label": t,
orientation: "horizontal",
@@ -34821,23 +34821,23 @@ function QO({ name: e, label: t, value: n, options: r, onChange: i }) {
"data-entity-layout": "",
className: JO,
children: r.map(([e, t, n]) => {
- let r = Ob(n);
- return /* @__PURE__ */ (0, z.jsx)(O_, {
+ let r = kb(n);
+ return /* @__PURE__ */ (0, R.jsx)(k_, {
value: e,
"aria-label": t,
"data-glass-segment": "",
className: YO,
- children: /* @__PURE__ */ (0, z.jsx)("span", {
+ children: /* @__PURE__ */ (0, R.jsx)("span", {
title: t,
className: "contents",
- children: /* @__PURE__ */ (0, z.jsx)(r, { className: "size-4" })
+ children: /* @__PURE__ */ (0, R.jsx)(r, { className: "size-4" })
})
}, e);
})
});
}
function $O({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, z.jsx)("button", {
+ return /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-entity-batch": "",
title: "换一批",
@@ -34847,21 +34847,21 @@ function $O({ onPress: e, busy: t = !1 }) {
onClick: () => {
t || e();
},
- dangerouslySetInnerHTML: { __html: t ? ie("正在换一批") : l("shuffle") }
+ dangerouslySetInnerHTML: { __html: t ? ae("正在换一批") : l("shuffle") }
});
}
function mle({ head: e, actions: t }) {
- return /* @__PURE__ */ (0, z.jsxs)("span", {
+ return /* @__PURE__ */ (0, R.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, z.jsx)($O, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, z.jsx)(QO, {
+ /* @__PURE__ */ (0, R.jsx)($O, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, R.jsx)(QO, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, z.jsx)(ek, {
+ /* @__PURE__ */ (0, R.jsx)(ek, {
sorts: e.sorts,
onSort: t.setSort
})
@@ -34869,39 +34869,39 @@ function mle({ head: e, actions: t }) {
});
}
function ek({ sorts: e, onSort: t }) {
- return /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: e.map((e) => {
- let n = Ob(e.dir === "asc" ? "arrow-up" : "arrow-down");
- return /* @__PURE__ */ (0, z.jsxs)("button", {
+ return /* @__PURE__ */ (0, R.jsx)(R.Fragment, { children: e.map((e) => {
+ let n = kb(e.dir === "asc" ? "arrow-up" : "arrow-down");
+ return /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
"data-entity-press": "",
"aria-pressed": e.pressed,
"aria-label": e.ariaLabel || void 0,
onClick: () => t(e.key),
- children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, z.jsx)(n, { className: "size-3.5" }) : null]
+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, R.jsx)(n, { className: "size-3.5" }) : null]
}, e.key);
}) });
}
function hle({ 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)(() => {
+ let [r, i] = (0, L.useState)(!1), a = (0, L.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
+ return (0, L.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
- }, [n, o]), /* @__PURE__ */ (0, z.jsxs)("span", {
+ }, [n, o]), /* @__PURE__ */ (0, R.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, z.jsx)($O, {
+ e.shuffle ? /* @__PURE__ */ (0, R.jsx)($O, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, z.jsx)(QO, {
+ /* @__PURE__ */ (0, R.jsx)(QO, {
label: "图片布局",
value: e.layout,
options: e.layouts,
onChange: t.setPhotoLayout
}),
- o ? /* @__PURE__ */ (0, z.jsx)("span", {
+ o ? /* @__PURE__ */ (0, R.jsx)("span", {
ref: a,
"data-entity-srctools": "",
dangerouslySetInnerHTML: { __html: o }
@@ -34914,31 +34914,31 @@ function hle({ head: e, actions: t, helpers: n }) {
var tk = "";
function gle(e) {
let t = !e.tiers, n = Cle(e.comboHost);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, ze.createPortal)(/* @__PURE__ */ (0, z.jsx)(ZO, {
+ n ? (0, Be.createPortal)(/* @__PURE__ */ (0, R.jsx)(ZO, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, z.jsx)(yle, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, z.jsx)(_le, { ...e })
+ /* @__PURE__ */ (0, R.jsx)(yle, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, R.jsx)(_le, { ...e })
]
});
}
function _le(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 = UO(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
- (0, R.useEffect)(() => {
+ let { actions: t, helpers: n } = e, r = (0, L.useRef)(null), i = (0, L.useRef)(null), a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = (0, L.useRef)(null), c = UO(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+ (0, L.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
let l = !e.tiers, u = rk(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
- return (0, R.useLayoutEffect)(() => {
+ return (0, L.useLayoutEffect)(() => {
M(o.current, "tagbar");
- }, [u]), /* @__PURE__ */ (0, z.jsx)(IO, {
+ }, [u]), /* @__PURE__ */ (0, R.jsx)(IO, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -34950,21 +34950,21 @@ function _le(e) {
bottomClassName: e.trash ? "hidden" : "min-h-12",
bottomRef: s,
busy: !e.count || e.refreshing,
- panes: /* @__PURE__ */ (0, z.jsx)("span", {
+ panes: /* @__PURE__ */ (0, R.jsx)("span", {
ref: r,
"data-view-glide": "",
"aria-hidden": "true"
}),
- top: /* @__PURE__ */ (0, z.jsxs)("div", {
+ top: /* @__PURE__ */ (0, R.jsxs)("div", {
ref: a,
"data-catalog-scroll": "",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
ref: i,
role: "group",
"aria-label": "视图",
"data-catalog-views": "",
onPointerLeave: c.leave,
- children: [e.views.map((n) => /* @__PURE__ */ (0, z.jsx)("a", {
+ children: [e.views.map((n) => /* @__PURE__ */ (0, R.jsx)("a", {
href: n.href,
"data-catalog-view": n.k,
"data-entity-press": "",
@@ -34974,29 +34974,29 @@ function _le(e) {
e.preventDefault(), t.setView(n.k);
},
children: n.label
- }, n.k)), /* @__PURE__ */ (0, z.jsx)("span", {
+ }, n.k)), /* @__PURE__ */ (0, R.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
})]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || l ? /* @__PURE__ */ (0, z.jsx)(nk, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, z.jsx)(vle, {
+ children: [e.empty || l ? /* @__PURE__ */ (0, R.jsx)(nk, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, R.jsx)(vle, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, z.jsx)(xle, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, R.jsx)(xle, { ...e })
});
}
function vle({ tag: e, onPress: t }) {
- return /* @__PURE__ */ (0, z.jsxs)(LO, {
+ return /* @__PURE__ */ (0, R.jsxs)(LO, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
onPress: () => t(e.k),
- children: [e.label, e.n == null ? null : /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [e.label, e.n == null ? null : /* @__PURE__ */ (0, R.jsx)("span", {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
@@ -35007,52 +35007,52 @@ function yle(e) {
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 = rk(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = rk(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)(() => {
+ }, i = e.empty || !e.tiers, a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = (0, L.useCallback)((e) => () => t.moreTops(e), [t]), c = rk(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = rk(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, L.useEffect)(() => {
n.wireDrag(a.current), n.wireDrag(o.current);
}, [
n,
u,
d
- ]), /* @__PURE__ */ (0, z.jsxs)("div", {
+ ]), /* @__PURE__ */ (0, R.jsxs)("div", {
"data-catalog-tiers": "",
hidden: !u && !d,
- children: [u ? /* @__PURE__ */ (0, z.jsx)("div", {
+ children: [u ? /* @__PURE__ */ (0, R.jsx)("div", {
ref: a,
"data-catalog-tier": "performers",
- children: i ? /* @__PURE__ */ (0, z.jsx)(nk, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, R.jsx)(nk, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
"data-entity-name": e.name,
onClick: () => t.openEntity("performer", e.name),
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-tier-ring": "",
dangerouslySetInnerHTML: { __html: e.ringHtml }
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-tier-name": "",
children: e.name
})]
}, e.name))
- }) : null, d ? /* @__PURE__ */ (0, z.jsx)("div", {
+ }) : null, d ? /* @__PURE__ */ (0, R.jsx)("div", {
ref: o,
"data-catalog-tier": "studios",
- children: i ? /* @__PURE__ */ (0, z.jsx)(nk, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, R.jsx)(nk, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, R.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, z.jsx)(ble, { studio: e }), e.name]
+ children: [/* @__PURE__ */ (0, R.jsx)(ble, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
function ble({ studio: e }) {
- let [t, n] = (0, R.useState)(!1);
- return /* @__PURE__ */ (0, z.jsx)("span", {
+ let [t, n] = (0, L.useState)(!1);
+ return /* @__PURE__ */ (0, R.jsx)("span", {
"data-tier-mark": "",
- children: e.logo && !t ? /* @__PURE__ */ (0, z.jsx)("img", {
+ children: e.logo && !t ? /* @__PURE__ */ (0, R.jsx)("img", {
src: e.logo,
alt: "",
onError: () => n(!0),
@@ -35064,39 +35064,39 @@ function ble({ studio: e }) {
}
function nk({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
- return e === "tag" ? /* @__PURE__ */ (0, z.jsx)("span", {
+ return e === "tag" ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-catalog-placeholder": "tag",
"aria-hidden": "true",
- children: t.map((e) => /* @__PURE__ */ (0, z.jsx)("span", {}, e))
- }) : /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: t.map((t) => e === "performer" ? /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: t.map((e) => /* @__PURE__ */ (0, R.jsx)("span", {}, e))
+ }) : /* @__PURE__ */ (0, R.jsx)(R.Fragment, { children: t.map((t) => e === "performer" ? /* @__PURE__ */ (0, R.jsxs)("span", {
"data-catalog-placeholder": "performer",
"aria-hidden": "true",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {}), /* @__PURE__ */ (0, z.jsx)("span", { children: "\xA0" })]
- }, t) : /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {}), /* @__PURE__ */ (0, R.jsx)("span", { children: "\xA0" })]
+ }, t) : /* @__PURE__ */ (0, R.jsxs)("span", {
"data-catalog-placeholder": "studio",
"aria-hidden": "true",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {}), /* @__PURE__ */ (0, z.jsx)("span", { children: "\xA0" })]
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {}), /* @__PURE__ */ (0, R.jsx)("span", { children: "\xA0" })]
}, t)) });
}
function xle({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
- let [a, o] = (0, R.useState)(!1);
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(Sle, { count: e }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ let [a, o] = (0, L.useState)(!1);
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(Sle, { count: e }), /* @__PURE__ */ (0, R.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, z.jsx)($O, {
+ /* @__PURE__ */ (0, R.jsx)($O, {
onPress: () => {
o(!0), i.reshuffle().finally(() => o(!1));
},
busy: a || t
}),
- n ? /* @__PURE__ */ (0, z.jsx)(QO, {
+ n ? /* @__PURE__ */ (0, R.jsx)(QO, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, z.jsx)(ek, {
+ /* @__PURE__ */ (0, R.jsx)(ek, {
sorts: r,
onSort: i.setSort
})
@@ -35104,22 +35104,22 @@ function xle({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
})] });
}
function Sle({ count: e }) {
- let t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown}` : "";
- return (0, R.useLayoutEffect)(() => {
+ let t = (0, L.useRef)(null), n = (0, L.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown}` : "";
+ return (0, L.useLayoutEffect)(() => {
if (!e) {
w(n.current);
return;
}
let i = t.current;
i && (tk && i.dataset.popCount === void 0 && (i.dataset.popCount = tk), tk = r, N(i, r));
- }, [e, r]), e ? /* @__PURE__ */ (0, z.jsx)("span", {
+ }, [e, r]), e ? /* @__PURE__ */ (0, R.jsx)("span", {
ref: t,
"data-catalog-readout": "",
"data-count-readout": "",
role: "status"
- }, "readout") : /* @__PURE__ */ (0, z.jsx)("span", {
+ }, "readout") : /* @__PURE__ */ (0, R.jsx)("span", {
"data-catalog-readout": "",
- children: /* @__PURE__ */ (0, z.jsx)("span", {
+ children: /* @__PURE__ */ (0, R.jsx)("span", {
ref: n,
"data-skeleton": "count",
"aria-hidden": !0,
@@ -35128,8 +35128,8 @@ function Sle({ count: e }) {
}, "skeleton");
}
function Cle(e) {
- let [t, n] = (0, R.useState)(null);
- return (0, R.useLayoutEffect)(() => {
+ let [t, n] = (0, L.useState)(null);
+ return (0, L.useLayoutEffect)(() => {
if (!e) return;
let t = e.ownerDocument.createElement("div");
return t.className = "peach-react", e.replaceChildren(t), n(t), () => {
@@ -35143,9 +35143,9 @@ function rk(e, t, n, r, i) {
limit: r,
fetched: [],
drained: !i
- }), [o, s] = (0, R.useState)(a), c = o.key === n ? o : a();
+ }), [o, s] = (0, L.useState)(a), c = o.key === n ? o : a();
c !== o && s(c);
- let l = (0, R.useMemo)(() => c.fetched.length ? t.concat(c.fetched) : t, [t, c.fetched]), u = (0, R.useRef)(!1), d = (0, R.useRef)({
+ let l = (0, L.useMemo)(() => c.fetched.length ? t.concat(c.fetched) : t, [t, c.fetched]), u = (0, L.useRef)(!1), d = (0, L.useRef)({
current: c,
all: l,
more: i
@@ -35155,7 +35155,7 @@ function rk(e, t, n, r, i) {
all: l,
more: i
};
- let f = (0, R.useCallback)(() => {
+ let f = (0, L.useCallback)(() => {
let t = e.current, { current: n, all: r, more: i } = d.current;
if (!(!t || !t.clientWidth || t.scrollLeft + t.clientWidth < t.scrollWidth - 320)) {
if (n.limit < r.length) {
@@ -35176,7 +35176,7 @@ function rk(e, t, n, r, i) {
}));
}
}, [e]);
- return (0, R.useLayoutEffect)(f), (0, R.useEffect)(() => {
+ return (0, L.useLayoutEffect)(f), (0, L.useEffect)(() => {
let t = e.current;
return t?.addEventListener("scroll", f, { passive: !0 }), () => t?.removeEventListener("scroll", f);
}), l.slice(0, c.limit);
@@ -35184,7 +35184,7 @@ function rk(e, t, n, r, i) {
//#endregion
//#region src/react/components/board-tabs.tsx
function ik({ value: e }) {
- return /* @__PURE__ */ (0, z.jsx)("span", {
+ return /* @__PURE__ */ (0, R.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()
@@ -35192,8 +35192,8 @@ function ik({ value: e }) {
}
var wle = "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 ak({ tabs: e, value: t, label: n, onChange: r }) {
- let i = (0, R.useRef)(null), a = (0, R.useRef)(null);
- return (0, R.useLayoutEffect)(() => {
+ let i = (0, L.useRef)(null), a = (0, L.useRef)(null);
+ return (0, L.useLayoutEffect)(() => {
let e = i.current;
if (!e) return;
let t = () => {
@@ -35205,7 +35205,7 @@ function ak({ tabs: e, value: t, label: n, onChange: r }) {
return r.observe(e), () => {
cancelAnimationFrame(n), r.disconnect();
};
- }, [t]), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }, [t]), /* @__PURE__ */ (0, R.jsxs)("div", {
ref: i,
role: "tablist",
"aria-label": n,
@@ -35219,8 +35219,8 @@ function ak({ 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 ? Ob(e.symbol) : null, i = e.value === t;
- return /* @__PURE__ */ (0, z.jsxs)("button", {
+ let n = e.symbol ? kb(e.symbol) : null, i = e.value === t;
+ return /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
role: "tab",
"data-tab": e.value,
@@ -35230,9 +35230,9 @@ function ak({ tabs: e, value: t, label: n, onChange: r }) {
onClick: () => {
i || r(e.value);
},
- children: [n ? /* @__PURE__ */ (0, z.jsx)(n, { className: "mr-1.5 size-4" }) : null, e.label]
+ children: [n ? /* @__PURE__ */ (0, R.jsx)(n, { className: "mr-1.5 size-4" }) : null, e.label]
}, e.value);
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
ref: a,
"aria-hidden": !0,
"data-tab-indicator": "",
@@ -35336,64 +35336,64 @@ var Dle = () => ({
groups: e.groups,
tabs: e.tabs,
kind: e.kind
-}), uk = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), dk = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
+}), uk = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), dk = ({ name: e }) => /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
});
function fk(e) {
- let t = (0, R.useRef)(e);
+ let t = (0, L.useRef)(e);
t.current = e;
- let n = (0, R.useRef)(null);
+ let n = (0, L.useRef)(null);
n.current ??= Dle();
- let r = n.current, i = (0, R.useRef)(null), [, a] = (0, R.useReducer)((e) => e + 1, 0), o = (0, R.useRef)(null);
+ let r = n.current, i = (0, L.useRef)(null), [, a] = (0, L.useReducer)((e) => e + 1, 0), o = (0, L.useRef)(null);
o.current ??= pk(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
- (0, R.useLayoutEffect)(() => {
+ (0, L.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus();
e.addEventListener("input", n), e.addEventListener("compositionend", n), e.addEventListener("compositionstart", i), e.addEventListener("keydown", a), e.addEventListener("focus", o);
let c = { close: s.close };
return t.current.expose(c), () => {
e.removeEventListener("input", n), e.removeEventListener("compositionend", n), e.removeEventListener("compositionstart", i), e.removeEventListener("keydown", a), e.removeEventListener("focus", o), clearTimeout(r.timer), t.current.expose(null);
};
- }, [s, r]), (0, R.useLayoutEffect)(() => {
+ }, [s, r]), (0, L.useLayoutEffect)(() => {
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 = lk(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, z.jsx)(gk, {
+ let c = lk(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, R.jsx)(gk, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
onPick: s.pick,
onPeek: s.peek,
onRemove: s.remove
- }, `${t.type}:${t.value}:${t.index}`), d = (e) => /* @__PURE__ */ (0, z.jsxs)("section", {
+ }, `${t.type}:${t.value}:${t.index}`), d = (e) => /* @__PURE__ */ (0, R.jsxs)("section", {
"data-search-group": "",
"data-kind": e.kind,
- children: [/* @__PURE__ */ (0, z.jsx)("h3", { children: e.label }), e.kind ? /* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h3", { children: e.label }), e.kind ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-search-items": "",
children: e.options.map(u)
}) : e.options.map(u)]
}, e.kind ?? e.label);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
ref: i,
"data-search-root": "",
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, z.jsx)(mk, {
+ c.tabs ? /* @__PURE__ */ (0, R.jsx)(mk, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
wire: e.helpers.wireScroller
}) : null,
c.recent ? d(c.recent) : null,
- ((e, t) => e.length || t.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ ((e, t) => e.length || t.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
"data-search-results": "",
"data-split": e.length && t.length ? "" : void 0,
- children: [e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ children: [e.length ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-search-col": "",
children: e.map(d)
- }) : null, t.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ }) : null, t.length ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-search-col": "",
children: t.map(d)
}) : null]
@@ -35411,11 +35411,11 @@ function pk(e, t, n, r) {
return;
}
try {
- let e = await W(`/api/search-history?limit=${n}`);
+ let e = await U(`/api/search-history?limit=${n}`);
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- !t || !e().historyLimit || (s([t, ...o().filter((e) => ck(e) !== ck(t))]), G("/api/search-history", { query: t }).catch(() => null));
+ !t || !e().historyLimit || (s([t, ...o().filter((e) => ck(e) !== ck(t))]), W("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -35431,7 +35431,7 @@ function pk(e, t, n, r) {
}, d = async (e, n = "") => {
let r = ++t.suggestRequest;
try {
- let i = await W(`/api/suggest?q=${encodeURIComponent(e)}` + (n ? `&kind=${n}&limit=20` : "&limit=5"));
+ let i = await U(`/api/suggest?q=${encodeURIComponent(e)}` + (n ? `&kind=${n}&limit=20` : "&limit=5"));
if (r !== t.suggestRequest) return;
t.suggestFor = i.q || "", t.groups = i.groups || [], n || (t.tabs = t.groups.map(({ kind: e, label: t, total: n }) => ({
kind: e,
@@ -35524,7 +35524,7 @@ function pk(e, t, n, r) {
p(), i().blur(), e().actions.openItem(t.id);
},
remove: async (e) => {
- await G("/api/search-history", {
+ await W("/api/search-history", {
operation: "remove",
query: e
}).catch(() => null), s(o().filter((t) => ck(t) !== ck(e))), t.active = -1, r();
@@ -35533,20 +35533,20 @@ function pk(e, t, n, r) {
};
}
function mk({ tabs: e, kind: t, onPick: n, wire: r }) {
- let i = (0, R.useRef)(null);
- (0, R.useLayoutEffect)(() => {
+ let i = (0, L.useRef)(null);
+ (0, L.useLayoutEffect)(() => {
r(i.current);
}, [r, e]);
- let a = (e, r, i) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ let a = (e, r, i) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
role: "tab",
"data-suggest-kind": e,
"aria-selected": t === e,
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, z.jsx)(ik, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, R.jsx)(ik, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
ref: i,
"data-search-tabs": "",
role: "tablist",
@@ -35563,13 +35563,13 @@ function gk({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a
t.target.closest("[data-remove-history]") || r(e);
}
};
- if (e.type !== "suggest") return /* @__PURE__ */ (0, z.jsxs)("div", {
+ if (e.type !== "suggest") return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, z.jsx)(dk, { name: e.type === "history" ? "history" : "sparkles" }),
- /* @__PURE__ */ (0, z.jsx)("span", { children: e.value }),
- e.type === "history" ? /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)(dk, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, R.jsx)("span", { children: e.value }),
+ e.type === "history" ? /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
@@ -35577,61 +35577,61 @@ function gk({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, z.jsx)(dk, { name: "x" })
+ children: /* @__PURE__ */ (0, R.jsx)(dk, { name: "x" })
}) : null
]
});
let { item: s, kind: c } = e, l = ok.has(c) ? c : void 0;
if (c === "asset") {
let e = [s.who, s.code ? s.title : ""].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-search-option": "work",
"data-open-item": s.id,
...o,
- children: [/* @__PURE__ */ (0, z.jsx)(_k, {
+ children: [/* @__PURE__ */ (0, R.jsx)(_k, {
card: s.card,
helpers: n
- }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ }), /* @__PURE__ */ (0, R.jsxs)("span", {
"data-search-meta": "",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-search-name": "",
children: s.value
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-search-sub": "",
children: e
})]
})]
});
}
- let u = s.matched ? /* @__PURE__ */ (0, z.jsx)("span", {
+ let u = s.matched ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-search-matched": "",
children: s.matched
}) : null;
if (c === "performer" || c === "creator") {
let e = s.works ?? [], t = [`${(s.n ?? 0).toLocaleString()} 个视频`, s.agency].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-search-option": "person",
"data-open-entity": l,
...o,
children: [
- /* @__PURE__ */ (0, z.jsx)(vk, {
+ /* @__PURE__ */ (0, R.jsx)(vk, {
item: s,
kind: c,
helpers: n
}),
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
"data-search-meta": "",
- children: [/* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("span", {
"data-search-name": "",
- children: [/* @__PURE__ */ (0, z.jsx)("span", { children: s.value }), u]
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", { children: s.value }), u]
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-search-sub": "",
children: t
})]
}),
- e.length ? /* @__PURE__ */ (0, z.jsx)("span", {
+ e.length ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-search-peeks": "",
- children: e.map((e) => /* @__PURE__ */ (0, z.jsx)("button", {
+ children: e.map((e) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-open-work": e.id,
"aria-label": `打开 ${e.code || s.value}`,
@@ -35639,7 +35639,7 @@ function gk({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, z.jsx)(_k, {
+ children: /* @__PURE__ */ (0, R.jsx)(_k, {
card: e,
helpers: n
})
@@ -35648,19 +35648,19 @@ function gk({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a
]
});
}
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-search-option": "",
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, z.jsx)(vk, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, R.jsx)(vk, {
item: s,
kind: c,
helpers: n
}) : null,
- /* @__PURE__ */ (0, z.jsx)("span", { children: s.value }),
+ /* @__PURE__ */ (0, R.jsx)("span", { children: s.value }),
u,
- s.n ? /* @__PURE__ */ (0, z.jsx)("span", {
+ s.n ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-search-n": "",
children: s.n.toLocaleString()
}) : null
@@ -35668,13 +35668,13 @@ function gk({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a
});
}
function _k({ card: e, helpers: t }) {
- return /* @__PURE__ */ (0, z.jsx)("span", {
+ return /* @__PURE__ */ (0, R.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
function vk({ item: e, kind: t, helpers: n }) {
- return /* @__PURE__ */ (0, z.jsx)("span", {
+ return /* @__PURE__ */ (0, R.jsx)("span", {
"data-search-face": "",
"data-kind": t,
dangerouslySetInnerHTML: { __html: n.faceHtml(e, t) }
@@ -35715,7 +35715,7 @@ var wk = (e, t, n = !1) => ({
})
}).then(() => void 0, () => void 0);
async function Ek(e) {
- X.removeQueries({ queryKey: yk(null) }), await X.fetchQuery(wk(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+ Y.removeQueries({ queryKey: yk(null) }), await Y.fetchQuery(wk(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
//#endregion
//#region src/react/entity-page/entity-page.ts
@@ -35806,16 +35806,16 @@ async function Vk(e) {
"entity",
"entity-items",
"entity-photos"
- ]) X.removeQueries({ queryKey: [
+ ]) Y.removeQueries({ queryKey: [
e,
t,
n
] });
await Promise.all([
- X.fetchQuery(Lk(t, n)).then((t) => !t || t.error || !t.id ? null : (X.removeQueries({ queryKey: yk(Number(t.id)) }), X.fetchQuery(wk(Number(t.id), e.helpers.feedRowHtml, !0)))),
- X.fetchQuery(Ik(e)),
- X.fetchInfiniteQuery(zk(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? X.fetchInfiniteQuery(zk(t, n, e.media.set, "")) : null
+ Y.fetchQuery(Lk(t, n)).then((t) => !t || t.error || !t.id ? null : (Y.removeQueries({ queryKey: yk(Number(t.id)) }), Y.fetchQuery(wk(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ Y.fetchQuery(Ik(e)),
+ Y.fetchInfiniteQuery(zk(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? Y.fetchInfiniteQuery(zk(t, n, e.media.set, "")) : null
]);
}
//#endregion
@@ -35845,7 +35845,7 @@ function qk(e, t, n, r) {
});
return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Uk}?${i}`;
}
-var Jk = (e, t, n, r) => W(Kk(e, t, n), r), Yk = (e, t, n, r, i) => W(qk(e, t, n, r), i), Xk = "/api/index", Zk = {
+var Jk = (e, t, n, r) => U(Kk(e, t, n), r), Yk = (e, t, n, r, i) => U(qk(e, t, n, r), i), Xk = "/api/index", Zk = {
performers: "艺人",
creators: "创作者",
studios: "厂牌",
@@ -35927,12 +35927,12 @@ function cA(e) {
case "people": return {
...n,
queryKey: oA(e.kind, e.q),
- queryFn: ({ pageParam: n, signal: r }) => W(sA(e.kind, e.q, "all", t, n), r)
+ queryFn: ({ pageParam: n, signal: r }) => U(sA(e.kind, e.q, "all", t, n), r)
};
case "tags": return {
...n,
queryKey: oA("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => W(sA("tags", e.q, e.category, t, n), r)
+ queryFn: ({ pageParam: n, signal: r }) => U(sA("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
@@ -35948,10 +35948,10 @@ function cA(e) {
}
async function lA(e, t) {
let n = cA(aA(iA(e)));
- X.removeQueries({
+ Y.removeQueries({
queryKey: n.queryKey,
exact: !0
- }), await X.fetchInfiniteQuery({
+ }), await Y.fetchInfiniteQuery({
queryKey: n.queryKey,
queryFn: ({ pageParam: e }) => n.queryFn({
pageParam: e,
@@ -35976,10 +35976,10 @@ function hA(e, t) {
//#endregion
//#region src/react/index/index-people.tsx
function gA({ html: e, face: t, company: n, big: r }) {
- let i = (0, R.useRef)(null);
- return (0, R.useLayoutEffect)(() => {
+ let i = (0, L.useRef)(null);
+ return (0, L.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
- }, [t]), /* @__PURE__ */ (0, z.jsx)("span", {
+ }, [t]), /* @__PURE__ */ (0, R.jsx)("span", {
ref: i,
"data-person-ring": "",
"data-fit-native": n ? "mark" : "portrait",
@@ -35989,12 +35989,12 @@ function gA({ html: e, face: t, company: n, big: r }) {
}
var _A = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
function vA({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
- return /* @__PURE__ */ (0, z.jsxs)("button", {
+ return /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
...a,
"data-index-cell": "",
onClick: i,
- className: Zi({
+ className: Qi({
radius: "plain",
padding: "none",
interactive: !0,
@@ -36002,12 +36002,12 @@ function vA({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
}),
children: [
r,
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-index-name": "",
className: "text-body-medium break-all text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-index-readout": "",
className: "text-caption-1-regular",
children: t
@@ -36017,21 +36017,21 @@ function vA({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
}
function yA({ kind: e, items: t, layout: n, props: r }) {
let i = Qk[e], a = rA(e), o = n === "big";
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
"data-cells": a ? "company" : "people",
className: `${a ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
let n = r.personAvatar(t, i, o);
- return /* @__PURE__ */ (0, z.jsx)(vA, {
+ return /* @__PURE__ */ (0, R.jsx)(vA, {
"data-k": t.k,
"data-kind": i,
name: t.k,
readout: pA(e, t),
big: o,
onPress: () => r.openEntity(i, t.k),
- children: /* @__PURE__ */ (0, z.jsx)(gA, {
+ children: /* @__PURE__ */ (0, R.jsx)(gA, {
html: n.html,
face: n.face,
company: a,
@@ -36043,19 +36043,19 @@ function yA({ kind: e, items: t, layout: n, props: r }) {
}
function bA({ items: e, layout: t, props: n }) {
let r = t === "big";
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(vA, {
+ children: e.map((e) => /* @__PURE__ */ (0, R.jsx)(vA, {
"data-follow-author": e.key,
"data-kind": "performer",
name: e.k,
readout: `${e.n.toLocaleString()} 项更新`,
big: r,
onPress: () => n.openFollowAuthor(e.key),
- children: /* @__PURE__ */ (0, z.jsx)(gA, {
+ children: /* @__PURE__ */ (0, R.jsx)(gA, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -36130,7 +36130,7 @@ function OA(t, n) {
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
var kA = null, AA = null, jA = 0;
function MA() {
- return (!AA || !kA?.isConnected) && (AA?.unmount(), kA = document.createElement("div"), kA.className = "peach-react", kA.dataset.photoLightboxHost = "", document.body.append(kA), AA = (0, Be.createRoot)(kA)), AA;
+ return (!AA || !kA?.isConnected) && (AA?.unmount(), kA = document.createElement("div"), kA.className = "peach-react", kA.dataset.photoLightboxHost = "", document.body.append(kA), AA = (0, Ve.createRoot)(kA)), AA;
}
async function NA(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
@@ -36142,7 +36142,7 @@ async function NA(e, t, n) {
return;
}
let i = MA();
- (0, ze.flushSync)(() => i.render(/* @__PURE__ */ (0, z.jsx)(FA, {
+ (0, Be.flushSync)(() => i.render(/* @__PURE__ */ (0, R.jsx)(FA, {
slides: t,
index: e,
Swiper: r,
@@ -36150,14 +36150,14 @@ async function NA(e, t, n) {
}, ++jA)));
}
function PA() {
- AA && (0, ze.flushSync)(() => AA.render(null));
+ AA && (0, Be.flushSync)(() => AA.render(null));
}
function FA({ 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), 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), _ = (0, R.useRef)(null), [v, y] = (0, R.useState)(t), [b, x] = (0, R.useState)(100), [S, C] = (0, R.useState)({}), [w, T] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [E, D] = (0, R.useState)(!1), [O, k] = (0, R.useState)({
+ let i = e.length > 1, a = (0, L.useId)(), o = (0, L.useRef)(null), s = (0, L.useRef)(null), c = (0, L.useRef)(null), u = (0, L.useRef)(null), d = (0, L.useRef)(null), f = (0, L.useRef)(null), p = (0, L.useRef)(null), m = (0, L.useRef)(null), h = (0, L.useRef)(null), g = (0, L.useRef)(null), _ = (0, L.useRef)(null), [v, y] = (0, L.useState)(t), [b, x] = (0, L.useState)(100), [S, C] = (0, L.useState)({}), [w, T] = (0, L.useState)(() => /* @__PURE__ */ new Set()), [E, D] = (0, L.useState)(!1), [O, k] = (0, L.useState)({
at: t,
text: ""
});
- (0, R.useLayoutEffect)(() => {
+ (0, L.useLayoutEffect)(() => {
let e = o.current;
e.showModal(), document.body.classList.add("photolight-open");
let r = new n(c.current, {
@@ -36196,7 +36196,7 @@ function FA({ slides: e, index: t, Swiper: n, host: r }) {
} }
});
i(t, 0), g.current = TA(e, a, x);
- let l = se(e, p.current, m.current), h = (e = !1) => {
+ let l = ce(e, p.current, m.current), h = (e = !1) => {
l.hide(), p.current?.setAttribute("aria-expanded", "false"), e && p.current && document.contains(p.current) && p.current.focus();
};
_.current = {
@@ -36217,13 +36217,13 @@ function FA({ slides: e, index: t, Swiper: n, host: r }) {
return document.addEventListener("keydown", b, !0), () => {
document.removeEventListener("keydown", b, !0), h(), v.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), g.current = null, _.current = null, e.close(), document.body.classList.remove("photolight-open");
};
- }, []), (0, R.useLayoutEffect)(() => {
+ }, []), (0, L.useLayoutEffect)(() => {
h.current && xA(h.current);
}, [b]);
let A = e[v], j = A.asset ?? null, M = async (e) => {
if (!j || !r || e.getAttribute("aria-busy") === "true") return;
let t = v;
- te(e), D(!0), k({
+ ne(e), D(!0), k({
at: t,
text: ""
});
@@ -36233,7 +36233,7 @@ function FA({ slides: e, index: t, Swiper: n, host: r }) {
text: await r.revealSource(j.id)
});
} finally {
- te(e, !1), D(!1);
+ ne(e, !1), D(!1);
}
}, N = (e, t) => {
t.naturalWidth && t.naturalHeight && !S[e] && C((n) => ({
@@ -36243,7 +36243,7 @@ function FA({ slides: e, index: t, Swiper: n, host: r }) {
}, P = (t) => {
w.has(t) || !e[t].thumb || e[t].thumb === e[t].src || T((e) => new Set(e).add(t));
}, ee = (e) => g.current?.apply(e);
- return /* @__PURE__ */ (0, z.jsxs)("dialog", {
+ return /* @__PURE__ */ (0, R.jsxs)("dialog", {
ref: o,
"aria-label": "图片浏览",
"data-photo-lightbox": "",
@@ -36256,14 +36256,14 @@ function FA({ slides: e, index: t, Swiper: n, host: r }) {
_.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && PA();
},
children: [
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
onClick: PA,
dangerouslySetInnerHTML: { __html: l("x") }
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
ref: s,
className: "swiper",
"data-photo-main": "",
@@ -36271,13 +36271,13 @@ function FA({ slides: e, index: t, Swiper: n, host: r }) {
"aria-roledescription": "轮播",
"aria-label": "图片浏览",
children: [
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
className: "swiper-wrapper",
- children: e.map((e, t) => /* @__PURE__ */ (0, z.jsx)("div", {
+ children: e.map((e, t) => /* @__PURE__ */ (0, R.jsx)("div", {
className: "swiper-slide",
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
className: "swiper-zoom-container",
- children: /* @__PURE__ */ (0, z.jsx)("img", {
+ children: /* @__PURE__ */ (0, R.jsx)("img", {
src: w.has(t) ? e.thumb : e.src,
alt: e.name ?? "",
loading: "lazy",
@@ -36288,14 +36288,14 @@ function FA({ slides: e, index: t, Swiper: n, host: r }) {
})
}, t))
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
ref: d,
type: "button",
"data-photo-nav": "back",
"aria-label": "上一张",
dangerouslySetInnerHTML: { __html: l("chevron-left") }
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
ref: f,
type: "button",
"data-photo-nav": "fwd",
@@ -36304,10 +36304,10 @@ function FA({ slides: e, index: t, Swiper: n, host: r }) {
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-photo-bar": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
ref: p,
type: "button",
"data-photo-detail-toggle": "",
@@ -36318,26 +36318,26 @@ function FA({ slides: e, index: t, Swiper: n, host: r }) {
title: "图片详情",
dangerouslySetInnerHTML: { __html: l("info") }
}),
- /* @__PURE__ */ (0, z.jsxs)("div", { children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", { children: [/* @__PURE__ */ (0, R.jsx)("div", {
"data-photo-count": "",
"aria-live": "polite",
children: `${v + 1} / ${e.length}`
- }), i ? /* @__PURE__ */ (0, z.jsx)("div", {
+ }), i ? /* @__PURE__ */ (0, R.jsx)("div", {
ref: u,
"data-photo-pagination": "",
"aria-label": "选择图片"
}) : null] }),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-photo-zoom": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-zoom-step": "-1",
"aria-label": "缩小",
onClick: () => ee(b - 10),
dangerouslySetInnerHTML: { __html: l("zoom-out") }
}),
- /* @__PURE__ */ (0, z.jsx)("input", {
+ /* @__PURE__ */ (0, R.jsx)("input", {
ref: h,
type: "range",
min: 10,
@@ -36347,18 +36347,18 @@ function FA({ slides: e, index: t, Swiper: n, host: r }) {
"aria-label": "缩放",
onChange: (e) => ee(Number(e.currentTarget.value))
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-zoom-step": "1",
"aria-label": "放大",
onClick: () => ee(b + 10),
dangerouslySetInnerHTML: { __html: l("zoom-in") }
}),
- /* @__PURE__ */ (0, z.jsx)("b", {
+ /* @__PURE__ */ (0, R.jsx)("b", {
"data-photo-zoom-readout": "",
children: `${b}%`
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-photo-scale": "fit",
"aria-label": "适应窗口",
@@ -36366,7 +36366,7 @@ function FA({ slides: e, index: t, Swiper: n, host: r }) {
onClick: () => ee("fit"),
dangerouslySetInnerHTML: { __html: l("maximize") }
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-photo-scale": "original",
"aria-label": "原大小",
@@ -36378,7 +36378,7 @@ function FA({ slides: e, index: t, Swiper: n, host: r }) {
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)("section", {
+ /* @__PURE__ */ (0, R.jsxs)("section", {
ref: m,
id: a,
"data-photo-detail": "",
@@ -36387,41 +36387,41 @@ function FA({ slides: e, index: t, Swiper: n, host: r }) {
"aria-labelledby": `${a}-title`,
hidden: !0,
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-photo-detail-copy": "",
- children: [/* @__PURE__ */ (0, z.jsx)("h2", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h2", {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
children: DA(A)
- }, v), /* @__PURE__ */ (0, z.jsx)("span", {
+ }, v), /* @__PURE__ */ (0, R.jsx)("span", {
"data-photo-detail-meta": "",
children: OA(A, S[v])
})]
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-photo-reveal": "",
hidden: !j || !r,
onClick: (e) => void M(e.currentTarget),
- dangerouslySetInnerHTML: { __html: (E ? ie("正在定位") : l("folder-open")) + "<span>在资源管理器中显示</span>" }
+ dangerouslySetInnerHTML: { __html: (E ? ae("正在定位") : l("folder-open")) + "<span>在资源管理器中显示</span>" }
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-photo-status": "",
"aria-live": "polite",
children: O.at === v ? O.text : ""
})
]
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
ref: c,
className: "swiper",
"data-photo-strip": "",
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
className: "swiper-wrapper",
- children: e.map((e, t) => /* @__PURE__ */ (0, z.jsx)("div", {
+ children: e.map((e, t) => /* @__PURE__ */ (0, R.jsx)("div", {
className: "swiper-slide",
- children: /* @__PURE__ */ (0, z.jsx)("img", {
+ children: /* @__PURE__ */ (0, R.jsx)("img", {
src: e.thumb,
alt: "",
loading: "lazy",
@@ -36436,20 +36436,20 @@ function FA({ slides: e, index: t, Swiper: n, host: r }) {
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
function IA(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, z.jsx)(LA, {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, R.jsx)(LA, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, z.jsx)(RA, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, z.jsx)(WA, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, R.jsx)(RA, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, R.jsx)(WA, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
function LA({ roster: e, props: t }) {
- let { helpers: n, actions: r } = t, i = (0, R.useMemo)(() => ({
+ let { helpers: n, actions: r } = t, i = (0, L.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
}), [n, r]);
- return /* @__PURE__ */ (0, z.jsx)(yA, {
+ return /* @__PURE__ */ (0, R.jsx)(yA, {
kind: e.kind,
items: e.people,
layout: e.layout,
@@ -36457,11 +36457,11 @@ function LA({ roster: e, props: t }) {
});
}
function RA(e) {
- let t = ob(!e.items, e.skeletonHtml);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ let t = sb(!e.items, e.skeletonHtml);
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
- children: [t.layer, e.items ? /* @__PURE__ */ (0, z.jsx)(Rb, {
+ children: [t.layer, e.items ? /* @__PURE__ */ (0, R.jsx)(zb, {
mode: "entity",
entityKey: `${e.kind}:${e.name}`,
revision: e.revision,
@@ -36503,13 +36503,13 @@ var zA = (e) => Array.from({ length: e.n }, (t, n) => ({
asset: e
};
function WA({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, R.useMemo)(() => [...e.codeSets.flatMap(zA), ...e.items], [e]), [s, c] = (0, R.useState)(() => /* @__PURE__ */ new Set()), l = (0, R.useCallback)((e) => c((t) => {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, L.useMemo)(() => [...e.codeSets.flatMap(zA), ...e.items], [e]), [s, c] = (0, L.useState)(() => /* @__PURE__ */ new Set()), l = (0, L.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) => {
+ }), []), u = (0, L.useCallback)((e) => {
NA(e, o.map(UA), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, z.jsx)(KA, {
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, R.jsx)(KA, {
item: e,
index: t,
lost: s.has(t),
@@ -36526,8 +36526,8 @@ function WA({ photos: e, props: t }) {
from: t
};
}), h = p;
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, z.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(GA, {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, R.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(GA, {
label: e.code,
title: e.name,
meta: [
@@ -36535,20 +36535,20 @@ function WA({ photos: e, props: t }) {
e.release_date,
`${e.n} 张`
].filter(Boolean).join(" · ")
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
...f,
children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))
})] }, e.code)),
- m.length && e.total ? /* @__PURE__ */ (0, z.jsx)(GA, {
+ m.length && e.total ? /* @__PURE__ */ (0, R.jsx)(GA, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
...f,
"data-local-wall": "",
children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))
}),
- e.hasMore ? /* @__PURE__ */ (0, z.jsx)(zb, {
+ e.hasMore ? /* @__PURE__ */ (0, R.jsx)(Bb, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
@@ -36556,16 +36556,16 @@ function WA({ photos: e, props: t }) {
] });
}
function GA({ label: e, title: t, meta: n }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-photo-group": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("b", { children: e }),
- t ? /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("b", { children: e }),
+ t ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-photo-group-title": "",
title: t,
children: t
}) : null,
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-photo-group-meta": "",
children: n
})
@@ -36574,13 +36574,13 @@ function GA({ label: e, title: t, meta: n }) {
}
function KA({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
- return /* @__PURE__ */ (0, z.jsx)("button", {
+ return /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-photo-cell": "",
"data-photo-index": t,
title: a,
onClick: () => i(t),
- children: n ? null : /* @__PURE__ */ (0, z.jsx)("img", {
+ children: n ? null : /* @__PURE__ */ (0, R.jsx)("img", {
src: HA(e),
alt: a,
loading: "lazy",
@@ -36739,18 +36739,18 @@ var Ple = {
form: "max-w-form-modal"
};
function tj({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
- let { isFocusVisible: a } = xs();
- return /* @__PURE__ */ (0, z.jsx)(C_, {
+ let { isFocusVisible: a } = Ss();
+ return /* @__PURE__ */ (0, R.jsx)(w_, {
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, z.jsx)(Tee, {
+ children: /* @__PURE__ */ (0, R.jsx)(Tee, {
"data-modal-surface": "",
className: `flex max-h-full w-full ${Ple[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, z.jsx)(Ig, {
+ children: /* @__PURE__ */ (0, R.jsx)(Lg, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
children: i
@@ -36759,7 +36759,7 @@ function tj({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
});
}
function nj({ children: e }) {
- return /* @__PURE__ */ (0, z.jsx)("span", {
+ return /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",
children: e
@@ -36769,11 +36769,11 @@ function nj({ children: e }) {
//#region src/react/crop/crop-frame.tsx
var Fle = .02, rj = 1.08;
function ij({ 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)(() => {
+ let s = (0, L.useRef)(null), c = (0, L.useRef)(null), [l, u] = (0, L.useState)(!1);
+ (0, L.useEffect)(() => {
u(!1);
}, [e]);
- let d = (0, R.useCallback)((e, t) => {
+ let d = (0, L.useCallback)((e, t) => {
let n = s.current;
return !n || !r ? {
dx: 0,
@@ -36828,11 +36828,11 @@ function ij({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
"--crop-r": `${g.left + g.width}%`,
"--crop-b": `${g.top + g.height}%`
} : void 0;
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "relative inline-block max-w-full select-none",
style: _,
children: [
- /* @__PURE__ */ (0, z.jsx)("img", {
+ /* @__PURE__ */ (0, R.jsx)("img", {
ref: s,
src: e,
alt: "",
@@ -36850,24 +36850,24 @@ function ij({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onError: () => u(!0),
className: "block max-h-crop-frame max-w-full object-contain"
}),
- l || !g ? null : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)("div", {
+ l || !g ? null : /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsx)("div", {
"aria-hidden": !0,
className: "pointer-events-none absolute inset-x-0 top-0 h-(--crop-t) bg-scrim"
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"aria-hidden": !0,
className: "pointer-events-none absolute inset-x-0 bottom-0 top-(--crop-b) bg-scrim"
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"aria-hidden": !0,
className: "pointer-events-none absolute left-0 top-(--crop-t) h-(--crop-h) w-(--crop-l) bg-scrim"
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"aria-hidden": !0,
className: "pointer-events-none absolute right-0 left-(--crop-r) top-(--crop-t) h-(--crop-h) bg-scrim"
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
role: "group",
tabIndex: 0,
"aria-label": o,
@@ -36881,7 +36881,7 @@ function ij({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
!n || !r || i($A(n, e.deltaY > 0 ? rj : 1 / rj, r, t));
},
className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",
- children: /* @__PURE__ */ (0, z.jsx)("span", {
+ children: /* @__PURE__ */ (0, R.jsx)("span", {
"data-crop-handle": !0,
onPointerDown: f("resize"),
onPointerMove: p,
@@ -36891,7 +36891,7 @@ function ij({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
})
})
] }),
- l ? /* @__PURE__ */ (0, z.jsx)("p", {
+ l ? /* @__PURE__ */ (0, R.jsx)("p", {
className: "p-4 text-body-2-regular text-text-secondary",
children: "这张图读不出来,换一张再框。"
}) : null
@@ -36904,7 +36904,7 @@ var Ile = "/api/avatar-choices", aj = "/api/avatar-pick", Lle = "/api/avatar-cod
"avatar-choices",
e,
t
-], sj = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, cj = (e, t, n) => `${Rle}${sj(e, t)}&ref=${encodeURIComponent(n)}`, zle = (e, t, n) => W(Ile + sj(e, t), n), Ble = (e) => G(Lle, { code: e });
+], sj = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, cj = (e, t, n) => `${Rle}${sj(e, t)}&ref=${encodeURIComponent(n)}`, zle = (e, t, n) => U(Ile + sj(e, t), n), Ble = (e) => W(Lle, { code: e });
function lj(e, t, n) {
let r = t.width === e.width && t.height === e.height;
return e.focus && r ? kle(e.focus, t, n) : XA(t, n);
@@ -36915,7 +36915,7 @@ var Vle = (e) => e.crop && YA({
});
async function Hle(e, t, n) {
if (!("file" in n)) {
- await G(aj, {
+ await W(aj, {
kind: e,
id: t,
...n
@@ -36929,7 +36929,7 @@ async function Hle(e, t, n) {
});
if (i.ok) return;
let a = await i.json().catch(() => null);
- throw new Hi(a?.error || `请求失败(${i.status})`, i.status, a);
+ throw new Ui(a?.error || `请求失败(${i.status})`, i.status, a);
}
function Ule(e, t) {
if (!t) return e;
@@ -36955,26 +36955,26 @@ function Jle(e) {
}
var Yle = (e) => `${qle[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (uj(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Xle = 8, Zle = 3 / 4;
function Qle({ kind: e, entityId: t, name: n, onPicked: r }) {
- let [i, a] = (0, R.useState)(!1);
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ let [i, a] = (0, L.useState)(!1);
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
- children: /* @__PURE__ */ (0, z.jsx)("button", {
+ children: /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"aria-haspopup": "dialog",
"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, z.jsx)(Ve, {
+ children: /* @__PURE__ */ (0, R.jsx)(He, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, z.jsx)(tj, {
+ }), /* @__PURE__ */ (0, R.jsx)(tj, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, z.jsx)($le, {
+ children: /* @__PURE__ */ (0, R.jsx)($le, {
kind: e,
entityId: t,
name: n,
@@ -36984,20 +36984,20 @@ function Qle({ kind: e, entityId: t, name: n, onPicked: r }) {
})] });
}
function $le({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, R.useRef)(null), o = aO(), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(null), h = oj(e, t), g = (0, R.useRef)(!1), _ = $n({
+ let a = (0, L.useRef)(null), o = aO(), [s, c] = (0, L.useState)(""), [l, u] = (0, L.useState)(""), [d, f] = (0, L.useState)(""), [p, m] = (0, L.useState)(null), h = oj(e, t), g = (0, L.useRef)(!1), _ = er({
queryKey: h,
queryFn: ({ signal: n }) => zle(e, t, n),
retryOnMount: !0
});
- (0, R.useEffect)(() => () => {
- g.current && X.removeQueries({ queryKey: oj(e, t) });
+ (0, L.useEffect)(() => () => {
+ g.current && Y.removeQueries({ queryKey: oj(e, t) });
}, [e, t]);
- let v = er({
+ let v = tr({
mutationFn: (n) => Hle(e, t, n),
onSuccess: () => {
g.current = !0, i(), r();
}
- }), y = er({
+ }), y = tr({
mutationFn: (e) => Ble(e),
onSuccess: (e) => m(e)
});
@@ -37005,47 +37005,47 @@ function $le({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", f(""), n && v.mutate({ file: n });
}
- let x = _.data, S = x?.choices ?? [], C = d || (v.error ? U(v.error) : "") || (!p && y.error ? U(y.error) : "") || (_.error ? U(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : Gle(x);
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ let x = _.data, S = x?.choices ?? [], C = d || (v.error ? H(v.error) : "") || (!p && y.error ? H(y.error) : "") || (_.error ? H(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : Gle(x);
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, z.jsx)(nj, { children: /* @__PURE__ */ (0, z.jsx)(St, { className: "size-6" }) }),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsx)(nj, { children: /* @__PURE__ */ (0, R.jsx)(Ct, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(gu, {
+ children: [/* @__PURE__ */ (0, R.jsx)(_u, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: p ? "框出头像那一块" : "更换头像"
- }), !p && S.length ? /* @__PURE__ */ (0, z.jsxs)(zi, {
+ }), !p && S.length ? /* @__PURE__ */ (0, R.jsxs)(Bi, {
color: "soft",
children: [S.length, " 张可选"]
}) : null]
}),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: p ? Kle(p) : Ule(n, x)
}),
- T ? /* @__PURE__ */ (0, z.jsx)(K, {
+ T ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, z.jsx)(K, {
+ C ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
children: C
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsx)(sO, {
- icon: Xe,
+ /* @__PURE__ */ (0, R.jsx)(sO, {
+ icon: Ze,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), p ? /* @__PURE__ */ (0, z.jsx)(tue, {
+ }), p ? /* @__PURE__ */ (0, R.jsx)(tue, {
kind: e,
entityId: t,
choice: p,
@@ -37057,56 +37057,56 @@ function $le({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
crop: t
});
}
- }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ }) : /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "relative flex min-h-0 flex-1 flex-col",
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
ref: o,
className: "flex min-h-0 flex-1 flex-col overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
role: "listbox",
"aria-label": "候选头像",
"aria-busy": _.isPending || void 0,
"data-skeleton": _.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: _.isPending ? Array.from({ length: Xle }, (e, t) => /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: _.isPending ? Array.from({ length: Xle }, (e, t) => /* @__PURE__ */ (0, R.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",
- children: [/* @__PURE__ */ (0, z.jsx)("span", { className: "relative block w-full aspect-avatar-choice skeleton-sheen" }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", { className: "relative block w-full aspect-avatar-choice skeleton-sheen" }), /* @__PURE__ */ (0, R.jsx)("span", {
className: "relative mx-auto w-2/3 rounded-sm skeleton-sheen",
children: "\xA0"
})]
- }, t)) : S.map((n) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ }, t)) : S.map((n) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
title: Yle(n),
- ...q(w),
+ ...K(w),
onClick: () => {
w || (n.crop ? m(n) : v.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, z.jsx)(eue, {
+ /* @__PURE__ */ (0, R.jsx)(eue, {
src: cj(e, t, n.ref),
choice: n
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "truncate px-1",
children: n.label
}),
- n.current ? /* @__PURE__ */ (0, z.jsx)("span", {
+ n.current ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, z.jsx)(zi, {
+ children: /* @__PURE__ */ (0, R.jsx)(Bi, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- uj(n) ? /* @__PURE__ */ (0, z.jsx)("span", {
+ uj(n) ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, z.jsxs)(zi, {
+ children: /* @__PURE__ */ (0, R.jsxs)(Bi, {
variant: "caption",
color: "gray",
children: [n.cast, " 人"]
@@ -37116,38 +37116,38 @@ function $le({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}, n.ref))
})
})
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex shrink-0 flex-col gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, z.jsxs)("form", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("form", {
className: "flex min-w-0 items-center gap-2",
onSubmit: (e) => {
e.preventDefault(), l.trim() && !w && y.mutate(l.trim());
},
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, z.jsx)(py, {
+ children: /* @__PURE__ */ (0, R.jsx)(my, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
onChange: u
})
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...q(y.isPending),
+ ...K(y.isPending),
children: "取封面来框"
})]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...q(v.isPending),
+ ...K(v.isPending),
children: "从本机选图片"
}),
- /* @__PURE__ */ (0, z.jsx)("input", {
+ /* @__PURE__ */ (0, R.jsx)("input", {
ref: a,
type: "file",
accept: "image/png,image/jpeg",
@@ -37156,20 +37156,20 @@ function $le({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "hidden",
onChange: b
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 flex-1 items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, z.jsx)(py, {
+ children: /* @__PURE__ */ (0, R.jsx)(my, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
value: s,
onChange: c
})
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
disabled: !s.trim(),
- ...q(v.isPending),
+ ...K(v.isPending),
onClick: () => {
v.isPending || v.mutate({ url: s.trim() });
},
@@ -37181,17 +37181,17 @@ function $le({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})] })] });
}
function eue({ src: e, choice: t }) {
- let n = (0, R.useRef)(null), [r, i] = (0, R.useState)(!1);
- (0, R.useEffect)(() => {
+ let n = (0, L.useRef)(null), [r, i] = (0, L.useState)(!1);
+ (0, L.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
}, []);
let a = {
width: t.width,
height: t.height
}, o = Vle(t) ? Nle(lj(t, a, Zle), a) : null, s = r ? !0 : void 0;
- return /* @__PURE__ */ (0, z.jsxs)("span", {
+ return /* @__PURE__ */ (0, R.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
- children: [/* @__PURE__ */ (0, z.jsx)("img", {
+ children: [/* @__PURE__ */ (0, R.jsx)("img", {
ref: n,
loading: "lazy",
alt: "",
@@ -37206,7 +37206,7 @@ function eue({ src: e, choice: t }) {
"--tile-height": o.height,
"--tile-width": o.width
} : void 0
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
"data-revealed": s,
className: "reveal-skeleton pointer-events-none absolute inset-0 skeleton-sheen"
@@ -37214,15 +37214,15 @@ function eue({ src: e, choice: t }) {
});
}
function tue({ 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 = cj(e, t, s), m = aO();
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, L.useState)(o[0]), [l, u] = (0, L.useState)(null), [d, f] = (0, L.useState)(null), p = cj(e, t, s), m = aO();
function h(e) {
c(e), u(null), f(null);
}
let g = d && l ? Mle(d, l) : null;
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("div", {
ref: m,
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, z.jsx)(ij, {
+ children: [/* @__PURE__ */ (0, R.jsx)(ij, {
src: p,
aspect: 1,
box: d,
@@ -37232,11 +37232,11 @@ function tue({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
u(e), YA(e) && f(s === n.ref ? lj(n, e, 1) : XA(e, 1));
},
onBox: f
- }), o.length > 1 ? /* @__PURE__ */ (0, z.jsx)("div", {
+ }), o.length > 1 ? /* @__PURE__ */ (0, R.jsx)("div", {
role: "radiogroup",
"aria-label": "底图",
className: "flex flex-wrap justify-center gap-2",
- children: o.map((e) => /* @__PURE__ */ (0, z.jsx)("button", {
+ children: o.map((e) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": e === s,
@@ -37246,9 +37246,9 @@ function tue({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
children: Jle(e)
}, e))
}) : null]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
"data-crop-preview": !0,
className: "size-crop-preview shrink-0 rounded-full border border-separator-border bg-background-secondary-default bg-(image:--crop-preview) bg-(position:--crop-preview-at) bg-(length:--crop-preview-size) bg-no-repeat",
@@ -37257,16 +37257,16 @@ function tue({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
"--crop-preview-size": g.size,
"--crop-preview-at": g.position
} : void 0
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
- children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
onClick: i,
- ...q(r),
+ ...K(r),
children: "回候选"
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
disabled: !d || !l,
- ...q(r),
+ ...K(r),
onClick: () => {
d && !r && a(s, d);
},
@@ -37278,15 +37278,15 @@ function tue({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
//#endregion
//#region src/react/feed-new/feed-new-row.tsx
function dj({ 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)(() => {
+ let a = (0, L.useRef)(null), o = e?.items.length ? e.html : "";
+ (0, L.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !o, e && i?.(!!o);
}, [
t,
o,
e,
i
- ]), (0, R.useEffect)(() => {
+ ]), (0, L.useEffect)(() => {
o && n(a.current?.querySelector(".feednewrow") ?? null);
}, [n, o]);
let s = async (e) => {
@@ -37300,7 +37300,7 @@ function dj({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}
s === "ignore" ? o.remove() : o.classList.add("isread"), a.current?.querySelector("[data-feed-id]") || (t.hidden = !0, i?.(!1));
};
- return o ? /* @__PURE__ */ (0, z.jsx)("div", {
+ return o ? /* @__PURE__ */ (0, R.jsx)("div", {
ref: a,
className: "contents",
onClick: (e) => {
@@ -37317,11 +37317,11 @@ var nue = {
};
function fj({ name: e }) {
let t = nue[e];
- return /* @__PURE__ */ (0, z.jsx)("svg", {
+ return /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
"aria-hidden": "true",
"data-glyph": t ? "wide" : void 0,
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
});
}
//#endregion
@@ -37334,8 +37334,8 @@ function pj(e, t) {
}
var mj = (e) => !!e?.isConnected && e.matches(":popover-open");
function hj(e, t, n, r) {
- let i = (0, R.useRef)(r);
- i.current = r, (0, R.useEffect)(() => {
+ let i = (0, L.useRef)(r);
+ i.current = r, (0, L.useEffect)(() => {
if (!e) return;
let r = () => {
t.current && mj(n.current) ? pj(t.current, n.current) : i.current();
@@ -37353,7 +37353,7 @@ function hj(e, t, n, r) {
]);
}
function gj({ 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 = () => {
+ let o = (0, L.useRef)(null), s = (0, L.useRef)(null), [c, l] = (0, L.useState)(!1), u = (0, L.useRef)(!1), d = (0, L.useRef)(0), f = () => {
clearTimeout(d.current), u.current = !1, mj(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
clearTimeout(d.current), !(!s.current || !o.current || mj(s.current)) && (s.current.showPopover(), pj(o.current, s.current), l(!0));
@@ -37362,14 +37362,14 @@ function gj({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
!u.current && !o.current?.matches(":hover,:focus-visible") && !s.current?.matches(":hover") && f();
}, 150);
};
- return hj(c, o, s, f), (0, R.useEffect)(() => {
+ return hj(c, o, s, f), (0, L.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
!o.current?.contains(t) && !s.current?.contains(t) && f();
};
return addEventListener("pointerdown", e, !0), () => removeEventListener("pointerdown", e, !0);
- }, [c]), (0, R.useEffect)(() => () => clearTimeout(d.current), []), /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("button", {
+ }, [c]), (0, L.useEffect)(() => () => clearTimeout(d.current), []), /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("button", {
ref: o,
type: "button",
"data-hero-more": i,
@@ -37391,7 +37391,7 @@ function gj({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
e.key === "Escape" && mj(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
ref: s,
id: e,
popover: "manual",
@@ -37400,23 +37400,23 @@ function gj({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
"data-hero-pop": "",
onPointerEnter: () => clearTimeout(d.current),
onPointerLeave: m,
- children: [/* @__PURE__ */ (0, z.jsx)("p", {
+ children: [/* @__PURE__ */ (0, R.jsx)("p", {
"data-hero-pop-head": "",
children: r
}), a]
})] });
}
function rue({ 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 = () => {
+ let i = (0, L.useRef)(null), a = (0, L.useRef)(null), o = (0, L.useRef)(null), [s, c] = (0, L.useState)(!1), l = (0, L.useRef)(!1), u = () => {
mj(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
l.current || !o.current || !i.current || mj(o.current) || (o.current.showPopover(), pj(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return hj(s, i, o, () => c(!1)), (0, R.useEffect)(() => {
+ return hj(s, i, o, () => c(!1)), (0, L.useEffect)(() => {
i.current && mj(o.current) && pj(i.current, o.current);
- }, [r]), /* @__PURE__ */ (0, z.jsxs)("label", {
+ }, [r]), /* @__PURE__ */ (0, R.jsxs)("label", {
ref: i,
"data-entry-feed": "",
onPointerEnter: d,
@@ -37424,8 +37424,8 @@ function rue({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, z.jsx)(fj, { name: "rss" }),
- /* @__PURE__ */ (0, z.jsx)("input", {
+ /* @__PURE__ */ (0, R.jsx)(fj, { name: "rss" }),
+ /* @__PURE__ */ (0, R.jsx)("input", {
ref: a,
type: "checkbox",
role: "switch",
@@ -37446,7 +37446,7 @@ function rue({ following: e, busy: t, onToggle: n, tip: r }) {
},
onBlur: f
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
ref: o,
role: "tooltip",
id: "entityFeedTip",
@@ -37460,28 +37460,28 @@ function rue({ following: e, busy: t, onToggle: n, tip: r }) {
//#endregion
//#region src/react/entity-hero/name-picker.tsx
function iue({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
- let [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null);
- return (0, R.useEffect)(() => {
+ let [i, a] = (0, L.useState)(!1), o = (0, L.useRef)(null);
+ return (0, L.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, z.jsxs)(cee, {
+ }, []), /* @__PURE__ */ (0, R.jsxs)(cee, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, z.jsx)(fu, {
+ children: [/* @__PURE__ */ (0, R.jsx)(pu, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, z.jsx)(fj, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, z.jsx)(zh, {
+ children: /* @__PURE__ */ (0, R.jsx)(fj, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, R.jsx)(Bh, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: my,
+ className: hy,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, z.jsxs)(uee, {
+ children: /* @__PURE__ */ (0, R.jsxs)(uee, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(Mg, {
+ /* @__PURE__ */ (0, R.jsx)(Ng, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -37489,20 +37489,20 @@ function iue({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, z.jsxs)(Pg, {
+ children: t.map((e) => /* @__PURE__ */ (0, R.jsxs)(Fg, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, z.jsx)(fj, { name: "check" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, R.jsx)(fj, { name: "check" }), /* @__PURE__ */ (0, R.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(uf, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, z.jsx)(Mg, { children: /* @__PURE__ */ (0, z.jsxs)(Pg, {
+ /* @__PURE__ */ (0, R.jsx)(df, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, R.jsx)(Ng, { children: /* @__PURE__ */ (0, R.jsxs)(Fg, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, z.jsx)(fj, { name: "plus" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, R.jsx)(fj, { name: "plus" }), /* @__PURE__ */ (0, R.jsx)("span", { children: "添加别名…" })]
}) })
]
})
@@ -37650,28 +37650,28 @@ function fue(e) {
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
function pue({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o, helpers: s }) {
- let c = oue(e), l = aue(e), u = e === "performer" ? uue(n.profile) : [], d = lue(n, e), f = bj(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, R.useRef)(null), h = (0, R.useRef)(null);
- return (0, R.useEffect)(() => {
+ let c = oue(e), l = aue(e), u = e === "performer" ? uue(n.profile) : [], d = lue(n, e), f = bj(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, L.useRef)(null), h = (0, L.useRef)(null);
+ return (0, L.useEffect)(() => {
s.wireScroller(m.current);
- }, [s, d.length]), (0, R.useEffect)(() => {
+ }, [s, d.length]), (0, L.useEffect)(() => {
s.wireScroller(h.current);
- }, [s, p.length]), /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("section", {
+ }, [s, p.length]), /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("section", {
"data-entity-card": "",
"aria-label": "资料",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
"data-entity-profile": u.length ? "facts" : "",
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, z.jsx)(mue, {
+ children: [/* @__PURE__ */ (0, R.jsx)(mue, {
kind: e,
name: t,
helpers: s,
people: c,
company: l
- }), c && n.id ? /* @__PURE__ */ (0, z.jsx)("span", {
+ }), c && n.id ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, z.jsx)(Qle, {
+ children: /* @__PURE__ */ (0, R.jsx)(Qle, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -37679,69 +37679,69 @@ function pue({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
})
}) : null]
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-entity-identity": "",
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-entity-title": "",
- children: [/* @__PURE__ */ (0, z.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, z.jsx)(iue, {
+ children: [/* @__PURE__ */ (0, R.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, R.jsx)(iue, {
current: n.canonical_name,
choices: cue(n),
onChoose: o.chooseName,
onAddAlias: o.addAlias
})]
}),
- /* @__PURE__ */ (0, z.jsx)(hue, {
+ /* @__PURE__ */ (0, R.jsx)(hue, {
kind: e,
entity: n,
actions: o
}),
- d.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ d.length ? /* @__PURE__ */ (0, R.jsx)("div", {
ref: m,
"data-entity-links": "",
- children: d.map((e, t) => /* @__PURE__ */ (0, z.jsx)(yue, { link: e }, t))
+ children: d.map((e, t) => /* @__PURE__ */ (0, R.jsx)(yue, { link: e }, t))
}) : null,
- f.length || n.feed ? /* @__PURE__ */ (0, z.jsx)(bue, {
+ f.length || n.feed ? /* @__PURE__ */ (0, R.jsx)(bue, {
entity: n,
actions: o,
helpers: s
}) : null
]
}),
- u.length ? /* @__PURE__ */ (0, z.jsx)("dl", {
+ u.length ? /* @__PURE__ */ (0, R.jsx)("dl", {
"data-entity-facts": "",
- children: u.map((e) => /* @__PURE__ */ (0, z.jsx)(_ue, {
+ children: u.map((e) => /* @__PURE__ */ (0, R.jsx)(_ue, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, z.jsx)(vue, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, R.jsx)(vue, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, R.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
}, e.label))
}) : null
]
- }), p.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ }), p.length ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-entity-foot": "",
"aria-label": "同台艺人",
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
ref: h,
"data-related-people": "",
- children: p.map((e) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: p.map((e) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-related-performer": e.k,
onClick: () => o.openEntity("performer", e.k),
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-hero-ring": "",
dangerouslySetInnerHTML: { __html: `<span>${i(e.k.slice(0, 1))}</span>${s.costarImg(e)}` }
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-hero-costar-name": "",
children: e.k
})]
}, e.k))
})
}) : null]
- }), a ? (0, ze.createPortal)(/* @__PURE__ */ (0, z.jsx)(dj, {
+ }), a ? (0, Be.createPortal)(/* @__PURE__ */ (0, R.jsx)(dj, {
feedNew: r,
host: a,
wire: s.wireFeedRow,
@@ -37749,8 +37749,8 @@ function pue({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
}), a) : null] });
}
function mue({ kind: e, name: t, helpers: n, people: r, company: a }) {
- let [o] = (0, R.useState)(() => `${n.portraitImg()}<span>${i(t.slice(0, 1))}</span>`);
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ let [o] = (0, L.useState)(() => `${n.portraitImg()}<span>${i(t.slice(0, 1))}</span>`);
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-entity-portrait": r ? "round" : "square",
"data-fit-native": a ? "mark" : "portrait",
"data-entity-kind": e,
@@ -37760,43 +37760,43 @@ function mue({ kind: e, name: t, helpers: n, people: r, company: a }) {
function hue({ kind: e, entity: t, actions: n }) {
let i = _j(t), a = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
- }, o = i ? i.linked ? /* @__PURE__ */ (0, z.jsx)("a", {
+ }, o = i ? i.linked ? /* @__PURE__ */ (0, R.jsx)("a", {
href: r("agency", i.name),
"data-agency": i.name,
onClick: a("agency", i.name),
children: i.name
- }) : i.name : null, s = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
+ }) : i.name : null, s = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer") {
let e = fue(t.name_groups);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, z.jsx)(fj, { name: "film" }), /* @__PURE__ */ (0, z.jsx)("span", { children: s })]
+ children: [/* @__PURE__ */ (0, R.jsx)(fj, { name: "film" }), /* @__PURE__ */ (0, R.jsx)("span", { children: s })]
}),
- o ? /* @__PURE__ */ (0, z.jsxs)("span", {
+ o ? /* @__PURE__ */ (0, R.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, z.jsx)(fj, { name: "briefcase" }), /* @__PURE__ */ (0, z.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, R.jsx)(fj, { name: "briefcase" }), /* @__PURE__ */ (0, R.jsx)("span", { children: o })]
}) : null,
- e ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ e ? /* @__PURE__ */ (0, R.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, z.jsx)(fj, { name: "id-card" }),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)(fj, { name: "id-card" }),
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-alias-names": "",
title: "别名",
- children: e.names.map((e, t) => /* @__PURE__ */ (0, z.jsx)("span", { children: e }, t))
+ children: e.names.map((e, t) => /* @__PURE__ */ (0, R.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, z.jsx)(gj, {
+ e.rest > 0 ? /* @__PURE__ */ (0, R.jsx)(gj, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
label: `另外 ${e.rest} 个别名`,
heading: `${e.total} 个别名`,
- children: /* @__PURE__ */ (0, z.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, z.jsx)(gue, {
+ children: /* @__PURE__ */ (0, R.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, R.jsx)(gue, {
label: e.label,
names: e.names
}, t)) })
@@ -37806,23 +37806,23 @@ function hue({ kind: e, entity: t, actions: n }) {
]
});
}
- let c = t.display_aliases || [], l = e === "agency" ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
+ let c = t.display_aliases || [], l = e === "agency" ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
" · ",
- /* @__PURE__ */ (0, z.jsx)("b", { children: (t.member_count || 0).toLocaleString() }),
+ /* @__PURE__ */ (0, R.jsx)("b", { children: (t.member_count || 0).toLocaleString() }),
" 位艺人"
- ] }) : (t.labels || []).length ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
+ ] }) : (t.labels || []).length ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
" · ",
- /* @__PURE__ */ (0, z.jsx)("b", { children: t.labels.length.toLocaleString() }),
+ /* @__PURE__ */ (0, R.jsx)("b", { children: t.labels.length.toLocaleString() }),
" 个厂牌"
] }) : null, u = t.maker;
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-entity-alias": "",
children: [
c.length ? `${c.join(" / ")} · ` : "",
s,
l,
- o ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [" · ", o] }) : null,
- u ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [" · ", /* @__PURE__ */ (0, z.jsx)("a", {
+ o ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [" · ", o] }) : null,
+ u ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [" · ", /* @__PURE__ */ (0, R.jsx)("a", {
href: r("studio", u.name),
"data-studio-link": u.name,
onClick: a("studio", u.name),
@@ -37832,13 +37832,13 @@ function hue({ kind: e, entity: t, actions: n }) {
});
}
function gue({ label: e, names: t }) {
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [e ? /* @__PURE__ */ (0, z.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, z.jsx)("dd", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [e ? /* @__PURE__ */ (0, R.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, R.jsx)("dd", {
"data-wide": e ? void 0 : "",
- children: t.map((e, t) => /* @__PURE__ */ (0, z.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, z.jsx)("small", { children: e.reading }) : null] }, t))
+ children: t.map((e, t) => /* @__PURE__ */ (0, R.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, R.jsx)("small", { children: e.reading }) : null] }, t))
})] });
}
function _ue({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("dt", { children: [/* @__PURE__ */ (0, z.jsx)(fj, { name: e }), t] }), /* @__PURE__ */ (0, z.jsx)("dd", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("dt", { children: [/* @__PURE__ */ (0, R.jsx)(fj, { name: e }), t] }), /* @__PURE__ */ (0, R.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
@@ -37846,18 +37846,18 @@ function _ue({ glyph: e, label: t, clip: n, children: r }) {
}
function vue({ tags: e }) {
let { shown: t, rest: n } = due(e);
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, z.jsx)("span", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, R.jsx)("span", {
"data-fact-tag": "",
children: e
- }, e)), n ? /* @__PURE__ */ (0, z.jsx)(gj, {
+ }, e)), n ? /* @__PURE__ */ (0, R.jsx)(gj, {
id: "entityTagPop",
hook: "fact",
rest: n,
label: `另外 ${n} 个标签`,
heading: `${e.length} 个标签`,
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
"data-fact-tags": "",
- children: e.map((e) => /* @__PURE__ */ (0, z.jsx)("span", {
+ children: e.map((e) => /* @__PURE__ */ (0, R.jsx)("span", {
"data-fact-tag": "",
children: e
}, e))
@@ -37865,49 +37865,49 @@ function vue({ tags: e }) {
}) : null] });
}
function xj({ mark: e }) {
- if ("brand" in e) return /* @__PURE__ */ (0, z.jsx)("span", {
+ if ("brand" in e) return /* @__PURE__ */ (0, R.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, z.jsx)(fj, { name: e.brand })
+ children: /* @__PURE__ */ (0, R.jsx)(fj, { name: e.brand })
});
let t = l("globe") + ("site" in e ? `<img src="${i(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");
- return /* @__PURE__ */ (0, z.jsx)("span", {
+ return /* @__PURE__ */ (0, R.jsx)("span", {
"data-link-icon": "",
dangerouslySetInnerHTML: { __html: t }
});
}
function yue({ link: e }) {
switch (e.type) {
- case "icon": return /* @__PURE__ */ (0, z.jsx)("a", {
+ case "icon": return /* @__PURE__ */ (0, R.jsx)("a", {
"data-link": "icon",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, z.jsx)(xj, { mark: e.mark })
+ children: /* @__PURE__ */ (0, R.jsx)(xj, { mark: e.mark })
});
- case "gone": return /* @__PURE__ */ (0, z.jsx)("span", {
+ case "gone": return /* @__PURE__ */ (0, R.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, z.jsx)(xj, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, R.jsx)(xj, { mark: { globe: !0 } })
});
- case "private": return /* @__PURE__ */ (0, z.jsxs)("span", {
+ case "private": return /* @__PURE__ */ (0, R.jsxs)("span", {
"data-link": "private",
title: "私人馆藏来源记录,不直接打开下载页",
- children: [/* @__PURE__ */ (0, z.jsx)(xj, { mark: { globe: !0 } }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)(xj, { mark: { globe: !0 } }), /* @__PURE__ */ (0, R.jsxs)("span", {
"data-link-label": "",
children: ["来源 · ", e.label]
})]
});
- default: return /* @__PURE__ */ (0, z.jsxs)("a", {
+ default: return /* @__PURE__ */ (0, R.jsxs)("a", {
"data-link": "url",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, z.jsx)(xj, { mark: e.mark }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)(xj, { mark: e.mark }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-link-label": "",
children: e.text
})]
@@ -37915,7 +37915,7 @@ function yue({ link: e }) {
}
}
function bue({ 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) => {
+ let [r, i] = (0, L.useState)(!!e.feed?.following), [a, o] = (0, L.useState)(!1), s = (0, L.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
try {
@@ -37930,23 +37930,23 @@ function bue({ entity: e, actions: t, helpers: n }) {
await c(!e);
} }), e && t.refreshFeedAfterCheck());
};
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-entry-marks": "",
- children: [bj(e).map((e, t) => /* @__PURE__ */ (0, z.jsxs)("a", {
+ children: [bj(e).map((e, t) => /* @__PURE__ */ (0, R.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, z.jsx)(fj, { name: e.mark }) : /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, R.jsx)(fj, { name: e.mark }) : /* @__PURE__ */ (0, R.jsxs)("span", {
"data-missav-mark": "",
- children: [/* @__PURE__ */ (0, z.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "AV" })]
- }), e.ordinal ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, R.jsx)("span", { children: "AV" })]
+ }), e.ordinal ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, z.jsx)(rue, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, R.jsx)(rue, {
following: r,
busy: a,
onToggle: (e) => {
@@ -37959,21 +37959,21 @@ function bue({ entity: e, actions: t, helpers: n }) {
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
function xue(e) {
- let { kind: t, name: n } = e, r = $n(Lk(t, n)), i = !!r.data?.error, { actions: a } = e;
- return (0, R.useLayoutEffect)(() => {
+ let { kind: t, name: n } = e, r = er(Lk(t, n)), i = !!r.data?.error, { actions: a } = e;
+ return (0, L.useLayoutEffect)(() => {
i && a.missing();
- }, [a, i]), r.isError ? /* @__PURE__ */ (0, z.jsx)(sb, {
- message: U(r.error),
+ }, [a, i]), r.isError ? /* @__PURE__ */ (0, R.jsx)(cb, {
+ message: H(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i ? null : /* @__PURE__ */ (0, z.jsx)(wue, {
+ }) : !r.data || i ? null : /* @__PURE__ */ (0, R.jsx)(wue, {
...e,
entity: r.data
});
}
function Sj(e) {
- let [t, n] = (0, R.useState)({
+ let [t, n] = (0, L.useState)({
key: e,
n: 1
});
@@ -37989,60 +37989,60 @@ function Cue(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
function wue(e) {
- let { kind: n, name: r, entity: i, filters: a, media: o, helpers: s, actions: c, hosts: l } = e, u = n === "agency" || n === "studio", d = n === "agency" ? i.related_performers || [] : n === "studio" && i.labels || [], f = Number(i.id) || 0, p = tr(zk(n, r, 0, "")).data?.pages[0], m = p && !p.error ? p : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || Bk(m).length > 0, _ = o.media === "photos" && g ? o : Ok, [v, y] = (0, R.useState)("people"), x = new URLSearchParams(Object.entries(a).filter(([, e]) => e)).toString(), [S, C] = (0, R.useState)(x);
+ let { kind: n, name: r, entity: i, filters: a, media: o, helpers: s, actions: c, hosts: l } = e, u = n === "agency" || n === "studio", d = n === "agency" ? i.related_performers || [] : n === "studio" && i.labels || [], f = Number(i.id) || 0, p = nr(zk(n, r, 0, "")).data?.pages[0], m = p && !p.error ? p : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || Bk(m).length > 0, _ = o.media === "photos" && g ? o : Ok, [v, y] = (0, L.useState)("people"), x = new URLSearchParams(Object.entries(a).filter(([, e]) => e)).toString(), [S, C] = (0, L.useState)(x);
S !== x && (C(x), y("videos"));
- let w = u && v === "people" && d.length ? "people" : _.media, T = Ik(e), E = $n(T), D = Sj(JSON.stringify(T.queryKey)), [O] = (0, R.useState)(() => (n === "performer" || n === "studio") && (e.jav || (E.data?.items || []).some((e) => e.is_jav)));
- (0, R.useLayoutEffect)(() => {
- c.javContext(O);
- }, [c, O]);
- let k = (0, R.useMemo)(() => e.layout.active === O ? e.layout : {
+ let w = u && v === "people" && d.length ? "people" : _.media, [T, E] = (0, L.useState)(0), D = Ik(e), O = er(D), k = Sj(JSON.stringify([D.queryKey, T])), [A] = (0, L.useState)(() => (n === "performer" || n === "studio") && (e.jav || (O.data?.items || []).some((e) => e.is_jav)));
+ (0, L.useLayoutEffect)(() => {
+ c.javContext(A);
+ }, [c, A]);
+ let j = (0, L.useMemo)(() => e.layout.active === A ? e.layout : {
...e.layout,
- active: O
- }, [e.layout, O]), A = {
+ active: A
+ }, [e.layout, A]), M = {
jav: e.jav,
seed: e.seed
- }, j = (0, R.useCallback)((t, i) => Fk(n, r, a, A, t, e.cache, i), [D]), [M, N] = (0, R.useState)({}), P = _.set, ee = M[P] || "", F = tr({
- ...zk(n, r, P, ee),
+ }, N = (0, L.useCallback)((t, i) => Fk(n, r, a, M, t, e.cache, i), [k]), [P, ee] = (0, L.useState)({}), F = _.set, te = P[F] || "", ne = nr({
+ ...zk(n, r, F, te),
enabled: w === "photos"
- }), I = F.data?.pages[0], te = Sj(JSON.stringify(jk(n, r, P, ee))), ne = (0, R.useMemo)(() => {
- let e = F.data?.pages;
+ }), re = ne.data?.pages[0], ie = Sj(JSON.stringify(jk(n, r, F, te))), ae = (0, L.useMemo)(() => {
+ let e = ne.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
- revision: te,
+ revision: ie,
codeSets: t.id ? [] : Bk(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
- }, [F.data, te]), re = F.refetch, ie = F.fetchNextPage, ae = $n({
+ }, [ne.data, ie]), oe = ne.refetch, se = ne.fetchNextPage, ce = er({
...wk(f, s.feedRowHtml),
enabled: !!f
- }), oe = (0, R.useRef)(e.feedRevision);
- (0, R.useEffect)(() => {
- oe.current !== e.feedRevision && (oe.current = e.feedRevision, X.invalidateQueries({ queryKey: yk(f) }));
+ }), le = (0, L.useRef)(e.feedRevision);
+ (0, L.useEffect)(() => {
+ le.current !== e.feedRevision && (le.current = e.feedRevision, Y.invalidateQueries({ queryKey: yk(f) }));
}, [f, e.feedRevision]);
- let se = !!E.data;
- (0, R.useEffect)(() => {
+ let ue = !!O.data;
+ (0, L.useEffect)(() => {
c.painted(w);
}, [
c,
w,
- D,
- ne?.revision,
- se
+ k,
+ ae?.revision,
+ ue
]);
- let ce = (0, R.useRef)(!0);
- (0, R.useEffect)(() => () => {
- ce.current = !1;
+ let de = (0, L.useRef)(!0);
+ (0, L.useEffect)(() => () => {
+ de.current = !1;
}, []);
- let [le, ue] = (0, R.useState)(0), L = (0, R.useCallback)(async () => {
- await X.invalidateQueries({ queryKey: kk(n, r) }), await X.invalidateQueries({ queryKey: [
+ let I = (0, L.useCallback)(async () => {
+ await Y.invalidateQueries({ queryKey: kk(n, r) }), await Y.invalidateQueries({ queryKey: [
"entity-items",
n,
r
] });
- }, [n, r]), de = er({
+ }, [n, r]), fe = tr({
mutationFn: (e) => t("/api/entity-alias", {
method: "POST",
body: JSON.stringify({
@@ -38051,15 +38051,15 @@ function wue(e) {
...e
})
}),
- onSuccess: () => L()
- }), fe = er({ mutationFn: ({ from: e, to: r }) => t("/api/entity-name", {
+ onSuccess: () => I()
+ }), pe = tr({ mutationFn: ({ from: e, to: r }) => t("/api/entity-name", {
method: "POST",
body: JSON.stringify({
kind: n,
name: e,
canonical: r
})
- }) }), pe = er({
+ }) }), me = tr({
mutationFn: (e) => t("/api/feeds/source", {
method: "POST",
body: JSON.stringify({
@@ -38068,14 +38068,14 @@ function wue(e) {
enabled: e
})
}),
- onSuccess: (e, t) => X.setQueryData(kk(n, r), (e) => e && {
+ onSuccess: (e, t) => Y.setQueryData(kk(n, r), (e) => e && {
...e,
feed: {
...e.feed,
following: t
}
})
- }), me = (0, R.useMemo)(() => ({
+ }), he = (0, L.useMemo)(() => ({
openEntity: c.openEntity,
chooseName: (e) => {
let t = i.canonical_name;
@@ -38083,14 +38083,14 @@ function wue(e) {
title: "更改统称",
body: `「${e}」将成为这条实体的规范名,「${t}」留作别名。作品上的署名、搜索和标签都会跟着改写。`,
confirmLabel: "更改统称",
- onConfirm: () => fe.mutateAsync({
+ onConfirm: () => pe.mutateAsync({
from: t,
to: e
})
}).then(({ confirmed: e, result: t }) => {
let r = t;
!e || !r?.changed || (s.receipt(`已把统称更改为 ${r.canonical_name}`, { undo: async () => {
- await fe.mutateAsync({
+ await pe.mutateAsync({
from: r.canonical_name || "",
to: r.previous_name || ""
}), c.openEntity(n, r.previous_name || "");
@@ -38098,44 +38098,45 @@ function wue(e) {
});
},
addAlias: () => {
- s.aliasForm(i.user_aliases || [], (e) => de.mutateAsync(e));
+ s.aliasForm(i.user_aliases || [], (e) => fe.mutateAsync(e));
},
follow: async (e) => {
try {
- await pe.mutateAsync(e);
+ await me.mutateAsync(e);
} catch (t) {
throw s.failure(e ? "订阅新作" : "取消订阅新作", t), t;
}
},
refreshFeedAfterCheck: () => {
(async () => {
- for (let e = 0; e < 40 && ce.current; e += 1) {
+ for (let e = 0; e < 40 && de.current; e += 1) {
await new Promise((e) => {
setTimeout(e, 3e3);
});
let e = await t("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- ce.current && await X.invalidateQueries({ queryKey: yk(f) });
+ de.current && await Y.invalidateQueries({ queryKey: yk(f) });
})();
},
feedAction: Tk,
avatarPicked: () => {
- X.refetchQueries({ queryKey: kk(n, r) }).then(() => {
- ce.current && ue((e) => e + 1);
+ I().then(() => {
+ de.current && E((e) => e + 1);
});
}
}), [
c,
- de,
+ fe,
i,
f,
- pe,
+ me,
s,
n,
r,
- fe
- ]), he = (0, R.useMemo)(() => ({
+ I,
+ pe
+ ]), ge = (0, L.useMemo)(() => ({
portraitImg: () => s.portraitImg(n, i),
costarImg: s.costarImg,
wireScroller: s.wireDrag,
@@ -38145,7 +38146,7 @@ function wue(e) {
i,
s,
n
- ]), ge = (0, R.useMemo)(() => ({
+ ]), _e = (0, L.useMemo)(() => ({
setView: (e) => {
e === w && !_.set || (y(e === "people" ? "people" : "videos"), c.route(a, e === "photos" ? {
media: "photos",
@@ -38174,13 +38175,13 @@ function wue(e) {
revision: e.revision,
cache: e.cache
});
- await X.fetchQuery(i).catch(() => null);
+ await Y.fetchQuery(i).catch(() => null);
return;
}
- let t = Sue(), i = await X.fetchInfiniteQuery(zk(n, r, P, t)).catch(() => null);
- !ce.current || !i?.pages[0] || i.pages[0].error || N((e) => ({
+ let t = Sue(), i = await Y.fetchInfiniteQuery(zk(n, r, F, t)).catch(() => null);
+ !de.current || !i?.pages[0] || i.pages[0].error || ee((e) => ({
...e,
- [P]: t
+ [F]: t
}));
},
setJavLayout: c.setJavLayout,
@@ -38199,20 +38200,20 @@ function wue(e) {
e.jav,
e.revision,
w,
- P
- ]), _e = (0, R.useMemo)(() => ({
+ F
+ ]), ve = (0, L.useMemo)(() => ({
wireDrag: s.wireDrag,
wireScroller: s.wireScroller,
sourceToolsHtml: s.sourceToolsHtml,
wireSourceTools: (e) => s.wireSourceTools(e, () => {
- re();
+ oe();
})
- }), [s, re]), ve = (i.tags || []).map((e) => ({
+ }), [s, oe]), ye = (i.tags || []).map((e) => ({
k: e.k,
label: s.tagLabel(e.k),
n: e.n,
selected: Nk(a.tag, e.k)
- })), ye = h || d.length ? {
+ })), be = h || d.length ? {
label: d.length ? "页面视图" : "媒体类型",
people: d.length ? {
label: n === "studio" ? "厂牌" : "艺人",
@@ -38221,32 +38222,32 @@ function wue(e) {
} : null,
videos: { count: i.asset_count || 0 },
photos: h ? { count: h } : null
- } : null, be = {
- sorts: s.sortKeys(a.sort || "new", a.dir || "", O),
- jav: O ? {
+ } : null, xe = {
+ sorts: s.sortKeys(a.sort || "new", a.dir || "", A),
+ jav: A ? {
layout: e.javLayout,
options: e.javLayouts
} : null
- }, xe = !!I?.id && !I.error, Se = I && !I.error ? {
- back: xe,
- shuffle: !!I.total,
+ }, Se = !!re?.id && !re.error, Ce = re && !re.error ? {
+ back: Se,
+ shuffle: !!re.total,
layout: e.photoLayout,
layouts: e.photoLayouts,
- setId: xe ? Number(I.id) : 0
- } : null, Ce = "", we = !1;
- if (w === "people") Ce = `${n === "studio" ? "厂牌" : "艺人"} · ${d.length.toLocaleString()}`;
+ setId: Se ? Number(re.id) : 0
+ } : null, we = "", Te = !1;
+ if (w === "people") we = `${n === "studio" ? "厂牌" : "艺人"} · ${d.length.toLocaleString()}`;
else if (w === "videos") {
- we = !E.data;
+ Te = !O.data;
let e = Mk(a.tag).map(s.tagLabel);
- Ce = `视频 · ${(E.data?.total || 0).toLocaleString()}${e.length ? ` · ${e.join(" · ")}` : ""}`;
- } else I && !I.error ? Ce = xe ? `${I.title} · ${(I.total || 0).toLocaleString()} 张` : Cue(I, Bk(I).length) : we = F.isPending;
- let Te = (0, R.useMemo)(() => ({
+ we = `视频 · ${(O.data?.total || 0).toLocaleString()}${e.length ? ` · ${e.join(" · ")}` : ""}`;
+ } else re && !re.error ? we = Se ? `${re.title} · ${(re.total || 0).toLocaleString()} 张` : Cue(re, Bk(re).length) : Te = ne.isPending;
+ let Ee = (0, L.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
- let e = await ie();
+ let e = await se();
if (e.isError) throw e.error;
}
- }), [ie, e.card.actions]), Ee = (0, R.useMemo)(() => d.length ? {
+ }), [se, e.card.actions]), De = (0, L.useMemo)(() => d.length ? {
kind: n === "studio" ? "studios" : "performers",
people: d,
layout: e.peopleLayout
@@ -38255,52 +38256,52 @@ function wue(e) {
e.peopleLayout,
d
]);
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)(pue, {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsx)(pue, {
kind: n,
name: r,
entity: i,
- feedNew: ae.data ?? null,
+ feedNew: ce.data ?? null,
feedHost: f ? l.feed : null,
- jav: O,
- actions: me,
- helpers: he
- }, le),
- (0, ze.createPortal)(/* @__PURE__ */ (0, z.jsx)(ule, {
+ jav: A,
+ actions: he,
+ helpers: ge
+ }, T),
+ (0, Be.createPortal)(/* @__PURE__ */ (0, R.jsx)(ule, {
kind: n,
name: r,
view: w,
- views: ye,
+ views: be,
state: a.state || "",
states: e.states,
- tags: ve,
+ tags: ye,
combo: s.comboItems(a),
- readout: Ce,
- busy: we,
- video: be,
- photo: Se,
- actions: ge,
- helpers: _e
+ readout: we,
+ busy: Te,
+ video: xe,
+ photo: Ce,
+ actions: _e,
+ helpers: ve
}), l.filter),
- (0, ze.createPortal)(w === "videos" && E.isError ? /* @__PURE__ */ (0, z.jsx)(sb, {
- message: U(E.error),
+ (0, Be.createPortal)(w === "videos" && O.isError ? /* @__PURE__ */ (0, R.jsx)(cb, {
+ message: H(O.error),
onRetry: () => {
- E.refetch();
+ O.refetch();
}
- }) : /* @__PURE__ */ (0, z.jsx)(IA, {
+ }) : /* @__PURE__ */ (0, R.jsx)(IA, {
kind: n,
name: r,
view: w,
- roster: Ee,
- items: E.data ?? null,
- revision: D,
- fetchPage: j,
- photos: ne,
+ roster: De,
+ items: O.data ?? null,
+ revision: k,
+ fetchPage: N,
+ photos: ae,
photoSize: e.photoSize,
photoLayout: e.photoLayout,
helpers: e.card.helpers,
- actions: Te,
- layout: k,
+ actions: Ee,
+ layout: j,
selectMode: e.selectMode,
selected: e.selected,
seekSeconds: e.seekSeconds,
@@ -38315,10 +38316,10 @@ function wue(e) {
//#endregion
//#region src/react/feed-new/feed-new-page.tsx
function Tue({ host: e, revision: t, helpers: n, actions: r }) {
- let i = $n(wk(null, n.feedRowHtml)), a = (0, R.useRef)(t);
- return (0, R.useEffect)(() => {
- a.current !== t && (a.current = t, X.invalidateQueries({ queryKey: yk(null) }));
- }, [t]), (0, ze.createPortal)(/* @__PURE__ */ (0, z.jsx)(dj, {
+ let i = er(wk(null, n.feedRowHtml)), a = (0, L.useRef)(t);
+ return (0, L.useEffect)(() => {
+ a.current !== t && (a.current = t, Y.invalidateQueries({ queryKey: yk(null) }));
+ }, [t]), (0, Be.createPortal)(/* @__PURE__ */ (0, R.jsx)(dj, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
@@ -38447,7 +38448,7 @@ function Uue(e, t, n, r = []) {
return i;
}
function Xj(e, t, n) {
- let r = px(e, t), i = mx(n, r), a = (i - 1) * t;
+ let r = mx(e, t), i = hx(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -38472,75 +38473,75 @@ function Qj(e, t, n) {
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var $j = (e) => W(`${Ej}?summary=1`, e), eM = (e) => W(Dj, e), Gue = (e) => W(Oj, e), Kue = (e) => W(Aj, e), que = (e, t) => W(`${Oue}?q=${encodeURIComponent(e)}`, t), tM = (e) => G(Oj, {
+var $j = (e) => U(`${Ej}?summary=1`, e), eM = (e) => U(Dj, e), Gue = (e) => U(Oj, e), Kue = (e) => U(Aj, e), que = (e, t) => U(`${Oue}?q=${encodeURIComponent(e)}`, t), tM = (e) => W(Oj, {
...e?.length ? { sources: e } : {},
background: !0
-}), Jue = (e) => G(Aj, {
+}), Jue = (e) => W(Aj, {
lines: e,
background: !0
-}), nM = (e, t) => G(kj, {
+}), nM = (e, t) => W(kj, {
action: "enabled",
id: e,
enabled: t
-}), rM = (e) => G(kj, {
+}), rM = (e) => W(kj, {
action: "remove",
id: e
-}), Yue = (e) => G(kj, {
+}), Yue = (e) => W(kj, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), iM = (e, t) => G(jj, {
+}), iM = (e, t) => W(jj, {
action: "add",
canonical: e,
alias: t
-}), Xue = (e) => G(jj, {
+}), Xue = (e) => W(jj, {
action: "remove",
alias: e
-}), Zue = (e, t) => G(kue, {
+}), Zue = (e, t) => W(kue, {
provider: e,
values: t
-}), Que = (e, t) => G(Mj, {
+}), Que = (e, t) => W(Mj, {
item: e,
to: t
-}), $ue = () => W(`${Ej}?status=new&limit=1000`);
+}), $ue = () => U(`${Ej}?status=new&limit=1000`);
async function aM(e) {
- let t = await W(Aue, e);
+ let t = await U(Aue, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var oM = (e, t, n) => G(Nj, {
+var oM = (e, t, n) => W(Nj, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), sM = (e, t) => G(Nj, {
+}, "POST", n), sM = (e, t) => W(Nj, {
action: "remove",
id: e
-}, "POST", t), cM = (e, t) => G(jue, t?.length ? { sources: t } : { all: !0 }, "POST", e), ede = (e, t) => W(`${Mue}?q=${encodeURIComponent(e)}`, t), tde = (e, t, n) => G(Nj, {
+}, "POST", t), cM = (e, t) => W(jue, t?.length ? { sources: t } : { all: !0 }, "POST", e), ede = (e, t) => U(`${Mue}?q=${encodeURIComponent(e)}`, t), tde = (e, t, n) => W(Nj, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
async function nde(e, t = "") {
await Promise.all([
- X.fetchQuery({
+ Y.fetchQuery({
queryKey: Pj,
queryFn: () => $j(e)
}),
- X.fetchQuery({
+ Y.fetchQuery({
queryKey: Fj,
queryFn: () => eM(e)
}),
- t === "feeds" ? X.fetchQuery({
+ t === "feeds" ? Y.fetchQuery({
queryKey: Ij,
queryFn: () => aM(e)
}) : null
]);
}
function lM(e, t) {
- X.setQueryData(Pj, (n) => n && {
+ Y.setQueryData(Pj, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -38550,12 +38551,12 @@ function lM(e, t) {
}
function uM(e) {
let t = new Set(e);
- X.setQueryData(Pj, (e) => e && {
+ Y.setQueryData(Pj, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var dM = () => X.invalidateQueries({
+var dM = () => Y.invalidateQueries({
queryKey: Pj,
exact: !0
});
@@ -38565,7 +38566,7 @@ function rde(e) {
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var ide = (e) => (e?.results || []).filter((e) => !e.ok), ade = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", fM = (e) => e.last_checked_at ? hx(e.last_checked_at) : "未检查", ode = /* @__PURE__ */ new Set([
+var ide = (e) => (e?.results || []).filter((e) => !e.ok), ade = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", fM = (e) => e.last_checked_at ? gx(e.last_checked_at) : "未检查", ode = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -38608,22 +38609,22 @@ function _M(e, t) {
gM(e, 0),
t
],
- queryFn: ({ pageParam: t, signal: n }) => W(gM(e, t), n),
+ queryFn: ({ pageParam: t, signal: n }) => U(gM(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,
- placeholderData: Zt
+ placeholderData: Qt
};
}
-var vM = ["follow-feed", "credentials"], yM = (e) => W(Dj, e).catch(() => ({ providers: [] }));
+var vM = ["follow-feed", "credentials"], yM = (e) => U(Dj, e).catch(() => ({ providers: [] }));
async function ude(e, t) {
let n = _M(e.view, e.revision);
- X.removeQueries({
+ Y.removeQueries({
queryKey: n.queryKey,
exact: !0
- }), X.removeQueries({
+ }), Y.removeQueries({
queryKey: vM,
exact: !0
- }), await Promise.all([X.fetchInfiniteQuery({
+ }), await Promise.all([Y.fetchInfiniteQuery({
queryKey: n.queryKey,
queryFn: ({ pageParam: e }) => n.queryFn({
pageParam: e,
@@ -38631,7 +38632,7 @@ async function ude(e, t) {
}),
initialPageParam: 0,
getNextPageParam: n.getNextPageParam
- }), X.fetchQuery({
+ }), Y.fetchQuery({
queryKey: vM,
queryFn: () => yM(t)
})]);
@@ -38657,7 +38658,7 @@ function SM(e) {
].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));
}
function dde(e) {
- for (let [, t] of X.getQueriesData({ queryKey: ["follow-feed"] })) {
+ for (let [, t] of Y.getQueriesData({ queryKey: ["follow-feed"] })) {
if (!Array.isArray(t?.pages) || !t.pages.length) continue;
let n = t.pages[t.pages.length - 1];
for (let r of t.pages) for (let t of r.groups || []) {
@@ -38673,7 +38674,7 @@ function dde(e) {
return null;
}
function fde(e) {
- X.setQueriesData({
+ Y.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
}, (t) => t && {
@@ -38693,7 +38694,7 @@ function fde(e) {
});
}
function pde(e, t) {
- X.setQueriesData({
+ Y.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
}, (n) => n && AM(n, null, e, t));
@@ -38906,7 +38907,7 @@ function zM(e, t) {
let n = jM(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var BM = (e) => e.published_at ? hx(e.published_at) : "时间未取得", VM = /* @__PURE__ */ new Set(), HM = [], UM = null;
+var BM = (e) => e.published_at ? gx(e.published_at) : "时间未取得", VM = /* @__PURE__ */ new Set(), HM = [], UM = null;
function WM() {
if (UM = null, !HM.length) return;
let e = HM.splice(0, 200);
@@ -38935,8 +38936,8 @@ function Tde(e) {
return /^\d{4}-/.test(e) ? e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10) : e;
}
function Ede({ src: e, width: t, height: n, onLearn: r }) {
- let [i, a] = (0, R.useState)(!1);
- return i ? null : /* @__PURE__ */ (0, z.jsx)("img", {
+ let [i, a] = (0, L.useState)(!1);
+ return i ? null : /* @__PURE__ */ (0, R.jsx)("img", {
src: e,
alt: "",
loading: "lazy",
@@ -38957,15 +38958,15 @@ function Dde(e) {
stack: t.stack,
imageView: h,
limit: 9
- }), T = (0, R.useRef)(w.faces);
+ }), T = (0, L.useRef)(w.faces);
T.current = w.faces;
- let E = Nb({
+ let E = Pb({
load: async () => T.current,
canFlip: () => T.current.length > 1 && p.canFlip(),
referrerPolicy: "no-referrer"
- }), D = (0, R.useRef)(E.onPointerLeave);
+ }), D = (0, L.useRef)(E.onPointerLeave);
D.current = E.onPointerLeave;
- let O = (0, R.useCallback)((e) => {
+ let O = (0, L.useCallback)((e) => {
e && (e._stopHover = () => D.current());
}, []), k = IM(m, n, a), A = BM(m), j = (m.tags || []).slice(0, 3), M = zM(m, a), N = RM(t, m), P = m.status === "saved", ee = (e) => {
if (!e.target.closest("[data-media-tag]")) {
@@ -38978,7 +38979,7 @@ function Dde(e) {
}, F = (e, t) => {
e.stopPropagation(), t();
};
- return /* @__PURE__ */ (0, z.jsxs)("article", {
+ return /* @__PURE__ */ (0, R.jsxs)("article", {
ref: O,
"data-media-card": "",
"data-follow-item": m.id,
@@ -38990,32 +38991,32 @@ function Dde(e) {
onMouseEnter: E.onPointerEnter,
onMouseLeave: E.onPointerLeave,
children: [
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"data-follow-visual": "",
"data-mix-stack": w.isMix ? "" : void 0,
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
"data-media-pic": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-follow-open": "",
"aria-label": `打开 ${m.title} 详情`
}),
- _ ? /* @__PURE__ */ (0, z.jsx)(Ede, {
+ _ ? /* @__PURE__ */ (0, R.jsx)(Ede, {
src: _,
width: b?.width,
height: b?.height,
onLearn: x
- }, _) : /* @__PURE__ */ (0, z.jsx)("span", {
+ }, _) : /* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: NM(m.resource_provider || m.provider) }
}),
- w.faces.length > 1 ? /* @__PURE__ */ (0, z.jsx)("div", {
+ w.faces.length > 1 ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-mix-faces": "",
hidden: !E.faces.length,
- children: E.faces.map((e, t) => /* @__PURE__ */ (0, z.jsx)("div", {
+ children: E.faces.map((e, t) => /* @__PURE__ */ (0, R.jsx)("div", {
"data-mix-face": t === E.current ? "on" : t === E.leaving ? "off" : "",
- children: /* @__PURE__ */ (0, z.jsx)("img", {
+ children: /* @__PURE__ */ (0, R.jsx)("img", {
src: e,
alt: "",
loading: "eager",
@@ -39023,37 +39024,37 @@ function Dde(e) {
})
}, e))
}) : null,
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-badge": "",
title: m.provider_label,
"aria-label": `来源:${m.provider_label || ""}`,
dangerouslySetInnerHTML: { __html: NM(m.provider) }
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-check": "",
onClick: (e) => {
e.preventDefault(), e.stopPropagation(), p.toggleSelection(m.id, e.shiftKey);
},
dangerouslySetInnerHTML: { __html: l("check") }
}),
- wde(m.duration) ? /* @__PURE__ */ (0, z.jsx)("span", {
+ wde(m.duration) ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-duration": "",
children: o(m.duration)
}) : null,
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-follow-corner": "",
- children: [w.isMix ? /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: [w.isMix ? /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-follow-collection": C,
onClick: (e) => F(e, () => p.openDetail(C)),
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: l(w.glyph) }
}), w.label]
- }) : null, /* @__PURE__ */ (0, z.jsxs)("div", {
+ }) : null, /* @__PURE__ */ (0, R.jsxs)("div", {
"data-follow-actions": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-follow-save": m.id,
title: P ? "已保存" : "保存到账本",
@@ -39064,7 +39065,7 @@ function Dde(e) {
onClick: (t) => F(t, () => e.onSave(m.id)),
dangerouslySetInnerHTML: { __html: l(P ? "check" : "bookmark-plus") }
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-follow-status": m.id,
"data-to": "seen",
@@ -39076,7 +39077,7 @@ function Dde(e) {
onClick: (t) => F(t, () => e.onStatus(m.id, "seen")),
dangerouslySetInnerHTML: { __html: l("eye") }
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-follow-status": m.id,
"data-to": "ignored",
@@ -39088,7 +39089,7 @@ function Dde(e) {
onClick: (t) => F(t, () => e.onStatus(m.id, "ignored")),
dangerouslySetInnerHTML: { __html: l("eye-off") }
}),
- m.status === "seen" || m.status === "ignored" ? /* @__PURE__ */ (0, z.jsx)("button", {
+ m.status === "seen" || m.status === "ignored" ? /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-follow-status": m.id,
"data-to": "new",
@@ -39105,59 +39106,59 @@ function Dde(e) {
]
})
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-media-meta": "",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-media-avatar": "",
"data-follow-avatar": "",
title: "创作者头像",
dangerouslySetInnerHTML: { __html: k.avatar }
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
"data-media-text": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-media-title": "",
dangerouslySetInnerHTML: { __html: LM(t, m) + i(m.title) }
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-follow-byline": "",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-author": "",
title: k.author,
children: k.author
- }), /* @__PURE__ */ (0, z.jsx)("time", {
+ }), /* @__PURE__ */ (0, R.jsx)("time", {
dateTime: m.published_at || "",
title: A,
children: Tde(A)
})]
}),
- k.credited ? /* @__PURE__ */ (0, z.jsx)("div", {
+ k.credited ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-follow-credit": "",
title: `署名含 ${k.credited}`,
children: `署名含 ${k.credited}`
}) : null,
- N ? /* @__PURE__ */ (0, z.jsx)("div", {
+ N ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: N }
}) : null,
- j.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ j.length ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-media-tags": "",
- children: j.map((e) => /* @__PURE__ */ (0, z.jsx)("span", {
+ children: j.map((e) => /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-tag": "",
"data-tag-cat": `r34-${m.tag_types?.[e] || "unknown"}`,
"data-follow-tag": e,
children: f.tagLabel(e)
}, e))
}) : null,
- M ? /* @__PURE__ */ (0, z.jsx)("span", {
+ M ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-issue": "",
children: M
}) : null
]
})]
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-state": "",
"aria-live": "polite",
children: d
@@ -39165,10 +39166,10 @@ function Dde(e) {
]
});
}
-var Ode = (0, R.memo)(Dde), GM = () => /* @__PURE__ */ (0, z.jsx)("span", {
+var Ode = (0, L.memo)(Dde), GM = () => /* @__PURE__ */ (0, R.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), kde = Ob("settings"), Ade = Ob("chevron-down"), jde = Ob("history"), Mde = [[
+}), kde = kb("settings"), Ade = kb("chevron-down"), jde = kb("history"), Mde = [[
"fixed",
"固定比例",
"layout-grid"
@@ -39178,7 +39179,7 @@ var Ode = (0, R.memo)(Dde), GM = () => /* @__PURE__ */ (0, z.jsx)("span", {
"columns-2"
]];
function Nde(e, t, n) {
- return (0, R.useMemo)(() => {
+ return (0, L.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));
@@ -39226,15 +39227,15 @@ function Nde(e, t, n) {
]);
}
function Pde(e) {
- let { view: t, seed: n, revision: r, helpers: i, actions: a } = e, o = _M(t, r), s = tr(o), c = $n({
+ let { view: t, seed: n, revision: r, helpers: i, actions: a } = e, o = _M(t, r), s = nr(o), c = er({
queryKey: vM,
queryFn: ({ signal: e }) => yM(e)
- }), l = (0, R.useMemo)(() => bM(s.data), [s.data]), u = (0, R.useMemo)(() => new Set((c.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [c.data]), d = (0, R.useMemo)(() => ({
+ }), l = (0, L.useMemo)(() => bM(s.data), [s.data]), u = (0, L.useMemo)(() => new Set((c.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [c.data]), d = (0, L.useMemo)(() => ({
sources: l?.sources || [],
aliases: l?.author_aliases || [],
credentials: u
- }), [l, u]), f = Nde(l, t, n), p = s.isPending || s.isPlaceholderData, h = !p && !!l, g = (0, R.useMemo)(() => Sde(f.visible.flatMap(SM).map((e) => ({ tags: e.tags || [] }))), [f.visible]);
- (0, R.useEffect)(() => {
+ }), [l, u]), f = Nde(l, t, n), p = s.isPending || s.isPlaceholderData, h = !p && !!l, g = (0, L.useMemo)(() => Sde(f.visible.flatMap(SM).map((e) => ({ tags: e.tags || [] }))), [f.visible]);
+ (0, L.useEffect)(() => {
h && a.loaded(g);
}, [
h,
@@ -39242,7 +39243,7 @@ function Pde(e) {
a
]);
let _ = Fde(e, !!l);
- if (!l) return s.isError ? /* @__PURE__ */ (0, z.jsx)(sb, {
+ if (!l) return s.isError ? /* @__PURE__ */ (0, R.jsx)(cb, {
message: m(s.error),
onRetry: () => void s.refetch()
}) : null;
@@ -39258,53 +39259,53 @@ function Pde(e) {
providers: f.providers,
works: f.workNames
}), b = t.status ? f.counts[t.status] || 0 : f.allCount, x = f.sources.some((e) => e.can_backfill);
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("div", {
ref: _.host,
"data-follow-progress": ""
- }, _.generation), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }, _.generation), /* @__PURE__ */ (0, R.jsxs)("div", {
"data-follow-feed": "",
"data-select-mode": e.selectMode ? "" : void 0,
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-follow-head": "",
- children: [/* @__PURE__ */ (0, z.jsx)("h2", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h2", {
"data-follow-title": "",
children: "关注"
- }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ }), /* @__PURE__ */ (0, R.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
leadingIcon: kde,
"data-follow-manage": "",
onClick: a.openManage,
children: "管理关注"
- }), f.sources.length ? /* @__PURE__ */ (0, z.jsx)(H, {
+ }), f.sources.length ? /* @__PURE__ */ (0, R.jsx)(V, {
variant: "primary",
"data-follow-recheck": "",
"aria-label": "检查每个来源的更新",
"aria-busy": _.busy || void 0,
onClick: () => void _.start(!1),
- children: _.starting === "check" ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: _.starting === "check" ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: ie("检查中") }
+ dangerouslySetInnerHTML: { __html: ae("检查中") }
}) : "检查更新"
}) : null]
})]
}),
- /* @__PURE__ */ (0, z.jsx)(Ide, {
+ /* @__PURE__ */ (0, R.jsx)(Ide, {
facets: f,
pressed: f.author,
context: d,
props: e,
onPick: (e) => v({ author: f.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, z.jsx)(Lde, {
+ /* @__PURE__ */ (0, R.jsx)(Lde, {
rows: f.workRows,
pressed: t.work,
props: e,
onPick: (e) => v({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, z.jsx)(Rde, {
+ /* @__PURE__ */ (0, R.jsx)(Rde, {
facets: f,
view: t,
total: b,
@@ -39312,7 +39313,7 @@ function Pde(e) {
props: e,
route: v
}),
- /* @__PURE__ */ (0, z.jsx)(zde, {
+ /* @__PURE__ */ (0, R.jsx)(zde, {
conditions: y,
onDrop: (e) => a.route(vde(t, e)),
onClear: () => v({
@@ -39322,42 +39323,42 @@ function Pde(e) {
tags: []
})
}),
- f.broken.length ? /* @__PURE__ */ (0, z.jsx)(Bde, {
+ f.broken.length ? /* @__PURE__ */ (0, R.jsx)(Bde, {
count: f.broken.length,
onManage: a.openManage
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Vde, {
+ /* @__PURE__ */ (0, R.jsx)(Vde, {
pending: p,
facets: f,
data: l,
context: d,
props: e
}, o.queryKey.join("\0")),
- l.has_more || x ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ l.has_more || x ? /* @__PURE__ */ (0, R.jsxs)("div", {
"data-follow-pagination": "",
- children: [l.has_more ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [l.has_more ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-page-action": "",
- children: /* @__PURE__ */ (0, z.jsxs)(zb, {
+ children: /* @__PURE__ */ (0, R.jsxs)(Bb, {
entity: !0,
enabled: () => !_.busyRef.current,
load: async () => {
await s.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, z.jsx)(Ade, { className: "size-3.5" }), "加载更多"]
+ children: [/* @__PURE__ */ (0, R.jsx)(Ade, { className: "size-3.5" }), "加载更多"]
}, s.data?.pages.length)
- }) : null, x ? /* @__PURE__ */ (0, z.jsxs)("span", {
+ }) : null, x ? /* @__PURE__ */ (0, R.jsxs)("span", {
"data-follow-page-action": "",
- children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
leadingIcon: _.olderBusy ? void 0 : jde,
"data-follow-older": "",
"aria-busy": _.busy || void 0,
onClick: () => void _.start(!0),
- children: _.olderBusy ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: _.olderBusy ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: ie("抓取中") }
- }), /* @__PURE__ */ (0, z.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ dangerouslySetInnerHTML: { __html: ae("抓取中") }
+ }), /* @__PURE__ */ (0, R.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-backfill": "",
children: hde(f.sources)
})]
@@ -39367,21 +39368,21 @@ function Pde(e) {
})] });
}
function Fde(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), p = (0, R.useRef)(null), h = (0, R.useRef)({
+ let { helpers: n, actions: r } = e, [i, a] = (0, L.useState)(0), [o, s] = (0, L.useState)(!1), [c, l] = (0, L.useState)(""), [u, d] = (0, L.useState)(!1), f = (0, L.useRef)(!1), p = (0, L.useRef)(null), h = (0, L.useRef)({
helpers: n,
actions: r
});
return h.current = {
helpers: n,
actions: r
- }, (0, R.useEffect)(() => {
+ }, (0, L.useEffect)(() => {
let e = p.current;
if (!e) return;
let t = !0;
return h.current.helpers.jobProgress({
host: e,
active: () => t,
- read: (e) => W(Oj, e),
+ read: (e) => U(Oj, e),
busy: (e) => {
t && (f.current = e, s(e));
},
@@ -39391,7 +39392,7 @@ function Fde(e, t) {
ok: !1,
error: e.error
}] } : e;
- h.current.actions.checkReport(n), f.current = !1, s(!1), d(!1), X.invalidateQueries({ queryKey: ["follow-feed"] }), a((e) => e + 1);
+ h.current.actions.checkReport(n), f.current = !1, s(!1), d(!1), Y.invalidateQueries({ queryKey: ["follow-feed"] }), a((e) => e + 1);
}
}), () => {
t = !1;
@@ -39401,12 +39402,12 @@ function Fde(e, t) {
host: p,
busyRef: f,
starting: c,
- start: (0, R.useCallback)(async (e) => {
+ start: (0, L.useCallback)(async (e) => {
if (f.current) return;
f.current = !0, l(e ? "older" : "check");
let t = !1;
try {
- let n = await G(Oj, e ? {
+ let n = await W(Oj, e ? {
older: !0,
background: !0
} : { background: !0 });
@@ -39415,7 +39416,7 @@ function Fde(e, t) {
h.current.actions.checkReport({ results: [{
ok: !1,
error: m(t)
- }] }), e && X.invalidateQueries({ queryKey: ["follow-feed"] });
+ }] }), e && Y.invalidateQueries({ queryKey: ["follow-feed"] });
} finally {
f.current = t, l("");
}
@@ -39425,24 +39426,24 @@ function Fde(e, t) {
};
}
function Ide({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
- let a = (0, R.useRef)(null);
- return (0, R.useEffect)(() => {
+ let a = (0, L.useRef)(null);
+ return (0, L.useEffect)(() => {
r.helpers.wireDrag(a.current);
- }, [r.helpers]), e.authorOrder.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ }, [r.helpers]), e.authorOrder.length ? /* @__PURE__ */ (0, R.jsx)("div", {
ref: a,
"data-follow-authors": "",
"aria-label": "按创作者筛选",
children: e.authorOrder.map((r) => {
let a = e.authorSources.get(r) || [];
- return /* @__PURE__ */ (0, z.jsxs)("button", {
+ return /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-follow-author": r,
"aria-pressed": t === r,
onClick: () => i(r),
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-ring": "",
dangerouslySetInnerHTML: { __html: FM(a, PM(a, n)) }
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-name": "",
children: PM(a, n)
})]
@@ -39451,19 +39452,19 @@ function Ide({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
}) : null;
}
function Lde({ rows: e, pressed: t, props: n, onPick: r }) {
- let i = (0, R.useRef)(null);
- return (0, R.useEffect)(() => {
+ let i = (0, L.useRef)(null);
+ return (0, L.useEffect)(() => {
n.helpers.wireDrag(i.current);
- }, [n.helpers]), e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ }, [n.helpers]), e.length ? /* @__PURE__ */ (0, R.jsx)("div", {
ref: i,
"data-follow-works": "",
"aria-label": "按题材筛选",
- children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: e.map((e) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-follow-work": e[0],
"aria-pressed": t === e[0],
onClick: () => r(e[0]),
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-mark": "",
"data-fallback": String(e[1] || "").slice(0, 2),
dangerouslySetInnerHTML: { __html: n.helpers.workMark(e) }
@@ -39472,12 +39473,12 @@ function Lde({ rows: e, pressed: t, props: n, onPick: r }) {
}) : null;
}
function Rde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (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 = !!e.mediaCounts.images || t.media === "images", g = UO(c, d, "[data-follow-filter][aria-pressed=\"true\"]", t.status), _ = UO(u, f, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${h}`);
- (0, R.useEffect)(() => {
+ let { helpers: o, actions: s } = i, c = (0, L.useRef)(null), u = (0, L.useRef)(null), d = (0, L.useRef)(null), f = (0, L.useRef)(null), p = (0, L.useRef)(null), m = (0, L.useRef)(null), h = !!e.mediaCounts.images || t.media === "images", g = UO(c, d, "[data-follow-filter][aria-pressed=\"true\"]", t.status), _ = UO(u, f, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${h}`);
+ (0, L.useEffect)(() => {
o.wireDrag(p.current), o.wireDrag(m.current), o.wireScroller(m.current);
}, [o]);
let v = [...e.providers], y = v.length + e.tagRows.length > 0, b = t.media === "images";
- return /* @__PURE__ */ (0, z.jsx)(IO, {
+ return /* @__PURE__ */ (0, R.jsx)(IO, {
label: "筛选与排序",
topLabel: h ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -39486,16 +39487,16 @@ function Rde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
},
topClassName: "gap-1.5 overflow-visible",
busy: r,
- panes: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ panes: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("span", {
ref: c,
"data-view-glide": "",
"aria-hidden": "true"
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
ref: u,
"data-view-glide": "round",
"aria-hidden": "true"
})] }),
- top: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [h ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ top: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [h ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("div", {
ref: f,
role: "group",
"aria-label": "媒体类型",
@@ -39515,7 +39516,7 @@ function Rde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"image"
]].map(([e, n, r, i, o]) => {
let s = `${n} ${Math.max(0, r || 0).toLocaleString()}`;
- return /* @__PURE__ */ (0, z.jsx)("button", {
+ return /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-media-view": e,
"data-media-icon": o,
@@ -39529,16 +39530,16 @@ function Rde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: l(i) }
}, e);
})
- }), /* @__PURE__ */ (0, z.jsx)(GM, {})] }) : null, /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)(GM, {})] }) : null, /* @__PURE__ */ (0, R.jsxs)("div", {
ref: p,
"data-entity-scroll": "",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
ref: d,
role: "group",
"aria-label": "状态",
"data-entity-states": "",
onPointerLeave: g.leave,
- children: [cde.map(([e, n]) => /* @__PURE__ */ (0, z.jsx)("button", {
+ children: [cde.map(([e, n]) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-entity-state": e,
"data-follow-filter": e,
@@ -39549,12 +39550,12 @@ function Rde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), y ? /* @__PURE__ */ (0, z.jsx)(GM, {}) : null]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }, e)), y ? /* @__PURE__ */ (0, R.jsx)(GM, {}) : null]
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
ref: m,
"data-entity-tags": "",
children: [
- v.map(([t, n]) => /* @__PURE__ */ (0, z.jsx)("button", {
+ v.map(([t, n]) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-follow-provider": t,
"data-entity-press": "",
@@ -39564,14 +39565,14 @@ function Rde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
onClick: () => a({ provider: e.provider === t ? "" : t }),
dangerouslySetInnerHTML: { __html: NM(t) }
}, t)),
- v.length && e.tagRows.length ? /* @__PURE__ */ (0, z.jsx)(GM, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, z.jsxs)(LO, {
+ v.length && e.tagRows.length ? /* @__PURE__ */ (0, R.jsx)(GM, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, R.jsxs)(LO, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${yde(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: [o.tagLabel(n), r ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [o.tagLabel(n), r ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-count-badge": n,
children: String(r)
}) : null]
@@ -39579,37 +39580,37 @@ function Rde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
]
})]
})] }),
- bottom: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("h3", {
+ bottom: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("h3", {
"data-entity-readout": "",
"data-follow-readout": "",
children: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`
- }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ }), /* @__PURE__ */ (0, R.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, z.jsx)($O, { onPress: s.shuffle }),
- b ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(QO, {
+ /* @__PURE__ */ (0, R.jsx)($O, { onPress: s.shuffle }),
+ b ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(QO, {
label: "图片布局",
value: i.photoLayout,
options: Mde,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
- }), /* @__PURE__ */ (0, z.jsxs)("button", {
+ }), /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-follow-images-only": "",
"aria-pressed": i.imagesOnly,
title: "仅显示图片",
"aria-label": "仅显示图片",
onClick: () => s.setImagesOnly(!i.imagesOnly),
- children: [i.imagesOnly ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [i.imagesOnly ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-view-glide": "",
"aria-hidden": "true"
- }) : null, /* @__PURE__ */ (0, z.jsx)("span", {
+ }) : null, /* @__PURE__ */ (0, R.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: l("captions-off") }
})]
})] }) : null,
lde.map(([e, n]) => {
- let r = t.sort === e, i = Ob(t.dir === "asc" ? "arrow-up" : "arrow-down");
- return /* @__PURE__ */ (0, z.jsxs)("button", {
+ let r = t.sort === e, i = kb(t.dir === "asc" ? "arrow-up" : "arrow-down");
+ return /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-entity-sort": e,
"data-follow-sort": e,
@@ -39620,7 +39621,7 @@ function Rde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
let n = kM(e, t.sort, t.dir);
n && a(n);
},
- children: [n, r ? /* @__PURE__ */ (0, z.jsx)(i, { className: "size-3.5" }) : null]
+ children: [n, r ? /* @__PURE__ */ (0, R.jsx)(i, { className: "size-3.5" }) : null]
}, e);
})
]
@@ -39628,14 +39629,14 @@ function Rde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
});
}
function zde({ conditions: e, onDrop: t, onClear: n }) {
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
- children: e.length ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [e.map((e) => {
+ children: e.length ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [e.map((e) => {
let n = `${e.kind === "标签" ? "" : `${e.kind} `}${e.label}`;
- return /* @__PURE__ */ (0, z.jsxs)("span", {
+ return /* @__PURE__ */ (0, R.jsxs)("span", {
"data-combo-chip": "",
- children: [n, /* @__PURE__ */ (0, z.jsx)("button", {
+ children: [n, /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"aria-label": `撤掉 ${n}`,
"data-follow-drop": e.key,
@@ -39644,7 +39645,7 @@ function zde({ conditions: e, onDrop: t, onClear: n }) {
children: "✕"
})]
}, `${e.kind}:${e.key}`);
- }), /* @__PURE__ */ (0, z.jsx)("button", {
+ }), /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-combo-clear": "",
onClick: n,
@@ -39653,7 +39654,7 @@ function zde({ conditions: e, onDrop: t, onClear: n }) {
});
}
function Bde({ count: e, onManage: t }) {
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-follow-broken": "",
onClick: (e) => {
e.target.closest("[data-follow-manage]") && t();
@@ -39662,11 +39663,11 @@ function Bde({ count: e, onManage: t }) {
});
}
function Vde({ pending: e, facets: t, data: n, context: r, props: i }) {
- let { view: a, helpers: o } = i, s = a.media === "images", c = ob(e, () => o.listSkeletonHtml(a.media));
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ let { view: a, helpers: o } = i, s = a.media === "images", c = sb(e, () => o.listSkeletonHtml(a.media));
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": c.fading ? "" : void 0,
- children: [c.layer, e ? null : /* @__PURE__ */ (0, z.jsx)(Hde, {
+ children: [c.layer, e ? null : /* @__PURE__ */ (0, R.jsx)(Hde, {
facets: t,
data: n,
context: r,
@@ -39683,7 +39684,7 @@ function Hde({ facets: e, data: t, context: n, props: r, images: i }) {
} : {}, u;
return u = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), l = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;
- return /* @__PURE__ */ (0, z.jsx)(Ode, {
+ return /* @__PURE__ */ (0, R.jsx)(Ode, {
group: t,
authorSources: l,
media: a.media,
@@ -39697,7 +39698,7 @@ function Hde({ facets: e, data: t, context: n, props: r, images: i }) {
onStatus: c.status,
onSave: c.save
}, `${u}:${a.media}`);
- }) : /* @__PURE__ */ (0, z.jsx)(Ude, { data: t }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }) : /* @__PURE__ */ (0, R.jsx)(Ude, { data: t }), /* @__PURE__ */ (0, R.jsx)("div", {
"data-follow-list": "",
"data-follow-wall": i ? "" : void 0,
...l,
@@ -39709,7 +39710,7 @@ function KM(e, t) {
}
function Ude({ data: e }) {
let t = (e.groups || []).length ? C("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源或标签后再试。") : (e.sources || []).length ? C("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : C("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-follow-empty": "",
className: "contents",
dangerouslySetInnerHTML: { __html: t }
@@ -39721,30 +39722,30 @@ var Wde = {
ignored: "已忽略"
};
function Gde(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 = _M(t, n).queryKey, l = (e, t, n) => n((n) => {
+ let { view: t, revision: n, actions: r } = e, [i, a] = (0, L.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, L.useState)(() => /* @__PURE__ */ new Map()), c = _M(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) => {
- X.setQueryData(c, (r) => r && AM(r, t, e, n));
- }, d = () => void X.invalidateQueries({
+ Y.setQueryData(c, (r) => r && AM(r, t, e, n));
+ }, d = () => void Y.invalidateQueries({
queryKey: c,
exact: !0
}), f = (e) => {
- let t = bM(X.getQueryData(c));
+ let t = bM(Y.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";
- }, p = er({
- mutationFn: ({ id: e, to: t }) => G(Mj, {
+ }, p = tr({
+ mutationFn: ({ id: e, to: t }) => W(Mj, {
item: e,
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
u(t, n), d(), r.toast(Wde[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
- await G(Mj, {
+ await W(Mj, {
item: t,
to: i
}), u(t, i), d();
@@ -39754,8 +39755,8 @@ function Gde(e) {
l(t, m(e), s), r.failure("更新关注状态", e);
},
onSettled: (e, t, { id: n }) => l(n, "", a)
- }), h = er({
- mutationFn: (e) => G("/api/follow/save", { item: e }),
+ }), h = tr({
+ mutationFn: (e) => W("/api/follow/save", { item: e }),
onSuccess: (e, t) => {
u(t, "saved"), d(), r.toast("已保存到账本");
},
@@ -39763,7 +39764,7 @@ function Gde(e) {
l(t, m(e), s), r.failure("保存到账本", e);
},
onSettled: (e, t, n) => l(n, "", a)
- }), g = (0, R.useRef)({
+ }), g = (0, L.useRef)({
statusMutation: p,
saveMutation: h,
before: f
@@ -39775,14 +39776,14 @@ function Gde(e) {
}, {
busy: i,
failures: o,
- status: (0, R.useCallback)((e, t) => {
+ status: (0, L.useCallback)((e, t) => {
l(e, t, a), l(e, "", s), g.current.statusMutation.mutate({
id: e,
to: t,
was: g.current.before(e)
});
}, []),
- save: (0, R.useCallback)((e) => {
+ save: (0, L.useCallback)((e) => {
l(e, "save", a), l(e, "", s), g.current.saveMutation.mutate(e);
}, [])
};
@@ -39790,8 +39791,8 @@ function Gde(e) {
//#endregion
//#region src/react/follow-manage/source-view.tsx
function qM({ provider: e, label: t }) {
- let n = pM(e), [r, i] = (0, R.useState)(!1);
- return !n || r ? t ? /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: t }) : null : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("img", {
+ let n = pM(e), [r, i] = (0, L.useState)(!1);
+ return !n || r ? t ? /* @__PURE__ */ (0, R.jsx)(R.Fragment, { children: t }) : null : /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("img", {
src: n,
alt: "",
width: 14,
@@ -39799,11 +39800,11 @@ function qM({ provider: e, label: t }) {
loading: "lazy",
onError: () => i(!0),
className: "size-3.5 shrink-0 rounded-sm object-contain"
- }), t ? /* @__PURE__ */ (0, z.jsx)(ju, { children: t }) : null] });
+ }), t ? /* @__PURE__ */ (0, R.jsx)(Mu, { children: t }) : null] });
}
function JM({ group: e, name: t }) {
- let { src: n, fallback: r } = Jj(e), [i, a] = (0, R.useState)(0), o = [n, r].filter(Boolean)[i];
- return o ? /* @__PURE__ */ (0, z.jsx)("img", {
+ let { src: n, fallback: r } = Jj(e), [i, a] = (0, L.useState)(0), o = [n, r].filter(Boolean)[i];
+ return o ? /* @__PURE__ */ (0, R.jsx)("img", {
src: o,
alt: "",
width: 32,
@@ -39812,7 +39813,7 @@ function JM({ group: e, name: t }) {
referrerPolicy: "no-referrer",
onError: () => a(i + 1),
className: "size-8 shrink-0 rounded-full bg-background-tertiary-default object-cover"
- }) : /* @__PURE__ */ (0, z.jsx)("span", {
+ }) : /* @__PURE__ */ (0, R.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: qj(t)
@@ -39820,14 +39821,14 @@ function JM({ group: e, name: t }) {
}
function YM({ source: e }) {
let t = Vj(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
- return /* @__PURE__ */ (0, z.jsx)(zi, {
+ return /* @__PURE__ */ (0, R.jsx)(Bi, {
variant: "caption",
color: t,
children: Vue(e)
});
}
function XM({ source: e }) {
- return /* @__PURE__ */ (0, z.jsx)("a", {
+ return /* @__PURE__ */ (0, R.jsx)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer noopener",
@@ -39838,11 +39839,11 @@ function XM({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var ZM = Ii(hy, gy, "text-body-2-medium"), Kde = "粘贴来源链接,或输入创作者名、id…", qde = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Jde = "识别中…", Yde = "站内没有查到来源", QM = (e, t) => `${e}:${t.url}`;
+var ZM = Li(gy, _y, "text-body-2-medium"), Kde = "粘贴来源链接,或输入创作者名、id…", qde = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Jde = "识别中…", Yde = "站内没有查到来源", QM = (e, t) => `${e}:${t.url}`;
function Xde({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
- return (0, R.useEffect)(() => {
+ return (0, L.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, z.jsxs)(zh, {
+ }, [t, r]), /* @__PURE__ */ (0, R.jsxs)(Bh, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -39854,29 +39855,29 @@ function Xde({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: Ii(my, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
- children: [i && !n.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ className: Li(hy, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ children: [i && !n.length ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, z.jsx)(ea, { label: "正在查找建议" })
- }) : null, n.map((e, t) => /* @__PURE__ */ (0, z.jsxs)(R.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)(ta, { label: "正在查找建议" })
+ }) : null, n.map((e, t) => /* @__PURE__ */ (0, R.jsxs)(L.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, R.jsx)("div", {
className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",
children: e.group
- }), /* @__PURE__ */ (0, z.jsxs)("button", {
+ }), /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? Ii(ZM, "bg-background-secondary-default") : ZM,
+ className: t === r ? Li(ZM, "bg-background-secondary-default") : ZM,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "min-w-0 grow truncate text-left",
children: e.value
}),
- e.matched ? /* @__PURE__ */ (0, z.jsx)("span", {
+ e.matched ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "shrink-0 text-caption-1-regular text-text-tertiary",
children: e.matched
}) : null,
- e.n ? /* @__PURE__ */ (0, z.jsx)("span", {
+ e.n ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "shrink-0 text-caption-1-regular tabular-nums text-text-tertiary",
children: e.n.toLocaleString()
}) : null
@@ -39885,54 +39886,54 @@ function Xde({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
});
}
function Zde({ 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 = (0, L.useRef)(null), [a, o] = (0, L.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);
};
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(V, {
ref: i,
variant: "secondary",
- leadingIcon: rt,
+ leadingIcon: it,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, z.jsx)(zh, {
+ }), /* @__PURE__ */ (0, R.jsx)(Bh, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: my,
- children: /* @__PURE__ */ (0, z.jsxs)(Ig, {
+ className: hy,
+ children: /* @__PURE__ */ (0, R.jsxs)(Lg, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
- children: [s.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [s.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex items-center gap-2 pb-1",
- children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
size: "small",
onClick: () => n(/* @__PURE__ */ new Set()),
children: "全选"
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
size: "small",
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, z.jsx)(ky, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, R.jsx)(Ay, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(_O, {
+ children: [/* @__PURE__ */ (0, R.jsx)(_O, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
- children: /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, z.jsx)(qM, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, R.jsx)(qM, { provider: e.provider }), e.provider_label]
})
- }), n ? /* @__PURE__ */ (0, z.jsx)(H, {
+ }), n ? /* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
size: "xs",
className: "ml-auto",
@@ -39947,66 +39948,66 @@ function Zde({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})] });
}
function Qde({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
- if (e.kind === "error") return /* @__PURE__ */ (0, z.jsx)(K, {
+ if (e.kind === "error") return /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: e.line,
children: e.error || "查找失败"
});
let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});
- return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Zi({
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
+ className: Qi({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-2 p-4"
}),
children: [
- /* @__PURE__ */ (0, z.jsx)("b", {
+ /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.line
}),
a.length ? a.map((e) => {
let n = QM(t, e);
- return /* @__PURE__ */ (0, z.jsx)(_O, {
+ return /* @__PURE__ */ (0, R.jsx)(_O, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
- children: /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, z.jsx)(qM, { provider: e.provider }),
- /* @__PURE__ */ (0, z.jsx)("b", {
+ /* @__PURE__ */ (0, R.jsx)(qM, { provider: e.provider }),
+ /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "min-w-0 break-words",
children: e.label
}),
- /* @__PURE__ */ (0, z.jsx)("small", {
+ /* @__PURE__ */ (0, R.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.known ? "已经关注" : e.evidence
})
]
})
}, n);
- }) : /* @__PURE__ */ (0, z.jsx)(ky, { children: Yde }),
- (e.external_searches || []).map((e) => /* @__PURE__ */ (0, z.jsxs)("div", {
+ }) : /* @__PURE__ */ (0, R.jsx)(Ay, { children: Yde }),
+ (e.external_searches || []).map((e) => /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)("small", {
+ children: [/* @__PURE__ */ (0, R.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, z.jsx)(My, {
+ }), /* @__PURE__ */ (0, R.jsx)(Ny, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, z.jsx)(ky, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, R.jsx)(Ay, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
function $de({ 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 [a, o] = (0, L.useState)(""), [s, c] = (0, L.useState)(""), [l, u] = (0, L.useState)(""), [d, f] = (0, L.useState)(!1), [p, m] = (0, L.useState)(null), [h, g] = (0, L.useState)(-1), _ = (0, L.useRef)(null), v = (0, L.useRef)(null), [y, b] = (0, L.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, L.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, L.useState)(""), [T, E] = (0, L.useState)(0);
+ (0, L.useEffect)(() => {
let e = a.trim();
if (!e || e.includes("/")) {
u("");
@@ -40015,11 +40016,11 @@ function $de({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
let t = setTimeout(() => u(e), 250);
return () => clearTimeout(t);
}, [a]);
- let D = $n({
+ let D = er({
queryKey: Fue(l),
queryFn: ({ signal: e }) => que(l, e),
enabled: l.length > 0 && d
- }), O = (0, R.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({
+ }), O = (0, L.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({
value: t.value,
matched: t.matched || "",
n: t.n || 0,
@@ -40029,19 +40030,19 @@ function $de({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
queryFn: ({ signal: e }) => Kue(e),
start: (e) => Jue([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
- onError: (e) => w(U(e)),
+ onError: (e) => w(H(e)),
onFinish: (e) => {
e.status === "failed" && w(e.error || "查找失败");
}
}), P = (e) => {
let t = e.trim();
!t || A || M.isPending || (w(""), g(-1), c(t), o(""), u(""), M.mutate(t));
- }, ee = D.isFetching, F = d && p !== a && (O.length > 0 || ee), I = () => {
+ }, ee = D.isFetching, F = d && p !== a && (O.length > 0 || ee), te = () => {
g(-1), m(a);
- }, te = (e) => {
+ }, ne = (e) => {
if (!e.nativeEvent.isComposing) {
if (e.key === "Escape" && F) {
- I();
+ te();
return;
}
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
@@ -40059,10 +40060,10 @@ function $de({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
e.key === "Enter" && (e.preventDefault(), P(O[h]?.value || a));
}
- }, ne = j?.results || [], re = ne.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
+ }, re = j?.results || [], ie = re.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
candidate: e,
key: QM(t, e)
- })).filter((e) => !x.has(e.key))), ie = er({
+ })).filter((e) => !x.has(e.key))), ae = tr({
mutationFn: async (e) => {
let t = [], n = [];
E(0);
@@ -40071,14 +40072,14 @@ function $de({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
let e = await Yue(r.candidate);
n.push(e.source);
} catch (e) {
- t.push(`${r.candidate.label}:${U(e)}`);
+ t.push(`${r.candidate.label}:${H(e)}`);
}
E((e) => e + 1);
}
if (n.length) try {
await tM(n);
} catch (e) {
- t.push(U(e));
+ t.push(H(e));
}
return {
failures: t,
@@ -40092,22 +40093,22 @@ function $de({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
w(""), N(), r(`已添加 ${e.sources.length} 个关注来源`);
},
- onError: (e) => w(U(e))
- }), ae = e.suggestions || [], oe = !s.includes("/");
- return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Zi({
+ onError: (e) => w(H(e))
+ }), oe = e.suggestions || [], se = !s.includes("/");
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
+ className: Qi({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
children: [
- /* @__PURE__ */ (0, z.jsx)("h3", {
+ /* @__PURE__ */ (0, R.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "添加关注"
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
ref: _,
className: "min-w-64 grow",
onFocus: () => f(!0),
@@ -40115,58 +40116,58 @@ function $de({ 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, z.jsx)(py, {
+ children: [/* @__PURE__ */ (0, R.jsx)(my, {
"aria-label": "来源链接、名字或 id",
placeholder: Kde,
value: a,
- leadingIcon: gt,
+ leadingIcon: _t,
isDisabled: n,
onChange: o,
- onKeyDown: te
- }), F ? /* @__PURE__ */ (0, z.jsx)(Xde, {
+ onKeyDown: ne
+ }), F ? /* @__PURE__ */ (0, R.jsx)(Xde, {
field: _,
menu: v,
options: O,
active: h,
busy: ee,
onPick: P,
- onClose: I
+ onClose: te
}) : null]
}),
- /* @__PURE__ */ (0, z.jsx)(Zde, {
+ /* @__PURE__ */ (0, R.jsx)(Zde, {
credentials: t,
hidden: y,
onHidden: b,
openCredentials: i
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "primary",
disabled: n || !a.trim(),
- ...q(A || M.isPending),
+ ...K(A || M.isPending),
onClick: () => P(a),
children: "查找"
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [A || M.isPending ? /* @__PURE__ */ (0, z.jsx)(lO, {
+ children: [A || M.isPending ? /* @__PURE__ */ (0, R.jsx)(lO, {
embedded: !0,
- label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? qde : Jde),
+ label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : se ? qde : Jde),
value: k?.checked,
total: k?.total
- }) : null, C ? /* @__PURE__ */ (0, z.jsx)(K, {
+ }) : null, C ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "这一次没有完成",
children: C
}) : null]
}),
- ne.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ re.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(jy, { children: "查找结果" }),
- ne.map((e, t) => /* @__PURE__ */ (0, z.jsx)(Qde, {
+ /* @__PURE__ */ (0, R.jsx)(My, { children: "查找结果" }),
+ re.map((e, t) => /* @__PURE__ */ (0, R.jsx)(Qde, {
row: e,
at: t,
hidden: y,
@@ -40176,38 +40177,38 @@ function $de({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
t ? n.delete(e) : n.add(e), S(n);
}
}, `${e.line}-${t}`)),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "primary",
size: "small",
- disabled: n || !re.length,
- ...q(ie.isPending),
- onClick: () => ie.mutate(re),
- children: `添加选中(${re.length})`
+ disabled: n || !ie.length,
+ ...K(ae.isPending),
+ onClick: () => ae.mutate(ie),
+ children: `添加选中(${ie.length})`
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
onClick: () => N(),
children: "关闭"
}),
- ie.isPending ? /* @__PURE__ */ (0, z.jsx)("span", {
+ ae.isPending ? /* @__PURE__ */ (0, R.jsx)("span", {
role: "status",
className: "text-body-2-regular text-text-secondary",
- children: `添加中… ${T}/${re.length}`
+ children: `添加中… ${T}/${ie.length}`
}) : null
]
})
]
}) : null,
- ae.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ oe.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: "猜你喜欢"
- }), ae.map((e) => /* @__PURE__ */ (0, z.jsx)(H, {
+ }), oe.map((e) => /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: n,
@@ -40227,26 +40228,26 @@ function tfe(e, t, n) {
return i ? e.filter((e) => e.author_key === i.author_key) : [];
}
function eN({ sources: e, name: t, canonicalKey: n }) {
- return /* @__PURE__ */ (0, z.jsxs)("span", {
+ return /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(JM, {
+ children: [/* @__PURE__ */ (0, R.jsx)(JM, {
group: tfe(e, t, n),
name: t
- }), /* @__PURE__ */ (0, z.jsx)("b", {
+ }), /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-body-medium",
children: t
})]
});
}
function nfe({ 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 = er({
+ let [a, o] = (0, L.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, L.useState)(""), [l, u] = (0, L.useState)(""), [d, f] = (0, L.useState)(""), p = tr({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
await iM(n.canonical, n.alias);
} catch (n) {
- throw t && dM(), Error(`${U(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && dM(), Error(`${H(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -40258,19 +40259,19 @@ function nfe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
onSuccess: (e) => {
c(""), o(/* @__PURE__ */ new Set()), dM(), i(`已合并 ${e.done} 组创作者别名`);
},
- onError: (e) => c(U(e))
- }), m = er({
+ onError: (e) => c(H(e))
+ }), m = tr({
mutationFn: (e) => iM(e.canonical, e.alias),
onSuccess: () => {
c(""), u(""), f(""), dM(), i("已保存创作者别名");
},
- onError: (e) => c(U(e))
- }), h = er({
+ onError: (e) => c(H(e))
+ }), h = tr({
mutationFn: (e) => Xue(e),
onSuccess: () => {
c(""), dM(), i("已移除创作者别名");
},
- onError: (e) => c(U(e))
+ onError: (e) => c(H(e))
}), g = (e, t) => {
e.length && b({
title: t ? "合并全部创作者别名" : "合并所选创作者别名",
@@ -40278,23 +40279,23 @@ function nfe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => p.mutateAsync(e)
});
- }, _ = t.filter((e) => a.has($M(e))), v = t.length > 0 && _.length === t.length, y = q(p.isPending);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Zi({
+ }, _ = t.filter((e) => a.has($M(e))), v = t.length > 0 && _.length === t.length, y = K(p.isPending);
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
+ className: Qi({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
children: [
- /* @__PURE__ */ (0, z.jsx)("h3", {
+ /* @__PURE__ */ (0, R.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "创作者别名"
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(jy, { children: "手动添加别名" }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)(My, { children: "手动添加别名" }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(py, {
+ /* @__PURE__ */ (0, R.jsx)(my, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: l,
@@ -40302,7 +40303,7 @@ function nfe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, z.jsx)(py, {
+ /* @__PURE__ */ (0, R.jsx)(my, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: d,
@@ -40310,10 +40311,10 @@ function nfe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "primary",
disabled: r || !l.trim() || !d.trim(),
- ...q(m.isPending),
+ ...K(m.isPending),
onClick: () => m.mutate({
canonical: l.trim(),
alias: d.trim()
@@ -40323,18 +40324,18 @@ function nfe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, z.jsx)(Ay, { children: s }) : null,
- t.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ s ? /* @__PURE__ */ (0, R.jsx)(jy, { children: s }) : null,
+ t.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(jy, { children: "待合并" }),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)(My, { children: "待合并" }),
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: r || !_.length,
@@ -40342,7 +40343,7 @@ function nfe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
onClick: () => g(_, !1),
children: `合并所选(${_.length})`
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "primary",
size: "small",
disabled: r,
@@ -40351,13 +40352,13 @@ function nfe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, z.jsx)(bO, { children: /* @__PURE__ */ (0, z.jsxs)(vO, {
+ }), /* @__PURE__ */ (0, R.jsx)(bO, { children: /* @__PURE__ */ (0, R.jsxs)(vO, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsxs)(Wv, { children: [
- /* @__PURE__ */ (0, z.jsx)(Kv, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(Gv, { children: [
+ /* @__PURE__ */ (0, R.jsx)(qv, {
id: "select",
- children: /* @__PURE__ */ (0, z.jsx)(_O, {
+ children: /* @__PURE__ */ (0, R.jsx)(_O, {
slot: null,
isSelected: v,
isIndeterminate: _.length > 0 && !v,
@@ -40365,30 +40366,30 @@ function nfe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
onChange: (e) => o(e ? new Set(t.map($M)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, z.jsx)(Kv, {
+ /* @__PURE__ */ (0, R.jsx)(qv, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, z.jsx)(Kv, {
+ /* @__PURE__ */ (0, R.jsx)(qv, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, z.jsx)(Kv, {
+ /* @__PURE__ */ (0, R.jsx)(qv, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, z.jsx)(Kv, {
+ /* @__PURE__ */ (0, R.jsx)(qv, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, z.jsx)(Jv, { children: t.map((e) => {
+ ] }), /* @__PURE__ */ (0, R.jsx)(Yv, { children: t.map((e) => {
let t = $M(e);
- return /* @__PURE__ */ (0, z.jsxs)(Zv, {
+ return /* @__PURE__ */ (0, R.jsxs)(Qv, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, z.jsx)($v, { children: /* @__PURE__ */ (0, z.jsx)(_O, {
+ /* @__PURE__ */ (0, R.jsx)(ey, { children: /* @__PURE__ */ (0, R.jsx)(_O, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -40397,16 +40398,16 @@ function nfe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, z.jsx)($v, { children: /* @__PURE__ */ (0, z.jsx)(eN, {
+ /* @__PURE__ */ (0, R.jsx)(ey, { children: /* @__PURE__ */ (0, R.jsx)(eN, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, z.jsx)($v, { children: e.alias }),
- /* @__PURE__ */ (0, z.jsx)($v, { children: /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)(ey, { children: e.alias }),
+ /* @__PURE__ */ (0, R.jsx)(ey, { children: /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, z.jsx)($v, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(ey, { children: /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: r,
@@ -40419,42 +40420,42 @@ function nfe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}) })]
}) })]
}) : null,
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(jy, { children: "已保存别名" }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)(My, { children: "已保存别名" }), /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, z.jsx)(bO, { children: /* @__PURE__ */ (0, z.jsxs)(vO, {
+ }), e.length ? /* @__PURE__ */ (0, R.jsx)(bO, { children: /* @__PURE__ */ (0, R.jsxs)(vO, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsxs)(Wv, { children: [/* @__PURE__ */ (0, z.jsx)(Kv, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(Gv, { children: [/* @__PURE__ */ (0, R.jsx)(qv, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, z.jsx)(Kv, {
+ }), /* @__PURE__ */ (0, R.jsx)(qv, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, z.jsx)(Jv, { children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)(Zv, {
+ })] }), /* @__PURE__ */ (0, R.jsx)(Yv, { children: e.map((e) => /* @__PURE__ */ (0, R.jsxs)(Qv, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, z.jsx)($v, { children: /* @__PURE__ */ (0, z.jsx)(eN, {
+ children: [/* @__PURE__ */ (0, R.jsx)(ey, { children: /* @__PURE__ */ (0, R.jsx)(eN, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, z.jsx)($v, { children: /* @__PURE__ */ (0, z.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, R.jsx)(ey, { children: /* @__PURE__ */ (0, R.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
- children: e.aliases.map((e) => /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: e.aliases.map((e) => /* @__PURE__ */ (0, R.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",
- children: [e.name, /* @__PURE__ */ (0, z.jsx)(H, {
+ children: [e.name, /* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: Xe,
+ leadingIcon: Ze,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
- ...q(h.isPending),
+ ...K(h.isPending),
onClick: () => void b({
title: "移除创作者别名",
body: efe(e.name),
@@ -40465,9 +40466,9 @@ function nfe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, z.jsx)($i, {
+ }) }) : /* @__PURE__ */ (0, R.jsx)(ea, {
shell: "plain",
- icon: St,
+ icon: Ct,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})]
@@ -40482,32 +40483,32 @@ function sfe(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
function cfe({ row: e }) {
- if (mM(e)) return /* @__PURE__ */ (0, z.jsx)(zi, {
+ if (mM(e)) return /* @__PURE__ */ (0, R.jsx)(Bi, {
variant: "caption",
color: "lime",
children: "已配置"
});
let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";
- return /* @__PURE__ */ (0, z.jsx)(zi, {
+ return /* @__PURE__ */ (0, R.jsx)(Bi, {
variant: "caption",
color: t,
children: sde[e.requirement] || ""
});
}
function lfe({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, R.useState)({}), [a, o] = (0, R.useState)(""), s = mM(e), c = er({
+ let [r, i] = (0, L.useState)({}), [a, o] = (0, L.useState)(""), s = mM(e), c = tr({
mutationFn: (t) => Zue(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
return;
}
- o(""), i({}), X.invalidateQueries({
+ o(""), i({}), Y.invalidateQueries({
queryKey: Fj,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
- onError: (e) => o(U(e))
+ onError: (e) => o(H(e))
}), l = () => {
let e = Object.fromEntries(Object.entries(r).map(([e, t]) => [e, t.trim()]).filter(([, e]) => e));
if (!Object.keys(e).length) {
@@ -40516,17 +40517,17 @@ function lfe({ row: e, readOnly: t, toast: n }) {
}
c.mutate(e);
};
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsxs)(ky, { children: [e.why, e.where ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [" ", /* @__PURE__ */ (0, z.jsx)(My, {
+ /* @__PURE__ */ (0, R.jsxs)(Ay, { children: [e.why, e.where ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [" ", /* @__PURE__ */ (0, R.jsx)(Ny, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, z.jsx)(ky, { children: e.howto }) : null,
- /* @__PURE__ */ (0, z.jsx)("div", {
+ e.howto ? /* @__PURE__ */ (0, R.jsx)(Ay, { children: e.howto }) : null,
+ /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex w-full flex-col gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, z.jsx)(py, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, R.jsx)(my, {
type: "password",
label: n,
placeholder: sfe(e, n),
@@ -40541,20 +40542,20 @@ function lfe({ row: e, readOnly: t, toast: n }) {
className: "w-full min-w-0"
}, n))
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, R.jsx)(V, {
variant: "primary",
size: "small",
disabled: t,
- ...q(c.isPending),
+ ...K(c.isPending),
onClick: l,
children: "保存配置"
- }), s ? /* @__PURE__ */ (0, z.jsx)(H, {
+ }), s ? /* @__PURE__ */ (0, R.jsx)(V, {
variant: "danger",
size: "small",
disabled: t,
- ...q(c.isPending),
+ ...K(c.isPending),
onClick: () => void b({
title: "清除来源凭据",
body: afe,
@@ -40565,14 +40566,14 @@ function lfe({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, z.jsx)(Ay, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, z.jsx)(ky, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, z.jsx)(cO, {
+ a ? /* @__PURE__ */ (0, R.jsx)(jy, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, R.jsx)(Ay, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ e.path ? /* @__PURE__ */ (0, R.jsx)(cO, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
}) : null,
- e.world_readable ? /* @__PURE__ */ (0, z.jsx)(K, {
+ e.world_readable ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "凭据文件权限过宽",
children: ofe
@@ -40581,34 +40582,34 @@ function lfe({ row: e, readOnly: t, toast: n }) {
});
}
function ufe({ row: e, readOnly: t, toast: n }) {
- let r = /* @__PURE__ */ (0, z.jsxs)("span", {
+ let r = /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, z.jsx)(qM, { provider: e.provider })
+ children: /* @__PURE__ */ (0, R.jsx)(qM, { provider: e.provider })
}),
- /* @__PURE__ */ (0, z.jsx)("b", {
+ /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, z.jsx)(cfe, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, z.jsx)(zi, {
+ /* @__PURE__ */ (0, R.jsx)(cfe, { row: e }),
+ e.missing.length ? /* @__PURE__ */ (0, R.jsx)(Bi, {
variant: "caption",
color: "rose",
children: `缺 ${e.missing.join("、")}`
}) : null
]
});
- return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, R.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, z.jsx)(ky, { children: e.why }) : null]
- }) : /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, R.jsx)(Ay, { children: e.why }) : null]
+ }) : /* @__PURE__ */ (0, R.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, z.jsx)(Fy, {
+ children: [r, /* @__PURE__ */ (0, R.jsx)(Iy, {
summary: mM(e) ? "修改凭据" : "填写凭据",
defaultOpen: e.requirement === "required" && !mM(e),
- children: /* @__PURE__ */ (0, z.jsx)(lfe, {
+ children: /* @__PURE__ */ (0, R.jsx)(lfe, {
row: e,
readOnly: t,
toast: n
@@ -40618,18 +40619,18 @@ function ufe({ row: e, readOnly: t, toast: n }) {
}
function dfe({ data: e, readOnly: t, toast: n }) {
let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !mM(e));
- return r.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Zi({
+ return r.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
+ className: Qi({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h3", {
className: "mr-auto text-title-2-medium text-text-primary",
children: "来源和凭证"
- }), i.length ? /* @__PURE__ */ (0, z.jsx)("span", {
+ }), i.length ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-error-primary",
children: `${i.length} 个待配置`
}) : null]
@@ -40647,37 +40648,37 @@ function dfe({ data: e, readOnly: t, toast: n }) {
title: "暂不支持",
rows: r.filter((e) => e.requirement === "blocked")
}
- ].filter((e) => e.rows.length).map((e) => /* @__PURE__ */ (0, z.jsxs)("section", {
+ ].filter((e) => e.rows.length).map((e) => /* @__PURE__ */ (0, R.jsxs)("section", {
"aria-label": e.title,
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)("h4", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h4", {
className: "text-body-medium text-text-secondary",
children: e.title
- }), /* @__PURE__ */ (0, z.jsx)("div", {
- className: Zi({
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
+ className: Qi({
variant: "outlined",
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: e.rows.map((e) => /* @__PURE__ */ (0, z.jsx)(ufe, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, R.jsx)(ufe, {
row: e,
readOnly: t,
toast: n
}, e.provider))
})]
}, e.title)),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, z.jsx)("b", {
+ /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-body-medium text-text-primary",
children: rfe
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: ife
}),
- /* @__PURE__ */ (0, z.jsx)(cO, {
+ /* @__PURE__ */ (0, R.jsx)(cO, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -40686,9 +40687,9 @@ function dfe({ data: e, readOnly: t, toast: n }) {
]
})
]
- }) : /* @__PURE__ */ (0, z.jsx)($i, {
+ }) : /* @__PURE__ */ (0, R.jsx)(ea, {
shell: "plain",
- icon: ut,
+ icon: dt,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
@@ -42066,7 +42067,7 @@ function UN(e) {
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
function WN(e, t) {
- return e ? Ufe(e) ? /*#__PURE__*/ R.createElement(e, t) : e : null;
+ return e ? Ufe(e) ? /*#__PURE__*/ L.createElement(e, t) : e : null;
}
function Ufe(e) {
return Wfe(e) || typeof e == "function" || Gfe(e);
@@ -42086,7 +42087,7 @@ function GN(e) {
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = R.useState(() => ({ current: Vfe(t) })), [r, i] = R.useState(() => n.current.initialState);
+ }, [n] = L.useState(() => ({ current: Vfe(t) })), [r, i] = L.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -42101,7 +42102,7 @@ function GN(e) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var Kfe = Li({
+var Kfe = Ri({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -42165,25 +42166,25 @@ var Kfe = Li({
});
function qfe({ state: e, size: t = "md", shape: n = "pill" }) {
let r = Kfe[t];
- return /* @__PURE__ */ (0, z.jsx)("span", {
+ return /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
- className: Ii("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Ii("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, z.jsx)("span", {
- className: Ii("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, z.jsx)("span", { className: Ii("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: Li("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Li("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, R.jsx)("span", {
+ className: Li("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, R.jsx)("span", { className: Li("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 KN({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, z.jsx)(Jee, {
+ return /* @__PURE__ */ (0, R.jsx)(Jee, {
ref: i,
...a,
- className: (t) => Ii("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, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(qfe, {
+ className: (t) => Li("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, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(qfe, {
state: e,
size: n,
shape: r
- }), t != null && t !== !1 && /* @__PURE__ */ (0, z.jsx)("span", {
+ }), t != null && t !== !1 && /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-medium text-text-primary",
children: t
})] })
@@ -42191,16 +42192,16 @@ function KN({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var qN = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", JN = (0, R.createContext)({});
+var qN = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", JN = (0, L.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-constant.mjs
function YN(e) {
- let t = (0, R.useRef)(null);
+ let t = (0, L.useRef)(null);
return t.current === null && (t.current = e()), t.current;
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
-var XN = typeof window < "u" ? R.useLayoutEffect : R.useEffect, ZN = /* @__PURE__ */ (0, R.createContext)(null), QN = (0, R.createContext)({
+var XN = typeof window < "u" ? L.useLayoutEffect : L.useEffect, ZN = /* @__PURE__ */ (0, L.createContext)(null), QN = (0, L.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
@@ -42226,11 +42227,11 @@ function Jfe(...e) {
};
}
function Yfe(...e) {
- return R.useCallback(Jfe(...e), e);
+ return L.useCallback(Jfe(...e), e);
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var Xfe = class extends R.Component {
+var Xfe = class extends L.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.childRef.current;
if (UT(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
@@ -42245,7 +42246,7 @@ var Xfe = class extends R.Component {
}
};
function Zfe({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
- let o = (0, R.useId)(), s = (0, R.useRef)(null), c = (0, R.useRef)({
+ let o = (0, L.useId)(), s = (0, L.useRef)(null), c = (0, L.useRef)({
width: 0,
height: 0,
top: 0,
@@ -42253,8 +42254,8 @@ function Zfe({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: l } = (0, R.useContext)(QN), u = Yfe(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
- return (0, R.useInsertionEffect)(() => {
+ }), { nonce: l } = (0, L.useContext)(QN), u = Yfe(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
+ return (0, L.useInsertionEffect)(() => {
let { width: e, height: u, top: d, left: f, right: p, bottom: m, direction: h } = c.current;
if (t || a === !1 || !s.current || !e || !u) return;
let g = h === "rtl", _ = n === "left" ? g ? `right: ${p}` : `left: ${f}` : g ? `left: ${f}` : `right: ${p}`, v = r === "bottom" ? `bottom: ${m}` : `top: ${d}`;
@@ -42273,22 +42274,22 @@ function Zfe({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
`), () => {
s.current?.removeAttribute("data-motion-pop-id"), b.contains(y) && b.removeChild(y);
};
- }, [t]), (0, z.jsx)(Xfe, {
+ }, [t]), (0, R.jsx)(Xfe, {
isPresent: t,
childRef: s,
sizeRef: c,
pop: a,
- children: a === !1 ? e : R.cloneElement(e, { ref: u })
+ children: a === !1 ? e : L.cloneElement(e, { ref: u })
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
var Qfe = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = YN($fe), d = (0, R.useId)(), f = (0, R.useRef)(n), p = (0, R.useRef)(r);
+ let u = YN($fe), d = (0, L.useId)(), f = (0, L.useRef)(n), p = (0, L.useRef)(r);
XN(() => {
f.current = n, p.current = r;
});
- let m = !0, h = (0, R.useMemo)(() => (m = !1, {
+ let m = !0, h = (0, L.useMemo)(() => (m = !1, {
id: d,
initial: t,
isPresent: n,
@@ -42306,18 +42307,18 @@ var Qfe = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
u,
r
]);
- return a && m && (h = { ...h }), (0, R.useMemo)(() => {
+ return a && m && (h = { ...h }), (0, L.useMemo)(() => {
u.forEach((e, t) => u.set(t, !1));
- }, [n]), R.useEffect(() => {
+ }, [n]), L.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, z.jsx)(Zfe, {
+ }, [n]), e = (0, R.jsx)(Zfe, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
anchorY: c,
root: l,
children: e
- }), (0, z.jsx)(ZN.Provider, {
+ }), (0, R.jsx)(ZN.Provider, {
value: h,
children: e
});
@@ -42328,13 +42329,13 @@ function $fe() {
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
function eP(e = !0) {
- let t = (0, R.useContext)(ZN);
+ let t = (0, L.useContext)(ZN);
if (t === null) return [!0, null];
- let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, R.useId)();
- (0, R.useEffect)(() => {
+ let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, L.useId)();
+ (0, L.useEffect)(() => {
if (e) return i(a);
}, [e]);
- let o = (0, R.useCallback)(() => e && r && r(a), [
+ let o = (0, L.useCallback)(() => e && r && r(a), [
a,
r,
e
@@ -42342,7 +42343,7 @@ function eP(e = !0) {
return !n && r ? [!1, o] : [!0];
}
function epe() {
- return tpe((0, R.useContext)(ZN));
+ return tpe((0, L.useContext)(ZN));
}
function tpe(e) {
return e === null || e.isPresent;
@@ -42352,14 +42353,14 @@ function tpe(e) {
var tP = (e) => e.key || "";
function nP(e) {
let t = [];
- return R.Children.forEach(e, (e) => {
- (0, R.isValidElement)(e) && t.push(e);
+ return L.Children.forEach(e, (e) => {
+ (0, L.isValidElement)(e) && t.push(e);
}), t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
var npe = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = eP(o), f = (0, R.useMemo)(() => nP(e), [e]), p = o && !u ? [] : f.map(tP), m = (0, R.useRef)(!0), h = (0, R.useRef)(f), g = YN(() => /* @__PURE__ */ new Map()), _ = (0, R.useRef)(/* @__PURE__ */ new Set()), [v, y] = (0, R.useState)(f), [b, x] = (0, R.useState)(f);
+ let [u, d] = eP(o), f = (0, L.useMemo)(() => nP(e), [e]), p = o && !u ? [] : f.map(tP), m = (0, L.useRef)(!0), h = (0, L.useRef)(f), g = YN(() => /* @__PURE__ */ new Map()), _ = (0, L.useRef)(/* @__PURE__ */ new Set()), [v, y] = (0, L.useState)(f), [b, x] = (0, L.useState)(f);
XN(() => {
m.current = !1, h.current = f;
for (let e = 0; e < b.length; e++) {
@@ -42380,10 +42381,10 @@ var npe = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenc
}
return a === "wait" && S.length && (e = S), x(nP(e)), y(f), null;
}
- let { forceRender: C } = (0, R.useContext)(JN);
- return (0, z.jsx)(z.Fragment, { children: b.map((e) => {
+ let { forceRender: C } = (0, L.useContext)(JN);
+ return (0, R.jsx)(R.Fragment, { children: b.map((e) => {
let v = tP(e), y = o && !u ? !1 : f === b || p.includes(v);
- return (0, z.jsx)(Qfe, {
+ return (0, R.jsx)(Qfe, {
isPresent: y,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -42404,7 +42405,7 @@ var npe = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenc
children: e
}, v);
}) });
-}, rP = (0, R.createContext)({ strict: !1 }), iP = {
+}, rP = (0, L.createContext)({ strict: !1 }), iP = {
animation: [
"animate",
"variants",
@@ -42469,14 +42470,14 @@ function sP(e) {
}
//#endregion
//#region __vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion
-var ope = /* @__PURE__ */ De({ default: () => cP }), cP, spe = Te((() => {
+var ope = /* @__PURE__ */ Oe({ default: () => cP }), cP, spe = Ee((() => {
throw cP = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
})), lP = (e) => !sP(e);
function uP(e) {
typeof e == "function" && (lP = (t) => t.startsWith("on") ? !sP(t) : e(t));
}
try {
- uP((spe(), Ae(ope)).default);
+ uP((spe(), je(ope)).default);
} catch {}
function cpe(e, t, n) {
let r = {};
@@ -42487,25 +42488,25 @@ function cpe(e, t, n) {
//#region node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
function lpe({ children: e, isValidProp: t, ...n }) {
t && uP(t);
- let r = (0, R.useContext)(QN);
+ let r = (0, L.useContext)(QN);
n = {
...r,
...n
}, n.transition = hT(n.transition, r.transition), n.isStatic = YN(() => n.isStatic);
- let i = (0, R.useMemo)(() => n, [
+ let i = (0, L.useMemo)(() => n, [
JSON.stringify(n.transition),
n.transformPagePoint,
n.reducedMotion,
n.skipAnimations
]);
- return (0, z.jsx)(QN.Provider, {
+ return (0, R.jsx)(QN.Provider, {
value: i,
children: e
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var dP = /* @__PURE__ */ (0, R.createContext)({});
+var dP = /* @__PURE__ */ (0, L.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
function upe(e, t) {
@@ -42521,8 +42522,8 @@ function upe(e, t) {
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
function dpe(e) {
- let { initial: t, animate: n } = upe(e, (0, R.useContext)(dP));
- return (0, R.useMemo)(() => ({
+ let { initial: t, animate: n } = upe(e, (0, L.useContext)(dP));
+ return (0, L.useMemo)(() => ({
initial: t,
animate: n
}), [fP(t), fP(n)]);
@@ -42544,7 +42545,7 @@ function mP(e, t, n) {
for (let r in t) !wT(t[r]) && !QE(r, n) && (e[r] = t[r]);
}
function fpe({ transformTemplate: e }, t) {
- return (0, R.useMemo)(() => {
+ return (0, L.useMemo)(() => {
let n = pP();
return qE(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
@@ -42566,7 +42567,7 @@ var hP = () => ({
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/use-props.mjs
function hpe(e, t, n, r) {
- let i = (0, R.useMemo)(() => {
+ let i = (0, L.useMemo)(() => {
let n = hP();
return eD(n, t, nD(r), e.transformTemplate, e.style), {
...n.attrs,
@@ -42619,12 +42620,12 @@ function gP(e) {
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/use-render.mjs
function _pe(e, t, n, { latestValues: r }, i, a = !1, o) {
- let s = (o ?? gP(e) ? hpe : mpe)(t, r, i, e), c = cpe(t, typeof e == "string", a), l = e === R.Fragment ? {} : {
+ let s = (o ?? gP(e) ? hpe : mpe)(t, r, i, e), c = cpe(t, typeof e == "string", a), l = e === L.Fragment ? {} : {
...c,
...s,
ref: n
- }, { children: u } = t, d = (0, R.useMemo)(() => wT(u) ? u.get() : u, [u]);
- return (0, R.createElement)(e, {
+ }, { children: u } = t, d = (0, L.useMemo)(() => wT(u) ? u.get() : u, [u]);
+ return (0, L.createElement)(e, {
...l,
children: d
});
@@ -42666,7 +42667,7 @@ function ype(e, t, n, r) {
return i;
}
var _P = (e) => (t, n) => {
- let r = (0, R.useContext)(dP), i = (0, R.useContext)(ZN), a = () => vpe(e, t, r, i);
+ let r = (0, L.useContext)(dP), i = (0, L.useContext)(ZN), a = () => vpe(e, t, r, i);
return n ? a() : YN(a);
}, bpe = /*@__PURE__*/ _P({
scrapeMotionValuesFromProps: $E,
@@ -42678,12 +42679,12 @@ var _P = (e) => (t, n) => {
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
function Cpe(e, t, n) {
- let r = (0, R.useRef)(n);
- (0, R.useInsertionEffect)(() => {
+ let r = (0, L.useRef)(n);
+ (0, L.useInsertionEffect)(() => {
r.current = n;
});
- let i = (0, R.useRef)(null);
- return (0, R.useCallback)((n) => {
+ let i = (0, L.useRef)(null);
+ return (0, L.useCallback)((n) => {
n && e.onMount?.(n), t && (n ? t.mount(n) : t.unmount());
let a = r.current;
if (typeof a == "function") {
@@ -42696,7 +42697,7 @@ function Cpe(e, t, n) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var vP = (0, R.createContext)({});
+var vP = (0, L.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
function yP(e) {
@@ -42705,7 +42706,7 @@ function yP(e) {
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
function wpe(e, t, n, r, i, a) {
- let { visualElement: o } = (0, R.useContext)(dP), s = (0, R.useContext)(rP), c = (0, R.useContext)(ZN), l = (0, R.useContext)(QN), u = l.reducedMotion, d = l.skipAnimations, f = (0, R.useRef)(null), p = (0, R.useRef)(!1);
+ let { visualElement: o } = (0, L.useContext)(dP), s = (0, L.useContext)(rP), c = (0, L.useContext)(ZN), l = (0, L.useContext)(QN), u = l.reducedMotion, d = l.skipAnimations, f = (0, L.useRef)(null), p = (0, L.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -42716,16 +42717,16 @@ function wpe(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, R.useContext)(vP);
+ let m = f.current, h = (0, L.useContext)(vP);
m && !m.projection && i && (m.type === "html" || m.type === "svg") && Tpe(f.current, n, i, h);
- let g = (0, R.useRef)(!1);
- (0, R.useInsertionEffect)(() => {
+ let g = (0, L.useRef)(!1);
+ (0, L.useInsertionEffect)(() => {
m && g.current && m.update(n, c);
});
- let _ = n[DT], v = (0, R.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
+ let _ = n[DT], v = (0, L.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
return XN(() => {
p.current = !0, m && (g.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), v.current && m.animationState && m.animationState.animateChanges());
- }), (0, R.useEffect)(() => {
+ }), (0, L.useEffect)(() => {
m && (!v.current && m.animationState && m.animationState.animateChanges(), v.current &&= (queueMicrotask(() => {
window.MotionHandoffMarkAsComplete?.(_);
}), !1), m.enteringChildren = void 0);
@@ -42756,7 +42757,7 @@ function xP(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
let a = n ? n === "svg" : gP(e), o = a ? xpe : bpe;
function s(n, s) {
let c, l = {
- ...(0, R.useContext)(QN),
+ ...(0, L.useContext)(QN),
...n,
layoutId: Epe(n)
}, { isStatic: u } = l, d = dpe(n), f = o(n, u);
@@ -42765,24 +42766,24 @@ function xP(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
let t = Ope(l);
c = t.MeasureLayout, d.visualElement = wpe(e, f, l, i, t.ProjectionNode, a);
}
- return (0, z.jsxs)(dP.Provider, {
+ return (0, R.jsxs)(dP.Provider, {
value: d,
- children: [c && d.visualElement ? (0, z.jsx)(c, {
+ children: [c && d.visualElement ? (0, R.jsx)(c, {
visualElement: d.visualElement,
...l
}) : null, _pe(e, n, Cpe(f, d.visualElement, s), f, u, t, a)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
- let c = (0, R.forwardRef)(s);
+ let c = (0, L.forwardRef)(s);
return c[Spe] = e, c;
}
function Epe({ layoutId: e }) {
- let t = (0, R.useContext)(JN).id;
+ let t = (0, L.useContext)(JN).id;
return t && e !== void 0 ? t + "-" + e : e;
}
function Dpe(e, t) {
- (0, R.useContext)(rP).strict;
+ (0, L.useContext)(rP).strict;
}
function Ope(e) {
let { drag: t, layout: n } = oP();
@@ -42805,7 +42806,7 @@ function kpe(e, t) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var Ape = (e, t) => t.isSVG ?? gP(e) ? new Qoe(t) : new Koe(t, { allowProjection: e !== R.Fragment }), jpe = class extends kE {
+var Ape = (e, t) => t.isSVG ?? gP(e) ? new Qoe(t) : new Koe(t, { allowProjection: e !== L.Fragment }), jpe = class extends kE {
constructor(e) {
super(e), e.animationState ||= rse(e);
}
@@ -42890,7 +42891,7 @@ var wP = ({ current: e }) => e ? e.ownerDocument.defaultView : null, TP = /*#__P
y: 0
}) >= this.distanceThreshold;
if (!t && !n) return;
- let { point: r } = e, { timestamp: i } = rC;
+ let { point: r } = e, { timestamp: i } = iC;
this.history.push({
...r,
timestamp: i
@@ -42898,7 +42899,7 @@ var wP = ({ current: e }) => e ? e.ownerDocument.defaultView : null, TP = /*#__P
let { onStart: a, onMove: o } = this.handlers;
t || (a && a(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), o && o(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = DP(t, this.transformPagePoint), tC.update(this.updatePoint, !0);
+ this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = DP(t, this.transformPagePoint), nC.update(this.updatePoint, !0);
}, this.handlePointerUp = (e, t) => {
this.end();
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
@@ -42907,7 +42908,7 @@ var wP = ({ current: e }) => e ? e.ownerDocument.defaultView : null, TP = /*#__P
this.startEvent && n && n(e, a), r && r(e, a);
}, !YT(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = DP(SP(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = rC;
+ let s = DP(SP(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = iC;
this.history = [{
...c,
timestamp: l
@@ -42918,7 +42919,7 @@ var wP = ({ current: e }) => e ? e.ownerDocument.defaultView : null, TP = /*#__P
passive: !0,
capture: !0
};
- this.removeListeners = MS(CP(this.contextWindow, "pointermove", this.handlePointerMove, d), CP(this.contextWindow, "pointerup", this.handlePointerUp, d), CP(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
+ this.removeListeners = NS(CP(this.contextWindow, "pointermove", this.handlePointerMove, d), CP(this.contextWindow, "pointerup", this.handlePointerUp, d), CP(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
@@ -42949,13 +42950,13 @@ var wP = ({ current: e }) => e ? e.ownerDocument.defaultView : null, TP = /*#__P
x: r.x - t.x,
y: r.y - t.y
};
- (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), tC.update(this.updatePoint, !0));
+ (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), nC.update(this.updatePoint, !0));
}
updateHandlers(e) {
this.handlers = e;
}
end() {
- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), nC(this.updatePoint);
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), rC(this.updatePoint);
}
};
function DP(e, t) {
@@ -42987,13 +42988,13 @@ function Ipe(e, t) {
y: 0
};
let n = e.length - 1, r = null, i = AP(e);
- for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ FS(t)));) n--;
+ for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ IS(t)));) n--;
if (!r) return {
x: 0,
y: 0
};
- r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ FS(t) * 2 && (r = e[1]);
- let a = /* @__PURE__ */ IS(i.timestamp - r.timestamp);
+ r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ IS(t) * 2 && (r = e[1]);
+ let a = /* @__PURE__ */ LS(i.timestamp - r.timestamp);
if (a === 0) return {
x: 0,
y: 0
@@ -43036,7 +43037,7 @@ function zpe(e, t) {
}
function Bpe(e, t) {
let n = .5, r = dD(e), i = dD(t);
- return i > r ? n = /* @__PURE__ */ NS(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ NS(e.min, e.max - i, t.min)), TS(0, 1, n);
+ return i > r ? n = /* @__PURE__ */ PS(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ PS(e.min, e.max - i, t.min)), ES(0, 1, n);
}
function Vpe(e, t) {
let n = {};
@@ -43077,7 +43078,7 @@ var Upe = /* @__PURE__ */ new WeakMap(), Wpe = class {
if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = uoe(n), !this.openDragLock)) return;
this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), DD((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
- if (CC.test(t)) {
+ if (wC.test(t)) {
let { projection: n } = this.visualElement;
if (n && n.layout) {
let r = n.layout.layoutBox[e];
@@ -43085,7 +43086,7 @@ var Upe = /* @__PURE__ */ new WeakMap(), Wpe = class {
}
}
this.originPoint[e] = t;
- }), i && tC.update(() => i(e, t), !1, !0), TT(this.visualElement, "transform");
+ }), i && nC.update(() => i(e, t), !1, !0), TT(this.visualElement, "transform");
let { animationState: a } = this.visualElement;
a && a.setActive("whileDrag", !0);
}, o = (e, t) => {
@@ -43097,7 +43098,7 @@ var Upe = /* @__PURE__ */ new WeakMap(), Wpe = class {
this.currentDirection = Kpe(o), this.currentDirection !== null && i && i(this.currentDirection);
return;
}
- this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && tC.update(() => a(e, t), !1, !0);
+ this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && nC.update(() => a(e, t), !1, !0);
}, s = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
}, c = () => {
@@ -43127,7 +43128,7 @@ var Upe = /* @__PURE__ */ new WeakMap(), Wpe = class {
let { velocity: a } = r;
this.startAnimation(a);
let { onDragEnd: o } = this.getProps();
- o && tC.postRender(() => o(n, r));
+ o && nC.postRender(() => o(n, r));
}
cancel() {
this.isDragging = !1;
@@ -43245,7 +43246,7 @@ var Upe = /* @__PURE__ */ new WeakMap(), Wpe = class {
let { dragConstraints: t } = this.getProps();
yP(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= Gpe(e, t.current, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
- i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), tC.read(r);
+ i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), nC.read(r);
let o = MD(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
this.isDragging && t && (DD((t) => {
let n = this.getAxisMotionValue(t);
@@ -43296,11 +43297,11 @@ function Kpe(e, t = 10) {
//#region node_modules/framer-motion/dist/es/gestures/drag/index.mjs
var qpe = class extends kE {
constructor(e) {
- super(e), this.removeGroupControls = jS, this.removeListeners = jS, this.controls = new Wpe(e);
+ super(e), this.removeGroupControls = MS, this.removeListeners = MS, this.controls = new Wpe(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || jS;
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || MS;
}
update() {
let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
@@ -43310,10 +43311,10 @@ var qpe = class extends kE {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
}, RP = (e) => (t, n) => {
- e && tC.update(() => e(t, n), !1, !0);
+ e && nC.update(() => e(t, n), !1, !0);
}, Jpe = class extends kE {
constructor() {
- super(...arguments), this.removePointerDownListener = jS;
+ super(...arguments), this.removePointerDownListener = MS;
}
onPointerDown(e) {
this.session = new EP(e, this.createPanHandlers(), {
@@ -43328,7 +43329,7 @@ var qpe = class extends kE {
onStart: RP(t),
onMove: RP(n),
onEnd: (e, t) => {
- delete this.session, r && tC.postRender(() => r(e, t));
+ delete this.session, r && nC.postRender(() => r(e, t));
}
};
}
@@ -43341,7 +43342,7 @@ var qpe = class extends kE {
unmount() {
this.removePointerDownListener(), this.session && this.session.end();
}
-}, zP = !1, Ype = class extends R.Component {
+}, zP = !1, Ype = class extends L.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
i && (t.group && t.group.add(i), n && n.register && r && n.register(i), zP && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
@@ -43357,7 +43358,7 @@ var qpe = class extends kE {
return a ? (a.isPresent = i, e.layoutDependency !== t && a.setOptions({
...a.options,
layoutDependency: t
- }), zP = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || tC.postRender(() => {
+ }), zP = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || nC.postRender(() => {
let e = a.getStack();
(!e || !e.members.length) && this.safeToRemove();
})), null) : null;
@@ -43381,11 +43382,11 @@ var qpe = class extends kE {
}
};
function BP(e) {
- let [t, n] = eP(), r = (0, R.useContext)(JN);
- return (0, z.jsx)(Ype, {
+ let [t, n] = eP(), r = (0, L.useContext)(JN);
+ return (0, R.jsx)(Ype, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, R.useContext)(vP),
+ switchLayoutGroup: (0, L.useContext)(vP),
isPresent: t,
safeToRemove: n
});
@@ -43406,7 +43407,7 @@ function VP(e, t, n) {
let { props: r } = e;
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
let i = r["onHover" + n];
- i && tC.postRender(() => i(t, SP(t)));
+ i && nC.postRender(() => i(t, SP(t)));
}
var Zpe = class extends kE {
mount() {
@@ -43431,7 +43432,7 @@ var Zpe = class extends kE {
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = MS(MD(this.node.current, "focus", () => this.onFocus()), MD(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = NS(MD(this.node.current, "focus", () => this.onFocus()), MD(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
@@ -43442,7 +43443,7 @@ function HP(e, t, n) {
if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
let i = r["onTap" + (n === "End" ? "" : n)];
- i && tC.postRender(() => i(t, SP(t)));
+ i && nC.postRender(() => i(t, SP(t)));
}
var $pe = class extends kE {
mount() {
@@ -43538,7 +43539,7 @@ var sme = {
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-motion-value-event.mjs
function GP(e, t, n) {
- (0, R.useInsertionEffect)(() => e.on(t, n), [
+ (0, L.useInsertionEffect)(() => e.on(t, n), [
e,
t,
n
@@ -43547,10 +43548,10 @@ function GP(e, t, n) {
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-motion-value.mjs
function KP(e) {
- let t = YN(() => mT(e)), { isStatic: n } = (0, R.useContext)(QN);
+ let t = YN(() => mT(e)), { isStatic: n } = (0, L.useContext)(QN);
if (n) {
- let [, n] = (0, R.useState)(e);
- (0, R.useEffect)(() => t.on("change", n), []);
+ let [, n] = (0, L.useState)(e);
+ (0, L.useEffect)(() => t.on("change", n), []);
}
return t;
}
@@ -43559,9 +43560,9 @@ function KP(e) {
function qP(e, t) {
let n = KP(t()), r = () => n.set(t());
return r(), XN(() => {
- let t = () => tC.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));
+ let t = () => nC.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));
return () => {
- n.forEach((e) => e()), nC(r);
+ n.forEach((e) => e()), rC(r);
};
}), n;
}
@@ -43603,10 +43604,10 @@ function dme(e, t, n, r) {
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-follow-value.mjs
function fme(e, t = {}) {
- let { isStatic: n } = (0, R.useContext)(QN), r = () => wT(e) ? e.get() : e;
+ let { isStatic: n } = (0, L.useContext)(QN), r = () => wT(e) ? e.get() : e;
if (n) return JP(r);
let i = KP(r());
- return (0, R.useInsertionEffect)(() => koe(i, e, t), [i, JSON.stringify(t)]), i;
+ return (0, L.useInsertionEffect)(() => koe(i, e, t), [i, JSON.stringify(t)]), i;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-spring.mjs
@@ -43620,7 +43621,7 @@ function XP(e, t = {}) {
//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
function pme() {
!CE.current && wE();
- let [e] = (0, R.useState)(SE.current);
+ let [e] = (0, L.useState)(SE.current);
return e;
}
//#endregion
@@ -43630,11 +43631,11 @@ var ZP = lme, QP = "(prefers-reduced-motion: reduce)", mme = () => matchMedia(QP
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
};
function gme({ children: e, count: t, label: n }) {
- let r = epe(), i = (0, R.useSyncExternalStore)(hme, mme, () => !1), { isFocusVisible: a } = xs(), o = i || a, s = {
+ let r = epe(), i = (0, L.useSyncExternalStore)(hme, mme, () => !1), { isFocusVisible: a } = Ss(), o = i || a, s = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
- return /* @__PURE__ */ (0, z.jsxs)(ZP.div, {
+ return /* @__PURE__ */ (0, R.jsxs)(ZP.div, {
role: "group",
"aria-label": n,
"data-selection-dock": !0,
@@ -43659,7 +43660,7 @@ function gme({ children: e, count: t, label: n }) {
1
]
},
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
role: "status",
className: "px-2 text-body-2-regular whitespace-nowrap text-text-primary",
children: t
@@ -43667,7 +43668,7 @@ function gme({ children: e, count: t, label: n }) {
});
}
function $P({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, z.jsx)(npe, { children: e ? /* @__PURE__ */ (0, z.jsx)(gme, { ...t }, "selection") : null });
+ return /* @__PURE__ */ (0, R.jsx)(npe, { children: e ? /* @__PURE__ */ (0, R.jsx)(gme, { ...t }, "selection") : null });
}
//#endregion
//#region src/react/follow-manage/add-feed.tsx
@@ -43692,37 +43693,37 @@ function vme(e, t) {
};
}
function yme({ card: e, picked: t, onPick: n }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(_O, {
+ children: [/* @__PURE__ */ (0, R.jsx)(_O, {
isSelected: t,
onChange: n,
- children: /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "min-w-0 break-words",
children: e.names.join("、")
}),
- e.record ? /* @__PURE__ */ (0, z.jsx)(zi, {
+ e.record ? /* @__PURE__ */ (0, R.jsx)(Bi, {
variant: "caption",
color: "neutral",
children: e.record
}) : null,
- e.held_by ? /* @__PURE__ */ (0, z.jsx)("small", {
+ e.held_by ? /* @__PURE__ */ (0, R.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: `已在「${e.held_by.name}」名下`
}) : null
]
})
- }), /* @__PURE__ */ (0, z.jsx)(My, {
+ }), /* @__PURE__ */ (0, R.jsx)(Ny, {
href: e.url,
children: e.id
})]
});
}
function bme({ 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 = aa(), u = () => {
+ let [r, i] = (0, L.useState)(""), [a, o] = (0, L.useState)(null), [s, c] = (0, L.useState)(/* @__PURE__ */ new Set()), l = oa(), u = () => {
let t = r.trim();
!t || e || l.run("lookup", (e) => ede(t, e), (e) => {
o(e), c(new Set(e.suggested));
@@ -43736,68 +43737,68 @@ function bme({ readOnly: e, toast: t, onAdded: n }) {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
}, m = a ? vme(a, s) : null;
- return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Zi({
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
+ className: Qi({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
children: [
- /* @__PURE__ */ (0, z.jsx)("h3", {
+ /* @__PURE__ */ (0, R.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "添加 JAV 订阅"
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, z.jsx)(py, {
+ children: /* @__PURE__ */ (0, R.jsx)(my, {
"aria-label": "女优名",
placeholder: _me,
value: r,
- leadingIcon: gt,
+ leadingIcon: _t,
isDisabled: e,
onChange: i,
onKeyDown: d
})
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
variant: "primary",
disabled: e || !r.trim(),
- ...q(l.busy === "lookup"),
+ ...K(l.busy === "lookup"),
onClick: u,
children: "查找"
})]
}),
- l.error ? /* @__PURE__ */ (0, z.jsx)(K, {
+ l.error ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "这一次没有完成",
children: l.error
}) : null,
- a ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ a ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(jy, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, z.jsx)(yme, {
+ /* @__PURE__ */ (0, R.jsx)(My, { children: "JavDB 上的演员卡" }),
+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, R.jsx)(yme, {
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, z.jsx)(ky, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, z.jsx)(ky, {
+ }, e.id)) : /* @__PURE__ */ (0, R.jsx)(Ay, { children: "JavDB 上没有搜到这个名字。" }),
+ a.candidates.length ? /* @__PURE__ */ (0, R.jsx)(Ay, {
role: "status",
children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
}) : null,
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [a.candidates.length ? /* @__PURE__ */ (0, z.jsx)(H, {
+ children: [a.candidates.length ? /* @__PURE__ */ (0, R.jsx)(V, {
variant: "primary",
size: "small",
disabled: e || !s.size || m.blocked,
- ...q(l.busy === "follow"),
+ ...K(l.busy === "follow"),
onClick: p,
children: `添加订阅(${s.size})`
- }) : null, /* @__PURE__ */ (0, z.jsx)(H, {
+ }) : null, /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
onClick: f,
@@ -43813,7 +43814,7 @@ function bme({ readOnly: e, toast: t, onAdded: n }) {
//#region src/react/follow-manage/source-list.tsx
var xme = Object.fromEntries(Object.entries(zj).map(([e, t]) => [t, e])), eF = 740;
function Sme() {
- let [e, t] = (0, R.useState)(!1), n = (0, R.useRef)(null), r = (0, R.useCallback)((e) => {
+ let [e, t] = (0, L.useState)(!1), n = (0, L.useRef)(null), r = (0, L.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
@@ -43821,7 +43822,7 @@ function Sme() {
let r = new ResizeObserver(() => t(e.clientWidth < eF));
r.observe(e), n.current = r, t(e.clientWidth < eF);
}, []);
- return (0, R.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
+ return (0, L.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
var Cme = {
select: "选择",
@@ -43833,24 +43834,24 @@ var Cme = {
actions: "操作"
};
function tF({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
- return t <= 1 ? null : /* @__PURE__ */ (0, z.jsxs)("nav", {
+ return t <= 1 ? null : /* @__PURE__ */ (0, R.jsxs)("nav", {
"aria-label": r,
className: "flex flex-wrap items-center justify-center gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: e <= 1,
onClick: () => n(e - 1),
children: "上一页"
}),
- /* @__PURE__ */ (0, z.jsx)("ul", {
+ /* @__PURE__ */ (0, R.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: fx(e, t).map((t, r) => /* @__PURE__ */ (0, z.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: px(e, t).map((t, r) => /* @__PURE__ */ (0, R.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
- }) : /* @__PURE__ */ (0, z.jsx)(H, {
+ }) : /* @__PURE__ */ (0, R.jsx)(V, {
variant: t === e ? "secondary" : "ghost",
size: "small",
"aria-label": `第 ${t} 页`,
@@ -43859,7 +43860,7 @@ function tF({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
children: t
}) }, t === "…" ? `dots-${r}` : t))
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: e >= t,
@@ -43870,60 +43871,60 @@ function tF({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
});
}
function wme({ source: e, selected: t, onToggle: n, handlers: r }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
onClick: (e) => {
yO(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, z.jsx)(_O, {
+ /* @__PURE__ */ (0, R.jsx)(_O, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, z.jsx)(XM, { source: e }), e.last_error ? /* @__PURE__ */ (0, z.jsx)("small", {
+ children: [/* @__PURE__ */ (0, R.jsx)(XM, { source: e }), e.last_error ? /* @__PURE__ */ (0, R.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.last_error
}) : null]
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.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, z.jsx)(qM, {
+ children: /* @__PURE__ */ (0, R.jsx)(qM, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, z.jsx)(YM, { source: e }),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)(YM, { source: e }),
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
children: fM(e)
}),
- /* @__PURE__ */ (0, z.jsx)(KN, {
+ /* @__PURE__ */ (0, R.jsx)(KN, {
"aria-label": `启用 ${e.label}`,
isSelected: e.enabled,
isDisabled: r.readOnly,
onChange: (t) => r.toggle(e, t)
}),
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: mt,
+ leadingIcon: ht,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
- ...q(r.busy),
+ ...K(r.busy),
onClick: () => r.check([e.id])
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: $e,
+ leadingIcon: et,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -43934,70 +43935,70 @@ function wme({ source: e, selected: t, onToggle: n, handlers: r }) {
}
function Tme({ 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(Vj).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = Zj(r, c);
- return /* @__PURE__ */ (0, z.jsxs)("section", {
+ return /* @__PURE__ */ (0, R.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: Zi({
+ className: Qi({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
}),
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
"data-follow-author-header": !0,
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, z.jsx)(JM, {
+ /* @__PURE__ */ (0, R.jsx)(JM, {
group: e,
name: t
}),
- /* @__PURE__ */ (0, z.jsx)("b", {
+ /* @__PURE__ */ (0, R.jsx)("b", {
className: "min-w-0 grow text-body-medium break-words text-text-primary",
children: t
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: mt,
+ leadingIcon: ht,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
- ...q(i.busy),
+ ...K(i.busy),
onClick: () => i.check(l)
}),
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, z.jsx)(qM, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, z.jsx)(ju, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, R.jsx)(qM, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, R.jsx)(Mu, { children: `来源:${d}` })]
}),
- u ? /* @__PURE__ */ (0, z.jsx)("span", {
+ u ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
children: `${u} 个失败`
}) : null,
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
- leadingIcon: Je,
+ leadingIcon: Ye,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
children: p.all ? "取消全选" : "全选"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? qe : Ue,
+ leadingIcon: n ? Je : We,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
})
]
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(wme, {
+ children: e.map((e) => /* @__PURE__ */ (0, R.jsx)(wme, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -44007,12 +44008,12 @@ function Tme({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
});
}
function Eme(e) {
- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: f, onPageSize: p, onSelected: m, toast: h, openFollow: g } = e, _ = t.sources, v = (0, R.useMemo)(() => t.author_aliases || [], [t.author_aliases]), y = t.counts || {}, [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), [C, w] = Sme(), [T, E] = (0, R.useState)(""), D = (0, R.useMemo)(() => Hue(_, n, r, v), [
+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: f, onPageSize: p, onSelected: m, toast: h, openFollow: g } = e, _ = t.sources, v = (0, L.useMemo)(() => t.author_aliases || [], [t.author_aliases]), y = t.counts || {}, [x, S] = (0, L.useState)(/* @__PURE__ */ new Set()), [C, w] = Sme(), [T, E] = (0, L.useState)(""), D = (0, L.useMemo)(() => Hue(_, n, r, v), [
_,
n,
r,
v
- ]), O = (0, R.useMemo)(() => Uue(D, n, r, v), [
+ ]), O = (0, L.useMemo)(() => Uue(D, n, r, v), [
D,
n,
r,
@@ -44021,31 +44022,31 @@ function Eme(e) {
queryKey: Nue,
queryFn: ({ signal: e }) => Gue(e),
start: (e) => tM(e),
- onError: (e) => E(U(e)),
+ onError: (e) => E(H(e)),
onFinish: (e) => {
dM(), h(e.status === "failed" ? e.error || "检查失败" : rde(e));
}
}), N = (e) => {
A || M.isPending || (E(""), M.mutate(e));
- }, P = (e, t) => m(Qj(s, [e], t)), ee = (e, t) => m(Qj(s, e, t)), F = er({
+ }, P = (e, t) => m(Qj(s, [e], t)), ee = (e, t) => m(Qj(s, e, t)), F = tr({
mutationFn: (e) => rM(e),
onSuccess: (e, t) => {
uM([t]), m(Qj(s, [t], !1)), h("已取消关注来源");
},
- onError: (e) => E(U(e))
- }), I = er({
+ onError: (e) => E(H(e))
+ }), te = tr({
mutationFn: (e) => nM(e.id, e.enabled),
onSuccess: (e, t) => {
lM(t.id, { enabled: t.enabled }), E("");
},
- onError: (e) => E(U(e))
- }), te = (e) => void b({
+ onError: (e) => E(H(e))
+ }), ne = (e) => void b({
title: "取消关注来源",
body: "将移除这个来源及已抓取的条目,媒体文件保留。",
confirmLabel: "取消关注来源",
danger: !0,
onConfirm: () => F.mutateAsync(e.id)
- }), ne = er({
+ }), re = tr({
mutationFn: async (e) => {
let t = await d(e.ids, 4, async (t) => {
e.action === "remove" ? await rM(t) : await nM(t, e.action === "enabled");
@@ -44062,15 +44063,15 @@ function Eme(e) {
m(Qj(s, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
- E(`${t.length}/${e.ids.length} 个来源未更新:${U(t[0]?.error)}`);
+ E(`${t.length}/${e.ids.length} 个来源未更新:${H(t[0]?.error)}`);
return;
}
E("");
let n = e.action === "remove" ? "删除" : e.action === "enabled" ? "启用" : "暂停";
h(`已${n} ${e.done.length} 个关注来源`);
},
- onError: (e) => E(U(e))
- }), re = er({
+ onError: (e) => E(H(e))
+ }), ie = tr({
mutationFn: async (e) => {
let t = ((await $ue()).groups || []).flatMap((e) => [
e.primary,
@@ -44089,31 +44090,31 @@ function Eme(e) {
}
E(""), h(`已批量标记 ${e.ids.length} 项`);
},
- onError: (e) => E(U(e))
- }), ie = (e, t) => I.mutate({
+ onError: (e) => E(H(e))
+ }), ae = (e, t) => te.mutate({
id: e.id,
enabled: t
- }), ae = (0, R.useRef)({
+ }), oe = (0, L.useRef)({
check: N,
- toggle: ie,
- remove: te,
+ toggle: ae,
+ remove: ne,
busy: !1,
readOnly: c
});
- ae.current = {
+ oe.current = {
check: N,
- toggle: ie,
- remove: te,
+ toggle: ae,
+ remove: ne,
busy: A || M.isPending,
readOnly: c
};
- let oe = ae.current, se = (0, R.useMemo)(() => {
+ let se = oe.current, ce = (0, L.useMemo)(() => {
let e = tN(), t = (e) => () => Cme[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)(_O, {
+ cell: (e) => /* @__PURE__ */ (0, R.jsx)(_O, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -44123,12 +44124,12 @@ function Eme(e) {
e.accessor((e) => e.author, {
id: "author",
header: t("author"),
- cell: (e) => /* @__PURE__ */ (0, z.jsxs)("span", {
+ cell: (e) => /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(JM, {
+ children: [/* @__PURE__ */ (0, R.jsx)(JM, {
group: e.row.original.group,
name: e.row.original.author
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
className: "min-w-0 break-words",
children: e.row.original.author
})]
@@ -44137,9 +44138,9 @@ function Eme(e) {
e.accessor((e) => e.source.label, {
id: "source",
header: t("source"),
- cell: (e) => /* @__PURE__ */ (0, z.jsxs)("span", {
+ cell: (e) => /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, z.jsx)(XM, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, z.jsx)("small", {
+ children: [/* @__PURE__ */ (0, R.jsx)(XM, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, R.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.row.original.source.last_error
}) : null]
@@ -44148,15 +44149,15 @@ function Eme(e) {
e.accessor((e) => e.source.provider_label, {
id: "provider",
header: t("provider"),
- cell: (e) => /* @__PURE__ */ (0, z.jsxs)("span", {
+ cell: (e) => /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, z.jsx)(qM, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, R.jsx)(qM, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)(YM, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, R.jsx)(YM, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
@@ -44166,127 +44167,127 @@ function Eme(e) {
e.display({
id: "actions",
header: t("actions"),
- cell: (e) => /* @__PURE__ */ (0, z.jsxs)("span", {
+ cell: (e) => /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, z.jsx)(KN, {
+ /* @__PURE__ */ (0, R.jsx)(KN, {
"aria-label": `启用 ${e.row.original.source.label}`,
isSelected: e.row.original.source.enabled,
- isDisabled: oe.readOnly,
- onChange: (t) => ae.current.toggle(e.row.original.source, t)
+ isDisabled: se.readOnly,
+ onChange: (t) => oe.current.toggle(e.row.original.source, t)
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: mt,
+ leadingIcon: ht,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
- disabled: !e.row.original.source.enabled || oe.readOnly,
- ...q(oe.busy),
- onClick: () => ae.current.check([e.row.original.source.id])
+ disabled: !e.row.original.source.enabled || se.readOnly,
+ ...K(se.busy),
+ onClick: () => oe.current.check([e.row.original.source.id])
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: $e,
+ leadingIcon: et,
"aria-label": `移除 ${e.row.original.source.label}`,
- disabled: oe.readOnly,
- onClick: () => ae.current.remove(e.row.original.source)
+ disabled: se.readOnly,
+ onClick: () => oe.current.remove(e.row.original.source)
})
]
})
})
];
- }, [oe]), ce = (0, R.useMemo)(() => {
+ }, [se]), le = (0, L.useMemo)(() => {
let e = xme[n];
return e ? [{
id: e,
desc: r === "desc"
}] : [];
- }, [n, r]), le = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), ue = a === "table", L = Xj(ue ? O.length : D.length, o, i), de = GN({
+ }, [n, r]), ue = (0, L.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), de = a === "table", I = Xj(de ? O.length : D.length, o, i), fe = GN({
data: O,
- columns: se,
+ columns: ce,
getRowId: (e) => String(e.source.id),
state: {
- sorting: ce,
- rowSelection: le,
+ sorting: le,
+ rowSelection: ue,
pagination: {
- pageIndex: L.page - 1,
+ pageIndex: I.page - 1,
pageSize: o
}
},
manualSorting: !0,
enableRowSelection: !0,
onSortingChange: (e) => {
- let t = (typeof e == "function" ? e(ce) : e)[0];
+ let t = (typeof e == "function" ? e(le) : e)[0];
if (!t) return;
let n = zj[t.id];
n && l(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
- let t = typeof e == "function" ? e(le) : e;
+ let t = typeof e == "function" ? e(ue) : e;
m(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
},
onPaginationChange: (e) => {
let t = {
- pageIndex: L.page - 1,
+ pageIndex: I.page - 1,
pageSize: o
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === o ? n.pageIndex !== t.pageIndex && u(n.pageIndex + 1) : p(n.pageSize);
},
getCoreRowModel: HN(),
getPaginationRowModel: UN()
- }), fe = de.getRowModel().rows, pe = ue ? fe.map((e) => e.original.source.id) : D.slice(L.start, L.end).flatMap((e) => e.map((e) => e.id)), me = Zj(s, pe), he = [...s], ge = ide(j), _e = ade(j), ve = D.length > 0 && x.size >= D.length;
- return _.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Zi({
+ }), pe = fe.getRowModel().rows, me = de ? pe.map((e) => e.original.source.id) : D.slice(I.start, I.end).flatMap((e) => e.map((e) => e.id)), he = Zj(s, me), ge = [...s], _e = ide(j), ve = ade(j), ye = D.length > 0 && x.size >= D.length;
+ return _.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
+ className: Qi({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
ref: C,
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)("h3", {
+ /* @__PURE__ */ (0, R.jsx)("h3", {
className: "mr-auto text-title-2-medium text-text-primary",
children: "关注列表"
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${_.length} 个来源${y.new ? ` · ${y.new} 条未看` : ""}`
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "primary",
- leadingIcon: mt,
+ leadingIcon: ht,
disabled: c,
"aria-label": "检查全部",
iconOnly: w,
- ...q(oe.busy),
+ ...K(se.busy),
onClick: () => N([]),
children: "检查全部"
}),
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
"data-button-group": !0,
role: "group",
"aria-label": "关注列表版式",
- children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: dt,
+ leadingIcon: ft,
"aria-label": Lj[0][1],
- "aria-pressed": !ue,
+ "aria-pressed": !de,
onClick: () => f("default")
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: vt,
+ leadingIcon: yt,
"aria-label": Lj[1][1],
- "aria-pressed": ue,
+ "aria-pressed": de,
onClick: () => f("table")
})]
}),
- /* @__PURE__ */ (0, z.jsx)(vy, {
+ /* @__PURE__ */ (0, R.jsx)(yy, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
@@ -44294,111 +44295,111 @@ function Eme(e) {
let t = String(e);
l(t, wj[t]);
},
- children: Cj.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(yy, {
+ children: Cj.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(by, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: r === "asc" ? Ke : He,
+ leadingIcon: r === "asc" ? qe : Ue,
"aria-label": Bue(n, r),
onClick: () => l(n, r === "asc" ? "desc" : "asc")
}),
- ue ? null : /* @__PURE__ */ (0, z.jsx)(H, {
+ de ? null : /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
iconOnly: w,
- leadingIcon: ve ? Ue : qe,
- "aria-label": ve ? "全部展开" : "全部收起",
- onClick: () => S(ve ? /* @__PURE__ */ new Set() : new Set(D.map((e) => String(e[0].author_key || e[0].id)))),
- children: ve ? "全部展开" : "全部收起"
+ leadingIcon: ye ? We : Je,
+ "aria-label": ye ? "全部展开" : "全部收起",
+ onClick: () => S(ye ? /* @__PURE__ */ new Set() : new Set(D.map((e) => String(e[0].author_key || e[0].id)))),
+ children: ye ? "全部展开" : "全部收起"
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- A ? /* @__PURE__ */ (0, z.jsx)(lO, {
+ A ? /* @__PURE__ */ (0, R.jsx)(lO, {
embedded: !0,
label: k?.message || (k?.total ? `${k.older ? "抓取历史" : "检查更新"}:已完成 ${k.checked || 0}/${k.total} 个来源` : "正在准备检查任务"),
value: k?.checked,
total: k?.total
}) : null,
- T ? /* @__PURE__ */ (0, z.jsx)(K, {
+ T ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "操作未完成",
children: T
}) : null,
- ge.length ? /* @__PURE__ */ (0, z.jsx)(K, {
+ _e.length ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
- title: `${ge.length} 个来源检查失败`,
- extra: /* @__PURE__ */ (0, z.jsx)("ul", {
+ title: `${_e.length} 个来源检查失败`,
+ extra: /* @__PURE__ */ (0, R.jsx)("ul", {
className: "flex flex-col gap-0.5 text-body-2-regular",
- children: ge.map((e, t) => /* @__PURE__ */ (0, z.jsx)("li", { children: `${e.provider_label || e.provider || ""} ${e.author || e.label || e.ref || ""}:${e.error || "未说明原因"}` }, `${e.provider || ""}-${e.ref || t}`))
+ children: _e.map((e, t) => /* @__PURE__ */ (0, R.jsx)("li", { children: `${e.provider_label || e.provider || ""} ${e.author || e.label || e.ref || ""}:${e.error || "未说明原因"}` }, `${e.provider || ""}-${e.ref || t}`))
}),
children: "这些来源这一轮没有取到更新。"
}) : null,
- _e ? /* @__PURE__ */ (0, z.jsx)(K, {
+ ve ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "warning",
- children: `候选已入库,但这一次的原始响应没有留档:${_e}`
+ children: `候选已入库,但这一次的原始响应没有留档:${ve}`
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsxs)($P, {
+ /* @__PURE__ */ (0, R.jsxs)($P, {
label: "关注来源批量操作",
- visible: he.length > 0,
- count: `已选 ${he.length} 个来源`,
+ visible: ge.length > 0,
+ count: `已选 ${ge.length} 个来源`,
children: [
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: c,
- ...q(oe.busy),
- onClick: () => N(he),
+ ...K(se.busy),
+ onClick: () => N(ge),
children: "检查所选"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: c,
- ...q(ne.isPending),
- onClick: () => ne.mutate({
- ids: he,
+ ...K(re.isPending),
+ onClick: () => re.mutate({
+ ids: ge,
action: "enabled"
}),
children: "启用"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: c,
- ...q(ne.isPending),
- onClick: () => ne.mutate({
- ids: he,
+ ...K(re.isPending),
+ onClick: () => re.mutate({
+ ids: ge,
action: "paused"
}),
children: "暂停"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "danger",
size: "small",
disabled: c,
- ...q(ne.isPending),
+ ...K(re.isPending),
onClick: () => void b({
- title: `删除 ${he.length} 个关注来源`,
+ title: `删除 ${ge.length} 个关注来源`,
body: "将移除所选关注来源及其已抓取条目,媒体文件保留。",
confirmLabel: "删除所选来源",
danger: !0,
- onConfirm: () => ne.mutateAsync({
- ids: he,
+ onConfirm: () => re.mutateAsync({
+ ids: ge,
action: "remove"
})
}),
children: "删除"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
size: "small",
onClick: () => m(/* @__PURE__ */ new Set()),
@@ -44406,58 +44407,58 @@ function Eme(e) {
})
]
}),
- ue ? /* @__PURE__ */ (0, z.jsx)(bO, {
+ de ? /* @__PURE__ */ (0, R.jsx)(bO, {
follow: !0,
onRowClick: (e) => P(Number(e), !s.has(Number(e))),
- children: /* @__PURE__ */ (0, z.jsxs)(vO, {
+ children: /* @__PURE__ */ (0, R.jsxs)(vO, {
"aria-label": "关注来源",
size: "sm",
- sortDescriptor: ce[0] ? {
- column: ce[0].id,
- direction: ce[0].desc ? "descending" : "ascending"
+ sortDescriptor: le[0] ? {
+ column: le[0].id,
+ direction: le[0].desc ? "descending" : "ascending"
} : void 0,
- onSortChange: (e) => de.setSorting([{
+ onSortChange: (e) => fe.setSorting([{
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, z.jsx)(Wv, { children: de.getHeaderGroups()[0].headers.map((e) => {
+ children: [/* @__PURE__ */ (0, R.jsx)(Gv, { children: fe.getHeaderGroups()[0].headers.map((e) => {
let t = e.column.id in zj, n = WN(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, z.jsx)(Kv, {
+ return /* @__PURE__ */ (0, R.jsx)(qv, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
- children: ({ sortDirection: e }) => t ? /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: ({ sortDirection: e }) => t ? /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [n, /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [n, /* @__PURE__ */ (0, R.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, z.jsx)(Zte, {})
+ children: /* @__PURE__ */ (0, R.jsx)(Zte, {})
})]
- }) : /* @__PURE__ */ (0, z.jsx)(ju, { children: n })
+ }) : /* @__PURE__ */ (0, R.jsx)(Mu, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, z.jsx)(Jv, {
+ }) }), /* @__PURE__ */ (0, R.jsx)(Yv, {
renderEmptyState: () => "这一页没有来源",
- children: fe.map((e) => /* @__PURE__ */ (0, z.jsx)(Zv, {
+ children: pe.map((e) => /* @__PURE__ */ (0, R.jsx)(Qv, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, z.jsx)($v, { children: WN(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, R.jsx)(ey, { children: WN(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(_O, {
- isSelected: me.all,
- isIndeterminate: me.some,
- onChange: (e) => ee(pe, e),
+ }) : /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(_O, {
+ isSelected: he.all,
+ isIndeterminate: he.some,
+ onChange: (e) => ee(me, e),
"aria-label": "全选本页来源",
children: "全选本页"
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-col gap-3",
- children: D.slice(L.start, L.end).map((e) => {
+ children: D.slice(I.start, I.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, z.jsx)(Tme, {
+ return /* @__PURE__ */ (0, R.jsx)(Tme, {
group: e,
name: Kj(e, v),
- handlers: oe,
+ handlers: se,
selected: s,
open: !x.has(t),
onOpen: (e) => {
@@ -44469,79 +44470,79 @@ function Eme(e) {
}, t);
})
})] }),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: `${L.start + 1}–${L.end} / ${L.total} ${ue ? "个来源" : "位创作者"}`
+ children: `${I.start + 1}–${I.end} / ${I.total} ${de ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, z.jsx)(vy, {
+ /* @__PURE__ */ (0, R.jsx)(yy, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(o),
onSelectionChange: (e) => {
- e !== null && de.setPageSize(Number(e));
+ e !== null && fe.setPageSize(Number(e));
},
- children: Rj.map((e) => /* @__PURE__ */ (0, z.jsx)(yy, {
+ children: Rj.map((e) => /* @__PURE__ */ (0, R.jsx)(by, {
id: String(e),
- children: `每页 ${e} ${ue ? "条" : "位"}`
+ children: `每页 ${e} ${de ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(tF, {
- page: L.page,
- pages: L.pages,
- onPage: (e) => de.setPageIndex(e - 1)
+ /* @__PURE__ */ (0, R.jsx)(tF, {
+ page: I.page,
+ pages: I.pages,
+ onPage: (e) => fe.setPageIndex(e - 1)
})
]
}),
- y.new ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ y.new ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "-mx-6 -mb-5 flex flex-wrap items-center gap-2 border-t border-separator-border rounded-b-2xl bg-card-footer px-6 py-4 max-sm:-mx-4 max-sm:px-4",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `未看 ${y.new} · 已看 ${y.seen || 0} · 已保存 ${y.saved || 0} · 已忽略 ${y.ignored || 0}`
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
onClick: g,
children: "去看更新"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: c,
- ...q(re.isPending),
+ ...K(ie.isPending),
onClick: () => void b({
title: "标记已看",
body: "将把当前未看作品标记为已看。",
confirmLabel: "标记已看",
- onConfirm: () => re.mutateAsync("seen")
+ onConfirm: () => ie.mutateAsync("seen")
}),
children: "全部标记已看"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: c,
- ...q(re.isPending),
+ ...K(ie.isPending),
onClick: () => void b({
title: "标记已忽略",
body: "将把当前未看作品标记为已忽略。",
confirmLabel: "标记已忽略",
- onConfirm: () => re.mutateAsync("ignored")
+ onConfirm: () => ie.mutateAsync("ignored")
}),
children: "全部忽略"
})
]
}) : null
]
- }) : /* @__PURE__ */ (0, z.jsx)($i, {
+ }) : /* @__PURE__ */ (0, R.jsx)(ea, {
shell: "plain",
- icon: ht,
+ icon: gt,
title: "还没有关注来源",
- actions: /* @__PURE__ */ (0, z.jsx)(Vi, {
+ actions: /* @__PURE__ */ (0, R.jsx)(Hi, {
variant: "primary",
size: "small",
href: "/follow-manage?tab=add",
@@ -44562,7 +44563,7 @@ var Dme = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, Ome = /* @__PURE__ */ new Set(["select", "actions"]), nF = () => X.invalidateQueries({
+}, Ome = /* @__PURE__ */ new Set(["select", "actions"]), nF = () => Y.invalidateQueries({
queryKey: Ij,
exact: !0
}), rF = (e) => e.name || e.url, kme = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
@@ -44574,15 +44575,15 @@ function Ame(e) {
}
}
function jme({ source: e }) {
- return e.last_error ? /* @__PURE__ */ (0, z.jsx)(zi, {
+ return e.last_error ? /* @__PURE__ */ (0, R.jsx)(Bi, {
variant: "caption",
color: "rose",
children: "拉取失败"
- }) : e.enabled ? /* @__PURE__ */ (0, z.jsx)(zi, {
+ }) : e.enabled ? /* @__PURE__ */ (0, R.jsx)(Bi, {
variant: "caption",
color: "lime",
children: "正常"
- }) : /* @__PURE__ */ (0, z.jsx)(zi, {
+ }) : /* @__PURE__ */ (0, R.jsx)(Bi, {
variant: "caption",
color: "neutral",
children: "已暂停"
@@ -44592,9 +44593,10 @@ function Mme({ source: e, avatarInner: t }) {
let n = e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
+ image_version: e.image_version,
avatar_focus: e.avatar_focus
} : null;
- return /* @__PURE__ */ (0, z.jsx)("span", {
+ return /* @__PURE__ */ (0, R.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 ${qN}`,
dangerouslySetInnerHTML: { __html: t(rF(e), n, null, "performer") }
@@ -44617,19 +44619,19 @@ function iF(e, t) {
});
}
function Fme({ readOnly: e, toast: t, avatarInner: n }) {
- let r = $n({
+ let r = er({
queryKey: Ij,
queryFn: ({ signal: e }) => aM(e)
- }), i = aa(), a = r.data, o = (0, R.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, R.useState)(1), [f, p] = (0, R.useState)(20), m = Xj(o.length, f, l);
- (0, R.useEffect)(() => {
+ }), i = oa(), a = r.data, o = (0, L.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, L.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, L.useState)(1), [f, p] = (0, L.useState)(20), m = Xj(o.length, f, l);
+ (0, L.useEffect)(() => {
u((e) => Math.min(e, m.pages));
- }, [m.pages]), (0, R.useEffect)(() => {
+ }, [m.pages]), (0, L.useEffect)(() => {
c((e) => {
let t = new Set(o.map((e) => e.id)), n = new Set([...e].filter((e) => t.has(e)));
return n.size === e.size ? e : n;
});
}, [o]);
- let h = er({
+ let h = tr({
mutationFn: async (e) => {
let t = await d(e.ids, 4, async (t) => {
e.action === "remove" ? await sM(t) : await oM(t, e.action === "enabled");
@@ -44643,11 +44645,11 @@ function Fme({ readOnly: e, toast: t, avatarInner: n }) {
let n = e.results.filter((e) => !e.ok), r = e.ids.length - n.length;
if (c(/* @__PURE__ */ new Set()), nF(), e.action === "remove" && r && t(`已移除 ${r} 条订阅源`), n.length) {
let e = n[0];
- i.setError(`${n.length} 条没有写入:${e.ok ? "" : U(e.error)}`);
+ i.setError(`${n.length} 条没有写入:${e.ok ? "" : H(e.error)}`);
}
},
- onError: (e) => i.setError(U(e))
- }), g = (0, R.useMemo)(() => Pme(o), [o]), _ = (0, R.useRef)({
+ onError: (e) => i.setError(H(e))
+ }), g = (0, L.useMemo)(() => Pme(o), [o]), _ = (0, L.useRef)({
readOnly: e,
avatarInner: n,
shared: g,
@@ -44667,13 +44669,13 @@ function Fme({ readOnly: e, toast: t, avatarInner: n }) {
await sM(e.id), t(`已移除订阅源「${rF(e)}」`), nF();
})
};
- let v = (0, R.useMemo)(() => {
+ let v = (0, L.useMemo)(() => {
let e = tN(), t = (e) => () => Dme[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)(_O, {
+ cell: (e) => /* @__PURE__ */ (0, R.jsx)(_O, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -44685,15 +44687,15 @@ function Fme({ readOnly: e, toast: t, avatarInner: n }) {
header: t("name"),
cell: (e) => {
let t = Nme(e.row.original, _.current.shared);
- return /* @__PURE__ */ (0, z.jsxs)("span", {
+ return /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
children: [
- /* @__PURE__ */ (0, z.jsx)(Mme, {
+ /* @__PURE__ */ (0, R.jsx)(Mme, {
source: e.row.original,
avatarInner: _.current.avatarInner
}),
e.getValue(),
- t ? /* @__PURE__ */ (0, z.jsx)("span", {
+ t ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
title: `站上这一页挂在「${t}」名下`,
children: t
@@ -44705,7 +44707,7 @@ function Fme({ readOnly: e, toast: t, avatarInner: n }) {
e.accessor((e) => e.kind_label, {
id: "kind",
header: t("kind"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)("span", {
+ cell: (e) => /* @__PURE__ */ (0, R.jsx)("span", {
className: "whitespace-nowrap",
children: e.getValue()
})
@@ -44713,7 +44715,7 @@ function Fme({ readOnly: e, toast: t, avatarInner: n }) {
e.accessor((e) => e.url, {
id: "origin",
header: t("origin"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)("a", {
+ cell: (e) => /* @__PURE__ */ (0, R.jsx)("a", {
href: e.getValue(),
target: "_blank",
rel: "noreferrer noopener",
@@ -44725,20 +44727,20 @@ function Fme({ readOnly: e, toast: t, avatarInner: n }) {
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)(jme, { source: e.row.original })
+ cell: (e) => /* @__PURE__ */ (0, R.jsx)(jme, { source: e.row.original })
}),
e.accessor((e) => kme(e.interval_minutes), {
id: "interval",
header: t("interval"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)("span", {
+ cell: (e) => /* @__PURE__ */ (0, R.jsx)("span", {
className: "whitespace-nowrap",
children: e.getValue()
})
}),
- e.accessor((e) => e.last_fetched_at ? hx(e.last_fetched_at) : "还没拉过", {
+ e.accessor((e) => e.last_fetched_at ? gx(e.last_fetched_at) : "还没拉过", {
id: "fetched",
header: t("fetched"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)("span", {
+ cell: (e) => /* @__PURE__ */ (0, R.jsx)("span", {
className: "whitespace-nowrap tabular-nums",
children: e.getValue()
})
@@ -44746,7 +44748,7 @@ function Fme({ readOnly: e, toast: t, avatarInner: n }) {
e.accessor((e) => e.last_new_count, {
id: "fresh",
header: t("fresh"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)("span", {
+ cell: (e) => /* @__PURE__ */ (0, R.jsx)("span", {
className: "whitespace-nowrap tabular-nums",
children: `${e.getValue()} 条`
})
@@ -44754,30 +44756,30 @@ function Fme({ readOnly: e, toast: t, avatarInner: n }) {
e.display({
id: "actions",
header: t("actions"),
- cell: (e) => /* @__PURE__ */ (0, z.jsxs)("span", {
+ cell: (e) => /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, z.jsx)(KN, {
+ /* @__PURE__ */ (0, R.jsx)(KN, {
"aria-label": `启用 ${rF(e.row.original)}`,
isSelected: e.row.original.enabled,
isDisabled: _.current.readOnly,
onChange: (t) => _.current.toggle(e.row.original, t)
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: mt,
+ leadingIcon: ht,
"aria-label": `拉取 ${rF(e.row.original)}`,
disabled: _.current.readOnly,
- ...q(_.current.busy === `check-${e.row.original.id}`),
+ ...K(_.current.busy === `check-${e.row.original.id}`),
onClick: () => _.current.fetch(e.row.original)
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: $e,
+ leadingIcon: et,
"aria-label": `移除 ${rF(e.row.original)}`,
disabled: _.current.readOnly,
onClick: () => _.current.remove(e.row.original)
@@ -44786,7 +44788,7 @@ function Fme({ readOnly: e, toast: t, avatarInner: n }) {
})
})
];
- }, []), y = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), b = GN({
+ }, []), y = (0, L.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), b = GN({
data: o,
columns: v,
getRowId: (e) => String(e.id),
@@ -44805,94 +44807,94 @@ function Fme({ readOnly: e, toast: t, avatarInner: n }) {
getCoreRowModel: HN(),
getPaginationRowModel: UN()
});
- if (!a) return r.error ? /* @__PURE__ */ (0, z.jsx)(K, {
+ if (!a) return r.error ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "打不开订阅源",
- children: U(r.error)
- }) : /* @__PURE__ */ (0, z.jsx)(ky, { children: "正在读订阅源。" });
+ children: H(r.error)
+ }) : /* @__PURE__ */ (0, R.jsx)(Ay, { children: "正在读订阅源。" });
let x = () => void i.run("check", (e) => cM(e), () => void nF()), S = (e) => c((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
}), C = o.filter((e) => s.has(e.id)), w = o.filter((e) => e.last_error);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, z.jsx)(bme, {
+ children: [/* @__PURE__ */ (0, R.jsx)(bme, {
readOnly: e,
toast: t,
onAdded: () => void nF()
- }), /* @__PURE__ */ (0, z.jsxs)("section", {
+ }), /* @__PURE__ */ (0, R.jsxs)("section", {
"aria-label": "JAV 订阅列表",
- className: Zi({
+ className: Qi({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)("h3", {
+ /* @__PURE__ */ (0, R.jsx)("h3", {
className: "mr-auto text-title-2-medium text-text-primary",
children: "JAV 订阅源"
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${o.length} 个订阅源 · ${a.unread} 条未看`
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
onClick: x,
disabled: e,
- ...q(i.busy === "check"),
+ ...K(i.busy === "check"),
children: "立即拉取"
})
]
}),
- w.length || i.error ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ w.length || i.error ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [w.map((e) => /* @__PURE__ */ (0, z.jsx)(K, {
+ children: [w.map((e) => /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: `${rF(e)} 拉取失败`,
children: e.last_error
- }, e.id)), i.error ? /* @__PURE__ */ (0, z.jsx)(Ay, { children: i.error }) : null]
+ }, e.id)), i.error ? /* @__PURE__ */ (0, R.jsx)(jy, { children: i.error }) : null]
}) : null,
- /* @__PURE__ */ (0, z.jsxs)($P, {
+ /* @__PURE__ */ (0, R.jsxs)($P, {
visible: C.length > 0,
label: "订阅源批量操作",
count: `已选 ${C.length} 条订阅源`,
children: [
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: e,
- ...q(h.isPending),
+ ...K(h.isPending),
onClick: () => h.mutate({
ids: C.map((e) => e.id),
action: "enabled"
}),
children: "启用"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: e,
- ...q(h.isPending),
+ ...K(h.isPending),
onClick: () => h.mutate({
ids: C.map((e) => e.id),
action: "paused"
}),
children: "暂停"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "danger",
size: "small",
disabled: e,
- ...q(h.isPending),
+ ...K(h.isPending),
onClick: () => void iF(C, () => h.mutateAsync({
ids: C.map((e) => e.id),
action: "remove"
})),
children: "移除"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
size: "small",
onClick: () => c(/* @__PURE__ */ new Set()),
@@ -44900,50 +44902,50 @@ function Fme({ readOnly: e, toast: t, avatarInner: n }) {
})
]
}),
- o.length ? /* @__PURE__ */ (0, z.jsx)(bO, {
+ o.length ? /* @__PURE__ */ (0, R.jsx)(bO, {
onRowClick: (e) => S(Number(e)),
- children: /* @__PURE__ */ (0, z.jsxs)(vO, {
+ children: /* @__PURE__ */ (0, R.jsxs)(vO, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsx)(Wv, { children: b.getHeaderGroups()[0].headers.map((e) => {
+ children: [/* @__PURE__ */ (0, R.jsx)(Gv, { children: b.getHeaderGroups()[0].headers.map((e) => {
let t = WN(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, z.jsx)(Kv, {
+ return /* @__PURE__ */ (0, R.jsx)(qv, {
id: e.id,
isRowHeader: e.column.id === "name",
- children: Ome.has(e.column.id) ? /* @__PURE__ */ (0, z.jsx)(ju, { children: t }) : t
+ children: Ome.has(e.column.id) ? /* @__PURE__ */ (0, R.jsx)(Mu, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, z.jsx)(Jv, { children: b.getRowModel().rows.map((e) => /* @__PURE__ */ (0, z.jsx)(Zv, {
+ }) }), /* @__PURE__ */ (0, R.jsx)(Yv, { children: b.getRowModel().rows.map((e) => /* @__PURE__ */ (0, R.jsx)(Qv, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, z.jsx)($v, { children: WN(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, R.jsx)(ey, { children: WN(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
- }) : /* @__PURE__ */ (0, z.jsx)($i, {
- icon: ht,
+ }) : /* @__PURE__ */ (0, R.jsx)(ea, {
+ icon: gt,
title: "还没有订阅源",
shell: "plain",
children: "在上面按女优名添加,或在人物页点「订阅新作」。"
}),
- o.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ o.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${m.start + 1}–${m.end} / ${m.total} 个订阅源`
}),
- /* @__PURE__ */ (0, z.jsx)(vy, {
+ /* @__PURE__ */ (0, R.jsx)(yy, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(f),
onSelectionChange: (e) => {
e !== null && (p(Number(e)), u(1));
},
- children: Rj.map((e) => /* @__PURE__ */ (0, z.jsx)(yy, {
+ children: Rj.map((e) => /* @__PURE__ */ (0, R.jsx)(by, {
id: String(e),
children: `每页 ${e} 条`
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(tF, {
+ /* @__PURE__ */ (0, R.jsx)(tF, {
label: "JAV 订阅分页",
page: m.page,
pages: m.pages,
@@ -44951,9 +44953,9 @@ function Fme({ readOnly: e, toast: t, avatarInner: n }) {
})
]
}) : null,
- /* @__PURE__ */ (0, z.jsx)("footer", {
+ /* @__PURE__ */ (0, R.jsx)("footer", {
className: "-mx-6 -mb-5 flex flex-wrap items-center gap-2 border-t border-separator-border rounded-b-2xl bg-card-footer px-6 py-4 max-sm:-mx-4 max-sm:px-4",
- children: /* @__PURE__ */ (0, z.jsx)("span", {
+ children: /* @__PURE__ */ (0, R.jsx)("span", {
role: "status",
className: "mr-auto text-body-2-regular text-text-secondary",
children: `未看 ${a.unread} · 已启用 ${o.filter((e) => e.enabled).length} / ${o.length}`
@@ -44974,16 +44976,16 @@ var aF = "/api/wants", oF = ["wants"], Ime = (e) => [
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], Rme = (e) => W(aF, e), zme = (e, t) => W(`${aF}?follow=${encodeURIComponent(e)}`, t), sF = (e, t) => G(aF, {
+], Rme = (e) => U(aF, e), zme = (e, t) => U(`${aF}?follow=${encodeURIComponent(e)}`, t), sF = (e, t) => W(aF, {
action: "add",
...e
-}, "POST", t), cF = (e, t) => G(aF, {
+}, "POST", t), cF = (e, t) => W(aF, {
action: "remove",
ids: e
-}, "POST", t), Bme = (e, t) => G(aF, {
+}, "POST", t), Bme = (e, t) => W(aF, {
action: "reset",
ids: e
-}, "POST", t), lF = () => X.invalidateQueries({ queryKey: oF }), uF = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+}, "POST", t), lF = () => Y.invalidateQueries({ queryKey: oF }), uF = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
function Vme(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} 次` : "还没查过";
}
@@ -45000,12 +45002,12 @@ var Hme = {
Hme[e.origin]
].filter(Boolean).join(" · ");
function Ume({ want: e }) {
- return /* @__PURE__ */ (0, z.jsxs)("span", {
+ return /* @__PURE__ */ (0, R.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, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "无封面"
- }), e.cover ? /* @__PURE__ */ (0, z.jsx)("img", {
+ }), e.cover ? /* @__PURE__ */ (0, R.jsx)("img", {
src: e.cover,
alt: "",
loading: "lazy",
@@ -45016,58 +45018,58 @@ function Ume({ want: e }) {
});
}
function Wme({ want: e, first: t, readOnly: n, busy: r, onReset: i, onRemove: a, onCloudDownload: o }) {
- return /* @__PURE__ */ (0, z.jsxs)("li", {
+ return /* @__PURE__ */ (0, R.jsxs)("li", {
"data-want-id": e.id,
className: `flex min-w-0 items-start gap-4 py-4 max-sm:gap-3 ${t ? "" : "border-t border-separator-border"}`,
- children: [/* @__PURE__ */ (0, z.jsx)(Ume, { want: e }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)(Ume, { want: e }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-1",
children: [
- /* @__PURE__ */ (0, z.jsxs)("p", {
+ /* @__PURE__ */ (0, R.jsxs)("p", {
className: "flex min-w-0 flex-wrap items-baseline gap-x-2",
- children: [/* @__PURE__ */ (0, z.jsx)("b", {
+ children: [/* @__PURE__ */ (0, R.jsx)("b", {
className: "text-headline-medium text-text-primary",
children: uF(e)
- }), e.code && e.title ? /* @__PURE__ */ (0, z.jsx)("span", {
+ }), e.code && e.title ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "min-w-0 truncate text-body-2-regular text-text-secondary",
children: e.title
}) : null]
}),
- dF(e) ? /* @__PURE__ */ (0, z.jsx)("p", {
+ dF(e) ? /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: dF(e)
}) : null,
- /* @__PURE__ */ (0, z.jsxs)("p", {
+ /* @__PURE__ */ (0, R.jsxs)("p", {
"data-want-note": "",
className: "text-caption-1-regular text-text-secondary",
children: [Vme(e), e.scrape_error ? `;资料没取到:${e.scrape_error}` : ""]
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "mt-1 flex flex-wrap items-center gap-2",
children: [
- e.link ? /* @__PURE__ */ (0, z.jsx)(My, {
+ e.link ? /* @__PURE__ */ (0, R.jsx)(Ny, {
href: e.link,
children: "来源页"
}) : null,
- e.phase === "searching" || e.phase === "given_up" ? /* @__PURE__ */ (0, z.jsx)(H, {
+ e.phase === "searching" || e.phase === "given_up" ? /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: n,
onClick: o,
children: "云下载"
}) : null,
- e.phase === "given_up" ? /* @__PURE__ */ (0, z.jsx)(H, {
+ e.phase === "given_up" ? /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: n,
- ...q(r === `reset:${e.id}`),
+ ...K(r === `reset:${e.id}`),
onClick: i,
children: "重新查找"
}) : null,
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: n,
- ...q(r === `remove:${e.id}`),
+ ...K(r === `remove:${e.id}`),
onClick: a,
children: "移除"
})
@@ -45078,7 +45080,7 @@ function Wme({ want: e, first: t, readOnly: n, busy: r, onReset: i, onRemove: a,
});
}
function Gme({ readOnly: e, toast: t, cloudDownload: n }) {
- let [r, i] = (0, R.useState)(""), a = aa(), o = $n({
+ let [r, i] = (0, L.useState)(""), a = oa(), o = er({
queryKey: oF,
queryFn: ({ signal: e }) => Rme(e),
refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1
@@ -45098,24 +45100,24 @@ function Gme({ readOnly: e, toast: t, cloudDownload: n }) {
t(`${uF(e)} 回到待找`), lF();
});
}, d = o.data, f = d?.items || [];
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-8",
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Zi({
+ /* @__PURE__ */ (0, R.jsxs)("div", {
+ className: Qi({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
children: [
- /* @__PURE__ */ (0, z.jsx)("h3", {
+ /* @__PURE__ */ (0, R.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "按番号添加"
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "min-w-64 grow max-sm:min-w-0",
- children: /* @__PURE__ */ (0, z.jsx)(py, {
+ children: /* @__PURE__ */ (0, R.jsx)(my, {
"aria-label": "番号",
placeholder: "输入番号,例如 SSIS-950",
value: r,
@@ -45123,52 +45125,52 @@ function Gme({ readOnly: e, toast: t, cloudDownload: n }) {
onChange: i,
onKeyDown: c
})
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
variant: "primary",
disabled: e || !r.trim(),
- ...q(a.busy === "add"),
+ ...K(a.busy === "add"),
onClick: s,
children: "添加"
})]
}),
- /* @__PURE__ */ (0, z.jsx)(ky, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
- a.error ? /* @__PURE__ */ (0, z.jsx)(K, {
+ /* @__PURE__ */ (0, R.jsx)(Ay, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
+ a.error ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "这一次没有完成",
children: a.error
}) : null
]
}),
- o.error ? /* @__PURE__ */ (0, z.jsx)(K, {
+ o.error ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "想要清单读取失败",
- children: U(o.error)
+ children: H(o.error)
}) : null,
- d?.scraping ? /* @__PURE__ */ (0, z.jsx)(ky, {
+ d?.scraping ? /* @__PURE__ */ (0, R.jsx)(Ay, {
role: "status",
children: "正在给刚加入的番号取资料与封面。"
}) : null,
- d && !f.length ? /* @__PURE__ */ (0, z.jsx)($i, {
+ d && !f.length ? /* @__PURE__ */ (0, R.jsx)(ea, {
shell: "plain",
- icon: _t,
+ icon: vt,
title: "还没有想要的作品",
children: "在上面输入番号,或在 Feed 新作卡、关注详情上点「想要」。"
}) : null,
Lme.map(([t, r]) => {
let i = f.filter((e) => e.phase === t);
- return i.length ? /* @__PURE__ */ (0, z.jsxs)("section", {
+ return i.length ? /* @__PURE__ */ (0, R.jsxs)("section", {
"aria-label": r,
"data-want-phase": t,
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, z.jsxs)("h3", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("h3", {
className: "flex items-baseline gap-2 text-title-2-medium text-text-primary",
- children: [r, /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [r, /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular tabular-nums text-text-secondary",
children: i.length
})]
- }), /* @__PURE__ */ (0, z.jsx)("ul", {
+ }), /* @__PURE__ */ (0, R.jsx)("ul", {
className: "flex flex-col",
- children: i.map((t, r) => /* @__PURE__ */ (0, z.jsx)(Wme, {
+ children: i.map((t, r) => /* @__PURE__ */ (0, R.jsx)(Wme, {
want: t,
first: r === 0,
readOnly: e,
@@ -45197,17 +45199,17 @@ var fF = [
["source", "来源和凭证"]
], pF = (e) => fF.some(([t]) => t === e);
function mF({ term: e, figure: t, unit: n }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Zi({
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
+ className: Qi({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-medium text-text-secondary",
children: e
- }), /* @__PURE__ */ (0, z.jsxs)("b", {
+ }), /* @__PURE__ */ (0, R.jsxs)("b", {
className: "text-title-1-medium tabular-nums text-text-primary",
- children: [t, /* @__PURE__ */ (0, z.jsx)("small", {
+ children: [t, /* @__PURE__ */ (0, R.jsx)("small", {
className: "text-body-2-regular text-text-secondary",
children: ` ${n}`
})]
@@ -45215,20 +45217,20 @@ function mF({ term: e, figure: t, unit: n }) {
});
}
function Kme(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, R.useState)(pF(e.tab) ? e.tab : "list"), [d, f] = (0, R.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, R.useState)(() => Tj(e.sort, e.dir).sort), [h, g] = (0, R.useState)(() => Tj(e.sort, e.dir).dir), [_, v] = (0, R.useState)(Lue(e.layout) ? e.layout : "default"), [y, b] = (0, R.useState)(Rue(e.pageSize)), [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), C = $n({
+ let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, L.useState)(pF(e.tab) ? e.tab : "list"), [d, f] = (0, L.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, L.useState)(() => Tj(e.sort, e.dir).sort), [h, g] = (0, L.useState)(() => Tj(e.sort, e.dir).dir), [_, v] = (0, L.useState)(Lue(e.layout) ? e.layout : "default"), [y, b] = (0, L.useState)(Rue(e.pageSize)), [x, S] = (0, L.useState)(/* @__PURE__ */ new Set()), C = er({
queryKey: Pj,
queryFn: ({ signal: e }) => $j(e)
- }), w = $n({
+ }), w = er({
queryKey: Fj,
queryFn: ({ signal: e }) => eM(e)
- }), T = $n({
+ }), T = er({
queryKey: Ij,
queryFn: ({ signal: e }) => aM(e)
}), E = C.data || { sources: [] }, D = w.data || {
root: "",
providers: []
}, O = E.sources;
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
S((e) => {
let t = Wue(e, O);
return t.size === e.size ? e : t;
@@ -45243,13 +45245,13 @@ function Kme(e) {
dir: r === wj[n] ? "" : r
});
}, A = Yj(O), j = O.filter(Vj).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !mM(e)).length, P = new Set((T.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
- return /* @__PURE__ */ (0, z.jsxs)(ta, { children: [
- o ? /* @__PURE__ */ (0, z.jsx)(K, {
+ return /* @__PURE__ */ (0, R.jsxs)(na, { children: [
+ o ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "warning",
title: "本机只能浏览",
- extra: c ? /* @__PURE__ */ (0, z.jsx)("p", {
+ extra: c ? /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular",
- children: /* @__PURE__ */ (0, z.jsx)("a", {
+ children: /* @__PURE__ */ (0, R.jsx)("a", {
href: c,
className: "text-text-primary underline underline-offset-2",
children: "前往写入端管理关注"
@@ -45257,43 +45259,43 @@ function Kme(e) {
}) : void 0,
children: s
}) : null,
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: Die,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, z.jsx)(mF, {
+ /* @__PURE__ */ (0, R.jsx)(mF, {
term: "关注创作者",
figure: A.length,
unit: "位"
}),
- /* @__PURE__ */ (0, z.jsx)(mF, {
+ /* @__PURE__ */ (0, R.jsx)(mF, {
term: "启用来源",
figure: M,
unit: `/ ${O.length}`
}),
- /* @__PURE__ */ (0, z.jsx)(mF, {
+ /* @__PURE__ */ (0, R.jsx)(mF, {
term: "检查失败",
figure: j,
unit: "个来源"
}),
- /* @__PURE__ */ (0, z.jsx)(mF, {
+ /* @__PURE__ */ (0, R.jsx)(mF, {
term: "未看更新",
figure: E.counts?.new || 0,
unit: "条"
}),
- /* @__PURE__ */ (0, z.jsx)(mF, {
+ /* @__PURE__ */ (0, R.jsx)(mF, {
term: "JAV 订阅",
figure: P,
unit: "位"
}),
- /* @__PURE__ */ (0, z.jsx)(mF, {
+ /* @__PURE__ */ (0, R.jsx)(mF, {
term: "未看新作",
figure: T.data?.unread || 0,
unit: "条"
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)(ay, {
+ /* @__PURE__ */ (0, R.jsxs)(oy, {
selectedKey: l,
onSelectionChange: (e) => {
let t = String(e);
@@ -45301,21 +45303,21 @@ function Kme(e) {
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, z.jsx)(oy, {
+ /* @__PURE__ */ (0, R.jsx)(sy, {
"aria-label": "关注管理区域",
"data-section-nav": !0,
"data-section-items": !0,
className: "flex max-w-full flex-nowrap overflow-x-auto",
- children: fF.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(sy, {
+ children: fF.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(cy, {
id: e,
className: "cursor-pointer whitespace-nowrap",
children: e === "source" && N ? `${t}(${N})` : t
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(cy, {
+ /* @__PURE__ */ (0, R.jsx)(ly, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, z.jsx)(Eme, {
+ children: /* @__PURE__ */ (0, R.jsx)(Eme, {
data: E,
sort: p,
dir: h,
@@ -45345,10 +45347,10 @@ function Kme(e) {
}
})
}),
- /* @__PURE__ */ (0, z.jsxs)(cy, {
+ /* @__PURE__ */ (0, R.jsxs)(ly, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, z.jsx)($de, {
+ children: [/* @__PURE__ */ (0, R.jsx)($de, {
data: E,
credentials: D,
readOnly: o,
@@ -45356,7 +45358,7 @@ function Kme(e) {
openCredentials: () => {
u("source"), k({ tab: "source" });
}
- }), /* @__PURE__ */ (0, z.jsx)(nfe, {
+ }), /* @__PURE__ */ (0, R.jsx)(nfe, {
groups: E.author_aliases || [],
readOnly: o,
toast: r,
@@ -45364,28 +45366,28 @@ function Kme(e) {
sources: E.sources
})]
}),
- /* @__PURE__ */ (0, z.jsx)(cy, {
+ /* @__PURE__ */ (0, R.jsx)(ly, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, z.jsx)(Fme, {
+ children: /* @__PURE__ */ (0, R.jsx)(Fme, {
readOnly: o,
toast: r,
avatarInner: e.avatarInner
})
}),
- /* @__PURE__ */ (0, z.jsx)(cy, {
+ /* @__PURE__ */ (0, R.jsx)(ly, {
id: "wants",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, z.jsx)(Gme, {
+ children: /* @__PURE__ */ (0, R.jsx)(Gme, {
readOnly: o,
toast: r,
cloudDownload: a
})
}),
- /* @__PURE__ */ (0, z.jsx)(cy, {
+ /* @__PURE__ */ (0, R.jsx)(ly, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, z.jsx)(dfe, {
+ children: /* @__PURE__ */ (0, R.jsx)(dfe, {
data: D,
readOnly: o,
toast: r
@@ -45397,14 +45399,14 @@ function Kme(e) {
}
//#endregion
//#region src/react/index/index-tags.tsx
-var hF = () => /* @__PURE__ */ (0, z.jsx)("span", {
+var hF = () => /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
function qme({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
- return /* @__PURE__ */ (0, z.jsxs)("button", {
+ return /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
@@ -45413,12 +45415,12 @@ function qme({ 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, z.jsx)(hF, {}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)(hF, {}),
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "flex-none text-caption-1-regular text-text-secondary",
children: e.n.toLocaleString()
})
@@ -45426,22 +45428,22 @@ function qme({ tag: e, actions: t }) {
});
}
function Jme({ groups: e, actions: t }) {
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
- children: e.map(([e, n], r) => /* @__PURE__ */ (0, z.jsxs)("section", {
+ children: e.map(([e, n], r) => /* @__PURE__ */ (0, R.jsxs)("section", {
"data-alpha-group": r,
- className: Zi({
+ className: Qi({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
- children: [/* @__PURE__ */ (0, z.jsxs)("h3", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, z.jsx)(ik, { value: n.length })]
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ children: [e, /* @__PURE__ */ (0, R.jsx)(ik, { value: n.length })]
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, z.jsx)(qme, {
+ children: n.map((e) => /* @__PURE__ */ (0, R.jsx)(qme, {
tag: e,
actions: t
}, e.k))
@@ -45451,10 +45453,10 @@ function Jme({ groups: e, actions: t }) {
}
var Yme = "\xA0";
function Xme({ tags: e, actions: t }) {
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
- children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: e.map((e) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
@@ -45462,7 +45464,7 @@ function Xme({ 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 + Yme, /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [e.label + Yme, /* @__PURE__ */ (0, R.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
@@ -45480,50 +45482,50 @@ var Zme = [[
"text-aa"
]];
function Qme({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
- return /* @__PURE__ */ (0, z.jsx)(IO, {
+ return /* @__PURE__ */ (0, R.jsx)(IO, {
label: "标签筛选",
topLabel: "标签类型",
- top: e.map(([e, r]) => /* @__PURE__ */ (0, z.jsxs)(LO, {
+ top: e.map(([e, r]) => /* @__PURE__ */ (0, R.jsxs)(LO, {
"data-tag-pill": "",
"data-tag-cat": e === "all" ? "all" : fA(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, z.jsx)(hF, {}), r]
+ children: [/* @__PURE__ */ (0, R.jsx)(hF, {}), r]
}, e)),
- bottom: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ bottom: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-index-readout": "",
className: "flex-none text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: r
}),
- i.length > 1 ? /* @__PURE__ */ (0, z.jsx)("nav", {
+ i.length > 1 ? /* @__PURE__ */ (0, R.jsx)("nav", {
"aria-label": "按首字跳转",
"data-alpha-jump": "",
className: "flex min-w-0 gap-0.5 overflow-x-auto overscroll-x-contain",
- children: i.map((e, t) => /* @__PURE__ */ (0, z.jsx)("button", {
+ children: i.map((e, t) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
onClick: () => s(t),
className: "h-7.5 min-w-7.5 flex-none cursor-pointer rounded-glass-key px-1.5 text-caption-1-regular leading-5 text-(--glass-text)/60 outline-none hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, z.jsx)(D_, {
+ /* @__PURE__ */ (0, R.jsx)(O_, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
className: `ml-auto ${JO}`,
children: Zme.map(([e, t, n]) => {
- let r = Ob(n);
- return /* @__PURE__ */ (0, z.jsx)(O_, {
+ let r = kb(n);
+ return /* @__PURE__ */ (0, R.jsx)(k_, {
value: e,
"aria-label": t,
"data-glass-segment": "",
className: YO,
- children: /* @__PURE__ */ (0, z.jsx)("span", {
+ children: /* @__PURE__ */ (0, R.jsx)("span", {
title: t,
className: "contents",
- children: /* @__PURE__ */ (0, z.jsx)(r, { className: "size-4" })
+ children: /* @__PURE__ */ (0, R.jsx)(r, { className: "size-4" })
})
}, e);
})
@@ -45532,32 +45534,32 @@ function Qme({ categories: e, category: t, online: n, readout: r, letters: i, vi
});
}
function $me({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, z.jsxs)($P, {
+ return /* @__PURE__ */ (0, R.jsxs)($P, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e} 个标签`,
children: [
- /* @__PURE__ */ (0, z.jsx)(_O, {
+ /* @__PURE__ */ (0, R.jsx)(_O, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
- children: /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex flex-col",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-medium",
children: "广泛匹配"
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "开启后匹配任一所选标签;关闭后必须同时包含全部标签。"
})]
})
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
onClick: r,
children: "清空"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "primary",
size: "small",
disabled: !e,
@@ -45606,7 +45608,7 @@ var ehe = [{
]]
};
function nhe({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, z.jsx)(GO, {
+ return /* @__PURE__ */ (0, R.jsx)(GO, {
"aria-label": `${Zk[e]}索引版式`,
orientation: "horizontal",
value: t,
@@ -45614,28 +45616,28 @@ function nhe({ kind: e, layout: t, onChange: n }) {
"data-index-layout": "",
className: `flex-none max-board-narrow:order-3 ${KO}`,
children: the[rA(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = Ob(n);
- return /* @__PURE__ */ (0, z.jsx)(O_, {
+ let r = kb(n);
+ return /* @__PURE__ */ (0, R.jsx)(k_, {
value: e,
"aria-label": t,
className: cle,
- children: /* @__PURE__ */ (0, z.jsx)("span", {
+ children: /* @__PURE__ */ (0, R.jsx)("span", {
title: t,
className: "contents",
- children: /* @__PURE__ */ (0, z.jsx)(r, { className: "size-4" })
+ children: /* @__PURE__ */ (0, R.jsx)(r, { className: "size-4" })
})
}, e);
})
});
}
-var rhe = Ob("search");
+var rhe = kb("search");
function ihe({ 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 [r, i] = (0, L.useState)(t), a = (0, L.useRef)(!1), o = (0, L.useRef)(void 0);
+ (0, L.useEffect)(() => () => clearTimeout(o.current), []);
let s = (e) => {
clearTimeout(o.current), o.current = setTimeout(() => n(e.trim()), 300);
};
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-index-search": "",
className: "ml-auto min-w-35 max-w-80 flex-1 max-board-narrow:order-1 max-board-narrow:basis-40",
onCompositionStart: () => {
@@ -45644,13 +45646,13 @@ function ihe({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, z.jsx)(uy, {
+ children: /* @__PURE__ */ (0, R.jsx)(dy, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, z.jsx)(fy, {
+ children: /* @__PURE__ */ (0, R.jsx)(py, {
type: "search",
leadingIcon: rhe,
spellCheck: !1,
@@ -45663,23 +45665,23 @@ function ihe({ label: e, value: t, onQuery: n }) {
});
}
function ahe(e) {
- let [t, n] = (0, R.useState)(() => iA({
+ let [t, n] = (0, L.useState)(() => iA({
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: h } = t, g = Zk[u], _ = u === "tags" && f === "online", v = u === "performers" && f === "online";
- (0, R.useEffect)(() => {
+ })), [r, i] = (0, L.useState)(e.layout), [a, o] = (0, L.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, L.useState)("any"), l = (0, L.useRef)(null), { kind: u, q: d, scope: f, view: p, category: h } = t, g = Zk[u], _ = u === "tags" && f === "online", v = u === "performers" && f === "online";
+ (0, L.useEffect)(() => {
e.selectMode || o(/* @__PURE__ */ new Set());
}, [e.selectMode]);
- let [y, b] = (0, R.useState)(!1), x = (r, i = !1) => {
+ let [y, b] = (0, L.useState)(!1), x = (r, i = !1) => {
let a = {
...t,
...r
};
b(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, S = cA(aA(t)), C = tr({
+ }, S = cA(aA(t)), C = nr({
queryKey: S.queryKey,
queryFn: ({ pageParam: e, signal: t }) => S.queryFn({
pageParam: e,
@@ -45687,21 +45689,21 @@ function ahe(e) {
}),
initialPageParam: 0,
getNextPageParam: S.getNextPageParam,
- placeholderData: y ? Zt : void 0
+ placeholderData: y ? Qt : void 0
}), w = uA(C.data), T = !!C.hasNextPage && !C.isPlaceholderData, E = dA(w.length, !!C.hasNextPage);
- (0, R.useLayoutEffect)(() => {
+ (0, L.useLayoutEffect)(() => {
l.current && e.refitImages(l.current);
}, [r]);
- let D = (0, R.useMemo)(() => u === "tags" ? w.map((t) => ({
+ let D = (0, L.useMemo)(() => u === "tags" ? w.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [w, u]), k = (0, R.useMemo)(() => u === "tags" && p === "alphabet" ? hA(D, (t) => e.tagLabel(t)) : [], [
+ })) : [], [w, u]), k = (0, L.useMemo)(() => u === "tags" && p === "alphabet" ? hA(D, (t) => e.tagLabel(t)) : [], [
D,
p,
u
]), A = (t) => {
i(t), e.savePreference({ layout: t });
- }, j = u === "tags" ? /* @__PURE__ */ (0, z.jsx)(ak, {
+ }, j = u === "tags" ? /* @__PURE__ */ (0, R.jsx)(ak, {
tabs: gF,
value: f,
label: "词表",
@@ -45712,14 +45714,14 @@ function ahe(e) {
view: e === "online" ? "alphabet" : p
});
}
- }) : u === "performers" ? /* @__PURE__ */ (0, z.jsx)(ak, {
+ }) : u === "performers" ? /* @__PURE__ */ (0, R.jsx)(ak, {
tabs: gF,
value: f,
label: "名册",
onChange: (t) => {
t === "online" && e.exitSelectMode(), x({ scope: t });
}
- }) : rA(u) ? /* @__PURE__ */ (0, z.jsx)(ak, {
+ }) : rA(u) ? /* @__PURE__ */ (0, R.jsx)(ak, {
tabs: ehe,
value: u,
label: "公司类型",
@@ -45738,35 +45740,35 @@ function ahe(e) {
return n.delete(t) || n.add(t), n;
});
}, N = (_ ? eA : $k).filter(([e]) => e === "all" || Number(C.data?.pages[0]?.categories?.[e] || 0) > 0);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
ref: l,
"data-index-page": u,
className: "flex min-w-0 flex-col",
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-index-head": "",
className: "mb-5 flex min-w-0 flex-wrap items-center gap-3 p-1",
children: [
- /* @__PURE__ */ (0, z.jsx)("h2", {
+ /* @__PURE__ */ (0, R.jsx)("h2", {
"data-index-title": "",
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: g
}),
- nA(u) ? /* @__PURE__ */ (0, z.jsx)("span", {
+ nA(u) ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: C.isPending ? "" : E
}) : null,
- nA(u) ? /* @__PURE__ */ (0, z.jsx)(nhe, {
+ nA(u) ? /* @__PURE__ */ (0, R.jsx)(nhe, {
kind: u,
layout: r,
onChange: A
}) : null,
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, z.jsx)(ihe, {
+ /* @__PURE__ */ (0, R.jsx)(ihe, {
label: `过滤${g}`,
value: d,
onQuery: (e) => {
@@ -45776,7 +45778,7 @@ function ahe(e) {
]
}),
j,
- u === "tags" ? /* @__PURE__ */ (0, z.jsx)(Qme, {
+ u === "tags" ? /* @__PURE__ */ (0, R.jsx)(Qme, {
categories: N,
category: h,
online: _,
@@ -45790,10 +45792,10 @@ function ahe(e) {
behavior: "smooth"
})
}) : null,
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"data-index-body": "",
children: (() => {
- if (C.isPending) return /* @__PURE__ */ (0, z.jsx)("div", {
+ if (C.isPending) return /* @__PURE__ */ (0, R.jsx)("div", {
"aria-busy": "true",
dangerouslySetInnerHTML: { __html: O({
kind: u,
@@ -45801,28 +45803,28 @@ function ahe(e) {
mode: p
}) }
});
- if (C.isError) return /* @__PURE__ */ (0, z.jsx)($i, {
- icon: Ob("search"),
+ if (C.isError) return /* @__PURE__ */ (0, R.jsx)(ea, {
+ icon: kb("search"),
title: `没能读取${g}`,
- actions: /* @__PURE__ */ (0, z.jsx)(H, {
+ actions: /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
onClick: () => void C.refetch(),
children: "重试"
}),
children: m(C.error)
});
- if (!w.length) return /* @__PURE__ */ (0, z.jsx)(she, {
+ if (!w.length) return /* @__PURE__ */ (0, R.jsx)(she, {
kind: u,
filtered: !!d || u === "tags" && h !== "all",
online: _ || v,
configurable: e.configurable
});
- if (v) return /* @__PURE__ */ (0, z.jsx)(bA, {
+ if (v) return /* @__PURE__ */ (0, R.jsx)(bA, {
items: w,
layout: r,
props: e
});
- if (nA(u)) return /* @__PURE__ */ (0, z.jsx)(yA, {
+ if (nA(u)) return /* @__PURE__ */ (0, R.jsx)(yA, {
kind: u,
items: w,
layout: r,
@@ -45833,31 +45835,31 @@ function ahe(e) {
picked: a,
press: M
};
- return p === "alphabet" ? /* @__PURE__ */ (0, z.jsx)(Jme, {
+ return p === "alphabet" ? /* @__PURE__ */ (0, R.jsx)(Jme, {
groups: k,
actions: t
- }) : /* @__PURE__ */ (0, z.jsx)(Xme, {
+ }) : /* @__PURE__ */ (0, R.jsx)(Xme, {
tags: D,
actions: t
});
})()
}),
- T ? /* @__PURE__ */ (0, z.jsx)("div", {
+ T ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "mt-5 flex justify-center",
- children: /* @__PURE__ */ (0, z.jsx)(H, {
+ children: /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
"data-index-more": "",
className: "min-w-31",
disabled: C.isFetchingNextPage,
"aria-busy": C.isFetchingNextPage || void 0,
onClick: () => void C.fetchNextPage(),
- children: C.isFetchingNextPage ? /* @__PURE__ */ (0, z.jsx)(ea, {
+ children: C.isFetchingNextPage ? /* @__PURE__ */ (0, R.jsx)(ta, {
inline: !0,
label: "继续载入中…"
}) : "载入更多"
})
}) : null,
- u === "tags" && !_ && e.selectMode ? /* @__PURE__ */ (0, z.jsx)($me, {
+ u === "tags" && !_ && e.selectMode ? /* @__PURE__ */ (0, R.jsx)($me, {
count: a.size,
match: s,
onMatch: c,
@@ -45878,25 +45880,25 @@ var ohe = {
agencies: "事务所"
};
function she({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, z.jsx)($i, {
- icon: Ob("search"),
+ if (t) return /* @__PURE__ */ (0, R.jsx)(ea, {
+ icon: kb("search"),
title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, z.jsx)(Vi, {
+ actions: /* @__PURE__ */ (0, R.jsx)(Hi, {
variant: "primary",
href: "/?loc=&thumb=0",
children: "查看全部内容"
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : ohe[e], a = /* @__PURE__ */ (0, z.jsx)(Vi, {
+ let i = n && e === "performers" ? "创作者" : ohe[e], a = /* @__PURE__ */ (0, R.jsx)(Hi, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, z.jsx)($i, {
- icon: Ob(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, R.jsx)(ea, {
+ icon: kb(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [r ? /* @__PURE__ */ (0, z.jsx)(H, {
+ actions: n ? a : /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [r ? /* @__PURE__ */ (0, R.jsx)(V, {
variant: "primary",
"data-empty-settings": "",
children: "添加内容"
@@ -45937,7 +45939,7 @@ function dhe({ kind: e, view: t }) {
return e && n.set("kind", e), n.toString();
}
async function fhe(e, t) {
- let n = await W(`/api/ads?${dhe(e)}`, t);
+ let n = await U(`/api/ads?${dhe(e)}`, t);
return {
...n,
items: n.items || []
@@ -45946,15 +45948,15 @@ async function fhe(e, t) {
//#endregion
//#region src/react/junk-queue/junk-card.tsx
function yF({ name: e }) {
- return /* @__PURE__ */ (0, z.jsx)("svg", {
+ return /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
});
}
var bF = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
function phe({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions: o }) {
- let c = (0, R.useRef)(null), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), p = e.junk_kind || "other", [m, h] = che(e), g = String(e.name || ""), _ = lhe(t), v = p === "video" ? `/thumb?id=${e.id}&c=4` : p === "image" ? `/photo-thumb?id=${e.id}` : "", y = p === "video" || p === "image", b = (t) => {
+ let c = (0, L.useRef)(null), [l, u] = (0, L.useState)(""), [d, f] = (0, L.useState)(""), p = e.junk_kind || "other", [m, h] = che(e), g = String(e.name || ""), _ = lhe(t), v = p === "video" ? `/thumb?id=${e.id}&c=4` : p === "image" ? `/photo-thumb?id=${e.id}` : "", y = p === "video" || p === "image", b = (t) => {
t.target.closest("[data-junk-actions]") || bF(r, t) && (t.preventDefault(), o.toggleSelection(e.id, t.shiftKey));
}, x = (t) => {
if (t.stopPropagation(), bF(r, t)) {
@@ -45969,7 +45971,7 @@ function phe({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
}, w = (e) => l === e ? {
"aria-busy": !0,
"aria-disabled": !0
- } : {}, T = y ? /* @__PURE__ */ (0, z.jsx)("button", {
+ } : {}, T = y ? /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-junk-title": "",
"data-junk-open": "",
@@ -45977,13 +45979,13 @@ function phe({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
title: g,
onClick: x,
dangerouslySetInnerHTML: { __html: i(g || "未命名资源") }
- }) : /* @__PURE__ */ (0, z.jsx)("span", {
+ }) : /* @__PURE__ */ (0, R.jsx)("span", {
"data-junk-title": "",
"data-middle-truncate": "",
title: g,
dangerouslySetInnerHTML: { __html: i(g || "未命名资源") }
});
- return /* @__PURE__ */ (0, z.jsxs)("article", {
+ return /* @__PURE__ */ (0, R.jsxs)("article", {
ref: c,
"data-media-card": "",
"data-variant": "junk",
@@ -45993,91 +45995,91 @@ function phe({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
"data-selected": n ? "" : void 0,
onClick: b,
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, z.jsx)(yF, { name: h }), /* @__PURE__ */ (0, z.jsx)("b", { children: m })]
+ children: [/* @__PURE__ */ (0, R.jsx)(yF, { name: h }), /* @__PURE__ */ (0, R.jsx)("b", { children: m })]
}),
- v ? /* @__PURE__ */ (0, z.jsx)("span", {
+ v ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-art": "thumb",
dangerouslySetInnerHTML: { __html: `<img class="poster" src="${v}" width="640" height="360" alt="" loading="lazy" data-drop="self">` }
}) : null,
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"data-media-badge": "",
dangerouslySetInnerHTML: { __html: a.badgeHtml(e.location || "", e.cost || "") }
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, z.jsx)(yF, { name: "check" })
+ children: /* @__PURE__ */ (0, R.jsx)(yF, { name: "check" })
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-junk-meta": "",
- children: [T, /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [T, /* @__PURE__ */ (0, R.jsxs)("div", {
"data-junk-facts": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-junk-who": "",
children: m
}),
- e.why ? /* @__PURE__ */ (0, z.jsx)("span", {
+ e.why ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-junk-why": "",
children: e.why
}) : null,
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-junk-size": "",
children: Number(e.size) > 0 ? s(Number(e.size)) : "大小未知"
})
]
})]
}),
- /* @__PURE__ */ (0, z.jsxs)("footer", {
+ /* @__PURE__ */ (0, R.jsxs)("footer", {
"data-junk-actions": "",
children: [
- /* @__PURE__ */ (0, z.jsxs)("button", {
+ /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-junk-action": "reveal",
title: "在资源管理器中显示",
"aria-label": "在资源管理器中显示",
...w("reveal"),
onClick: S,
- children: [l === "reveal" ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [l === "reveal" ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-junk-spinner": "",
- dangerouslySetInnerHTML: { __html: ie("正在定位") }
- }) : /* @__PURE__ */ (0, z.jsx)(yF, { name: "folder-open" }), /* @__PURE__ */ (0, z.jsx)("span", {
+ dangerouslySetInnerHTML: { __html: ae("正在定位") }
+ }) : /* @__PURE__ */ (0, R.jsx)(yF, { name: "folder-open" }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
}),
- /* @__PURE__ */ (0, z.jsxs)("button", {
+ /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-junk-action": _.operation,
title: _.label,
"aria-label": _.label,
...w(_.operation),
onClick: C(_.operation),
- children: [/* @__PURE__ */ (0, z.jsx)(yF, { name: _.glyph }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)(yF, { name: _.glyph }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-junk-label": "",
children: _.label
})]
}),
- /* @__PURE__ */ (0, z.jsxs)("button", {
+ /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-junk-action": "dispose",
title: "移入回收站",
"aria-label": "移入回收站",
...w("dispose"),
onClick: C("dispose"),
- children: [/* @__PURE__ */ (0, z.jsx)(yF, { name: "trash" }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)(yF, { name: "trash" }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-junk-state": "",
"aria-live": "polite",
children: d
@@ -46087,7 +46089,7 @@ function phe({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
]
});
}
-var mhe = (0, R.memo)(phe), xF = [
+var mhe = (0, L.memo)(phe), xF = [
[
"",
"全部",
@@ -46147,76 +46149,76 @@ var ghe = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
//#region src/react/junk-queue/junk-count.tsx
function CF({ name: e }) {
- return /* @__PURE__ */ (0, z.jsx)("svg", {
+ return /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
});
}
function wF({ scope: e, count: t }) {
- return t ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [" ", /* @__PURE__ */ (0, z.jsx)("span", {
+ return t ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [" ", /* @__PURE__ */ (0, R.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
function _he({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = aO(), a = (0, R.useRef)(null), { kind: o, view: s } = e, c = UO(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? xF.map(([e]) => vF(t, e)).join(",") : ""}`), l = hhe(s), u = (e) => {
+ let i = aO(), a = (0, L.useRef)(null), { kind: o, view: s } = e, c = UO(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? xF.map(([e]) => vF(t, e)).join(",") : ""}`), l = hhe(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") || SF()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-junk-count": "",
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, z.jsx)(PO, {
+ children: /* @__PURE__ */ (0, R.jsx)(PO, {
label: ghe(s),
figure: d,
pending: !t && !n,
flush: !0
})
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
"data-junk-filters-frame": "",
"data-filter-glass": "",
"data-glass-pane": "",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
ref: a,
"data-view-glide": "",
"aria-hidden": "true"
- }), /* @__PURE__ */ (0, z.jsxs)("nav", {
+ }), /* @__PURE__ */ (0, R.jsxs)("nav", {
ref: i,
"data-junk-filters": "",
"aria-label": "垃圾文件分类",
onClick: u,
onPointerLeave: c.leave,
children: [
- xF.map(([e, n, r]) => /* @__PURE__ */ (0, z.jsxs)("a", {
+ xF.map(([e, n, r]) => /* @__PURE__ */ (0, R.jsxs)("a", {
href: SF(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, z.jsx)(CF, { name: r }),
+ /* @__PURE__ */ (0, R.jsx)(CF, { name: r }),
n,
- /* @__PURE__ */ (0, z.jsx)(wF, {
+ /* @__PURE__ */ (0, R.jsx)(wF, {
scope: e,
count: t ? vF(t, e) : 0
})
]
}, e || "all")),
- /* @__PURE__ */ (0, z.jsx)("i", {
+ /* @__PURE__ */ (0, R.jsx)("i", {
"data-junk-divider": "",
"aria-hidden": "true"
}),
- /* @__PURE__ */ (0, z.jsxs)("a", {
+ /* @__PURE__ */ (0, R.jsxs)("a", {
href: l.href,
"data-junk-view-link": l.view,
"aria-current": s === "dismissed" ? "page" : void 0,
onPointerEnter: s === "dismissed" ? void 0 : c.hover,
children: [
- /* @__PURE__ */ (0, z.jsx)(CF, { name: l.glyph }),
+ /* @__PURE__ */ (0, R.jsx)(CF, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, z.jsx)(wF, {
+ /* @__PURE__ */ (0, R.jsx)(wF, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -46229,14 +46231,14 @@ function _he({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var vhe = Ob("check"), yhe = (e, t) => e[1] === t.view && e[2] === t.kind;
+var vhe = kb("check"), yhe = (e, t) => e[1] === t.view && e[2] === t.kind;
function bhe(e) {
let t = {
kind: e.kind,
view: e.view
- }, n = (0, R.useRef)(e.cache);
+ }, n = (0, L.useRef)(e.cache);
n.current = e.cache;
- let r = $n({
+ let r = er({
queryKey: uhe(t, e.revision),
queryFn: async ({ signal: e }) => {
let r = await fhe(t, e);
@@ -46244,23 +46246,23 @@ function bhe(e) {
},
placeholderData: (e, n) => n && yhe(n.queryKey, t) ? e : void 0
});
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
r.isFetching || e.settled?.(e.revision);
}, [r.isFetching, e.revision]);
let i = xhe(e.countRow), a = r.isPending;
- (0, R.useLayoutEffect)(() => {
+ (0, L.useLayoutEffect)(() => {
let t = e.countRow;
t && (a ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
- }, [e.countRow, a]), (0, R.useLayoutEffect)(() => {
+ }, [e.countRow, a]), (0, L.useLayoutEffect)(() => {
i && r.data && M(i, "junk");
}, [i, r.data]);
- let { navigate: o } = e.actions, s = i ? (0, ze.createPortal)(/* @__PURE__ */ (0, z.jsx)(_he, {
+ let { navigate: o } = e.actions, s = i ? (0, Be.createPortal)(/* @__PURE__ */ (0, R.jsx)(_he, {
route: t,
page: r.data,
failed: r.isError && !r.data,
onNavigate: o
}), i) : null;
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [s, /* @__PURE__ */ (0, z.jsx)(She, {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [s, /* @__PURE__ */ (0, R.jsx)(She, {
props: e,
data: r.data,
pending: a,
@@ -46269,8 +46271,8 @@ function bhe(e) {
}, `${t.view}:${t.kind}`)] });
}
function xhe(e) {
- let [t, n] = (0, R.useState)(null);
- return (0, R.useLayoutEffect)(() => {
+ let [t, n] = (0, L.useState)(null);
+ return (0, L.useLayoutEffect)(() => {
if (!e) return;
let t = e.ownerDocument.createElement("div");
return t.className = "peach-react", e.replaceChildren(t), n(t), () => {
@@ -46279,31 +46281,31 @@ function xhe(e) {
}, [e]), t;
}
function She({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = ob(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)(() => {
+ let a = sb(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, L.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, L.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-junk-body": "",
"data-grid-reveal": a.fading ? "" : void 0,
children: [a.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, z.jsx)(sb, {
+ if (!t) return /* @__PURE__ */ (0, R.jsx)(cb, {
message: m(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, z.jsx)($i, {
+ return /* @__PURE__ */ (0, R.jsx)(ea, {
icon: vhe,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
});
}
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("div", {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, z.jsx)(mhe, {
+ children: u.map((t) => /* @__PURE__ */ (0, R.jsx)(mhe, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -46311,20 +46313,20 @@ function She({ props: e, data: t, pending: n, error: r, retry: i }) {
helpers: e.helpers,
actions: e.actions
}, t.id))
- }), u.length < l.length ? /* @__PURE__ */ (0, z.jsx)(Che, { onMore: f }, s) : null] });
+ }), u.length < l.length ? /* @__PURE__ */ (0, R.jsx)(Che, { onMore: f }, s) : null] });
})()]
});
}
function Che({ onMore: e }) {
- let t = (0, R.useRef)(null);
- return (0, R.useEffect)(() => {
+ let t = (0, L.useRef)(null);
+ return (0, L.useEffect)(() => {
let n = t.current;
if (!n || typeof IntersectionObserver > "u") return;
let r = new IntersectionObserver((t) => {
t.some((e) => e.isIntersecting) && e();
}, { rootMargin: "320px" });
return r.observe(n), () => r.disconnect();
- }, [e]), /* @__PURE__ */ (0, z.jsx)("div", {
+ }, [e]), /* @__PURE__ */ (0, R.jsx)("div", {
ref: t,
"data-load-more": "",
onClick: e,
@@ -46340,7 +46342,7 @@ var TF = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 bo
};
function The({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
- return /* @__PURE__ */ (0, z.jsxs)("svg", {
+ return /* @__PURE__ */ (0, R.jsxs)("svg", {
role: "progressbar",
"aria-label": "任务完成率",
"aria-valuemin": 0,
@@ -46349,13 +46351,13 @@ function The({ value: e, max: t }) {
viewBox: "0 0 32 32",
fill: "none",
className: "size-8 shrink-0 -rotate-90 stroke-current",
- children: [/* @__PURE__ */ (0, z.jsx)("circle", {
+ children: [/* @__PURE__ */ (0, R.jsx)("circle", {
cx: "16",
cy: "16",
r: "13",
strokeWidth: "4",
className: "opacity-25"
- }), /* @__PURE__ */ (0, z.jsx)("circle", {
+ }), /* @__PURE__ */ (0, R.jsx)("circle", {
cx: "16",
cy: "16",
r: "13",
@@ -46367,60 +46369,60 @@ function The({ value: e, max: t }) {
});
}
function Ehe(e) {
- let { job: t } = uO(e), n = t.data, r = t.isError ? n ? ex : U(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+ let { job: t } = uO(e), n = t.data, r = t.isError ? n ? tx : H(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 ? "扫描与资料采集未完成" : nx(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? lt : et;
- return /* @__PURE__ */ (0, z.jsxs)("aside", {
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : rx(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? ut : tt;
+ return /* @__PURE__ */ (0, R.jsxs)("aside", {
role: a ? "alert" : "status",
className: whe[s],
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, z.jsx)(The, {
+ children: [o && l ? /* @__PURE__ */ (0, R.jsx)(The, {
value: c,
max: l
- }) : /* @__PURE__ */ (0, z.jsx)(d, {
+ }) : /* @__PURE__ */ (0, R.jsx)(d, {
"aria-hidden": !0,
className: "size-4 shrink-0"
- }), /* @__PURE__ */ (0, z.jsx)("p", {
+ }), /* @__PURE__ */ (0, R.jsx)("p", {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, z.jsx)(wy, {
+ }), /* @__PURE__ */ (0, R.jsx)(Ty, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: We,
+ trailingIcon: Ge,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region src/react/playlists/playlists.ts
-var Dhe = "/api/playlists", EF = "/api/playlist", DF = ["playlists"], OF = (e) => W(Dhe, e);
+var Dhe = "/api/playlists", EF = "/api/playlist", DF = ["playlists"], OF = (e) => U(Dhe, e);
async function Ohe(e) {
- await X.fetchQuery({
+ await Y.fetchQuery({
queryKey: DF,
queryFn: () => OF(e),
staleTime: 0
});
}
-var kF = () => X.invalidateQueries({
+var kF = () => Y.invalidateQueries({
queryKey: DF,
exact: !0
-}), khe = (e) => e.current_asset_id || e.preview_asset_id || null, AF = (e) => `/poster?id=${e}&c=4`, Ahe = (e) => G(EF, {
+}), khe = (e) => e.current_asset_id || e.preview_asset_id || null, AF = (e) => `/poster?id=${e}&c=4`, Ahe = (e) => W(EF, {
action: "create",
name: e,
asset_ids: []
-}), jF = (e, t) => G(EF, {
+}), jF = (e, t) => W(EF, {
action: "rename",
id: e,
name: t
-}), MF = (e) => G(EF, {
+}), MF = (e) => W(EF, {
action: "delete",
id: e
-}), jhe = (e) => W(`${EF}?id=${e}`).catch(() => null);
+}), jhe = (e) => U(`${EF}?id=${e}`).catch(() => null);
function Mhe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return G(EF, {
+ return W(EF, {
action: "create",
name: e.name,
asset_ids: t,
@@ -46430,7 +46432,7 @@ function Mhe(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var Nhe = Ob("ellipsis"), Phe = Ob("pencil"), Fhe = Ob("trash"), Ihe = Ob("playlist"), NF = Ii(hy, gy, "text-body-2-medium"), PF = "播放列表名称不能为空", FF = (e) => async () => {
+var Nhe = kb("ellipsis"), Phe = kb("pencil"), Fhe = kb("trash"), Ihe = kb("playlist"), NF = Li(gy, _y, "text-body-2-medium"), PF = "播放列表名称不能为空", FF = (e) => async () => {
try {
await e();
} finally {
@@ -46438,14 +46440,14 @@ var Nhe = Ob("ellipsis"), Phe = Ob("pencil"), Fhe = Ob("trash"), Ihe = Ob("playl
}
};
function Lhe({ toast: e }) {
- let [t, n] = (0, R.useState)(""), [r, i] = (0, R.useState)(""), a = er({
+ let [t, n] = (0, L.useState)(""), [r, i] = (0, L.useState)(""), a = tr({
mutationFn: (e) => Ahe(e),
onSuccess: (t) => {
n(""), i(""), kF(), e("已新建播放列表", { undo: FF(() => MF(t.playlist.id)) });
},
- onError: (e) => i(U(e) || "新建失败")
+ onError: (e) => i(H(e) || "新建失败")
});
- return /* @__PURE__ */ (0, z.jsxs)("form", {
+ return /* @__PURE__ */ (0, R.jsxs)("form", {
"data-playlist-create": "",
"aria-label": "新建播放列表",
onSubmit: (e) => {
@@ -46458,9 +46460,9 @@ function Lhe({ toast: e }) {
}
},
className: "flex flex-wrap items-end gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.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, z.jsx)(py, {
+ children: /* @__PURE__ */ (0, R.jsx)(my, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@ -46472,16 +46474,16 @@ function Lhe({ toast: e }) {
isInvalid: !!r,
hint: r || void 0
})
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
- ...q(a.isPending),
+ ...K(a.isPending),
children: "新建"
})]
});
}
function Rhe({ 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)(() => {
+ let [r, i] = (0, L.useState)(""), [a, o] = (0, L.useState)(""), s = (0, L.useRef)(null);
+ (0, L.useEffect)(() => {
if (!e) return;
i(e.name), o("");
let t = requestAnimationFrame(() => {
@@ -46489,20 +46491,20 @@ function Rhe({ target: e, close: t, toast: n }) {
});
return () => cancelAnimationFrame(t);
}, [e]);
- let c = er({
+ let c = tr({
mutationFn: ({ row: e, value: t }) => jF(e.id, t),
onSuccess: (e, { row: r }) => {
t(), kF(), n("已重命名播放列表", { undo: FF(() => jF(r.id, r.name)) });
},
- onError: (e) => o(U(e))
+ onError: (e) => o(H(e))
});
- return /* @__PURE__ */ (0, z.jsx)(tj, {
+ return /* @__PURE__ */ (0, R.jsx)(tj, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: /* @__PURE__ */ (0, z.jsxs)("form", {
+ children: /* @__PURE__ */ (0, R.jsxs)("form", {
"data-playlist-rename": "",
onSubmit: (t) => {
if (t.preventDefault(), !e || c.isPending) return;
@@ -46517,13 +46519,13 @@ function Rhe({ target: e, close: t, toast: n }) {
});
},
className: "flex min-h-0 flex-col",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-4 p-5",
- children: [/* @__PURE__ */ (0, z.jsx)(gu, {
+ children: [/* @__PURE__ */ (0, R.jsx)(_u, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, z.jsx)(py, {
+ }), /* @__PURE__ */ (0, R.jsx)(my, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@ -46536,15 +46538,15 @@ function Rhe({ target: e, close: t, toast: n }) {
isInvalid: !!a,
hint: a || void 0
})]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex justify-between gap-4 p-3",
- children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
onClick: t,
children: "取消"
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
- ...q(c.isPending),
+ ...K(c.isPending),
children: "保存名称"
})]
})]
@@ -46552,10 +46554,10 @@ function Rhe({ target: e, close: t, toast: n }) {
});
}
function zhe({ name: e, onRename: t, onDelete: n }) {
- let r = (0, R.useRef)(null), [i, a] = (0, R.useState)(!1), o = (e) => {
+ let r = (0, L.useRef)(null), [i, a] = (0, L.useState)(!1), o = (e) => {
a(!1), e();
};
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("button", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("button", {
ref: r,
type: "button",
title: "更多操作",
@@ -46565,33 +46567,33 @@ function zhe({ 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, z.jsx)(Nhe, {
+ children: /* @__PURE__ */ (0, R.jsx)(Nhe, {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, z.jsx)(zh, {
+ }), /* @__PURE__ */ (0, R.jsx)(Bh, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: my,
- children: /* @__PURE__ */ (0, z.jsxs)($D, {
+ className: hy,
+ children: /* @__PURE__ */ (0, R.jsxs)($D, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
- children: [/* @__PURE__ */ (0, z.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
className: NF,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, z.jsx)(Phe, {
+ children: [/* @__PURE__ */ (0, R.jsx)(Phe, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "编辑名称"]
- }), /* @__PURE__ */ (0, z.jsxs)("button", {
+ }), /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
className: NF,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, z.jsx)(Fhe, {
+ children: [/* @__PURE__ */ (0, R.jsx)(Fhe, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "删除播放列表"]
@@ -46600,20 +46602,20 @@ function zhe({ name: e, onRename: t, onDelete: n }) {
})] });
}
function Bhe({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
- let o = $n({
+ let o = er({
queryKey: DF,
queryFn: ({ signal: e }) => OF(e)
- }), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(a);
- (0, R.useEffect)(() => {
+ }), [s, c] = (0, L.useState)(null), l = (0, L.useRef)(a);
+ (0, L.useEffect)(() => {
l.current !== a && (l.current = a, kF());
}, [a]);
let u = o.data;
- if (!u) return /* @__PURE__ */ (0, z.jsx)("div", {
+ if (!u) return /* @__PURE__ */ (0, R.jsx)("div", {
className: "mx-auto w-full max-w-board",
- children: /* @__PURE__ */ (0, z.jsx)(K, {
+ children: /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "播放列表读取失败",
- children: o.error ? U(o.error) : "未取得播放列表,请刷新页面重试。"
+ children: o.error ? H(o.error) : "未取得播放列表,请刷新页面重试。"
})
});
let d = u.items ?? [], f = (e) => {
@@ -46628,25 +46630,25 @@ function Bhe({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}
});
};
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "mx-auto w-full max-w-board pt-1 pb-10.5",
children: [
- /* @__PURE__ */ (0, z.jsxs)("header", {
+ /* @__PURE__ */ (0, R.jsxs)("header", {
className: "mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", { children: [/* @__PURE__ */ (0, z.jsx)("h2", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", { children: [/* @__PURE__ */ (0, R.jsx)("h2", {
className: "mb-1 text-display-4-medium! text-text-primary",
children: "播放列表"
- }), /* @__PURE__ */ (0, z.jsx)("p", {
+ }), /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "保存 Mix,按自己的顺序继续播放。"
- })] }), /* @__PURE__ */ (0, z.jsx)(Lhe, { toast: i })]
+ })] }), /* @__PURE__ */ (0, R.jsx)(Lhe, { toast: i })]
}),
- d.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ d.length ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-playlist-grid": "",
className: "card-grid-cover gap-4.5",
children: d.map((i) => {
let a = khe(i);
- return /* @__PURE__ */ (0, z.jsx)(Lb, {
+ return /* @__PURE__ */ (0, R.jsx)(Rb, {
"data-playlist-card": String(i.id),
name: i.name,
caption: i.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
@@ -46659,19 +46661,19 @@ function Bhe({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
onOpenEntity: t,
...a ? { onOpen: () => e(i.id, a) } : {},
openLabel: `打开播放列表 ${i.name}`,
- menu: /* @__PURE__ */ (0, z.jsx)(zhe, {
+ menu: /* @__PURE__ */ (0, R.jsx)(zhe, {
name: i.name,
onRename: () => c(i),
onDelete: () => f(i)
})
}, i.id);
})
- }) : /* @__PURE__ */ (0, z.jsx)($i, {
+ }) : /* @__PURE__ */ (0, R.jsx)(ea, {
icon: Ihe,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
}),
- /* @__PURE__ */ (0, z.jsx)(Rhe, {
+ /* @__PURE__ */ (0, R.jsx)(Rhe, {
target: s,
close: () => c(null),
toast: i
@@ -46683,36 +46685,36 @@ function Bhe({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
//#region src/react/quality-goals/quality-goals-page.tsx
function Vhe({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
let c = () => n(t.id);
- return /* @__PURE__ */ (0, z.jsxs)("li", {
+ return /* @__PURE__ */ (0, R.jsxs)("li", {
"data-goal-id": t.id,
- className: Zi({
+ className: Qi({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
}),
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 gap-4",
- children: [/* @__PURE__ */ (0, z.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
onClick: c,
"aria-label": `打开 ${i(t)}`,
className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
- }), /* @__PURE__ */ (0, z.jsx)("img", {
+ }), /* @__PURE__ */ (0, R.jsx)("img", {
src: _re(t),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
className: "absolute inset-0 size-full object-contain"
})]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 flex-col gap-1.5",
children: [
- /* @__PURE__ */ (0, z.jsx)("h3", {
+ /* @__PURE__ */ (0, R.jsx)("h3", {
className: "text-headline-medium text-text-primary",
- children: /* @__PURE__ */ (0, z.jsx)("button", {
+ children: /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-middle-truncate": !0,
onClick: c,
@@ -46720,27 +46722,27 @@ function Vhe({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadg
dangerouslySetInnerHTML: { __html: r(t) }
})
}),
- /* @__PURE__ */ (0, z.jsxs)("p", {
+ /* @__PURE__ */ (0, R.jsxs)("p", {
className: "flex flex-wrap items-center gap-2 text-body-2-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: a(t.location, t.cost) }
}),
- /* @__PURE__ */ (0, z.jsx)("span", { children: e[t.location] ?? t.location }),
- /* @__PURE__ */ (0, z.jsx)("span", { children: o(t.duration) }),
- /* @__PURE__ */ (0, z.jsx)("span", { children: s(t.size ?? 0) })
+ /* @__PURE__ */ (0, R.jsx)("span", { children: e[t.location] ?? t.location }),
+ /* @__PURE__ */ (0, R.jsx)("span", { children: o(t.duration) }),
+ /* @__PURE__ */ (0, R.jsx)("span", { children: s(t.size ?? 0) })
]
}),
- t.reason ? /* @__PURE__ */ (0, z.jsx)("p", {
+ t.reason ? /* @__PURE__ */ (0, R.jsx)("p", {
className: "border-t border-separator-border pt-3 text-body-2-regular text-text-secondary",
children: t.reason
}) : null
]
})]
- }), /* @__PURE__ */ (0, z.jsx)("footer", {
+ }), /* @__PURE__ */ (0, R.jsx)("footer", {
className: "flex justify-end",
- children: /* @__PURE__ */ (0, z.jsx)(H, {
+ children: /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
onClick: c,
@@ -46750,29 +46752,29 @@ function Vhe({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadg
});
}
function Hhe(e) {
- let t = $n({
- queryKey: ux,
- queryFn: ({ signal: e }) => dx(e)
+ let t = er({
+ queryKey: dx,
+ queryFn: ({ signal: e }) => fx(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, z.jsx)(ta, { children: /* @__PURE__ */ (0, z.jsx)(K, {
+ if (!n) return /* @__PURE__ */ (0, R.jsx)(na, { children: /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "高清版目标读取失败",
- children: t.error ? U(t.error) : "未取得高清版目标,请刷新页面重试。"
+ children: t.error ? H(t.error) : "未取得高清版目标,请刷新页面重试。"
}) });
let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, z.jsxs)(ta, { children: [/* @__PURE__ */ (0, z.jsx)(PO, {
+ return r.length ? /* @__PURE__ */ (0, R.jsxs)(na, { children: [/* @__PURE__ */ (0, R.jsx)(PO, {
label: "待升级",
figure: `${n.total} 部作品`,
flush: !0
- }), /* @__PURE__ */ (0, z.jsx)("ul", {
+ }), /* @__PURE__ */ (0, R.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, z.jsx)(Vhe, {
+ children: r.map((t) => /* @__PURE__ */ (0, R.jsx)(Vhe, {
item: t,
...e
}, t.id))
- })] }) : /* @__PURE__ */ (0, z.jsx)(ta, { children: /* @__PURE__ */ (0, z.jsx)($i, {
+ })] }) : /* @__PURE__ */ (0, R.jsx)(na, { children: /* @__PURE__ */ (0, R.jsx)(ea, {
shell: "plain",
- icon: wt,
+ icon: Tt,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
@@ -46784,11 +46786,11 @@ function Uhe() {
return IF?.isConnected || (IF = document.createElement("div"), IF.className = "peach-react", IF.dataset.reactOverlays = "", document.body.append(IF)), IF;
}
function LF({ children: e }) {
- return /* @__PURE__ */ (0, z.jsx)(Ot, {
- client: X,
- children: /* @__PURE__ */ (0, z.jsx)(lpe, {
+ return /* @__PURE__ */ (0, R.jsx)(kt, {
+ client: Y,
+ children: /* @__PURE__ */ (0, R.jsx)(lpe, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, z.jsx)(Oh, {
+ children: /* @__PURE__ */ (0, R.jsx)(kh, {
getContainer: Uhe,
children: e
})
@@ -46799,44 +46801,44 @@ function LF({ children: e }) {
//#region src/react/review/bulk-toolbar.tsx
function Whe(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 = Ore(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
"data-review-filter": !0,
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(vy, {
+ /* @__PURE__ */ (0, R.jsx)(yy, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(yy, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(by, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, z.jsxs)(vy, {
+ i.length > 1 ? /* @__PURE__ */ (0, R.jsxs)(yy, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, z.jsx)(yy, {
+ children: [/* @__PURE__ */ (0, R.jsx)(by, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, z.jsx)(yy, {
+ }), i.map((e) => /* @__PURE__ */ (0, R.jsx)(by, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
}) : null,
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
- leadingIcon: Je,
+ leadingIcon: Ye,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -46847,12 +46849,12 @@ function Whe(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), /* @__PURE__ */ (0, z.jsxs)($P, {
+ }), /* @__PURE__ */ (0, R.jsxs)($P, {
label: "复核所选项目",
visible: c.size > 0,
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, z.jsxs)(vy, {
+ b ? /* @__PURE__ */ (0, R.jsxs)(yy, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -46860,36 +46862,36 @@ function Whe(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, z.jsx)(yy, {
+ children: [/* @__PURE__ */ (0, R.jsx)(by, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, z.jsx)(yy, {
+ }), y.map((e) => /* @__PURE__ */ (0, R.jsx)(by, {
id: e,
children: e
}, e))]
}) : null,
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "primary",
size: "small",
disabled: p || !c.size || !f,
onClick: () => g("approved"),
children: "通过所选"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "danger",
size: "small",
disabled: p || !c.size,
onClick: () => g("rejected"),
children: "拒绝所选"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
size: "small",
disabled: p,
onClick: () => l(/* @__PURE__ */ new Set()),
children: "取消选择"
}),
- m ? /* @__PURE__ */ (0, z.jsx)("p", {
+ m ? /* @__PURE__ */ (0, R.jsx)("p", {
role: "status",
className: "w-full text-body-2-regular text-text-secondary",
children: m
@@ -46911,19 +46913,19 @@ var Ghe = {
trailer_url: "预告片"
}, RF = "reviewgenretags";
function Khe({ tags: e }) {
- return e.length ? /* @__PURE__ */ (0, z.jsx)("datalist", {
+ return e.length ? /* @__PURE__ */ (0, R.jsx)("datalist", {
id: RF,
- children: e.map((e) => /* @__PURE__ */ (0, z.jsx)("option", { value: e }, e))
+ children: e.map((e) => /* @__PURE__ */ (0, R.jsx)("option", { value: e }, e))
}) : null;
}
function zF({ 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, z.jsxs)("span", {
+ return /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
- children: [/* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("span", {
className: "relative flex min-w-0 flex-col gap-0.5 px-4 py-3 group-hover:bg-background-primary-hover group-data-selected:bg-background-primary-hover",
children: [
- /* @__PURE__ */ (0, z.jsxs)("b", {
+ /* @__PURE__ */ (0, R.jsxs)("b", {
className: "text-body-2-medium text-text-secondary",
children: [
e.source,
@@ -46931,35 +46933,35 @@ function zF({ candidate: e, selectable: t = !1 }) {
r ? ` · ID ${r}` : ""
]
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-medium break-words text-text-primary",
children: e.display_value || ""
}),
- (e.warnings || []).map((e) => /* @__PURE__ */ (0, z.jsx)("i", {
+ (e.warnings || []).map((e) => /* @__PURE__ */ (0, R.jsx)("i", {
className: "text-body-2-regular text-status-yellow-text",
children: e
}, e)),
- t ? /* @__PURE__ */ (0, z.jsx)("span", {
+ t ? /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": "true",
"data-candidate-choice": !0,
className: "absolute top-4 right-4 inline-grid size-4 place-items-center rounded-full border border-border-checkbox-default bg-background-primary-default group-hover:border-border-checkbox-hover group-data-selected:border-border-focus-ring group-data-selected:bg-accent-600",
- children: /* @__PURE__ */ (0, z.jsx)("span", { className: "size-1.5 rounded-full bg-text-white opacity-0 group-data-selected:opacity-100" })
+ children: /* @__PURE__ */ (0, R.jsx)("span", { className: "size-1.5 rounded-full bg-text-white opacity-0 group-data-selected:opacity-100" })
}) : null
]
- }), n.length ? /* @__PURE__ */ (0, z.jsx)("dl", {
+ }), n.length ? /* @__PURE__ */ (0, R.jsx)("dl", {
className: "flex flex-col gap-1 border-t border-separator-border bg-background-primary-default px-4 py-2.5",
- children: n.map(([e, t]) => /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: n.map(([e, t]) => /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 flex-wrap gap-x-2",
children: [
- /* @__PURE__ */ (0, z.jsx)("dt", {
+ /* @__PURE__ */ (0, R.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
children: Ghe[e] || e
}),
- /* @__PURE__ */ (0, z.jsx)("dd", {
+ /* @__PURE__ */ (0, R.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
children: t.display_value
}),
- (t.warnings || []).map((e) => /* @__PURE__ */ (0, z.jsx)("small", {
+ (t.warnings || []).map((e) => /* @__PURE__ */ (0, R.jsx)("small", {
className: "w-full text-caption-1-regular text-status-yellow-text",
children: e
}, e))
@@ -46970,19 +46972,19 @@ function zF({ candidate: e, selectable: t = !1 }) {
}
function qhe({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
- return a.length ? a.length === 1 ? /* @__PURE__ */ (0, z.jsx)("div", {
+ return a.length ? a.length === 1 ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, z.jsx)(zF, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, z.jsx)(D_, {
+ children: /* @__PURE__ */ (0, R.jsx)(zF, { candidate: a[0] })
+ }) : /* @__PURE__ */ (0, R.jsx)(O_, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, z.jsx)(O_, {
+ children: a.map((e) => /* @__PURE__ */ (0, R.jsx)(k_, {
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, z.jsx)(zF, {
+ children: /* @__PURE__ */ (0, R.jsx)(zF, {
candidate: e,
selectable: !0
})
@@ -46990,7 +46992,7 @@ function qhe({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
}) : null;
}
function Jhe({ genre: e, tags: t, locked: n, toast: r }) {
- let [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), c = er({
+ let [i, a] = (0, L.useState)(""), [o, s] = (0, L.useState)(""), c = tr({
mutationFn: (t) => Ire(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
@@ -46999,7 +47001,7 @@ function Jhe({ genre: e, tags: t, locked: n, toast: r }) {
}
r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await Rre();
},
- onError: (e) => s(U(e))
+ onError: (e) => s(H(e))
}), l = () => {
let e = i.trim();
if (!e) {
@@ -47008,22 +47010,22 @@ function Jhe({ genre: e, tags: t, locked: n, toast: r }) {
}
s(""), c.mutate(e);
};
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)("b", {
+ /* @__PURE__ */ (0, R.jsx)("b", {
lang: "ja",
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, z.jsx)(uy, {
+ /* @__PURE__ */ (0, R.jsx)(dy, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, z.jsx)(fy, {
+ children: /* @__PURE__ */ (0, R.jsx)(py, {
size: "small",
list: t.length ? RF : void 0,
autoComplete: "off",
@@ -47033,14 +47035,14 @@ function Jhe({ genre: e, tags: t, locked: n, toast: r }) {
}
})
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: n || c.isPending,
onClick: l,
children: "收录"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: n || c.isPending,
@@ -47049,7 +47051,7 @@ function Jhe({ genre: e, tags: t, locked: n, toast: r }) {
},
children: "不是内容"
}),
- o ? /* @__PURE__ */ (0, z.jsx)("p", {
+ o ? /* @__PURE__ */ (0, R.jsx)("p", {
role: "status",
className: "w-full text-body-2-regular text-text-error-primary",
children: o
@@ -47059,14 +47061,14 @@ function Jhe({ genre: e, tags: t, locked: n, toast: r }) {
}
function Yhe({ row: e, tags: t, locked: n, toast: r }) {
let i = Nre(e);
- return i.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ return i.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
className: "flex flex-col gap-2 rounded-surface border border-separator-border bg-background-primary-default px-4 py-3",
- children: [/* @__PURE__ */ (0, z.jsx)("h5", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, z.jsx)(Jhe, {
+ }), i.map((e) => /* @__PURE__ */ (0, R.jsx)(Jhe, {
genre: e,
tags: t,
locked: n,
@@ -47078,16 +47080,16 @@ function Yhe({ row: e, tags: t, locked: n, toast: r }) {
//#region src/react/review/review-evidence.tsx
var BF = (e = "") => /^https?:\/\//i.test(e) ? e : "", Xhe = (e = "") => BF(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
function VF({ url: e }) {
- let t = Xhe(e || ""), [n, r] = (0, R.useState)(!1);
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ let t = Xhe(e || ""), [n, r] = (0, L.useState)(!1);
+ return /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
- children: t && !n ? /* @__PURE__ */ (0, z.jsx)("img", {
+ children: t && !n ? /* @__PURE__ */ (0, R.jsx)("img", {
src: t,
alt: "来源候选图片",
loading: "lazy",
className: "size-full object-contain",
onError: () => r(!0)
- }) : /* @__PURE__ */ (0, z.jsx)("span", {
+ }) : /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: "未取得来源图片"
})
@@ -47095,31 +47097,31 @@ function VF({ url: e }) {
}
function HF({ asset: e, openItem: t }) {
let n = e.name || "";
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
- children: [/* @__PURE__ */ (0, z.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
onClick: () => t(e.id),
className: "flex aspect-card-cover w-review-cover-narrow shrink-0 review-tight:w-review-cover cursor-pointer items-center justify-center overflow-hidden rounded-2lg bg-background-tertiary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [e.preview_url ? /* @__PURE__ */ (0, z.jsx)("img", {
+ children: [e.preview_url ? /* @__PURE__ */ (0, R.jsx)("img", {
src: e.preview_url,
alt: "",
loading: "lazy",
className: "size-full object-cover"
- }) : /* @__PURE__ */ (0, z.jsx)("span", {
+ }) : /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "无封面"
- }), /* @__PURE__ */ (0, z.jsx)(ju, { children: `打开原视频 ${n}` })]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)(Mu, { children: `打开原视频 ${n}` })]
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-1",
- children: [/* @__PURE__ */ (0, z.jsx)("b", {
+ children: [/* @__PURE__ */ (0, R.jsx)("b", {
title: n,
className: "w-full truncate text-body-medium text-text-primary",
children: e.code || n || "原视频"
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
- leadingIcon: ft,
+ leadingIcon: pt,
onClick: () => t(e.id),
children: "打开原视频"
})]
@@ -47127,22 +47129,22 @@ function HF({ asset: e, openItem: t }) {
});
}
function Zhe({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [/* @__PURE__ */ (0, z.jsx)("button", {
+ children: [/* @__PURE__ */ (0, R.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 ${qN}`,
dangerouslySetInnerHTML: { __html: r }
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
- children: [/* @__PURE__ */ (0, z.jsx)("button", {
+ children: [/* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
onClick: () => i(e, t),
className: "max-w-full cursor-pointer truncate text-body-medium text-text-primary underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: t
- }), n ? /* @__PURE__ */ (0, z.jsx)("small", {
+ }), n ? /* @__PURE__ */ (0, R.jsx)("small", {
className: "tabular-nums text-body-2-regular text-text-secondary",
children: `${n.toLocaleString()} 部作品`
}) : null]
@@ -47151,66 +47153,66 @@ function Zhe({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
}
function Qhe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
let o = BF(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
- return /* @__PURE__ */ (0, z.jsxs)("section", {
+ return /* @__PURE__ */ (0, R.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)("h5", {
+ /* @__PURE__ */ (0, R.jsx)("h5", {
className: "text-body-medium text-text-primary",
children: `候选身份:${e.babepedia_name || "未标注"}`
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [o ? /* @__PURE__ */ (0, z.jsx)(Vi, {
+ children: [o ? /* @__PURE__ */ (0, R.jsx)(Hi, {
variant: "secondary",
size: "small",
- trailingIcon: tt,
+ trailingIcon: nt,
href: o,
target: "_blank",
rel: "noopener noreferrer",
children: "来源资料"
- }) : null, /* @__PURE__ */ (0, z.jsx)(H, {
+ }) : null, /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
onClick: () => n("creator", e.creator || ""),
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, z.jsx)(VF, { url: e.preview_url }),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)(VF, { url: e.preview_url }),
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
}),
- s.length ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("h5", {
+ s.length ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("h5", {
className: "text-body-medium text-text-primary",
children: "本地作品样本"
- }), /* @__PURE__ */ (0, z.jsx)("ul", {
+ }), /* @__PURE__ */ (0, R.jsx)("ul", {
className: "flex flex-col gap-1",
- children: s.map((e) => /* @__PURE__ */ (0, z.jsxs)("li", {
+ children: s.map((e) => /* @__PURE__ */ (0, R.jsxs)("li", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
size: "small",
className: "min-w-0",
onClick: () => t(e.id),
- children: /* @__PURE__ */ (0, z.jsx)("span", {
+ children: /* @__PURE__ */ (0, R.jsx)("span", {
title: e.name,
className: "block max-w-full truncate",
children: e.name
})
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
size: "small",
"aria-label": `打开 ${e.name} 的文件位置`,
- ...q(i === e.id),
+ ...K(i === e.id),
onClick: () => r(e.id),
children: "文件位置"
})]
}, e.id))
- })] }) : /* @__PURE__ */ (0, z.jsx)("p", {
+ })] }) : /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "暂无本地作品样本,打开全部作品核对。"
}),
- a ? /* @__PURE__ */ (0, z.jsx)("p", {
+ a ? /* @__PURE__ */ (0, R.jsx)("p", {
role: "status",
className: "text-body-2-regular text-text-error-primary",
children: a
@@ -47219,7 +47221,7 @@ function Qhe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
});
}
function $he({ assets: e, picked: t, onPicked: n, locked: r }) {
- let [i, a] = (0, R.useState)(null), o = new Set(t), s = (t, s) => {
+ let [i, a] = (0, L.useState)(null), o = new Set(t), s = (t, s) => {
if (r) return;
let c = new Set(o);
if (s && i !== null) {
@@ -47231,23 +47233,23 @@ function $he({ assets: e, picked: t, onPicked: n, locked: r }) {
}
a(t), n(e.filter((e) => c.has(e.id)).map((e) => e.id));
};
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "tabular-nums text-body-2-regular text-text-secondary",
children: `已选 ${o.size} / ${e.length}`
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
size: "small",
disabled: r,
onClick: () => n(e.map((e) => e.id)),
children: "全选"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
size: "small",
disabled: r,
@@ -47255,26 +47257,26 @@ function $he({ assets: e, picked: t, onPicked: n, locked: r }) {
children: "清空"
})
]
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
className: "review-asset-grid gap-1.5",
children: e.map((e, t) => {
let n = o.has(e.id);
- return /* @__PURE__ */ (0, z.jsxs)("button", {
+ return /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"aria-pressed": n,
title: e.name,
onClick: (e) => s(t, e.shiftKey),
className: `relative aspect-card-cover cursor-pointer overflow-hidden rounded-surface bg-background-tertiary-default outline-none transition-opacity focus-visible:ring-2 focus-visible:ring-border-focus-ring ${n ? "opacity-100 ring-2 ring-border-button-active ring-inset" : "opacity-50"}`,
children: [
- /* @__PURE__ */ (0, z.jsx)("img", {
+ /* @__PURE__ */ (0, R.jsx)("img", {
src: `/poster?id=${e.id}&c=4`,
alt: "",
loading: "lazy",
className: "size-full object-cover"
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, z.jsx)(gO, {
+ children: /* @__PURE__ */ (0, R.jsx)(gO, {
size: "sm",
state: {
isSelected: n,
@@ -47285,7 +47287,7 @@ function $he({ assets: e, picked: t, onPicked: n, locked: r }) {
}
})
}),
- /* @__PURE__ */ (0, z.jsx)(ju, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
+ /* @__PURE__ */ (0, R.jsx)(Mu, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
]
}, e.id);
})
@@ -47294,19 +47296,19 @@ function $he({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var ege = Zi({
+var ege = Qi({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
}), UF = "flex min-h-6 min-w-0 items-center", tge = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
function nge(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 = aO(), h = aO(), g = t === "metadata_fields", _ = wre[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = Are(t, n), x = Sx(t, n), S = xx(t, n), C = jre(n), w = Mre(n), T = bx(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, z.jsx)("div", {
+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, L.useRef)(!1), m = aO(), h = aO(), g = t === "metadata_fields", _ = wre[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = Are(t, n), x = Cx(t, n), S = Sx(t, n), C = jre(n), w = Mre(n), T = xx(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-col gap-3",
- children: E.map((e) => /* @__PURE__ */ (0, z.jsx)(HF, {
+ children: E.map((e) => /* @__PURE__ */ (0, R.jsx)(HF, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : y ? /* @__PURE__ */ (0, z.jsx)(Zhe, {
+ }) : y ? /* @__PURE__ */ (0, R.jsx)(Zhe, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -47314,16 +47316,17 @@ function nge(e) {
avatar: f.avatarInner(v, n.entity_id ? {
id: n.entity_id,
has_image: !!n.has_image,
+ image_version: n.image_version,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, z.jsx)(HF, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, R.jsx)(HF, {
openItem: f.openItem,
asset: {
id: n.asset_id,
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, A = g ? /* @__PURE__ */ (0, z.jsx)(qhe, {
+ }) : null, A = g ? /* @__PURE__ */ (0, R.jsx)(qhe, {
row: n,
fieldName: x,
value: r.candidateKey,
@@ -47332,7 +47335,7 @@ function nge(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, z.jsx)($he, {
+ }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, R.jsx)($he, {
assets: D,
picked: r.assets,
locked: s,
@@ -47340,46 +47343,46 @@ function nge(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, z.jsx)($i, {
+ }) : /* @__PURE__ */ (0, R.jsx)(ea, {
shell: "inset",
- icon: st,
+ icon: ct,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, z.jsx)(Qhe, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, R.jsx)(Qhe, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, z.jsx)(VF, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, z.jsxs)("h4", {
+ }) : /* @__PURE__ */ (0, R.jsx)(VF, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, R.jsxs)("h4", {
className: `${UF} flex-wrap gap-2`,
- children: [/* @__PURE__ */ (0, z.jsx)(zi, {
+ children: [/* @__PURE__ */ (0, R.jsx)(Bi, {
variant: "caption",
color: "blue",
children: x
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
title: S,
className: "min-w-0 truncate text-body-medium text-text-primary",
children: S
})]
- }) : /* @__PURE__ */ (0, z.jsx)("h4", {
+ }) : /* @__PURE__ */ (0, R.jsx)("h4", {
className: UF,
- children: /* @__PURE__ */ (0, z.jsx)("span", {
+ children: /* @__PURE__ */ (0, R.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
children: b
})
});
- return /* @__PURE__ */ (0, z.jsxs)("section", {
+ return /* @__PURE__ */ (0, R.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
className: `${ege} ${tge(t)} overflow-hidden`,
children: [
- /* @__PURE__ */ (0, z.jsxs)("header", {
+ /* @__PURE__ */ (0, R.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
- s ? null : /* @__PURE__ */ (0, z.jsx)("span", {
+ s ? null : /* @__PURE__ */ (0, R.jsx)("span", {
className: `${UF} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
@@ -47387,66 +47390,66 @@ function nge(e) {
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, z.jsx)(_O, {
+ children: /* @__PURE__ */ (0, R.jsx)(_O, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
})
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
className: "min-w-0 flex-1",
children: j
}),
- O ? /* @__PURE__ */ (0, z.jsx)(zi, {
+ O ? /* @__PURE__ */ (0, R.jsx)(Bi, {
variant: "caption",
color: "neutral",
children: n.decision
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
className: "relative flex min-w-0 min-h-0 flex-1 flex-col",
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
ref: m,
className: "flex min-w-0 min-h-0 flex-1 flex-col gap-3 overflow-y-auto",
children: [
- n.source_name ? /* @__PURE__ */ (0, z.jsx)("p", {
+ n.source_name ? /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: `来源写法:${n.source_name}`
}) : null,
- !y && (n.board || n.assets) ? /* @__PURE__ */ (0, z.jsx)("p", {
+ !y && (n.board || n.assets) ? /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: `样本/资产:${n.video_count || n.assets || ""}`
}) : null,
!y && k ? k : null,
- w.length || t === "creator_tags" ? /* @__PURE__ */ (0, z.jsx)("div", {
+ w.length || t === "creator_tags" ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-wrap gap-1",
- children: w.length ? w.map((e) => /* @__PURE__ */ (0, z.jsx)(zi, {
+ children: w.length ? w.map((e) => /* @__PURE__ */ (0, R.jsx)(Bi, {
variant: "caption",
color: "soft",
children: e
- }, e)) : /* @__PURE__ */ (0, z.jsx)("small", {
+ }, e)) : /* @__PURE__ */ (0, R.jsx)("small", {
className: "text-body-2-regular text-text-secondary",
children: "暂无候选标签"
})
}) : null,
A,
- /* @__PURE__ */ (0, z.jsx)(Yhe, {
+ /* @__PURE__ */ (0, R.jsx)(Yhe, {
row: n,
tags: u,
locked: s,
toast: f.toast
}),
- !g && C ? /* @__PURE__ */ (0, z.jsx)("p", {
+ !g && C ? /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: C
}) : null
]
})
}),
- g && C ? /* @__PURE__ */ (0, z.jsx)("div", {
+ g && C ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "relative -mx-5 -mb-4 shrink-0",
- children: /* @__PURE__ */ (0, z.jsx)("p", {
+ children: /* @__PURE__ */ (0, R.jsx)("p", {
ref: h,
role: "region",
"aria-label": "当前信息",
@@ -47454,34 +47457,34 @@ function nge(e) {
children: C
})
}) : null,
- /* @__PURE__ */ (0, z.jsxs)("footer", {
+ /* @__PURE__ */ (0, R.jsxs)("footer", {
className: "-mx-5 flex min-h-14 shrink-0 flex-wrap items-center justify-end gap-2 rounded-b-surface border-t border-separator-border bg-background-secondary-default py-3 pr-3 pl-5",
children: [
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "danger",
size: "small",
disabled: s,
- ...q(c),
+ ...K(c),
onClick: () => d("rejected"),
children: "拒绝"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: s,
- ...q(c),
+ ...K(c),
onClick: () => d("skipped"),
children: "跳过"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "primary",
size: "small",
disabled: s || !T,
- ...q(c),
+ ...K(c),
onClick: () => d("approved"),
children: T ? "通过" : "已跳过"
}),
- l ? /* @__PURE__ */ (0, z.jsx)("p", {
+ l ? /* @__PURE__ */ (0, R.jsx)("p", {
role: "status",
className: "w-full text-body-2-regular text-text-error-primary",
children: l
@@ -47495,24 +47498,24 @@ function nge(e) {
//#region src/react/review/review-page.tsx
var rge = "flex cursor-pointer items-center justify-between gap-2";
function ige({ page: e, pages: t, onPage: n }) {
- return t <= 1 ? null : /* @__PURE__ */ (0, z.jsxs)("nav", {
+ return t <= 1 ? null : /* @__PURE__ */ (0, R.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: e <= 1,
onClick: () => n(e - 1),
children: "上一页"
}),
- /* @__PURE__ */ (0, z.jsx)("ul", {
+ /* @__PURE__ */ (0, R.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: fx(e, t).map((t, r) => /* @__PURE__ */ (0, z.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: px(e, t).map((t, r) => /* @__PURE__ */ (0, R.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
- }) : /* @__PURE__ */ (0, z.jsx)(H, {
+ }) : /* @__PURE__ */ (0, R.jsx)(V, {
variant: t === e ? "secondary" : "ghost",
size: "small",
"aria-label": `第 ${t} 页`,
@@ -47521,7 +47524,7 @@ function ige({ page: e, pages: t, onPage: n }) {
children: t
}) }, t === "…" ? `dots-${r}` : t))
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: e >= t,
@@ -47532,51 +47535,51 @@ function ige({ page: e, pages: t, onPage: n }) {
});
}
function age(e) {
- let [t, n] = (0, R.useState)(() => matchMedia("(max-width:900px)").matches);
- (0, R.useEffect)(() => {
+ let [t, n] = (0, L.useState)(() => matchMedia("(max-width:900px)").matches);
+ (0, L.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, avatarInner: s, toast: c, readOnly: l, readOnlyMessage: u, writerUrl: d } = e, [f, p] = (0, R.useState)(vx(e.category) ? e.category : Cre), [m, h] = (0, R.useState)("candidates"), [g, _] = (0, R.useState)(""), [v, y] = (0, R.useState)(1), [b, x] = (0, R.useState)(/* @__PURE__ */ new Set()), [S, C] = (0, R.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, R.useState)(/* @__PURE__ */ new Map()), [E, D] = (0, R.useState)(""), O = (0, R.useRef)(null), [k, A] = (0, R.useState)(0), [j, M] = (0, R.useState)(""), N = (0, R.useRef)(!0);
- (0, R.useEffect)(() => () => {
+ let { route: r, openItem: i, openEntity: a, revealSource: o, avatarInner: s, toast: c, readOnly: l, readOnlyMessage: u, writerUrl: d } = e, [f, p] = (0, L.useState)(yx(e.category) ? e.category : Cre), [m, h] = (0, L.useState)("candidates"), [g, _] = (0, L.useState)(""), [v, y] = (0, L.useState)(1), [b, x] = (0, L.useState)(/* @__PURE__ */ new Set()), [S, C] = (0, L.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, L.useState)(/* @__PURE__ */ new Map()), [E, D] = (0, L.useState)(""), O = (0, L.useRef)(null), [k, A] = (0, L.useState)(0), [j, M] = (0, L.useState)(""), N = (0, L.useRef)(!0);
+ (0, L.useEffect)(() => () => {
N.current = !1;
}, []);
- let P = $n({
- queryKey: gx,
- queryFn: ({ signal: e }) => wx(e)
+ let P = er({
+ queryKey: _x,
+ queryFn: ({ signal: e }) => Tx(e)
}).data || {
sections: {},
counts: {}
- }, ee = P.sections[f] || [], F = f === "metadata_fields", I = l, te = Tre(ee, F), ne = te.some(([e]) => e === m) ? m : "candidates", re = yx(ee, ne), ie = re.some((e) => e.key === g) ? g : "", ae = Dre(Ere(ee, ne, ie), v), oe = ae.rows.map((e) => e.item_key), se = new Set(oe), ce = re.map((e) => ({
+ }, ee = P.sections[f] || [], F = f === "metadata_fields", te = l, ne = Tre(ee, F), re = ne.some(([e]) => e === m) ? m : "candidates", ie = bx(ee, re), ae = ie.some((e) => e.key === g) ? g : "", oe = Dre(Ere(ee, re, ae), v), se = oe.rows.map((e) => e.item_key), ce = new Set(se), le = ie.map((e) => ({
...e,
- rows: e.rows.filter((e) => se.has(e.item_key))
- })).filter((e) => e.rows.length), le = (e) => S.get(e.item_key) || Pre(e), ue = ee.filter((e) => b.has(e.item_key)), L = (e) => {
+ rows: e.rows.filter((e) => ce.has(e.item_key))
+ })).filter((e) => e.rows.length), ue = (e) => S.get(e.item_key) || Pre(e), de = ee.filter((e) => b.has(e.item_key)), I = (e) => {
let t = new Set(e);
x((e) => new Set([...e].filter((e) => !t.has(e)))), C((e) => new Map([...e].filter(([e]) => !t.has(e)))), T((e) => new Map([...e].filter(([e]) => !t.has(e))));
- }, de = (e, t) => T((n) => new Map(n).set(e, t)), fe = (e) => {
+ }, fe = (e, t) => T((n) => new Map(n).set(e, t)), pe = (e) => {
p(e), h("candidates"), _(""), y(1), x(/* @__PURE__ */ new Set()), C(/* @__PURE__ */ new Map()), T(/* @__PURE__ */ new Map()), D(""), O.current = null, r({ category: e === "metadata_fields" ? "" : e });
- }, pe = er({
- mutationFn: ({ row: e, status: t }) => Tx(Cx(f, e, t, le(e))),
+ }, me = tr({
+ mutationFn: ({ row: e, status: t }) => Ex(wx(f, e, t, ue(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
- de(t.item_key, e.error || "服务端拒绝了这次判定");
+ fe(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- Ex(f, [t.item_key]), L([t.item_key]), c(Fre(n));
+ Dx(f, [t.item_key]), I([t.item_key]), c(Fre(n));
},
- onError: (e, { row: t }) => de(t.item_key, U(e))
- }), me = er({
+ onError: (e, { row: t }) => fe(t.item_key, H(e))
+ }), he = tr({
mutationFn: async (e) => {
- let t = ue, n = [], r = [];
+ let t = de, n = [], r = [];
for (let [i, a] of t.entries()) {
if (!N.current) break;
D(`正在处理 ${i} / ${t.length}`);
try {
- let t = await Tx(Cx(f, a, e, le(a)));
+ let t = await Ex(wx(f, a, e, ue(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
- r.push([a.item_key, U(e)]);
+ r.push([a.item_key, H(e)]);
}
}
return {
@@ -47586,126 +47589,126 @@ function age(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- Ex(f, t), L(t), n.forEach(([e, t]) => de(e, t)), D(""), c(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ Dx(f, t), I(t), n.forEach(([e, t]) => fe(e, t)), D(""), c(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
- D(U(e));
+ D(H(e));
}
- }), he = (e) => {
- if (!(me.isPending || !ue.length)) {
- if (e === "approved" && F && ue.some((e) => !le(e).candidateKey)) {
+ }), ge = (e) => {
+ if (!(he.isPending || !de.length)) {
+ if (e === "approved" && F && de.some((e) => !ue(e).candidateKey)) {
D("先为所选的多来源候选选择来源。");
return;
}
- D(""), me.mutate(e);
+ D(""), he.mutate(e);
}
- }, ge = (e) => {
+ }, _e = (e) => {
C((t) => {
let n = new Map(t);
- for (let t of ue) {
+ for (let t of de) {
let r = t.candidates?.find((t) => t.source === e);
r && n.set(t.item_key, {
- ...le(t),
+ ...ue(t),
candidateKey: r.candidate_key
});
}
return n;
}), D(`已选择 ${e},点击通过所选采用。`);
- }, _e = async (e) => {
+ }, ve = async (e) => {
if (k) return;
A(e), M("");
let t = await o(e);
N.current && (A(0), M(t));
- }, ve = zre(P.mirror, u), ye = P.genre_tags || [], be = {
+ }, ye = zre(P.mirror, u), be = P.genre_tags || [], xe = {
openItem: i,
openEntity: a,
- onReveal: _e,
+ onReveal: ve,
revealing: k,
revealNote: j,
avatarInner: s,
toast: c
};
- return /* @__PURE__ */ (0, z.jsx)(ta, { children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsx)(na, { children: /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
- I ? /* @__PURE__ */ (0, z.jsx)(K, {
+ te ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "warning",
title: "本机只能浏览",
- extra: d ? /* @__PURE__ */ (0, z.jsx)("p", {
+ extra: d ? /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular",
- children: /* @__PURE__ */ (0, z.jsx)("a", {
+ children: /* @__PURE__ */ (0, R.jsx)("a", {
href: d,
className: "text-text-primary underline underline-offset-2",
children: "前往写入端复核"
})
}) : void 0,
- children: ve
+ children: ye
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Khe, { tags: ye }),
- /* @__PURE__ */ (0, z.jsxs)(ay, {
+ /* @__PURE__ */ (0, R.jsx)(Khe, { tags: be }),
+ /* @__PURE__ */ (0, R.jsxs)(oy, {
orientation: t ? "horizontal" : "vertical",
selectedKey: f,
onSelectionChange: (e) => {
let t = String(e);
- vx(t) && fe(t);
+ yx(t) && pe(t);
},
className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
"data-section-nav": !0,
className: "w-full min-w-0 review-split:sticky review-split:top-topbar review-split:w-review-tabs review-split:shrink-0",
- children: [/* @__PURE__ */ (0, z.jsx)("h2", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h2", {
id: "reviewcategories",
children: "复核分类"
- }), /* @__PURE__ */ (0, z.jsx)(oy, {
+ }), /* @__PURE__ */ (0, R.jsx)(sy, {
"aria-labelledby": "reviewcategories",
"data-section-items": !0,
className: "flex review-split:flex-col review-split:items-stretch",
children: Sre.map((e) => {
let t = Number(P.counts[e] || 0);
- return /* @__PURE__ */ (0, z.jsxs)(sy, {
+ return /* @__PURE__ */ (0, R.jsxs)(cy, {
id: e,
className: rge,
- children: [_x[e], t ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [vx[e], t ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, z.jsxs)(cy, {
+ }), /* @__PURE__ */ (0, R.jsxs)(ly, {
id: f,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- ee.length && !I ? /* @__PURE__ */ (0, z.jsx)(Whe, {
- groupOptions: te,
- groupBy: ne,
+ ee.length && !te ? /* @__PURE__ */ (0, R.jsx)(Whe, {
+ groupOptions: ne,
+ groupBy: re,
onGroupBy: (e) => {
h(e), _(""), y(1);
},
- groups: re,
- filter: ie,
+ groups: ie,
+ filter: ae,
onFilter: (e) => {
_(e), y(1);
},
- pageKeys: oe,
+ pageKeys: se,
selected: b,
onSelected: x,
- selectedRows: ue,
+ selectedRows: de,
metadata: F,
- approvable: ue.every((e) => bx(f, e)),
- busy: me.isPending,
+ approvable: de.every((e) => xx(f, e)),
+ busy: he.isPending,
feedback: E,
- onUnifySource: ge,
- onRun: he
+ onUnifySource: _e,
+ onRun: ge
}) : null,
- ae.rows.length ? ce.map((e) => /* @__PURE__ */ (0, z.jsxs)("section", {
+ oe.rows.length ? le.map((e) => /* @__PURE__ */ (0, R.jsxs)("section", {
className: "flex flex-col gap-3",
- children: [ce.length > 1 || ne !== "candidates" ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [le.length > 1 || re !== "candidates" ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h3", {
className: "text-body-medium text-text-primary",
children: `${e.title} · ${e.rows.length}`
- }), I ? null : /* @__PURE__ */ (0, z.jsx)(H, {
+ }), te ? null : /* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
size: "small",
onClick: () => {
@@ -47715,39 +47718,39 @@ function age(e) {
},
children: e.rows.every((e) => b.has(e.item_key)) ? "清空本组" : "全选本组"
})]
- }) : null, /* @__PURE__ */ (0, z.jsx)("div", {
+ }) : null, /* @__PURE__ */ (0, R.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, z.jsx)(nge, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, R.jsx)(nge, {
category: f,
row: e,
- choice: le(e),
+ choice: ue(e),
onChoice: (t) => C((n) => new Map(n).set(e.item_key, t)),
selected: b.has(e.item_key),
onSelect: (t, n) => x((r) => {
let i = new Set(r);
- return O.current = kre(i, oe, O.current, e.item_key, t, n), i;
+ return O.current = kre(i, se, O.current, e.item_key, t, n), i;
}),
- locked: I,
- busy: pe.isPending && pe.variables?.row.item_key === e.item_key,
+ locked: te,
+ busy: me.isPending && me.variables?.row.item_key === e.item_key,
problem: w.get(e.item_key) || "",
- genreTags: ye,
+ genreTags: be,
onDecide: (t) => {
- pe.isPending || me.isPending || (T((t) => new Map([...t].filter(([t]) => t !== e.item_key))), pe.mutate({
+ me.isPending || he.isPending || (T((t) => new Map([...t].filter(([t]) => t !== e.item_key))), me.mutate({
row: e,
status: t
}));
},
- handlers: be
+ handlers: xe
}, e.item_key))
})]
- }, e.key)) : /* @__PURE__ */ (0, z.jsx)($i, {
- icon: Ye,
+ }, e.key)) : /* @__PURE__ */ (0, R.jsx)(ea, {
+ icon: Xe,
title: "此分类没有待复核项目",
children: "可切换分类查看其他候选。"
}),
- /* @__PURE__ */ (0, z.jsx)(ige, {
- page: ae.page,
- pages: ae.pages,
+ /* @__PURE__ */ (0, R.jsx)(ige, {
+ page: oe.page,
+ pages: oe.pages,
onPage: y
})
]
@@ -47758,18 +47761,18 @@ function age(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var oge = "/api/scraping", sge = "/api/scraping/settings", cge = "/api/scraping/check", WF = "/api/scraping/cover", lge = "/api/scraping/amane-bridge", uge = "/api/scraping/amane-bridge/check", dge = "/api/scraping/amane-bridge/rebuild", GF = ["scraping"], KF = ["scraping", "cover"], qF = ["scraping", "amane-bridge"], JF = (e) => W(oge, e), YF = (e) => W(WF, e), XF = (e) => W(lge, e);
+var oge = "/api/scraping", sge = "/api/scraping/settings", cge = "/api/scraping/check", WF = "/api/scraping/cover", lge = "/api/scraping/amane-bridge", uge = "/api/scraping/amane-bridge/check", dge = "/api/scraping/amane-bridge/rebuild", GF = ["scraping"], KF = ["scraping", "cover"], qF = ["scraping", "amane-bridge"], JF = (e) => U(oge, e), YF = (e) => U(WF, e), XF = (e) => U(lge, e);
async function fge(e) {
await Promise.all([
- X.fetchQuery({
+ Y.fetchQuery({
queryKey: GF,
queryFn: () => JF(e)
}),
- X.fetchQuery({
+ Y.fetchQuery({
queryKey: KF,
queryFn: () => YF(e)
}),
- X.fetchQuery({
+ Y.fetchQuery({
queryKey: qF,
queryFn: () => XF(e)
})
@@ -47789,7 +47792,7 @@ function QF({ source: e }) {
"minnano-av",
"github"
].includes(e);
- return /* @__PURE__ */ (0, z.jsx)("img", {
+ return /* @__PURE__ */ (0, R.jsx)("img", {
src: t ? `/site-icon/${e}.png` : g({ source: e }),
alt: "",
width: 16,
@@ -47800,15 +47803,15 @@ function QF({ source: e }) {
});
}
function hge() {
- return /* @__PURE__ */ (0, z.jsx)(QF, { source: "github" });
+ return /* @__PURE__ */ (0, R.jsx)(QF, { source: "github" });
}
function gge({ 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)(ZF[0][0]), [u, d] = (0, R.useState)(""), [f, p] = (0, R.useState)(""), m = (0, R.useRef)(null);
+ let [n, r] = (0, L.useState)(e.network), [i, a] = (0, L.useState)(""), [o, s] = (0, L.useState)(""), [c, l] = (0, L.useState)(ZF[0][0]), [u, d] = (0, L.useState)(""), [f, p] = (0, L.useState)(""), m = (0, L.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
- let g = er({
- mutationFn: (t) => G(sge, {
+ let g = tr({
+ mutationFn: (t) => W(sge, {
source: e.source,
network: n,
cookie: i,
@@ -47816,12 +47819,12 @@ function gge({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- X.setQueryData(GF, (t) => t && {
+ Y.setQueryData(GF, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = er({ mutationFn: () => G(cge, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = tr({ mutationFn: () => W(cge, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -47845,88 +47848,88 @@ function gge({ source: e, toast: t }) {
p("Cookie 文件未读取,请重新选择");
}
}
- let C = f || (g.error ? U(g.error) : "") || (_.error ? U(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;
- return /* @__PURE__ */ (0, z.jsxs)(Ty, {
+ let C = f || (g.error ? H(g.error) : "") || (_.error ? H(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;
+ return /* @__PURE__ */ (0, R.jsxs)(Ey, {
title: e.label,
onSubmit: y,
- aside: /* @__PURE__ */ (0, z.jsxs)("span", {
+ aside: /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, z.jsx)(QF, { source: e.source }), /* @__PURE__ */ (0, z.jsx)(My, {
+ children: [/* @__PURE__ */ (0, R.jsx)(QF, { source: e.source }), /* @__PURE__ */ (0, R.jsx)(Ny, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, z.jsx)(Ey, { children: /* @__PURE__ */ (0, z.jsx)(Sy, {
+ /* @__PURE__ */ (0, R.jsx)(Dy, { children: /* @__PURE__ */ (0, R.jsx)(Cy, {
label: "连接方式",
- children: /* @__PURE__ */ (0, z.jsx)(vy, {
+ children: /* @__PURE__ */ (0, R.jsx)(yy, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: mge.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(yy, {
+ children: mge.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(by, {
id: e,
children: t
}, e))
})
}) }),
- T ? /* @__PURE__ */ (0, z.jsxs)(Dy, {
+ T ? /* @__PURE__ */ (0, R.jsxs)(Oy, {
divided: !0,
children: [
- n === "peach" ? /* @__PURE__ */ (0, z.jsx)("span", {
+ n === "peach" ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, z.jsx)(wy, {
+ children: /* @__PURE__ */ (0, R.jsx)(Ty, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: We,
+ trailingIcon: Ge,
children: "配置 Peach 代理"
})
}) : null,
- e.browser ? /* @__PURE__ */ (0, z.jsx)("p", {
+ e.browser ? /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "人机验证由本机浏览器自动完成;需要点击时窗口会弹出。这台机器上不需要 Cookie。"
}) : null,
- e.accepts_cookie && !e.browser ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)("p", {
+ e.accepts_cookie && !e.browser ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, z.jsx)(GO, {
+ /* @__PURE__ */ (0, R.jsx)(GO, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
className: KO,
- children: ZF.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(O_, {
+ children: ZF.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(k_, {
value: e,
className: qO,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, z.jsx)(py, {
+ c === "paste" ? /* @__PURE__ */ (0, R.jsx)(my, {
type: "password",
label: "Cookie",
autoComplete: "off",
value: i,
onChange: a
- }) : /* @__PURE__ */ (0, z.jsxs)("div", {
+ }) : /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(jy, { children: "Netscape Cookie 文件(.txt)" }),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsx)(My, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
- children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
onClick: () => m.current?.click(),
children: "选择文件"
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
className: "min-w-0 text-body-2-regular break-all text-text-secondary",
children: u || "未选择文件"
})]
}),
- /* @__PURE__ */ (0, z.jsx)("input", {
+ /* @__PURE__ */ (0, R.jsx)("input", {
ref: m,
type: "file",
accept: ".txt",
@@ -47940,29 +47943,29 @@ function gge({ source: e, toast: t }) {
]
})
] }) : null,
- C ? /* @__PURE__ */ (0, z.jsx)(Ay, { children: C }) : null,
- w.map((t) => /* @__PURE__ */ (0, z.jsx)(K, {
+ C ? /* @__PURE__ */ (0, R.jsx)(jy, { children: C }) : null,
+ w.map((t) => /* @__PURE__ */ (0, R.jsx)(G, {
tone: t.ok ? "success" : "error",
children: pge(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, z.jsxs)(Oy, { children: [
- e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsxs)(ky, { children: [
+ e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
onClick: b,
- ...q(v),
+ ...K(v),
children: "撤销 Cookie"
}) : null,
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
onClick: x,
- ...q(v),
+ ...K(v),
children: "检查连接"
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
- ...q(v),
+ ...K(v),
children: "保存"
})
] })
@@ -47970,25 +47973,25 @@ function gge({ source: e, toast: t }) {
});
}
function _ge({ toast: e }) {
- let [t, n] = (0, R.useState)(""), { running: r, outcome: i, start: a } = pO({
+ let [t, n] = (0, L.useState)(""), { running: r, outcome: i, start: a } = pO({
queryKey: KF,
queryFn: ({ signal: e }) => YF(e),
- start: () => G(WF, { code: t }),
+ start: () => W(WF, { 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, z.jsx)(Ty, {
+ }, s = a.error ? H(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
+ return /* @__PURE__ */ (0, R.jsx)(Ey, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, z.jsxs)(Dy, { children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)(Oy, { children: [
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, z.jsx)(py, {
+ children: /* @__PURE__ */ (0, R.jsx)(my, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -47996,19 +47999,19 @@ function _ge({ toast: e }) {
onChange: n,
placeholder: "输入馆藏番号,如 ABW-232"
})
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
disabled: !t.trim(),
- ...q(r || a.isPending),
+ ...K(r || a.isPending),
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, z.jsx)(ea, { label: "正在抓取封面" }) : null,
- s ? /* @__PURE__ */ (0, z.jsx)(K, {
+ r ? /* @__PURE__ */ (0, R.jsx)(ta, { label: "正在抓取封面" }) : null,
+ s ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
children: s
}) : null,
- i?.status === "complete" ? /* @__PURE__ */ (0, z.jsx)(K, {
+ i?.status === "complete" ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "success",
children: i.result || "封面采集完成"
}) : null
@@ -48019,7 +48022,7 @@ function vge({ toast: e }) {
let { query: t, running: n, outcome: r, start: i } = pO({
queryKey: qF,
queryFn: ({ signal: e }) => XF(e),
- start: () => G(dge, {}),
+ start: () => W(dge, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -48028,45 +48031,45 @@ function vge({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = er({ mutationFn: () => G(uge, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, z.jsx)(Ty, {
+ }), a = tr({ mutationFn: () => W(uge, {}) }), o = t.data;
+ if (!o) return t.error ? /* @__PURE__ */ (0, R.jsx)(Ey, {
title: "amane",
- children: /* @__PURE__ */ (0, z.jsx)(Dy, { children: /* @__PURE__ */ (0, z.jsx)(K, {
+ children: /* @__PURE__ */ (0, R.jsx)(Oy, { children: /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
- children: U(t.error)
+ children: H(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, z.jsxs)(Ty, {
+ let s = n || i.isPending || a.isPending, c = i.error ? H(i.error) : a.error ? H(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
+ return /* @__PURE__ */ (0, R.jsxs)(Ey, {
title: "amane",
- aside: /* @__PURE__ */ (0, z.jsx)(My, {
+ aside: /* @__PURE__ */ (0, R.jsx)(Ny, {
href: o.repository,
leadingIcon: hge,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, z.jsxs)(Ny, { children: [
- /* @__PURE__ */ (0, z.jsx)(Py, {
+ /* @__PURE__ */ (0, R.jsxs)(Py, { children: [
+ /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "已安装版本",
children: o.installed_version || "未安装"
}),
- /* @__PURE__ */ (0, z.jsx)(Py, {
+ /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, z.jsx)(Py, {
+ /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, z.jsx)(Py, {
+ /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "内置站点",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, z.jsxs)(Dy, {
+ /* @__PURE__ */ (0, R.jsxs)(Oy, {
divided: !0,
children: [
- /* @__PURE__ */ (0, z.jsxs)(ky, { children: [
+ /* @__PURE__ */ (0, R.jsxs)(Ay, { children: [
"已安装版本:",
o.installed_version || "未安装",
"。amane(",
@@ -48075,61 +48078,61 @@ function vge({ toast: e }) {
o.version,
" 版本,不随上游自动升级。"
] }),
- n ? /* @__PURE__ */ (0, z.jsx)(ea, { label: "正在重建运行环境" }) : null,
- c ? /* @__PURE__ */ (0, z.jsx)(K, {
+ n ? /* @__PURE__ */ (0, R.jsx)(ta, { label: "正在重建运行环境" }) : null,
+ c ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
children: c
}) : null,
- r?.status === "complete" ? /* @__PURE__ */ (0, z.jsx)(K, {
+ r?.status === "complete" ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "success",
children: r.result || "amane 桥已重建"
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsxs)(Oy, { children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsxs)(ky, { children: [/* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
onClick: () => {
s || a.mutate();
},
- ...q(a.isPending),
+ ...K(a.isPending),
children: "检查上游版本"
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
onClick: () => {
s || i.mutate();
},
- ...q(n || i.isPending),
+ ...K(n || i.isPending),
children: o.installed ? "重新安装" : "安装"
})] })
]
});
}
function yge({ toast: e }) {
- let t = $n({
+ let t = er({
queryKey: GF,
queryFn: ({ signal: e }) => JF(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, z.jsxs)(ta, { children: [
- /* @__PURE__ */ (0, z.jsx)("p", {
+ return n ? /* @__PURE__ */ (0, R.jsxs)(na, { children: [
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, z.jsx)(_ge, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, z.jsx)(gge, {
+ /* @__PURE__ */ (0, R.jsx)(_ge, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, R.jsx)(gge, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, z.jsx)(vge, { toast: e })
- ] }) : /* @__PURE__ */ (0, z.jsx)(ta, { children: /* @__PURE__ */ (0, z.jsx)(K, {
+ /* @__PURE__ */ (0, R.jsx)(vge, { toast: e })
+ ] }) : /* @__PURE__ */ (0, R.jsx)(na, { children: /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "采集来源读取失败",
- children: t.error ? U(t.error) : "读取采集来源失败"
+ children: t.error ? H(t.error) : "读取采集来源失败"
}) });
}
//#endregion
//#region src/configuration-endpoints.ts
-var $F = "/api/configuration", bge = "/api/pick-folder", eI = ["configuration"], tI = (e) => W($F, e);
+var $F = "/api/configuration", bge = "/api/pick-folder", eI = ["configuration"], tI = (e) => U($F, e);
async function nI(e) {
- await X.fetchQuery({
+ await Y.fetchQuery({
queryKey: eI,
queryFn: () => tI(e)
});
@@ -48140,22 +48143,22 @@ var xge = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名
//#endregion
//#region src/react/settings/entry-links-settings.tsx
function Cge({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e.sites), i = aa(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+ let [n, r] = (0, L.useState)(e.sites), i = oa(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, z.jsxs)(Ty, {
+ return /* @__PURE__ */ (0, R.jsxs)(Ey, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
let a = { sites: Object.fromEntries(n.map((e) => [e.key, { host: e.host }])) };
- i.run("save", (e) => G("/api/configuration/entry-links", a, "POST", e), (e) => {
+ i.run("save", (e) => W("/api/configuration/entry-links", a, "POST", e), (e) => {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, z.jsxs)(Dy, { children: [
- /* @__PURE__ */ (0, z.jsx)(ky, { children: xge }),
- n.map((e) => /* @__PURE__ */ (0, z.jsx)(py, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(Oy, { children: [
+ /* @__PURE__ */ (0, R.jsx)(Ay, { children: xge }),
+ n.map((e) => /* @__PURE__ */ (0, R.jsx)(my, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -48166,10 +48169,10 @@ function Cge({ initial: e, receipt: t }) {
validationBehavior: "aria",
hint: Sge
}, e.key)),
- i.error ? /* @__PURE__ */ (0, z.jsx)(Ay, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, z.jsx)(Oy, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ i.error ? /* @__PURE__ */ (0, R.jsx)(jy, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, R.jsx)(ky, { children: /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
- ...q(i.busy === "save"),
+ ...K(i.busy === "save"),
children: "保存配置"
}) })]
});
@@ -48177,53 +48180,53 @@ function Cge({ initial: e, receipt: t }) {
//#endregion
//#region src/react/settings/general-settings.tsx
function wge({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.startup ? /* @__PURE__ */ (0, z.jsx)(Tge, {
+ children: [e.startup ? /* @__PURE__ */ (0, R.jsx)(Tge, {
startup: e.startup,
receipt: t
- }) : null, e.entry_links ? /* @__PURE__ */ (0, z.jsx)(Cge, {
+ }) : null, e.entry_links ? /* @__PURE__ */ (0, R.jsx)(Cge, {
initial: e.entry_links,
receipt: t
}) : null]
});
}
function Tge({ 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 = aa(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, z.jsxs)(Ty, {
+ let [n, r] = (0, L.useState)(e.enabled), [i, a] = (0, L.useState)(e.silent), [o, s] = (0, L.useState)(e.desktop), c = oa(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, R.jsxs)(Ey, {
title: "开机自启",
onSubmit: (r) => {
- r.preventDefault(), e.available && c.run("save", (e) => G("/api/configuration/startup", {
+ r.preventDefault(), e.available && c.run("save", (e) => W("/api/configuration/startup", {
enabled: n,
silent: i,
desktop: o
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, z.jsxs)(Ey, { children: [
- /* @__PURE__ */ (0, z.jsx)(Sy, {
+ /* @__PURE__ */ (0, R.jsxs)(Dy, { children: [
+ /* @__PURE__ */ (0, R.jsx)(Cy, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, z.jsx)(KN, {
+ children: /* @__PURE__ */ (0, R.jsx)(KN, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, z.jsx)(Sy, {
+ /* @__PURE__ */ (0, R.jsx)(Cy, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",
- children: /* @__PURE__ */ (0, z.jsx)(KN, {
+ children: /* @__PURE__ */ (0, R.jsx)(KN, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, z.jsx)(Sy, {
+ /* @__PURE__ */ (0, R.jsx)(Cy, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, z.jsx)(KN, {
+ children: /* @__PURE__ */ (0, R.jsx)(KN, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -48231,14 +48234,14 @@ function Tge({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, z.jsxs)(Dy, {
+ e.message || c.error ? /* @__PURE__ */ (0, R.jsxs)(Oy, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, z.jsx)(ky, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, z.jsx)(Ay, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, R.jsx)(Ay, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, R.jsx)(jy, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Oy, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(ky, { children: /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
disabled: !e.available,
- ...q(c.busy === "save"),
+ ...K(c.busy === "save"),
children: "保存配置"
}) })
]
@@ -48259,15 +48262,15 @@ var rI = /* @__PURE__ */ new Set([
90
], iI = 120;
function Dge({ initial: e, initialJob: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(t || {
+ let [n, r] = (0, L.useState)(e), [i, a] = (0, L.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, R.useState)(""), c = aa(), l = (0, R.useRef)(!1), u = (0, R.useRef)(!0), d = rI.has(i.state);
- (0, R.useEffect)(() => (u.current = !0, () => {
+ }), [o, s] = (0, L.useState)(""), c = oa(), l = (0, L.useRef)(!1), u = (0, L.useRef)(!0), d = rI.has(i.state);
+ (0, L.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
let f = async () => {
- let e = await G("/api/configuration/update-restart", {});
+ let e = await W("/api/configuration/update-restart", {});
u.current && a(e);
}, p = () => void b({
title: "更新已准备好",
@@ -48276,12 +48279,12 @@ function Dge({ initial: e, initialJob: t }) {
cancelLabel: "稍后",
onConfirm: f
});
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
i.state !== "ready" || l.current || (l.current = !0, p());
- }, [i.state]), (0, R.useEffect)(() => {
+ }, [i.state]), (0, L.useEffect)(() => {
let e = new AbortController(), t = rI.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
- let t = await W("/api/configuration/update-status", e.signal);
+ let t = await U("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
a(t), o = 0, t.state === "complete" && r((e) => ({
...e,
@@ -48289,7 +48292,7 @@ function Dge({ initial: e, initialJob: t }) {
state: "current",
message: "已是最新测试版。"
}));
- let n = await W("/api/configuration/automatic-updates", e.signal);
+ let n = await U("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
o += 1, o >= iI && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
@@ -48301,81 +48304,81 @@ function Dge({ initial: e, initialJob: t }) {
};
}, [i.state]);
let m = () => {
- d || (l.current = !1, s(""), c.run("download", (e) => G("/api/configuration/update", {}, "POST", e), a));
- }, h = () => void c.run("check", (e) => W("/api/configuration/updates", e), r, (t) => {
+ d || (l.current = !1, s(""), c.run("download", (e) => W("/api/configuration/update", {}, "POST", e), a));
+ }, h = () => void c.run("check", (e) => U("/api/configuration/updates", e), r, (t) => {
r({
...e,
state: "error"
- }), c.setError(U(t));
+ }), c.setError(H(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, z.jsxs)(Ty, {
+ return /* @__PURE__ */ (0, R.jsxs)(Ey, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, z.jsxs)(Ny, { children: [
- /* @__PURE__ */ (0, z.jsx)(Py, {
+ /* @__PURE__ */ (0, R.jsxs)(Py, { children: [
+ /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, z.jsx)(Py, {
+ /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, z.jsx)(Py, {
+ /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, z.jsx)(Py, {
+ /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, z.jsxs)(Dy, {
+ /* @__PURE__ */ (0, R.jsxs)(Oy, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, z.jsxs)(ky, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
- n.state === "available" && !g ? /* @__PURE__ */ (0, z.jsx)(K, {
+ n.checked_at ? /* @__PURE__ */ (0, R.jsxs)(Ay, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.state === "available" && !g ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : g || n.state === "error" ? /* @__PURE__ */ (0, z.jsx)(Ay, { children: g || n.message }) : /* @__PURE__ */ (0, z.jsx)(ky, {
+ }) : g || n.state === "error" ? /* @__PURE__ */ (0, R.jsx)(jy, { children: g || n.message }) : /* @__PURE__ */ (0, R.jsx)(Ay, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, z.jsx)(Ay, { children: i.message }) : null,
- i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ i.state === "error" ? /* @__PURE__ */ (0, R.jsx)(jy, { children: i.message }) : null,
+ i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, R.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(ia, {
+ /* @__PURE__ */ (0, R.jsx)(aa, {
label: "更新准备进度",
value: i.progress,
stops: Ege
}),
- /* @__PURE__ */ (0, z.jsxs)(ky, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, z.jsx)(ky, { children: _ })
+ /* @__PURE__ */ (0, R.jsxs)(Ay, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, R.jsx)(Ay, { children: _ })
]
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsxs)(Oy, {
- status: /* @__PURE__ */ (0, z.jsx)(My, {
+ /* @__PURE__ */ (0, R.jsxs)(ky, {
+ status: /* @__PURE__ */ (0, R.jsx)(Ny, {
href: n.release_url,
children: "查看发布页"
}),
children: [
- i.state === "ready" ? /* @__PURE__ */ (0, z.jsx)(H, {
+ i.state === "ready" ? /* @__PURE__ */ (0, R.jsx)(V, {
onClick: p,
children: "重启安装"
}) : null,
- n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, z.jsx)(H, {
+ n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, R.jsx)(V, {
onClick: m,
- ...q(d || c.busy === "download"),
+ ...K(d || c.busy === "download"),
children: "下载并安装"
}) : null,
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
disabled: d,
onClick: h,
- ...q(c.busy === "check"),
+ ...K(c.busy === "check"),
children: "检查更新"
})
]
@@ -48391,23 +48394,23 @@ var Oge = [
["168", "每周"]
];
function kge({ data: e, receipt: t, reopenTutorial: n }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, z.jsx)(jge, {
+ e.automatic_updates ? /* @__PURE__ */ (0, R.jsx)(jge, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, z.jsx)(Dge, {
+ e.updates ? /* @__PURE__ */ (0, R.jsx)(Dge, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Mge, { facts: e.facts }),
- /* @__PURE__ */ (0, z.jsx)(Age, {
+ /* @__PURE__ */ (0, R.jsx)(Mge, { facts: e.facts }),
+ /* @__PURE__ */ (0, R.jsx)(Age, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, z.jsx)(Nge, {
+ e.uninstall ? /* @__PURE__ */ (0, R.jsx)(Nge, {
uninstall: e.uninstall,
receipt: t
}) : null
@@ -48415,82 +48418,82 @@ function kge({ data: e, receipt: t, reopenTutorial: n }) {
});
}
function Age({ receipt: e, reopenTutorial: t }) {
- let n = aa();
- return /* @__PURE__ */ (0, z.jsxs)(Ty, {
+ let n = oa();
+ return /* @__PURE__ */ (0, R.jsxs)(Ey, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, z.jsxs)(Dy, { children: [/* @__PURE__ */ (0, z.jsx)(ky, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, z.jsx)(Ay, { children: n.error }) : null] }), /* @__PURE__ */ (0, z.jsx)(Oy, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(Oy, { children: [/* @__PURE__ */ (0, R.jsx)(Ay, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, R.jsx)(jy, { children: n.error }) : null] }), /* @__PURE__ */ (0, R.jsx)(ky, { children: /* @__PURE__ */ (0, R.jsx)(V, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
- ...q(n.busy === "reopen"),
+ ...K(n.busy === "reopen"),
children: "重新打开教程"
}) })]
});
}
function jge({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e.mode), [i, a] = (0, R.useState)(e.interval_hours), o = aa(e.error), s = (r) => {
- r.preventDefault(), e.available && o.run("save", (e) => G("/api/configuration/automatic-updates", {
+ let [n, r] = (0, L.useState)(e.mode), [i, a] = (0, L.useState)(e.interval_hours), o = oa(e.error), s = (r) => {
+ r.preventDefault(), e.available && o.run("save", (e) => W("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, z.jsxs)(Ty, {
+ return /* @__PURE__ */ (0, R.jsxs)(Ey, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, z.jsxs)(Ey, { children: [
- /* @__PURE__ */ (0, z.jsx)(Sy, {
+ /* @__PURE__ */ (0, R.jsxs)(Dy, { children: [
+ /* @__PURE__ */ (0, R.jsx)(Cy, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, z.jsx)(KN, {
+ children: /* @__PURE__ */ (0, R.jsx)(KN, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, z.jsx)(Sy, {
+ /* @__PURE__ */ (0, R.jsx)(Cy, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, z.jsx)(KN, {
+ children: /* @__PURE__ */ (0, R.jsx)(KN, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, z.jsx)(Sy, {
+ /* @__PURE__ */ (0, R.jsx)(Cy, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, z.jsx)(vy, {
+ children: /* @__PURE__ */ (0, R.jsx)(yy, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: Oge.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(yy, {
+ children: Oge.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(by, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, z.jsx)(Dy, {
+ o.error ? /* @__PURE__ */ (0, R.jsx)(Oy, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsx)(Ay, { children: o.error })
+ children: /* @__PURE__ */ (0, R.jsx)(jy, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Oy, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(ky, { children: /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
disabled: !e.available,
- ...q(o.busy === "save"),
+ ...K(o.busy === "save"),
children: "保存配置"
}) })
]
});
}
function Mge({ facts: e }) {
- return /* @__PURE__ */ (0, z.jsx)(Ty, {
+ return /* @__PURE__ */ (0, R.jsx)(Ey, {
title: "运行信息",
- children: /* @__PURE__ */ (0, z.jsx)(Ny, { children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)(Py, {
+ children: /* @__PURE__ */ (0, R.jsx)(Py, { children: e.map((e) => /* @__PURE__ */ (0, R.jsxs)(Fy, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, z.jsx)(My, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, R.jsx)(Ny, {
href: e.download_url,
children: e.download_label
}) : null]
@@ -48498,44 +48501,44 @@ function Mge({ facts: e }) {
});
}
function Nge({ uninstall: e, receipt: t }) {
- let [n, r] = (0, R.useState)(!1), [i, a] = (0, R.useState)(""), o = () => void b({
+ let [n, r] = (0, L.useState)(!1), [i, a] = (0, L.useState)(""), o = () => void b({
title: "卸载 Peach",
danger: !0,
body: n ? "将退出 Peach,移除程序、开机自启、桌面图标、设置、本地数据库、观看记录、凭据和缓存。原始媒体文件保留。" : "将退出 Peach 并移除程序、开机自启和桌面图标。设置、本地数据库、观看记录与缓存保留。",
confirmLabel: "卸载 Peach",
onConfirm: async () => {
- let e = await G("/api/configuration/uninstall", {
+ let e = await W("/api/configuration/uninstall", {
delete_data: n,
confirmation: "卸载 Peach"
});
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, z.jsxs)(Ty, {
+ return /* @__PURE__ */ (0, R.jsxs)(Ey, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, z.jsxs)(Dy, { children: [
- e.available ? /* @__PURE__ */ (0, z.jsx)(ky, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, z.jsx)(_O, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(Oy, { children: [
+ e.available ? /* @__PURE__ */ (0, R.jsx)(Ay, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, R.jsx)(_O, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, z.jsx)(Fy, {
+ /* @__PURE__ */ (0, R.jsx)(Iy, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, z.jsx)(cO, {
+ children: c.map((e) => /* @__PURE__ */ (0, R.jsx)(cO, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, z.jsx)(Oy, {
- status: s ? /* @__PURE__ */ (0, z.jsx)("p", {
+ ] }), /* @__PURE__ */ (0, R.jsx)(ky, {
+ status: s ? /* @__PURE__ */ (0, R.jsx)("p", {
role: i ? "status" : void 0,
children: s
}) : null,
- children: /* @__PURE__ */ (0, z.jsx)(H, {
+ children: /* @__PURE__ */ (0, R.jsx)(V, {
variant: "danger",
disabled: !e.available || !!i,
onClick: o,
@@ -48571,31 +48574,31 @@ var Pge = [
["task", "同时处理视频"]
];
function Ige() {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, z.jsxs)(ky, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, z.jsx)(My, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(Ay, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, R.jsx)(Ny, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, z.jsxs)(Fy, {
+ })] }), /* @__PURE__ */ (0, R.jsxs)(Iy, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, z.jsx)(ky, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
- /* @__PURE__ */ (0, z.jsx)("ul", {
+ /* @__PURE__ */ (0, R.jsx)(Ay, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
+ /* @__PURE__ */ (0, R.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: Pge.map((e) => /* @__PURE__ */ (0, z.jsxs)("li", {
+ children: Pge.map((e) => /* @__PURE__ */ (0, R.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
- children: [/* @__PURE__ */ (0, z.jsx)("p", {
+ children: [/* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
- }), /* @__PURE__ */ (0, z.jsx)("dl", {
+ }), /* @__PURE__ */ (0, R.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: Fge.map(([t, n]) => /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: Fge.map(([t, n]) => /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col",
- children: [/* @__PURE__ */ (0, z.jsx)("dt", {
+ children: [/* @__PURE__ */ (0, R.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
children: n
- }), /* @__PURE__ */ (0, z.jsx)("dd", {
+ }), /* @__PURE__ */ (0, R.jsx)("dd", {
className: "text-body-regular text-text-primary",
children: e[t]
})]
@@ -48603,17 +48606,17 @@ function Ige() {
})]
}, e.name))
}),
- /* @__PURE__ */ (0, z.jsxs)("ul", {
+ /* @__PURE__ */ (0, R.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, z.jsx)("li", { children: "缓存上限和清理方式填在 CloudDrive「设置」里,清理方式选 LRU。上限不要填 0,系统盘至少留 40 GiB;填完重开设置页确认存住了。" }),
- /* @__PURE__ */ (0, z.jsx)("li", { children: "读取长度和下载线程填在每个网盘各自的下载设置里,线程都从 2 开始。" }),
- /* @__PURE__ */ (0, z.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
+ /* @__PURE__ */ (0, R.jsx)("li", { children: "缓存上限和清理方式填在 CloudDrive「设置」里,清理方式选 LRU。上限不要填 0,系统盘至少留 40 GiB;填完重开设置页确认存住了。" }),
+ /* @__PURE__ */ (0, R.jsx)("li", { children: "读取长度和下载线程填在每个网盘各自的下载设置里,线程都从 2 开始。" }),
+ /* @__PURE__ */ (0, R.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, z.jsxs)(ky, { children: [
+ /* @__PURE__ */ (0, R.jsxs)(Ay, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, z.jsx)(My, {
+ /* @__PURE__ */ (0, R.jsx)(Ny, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -48627,13 +48630,13 @@ function Ige() {
//#region src/react/settings/download-settings.tsx
var Lge = "/api/configuration/downloads", Rge = "/api/configuration/downloads/check", zge = "/api/configuration/downloads/folder", Bge = "/api/configuration/downloads/pikpak/login", Vge = "/api/configuration/downloads/pikpak/logout";
function Hge({ 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, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(Uge, {
+ let [n, r] = (0, L.useState)(e), [i, a] = (0, L.useState)(""), o = n.pikpak.logged_in || !!i.trim();
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(Uge, {
state: n,
settle: r,
receipt: t,
pikpakAccount: o
- }), /* @__PURE__ */ (0, z.jsx)(Gge, {
+ }), /* @__PURE__ */ (0, R.jsx)(Gge, {
state: n,
settle: r,
receipt: t,
@@ -48642,17 +48645,17 @@ function Hge({ initial: e, receipt: t }) {
})] });
}
function Uge({ 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)({
+ let [i, a] = (0, L.useState)(e.config), [o, s] = (0, L.useState)(""), [c, l] = (0, L.useState)(String(e.config.wait_hours)), [u, d] = (0, L.useState)(null), [f, p] = (0, L.useState)(""), [m, h] = (0, L.useState)({
target: null,
root: ""
- }), [g, _] = (0, R.useState)(""), [v, y] = (0, R.useState)(!1), b = aa(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
+ }), [g, _] = (0, L.useState)(""), [v, y] = (0, L.useState)(!1), b = oa(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
...i,
targets: {
...i.targets,
[e]: t
}
}), C = !!(m.target && !m.target.exists && x("115") === m.target.path);
- return /* @__PURE__ */ (0, z.jsxs)(Ty, {
+ return /* @__PURE__ */ (0, R.jsxs)(Ey, {
title: "云下载",
onSubmit: (e) => {
if (e.preventDefault(), C) {
@@ -48664,14 +48667,14 @@ function Uge({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
wait_hours: c,
token: o
};
- b.run("save", (e) => G(Lge, r, "POST", e), (e) => {
+ b.run("save", (e) => W(Lge, r, "POST", e), (e) => {
t(e), a(e.config), l(String(e.config.wait_hours)), s(""), _(""), n("已保存配置");
- }, (e) => _(U(e)));
+ }, (e) => _(H(e)));
},
children: [
- /* @__PURE__ */ (0, z.jsxs)(Dy, { children: [
- /* @__PURE__ */ (0, z.jsx)(ky, { children: "把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,再由推送发现登记入库,不经过这台电脑。 115 每个任务扣一条离线配额(年费会员每月 1500 条、月费 200 条),被判违规的资源不重试。" }),
- /* @__PURE__ */ (0, z.jsx)(py, {
+ /* @__PURE__ */ (0, R.jsxs)(Oy, { children: [
+ /* @__PURE__ */ (0, R.jsx)(Ay, { children: "把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,再由推送发现登记入库,不经过这台电脑。 115 每个任务扣一条离线配额(年费会员每月 1500 条、月费 200 条),被判违规的资源不重试。" }),
+ /* @__PURE__ */ (0, R.jsx)(my, {
label: "CloudDrive2 地址",
placeholder: "留空自动探测本机 19798 / 29798",
autoComplete: "off",
@@ -48683,7 +48686,7 @@ function Uge({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
clouddrive_address: e
})
}),
- /* @__PURE__ */ (0, z.jsx)(py, {
+ /* @__PURE__ */ (0, R.jsx)(my, {
label: "CloudDrive2 API 令牌",
type: "password",
autoComplete: "off",
@@ -48694,7 +48697,7 @@ function Uge({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: s
}),
- /* @__PURE__ */ (0, z.jsx)(py, {
+ /* @__PURE__ */ (0, R.jsx)(my, {
label: "115 目标目录",
placeholder: "检查时按推送发现自动填写",
autoComplete: "off",
@@ -48706,7 +48709,7 @@ function Uge({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: (e) => S("115", e)
}),
- /* @__PURE__ */ (0, z.jsx)(py, {
+ /* @__PURE__ */ (0, R.jsx)(my, {
label: "PikPak 目标目录",
placeholder: "以 / 开头的网盘路径",
autoComplete: "off",
@@ -48716,9 +48719,9 @@ function Uge({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: (e) => S("pikpak", e)
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, z.jsx)(jy, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, z.jsx)(vy, {
+ children: [/* @__PURE__ */ (0, R.jsx)(My, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, R.jsx)(yy, {
"aria-label": "PikPak 根目录对应的媒体文件夹",
selectedKey: i.pikpak_root || null,
isDisabled: !e.available,
@@ -48727,13 +48730,13 @@ function Uge({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
...i,
pikpak_root: e === null ? "" : String(e)
}),
- children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, z.jsx)(yy, {
+ children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, R.jsx)(by, {
id: e,
children: e
}, e))
- }) : /* @__PURE__ */ (0, z.jsx)(ky, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]
+ }) : /* @__PURE__ */ (0, R.jsx)(Ay, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]
}),
- /* @__PURE__ */ (0, z.jsx)(py, {
+ /* @__PURE__ */ (0, R.jsx)(my, {
label: "等待上限(小时)",
type: "number",
inputMode: "numeric",
@@ -48744,7 +48747,7 @@ function Uge({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
onChange: l
})
] }),
- u ? /* @__PURE__ */ (0, z.jsx)(Wge, {
+ u ? /* @__PURE__ */ (0, R.jsx)(Wge, {
report: u,
detected: f,
suggested: m,
@@ -48756,7 +48759,7 @@ function Uge({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("folder", (e) => G(zge, t, "POST", e), (t) => {
+ b.run("folder", (e) => W(zge, t, "POST", e), (t) => {
d(t), h((t) => ({
...t,
target: {
@@ -48764,17 +48767,17 @@ function Uge({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
exists: !0
}
})), y(!1), _(""), n("已新建目录");
- }, (e) => _(U(e)));
+ }, (e) => _(H(e)));
} : void 0,
creating: b.busy === "folder"
}) : null,
- g || b.error ? /* @__PURE__ */ (0, z.jsx)(Dy, {
+ g || b.error ? /* @__PURE__ */ (0, R.jsx)(Oy, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsx)(Ay, { children: g || b.error })
+ children: /* @__PURE__ */ (0, R.jsx)(jy, { children: g || b.error })
}) : null,
- /* @__PURE__ */ (0, z.jsxs)(Oy, {
+ /* @__PURE__ */ (0, R.jsxs)(ky, {
status: e.available ? void 0 : "云下载只在账本写入端可用。",
- children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, R.jsx)(V, {
onClick: () => {
let e = !i.clouddrive_address.trim(), t = !x("115").trim(), n = !i.pikpak_root, s = {
clouddrive_address: i.clouddrive_address,
@@ -48783,7 +48786,7 @@ function Uge({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("check", (e) => G(Rge, s, "POST", e), (r) => {
+ b.run("check", (e) => W(Rge, s, "POST", e), (r) => {
let i = t ? r.suggested_target : null, o = n ? r.suggested_pikpak_root : "";
a((t) => ({
...t,
@@ -48797,15 +48800,15 @@ function Uge({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
target: i,
root: o
}), y(!1), _("");
- }, (e) => _(U(e)));
+ }, (e) => _(H(e)));
},
disabled: !e.available,
- ...q(b.busy === "check"),
+ ...K(b.busy === "check"),
children: "检查"
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
disabled: !e.available,
- ...q(b.busy === "save"),
+ ...K(b.busy === "save"),
children: "保存配置"
})]
})
@@ -48814,48 +48817,48 @@ function Uge({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
}
function Wge({ report: e, detected: t, suggested: n, create: r, creating: i }) {
let a = n.target;
- return /* @__PURE__ */ (0, z.jsxs)(Dy, {
+ return /* @__PURE__ */ (0, R.jsxs)(Oy, {
divided: !0,
- children: [/* @__PURE__ */ (0, z.jsxs)(Ny, { children: [
- t ? /* @__PURE__ */ (0, z.jsx)(Py, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(Py, { children: [
+ t ? /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "CloudDrive2 地址",
children: `探测到 ${t},保存配置后生效`
}) : null,
- a?.exists ? /* @__PURE__ */ (0, z.jsx)(Py, {
+ a?.exists ? /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "115 目标目录",
children: `按推送发现填入 ${a.path},保存配置后生效`
}) : null,
- a && !a.exists ? /* @__PURE__ */ (0, z.jsxs)(Py, {
+ a && !a.exists ? /* @__PURE__ */ (0, R.jsxs)(Fy, {
term: "115 目标目录",
- children: [`${a.path} 不存在`, r ? /* @__PURE__ */ (0, z.jsx)(H, {
+ children: [`${a.path} 不存在`, r ? /* @__PURE__ */ (0, R.jsx)(V, {
size: "small",
onClick: () => r(a.path),
- ...q(i),
+ ...K(i),
children: "新建这个目录"
}) : null]
}) : null,
- n.root ? /* @__PURE__ */ (0, z.jsx)(Py, {
+ n.root ? /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "PikPak 根目录",
children: `按推送发现填入 ${n.root},保存配置后生效`
}) : null,
- e.permissions.length ? /* @__PURE__ */ (0, z.jsx)(Py, {
+ e.permissions.length ? /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "离线权限",
children: e.missing.length ? `缺少:${e.missing.join("、")}` : "齐全"
}) : null,
- e.folder ? /* @__PURE__ */ (0, z.jsx)(Py, {
+ e.folder ? /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "目标目录",
children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`
}) : null,
- e.quota ? /* @__PURE__ */ (0, z.jsx)(Py, {
+ e.quota ? /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "115 离线配额",
children: `本月还剩 ${e.quota.left} 条,共 ${e.quota.total} 条`
}) : null
- ] }), e.problems.map((e) => /* @__PURE__ */ (0, z.jsx)(Ay, { children: e }, e))]
+ ] }), e.problems.map((e) => /* @__PURE__ */ (0, R.jsx)(jy, { children: e }, e))]
});
}
function Gge({ 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 = aa(), m = e.pikpak;
- return /* @__PURE__ */ (0, z.jsxs)(Ty, {
+ let [a, o] = (0, L.useState)(""), [s, c] = (0, L.useState)(!1), [l, u] = (0, L.useState)(""), [d, f] = (0, L.useState)(""), p = oa(), m = e.pikpak;
+ return /* @__PURE__ */ (0, R.jsxs)(Ey, {
title: "PikPak 账号",
onSubmit: (e) => {
if (e.preventDefault(), m.logged_in) return;
@@ -48864,24 +48867,24 @@ function Gge({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
password: a,
remember: s
};
- p.run("login", (e) => G(Bge, i, "POST", e), (e) => {
+ p.run("login", (e) => W(Bge, i, "POST", e), (e) => {
if (t(e.settings), f(""), !e.ok) {
u(e.captcha_url ?? "");
return;
}
u(""), o(""), n("已登录 PikPak");
- }, (e) => f(U(e)));
+ }, (e) => f(H(e)));
},
children: [
- m.logged_in ? /* @__PURE__ */ (0, z.jsxs)(Ny, { children: [/* @__PURE__ */ (0, z.jsx)(Py, {
+ m.logged_in ? /* @__PURE__ */ (0, R.jsxs)(Py, { children: [/* @__PURE__ */ (0, R.jsx)(Fy, {
term: "账号",
children: m.username || "已登录"
- }), /* @__PURE__ */ (0, z.jsx)(Py, {
+ }), /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "密码",
children: m.remember ? "已保存,登录过期时自动重新登录" : "未保存,登录过期后需要回到这里重新登录"
- })] }) : /* @__PURE__ */ (0, z.jsxs)(Dy, { children: [
- /* @__PURE__ */ (0, z.jsx)(ky, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。 账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
- /* @__PURE__ */ (0, z.jsx)(py, {
+ })] }) : /* @__PURE__ */ (0, R.jsxs)(Oy, { children: [
+ /* @__PURE__ */ (0, R.jsx)(Ay, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。 账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
+ /* @__PURE__ */ (0, R.jsx)(my, {
label: "账号",
placeholder: "邮箱或手机号",
autoComplete: "username",
@@ -48890,7 +48893,7 @@ function Gge({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: i
}),
- /* @__PURE__ */ (0, z.jsx)(py, {
+ /* @__PURE__ */ (0, R.jsx)(my, {
label: "密码",
type: "password",
autoComplete: "current-password",
@@ -48899,18 +48902,18 @@ function Gge({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: o
}),
- /* @__PURE__ */ (0, z.jsx)(_O, {
+ /* @__PURE__ */ (0, R.jsx)(_O, {
isSelected: s,
isDisabled: !e.available,
onChange: c,
children: "保存密码,登录过期时自动重新登录"
}),
- l ? /* @__PURE__ */ (0, z.jsx)(K, {
+ l ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "warning",
title: "需要人机验证",
- extra: /* @__PURE__ */ (0, z.jsx)("div", {
+ extra: /* @__PURE__ */ (0, R.jsx)("div", {
className: "pt-2",
- children: /* @__PURE__ */ (0, z.jsx)(My, {
+ children: /* @__PURE__ */ (0, R.jsx)(Ny, {
href: l,
children: "打开 PikPak 验证页"
})
@@ -48918,23 +48921,23 @@ function Gge({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
children: "在浏览器里完成验证后,回到这里再点一次「登录」。"
}) : null
] }),
- d || p.error ? /* @__PURE__ */ (0, z.jsx)(Dy, {
+ d || p.error ? /* @__PURE__ */ (0, R.jsx)(Oy, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsx)(Ay, { children: d || p.error })
+ children: /* @__PURE__ */ (0, R.jsx)(jy, { children: d || p.error })
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Oy, { children: m.logged_in ? /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(ky, { children: m.logged_in ? /* @__PURE__ */ (0, R.jsx)(V, {
onClick: () => {
- p.run("logout", (e) => G(Vge, {}, "POST", e), (e) => {
+ p.run("logout", (e) => W(Vge, {}, "POST", e), (e) => {
t(e), f(""), n("已登出 PikPak");
- }, (e) => f(U(e)));
+ }, (e) => f(H(e)));
},
disabled: !e.available,
- ...q(p.busy === "logout"),
+ ...K(p.busy === "logout"),
children: "登出"
- }) : /* @__PURE__ */ (0, z.jsx)(H, {
+ }) : /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
disabled: !e.available,
- ...q(p.busy === "login"),
+ ...K(p.busy === "login"),
children: "登录"
}) })
]
@@ -48992,8 +48995,8 @@ function Kge(e) {
}
var oI = "auto";
function qge({ 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] = Kge(n);
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ let i = (0, L.useRef)(null), [a, o] = (0, L.useState)(!1), [s, c] = (0, L.useState)(e), [l, u] = Kge(n);
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(V, {
ref: i,
variant: "secondary",
className: "self-start",
@@ -49003,46 +49006,46 @@ function qge({ value: e, label: t, kind: n = "local", onChange: r }) {
onClick: () => {
c(e), o(!0);
},
- children: /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: /* @__PURE__ */ (0, R.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(Iy, { mark: e || l }), ((e) => e && aI.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, R.jsx)(Ly, { mark: e || l }), ((e) => e && aI.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, z.jsx)(zh, {
+ }), /* @__PURE__ */ (0, R.jsx)(Bh, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: my,
- children: /* @__PURE__ */ (0, z.jsxs)(Ig, {
+ className: hy,
+ children: /* @__PURE__ */ (0, R.jsxs)(Lg, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, z.jsx)(gu, {
+ /* @__PURE__ */ (0, R.jsx)(_u, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, z.jsx)(D_, {
+ /* @__PURE__ */ (0, R.jsx)(O_, {
"aria-label": "候选图标",
value: s || oI,
onChange: (e) => c(e === oI ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: aI.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(O_, {
+ children: aI.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(k_, {
value: e || oI,
"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, z.jsx)(Iy, { mark: e || l })
+ children: /* @__PURE__ */ (0, R.jsx)(Ly, { mark: e || l })
}, e || oI))
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
- children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
onClick: () => o(!1),
children: "取消"
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
disabled: s === e,
onClick: () => {
r(s), o(!1);
@@ -49058,13 +49061,13 @@ function qge({ value: e, label: t, kind: n = "local", onChange: r }) {
//#region src/react/settings/push-discovery-settings.tsx
var Jge = "/api/configuration/push-discovery", Yge = "/api/configuration/push-discovery/secret";
function Xge({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.prefixes), [o, s] = (0, R.useState)(""), c = aa(), l = aO(), u = n.media_roots, [d, f] = (0, R.useState)(e), p = (e, n) => {
+ let [n, r] = (0, L.useState)(e), [i, a] = (0, L.useState)(e.prefixes), [o, s] = (0, L.useState)(""), c = oa(), l = aO(), u = n.media_roots, [d, f] = (0, L.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, z.jsxs)(Ty, {
+ return /* @__PURE__ */ (0, R.jsxs)(Ey, {
title: "推送发现",
onSubmit: (e) => {
e.preventDefault();
@@ -49074,14 +49077,14 @@ function Xge({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => G(Jge, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(U(e)));
+ c.run("save", (e) => W(Jge, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(H(e)));
},
children: [
- /* @__PURE__ */ (0, z.jsxs)(Ey, { children: [
- /* @__PURE__ */ (0, z.jsx)(Sy, {
+ /* @__PURE__ */ (0, R.jsxs)(Dy, { children: [
+ /* @__PURE__ */ (0, R.jsx)(Cy, {
label: "新文件落地就入库",
description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",
- children: /* @__PURE__ */ (0, z.jsx)(KN, {
+ children: /* @__PURE__ */ (0, R.jsx)(KN, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@ -49091,10 +49094,10 @@ function Xge({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, z.jsx)(Sy, {
+ /* @__PURE__ */ (0, R.jsx)(Cy, {
label: "监视本机文件夹",
description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",
- children: /* @__PURE__ */ (0, z.jsx)(KN, {
+ children: /* @__PURE__ */ (0, R.jsx)(KN, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@ -49104,10 +49107,10 @@ function Xge({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, z.jsx)(Sy, {
+ /* @__PURE__ */ (0, R.jsx)(Cy, {
label: "接收 CloudDrive2 通知",
description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",
- children: /* @__PURE__ */ (0, z.jsx)(KN, {
+ children: /* @__PURE__ */ (0, R.jsx)(KN, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@ -49118,59 +49121,59 @@ function Xge({ initial: e, receipt: t }) {
})
})
] }),
- d.enabled ? /* @__PURE__ */ (0, z.jsx)(Dy, {
+ d.enabled ? /* @__PURE__ */ (0, R.jsx)(Oy, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsxs)(Ny, { children: [d.watch_local ? /* @__PURE__ */ (0, z.jsx)(Py, {
+ children: /* @__PURE__ */ (0, R.jsxs)(Py, { children: [d.watch_local ? /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "本机文件夹监视",
children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"
- }) : null, /* @__PURE__ */ (0, z.jsx)(Py, {
+ }) : null, /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "已入库",
children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`
})] })
}) : null,
- d.enabled && d.cloud ? /* @__PURE__ */ (0, z.jsx)(Dy, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, R.jsx)(Oy, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(jy, { children: "CloudDrive2 配置内容" }),
- /* @__PURE__ */ (0, z.jsx)(ky, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
- d.config_toml ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(My, { children: "CloudDrive2 配置内容" }),
+ /* @__PURE__ */ (0, R.jsx)(Ay, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
+ d.config_toml ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("div", { children: /* @__PURE__ */ (0, R.jsx)(V, {
size: "small",
onClick: () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));
},
children: "复制配置"
- }) }), /* @__PURE__ */ (0, z.jsx)(Fy, {
+ }) }), /* @__PURE__ */ (0, R.jsx)(Iy, {
summary: "查看这段配置",
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
className: "relative",
- children: /* @__PURE__ */ (0, z.jsx)("pre", {
+ children: /* @__PURE__ */ (0, R.jsx)("pre", {
ref: l,
tabIndex: 0,
className: "overflow-x-auto rounded-2xl bg-background-tertiary-default p-3 text-caption-1-regular whitespace-pre text-text-primary",
children: d.config_toml
})
})
- })] }) : /* @__PURE__ */ (0, z.jsx)(ky, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
+ })] }) : /* @__PURE__ */ (0, R.jsx)(Ay, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
]
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, z.jsx)(Dy, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, R.jsx)(Oy, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(jy, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, z.jsx)(ky, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)(My, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, R.jsx)(Ay, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
+ /* @__PURE__ */ (0, R.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
className: "flex flex-col gap-3",
- children: i.map((e, t) => /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: i.map((e, t) => /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(py, {
+ /* @__PURE__ */ (0, R.jsx)(my, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -49179,26 +49182,26 @@ function Xge({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, z.jsx)(vy, {
+ /* @__PURE__ */ (0, R.jsx)(yy, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, z.jsx)(yy, {
+ children: u.map((e) => /* @__PURE__ */ (0, R.jsx)(by, {
id: e,
children: e
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(sO, {
- icon: Xe,
+ /* @__PURE__ */ (0, R.jsx)(sO, {
+ icon: Ze,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
]
}, t))
}),
- /* @__PURE__ */ (0, z.jsx)("div", { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)("div", { children: /* @__PURE__ */ (0, R.jsx)(V, {
size: "small",
onClick: () => a((e) => [...e, {
prefix: "",
@@ -49209,23 +49212,23 @@ function Xge({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, z.jsx)(Dy, {
+ o || c.error ? /* @__PURE__ */ (0, R.jsx)(Oy, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsx)(Ay, { children: o || c.error })
+ children: /* @__PURE__ */ (0, R.jsx)(jy, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, z.jsxs)(Oy, {
+ /* @__PURE__ */ (0, R.jsxs)(ky, {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
- children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, z.jsx)(H, {
+ children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, R.jsx)(V, {
onClick: () => {
- c.run("secret", (e) => G(Yge, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(U(e)));
+ c.run("secret", (e) => W(Yge, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(H(e)));
},
disabled: !n.available,
- ...q(c.busy === "secret"),
+ ...K(c.busy === "secret"),
children: "更换密钥"
- }) : null, /* @__PURE__ */ (0, z.jsx)(H, {
+ }) : null, /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
disabled: !n.available,
- ...q(c.busy === "save"),
+ ...K(c.busy === "save"),
children: "保存配置"
})]
})
@@ -49236,7 +49239,7 @@ function Xge({ initial: e, receipt: t }) {
//#region src/react/settings/media-settings.tsx
var Zge = 8e3;
function Qge({ className: e }) {
- return /* @__PURE__ */ (0, z.jsx)("svg", {
+ return /* @__PURE__ */ (0, R.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
@@ -49245,7 +49248,7 @@ function Qge({ className: e }) {
strokeLinecap: "round",
strokeLinejoin: "round",
className: e,
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: "#i-folder-search" })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: "#i-folder-search" })
});
}
var sI = [
@@ -49269,25 +49272,25 @@ function e_e(e) {
library_icon: e.library_icon || ""
})) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => lI(e));
}
-var t_e = (e) => !(e instanceof Hi) || e.status !== 400 ? null : e.body?.errors ?? null;
+var t_e = (e) => !(e instanceof Ui) || e.status !== 400 ? null : e.body?.errors ?? null;
function n_e({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.editable ? /* @__PURE__ */ (0, z.jsx)(r_e, {
+ e.editable ? /* @__PURE__ */ (0, R.jsx)(r_e, {
data: e,
receipt: t
- }) : /* @__PURE__ */ (0, z.jsx)(K, {
+ }) : /* @__PURE__ */ (0, R.jsx)(G, {
tone: "neutral",
title: "只读",
children: e.notice
}),
- /* @__PURE__ */ (0, z.jsx)(a_e, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, z.jsx)(Xge, {
+ /* @__PURE__ */ (0, R.jsx)(a_e, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, R.jsx)(Xge, {
initial: e.push_discovery,
receipt: t
}) : null,
- e.downloads ? /* @__PURE__ */ (0, z.jsx)(Hge, {
+ e.downloads ? /* @__PURE__ */ (0, R.jsx)(Hge, {
initial: e.downloads,
receipt: t
}) : null
@@ -49295,10 +49298,10 @@ function n_e({ data: e, receipt: t }) {
});
}
function r_e({ data: e, receipt: t }) {
- let [n, r] = (0, R.useState)(() => e_e(e)), [i, a] = (0, R.useState)(String(e.port)), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)([]), [u, d] = (0, R.useState)(""), [f, p] = (0, R.useState)(""), [m, h] = (0, R.useState)(null), [g, _] = (0, R.useState)(null), [v, y] = (0, R.useState)(null), b = (0, R.useRef)(!1), x = (0, R.useRef)(e.revision), S = (0, R.useRef)([]), C = aa();
- (0, R.useLayoutEffect)(() => {
+ let [n, r] = (0, L.useState)(() => e_e(e)), [i, a] = (0, L.useState)(String(e.port)), [o, s] = (0, L.useState)(!1), [c, l] = (0, L.useState)([]), [u, d] = (0, L.useState)(""), [f, p] = (0, L.useState)(""), [m, h] = (0, L.useState)(null), [g, _] = (0, L.useState)(null), [v, y] = (0, L.useState)(null), b = (0, L.useRef)(!1), x = (0, L.useRef)(e.revision), S = (0, L.useRef)([]), C = oa();
+ (0, L.useLayoutEffect)(() => {
g !== null && (S.current[g]?.focus(), _(null));
- }, [g]), (0, R.useEffect)(() => {
+ }, [g]), (0, L.useEffect)(() => {
if (!m) return;
let e = setTimeout(() => location.assign(m.url), Zge);
return () => clearTimeout(e);
@@ -49318,16 +49321,16 @@ function r_e({ data: e, receipt: t }) {
if (!b.current) {
b.current = !0, y(e);
try {
- let { path: t } = await G(bge, { initial: n[e]?.path ?? "" });
+ let { path: t } = await W(bge, { initial: n[e]?.path ?? "" });
t && (w(e, { path: t }), T(e, ""));
} catch (t) {
- T(e, U(t));
+ T(e, H(t));
} finally {
b.current = !1, y(null);
}
}
}, k = (r) => {
- r.preventDefault(), p(""), C.run("save", (t) => G($F, {
+ r.preventDefault(), p(""), C.run("save", (t) => W($F, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -49337,17 +49340,17 @@ function r_e({ data: e, receipt: t }) {
x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
let t = t_e(e);
- l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(U(e));
+ l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(H(e));
});
};
- if (m) return /* @__PURE__ */ (0, z.jsx)(Ty, {
+ if (m) return /* @__PURE__ */ (0, R.jsx)(Ey, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, z.jsx)(Dy, { children: /* @__PURE__ */ (0, z.jsxs)(K, {
+ children: /* @__PURE__ */ (0, R.jsx)(Oy, { children: /* @__PURE__ */ (0, R.jsxs)(G, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, z.jsx)(wy, {
+ /* @__PURE__ */ (0, R.jsx)(Ty, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -49357,25 +49360,25 @@ function r_e({ data: e, receipt: t }) {
}) })
});
let A = n.some((e) => e.location === "115" || e.location === "pikpak"), j = A ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, z.jsxs)(Ty, {
+ return /* @__PURE__ */ (0, R.jsxs)(Ey, {
title: "这台电脑",
onSubmit: k,
- children: [/* @__PURE__ */ (0, z.jsxs)(Dy, { children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)(Oy, { children: [
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(jy, { children: "媒体文件夹" }),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)(My, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, R.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
className: "flex flex-col gap-3",
- children: n.map((t, r) => /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: n.map((t, r) => /* @__PURE__ */ (0, R.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, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(py, {
+ /* @__PURE__ */ (0, R.jsx)(my, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
@@ -49388,53 +49391,53 @@ function r_e({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, z.jsx)(sO, {
+ /* @__PURE__ */ (0, R.jsx)(sO, {
icon: Qge,
"aria-label": "选择文件夹",
onClick: () => void O(r),
- ...q(v === r)
+ ...K(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, z.jsx)(sO, {
- icon: Xe,
+ n.length > 1 ? /* @__PURE__ */ (0, R.jsx)(sO, {
+ icon: Ze,
"aria-label": "移除这个文件夹",
onClick: () => D(r)
}) : null
]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(py, {
+ /* @__PURE__ */ (0, R.jsx)(my, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
value: t.library,
onChange: (e) => w(r, { library: e })
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, z.jsx)(jy, { children: "媒体库图标" }), /* @__PURE__ */ (0, z.jsx)(qge, {
+ children: [/* @__PURE__ */ (0, R.jsx)(My, { children: "媒体库图标" }), /* @__PURE__ */ (0, R.jsx)(qge, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
onChange: (e) => w(r, { library_icon: e })
})]
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, z.jsx)(jy, { children: "媒体来源" }), /* @__PURE__ */ (0, z.jsx)(vy, {
+ children: [/* @__PURE__ */ (0, R.jsx)(My, { children: "媒体来源" }), /* @__PURE__ */ (0, R.jsx)(yy, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && w(r, { location: String(e) });
},
- children: sI.map(([e, t]) => /* @__PURE__ */ (0, z.jsxs)(yy, {
+ children: sI.map(([e, t]) => /* @__PURE__ */ (0, R.jsxs)(by, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, z.jsx)(Iy, { mark: cI(e) }), t]
+ children: [/* @__PURE__ */ (0, R.jsx)(Ly, { mark: cI(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, z.jsx)(py, {
+ e.windows === !1 ? /* @__PURE__ */ (0, R.jsx)(my, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -49444,25 +49447,25 @@ function r_e({ data: e, receipt: t }) {
})]
}, r))
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
className: "self-start",
onClick: E,
children: "添加文件夹"
})
]
}),
- A ? /* @__PURE__ */ (0, z.jsx)(Ige, {}) : null,
- j.map((e) => /* @__PURE__ */ (0, z.jsxs)(ky, { children: [
+ A ? /* @__PURE__ */ (0, R.jsx)(Ige, {}) : null,
+ j.map((e) => /* @__PURE__ */ (0, R.jsxs)(Ay, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, z.jsxs)(My, {
+ /* @__PURE__ */ (0, R.jsxs)(Ny, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, z.jsx)(ky, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, z.jsx)(py, {
+ e.windows === !1 ? /* @__PURE__ */ (0, R.jsx)(Ay, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, R.jsx)(my, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -49472,66 +49475,66 @@ function r_e({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, z.jsx)(_O, {
+ /* @__PURE__ */ (0, R.jsx)(_O, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
}),
- f ? /* @__PURE__ */ (0, z.jsx)(K, {
+ f ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, z.jsx)(Oy, {
+ ] }), /* @__PURE__ */ (0, R.jsx)(ky, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
- children: /* @__PURE__ */ (0, z.jsx)(H, {
+ children: /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
- ...q(C.busy === "save"),
+ ...K(C.busy === "save"),
children: "保存配置"
})
})]
});
}
function i_e({ online: e }) {
- return e === !0 ? /* @__PURE__ */ (0, z.jsxs)("span", {
+ return e === !0 ? /* @__PURE__ */ (0, R.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "在线"]
- }) : e === !1 ? /* @__PURE__ */ (0, z.jsxs)("span", {
+ }) : e === !1 ? /* @__PURE__ */ (0, R.jsxs)("span", {
"data-mount": "offline",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-text-error-primary",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "离线"]
- }) : /* @__PURE__ */ (0, z.jsxs)("span", {
+ }) : /* @__PURE__ */ (0, R.jsxs)("span", {
"data-mount": "unknown",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-text-secondary",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "未检测"]
});
}
function a_e({ data: e }) {
- let t = e.media_sources, n = aa();
- return t ? /* @__PURE__ */ (0, z.jsxs)(Ty, {
+ let t = e.media_sources, n = oa();
+ return t ? /* @__PURE__ */ (0, R.jsxs)(Ey, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, z.jsx)(Ny, { children: t.map((e, t) => /* @__PURE__ */ (0, z.jsxs)(Py, {
- term: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(Iy, { mark: cI(e.location) }), $ge(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, z.jsx)(i_e, { online: e.online })]
+ /* @__PURE__ */ (0, R.jsx)(Py, { children: t.map((e, t) => /* @__PURE__ */ (0, R.jsxs)(Fy, {
+ term: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(Ly, { mark: cI(e.location) }), $ge(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, R.jsx)(i_e, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, z.jsx)(Dy, {
+ n.error ? /* @__PURE__ */ (0, R.jsx)(Oy, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsx)(Ay, { children: n.error })
+ children: /* @__PURE__ */ (0, R.jsx)(jy, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Oy, { children: /* @__PURE__ */ (0, z.jsx)(H, {
- onClick: () => void n.run("refresh", (e) => tI(e), (e) => X.setQueryData(eI, e)),
- ...q(n.busy === "refresh"),
+ /* @__PURE__ */ (0, R.jsx)(ky, { children: /* @__PURE__ */ (0, R.jsx)(V, {
+ onClick: () => void n.run("refresh", (e) => tI(e), (e) => Y.setQueryData(eI, e)),
+ ...K(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
]
@@ -49545,14 +49548,14 @@ var o_e = {
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
function s_e({ 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 = aa(), g = (e) => {
+ let [n, r] = (0, L.useState)(e), [i, a] = (0, L.useState)(""), [o, s] = (0, L.useState)(""), [c, l] = (0, L.useState)(""), [u, d] = (0, L.useState)(!1), [f, p] = (0, L.useState)({}), m = (0, L.useRef)(null), h = oa(), 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) {
requestAnimationFrame(() => m.current?.querySelector("input[aria-invalid=\"true\"]")?.focus());
return;
}
- h.run("save", (e) => G("/api/configuration/access", {
+ h.run("save", (e) => W("/api/configuration/access", {
revision: n.revision,
action: u ? "disable" : "set",
confirm_disable: u,
@@ -49562,28 +49565,28 @@ function s_e({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof Hi ? e.body : null, n = t?.errors || t?.detail?.errors;
- n ? p(n) : h.setError(U(e));
+ let t = e instanceof Ui ? e.body : null, n = t?.errors || t?.detail?.errors;
+ n ? p(n) : h.setError(H(e));
});
}, _ = o_e[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, z.jsxs)(Ty, {
+ return /* @__PURE__ */ (0, R.jsxs)(Ey, {
title: "访问密码",
onSubmit: g,
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, z.jsxs)(Dy, { children: [
- _ ? /* @__PURE__ */ (0, z.jsx)(ky, { children: _ }) : null,
- n.mode === "open" ? /* @__PURE__ */ (0, z.jsx)(K, {
+ children: /* @__PURE__ */ (0, R.jsxs)(Oy, { children: [
+ _ ? /* @__PURE__ */ (0, R.jsx)(Ay, { children: _ }) : null,
+ n.mode === "open" ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, z.jsx)(_O, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, R.jsx)(_O, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, z.jsx)(py, {
+ n.mode === "password" ? /* @__PURE__ */ (0, R.jsx)(my, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -49596,7 +49599,7 @@ function s_e({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(py, {
+ v ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(my, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -49609,7 +49612,7 @@ function s_e({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, z.jsx)(py, {
+ }), /* @__PURE__ */ (0, R.jsx)(my, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -49623,18 +49626,18 @@ function s_e({ initial: e, receipt: t }) {
isInvalid: !u && !!f.confirmation,
hint: u ? void 0 : f.confirmation
})] }) : null,
- u ? /* @__PURE__ */ (0, z.jsx)(K, {
+ u ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "warning",
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, z.jsx)(Ay, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, R.jsx)(jy, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, z.jsx)(Oy, {
+ }), v ? /* @__PURE__ */ (0, R.jsx)(ky, {
status: "保存后立即生效。",
- children: /* @__PURE__ */ (0, z.jsx)(H, {
+ children: /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
- ...q(h.busy === "save"),
+ ...K(h.busy === "save"),
children: "保存配置"
})
}) : null]
@@ -49647,12 +49650,12 @@ var c_e = 2e3, l_e = [["quick", "临时链接"], ["named", "命名隧道"]], u_e
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
function d_e({ 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)(""), [p, m] = (0, R.useState)({}), h = aa(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
- (0, R.useEffect)(() => {
+ let [r, i] = (0, L.useState)(t), [a, o] = (0, L.useState)(e), [s, c] = (0, L.useState)(t.mode), [l, u] = (0, L.useState)(t.hostname), [d, f] = (0, L.useState)(""), [p, m] = (0, L.useState)({}), h = oa(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
+ (0, L.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
tI(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (X.setQueryData(eI, t), i(t.tunnel), o(t.revision));
+ e.signal.aborted || !t.tunnel || (Y.setQueryData(eI, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
}, c_e);
return () => {
@@ -49660,7 +49663,7 @@ function d_e({ revision: e, initial: t, receipt: n }) {
};
}, [r.state]);
let v = (e, t, n) => {
- m({}), h.run(e, (e) => G("/api/configuration/tunnel", {
+ m({}), h.run(e, (e) => W("/api/configuration/tunnel", {
revision: a,
enabled: t,
mode: s,
@@ -49669,30 +49672,30 @@ function d_e({ 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 Hi ? e.body : null, n = t?.errors || t?.detail?.errors;
- n ? m(n) : h.setError(U(e));
+ let t = e instanceof Ui ? e.body : null, n = t?.errors || t?.detail?.errors;
+ n ? m(n) : h.setError(H(e));
});
};
- return /* @__PURE__ */ (0, z.jsxs)(Ty, {
+ return /* @__PURE__ */ (0, R.jsxs)(Ey, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, z.jsxs)(Dy, { children: [
- r.named_available ? /* @__PURE__ */ (0, z.jsx)(GO, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(Oy, { children: [
+ r.named_available ? /* @__PURE__ */ (0, R.jsx)(GO, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
className: KO,
- children: l_e.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(O_, {
+ children: l_e.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(k_, {
value: e,
className: qO,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, z.jsx)(ky, { children: u_e[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(py, {
+ /* @__PURE__ */ (0, R.jsx)(Ay, { children: u_e[_ ? "named" : "quick"] }),
+ _ ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(my, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -49703,7 +49706,7 @@ function d_e({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"
- }), /* @__PURE__ */ (0, z.jsx)(py, {
+ }), /* @__PURE__ */ (0, R.jsx)(my, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -49715,35 +49718,35 @@ function d_e({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
hint: r.token_set ? "已保存。留空表示沿用已保存的令牌。" : "在 Cloudflare Zero Trust 的隧道详情页复制。"
})] }) : null,
- r.available ? null : /* @__PURE__ */ (0, z.jsx)(K, {
+ r.available ? null : /* @__PURE__ */ (0, R.jsx)(G, {
tone: "warning",
title: "找不到 cloudflared",
children: "安装官方 cloudflared,或用设置文件的 tunnel.binary 与 PEACH_CLOUDFLARED 指定路径。"
}),
- r.state === "running" && r.url ? /* @__PURE__ */ (0, z.jsx)(K, {
+ r.state === "running" && r.url ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, z.jsx)(My, {
+ children: /* @__PURE__ */ (0, R.jsx)(Ny, {
href: r.url,
children: r.url
})
}) : null,
- r.state === "starting" ? /* @__PURE__ */ (0, z.jsx)(K, {
+ r.state === "starting" ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "info",
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, z.jsx)(Ay, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, z.jsx)(Ay, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, z.jsxs)(Oy, {
+ r.error ? /* @__PURE__ */ (0, R.jsx)(jy, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, R.jsx)(jy, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, R.jsxs)(ky, {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
- children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, R.jsx)(V, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
- ...q(h.busy === "toggle"),
+ ...K(h.busy === "toggle"),
children: g ? "停止公网入口" : "启动公网入口"
- }), r.named_available ? /* @__PURE__ */ (0, z.jsx)(H, {
+ }), r.named_available ? /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
- ...q(h.busy === "save"),
+ ...K(h.busy === "save"),
children: "保存配置"
}) : null]
})]
@@ -49757,18 +49760,18 @@ var f_e = [
["proxy", "自定义"]
];
function p_e({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, z.jsx)(m_e, {
+ e.peach_proxy ? /* @__PURE__ */ (0, R.jsx)(m_e, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, z.jsx)(s_e, {
+ e.access ? /* @__PURE__ */ (0, R.jsx)(s_e, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, z.jsx)(d_e, {
+ e.tunnel ? /* @__PURE__ */ (0, R.jsx)(d_e, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -49777,12 +49780,12 @@ function p_e({ data: e, receipt: t }) {
});
}
function m_e({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.mode), [o, s] = (0, R.useState)(""), c = aa();
- return /* @__PURE__ */ (0, z.jsxs)(Ty, {
+ let [n, r] = (0, L.useState)(e), [i, a] = (0, L.useState)(e.mode), [o, s] = (0, L.useState)(""), c = oa();
+ return /* @__PURE__ */ (0, R.jsxs)(Ey, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
- e.preventDefault(), c.run("save", (e) => G("/api/configuration/peach-proxy", {
+ e.preventDefault(), c.run("save", (e) => W("/api/configuration/peach-proxy", {
mode: i,
proxy: o
}, "POST", e), (e) => {
@@ -49790,25 +49793,25 @@ function m_e({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, z.jsx)(Ey, { children: /* @__PURE__ */ (0, z.jsx)(Sy, {
+ /* @__PURE__ */ (0, R.jsx)(Dy, { children: /* @__PURE__ */ (0, R.jsx)(Cy, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, z.jsx)(vy, {
+ children: /* @__PURE__ */ (0, R.jsx)(yy, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: f_e.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(yy, {
+ children: f_e.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(by, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, z.jsxs)(Dy, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, R.jsxs)(Oy, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, z.jsx)(py, {
+ i === "proxy" ? /* @__PURE__ */ (0, R.jsx)(my, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -49817,17 +49820,17 @@ function m_e({ initial: e, receipt: t }) {
onChange: s,
placeholder: n.proxy_saved ? "已保存,留空保留" : "http://127.0.0.1:7890"
}) : null,
- n.needs_selection ? /* @__PURE__ */ (0, z.jsx)(K, {
+ n.needs_selection ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "warning",
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, z.jsx)(Ay, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, R.jsx)(jy, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Oy, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(ky, { children: /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
- ...q(c.busy === "save"),
+ ...K(c.busy === "save"),
children: "保存配置"
}) })
]
@@ -49836,45 +49839,45 @@ function m_e({ initial: e, receipt: t }) {
//#endregion
//#region src/react/settings/configuration-page.tsx
function h_e({ receipt: e, reopenTutorial: t }) {
- let n = $n({
+ let n = er({
queryKey: eI,
queryFn: ({ signal: e }) => tI(e)
}), r = n.data;
- if (!r) return /* @__PURE__ */ (0, z.jsx)("div", {
+ if (!r) return /* @__PURE__ */ (0, R.jsx)("div", {
className: "configpage",
- children: /* @__PURE__ */ (0, z.jsx)(K, {
+ children: /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "配置读取失败",
- children: n.error ? U(n.error) : "未取得配置,请刷新页面重试。"
+ children: n.error ? H(n.error) : "未取得配置,请刷新页面重试。"
})
});
let i = {
data: r,
receipt: e
}, a = !!(r.startup || r.entry_links), o = !!(r.peach_proxy || r.access || r.tunnel);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "configpage",
children: [
- a ? /* @__PURE__ */ (0, z.jsx)("h2", {
+ a ? /* @__PURE__ */ (0, R.jsx)("h2", {
className: "configgroup",
children: "通用"
}) : null,
- a ? /* @__PURE__ */ (0, z.jsx)(wge, { ...i }) : null,
- /* @__PURE__ */ (0, z.jsx)("h2", {
+ a ? /* @__PURE__ */ (0, R.jsx)(wge, { ...i }) : null,
+ /* @__PURE__ */ (0, R.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, z.jsx)(n_e, { ...i }),
- o ? /* @__PURE__ */ (0, z.jsx)("h2", {
+ /* @__PURE__ */ (0, R.jsx)(n_e, { ...i }),
+ o ? /* @__PURE__ */ (0, R.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- o ? /* @__PURE__ */ (0, z.jsx)(p_e, { ...i }) : null,
- /* @__PURE__ */ (0, z.jsx)("h2", {
+ o ? /* @__PURE__ */ (0, R.jsx)(p_e, { ...i }) : null,
+ /* @__PURE__ */ (0, R.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ (0, z.jsx)(kge, {
+ /* @__PURE__ */ (0, R.jsx)(kge, {
...i,
reopenTutorial: t
})
@@ -49883,9 +49886,9 @@ function h_e({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var g_e = "/api/stats", uI = ["stats"], dI = (e) => W(g_e, e);
+var g_e = "/api/stats", uI = ["stats"], dI = (e) => U(g_e, e);
async function __e(e) {
- await X.fetchQuery({
+ await Y.fetchQuery({
queryKey: uI,
queryFn: () => dI(e)
});
@@ -49969,7 +49972,7 @@ function yI(e) {
}
function bI(e) {
if (e == null) return null;
- if (/*#__PURE__*/ (0, R.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
+ if (/*#__PURE__*/ (0, L.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
return yI(t);
}
@@ -49983,7 +49986,7 @@ function xI(e) {
return t;
}
function j_e(e) {
- return e == null ? null : /*#__PURE__*/ (0, R.isValidElement)(e) ? xI(e.props) : typeof e == "object" && !Array.isArray(e) ? xI(e) : null;
+ return e == null ? null : /*#__PURE__*/ (0, L.isValidElement)(e) ? xI(e.props) : typeof e == "object" && !Array.isArray(e) ? xI(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
@@ -50024,21 +50027,21 @@ function P_e(e, t) {
}
return n;
}
-var CI = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+var CI = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = N_e(e, M_e), d = a || {
width: r,
height: i,
x: 0,
y: 0
- }, f = ja("recharts-surface", o);
- return /*#__PURE__*/ R.createElement("svg", SI({}, xI(u), {
+ }, f = Ma("recharts-surface", o);
+ return /*#__PURE__*/ L.createElement("svg", SI({}, xI(u), {
className: f,
width: r,
height: i,
style: s,
viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,
ref: t
- }), /*#__PURE__*/ R.createElement("title", null, c), /*#__PURE__*/ R.createElement("desc", null, l), n);
+ }), /*#__PURE__*/ L.createElement("title", null, c), /*#__PURE__*/ L.createElement("desc", null, l), n);
}), F_e = ["children", "className"];
function wI() {
return wI = Object.assign ? Object.assign.bind() : function(e) {
@@ -50067,10 +50070,10 @@ function L_e(e, t) {
}
return n;
}
-var TI = /*#__PURE__*/ R.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = I_e(e, F_e), a = ja("recharts-layer", r);
- return /*#__PURE__*/ R.createElement("g", wI({ className: a }, xI(i), { ref: t }), n);
-}), EI = /*#__PURE__*/ (0, R.createContext)(null), R_e = () => (0, R.useContext)(EI);
+var TI = /*#__PURE__*/ L.forwardRef((e, t) => {
+ var { children: n, className: r } = e, i = I_e(e, F_e), a = Ma("recharts-layer", r);
+ return /*#__PURE__*/ L.createElement("g", wI({ className: a }, xI(i), { ref: t }), n);
+}), EI = /*#__PURE__*/ (0, L.createContext)(null), R_e = () => (0, L.useContext)(EI);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
function DI(e) {
@@ -51000,8 +51003,8 @@ var UL = {
var e = kve(a), t = eve().type(e).size(Ave(n, r, a))();
if (t !== null) return t;
}, { className: s, cx: c, cy: l } = i, u = xI(i);
- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ R.createElement("path", BL({}, u, {
- className: ja("recharts-symbols", s),
+ return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ L.createElement("path", BL({}, u, {
+ className: Ma("recharts-symbols", s),
transform: `translate(${c}, ${l})`,
d: o()
})) : null;
@@ -51012,7 +51015,7 @@ WL.registerSymbol = jve;
var GL = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, KL = (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;
+ if (/*#__PURE__*/ (0, L.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;
var r = {};
return Object.keys(n).forEach((e) => {
gI(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
@@ -51142,7 +51145,7 @@ function Vve(e) {
function Hve(e) {
var { data: t, iconType: n, inactiveColor: r } = e, i = $L / 2, a = $L / 6, o = $L / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
- if (c === "plainline") return /*#__PURE__*/ R.createElement("line", {
+ if (c === "plainline") return /*#__PURE__*/ L.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
@@ -51153,7 +51156,7 @@ function Hve(e) {
y2: i,
className: "recharts-legend-icon"
});
- if (c === "line") return /*#__PURE__*/ R.createElement("path", {
+ if (c === "line") return /*#__PURE__*/ L.createElement("path", {
strokeWidth: 4,
fill: "none",
stroke: s,
@@ -51163,17 +51166,17 @@ function Hve(e) {
A${a},${a},0,1,1,${o},${i}`,
className: "recharts-legend-icon"
});
- if (c === "rect") return /*#__PURE__*/ R.createElement("path", {
+ if (c === "rect") return /*#__PURE__*/ L.createElement("path", {
stroke: "none",
fill: s,
d: `M0,${$L / 8}h${$L}v${$L * 3 / 4}h${-$L}z`,
className: "recharts-legend-icon"
});
- if (/*#__PURE__*/ R.isValidElement(t.legendIcon)) {
+ if (/*#__PURE__*/ L.isValidElement(t.legendIcon)) {
var l = QL({}, t);
- return delete l.legendIcon, /*#__PURE__*/ R.cloneElement(t.legendIcon, l);
+ return delete l.legendIcon, /*#__PURE__*/ L.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ R.createElement(WL, {
+ return /*#__PURE__*/ L.createElement(WL, {
fill: s,
cx: i,
cy: i,
@@ -51197,7 +51200,7 @@ function Uve(e) {
marginRight: 4
};
return t.map((t, r) => {
- var d = t.formatter || i, f = ja({
+ var d = t.formatter || i, f = Ma({
"recharts-legend-item": !0,
[`legend-item-${r}`]: !0,
inactive: t.inactive
@@ -51206,21 +51209,21 @@ function Uve(e) {
var p = typeof s == "object" ? QL({}, 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", XL({
+ return /*#__PURE__*/ L.createElement("li", XL({
className: f,
style: l,
key: `legend-item-${r}`
- }, qL(e, t, r)), /*#__PURE__*/ R.createElement(CI, {
+ }, qL(e, t, r)), /*#__PURE__*/ L.createElement(CI, {
width: n,
height: n,
viewBox: c,
style: u,
"aria-label": `${m} legend icon`
- }, /*#__PURE__*/ R.createElement(Hve, {
+ }, /*#__PURE__*/ L.createElement(Hve, {
data: t,
iconType: o,
inactiveColor: a
- })), /*#__PURE__*/ R.createElement("span", {
+ })), /*#__PURE__*/ L.createElement("span", {
className: "recharts-legend-item-text",
style: p
}, m));
@@ -51234,10 +51237,10 @@ var Wve = (e) => {
margin: 0,
textAlign: r === "horizontal" ? i : "left"
};
- return /*#__PURE__*/ R.createElement("ul", {
+ return /*#__PURE__*/ L.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ R.createElement(Uve, XL({}, t, { payload: n })));
+ }, /*#__PURE__*/ L.createElement(Uve, XL({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
@@ -51611,8 +51614,8 @@ function bR(e, t, n) {
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var Aye = /* @__PURE__ */ Ee(((e) => {
- var t = Pe(), n = qc();
+var Aye = /* @__PURE__ */ De(((e) => {
+ var t = Fe(), n = Jc();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -51656,14 +51659,14 @@ var Aye = /* @__PURE__ */ Ee(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), jye = /* @__PURE__ */ Ee(((e, t) => {
+})), jye = /* @__PURE__ */ De(((e, t) => {
t.exports = Aye();
-})), xR = /*#__PURE__*/ (0, R.createContext)(null), Mye = jye(), Nye = (e) => e, SR = () => {
- var e = (0, R.useContext)(xR);
+})), xR = /*#__PURE__*/ (0, L.createContext)(null), Mye = jye(), Nye = (e) => e, SR = () => {
+ var e = (0, L.useContext)(xR);
return e ? e.store.dispatch : Nye;
}, CR = () => {}, Pye = () => CR, Fye = (e, t) => e === t;
function Q(e) {
- var t = (0, R.useContext)(xR), n = (0, R.useMemo)(() => t ? (t) => {
+ var t = (0, L.useContext)(xR), n = (0, L.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
} : CR, [t, e]);
return (0, Mye.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : Pye, t ? t.store.getState : CR, t ? t.store.getState : CR, n, Fye);
@@ -51864,13 +51867,13 @@ function ebe() {
//#region node_modules/recharts/es6/util/useElementOffset.js
var MR = 1;
function NR() {
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, R.useState)({
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, L.useState)({
height: 0,
left: 0,
top: 0,
width: 0
});
- return [t, (0, R.useCallback)((e) => {
+ return [t, (0, L.useCallback)((e) => {
if (e != null) {
var r = e.getBoundingClientRect(), i = {
height: r.height,
@@ -53359,7 +53362,7 @@ var RV = $([
y: 0,
width: e,
height: t
-})), VV = /*#__PURE__*/ (0, R.createContext)(null), HV = () => (0, R.useContext)(VV) != null, UV = (e) => e.brush, WV = $([
+})), VV = /*#__PURE__*/ (0, L.createContext)(null), HV = () => (0, L.useContext)(VV) != null, UV = (e) => e.brush, WV = $([
UV,
RV,
wV
@@ -53518,24 +53521,24 @@ function cH(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var lH = /*#__PURE__*/ (0, R.createContext)(YV.initialDimension);
+var lH = /*#__PURE__*/ (0, L.createContext)(YV.initialDimension);
function uH(e) {
return qB(e.width) && qB(e.height);
}
function dH(e) {
- var { children: t, width: n, height: r } = e, i = (0, R.useMemo)(() => ({
+ var { children: t, width: n, height: r } = e, i = (0, L.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return uH(i) ? /*#__PURE__*/ R.createElement(lH.Provider, { value: i }, t) : null;
+ return uH(i) ? /*#__PURE__*/ L.createElement(lH.Provider, { value: i }, t) : null;
}
-var fH = () => (0, R.useContext)(lH), pH = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { aspect: n, initialDimension: r = YV.initialDimension, width: i, height: a, minWidth: o = YV.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = YV.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)({
+var fH = () => (0, L.useContext)(lH), pH = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
+ var { aspect: n, initialDimension: r = YV.initialDimension, width: i, height: a, minWidth: o = YV.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = YV.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, L.useRef)(null), g = (0, L.useRef)();
+ g.current = p, (0, L.useImperativeHandle)(t, () => h.current);
+ var [_, v] = (0, L.useState)({
containerWidth: r.width,
containerHeight: r.height
- }), y = (0, R.useCallback)((e, t) => {
+ }), y = (0, L.useCallback)((e, t) => {
v((n) => {
var r = Math.round(e), i = Math.round(t);
return n.containerWidth === r && n.containerHeight === i ? n : {
@@ -53544,7 +53547,7 @@ var fH = () => (0, R.useContext)(lH), pH = /*#__PURE__*/ (0, R.forwardRef)((e, t
};
});
}, []);
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
if (h.current == null || typeof ResizeObserver > "u") return zL;
var e = (e) => {
var t, n = e[0];
@@ -53570,9 +53573,9 @@ var fH = () => (0, R.useContext)(lH), pH = /*#__PURE__*/ (0, R.forwardRef)((e, t
aspect: n,
maxHeight: c
});
- return JV(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 JV(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__*/ L.createElement("div", {
id: d ? `${d}` : void 0,
- className: ja("recharts-responsive-container", f),
+ className: Ma("recharts-responsive-container", f),
style: aH(aH({}, m), {}, {
width: i,
height: a,
@@ -53581,14 +53584,14 @@ var fH = () => (0, R.useContext)(lH), pH = /*#__PURE__*/ (0, R.forwardRef)((e, t
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ R.createElement("div", { style: tH({
+ }, /*#__PURE__*/ L.createElement("div", { style: tH({
width: i,
height: a
- }) }, /*#__PURE__*/ R.createElement(dH, {
+ }) }, /*#__PURE__*/ L.createElement(dH, {
width: S,
height: C
}, l)));
-}), mH = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+}), mH = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
var n = fH();
if (qB(n.width) && qB(n.height)) return e.children;
var { width: r, height: i } = nH({
@@ -53601,10 +53604,10 @@ var fH = () => (0, R.useContext)(lH), pH = /*#__PURE__*/ (0, R.forwardRef)((e, t
aspect: e.aspect,
maxHeight: e.maxHeight
});
- return Z(a) && Z(o) ? /*#__PURE__*/ R.createElement(dH, {
+ return Z(a) && Z(o) ? /*#__PURE__*/ L.createElement(dH, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ R.createElement(pH, rH({}, e, {
+ }, e.children) : /*#__PURE__*/ L.createElement(pH, rH({}, e, {
width: r,
height: i,
ref: t
@@ -53646,7 +53649,7 @@ var gH = () => {
if (t === "centric" || t === "radial") return t;
}, EH = () => Q(TH), DH = () => CH() !== void 0, OH = (e) => {
var t = SR(), n = HV(), { width: r, height: i } = e, a = fH(), o = r, s = i;
- return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, R.useEffect)(() => {
+ return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, L.useEffect)(() => {
!n && qB(o) && qB(s) && t(HB({
width: o,
height: s
@@ -54062,11 +54065,11 @@ var xU = sB({
prepare: rB()
}
}
-}), { setLegendSize: SU, setLegendSettings: qbe, addLegendPayload: CU, replaceLegendPayload: wU, removeLegendPayload: TU } = xU.actions, Jbe = xU.reducer, Ybe = /* @__PURE__ */ Ee(((e) => {
- var t = Pe();
+}), { setLegendSize: SU, setLegendSettings: qbe, addLegendPayload: CU, replaceLegendPayload: wU, removeLegendPayload: TU } = xU.actions, Jbe = xU.reducer, Ybe = /* @__PURE__ */ De(((e) => {
+ var t = Fe();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
-(/* @__PURE__ */ Ee(((e, t) => {
+(/* @__PURE__ */ De(((e, t) => {
t.exports = Ybe();
})))();
function Xbe(e) {
@@ -54146,7 +54149,7 @@ function Qbe(e, t) {
};
return m;
}
-var $be = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, exe = typeof navigator < "u" && navigator.product === "ReactNative", txe = $be || exe ? R.useLayoutEffect : R.useEffect;
+var $be = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, exe = typeof navigator < "u" && navigator.product === "ReactNative", txe = $be || exe ? L.useLayoutEffect : L.useEffect;
function DU(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
@@ -54160,20 +54163,20 @@ function nxe(e, t) {
}
var rxe = /* @__PURE__ */ Symbol.for("react-redux-context"), ixe = typeof globalThis < "u" ? globalThis : {};
function axe() {
- if (!R.createContext) return {};
- let e = ixe[rxe] ??= /* @__PURE__ */ new Map(), t = e.get(R.createContext);
- return t || (t = R.createContext(null), e.set(R.createContext, t)), t;
+ if (!L.createContext) return {};
+ let e = ixe[rxe] ??= /* @__PURE__ */ new Map(), t = e.get(L.createContext);
+ return t || (t = L.createContext(null), e.set(L.createContext, t)), t;
}
var oxe = /* @__PURE__ */ axe();
function sxe(e) {
- let { children: t, context: n, serverState: r, store: i } = e, a = R.useMemo(() => {
+ let { children: t, context: n, serverState: r, store: i } = e, a = L.useMemo(() => {
let e = Qbe(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
- }, [i, r]), o = R.useMemo(() => i.getState(), [i]);
+ }, [i, r]), o = L.useMemo(() => i.getState(), [i]);
txe(() => {
let { subscription: e } = a;
return e.onStateChange = e.notifyNestedSubs, e.trySubscribe(), o !== i.getState() && e.notifyNestedSubs(), () => {
@@ -54181,7 +54184,7 @@ function sxe(e) {
};
}, [a, o]);
let s = n || oxe;
- return /* @__PURE__ */ R.createElement(s.Provider, { value: a }, t);
+ return /* @__PURE__ */ L.createElement(s.Provider, { value: a }, t);
}
var cxe = sxe, lxe = /* @__PURE__ */ new Set([
"axisLine",
@@ -54294,7 +54297,7 @@ function _xe(e) {
}
function vxe(e) {
var { contextPayload: t } = e, n = hxe(e, dxe), r = bR(t, e.payloadUniqBy, _xe), i = jU(jU({}, 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(Wve, i);
+ return /*#__PURE__*/ L.isValidElement(e.content) ? /*#__PURE__*/ L.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ L.createElement(e.content, i) : /*#__PURE__*/ L.createElement(Wve, i);
}
function yxe(e, t, n, r, i, a) {
var { layout: o, align: s, verticalAlign: c } = t, l, u;
@@ -54302,13 +54305,13 @@ function yxe(e, t, n, r, i, a) {
}
function bxe(e) {
var t = SR();
- return (0, R.useEffect)(() => {
+ return (0, L.useEffect)(() => {
t(qbe(e));
}, [t, e]), null;
}
function xxe(e) {
var t = SR();
- return (0, R.useEffect)(() => (t(SU(e)), () => {
+ return (0, L.useEffect)(() => (t(SU(e)), () => {
t(SU({
width: 0,
height: 0
@@ -54335,27 +54338,27 @@ function wxe(e) {
height: m?.height || o || "auto"
}, yxe(s, t, i, d, f, l)), s), g = c ?? r;
if (g == null || n == null) return null;
- var _ = /*#__PURE__*/ R.createElement("div", {
+ var _ = /*#__PURE__*/ L.createElement("div", {
className: "recharts-legend-wrapper",
style: h,
ref: u
- }, /*#__PURE__*/ R.createElement(bxe, {
+ }, /*#__PURE__*/ L.createElement(bxe, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ R.createElement(xxe, {
+ }), !c && /*#__PURE__*/ L.createElement(xxe, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ R.createElement(vxe, kU({}, t, m, {
+ }), /*#__PURE__*/ L.createElement(vxe, kU({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
contextPayload: n
})));
- return /*#__PURE__*/ (0, ze.createPortal)(_, g);
+ return /*#__PURE__*/ (0, Be.createPortal)(_, g);
}
-var MU = /*#__PURE__*/ R.memo(wxe, OU);
+var MU = /*#__PURE__*/ L.memo(wxe, OU);
MU.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
@@ -54451,35 +54454,35 @@ var Axe = (e) => {
else return null;
}
var f = FU(FU({}, IU.itemStyle), {}, { color: e.color || IU.itemStyle.color }, r);
- return /*#__PURE__*/ R.createElement("li", {
+ return /*#__PURE__*/ L.createElement("li", {
className: "recharts-tooltip-item",
key: `tooltip-item-${n}`,
style: f
- }, AL(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, AL(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 || ""));
+ }, AL(u) ? /*#__PURE__*/ L.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, AL(u) ? /*#__PURE__*/ L.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ L.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ L.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
});
- return /*#__PURE__*/ R.createElement("ul", {
+ return /*#__PURE__*/ L.createElement("ul", {
className: "recharts-tooltip-item-list",
style: e
}, n);
}
return null;
- }, m = FU(FU({}, IU.contentStyle), n), h = FU({ margin: 0 }, i), g = !IL(u), _ = g ? u : "", v = ja("recharts-default-tooltip", c), y = ja("recharts-tooltip-label", l);
+ }, m = FU(FU({}, IU.contentStyle), n), h = FU({ margin: 0 }, i), g = !IL(u), _ = g ? u : "", v = Ma("recharts-default-tooltip", c), y = Ma("recharts-tooltip-label", l);
g && d && a != null && (_ = d(u, a));
var b = f ? {
role: "status",
"aria-live": "assertive"
} : {};
- return /*#__PURE__*/ R.createElement("div", NU({
+ return /*#__PURE__*/ L.createElement("div", NU({
className: v,
style: m
- }, b), /*#__PURE__*/ R.createElement("p", {
+ }, b), /*#__PURE__*/ L.createElement("p", {
className: y,
style: h
- }, /*#__PURE__*/ R.isValidElement(_) ? _ : `${_}`), p());
+ }, /*#__PURE__*/ L.isValidElement(_) ? _ : `${_}`), p());
}, LU = "recharts-tooltip-wrapper", jxe = { visibility: "hidden" };
function Mxe(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
- return ja(LU, {
+ return Ma(LU, {
[`${LU}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
[`${LU}-left`]: Z(n) && t && Z(t.x) && n < t.x,
[`${LU}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
@@ -54540,8 +54543,8 @@ var zU = {
//#endregion
//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js
function BU() {
- var [e, t] = (0, R.useState)(() => zU.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
- return (0, R.useEffect)(() => {
+ var [e, t] = (0, L.useState)(() => zU.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
+ return (0, L.useEffect)(() => {
if (window.matchMedia) {
var e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {
t(e.matches);
@@ -54601,14 +54604,14 @@ function Rxe(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
function zxe(e) {
- var t = BU(), [n, r] = R.useState(() => ({
+ var t = BU(), [n, r] = L.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
x: 0,
y: 0
}
}));
- R.useEffect(() => {
+ L.useEffect(() => {
var t = (t) => {
t.key === "Escape" && r({
dismissed: !0,
@@ -54647,7 +54650,7 @@ function zxe(e) {
top: 0,
left: 0
})), {}, { visibility: !n.dismissed && e.active && e.hasPayload ? "visible" : "hidden" }, e.wrapperStyle);
- return /*#__PURE__*/ R.createElement("div", {
+ return /*#__PURE__*/ L.createElement("div", {
xmlns: "http://www.w3.org/1999/xhtml",
tabIndex: -1,
className: i,
@@ -54655,7 +54658,7 @@ function zxe(e) {
ref: e.innerRef
}, e.children);
}
-var Bxe = /*#__PURE__*/ R.memo(zxe), UU = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var Bxe = /*#__PURE__*/ L.memo(zxe), UU = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
function WU() {
@@ -54752,8 +54755,8 @@ var qU = {
layout: e.layout || a,
connectNulls: e.connectNulls
}, s = n && n.length ? Gxe(o) : r;
- return /*#__PURE__*/ R.createElement("path", WU({}, yI(e), KL(e), {
- className: ja("recharts-curve", t),
+ return /*#__PURE__*/ L.createElement("path", WU({}, yI(e), KL(e), {
+ className: Ma("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
@@ -54845,8 +54848,8 @@ var $xe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, eSe = (e) => {
width: a,
height: o
}, c);
- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ R.createElement("path", eW({}, xI(l), {
- className: ja("recharts-cross", s),
+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ L.createElement("path", eW({}, xI(l), {
+ className: Ma("recharts-cross", s),
d: $xe(t, n, a, o, r, i)
}));
};
@@ -55149,10 +55152,10 @@ function xSe() {
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var SSe = /*#__PURE__*/ (0, R.createContext)(xSe);
+var SSe = /*#__PURE__*/ (0, L.createContext)(xSe);
function CSe(e, t) {
- var n = (0, R.useContext)(SSe);
- return (0, R.useMemo)(() => t ?? n(e), [
+ var n = (0, L.useContext)(SSe);
+ return (0, L.useMemo)(() => t ?? n(e), [
e,
t,
n
@@ -55170,10 +55173,10 @@ var wSe = {
onAnimationStart: () => {}
}, hW = { t: 0 }, gW = { t: 1 };
function _W(e) {
- var t = YL(e, wSe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = BU(), d = n === "auto" ? !zU.isSsr && !u : n, f = CSe(t.animationId, t.animationManager), [p, m] = (0, R.useState)(d ? hW : gW), h = (0, R.useRef)(null);
- return (0, R.useEffect)(() => {
+ var t = YL(e, wSe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = BU(), d = n === "auto" ? !zU.isSsr && !u : n, f = CSe(t.animationId, t.animationManager), [p, m] = (0, L.useState)(d ? hW : gW), h = (0, L.useRef)(null);
+ return (0, L.useEffect)(() => {
d || m(gW);
- }, [d]), (0, R.useEffect)(() => {
+ }, [d]), (0, L.useEffect)(() => {
if (!d || !r) return zL;
var e = fSe(hW, gW, vSe(a), i, m, f.getTimeoutController());
return f.start([
@@ -55201,7 +55204,7 @@ function _W(e) {
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
function vW(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, R.useRef)(jL(t)), r = (0, R.useRef)(e);
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, L.useRef)(jL(t)), r = (0, L.useRef)(e);
return r.current !== e && (n.current = jL(t), r.current = e), n.current;
}
//#endregion
@@ -55361,14 +55364,14 @@ var wW = (e, t, n, r, i) => {
animationDuration: 1500,
animationEasing: "ease"
}, EW = (e) => {
- var t = YL(e, TW), n = (0, R.useRef)(null), [r, i] = (0, R.useState)(-1);
- (0, R.useEffect)(() => {
+ var t = YL(e, TW), n = (0, L.useRef)(null), [r, i] = (0, L.useState)(-1);
+ (0, L.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 = vW((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, L.useRef)(s), _ = (0, L.useRef)(c), v = (0, L.useRef)(a), y = (0, L.useRef)(o), b = vW((0, L.useMemo)(() => ({
x: a,
y: o,
width: s,
@@ -55382,10 +55385,10 @@ var wW = (e, t, n, r, i) => {
l
]), "rectangle-");
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
- var x = ja("recharts-rectangle", u);
+ var x = Ma("recharts-rectangle", u);
if (!h) {
var S = xI(t), { radius: C } = S, w = SW(S, TSe);
- return /*#__PURE__*/ R.createElement("path", xW({}, w, {
+ return /*#__PURE__*/ L.createElement("path", xW({}, w, {
x: TL(a),
y: TL(o),
width: TL(s),
@@ -55396,7 +55399,7 @@ var wW = (e, t, n, r, i) => {
}));
}
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 = iW(["strokeDasharray"], f, typeof d == "string" ? d : TW.animationEasing);
- return /*#__PURE__*/ R.createElement(_W, {
+ return /*#__PURE__*/ L.createElement(_W, {
animationId: b,
key: b,
canBegin: r > 0,
@@ -55411,7 +55414,7 @@ var wW = (e, t, n, r, i) => {
transition: j,
strokeDasharray: A
} : { strokeDasharray: k } : { strokeDasharray: A }, p = xI(t), { radius: h } = p, b = SW(p, ESe);
- return /*#__PURE__*/ R.createElement("path", xW({}, b, {
+ return /*#__PURE__*/ L.createElement("path", xW({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
d: wW(u, d, r, i, l),
@@ -55715,7 +55718,7 @@ var iCe = (e, t) => DL(t - e) * Math.min(Math.abs(t - e), 359.999), FW = (e) =>
}, LW = (e) => {
var t = YL(e, oCe), { 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 = ja("recharts-sector", d), p = a - i, m = ML(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? aCe({
+ var f = Ma("recharts-sector", d), p = a - i, m = ML(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? aCe({
cx: n,
cy: r,
innerRadius: i,
@@ -55733,7 +55736,7 @@ var iCe = (e, t) => DL(t - e) * Math.min(Math.abs(t - e), 359.999), FW = (e) =>
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ R.createElement("path", NW({}, xI(t), {
+ return /*#__PURE__*/ L.createElement("path", NW({}, xI(t), {
className: f,
d: h
}));
@@ -55862,7 +55865,7 @@ function lCe(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/util/scale/util/arithmetic.js
-var qW = /* @__PURE__ */ ke((/* @__PURE__ */ Ee(((e, t) => {
+var qW = /* @__PURE__ */ Ae((/* @__PURE__ */ De(((e, t) => {
(function(e) {
var n = 1e9, r = {
precision: 20,
@@ -58211,8 +58214,8 @@ function Nwe(e) {
L: TJ,
m: rTe,
M: iTe,
- p: I,
- q: te,
+ p: te,
+ q: ne,
Q: jJ,
s: MJ,
S: aTe,
@@ -58228,10 +58231,10 @@ function Nwe(e) {
Z: hTe,
"%": AJ
}, b = {
- a: ne,
- A: re,
- b: ie,
- B: ae,
+ a: re,
+ A: ie,
+ b: ae,
+ B: oe,
c: null,
d: DJ,
e: DJ,
@@ -58244,8 +58247,8 @@ function Nwe(e) {
L: OJ,
m: bTe,
M: xTe,
- p: oe,
- q: se,
+ p: se,
+ q: ce,
Q: jJ,
s: MJ,
S: STe,
@@ -58365,28 +58368,28 @@ function Nwe(e) {
function F(e) {
return s[e.getMonth()];
}
- function I(e) {
+ function te(e) {
return i[+(e.getHours() >= 12)];
}
- function te(e) {
+ function ne(e) {
return 1 + ~~(e.getMonth() / 3);
}
- function ne(e) {
+ function re(e) {
return o[e.getUTCDay()];
}
- function re(e) {
+ function ie(e) {
return a[e.getUTCDay()];
}
- function ie(e) {
+ function ae(e) {
return c[e.getUTCMonth()];
}
- function ae(e) {
+ function oe(e) {
return s[e.getUTCMonth()];
}
- function oe(e) {
+ function se(e) {
return i[+(e.getUTCHours() >= 12)];
}
- function se(e) {
+ function ce(e) {
return 1 + ~~(e.getUTCMonth() / 3);
}
return {
@@ -58894,7 +58897,7 @@ function zTe() {
}
//#endregion
//#region node_modules/victory-vendor/es/d3-scale.js
-var YJ = /* @__PURE__ */ De({
+var YJ = /* @__PURE__ */ Oe({
scaleBand: () => lK,
scaleDiverging: () => GJ,
scaleDivergingLog: () => KJ,
@@ -60548,7 +60551,7 @@ var EZ = sB({
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
function DZ(e) {
var { zIndex: t, children: n } = e, r = DH() && t !== void 0 && t !== 0, i = HV(), a = SR();
- (0, R.useLayoutEffect)(() => r ? (a(KDe({ zIndex: t })), () => {
+ (0, L.useLayoutEffect)(() => r ? (a(KDe({ zIndex: t })), () => {
a(qDe({ zIndex: t }));
}) : zL, [
a,
@@ -60556,7 +60559,7 @@ function DZ(e) {
r
]);
var o = Q((e) => RDe(e, t, i));
- return r ? o ? /*#__PURE__*/ (0, ze.createPortal)(n, o) : null : n;
+ return r ? o ? /*#__PURE__*/ (0, Be.createPortal)(n, o) : null : n;
}
//#endregion
//#region node_modules/recharts/es6/component/Cursor.js
@@ -60614,7 +60617,7 @@ function $De(e, t) {
}
function eOe(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);
+ return /*#__PURE__*/ (0, L.isValidElement)(t) ? /*#__PURE__*/ (0, L.cloneElement)(t, r) : /*#__PURE__*/ (0, L.createElement)(n, r);
}
function tOe(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;
@@ -60639,9 +60642,9 @@ function tOe(e) {
}, i), p), bI(s)), {}, {
payload: d,
payloadIndex: f,
- className: ja("recharts-tooltip-cursor", x)
+ className: Ma("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ R.createElement(DZ, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ R.createElement(eOe, {
+ return /*#__PURE__*/ L.createElement(DZ, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ L.createElement(eOe, {
cursor: s,
cursorComp: m,
cursorProps: S
@@ -60649,7 +60652,7 @@ function tOe(e) {
}
function nOe(e) {
var t = CDe(), n = vH(), r = CH(), i = hZ();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ R.createElement(tOe, OZ({}, e, {
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ L.createElement(tOe, OZ({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -60658,7 +60661,7 @@ function nOe(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var jZ = /*#__PURE__*/ (0, R.createContext)(null), rOe = () => (0, R.useContext)(jZ), iOe = (/* @__PURE__ */ ke((/* @__PURE__ */ Ee(((e, t) => {
+var jZ = /*#__PURE__*/ (0, L.createContext)(null), rOe = () => (0, L.useContext)(jZ), iOe = (/* @__PURE__ */ Ae((/* @__PURE__ */ De(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -60855,7 +60858,7 @@ function gOe(e, t) {
}
function _Oe() {
var e = Q(lG), t = Q(dG), n = SR(), r = Q(uG), i = Q(tZ), a = CH(), o = gH(), s = Q((e) => e.rootProps.className);
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
if (e == null) return zL;
var s = (s, c, l) => {
if (t !== l && e === s) {
@@ -60925,7 +60928,7 @@ function _Oe() {
}
function vOe() {
var e = Q(lG), t = Q(dG), n = SR();
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
if (e == null) return zL;
var r = (r, i, a) => {
t !== a && e === r && n(cOe(i));
@@ -60941,13 +60944,13 @@ function vOe() {
}
function yOe() {
var e = SR();
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
e(oOe());
}, [e]), _Oe(), vOe();
}
function bOe(e, t, n, r, i, a) {
var o = Q((n) => jDe(n, e, t)), s = Q(hDe), c = Q(dG), l = Q(lG), u = Q(uG), d = Q(sOe)?.active, f = gH();
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
if (!d && l != null && c != null) {
var e = jX({
active: a,
@@ -61023,7 +61026,7 @@ function wOe(e) {
return e.dataKey;
}
function TOe(e, t) {
- return /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ R.createElement(e, t) : /*#__PURE__*/ R.createElement(Axe, t);
+ return /*#__PURE__*/ L.isValidElement(e) ? /*#__PURE__*/ L.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ L.createElement(e, t) : /*#__PURE__*/ L.createElement(Axe, t);
}
var UZ = [], EOe = {
allowEscapeViewBox: {
@@ -61053,7 +61056,7 @@ var UZ = [], EOe = {
};
function DOe(e) {
var t = YL(e, EOe), { 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 = SR(), S = typeof v == "number" ? String(v) : v;
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
x(VEe({
shared: g,
trigger: _,
@@ -61071,25 +61074,25 @@ function DOe(e) {
]);
var C = gH(), w = UU(), T = IEe(g), { activeIndex: E, isActive: D } = Q((e) => PDe(e, T, _, S)) ?? {}, O = Q((e) => NDe(e, T, _, S)), k = Q((e) => CZ(e, T, _, S)), A = Q((e) => MDe(e, T, _, S)), j = O, M = rOe(), N = n ?? D ?? !1, [P, ee] = NR([j, N]), F = T === "axis" ? k : void 0;
bOe(T, _, A, F, E, N);
- var I = y ?? M;
- if (I == null || C == null || T == null) return null;
- var te = j ?? UZ;
- N || (te = UZ), s && te.length && (te = bR(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, wOe));
- var ne = te.length > 0, re = HZ(HZ({}, t), {}, {
- payload: te,
+ var te = y ?? M;
+ if (te == null || C == null || T == null) return null;
+ var ne = j ?? UZ;
+ N || (ne = UZ), s && ne.length && (ne = bR(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, wOe));
+ var re = ne.length > 0, ie = HZ(HZ({}, t), {}, {
+ payload: ne,
label: F,
active: N,
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), ie = /*#__PURE__*/ R.createElement(Bxe, {
+ }), ae = /*#__PURE__*/ L.createElement(Bxe, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
isAnimationActive: c,
active: N,
coordinate: A,
- hasPayload: ne,
+ hasPayload: re,
offset: l,
position: d,
reverseDirection: f,
@@ -61099,12 +61102,12 @@ function DOe(e) {
lastBoundingBox: P,
innerRef: ee,
hasPortalFromProps: !!y
- }, TOe(o, re));
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ (0, ze.createPortal)(ie, I), N && /*#__PURE__*/ R.createElement(nOe, {
+ }, TOe(o, ie));
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ (0, Be.createPortal)(ae, te), N && /*#__PURE__*/ L.createElement(nOe, {
cursor: h,
tooltipEventType: T,
coordinate: A,
- payload: te,
+ payload: ne,
index: E
}));
}
@@ -61489,8 +61492,8 @@ var uQ = (e, t, n, r) => e.reduce((e, i) => {
verticalAnchor: "end",
x: 0,
y: 0
-}, hQ = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = YL(e, rke), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = oQ(n, XOe), f = (0, R.useMemo)(() => nke({
+}, hQ = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
+ var n = YL(e, rke), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = oQ(n, XOe), f = (0, L.useMemo)(() => nke({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -61523,16 +61526,16 @@ var uQ = (e, t, n, r) => e.reduce((e, i) => {
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", aQ({}, xI(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ L.createElement("text", aQ({}, xI(v), {
ref: t,
x: y,
y: b,
- className: ja("recharts-text", g),
+ className: Ma("recharts-text", g),
textAnchor: l,
fill: s.includes("url") ? mQ : s
}), f.map((e, t) => {
var n = e.words.join(_ ? "" : " ");
- return /*#__PURE__*/ R.createElement("tspan", {
+ return /*#__PURE__*/ L.createElement("tspan", {
x: y,
dy: t === 0 ? x : a,
key: `${n}-${t}`
@@ -61749,8 +61752,8 @@ function xQ() {
return e;
}, xQ.apply(null, arguments);
}
-var SQ = /*#__PURE__*/ (0, R.createContext)(null), CQ = (e) => {
- var { x: t, y: n, upperWidth: r, lowerWidth: i, width: a, height: o, children: s } = e, c = (0, R.useMemo)(() => ({
+var SQ = /*#__PURE__*/ (0, L.createContext)(null), CQ = (e) => {
+ var { x: t, y: n, upperWidth: r, lowerWidth: i, width: a, height: o, children: s } = e, c = (0, L.useMemo)(() => ({
x: t,
y: n,
upperWidth: r,
@@ -61765,12 +61768,12 @@ var SQ = /*#__PURE__*/ (0, R.createContext)(null), CQ = (e) => {
a,
o
]);
- return /*#__PURE__*/ R.createElement(SQ.Provider, { value: c }, s);
+ return /*#__PURE__*/ L.createElement(SQ.Provider, { value: c }, s);
}, wQ = () => {
- var e = (0, R.useContext)(SQ), t = gH();
+ var e = (0, L.useContext)(SQ), t = gH();
return e || (t ? hH(t) : void 0);
-}, TQ = /*#__PURE__*/ (0, R.createContext)(null), mke = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, R.useMemo)(() => ({
+}, TQ = /*#__PURE__*/ (0, L.createContext)(null), mke = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, L.useMemo)(() => ({
cx: t,
cy: n,
innerRadius: r,
@@ -61787,9 +61790,9 @@ var SQ = /*#__PURE__*/ (0, R.createContext)(null), CQ = (e) => {
o,
s
]);
- return /*#__PURE__*/ R.createElement(TQ.Provider, { value: l }, c);
+ return /*#__PURE__*/ L.createElement(TQ.Provider, { value: l }, c);
}, EQ = () => {
- var e = (0, R.useContext)(TQ), t = Q(kG);
+ var e = (0, L.useContext)(TQ), t = Q(kG);
return e || t;
}, hke = (e) => {
var { value: t, formatter: n } = e, r = IL(e.children) ? t : e.children;
@@ -61812,13 +61815,13 @@ var SQ = /*#__PURE__*/ (0, R.createContext)(null), CQ = (e) => {
var y = jW(s, c, m, _), b = jW(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
${b.x},${b.y}`, S = IL(e.id) ? jL("recharts-radial-line-") : e.id;
- return /*#__PURE__*/ R.createElement("text", xQ({}, r, {
+ return /*#__PURE__*/ L.createElement("text", xQ({}, r, {
dominantBaseline: "central",
- className: ja("recharts-radial-bar-label", o)
- }), /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("path", {
+ className: Ma("recharts-radial-bar-label", o)
+ }), /*#__PURE__*/ L.createElement("defs", null, /*#__PURE__*/ L.createElement("path", {
id: S,
d: x
- })), /*#__PURE__*/ R.createElement("textPath", { xlinkHref: `#${S}` }, n));
+ })), /*#__PURE__*/ L.createElement("textPath", { xlinkHref: `#${S}` }, n));
}, vke = (e, t, n) => {
var { cx: r, cy: i, innerRadius: a, outerRadius: o, startAngle: s, endAngle: c } = e, l = (s + c) / 2;
if (n === "outside") {
@@ -61876,15 +61879,15 @@ function bke(e) {
}
function kQ(e) {
var t = YL(e, yke), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = EQ(), f = wQ(), p = n == null ? i === "center" ? f : d ?? f : OQ(n) ? n : hH(n), m, h, g = bke(p);
- if (!p || IL(a) && IL(o) && !/*#__PURE__*/ (0, R.isValidElement)(s) && typeof s != "function") return null;
+ if (!p || IL(a) && IL(o) && !/*#__PURE__*/ (0, L.isValidElement)(s) && typeof s != "function") return null;
var _ = bQ(bQ({}, t), {}, { viewBox: p });
- if (/*#__PURE__*/ (0, R.isValidElement)(s)) {
+ if (/*#__PURE__*/ (0, L.isValidElement)(s)) {
var { labelRef: v } = _, y = vQ(_, cke);
- return /*#__PURE__*/ (0, R.cloneElement)(s, y);
+ return /*#__PURE__*/ (0, L.cloneElement)(s, y);
}
if (typeof s == "function") {
var { content: b } = _, x = vQ(_, lke);
- if (m = /*#__PURE__*/ (0, R.createElement)(s, x), /*#__PURE__*/ (0, R.isValidElement)(m)) return m;
+ if (m = /*#__PURE__*/ (0, L.createElement)(s, x), /*#__PURE__*/ (0, L.isValidElement)(m)) return m;
} else m = hke(t);
var S = xI(t);
if (OQ(p)) {
@@ -61906,9 +61909,9 @@ function kQ(e) {
verticalAnchor: C.verticalAnchor
}, C.width === void 0 ? {} : { width: C.width }), C.height === void 0 ? {} : { height: C.height });
}
- return /*#__PURE__*/ R.createElement(DZ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(hQ, xQ({
+ return /*#__PURE__*/ L.createElement(DZ, { zIndex: t.zIndex }, /*#__PURE__*/ L.createElement(hQ, xQ({
ref: u,
- className: ja("recharts-label", c)
+ className: Ma("recharts-label", c)
}, S, h, {
textAnchor: lQ(S.textAnchor) ? S.textAnchor : h.textAnchor,
breakAll: l
@@ -61921,16 +61924,16 @@ var AQ = (e, t, n) => {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ R.createElement(kQ, xQ({ key: "label-implicit" }, r)) : AL(e) ? /*#__PURE__*/ R.createElement(kQ, xQ({
+ return e === !0 ? /*#__PURE__*/ L.createElement(kQ, xQ({ key: "label-implicit" }, r)) : AL(e) ? /*#__PURE__*/ L.createElement(kQ, xQ({
key: "label-implicit",
value: e
- }, r)) : /*#__PURE__*/ (0, R.isValidElement)(e) ? e.type === kQ ? /*#__PURE__*/ (0, R.cloneElement)(e, bQ({ key: "label-implicit" }, r)) : /*#__PURE__*/ R.createElement(kQ, xQ({
+ }, r)) : /*#__PURE__*/ (0, L.isValidElement)(e) ? e.type === kQ ? /*#__PURE__*/ (0, L.cloneElement)(e, bQ({ key: "label-implicit" }, r)) : /*#__PURE__*/ L.createElement(kQ, xQ({
key: "label-implicit",
content: e
- }, r)) : DQ(e) ? /*#__PURE__*/ R.createElement(kQ, xQ({
+ }, r)) : DQ(e) ? /*#__PURE__*/ L.createElement(kQ, xQ({
key: "label-implicit",
content: e
- }, r)) : e && typeof e == "object" ? /*#__PURE__*/ R.createElement(kQ, xQ({}, e, { key: "label-implicit" }, r)) : null;
+ }, r)) : e && typeof e == "object" ? /*#__PURE__*/ L.createElement(kQ, xQ({}, e, { key: "label-implicit" }, r)) : null;
};
function jQ(e) {
var { label: t, labelRef: n } = e;
@@ -61979,18 +61982,18 @@ function wke(e, t) {
var Tke = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
if ($Oe(t)) return t;
-}, PQ = /*#__PURE__*/ (0, R.createContext)(void 0), FQ = PQ.Provider, IQ = /*#__PURE__*/ (0, R.createContext)(void 0), Eke = IQ.Provider;
+}, PQ = /*#__PURE__*/ (0, L.createContext)(void 0), FQ = PQ.Provider, IQ = /*#__PURE__*/ (0, L.createContext)(void 0), Eke = IQ.Provider;
function Dke() {
- return (0, R.useContext)(PQ);
+ return (0, L.useContext)(PQ);
}
function Oke() {
- return (0, R.useContext)(IQ);
+ return (0, L.useContext)(IQ);
}
function LQ(e) {
var { valueAccessor: t = Tke } = e, n = NQ(e, Ske), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = NQ(n, Cke), l = Dke(), u = Oke(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ R.createElement(DZ, { zIndex: s ?? fG.label }, /*#__PURE__*/ R.createElement(TI, { className: "recharts-label-list" }, d.map((e, i) => {
+ return !d || !d.length ? null : /*#__PURE__*/ L.createElement(DZ, { zIndex: s ?? fG.label }, /*#__PURE__*/ L.createElement(TI, { className: "recharts-label-list" }, d.map((e, i) => {
var s = IL(r) ? t(e, i) : $B(e.payload, r), l = IL(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ R.createElement(kQ, MQ({ key: `label-${i}` }, xI(e), c, l, {
+ return /*#__PURE__*/ L.createElement(kQ, MQ({ key: `label-${i}` }, xI(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -62004,10 +62007,10 @@ function LQ(e) {
LQ.displayName = "LabelList";
function RQ(e) {
var { label: t } = e;
- return t ? t === !0 ? /*#__PURE__*/ R.createElement(LQ, { key: "labelList-implicit" }) : /*#__PURE__*/ R.isValidElement(t) || DQ(t) ? /*#__PURE__*/ R.createElement(LQ, {
+ return t ? t === !0 ? /*#__PURE__*/ L.createElement(LQ, { key: "labelList-implicit" }) : /*#__PURE__*/ L.isValidElement(t) || DQ(t) ? /*#__PURE__*/ L.createElement(LQ, {
key: "labelList-implicit",
content: t
- }) : typeof t == "object" ? /*#__PURE__*/ R.createElement(LQ, MQ({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
+ }) : typeof t == "object" ? /*#__PURE__*/ L.createElement(LQ, MQ({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
@@ -62074,23 +62077,23 @@ var BQ = (e) => e != null && e.x === +e.x && e.y === +e.y, Pke = function() {
}, HQ = (e) => {
var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = jke(e, kke);
if (!t || !t.length) return null;
- var o = ja("recharts-polygon", n);
+ var o = Ma("recharts-polygon", n);
if (r && r.length) {
var s = a.stroke && a.stroke !== "none", c = Fke(t, r, i);
- return /*#__PURE__*/ R.createElement("g", { className: o }, /*#__PURE__*/ R.createElement("path", zQ({}, xI(a), {
+ return /*#__PURE__*/ L.createElement("g", { className: o }, /*#__PURE__*/ L.createElement("path", zQ({}, xI(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ R.createElement("path", zQ({}, xI(a), {
+ })), s ? /*#__PURE__*/ L.createElement("path", zQ({}, xI(a), {
fill: "none",
d: VQ(t, i)
- })) : null, s ? /*#__PURE__*/ R.createElement("path", zQ({}, xI(a), {
+ })) : null, s ? /*#__PURE__*/ L.createElement("path", zQ({}, xI(a), {
fill: "none",
d: VQ(r, i)
})) : null);
}
var l = VQ(t, i);
- return /*#__PURE__*/ R.createElement("path", zQ({}, xI(a), {
+ return /*#__PURE__*/ L.createElement("path", zQ({}, xI(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -62108,8 +62111,8 @@ function UQ() {
}, UQ.apply(null, arguments);
}
var WQ = (e) => {
- var { cx: t, cy: n, r, className: i } = e, a = ja("recharts-dot", i);
- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ R.createElement("circle", UQ({}, yI(e), KL(e), {
+ var { cx: t, cy: n, r, className: i } = e, a = Ma("recharts-dot", i);
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ L.createElement("circle", UQ({}, yI(e), KL(e), {
className: a,
cx: t,
cy: n,
@@ -62315,9 +62318,9 @@ var qke = (e, t, n, r) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
var s = a$({ stroke: "#ccc" }, yI(e));
- return /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
+ return /*#__PURE__*/ L.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
var a = jW(t, n, r, e), o = jW(t, n, i, e);
- return /*#__PURE__*/ R.createElement("line", r$({ key: `line-${e}` }, s, {
+ return /*#__PURE__*/ L.createElement("line", r$({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
x2: o.x,
@@ -62329,8 +62332,8 @@ var qke = (e, t, n, r) => {
stroke: "#ccc",
fill: "none"
}, yI(e));
- return /*#__PURE__*/ R.createElement("circle", r$({}, i, {
- className: ja("recharts-polar-grid-concentric-circle", e.className),
+ return /*#__PURE__*/ L.createElement("circle", r$({}, i, {
+ className: Ma("recharts-polar-grid-concentric-circle", e.className),
cx: t,
cy: n,
r
@@ -62340,20 +62343,20 @@ var qke = (e, t, n, r) => {
stroke: "#ccc",
fill: "none"
}, yI(e));
- return /*#__PURE__*/ R.createElement("path", r$({}, n, {
- className: ja("recharts-polar-grid-concentric-polygon", e.className),
+ return /*#__PURE__*/ L.createElement("path", r$({}, n, {
+ className: Ma("recharts-polar-grid-concentric-polygon", e.className),
d: qke(t, e.cx, e.cy, e.polarAngles)
}));
}, Yke = (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(o$, r$({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ R.createElement(s$, r$({}, e, { radius: r })), t.map((t, r) => {
+ return /*#__PURE__*/ L.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ L.createElement(o$, r$({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ L.createElement(s$, r$({}, e, { radius: r })), t.map((t, r) => {
var i = r;
- return n === "circle" ? /*#__PURE__*/ R.createElement(o$, r$({ key: i }, e, {
+ return n === "circle" ? /*#__PURE__*/ L.createElement(o$, r$({ key: i }, e, {
fill: "none",
radius: t
- })) : /*#__PURE__*/ R.createElement(s$, r$({ key: i }, e, {
+ })) : /*#__PURE__*/ L.createElement(s$, r$({ key: i }, e, {
fill: "none",
radius: t
}));
@@ -62376,13 +62379,13 @@ var qke = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ R.createElement(DZ, { zIndex: y.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ R.createElement(Yke, r$({
+ return b <= 0 ? null : /*#__PURE__*/ L.createElement(DZ, { zIndex: y.zIndex }, /*#__PURE__*/ L.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ L.createElement(Yke, r$({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ R.createElement(Jke, r$({
+ })), /*#__PURE__*/ L.createElement(Jke, r$({
gridType: n,
radialLines: r
}, y, {
@@ -62535,11 +62538,11 @@ function uAe(e, t) {
}
var dAe = "radiusAxis";
function fAe(e) {
- var t = SR(), n = EH(), r = (0, R.useMemo)(() => {
+ var t = SR(), n = EH(), r = (0, L.useMemo)(() => {
var { type: t } = e, r = h$(e, iAe), i = gG(n, "radiusAxis", t);
if (i != null) return m$(m$({}, r), {}, { type: i });
}, [e, n]);
- return (0, R.useEffect)(() => r == null ? zL : (t($ke(r)), () => {
+ return (0, L.useEffect)(() => r == null ? zL : (t($ke(r)), () => {
t(eAe(r));
}), [t, r]), null;
}
@@ -62576,8 +62579,8 @@ var pAe = (e, t, n, r) => {
x2: l.x,
y2: l.y
});
- return /*#__PURE__*/ R.createElement("line", f$({ className: "recharts-polar-radius-axis-line" }, u));
-}, _Ae = (e, t, n) => /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ R.createElement(hQ, f$({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), vAe = (e, t) => {
+ return /*#__PURE__*/ L.createElement("line", f$({ className: "recharts-polar-radius-axis-line" }, u));
+}, _Ae = (e, t, n) => /*#__PURE__*/ L.isValidElement(e) ? /*#__PURE__*/ L.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ L.createElement(hQ, f$({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), vAe = (e, t) => {
var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = h$(e, oAe), s = mAe(e.orientation), c = yI(o), l = bI(a), u = t.map((t, o) => {
var u = pAe(t, e.angle, e.cx, e.cy), d = m$(m$(m$(m$({
textAnchor: s,
@@ -62586,21 +62589,21 @@ var pAe = (e, t, n, r) => {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ R.createElement(TI, f$({
- className: ja("recharts-polar-radius-axis-tick", d$(a)),
+ return /*#__PURE__*/ L.createElement(TI, f$({
+ className: Ma("recharts-polar-radius-axis-tick", d$(a)),
key: `tick-${t.coordinate}`
}, qL(e, t, o)), _Ae(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ R.createElement(TI, { className: "recharts-polar-radius-axis-ticks" }, u);
+ return /*#__PURE__*/ L.createElement(TI, { className: "recharts-polar-radius-axis-ticks" }, u);
}, yAe = (e) => {
var { radiusAxisId: t } = e, n = Q(kG), r = Q((e) => e$(e, "radiusAxis", t)), i = Q((e) => n$(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
var a = m$(m$({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ R.createElement(DZ, { zIndex: a.zIndex }, /*#__PURE__*/ R.createElement(TI, { className: ja("recharts-polar-radius-axis", dAe, a.className) }, s && gAe(a, i), o && vAe(a, i), /*#__PURE__*/ R.createElement(mke, hAe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ R.createElement(xke, { label: a.label }), a.children)));
+ return /*#__PURE__*/ L.createElement(DZ, { zIndex: a.zIndex }, /*#__PURE__*/ L.createElement(TI, { className: Ma("recharts-polar-radius-axis", dAe, a.className) }, s && gAe(a, i), o && vAe(a, i), /*#__PURE__*/ L.createElement(mke, hAe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ L.createElement(xke, { label: a.label }), a.children)));
};
function g$(e) {
var t = YL(e, mG);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(fAe, {
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(fAe, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -62617,7 +62620,7 @@ function g$(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ R.createElement(yAe, t));
+ }), /*#__PURE__*/ L.createElement(yAe, t));
}
g$.displayName = "PolarRadiusAxis";
//#endregion
@@ -62695,11 +62698,11 @@ function TAe(e, t) {
}
var x$ = 1e-5, EAe = Math.cos(AW(45)), DAe = "angleAxis";
function OAe(e) {
- var t = SR(), n = EH(), r = (0, R.useMemo)(() => {
+ var t = SR(), n = EH(), r = (0, L.useMemo)(() => {
var { children: t, type: r } = e, i = b$(e, bAe), a = gG(n, "angleAxis", r);
if (a != null) return y$(y$({}, i), {}, { type: a });
}, [e, n]), i = r === Q((e) => xG(e, r?.id));
- return (0, R.useEffect)(() => r == null ? zL : (t(tAe(r)), () => {
+ return (0, L.useEffect)(() => r == null ? zL : (t(tAe(r)), () => {
t(nAe(r));
}), [t, r]), i ? e.children : null;
}
@@ -62721,16 +62724,16 @@ var kAe = (e, t) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
var s = y$(y$({}, yI(e)), {}, { fill: "none" }, yI(a));
- if (i === "circle") return /*#__PURE__*/ R.createElement(WQ, _$({ className: "recharts-polar-angle-axis-line" }, s, {
+ if (i === "circle") return /*#__PURE__*/ L.createElement(WQ, _$({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
var c = o.map((e) => jW(t, n, r, e.coordinate));
- return /*#__PURE__*/ R.createElement(HQ, _$({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
+ return /*#__PURE__*/ L.createElement(HQ, _$({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
}, NAe = (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(hQ, _$({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
+ return t ? /*#__PURE__*/ L.isValidElement(t) ? /*#__PURE__*/ L.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ L.createElement(hQ, _$({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
}, PAe = (e) => {
var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = yI(e), { ref: s } = o, c = b$(o, xAe), l = bI(t), u = y$(y$({}, c), {}, { fill: "none" }, yI(n)), d = a.map((a, o) => {
var s = kAe(a, e), d = AAe(a, e.orientation), f = jAe(a), p = y$(y$(y$({}, c), {}, {
@@ -62744,16 +62747,16 @@ var kAe = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ R.createElement(TI, _$({
- className: ja("recharts-polar-angle-axis-tick", d$(t)),
+ return /*#__PURE__*/ L.createElement(TI, _$({
+ className: Ma("recharts-polar-angle-axis-tick", d$(t)),
key: `tick-${a.coordinate}`
- }, qL(e, a, o)), n && /*#__PURE__*/ R.createElement("line", _$({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ R.createElement(NAe, {
+ }, qL(e, a, o)), n && /*#__PURE__*/ L.createElement("line", _$({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ L.createElement(NAe, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ R.createElement(TI, { className: "recharts-polar-angle-axis-ticks" }, d);
+ return /*#__PURE__*/ L.createElement(TI, { className: "recharts-polar-angle-axis-ticks" }, d);
}, FAe = (e) => {
var { angleAxisId: t } = e, n = Q(kG), r = Q((e) => e$(e, "angleAxis", t)), i = HV(), a = Q((e) => Lke(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
@@ -62761,11 +62764,11 @@ var kAe = (e, t) => {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ R.createElement(DZ, { zIndex: o.zIndex }, /*#__PURE__*/ R.createElement(TI, { className: ja("recharts-polar-angle-axis", DAe, o.className) }, /*#__PURE__*/ R.createElement(MAe, o), /*#__PURE__*/ R.createElement(PAe, o)));
+ return /*#__PURE__*/ L.createElement(DZ, { zIndex: o.zIndex }, /*#__PURE__*/ L.createElement(TI, { className: Ma("recharts-polar-angle-axis", DAe, o.className) }, /*#__PURE__*/ L.createElement(MAe, o), /*#__PURE__*/ L.createElement(PAe, o)));
};
function S$(e) {
var t = YL(e, pG);
- return /*#__PURE__*/ R.createElement(OAe, {
+ return /*#__PURE__*/ L.createElement(OAe, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -62782,12 +62785,12 @@ function S$(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ R.createElement(FAe, t));
+ }, /*#__PURE__*/ L.createElement(FAe, t));
}
S$.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var IAe = /* @__PURE__ */ Ee(((e) => {
+var IAe = /* @__PURE__ */ De(((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) {
@@ -62816,12 +62819,12 @@ var IAe = /* @__PURE__ */ Ee(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), LAe = (/* @__PURE__ */ Ee(((e, t) => {
+})), LAe = (/* @__PURE__ */ De(((e, t) => {
t.exports = IAe();
})))(), C$ = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", w$ = null, T$ = null, E$ = (e) => {
if (e === w$ && Array.isArray(T$)) return T$;
var t = [];
- return R.Children.forEach(e, (e) => {
+ return L.Children.forEach(e, (e) => {
IL(e) || ((0, LAe.isFragment)(e) ? t = t.concat(E$(e.props.children)) : t.push(e));
}), T$ = t, w$ = e, t;
};
@@ -62938,20 +62941,20 @@ var N$ = (e, t, n, r, i) => {
animationDuration: 1500,
animationEasing: "ease"
}, JAe = (e) => {
- var t = YL(e, qAe), { 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 = vW(e, "trapezoid-");
- if ((0, R.useEffect)(() => {
+ var t = YL(e, qAe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, L.useRef)(null), [p, m] = (0, L.useState)(-1), h = (0, L.useRef)(i), g = (0, L.useRef)(a), _ = (0, L.useRef)(o), v = (0, L.useRef)(n), y = (0, L.useRef)(r), b = vW(e, "trapezoid-");
+ if ((0, L.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
e && m(e);
} catch {}
}, []), n !== +n || r !== +r || i !== +i || a !== +a || o !== +o || i === 0 && a === 0 || o === 0) return null;
- var x = ja("recharts-trapezoid", s);
- if (!d) return /*#__PURE__*/ R.createElement("g", null, /*#__PURE__*/ R.createElement("path", j$({}, xI(t), {
+ var x = Ma("recharts-trapezoid", s);
+ if (!d) return /*#__PURE__*/ L.createElement("g", null, /*#__PURE__*/ L.createElement("path", j$({}, xI(t), {
className: x,
d: N$(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 = iW(["strokeDasharray"], l, c);
- return /*#__PURE__*/ R.createElement(_W, {
+ return /*#__PURE__*/ L.createElement(_W, {
animationId: b,
key: b,
canBegin: p > 0,
@@ -62966,7 +62969,7 @@ var N$ = (e, t, n, r, i) => {
transition: k,
strokeDasharray: O
} : { strokeDasharray: D };
- return /*#__PURE__*/ R.createElement("path", j$({}, xI(t), {
+ return /*#__PURE__*/ L.createElement("path", j$({}, xI(t), {
className: x,
d: N$(u, d, s, c, l),
ref: f,
@@ -63049,37 +63052,37 @@ function nje(e, t) {
function I$(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
- case "rectangle": return /*#__PURE__*/ R.createElement(EW, n);
- case "trapezoid": return /*#__PURE__*/ R.createElement(JAe, n);
- case "sector": return /*#__PURE__*/ R.createElement(LW, n);
+ case "rectangle": return /*#__PURE__*/ L.createElement(EW, n);
+ case "trapezoid": return /*#__PURE__*/ L.createElement(JAe, n);
+ case "sector": return /*#__PURE__*/ L.createElement(LW, n);
case "symbols":
- if (nje(t, n)) return /*#__PURE__*/ R.createElement(WL, n);
+ if (nje(t, n)) return /*#__PURE__*/ L.createElement(WL, n);
break;
- case "curve": return /*#__PURE__*/ R.createElement($U, n);
+ case "curve": return /*#__PURE__*/ L.createElement($U, n);
default: return null;
}
}
function rje(e) {
- return /*#__PURE__*/ (0, R.isValidElement)(e) ? e.props : e;
+ return /*#__PURE__*/ (0, L.isValidElement)(e) ? e.props : e;
}
function L$(e) {
var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = XAe(e, YAe), o;
- if (/*#__PURE__*/ (0, R.isValidElement)(t)) o = /*#__PURE__*/ (0, R.cloneElement)(t, F$(F$({}, a), rje(t)));
+ if (/*#__PURE__*/ (0, L.isValidElement)(t)) o = /*#__PURE__*/ (0, L.cloneElement)(t, F$(F$({}, a), rje(t)));
else if (typeof t == "function") o = t(a, a.index);
else if (RAe(t) && typeof t != "boolean") {
var s = tje(t, a);
- o = /*#__PURE__*/ R.createElement(I$, {
+ o = /*#__PURE__*/ L.createElement(I$, {
shapeType: n,
elementProps: s
});
} else {
var c = a;
- o = /*#__PURE__*/ R.createElement(I$, {
+ o = /*#__PURE__*/ L.createElement(I$, {
shapeType: n,
elementProps: c
});
}
- return a.isActive ? /*#__PURE__*/ R.createElement(TI, { className: r }, o) : /*#__PURE__*/ R.createElement(TI, { className: i }, o);
+ return a.isActive ? /*#__PURE__*/ L.createElement(TI, { className: r }, o) : /*#__PURE__*/ L.createElement(TI, { className: i }, o);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
@@ -63112,8 +63115,8 @@ var R$ = (e, t, n) => {
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
function V$(e) {
- var { tooltipEntrySettings: t } = e, n = SR(), r = HV(), i = (0, R.useRef)(null);
- return (0, R.useLayoutEffect)(() => {
+ var { tooltipEntrySettings: t } = e, n = SR(), r = HV(), i = (0, L.useRef)(null);
+ return (0, L.useLayoutEffect)(() => {
r || (i.current === null ? n(REe(t)) : i.current !== t && n(zEe({
prev: i.current,
next: t
@@ -63122,15 +63125,15 @@ function V$(e) {
t,
n,
r
- ]), (0, R.useLayoutEffect)(() => () => {
+ ]), (0, L.useLayoutEffect)(() => () => {
i.current &&= (n(BEe(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
function H$(e) {
- var { legendPayload: t } = e, n = SR(), r = HV(), i = (0, R.useRef)(null);
- return (0, R.useLayoutEffect)(() => {
+ var { legendPayload: t } = e, n = SR(), r = HV(), i = (0, L.useRef)(null);
+ return (0, L.useLayoutEffect)(() => {
r || (i.current === null ? n(CU(t)) : i.current !== t && n(wU({
prev: i.current,
next: t
@@ -63139,13 +63142,13 @@ function H$(e) {
n,
r,
t
- ]), (0, R.useLayoutEffect)(() => () => {
+ ]), (0, L.useLayoutEffect)(() => () => {
i.current &&= (n(TU(i.current)), null);
}, [n]), null;
}
function U$(e) {
- var { legendPayload: t } = e, n = SR(), r = Q(SH), i = (0, R.useRef)(null);
- return (0, R.useLayoutEffect)(() => {
+ var { legendPayload: t } = e, n = SR(), r = Q(SH), i = (0, L.useRef)(null);
+ return (0, L.useLayoutEffect)(() => {
(r === "centric" || r === "radial") && (i.current === null ? n(CU(t)) : i.current !== t && n(wU({
prev: i.current,
next: t
@@ -63154,14 +63157,14 @@ function U$(e) {
n,
r,
t
- ]), (0, R.useLayoutEffect)(() => () => {
+ ]), (0, L.useLayoutEffect)(() => () => {
i.current &&= (n(TU(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var ije = R.useId ?? (() => {
- var [e] = R.useState(() => jL("uid-"));
+var ije = L.useId ?? (() => {
+ var [e] = L.useState(() => jL("uid-"));
return e;
});
//#endregion
@@ -63172,9 +63175,9 @@ function aje(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var oje = /*#__PURE__*/ (0, R.createContext)(void 0), W$ = (e) => {
+var oje = /*#__PURE__*/ (0, L.createContext)(void 0), W$ = (e) => {
var { id: t, type: n, children: r } = e, i = aje(`recharts-${n}`, t);
- return /*#__PURE__*/ R.createElement(oje.Provider, { value: i }, r(i));
+ return /*#__PURE__*/ L.createElement(oje.Provider, { value: i }, r(i));
}, G$ = sB({
name: "graphicalItems",
initialState: {
@@ -63223,24 +63226,24 @@ var oje = /*#__PURE__*/ (0, R.createContext)(void 0), W$ = (e) => {
prepare: rB()
}
}
-}), { addCartesianGraphicalItem: sje, replaceCartesianGraphicalItem: cje, removeCartesianGraphicalItem: lje, addPolarGraphicalItem: uje, removePolarGraphicalItem: dje, replacePolarGraphicalItem: fje } = G$.actions, pje = G$.reducer, K$ = /*#__PURE__*/ (0, R.memo)((e) => {
- var t = SR(), n = (0, R.useRef)(null);
- return (0, R.useLayoutEffect)(() => {
+}), { addCartesianGraphicalItem: sje, replaceCartesianGraphicalItem: cje, removeCartesianGraphicalItem: lje, addPolarGraphicalItem: uje, removePolarGraphicalItem: dje, replacePolarGraphicalItem: fje } = G$.actions, pje = G$.reducer, K$ = /*#__PURE__*/ (0, L.memo)((e) => {
+ var t = SR(), n = (0, L.useRef)(null);
+ return (0, L.useLayoutEffect)(() => {
n.current === null ? t(sje(e)) : n.current !== e && t(cje({
prev: n.current,
next: e
})), n.current = e;
- }, [t, e]), (0, R.useLayoutEffect)(() => () => {
+ }, [t, e]), (0, L.useLayoutEffect)(() => () => {
n.current &&= (t(lje(n.current)), null);
}, [t]), null;
-}), q$ = /*#__PURE__*/ (0, R.memo)((e) => {
- var t = SR(), n = (0, R.useRef)(null);
- return (0, R.useLayoutEffect)(() => {
+}), q$ = /*#__PURE__*/ (0, L.memo)((e) => {
+ var t = SR(), n = (0, L.useRef)(null);
+ return (0, L.useLayoutEffect)(() => {
n.current === null ? t(uje(e)) : n.current !== e && t(fje({
prev: n.current,
next: e
})), n.current = e;
- }, [t, e]), (0, R.useLayoutEffect)(() => () => {
+ }, [t, e]), (0, L.useLayoutEffect)(() => () => {
n.current &&= (t(dje(n.current)), null);
}, [t]), null;
});
@@ -63329,10 +63332,10 @@ function xje(e, t) {
}
function Sje(e) {
var { option: t, dotProps: n, className: r } = e;
- if (/*#__PURE__*/ (0, R.isValidElement)(t)) return /*#__PURE__*/ (0, R.cloneElement)(t, n);
+ if (/*#__PURE__*/ (0, L.isValidElement)(t)) return /*#__PURE__*/ (0, L.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = ja(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = bje(a, gje);
- return /*#__PURE__*/ R.createElement(WQ, X$({}, s, { className: i }));
+ var i = Ma(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = bje(a, gje);
+ return /*#__PURE__*/ L.createElement(WQ, X$({}, s, { className: i }));
}
function Cje(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
@@ -63350,14 +63353,14 @@ function Z$(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ R.createElement(Sje, {
+ return /*#__PURE__*/ L.createElement(Sje, {
key: `dot-${r}`,
option: n,
dotProps: s,
className: i
});
}), p = {};
- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ R.createElement(DZ, { zIndex: l }, /*#__PURE__*/ R.createElement(TI, X$({ className: r }, p), f));
+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ L.createElement(DZ, { zIndex: l }, /*#__PURE__*/ L.createElement(TI, X$({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
@@ -63558,8 +63561,8 @@ var Uje = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), bI(i)), KL(i)), c = /*#__PURE__*/ (0, R.isValidElement)(i) ? /*#__PURE__*/ (0, R.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ R.createElement(WQ, s);
- return /*#__PURE__*/ R.createElement(TI, {
+ }), bI(i)), KL(i)), c = /*#__PURE__*/ (0, L.isValidElement)(i) ? /*#__PURE__*/ (0, L.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ L.createElement(WQ, s);
+ return /*#__PURE__*/ L.createElement(TI, {
className: "recharts-active-dot",
clipPath: o
}, c);
@@ -63568,7 +63571,7 @@ function i1(e) {
var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = fG.activeDot } = e, s = Q(oZ), c = zje();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return IL(l) ? null : /*#__PURE__*/ R.createElement(DZ, { zIndex: o }, /*#__PURE__*/ R.createElement(Uje, {
+ return IL(l) ? null : /*#__PURE__*/ L.createElement(DZ, { zIndex: o }, /*#__PURE__*/ L.createElement(Uje, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -63747,7 +63750,7 @@ var cMe = (e) => {
value: vV(n, t),
payload: e
}];
-}, lMe = /*#__PURE__*/ R.memo((e) => {
+}, lMe = /*#__PURE__*/ L.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: zL,
@@ -63765,11 +63768,11 @@ var cMe = (e) => {
graphicalItemId: c
}
};
- return /*#__PURE__*/ R.createElement(V$, { tooltipEntrySettings: l });
+ return /*#__PURE__*/ L.createElement(V$, { tooltipEntrySettings: l });
});
function uMe(e) {
var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = yI(oMe(n, nMe));
- return /*#__PURE__*/ R.createElement(Z$, {
+ return /*#__PURE__*/ L.createElement(Z$, {
points: t,
dot: r,
className: "recharts-radar-dots",
@@ -63822,12 +63825,12 @@ function fMe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ R.createElement(FQ, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ L.createElement(FQ, { value: t ? i : void 0 }, r);
}
function pMe(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, f1(f1({}, r), {}, { points: t })) : typeof i == "function" ? i(f1(f1({}, r), {}, { points: t })) : /*#__PURE__*/ R.createElement(HQ, u1({}, xI(r), {
+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ L.isValidElement(i) ? /*#__PURE__*/ L.cloneElement(i, f1(f1({}, r), {}, { points: t })) : typeof i == "function" ? i(f1(f1({}, r), {}, { points: t })) : /*#__PURE__*/ L.createElement(HQ, u1({}, xI(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -63840,7 +63843,7 @@ function pMe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ R.createElement(TI, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ R.createElement(uMe, {
+ return /*#__PURE__*/ L.createElement(TI, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ L.createElement(uMe, {
props: r,
points: t
}));
@@ -63856,15 +63859,15 @@ var m1 = (e, t, n) => (r, i) => {
});
};
function mMe(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 = vW(t, "recharts-radar-"), [_, v] = (0, R.useState)(!1), y = !_, b = (0, R.useCallback)(() => {
+ 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 = vW(t, "recharts-radar-"), [_, v] = (0, L.useState)(!1), y = !_, b = (0, L.useCallback)(() => {
typeof u == "function" && u(), v(!1);
- }, [u]), x = (0, R.useCallback)(() => {
+ }, [u]), x = (0, L.useCallback)(() => {
typeof d == "function" && d(), v(!0);
}, [d]);
- return /*#__PURE__*/ R.createElement(fMe, {
+ return /*#__PURE__*/ L.createElement(fMe, {
showLabels: y,
points: i
- }, /*#__PURE__*/ R.createElement(_W, {
+ }, /*#__PURE__*/ L.createElement(_W, {
animationId: g,
begin: s,
duration: c,
@@ -63875,16 +63878,16 @@ function mMe(e) {
onAnimationStart: x
}, (e) => {
var o = e === 1 ? i : i.map(m1(f, m, e)), s = e === 1 ? a : a?.map(m1(p, h, e));
- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ R.createElement(pMe, {
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ L.createElement(pMe, {
points: o,
baseLinePoints: s,
props: t
});
- }), /*#__PURE__*/ R.createElement(RQ, { label: t.label }), t.children);
+ }), /*#__PURE__*/ L.createElement(RQ, { label: t.label }), t.children);
}
function hMe(e) {
- var t = (0, R.useRef)(void 0), n = (0, R.useRef)(void 0);
- return /*#__PURE__*/ R.createElement(mMe, {
+ var t = (0, L.useRef)(void 0), n = (0, L.useRef)(void 0);
+ return /*#__PURE__*/ L.createElement(mMe, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
@@ -63907,8 +63910,8 @@ var gMe = {
function _Me(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
- var i = ja("recharts-radar", n);
- return /*#__PURE__*/ R.createElement(DZ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(TI, { className: i }, /*#__PURE__*/ R.createElement(hMe, e)), /*#__PURE__*/ R.createElement(i1, {
+ var i = Ma("recharts-radar", n);
+ return /*#__PURE__*/ L.createElement(DZ, { zIndex: e.zIndex }, /*#__PURE__*/ L.createElement(TI, { className: i }, /*#__PURE__*/ L.createElement(hMe, e)), /*#__PURE__*/ L.createElement(i1, {
points: r,
mainColor: p1(e.stroke, e.fill),
itemDataKey: e.dataKey,
@@ -63917,7 +63920,7 @@ function _Me(e) {
}
function vMe(e) {
var t = HV(), n = Q((n) => tMe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ R.createElement(_Me, u1({}, e, {
+ return n?.points == null ? null : /*#__PURE__*/ L.createElement(_Me, u1({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
@@ -63925,10 +63928,10 @@ function vMe(e) {
}
function h1(e) {
var t = YL(e, gMe);
- return /*#__PURE__*/ R.createElement(W$, {
+ return /*#__PURE__*/ L.createElement(W$, {
id: t.id,
type: "radar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(q$, {
+ }, (e) => /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(q$, {
type: "radar",
id: e,
data: void 0,
@@ -63936,7 +63939,7 @@ function h1(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ R.createElement(U$, { legendPayload: cMe(t) }), /*#__PURE__*/ R.createElement(lMe, {
+ }), /*#__PURE__*/ L.createElement(U$, { legendPayload: cMe(t) }), /*#__PURE__*/ L.createElement(lMe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -63945,7 +63948,7 @@ function h1(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(vMe, u1({}, t, { id: e }))));
+ }), /*#__PURE__*/ L.createElement(vMe, u1({}, t, { id: e }))));
}
h1.displayName = "Radar";
//#endregion
@@ -63963,7 +63966,7 @@ function _1(e) {
return typeof e == "string" ? parseInt(e, 10) : e;
}
function v1(e) {
- return /*#__PURE__*/ R.createElement(L$, g1({ shapeType: "sector" }, e));
+ return /*#__PURE__*/ L.createElement(L$, g1({ shapeType: "sector" }, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
@@ -64350,11 +64353,11 @@ function BMe(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ R.createElement(Eke, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ L.createElement(Eke, { value: t ? i : void 0 }, r);
}
function VMe(e) {
var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = H1(n, NMe), l = yI(c), u = Q(oZ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = H1(n, PMe), h = R$(d, n.dataKey, s), g = z$(p), _ = B$(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ R.createElement(BMe, {
+ return t == null ? null : /*#__PURE__*/ L.createElement(BMe, {
showLabels: r,
sectors: t
}, t.map((e, t) => {
@@ -64369,19 +64372,19 @@ function VMe(e) {
option: n ? a : i,
index: t
});
- return n ? /*#__PURE__*/ R.createElement(DZ, {
+ return n ? /*#__PURE__*/ L.createElement(DZ, {
zIndex: fG.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
- }, /*#__PURE__*/ R.createElement(v1, f)) : /*#__PURE__*/ R.createElement(v1, z1({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
- }), /*#__PURE__*/ R.createElement(RQ, { label: n.label }), n.children);
+ }, /*#__PURE__*/ L.createElement(v1, f)) : /*#__PURE__*/ L.createElement(v1, z1({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
+ }), /*#__PURE__*/ L.createElement(RQ, { label: n.label }), n.children);
}
function HMe(e) {
- var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = vW(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, R.useState)(!1), m = (0, R.useCallback)(() => {
+ var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = vW(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, L.useState)(!1), m = (0, L.useCallback)(() => {
typeof c == "function" && c(), p(!1);
- }, [c]), h = (0, R.useCallback)(() => {
+ }, [c]), h = (0, L.useCallback)(() => {
typeof l == "function" && l(), p(!0);
}, [l]);
- return /*#__PURE__*/ R.createElement(_W, {
+ return /*#__PURE__*/ L.createElement(_W, {
animationId: u,
begin: a,
duration: o,
@@ -64400,7 +64403,7 @@ function HMe(e) {
var { endAngle: i, startAngle: a } = t;
return V1(V1({}, t), {}, { endAngle: PL(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ R.createElement(VMe, {
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ L.createElement(VMe, {
sectors: i ?? U1,
allOtherRadialBarProps: t,
showLabels: !f
@@ -64408,17 +64411,17 @@ function HMe(e) {
});
}
function UMe(e) {
- var t = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(HMe, {
+ var t = (0, L.useRef)(null);
+ return /*#__PURE__*/ L.createElement(HMe, {
props: e,
previousSectorsRef: t
});
}
function WMe(e) {
var t = Q((t) => MMe(t, e.legendType));
- return /*#__PURE__*/ R.createElement(U$, { legendPayload: t ?? [] });
+ return /*#__PURE__*/ L.createElement(U$, { legendPayload: t ?? [] });
}
-var GMe = /*#__PURE__*/ R.memo((e) => {
+var GMe = /*#__PURE__*/ L.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: zL,
@@ -64436,32 +64439,32 @@ var GMe = /*#__PURE__*/ R.memo((e) => {
unit: ""
}
};
- return /*#__PURE__*/ R.createElement(V$, { tooltipEntrySettings: u });
-}), KMe = class extends R.PureComponent {
+ return /*#__PURE__*/ L.createElement(V$, { tooltipEntrySettings: u });
+}), KMe = class extends L.PureComponent {
renderBackground(e) {
if (e == null) return null;
var { cornerRadius: t } = this.props, n = bI(this.props.background);
- return /*#__PURE__*/ R.createElement(DZ, { zIndex: R1(this.props.background, fG.barBackground) }, e.map((e, r) => {
+ return /*#__PURE__*/ L.createElement(DZ, { zIndex: R1(this.props.background, fG.barBackground) }, e.map((e, r) => {
var { value: i, background: a } = e, o = H1(e, FMe);
if (!a) return null;
var s = V1(V1(V1(V1(V1({ cornerRadius: _1(t) }, o), {}, { fill: "#eee" }, a), n), qL(this.props, e, r)), {}, {
index: r,
- className: ja("recharts-radial-bar-background-sector", String(n?.className)),
+ className: Ma("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
isActive: !1
});
- return /*#__PURE__*/ R.createElement(v1, z1({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
+ return /*#__PURE__*/ L.createElement(v1, z1({ 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 = ja("recharts-area", n);
- return /*#__PURE__*/ R.createElement(DZ, { zIndex: this.props.zIndex }, /*#__PURE__*/ R.createElement(TI, { className: i }, r && /*#__PURE__*/ R.createElement(TI, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ R.createElement(TI, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ R.createElement(UMe, this.props))));
+ var i = Ma("recharts-area", n);
+ return /*#__PURE__*/ L.createElement(DZ, { zIndex: this.props.zIndex }, /*#__PURE__*/ L.createElement(TI, { className: i }, r && /*#__PURE__*/ L.createElement(TI, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ L.createElement(TI, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ L.createElement(UMe, this.props))));
}
};
function qMe(e) {
- var t = R.useMemo(() => D$(e.children, WZ), [e.children]), n = R.useMemo(() => ({
+ var t = L.useMemo(() => D$(e.children, WZ), [e.children]), n = L.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
@@ -64483,7 +64486,7 @@ function qMe(e) {
e.angleAxisId,
e.radiusAxisId
]), r = Q((r) => jMe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? U1;
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(GMe, {
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(GMe, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -64493,7 +64496,7 @@ function qMe(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ R.createElement(KMe, z1({}, e, { sectors: r })));
+ }), /*#__PURE__*/ L.createElement(KMe, z1({}, e, { sectors: r })));
}
var W1 = {
angleAxisId: 0,
@@ -64569,10 +64572,10 @@ function JMe(e) {
}
function G1(e) {
var t = YL(e, W1);
- return /*#__PURE__*/ R.createElement(W$, {
+ return /*#__PURE__*/ L.createElement(W$, {
id: t.id,
type: "radialBar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(q$, {
+ }, (e) => /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(q$, {
type: "radialBar",
id: e,
data: void 0,
@@ -64584,14 +64587,14 @@ function G1(e) {
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ R.createElement(WMe, t), /*#__PURE__*/ R.createElement(qMe, z1({}, t, { id: e }))));
+ }), /*#__PURE__*/ L.createElement(WMe, t), /*#__PURE__*/ L.createElement(qMe, z1({}, t, { id: e }))));
}
G1.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
var K1 = (e) => {
var { chartData: t } = e, n = SR(), r = HV();
- return (0, R.useEffect)(() => r ? () => {} : (n(RZ(t)), () => {
+ return (0, L.useEffect)(() => r ? () => {} : (n(RZ(t)), () => {
n(RZ(void 0));
}), [
t,
@@ -64669,17 +64672,17 @@ var eNe = function(e) {
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: tNe, removeDot: nNe, addArea: rNe, removeArea: iNe, addLine: aNe, removeLine: oNe } = Y1.actions, sNe = Y1.reducer, X1 = /*#__PURE__*/ (0, R.createContext)(void 0), cNe = (e) => {
- var { children: t } = e, [n] = (0, R.useState)(`${jL("recharts")}-clip`), r = t1();
+}), { addDot: tNe, removeDot: nNe, addArea: rNe, removeArea: iNe, addLine: aNe, removeLine: oNe } = Y1.actions, sNe = Y1.reducer, X1 = /*#__PURE__*/ (0, L.createContext)(void 0), cNe = (e) => {
+ var { children: t } = e, [n] = (0, L.useState)(`${jL("recharts")}-clip`), r = t1();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
- return /*#__PURE__*/ R.createElement(X1.Provider, { value: n }, /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: n }, /*#__PURE__*/ R.createElement("rect", {
+ return /*#__PURE__*/ L.createElement(X1.Provider, { value: n }, /*#__PURE__*/ L.createElement("defs", null, /*#__PURE__*/ L.createElement("clipPath", { id: n }, /*#__PURE__*/ L.createElement("rect", {
x: i,
y: a,
height: s,
width: o
}))), t);
-}, lNe = () => (0, R.useContext)(X1), uNe = class {
+}, lNe = () => (0, L.useContext)(X1), uNe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -64759,11 +64762,11 @@ function $1() {
}
var mNe = (e, t) => {
var n;
- if (/*#__PURE__*/ R.isValidElement(e)) n = /*#__PURE__*/ R.cloneElement(e, t);
+ if (/*#__PURE__*/ L.isValidElement(e)) n = /*#__PURE__*/ L.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
if (!KB(t.x1) || !KB(t.y1) || !KB(t.x2) || !KB(t.y2)) return null;
- n = /*#__PURE__*/ R.createElement("line", $1({}, t, { className: "recharts-reference-line-line" }));
+ n = /*#__PURE__*/ L.createElement("line", $1({}, t, { className: "recharts-reference-line-line" }));
}
return n;
}, hNe = (e, t, n, r, i, a) => {
@@ -64806,7 +64809,7 @@ var mNe = (e, t) => {
};
function yNe(e) {
var t = SR();
- return (0, R.useEffect)(() => (t(aNe(e)), () => {
+ return (0, L.useEffect)(() => (t(aNe(e)), () => {
t(oNe(e));
})), null;
}
@@ -64828,10 +64831,10 @@ function bNe(e) {
x2: v,
y2: y
});
- return /*#__PURE__*/ R.createElement(DZ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(TI, { className: ja("recharts-reference-line", i) }, mNe(r, b), /*#__PURE__*/ R.createElement(CQ, $1({}, x, {
+ return /*#__PURE__*/ L.createElement(DZ, { zIndex: e.zIndex }, /*#__PURE__*/ L.createElement(TI, { className: Ma("recharts-reference-line", i) }, mNe(r, b), /*#__PURE__*/ L.createElement(CQ, $1({}, x, {
lowerWidth: x.width,
upperWidth: x.width
- }), /*#__PURE__*/ R.createElement(jQ, { label: e.label }), e.children)));
+ }), /*#__PURE__*/ L.createElement(jQ, { label: e.label }), e.children)));
}
var xNe = {
ifOverflow: "discard",
@@ -64847,14 +64850,14 @@ var xNe = {
};
function e0(e) {
var t = YL(e, xNe);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(yNe, {
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(yNe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ R.createElement(bNe, t));
+ }), /*#__PURE__*/ L.createElement(bNe, t));
}
e0.displayName = "ReferenceLine";
//#endregion
@@ -65183,7 +65186,7 @@ function HNe(e) {
y2: n + i
});
}
- return /*#__PURE__*/ R.createElement("line", s0({}, l, { className: ja("recharts-cartesian-axis-line", wL(s, "className")) }));
+ return /*#__PURE__*/ L.createElement("line", s0({}, l, { className: Ma("recharts-cartesian-axis-line", wL(s, "className")) }));
}
function UNe(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;
@@ -65228,18 +65231,18 @@ function GNe(e, t) {
}
}
function KNe(e) {
- var { option: t, tickProps: n, value: r } = e, i, a = ja(n.className, "recharts-cartesian-axis-tick-value");
- if (/*#__PURE__*/ R.isValidElement(t)) i = /*#__PURE__*/ R.cloneElement(t, l0(l0({}, n), {}, { className: a }));
+ var { option: t, tickProps: n, value: r } = e, i, a = Ma(n.className, "recharts-cartesian-axis-tick-value");
+ if (/*#__PURE__*/ L.isValidElement(t)) i = /*#__PURE__*/ L.cloneElement(t, l0(l0({}, n), {}, { className: a }));
else if (typeof t == "function") i = t(l0(l0({}, n), {}, { className: a }));
else {
var o = "recharts-cartesian-axis-tick-value";
- typeof t != "boolean" && (o = ja(o, d$(t))), i = /*#__PURE__*/ R.createElement(hQ, s0({}, n, { className: o }), r);
+ typeof t != "boolean" && (o = Ma(o, d$(t))), i = /*#__PURE__*/ L.createElement(hQ, s0({}, n, { className: o }), r);
}
return i;
}
function qNe(e) {
var { ticks: t, axisType: n, axisId: r } = e, i = SR();
- return (0, R.useEffect)(() => r == null || n == null ? zL : (i(NNe({
+ return (0, L.useEffect)(() => r == null || n == null ? zL : (i(NNe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -65260,15 +65263,15 @@ function qNe(e) {
n
]), null;
}
-var JNe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+var JNe = /*#__PURE__*/ (0, L.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 = a0(l0(l0({}, b), {}, { ticks: n }), v, y), T = yI(b), E = bI(r), D = lQ(T.textAnchor) ? T.textAnchor : WNe(u, d), O = GNe(u, d), k = {};
typeof i == "object" && (k = i);
var A = l0(l0({}, T), {}, { fill: "none" }, k), j = w.map((e) => l0({ entry: e }, UNe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
- return /*#__PURE__*/ R.createElement(TI, {
+ return /*#__PURE__*/ L.createElement(TI, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, i && /*#__PURE__*/ R.createElement("line", s0({}, A, n, { className: ja("recharts-cartesian-axis-tick-line", wL(i, "className")) })));
+ }, i && /*#__PURE__*/ L.createElement("line", s0({}, A, n, { className: Ma("recharts-cartesian-axis-tick-line", wL(i, "className")) })));
}), N = j.map((e, t) => {
var { entry: n, tick: i } = e, u = l0(l0({}, l0(l0(l0(l0({ verticalAnchor: O }, T), {}, {
textAnchor: D,
@@ -65281,33 +65284,33 @@ var JNe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ R.createElement(TI, s0({
+ return /*#__PURE__*/ L.createElement(TI, s0({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, qL(x, n, t)), r && /*#__PURE__*/ R.createElement(KNe, {
+ }, qL(x, n, t)), r && /*#__PURE__*/ L.createElement(KNe, {
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(qNe, {
+ return /*#__PURE__*/ L.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ L.createElement(qNe, {
ticks: w,
axisId: C,
axisType: S
- }), N.length > 0 && /*#__PURE__*/ R.createElement(DZ, { zIndex: fG.label }, /*#__PURE__*/ R.createElement("g", {
+ }), N.length > 0 && /*#__PURE__*/ L.createElement(DZ, { zIndex: fG.label }, /*#__PURE__*/ L.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));
-}), YNe = /*#__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 = LNe(e, INe), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = (0, R.useRef)(null);
- (0, R.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => MNe({
+ }, N)), M.length > 0 && /*#__PURE__*/ L.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
+}), YNe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = LNe(e, INe), [d, f] = (0, L.useState)(""), [p, m] = (0, L.useState)(""), h = (0, L.useRef)(null);
+ (0, L.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => MNe({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
tickSize: e.tickSize,
tickMargin: e.tickMargin
}) }));
- var g = (0, R.useCallback)((e) => {
+ var g = (0, L.useCallback)((e) => {
if (e) {
var t = e.getElementsByClassName("recharts-cartesian-axis-tick-value");
h.current = t;
@@ -65318,7 +65321,7 @@ var JNe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ R.createElement(DZ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(TI, { className: ja("recharts-cartesian-axis", a) }, /*#__PURE__*/ R.createElement(HNe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ L.createElement(DZ, { zIndex: e.zIndex }, /*#__PURE__*/ L.createElement(TI, { className: Ma("recharts-cartesian-axis", a) }, /*#__PURE__*/ L.createElement(HNe, {
x: e.x,
y: e.y,
width: r,
@@ -65327,7 +65330,7 @@ var JNe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
mirror: e.mirror,
axisLine: n,
otherSvgProps: yI(e)
- }), /*#__PURE__*/ R.createElement(JNe, {
+ }), /*#__PURE__*/ L.createElement(JNe, {
ref: g,
axisType: c,
events: u,
@@ -65351,20 +65354,20 @@ var JNe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
x: e.x,
y: e.y,
axisId: l
- }), /*#__PURE__*/ R.createElement(CQ, {
+ }), /*#__PURE__*/ L.createElement(CQ, {
x: e.x,
y: e.y,
width: e.width,
height: e.height,
lowerWidth: e.width,
upperWidth: e.width
- }, /*#__PURE__*/ R.createElement(jQ, {
+ }, /*#__PURE__*/ L.createElement(jQ, {
label: e.label,
labelRef: e.labelRef
}), e.children)));
-}), d0 = /*#__PURE__*/ R.forwardRef((e, t) => {
+}), d0 = /*#__PURE__*/ L.forwardRef((e, t) => {
var n = YL(e, u0);
- return /*#__PURE__*/ R.createElement(YNe, s0({}, n, { ref: t }));
+ return /*#__PURE__*/ L.createElement(YNe, s0({}, n, { ref: t }));
});
d0.displayName = "CartesianAxis";
//#endregion
@@ -65450,7 +65453,7 @@ var iPe = (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;
- return /*#__PURE__*/ R.createElement("rect", {
+ return /*#__PURE__*/ L.createElement("rect", {
x: r,
y: i,
ry: s,
@@ -65464,11 +65467,11 @@ var iPe = (e) => {
};
function g0(e) {
var { option: t, lineItemProps: n } = e, r;
- if (/*#__PURE__*/ R.isValidElement(t)) r = /*#__PURE__*/ R.cloneElement(t, n);
+ if (/*#__PURE__*/ L.isValidElement(t)) r = /*#__PURE__*/ L.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 = yI(h0(n, XNe)) ?? {}, { offset: u } = l, d = h0(l, ZNe);
- r = /*#__PURE__*/ R.createElement("line", m0({}, d, {
+ r = /*#__PURE__*/ L.createElement("line", m0({}, d, {
x1: i,
y1: a,
x2: o,
@@ -65491,13 +65494,13 @@ function aPe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ R.createElement(g0, {
+ return /*#__PURE__*/ L.createElement(g0, {
key: `line-${i}`,
option: r,
lineItemProps: a
});
});
- return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
+ return /*#__PURE__*/ L.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
function oPe(e) {
var { y: t, height: n, vertical: r = !0, verticalPoints: i } = e;
@@ -65511,13 +65514,13 @@ function oPe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ R.createElement(g0, {
+ return /*#__PURE__*/ L.createElement(g0, {
option: r,
lineItemProps: a,
key: `line-${i}`
});
});
- return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
+ return /*#__PURE__*/ L.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
function sPe(e) {
var { horizontalFill: t, fillOpacity: n, x: r, y: i, width: a, height: o, horizontalPoints: s, horizontal: c = !0 } = e;
@@ -65528,7 +65531,7 @@ function sPe(e) {
var c = l[s + 1], u = c == null ? i + o - e : c - e;
if (u <= 0) return null;
var d = s % t.length;
- return /*#__PURE__*/ R.createElement("rect", {
+ return /*#__PURE__*/ L.createElement("rect", {
key: `react-${s}`,
y: e,
x: r,
@@ -65540,7 +65543,7 @@ function sPe(e) {
className: "recharts-cartesian-grid-bg"
});
});
- return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
+ return /*#__PURE__*/ L.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
function cPe(e) {
var { vertical: t = !0, verticalFill: n, fillOpacity: r, x: i, y: a, width: o, height: s, verticalPoints: c } = e;
@@ -65551,7 +65554,7 @@ function cPe(e) {
var c = l[t + 1], u = c == null ? i + o - e : c - e;
if (u <= 0) return null;
var d = t % n.length;
- return /*#__PURE__*/ R.createElement("rect", {
+ return /*#__PURE__*/ L.createElement("rect", {
key: `react-${t}`,
x: e,
y: a,
@@ -65563,7 +65566,7 @@ function cPe(e) {
className: "recharts-cartesian-grid-bg"
});
});
- return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
+ return /*#__PURE__*/ L.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
var lPe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
@@ -65628,7 +65631,7 @@ function _0(e) {
}, C ? !0 : d);
JV(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ R.createElement(DZ, { zIndex: i.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ R.createElement(iPe, {
+ return /*#__PURE__*/ L.createElement(DZ, { zIndex: i.zIndex }, /*#__PURE__*/ L.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ L.createElement(iPe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -65636,12 +65639,12 @@ function _0(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ R.createElement(sPe, m0({}, i, { horizontalPoints: y })), /*#__PURE__*/ R.createElement(cPe, m0({}, i, { verticalPoints: b })), /*#__PURE__*/ R.createElement(aPe, m0({}, i, {
+ }), /*#__PURE__*/ L.createElement(sPe, m0({}, i, { horizontalPoints: y })), /*#__PURE__*/ L.createElement(cPe, m0({}, i, { verticalPoints: b })), /*#__PURE__*/ L.createElement(aPe, m0({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ R.createElement(oPe, m0({}, i, {
+ })), /*#__PURE__*/ L.createElement(oPe, m0({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
@@ -65687,7 +65690,7 @@ function vPe(e, t) {
}
return n;
}
-var yPe = /*#__PURE__*/ (0, R.createContext)({
+var yPe = /*#__PURE__*/ (0, L.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -65700,7 +65703,7 @@ var yPe = /*#__PURE__*/ (0, R.createContext)({
});
function y0(e) {
var { children: t } = e, n = _Pe(e, gPe);
- return /*#__PURE__*/ R.createElement(yPe.Provider, { value: n }, t);
+ return /*#__PURE__*/ L.createElement(yPe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
@@ -65716,7 +65719,7 @@ function x0(e) {
var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = t1(), { needClipX: a, needClipY: o, needClip: s } = b0(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", {
+ return /*#__PURE__*/ L.createElement("clipPath", { id: `clipPath-${r}` }, /*#__PURE__*/ L.createElement("rect", {
x: a ? c : c - u / 2,
y: o ? l : l - d / 2,
width: a ? u : u * 2,
@@ -65880,7 +65883,7 @@ var jPe = (e) => {
value: vV(n, t),
payload: e
}];
-}, MPe = /*#__PURE__*/ R.memo((e) => {
+}, MPe = /*#__PURE__*/ L.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: zL,
@@ -65898,7 +65901,7 @@ var jPe = (e) => {
graphicalItemId: u
}
};
- return /*#__PURE__*/ R.createElement(V$, { tooltipEntrySettings: d });
+ return /*#__PURE__*/ L.createElement(V$, { tooltipEntrySettings: d });
}), j0 = (e, t) => `${t}px ${e}px`;
function NPe(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
@@ -65923,7 +65926,7 @@ var PPe = (e, t, n) => {
};
function FPe(e) {
var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = yI(A0(r, wPe));
- return /*#__PURE__*/ R.createElement(Z$, {
+ return /*#__PURE__*/ L.createElement(Z$, {
points: n,
dot: i,
className: "recharts-line-dots",
@@ -65935,7 +65938,7 @@ function FPe(e) {
});
}
function IPe(e) {
- var { showLabels: t, children: n, points: r } = e, i = (0, R.useMemo)(() => r?.map((e) => {
+ var { showLabels: t, children: n, points: r } = e, i = (0, L.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
y: e.y ?? 0,
@@ -65952,7 +65955,7 @@ function IPe(e) {
fill: void 0
});
}), [r]);
- return /*#__PURE__*/ R.createElement(FQ, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ L.createElement(FQ, { value: t ? i : void 0 }, n);
}
function M0(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 = k0(k0({}, xI(A0(a, TPe))), {}, {
@@ -65965,10 +65968,10 @@ function M0(e) {
connectNulls: c,
strokeDasharray: i ?? a.strokeDasharray
});
- return /*#__PURE__*/ R.createElement(R.Fragment, null, r?.length > 1 && /*#__PURE__*/ R.createElement(L$, D0({
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, r?.length > 1 && /*#__PURE__*/ L.createElement(L$, D0({
shapeType: "curve",
option: u
- }, d, { pathRef: n })), /*#__PURE__*/ R.createElement(FPe, {
+ }, d, { pathRef: n })), /*#__PURE__*/ L.createElement(FPe, {
points: r,
clipPathId: t,
props: a
@@ -65982,17 +65985,17 @@ function LPe(e) {
}
}
function RPe(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 = vW(o, "recharts-line-"), y = (0, R.useRef)(v), [b, x] = (0, R.useState)(!1), S = !b, C = (0, R.useCallback)(() => {
+ 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 = vW(o, "recharts-line-"), y = (0, L.useRef)(v), [b, x] = (0, L.useState)(!1), S = !b, C = (0, L.useCallback)(() => {
typeof h == "function" && h(), x(!1);
- }, [h]), w = (0, R.useCallback)(() => {
+ }, [h]), w = (0, L.useCallback)(() => {
typeof g == "function" && g(), x(!0);
- }, [g]), T = LPe(r.current), E = (0, R.useRef)(0);
+ }, [g]), T = LPe(r.current), E = (0, L.useRef)(0);
y.current !== v && (E.current = a.current, y.current = v);
var D = E.current;
- return /*#__PURE__*/ R.createElement(IPe, {
+ return /*#__PURE__*/ L.createElement(IPe, {
points: o,
showLabels: S
- }, n.children, /*#__PURE__*/ R.createElement(_W, {
+ }, n.children, /*#__PURE__*/ L.createElement(_W, {
animationId: v,
begin: l,
duration: u,
@@ -66021,7 +66024,7 @@ function RPe(e) {
y: t.y
});
});
- return i.current = g, /*#__PURE__*/ R.createElement(M0, {
+ return i.current = g, /*#__PURE__*/ L.createElement(M0, {
props: n,
points: g,
clipPathId: t,
@@ -66029,18 +66032,18 @@ function RPe(e) {
strokeDasharray: d
});
}
- return /*#__PURE__*/ R.createElement(M0, {
+ return /*#__PURE__*/ L.createElement(M0, {
props: n,
points: o,
clipPathId: t,
pathRef: r,
strokeDasharray: d
});
- }), /*#__PURE__*/ R.createElement(RQ, { label: n.label }));
+ }), /*#__PURE__*/ L.createElement(RQ, { label: n.label }));
}
function zPe(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(RPe, {
+ var { clipPathId: t, props: n } = e, r = (0, L.useRef)(null), i = (0, L.useRef)(0), a = (0, L.useRef)(null);
+ return /*#__PURE__*/ L.createElement(RPe, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -66053,30 +66056,30 @@ var BPe = (e, t) => ({
y: e.y ?? void 0,
value: e.value,
errorVal: $B(e.payload, t)
-}), VPe = class extends R.Component {
+}), VPe = class extends L.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 = ja("recharts-line", r), m = u, { r: h, strokeWidth: g } = E0(t), _ = O$(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
- return /*#__PURE__*/ R.createElement(DZ, { zIndex: f }, /*#__PURE__*/ R.createElement(TI, { className: p }, d && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(x0, {
+ var p = Ma("recharts-line", r), m = u, { r: h, strokeWidth: g } = E0(t), _ = O$(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
+ return /*#__PURE__*/ L.createElement(DZ, { zIndex: f }, /*#__PURE__*/ L.createElement(TI, { className: p }, d && /*#__PURE__*/ L.createElement("defs", null, /*#__PURE__*/ L.createElement(x0, {
clipPathId: m,
xAxisId: i,
yAxisId: a
- }), !_ && /*#__PURE__*/ R.createElement("clipPath", { id: `clipPath-dots-${m}` }, /*#__PURE__*/ R.createElement("rect", {
+ }), !_ && /*#__PURE__*/ L.createElement("clipPath", { id: `clipPath-dots-${m}` }, /*#__PURE__*/ L.createElement("rect", {
x: s - v / 2,
y: o - v / 2,
width: c + v,
height: l + v
- }))), /*#__PURE__*/ R.createElement(y0, {
+ }))), /*#__PURE__*/ L.createElement(y0, {
xAxisId: i,
yAxisId: a,
data: n,
dataPointFormatter: BPe,
errorBarOffset: 0
- }, /*#__PURE__*/ R.createElement(zPe, {
+ }, /*#__PURE__*/ L.createElement(zPe, {
props: this.props,
clipPathId: m
- }))), /*#__PURE__*/ R.createElement(i1, {
+ }))), /*#__PURE__*/ L.createElement(i1, {
activeDot: this.props.activeDot,
points: n,
mainColor: this.props.stroke,
@@ -66108,7 +66111,7 @@ function HPe(e) {
var t = YL(e, N0), { 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 = A0(t, EPe), { needClip: _ } = b0(p, m), v = t1(), y = CH(), b = HV(), x = Q((e) => CPe(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(VPe, D0({}, g, {
+ return /*#__PURE__*/ L.createElement(VPe, D0({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -66165,10 +66168,10 @@ function UPe(e) {
}
function WPe(e) {
var t = YL(e, N0), n = HV();
- return /*#__PURE__*/ R.createElement(W$, {
+ return /*#__PURE__*/ L.createElement(W$, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(H$, { legendPayload: jPe(t) }), /*#__PURE__*/ R.createElement(MPe, {
+ }, (e) => /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(H$, { legendPayload: jPe(t) }), /*#__PURE__*/ L.createElement(MPe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -66179,7 +66182,7 @@ function WPe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(K$, {
+ }), /*#__PURE__*/ L.createElement(K$, {
type: "line",
id: e,
data: t.data,
@@ -66189,9 +66192,9 @@ function WPe(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ R.createElement(HPe, D0({}, t, { id: e }))));
+ }), /*#__PURE__*/ L.createElement(HPe, D0({}, t, { id: e }))));
}
-var P0 = /*#__PURE__*/ R.memo(WPe, OU);
+var P0 = /*#__PURE__*/ L.memo(WPe, OU);
P0.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
@@ -66345,7 +66348,7 @@ var eFe = (e) => {
value: vV(n, t),
payload: e
}];
-}, tFe = /*#__PURE__*/ R.memo((e) => {
+}, tFe = /*#__PURE__*/ L.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: zL,
@@ -66363,11 +66366,11 @@ var eFe = (e) => {
graphicalItemId: u
}
};
- return /*#__PURE__*/ R.createElement(V$, { tooltipEntrySettings: d });
+ return /*#__PURE__*/ L.createElement(V$, { tooltipEntrySettings: d });
});
function nFe(e) {
var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = yI(r);
- return /*#__PURE__*/ R.createElement(Z$, {
+ return /*#__PURE__*/ L.createElement(Z$, {
points: n,
dot: a,
className: "recharts-area-dots",
@@ -66396,11 +66399,11 @@ function rFe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ R.createElement(FQ, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ L.createElement(FQ, { value: t ? i : void 0 }, n);
}
function J0(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 = W0(a, JPe), p = yI(f), m = xI(f);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, t?.length > 1 && /*#__PURE__*/ R.createElement(TI, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ R.createElement($U, U0({}, m, {
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, t?.length > 1 && /*#__PURE__*/ L.createElement(TI, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ L.createElement($U, U0({}, m, {
id: d,
points: t,
connectNulls: l,
@@ -66409,21 +66412,21 @@ function J0(e) {
layout: o,
stroke: "none",
className: "recharts-area-area"
- })), c !== "none" && /*#__PURE__*/ R.createElement($U, U0({}, p, {
+ })), c !== "none" && /*#__PURE__*/ L.createElement($U, U0({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: t
- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ R.createElement($U, U0({}, p, {
+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ L.createElement($U, U0({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ R.createElement(nFe, {
+ }))), /*#__PURE__*/ L.createElement(nFe, {
points: t,
props: f,
clipPathId: i
@@ -66433,7 +66436,7 @@ function iFe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
if (!KB(a) || !KB(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", {
+ 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__*/ L.createElement("rect", {
x: 0,
y: a < o ? a : a - s,
width: c + (i ? parseInt(`${i}`, 10) : 1),
@@ -66444,7 +66447,7 @@ function aFe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
if (!KB(a) || !KB(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", {
+ 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__*/ L.createElement("rect", {
x: a < o ? a : a - s,
y: 0,
width: s,
@@ -66453,12 +66456,12 @@ function aFe(e) {
}
function oFe(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ R.createElement(iFe, {
+ return n === "vertical" ? /*#__PURE__*/ L.createElement(iFe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ R.createElement(aFe, {
+ }) : /*#__PURE__*/ L.createElement(aFe, {
alpha: t,
points: r,
baseLine: i,
@@ -66466,20 +66469,20 @@ function oFe(e) {
});
}
function sFe(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 = vW((0, R.useMemo)(() => ({
+ 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 = vW((0, L.useMemo)(() => ({
points: o,
baseLine: s
- }), [o, s]), "recharts-area-"), h = wH(), [g, _] = (0, R.useState)(!1), v = !g, y = (0, R.useCallback)(() => {
+ }), [o, s]), "recharts-area-"), h = wH(), [g, _] = (0, L.useState)(!1), v = !g, y = (0, L.useCallback)(() => {
typeof p == "function" && p(), _(!1);
- }, [p]), b = (0, R.useCallback)(() => {
+ }, [p]), b = (0, L.useCallback)(() => {
typeof f == "function" && f(), _(!0);
}, [f]);
if (h == null) return null;
var x = i.current, S = a.current;
- return /*#__PURE__*/ R.createElement(rFe, {
+ return /*#__PURE__*/ L.createElement(rFe, {
showLabels: v,
points: o
- }, r.children, /*#__PURE__*/ R.createElement(_W, {
+ }, r.children, /*#__PURE__*/ L.createElement(_W, {
animationId: m,
begin: l,
duration: u,
@@ -66511,7 +66514,7 @@ function sFe(e) {
}
return t;
});
- return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ R.createElement(J0, {
+ return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ L.createElement(J0, {
points: u,
baseLine: d,
needClip: t,
@@ -66519,24 +66522,24 @@ function sFe(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ R.createElement(TI, null, c && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ R.createElement(oFe, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ L.createElement(TI, null, c && /*#__PURE__*/ L.createElement("defs", null, /*#__PURE__*/ L.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ L.createElement(oFe, {
alpha: e,
points: o,
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ R.createElement(TI, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ R.createElement(J0, {
+ }))), /*#__PURE__*/ L.createElement(TI, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ L.createElement(J0, {
points: o,
baseLine: s,
needClip: t,
clipPathId: n,
props: r
})));
- }), /*#__PURE__*/ R.createElement(RQ, { label: r.label }));
+ }), /*#__PURE__*/ L.createElement(RQ, { label: r.label }));
}
function cFe(e) {
- var { needClip: t, clipPathId: n, props: r } = e, i = (0, R.useRef)(null), a = (0, R.useRef)();
- return /*#__PURE__*/ R.createElement(sFe, {
+ var { needClip: t, clipPathId: n, props: r } = e, i = (0, L.useRef)(null), a = (0, L.useRef)();
+ return /*#__PURE__*/ L.createElement(sFe, {
needClip: t,
clipPathId: n,
props: r,
@@ -66544,31 +66547,31 @@ function cFe(e) {
previousBaselineRef: a
});
}
-var lFe = class extends R.PureComponent {
+var lFe = class extends L.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 = ja("recharts-area", r), h = d, { r: g, strokeWidth: _ } = E0(t), v = O$(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ R.createElement(DZ, { zIndex: p }, /*#__PURE__*/ R.createElement(TI, { className: m }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(x0, {
+ var m = Ma("recharts-area", r), h = d, { r: g, strokeWidth: _ } = E0(t), v = O$(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
+ return /*#__PURE__*/ L.createElement(DZ, { zIndex: p }, /*#__PURE__*/ L.createElement(TI, { className: m }, o && /*#__PURE__*/ L.createElement("defs", null, /*#__PURE__*/ L.createElement(x0, {
clipPathId: h,
xAxisId: s,
yAxisId: c
- }), !v && /*#__PURE__*/ R.createElement("clipPath", { id: `clipPath-dots-${h}` }, /*#__PURE__*/ R.createElement("rect", {
+ }), !v && /*#__PURE__*/ L.createElement("clipPath", { id: `clipPath-dots-${h}` }, /*#__PURE__*/ L.createElement("rect", {
x: a - y / 2,
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ R.createElement(cFe, {
+ }))), /*#__PURE__*/ L.createElement(cFe, {
needClip: o,
clipPathId: h,
props: this.props
- })), /*#__PURE__*/ R.createElement(i1, {
+ })), /*#__PURE__*/ L.createElement(i1, {
points: n,
mainColor: q0(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(i1, {
+ }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ L.createElement(i1, {
points: f,
mainColor: q0(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
@@ -66600,7 +66603,7 @@ function dFe(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 = W0(e, YPe), g = CH(), _ = hZ(), { needClip: v } = b0(p, m), y = HV(), { points: b, isRange: x, baseLine: S } = Q((t) => qPe(t, e.id, y)) ?? {}, C = t1();
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(lFe, U0({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ L.createElement(lFe, U0({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -66688,10 +66691,10 @@ function pFe(e) {
}
function mFe(e) {
var t = YL(e, uFe), n = HV();
- return /*#__PURE__*/ R.createElement(W$, {
+ return /*#__PURE__*/ L.createElement(W$, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(H$, { legendPayload: eFe(t) }), /*#__PURE__*/ R.createElement(tFe, {
+ }, (e) => /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(H$, { legendPayload: eFe(t) }), /*#__PURE__*/ L.createElement(tFe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -66702,7 +66705,7 @@ function mFe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(K$, {
+ }), /*#__PURE__*/ L.createElement(K$, {
type: "area",
id: e,
data: t.data,
@@ -66716,9 +66719,9 @@ function mFe(e) {
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ R.createElement(dFe, U0({}, t, { id: e }))));
+ }), /*#__PURE__*/ L.createElement(dFe, U0({}, t, { id: e }))));
}
-var Y0 = /*#__PURE__*/ R.memo(mFe, OU);
+var Y0 = /*#__PURE__*/ L.memo(mFe, OU);
Y0.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
@@ -66738,7 +66741,7 @@ function X0() {
}, X0.apply(null, arguments);
}
function Z0(e) {
- return /*#__PURE__*/ R.createElement(L$, X0({
+ return /*#__PURE__*/ L.createElement(L$, X0({
shapeType: "rectangle",
activeClassName: "recharts-active-bar",
inActiveClassName: "recharts-inactive-bar"
@@ -66863,19 +66866,19 @@ function OFe(e, t) {
}
return n;
}
-var t2 = /*#__PURE__*/ (0, R.createContext)(void 0), kFe = (e) => {
- var t = (0, R.useContext)(t2);
+var t2 = /*#__PURE__*/ (0, L.createContext)(void 0), kFe = (e) => {
+ var t = (0, L.useContext)(t2);
if (t != null) return t.stackId;
if (e != null) return sV(e);
}, AFe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, jFe = (e) => {
- var t = (0, R.useContext)(t2);
+ var t = (0, L.useContext)(t2);
if (t != null) {
var { stackId: n } = t;
return `url(#${AFe(n, e)})`;
}
}, n2 = (e) => {
var { index: t } = e, n = DFe(e, EFe), r = jFe(t);
- return /*#__PURE__*/ R.createElement(TI, e2({
+ return /*#__PURE__*/ L.createElement(TI, e2({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
@@ -66972,7 +66975,7 @@ var BFe = (e) => {
value: vV(n, t),
payload: e
}];
-}, VFe = /*#__PURE__*/ R.memo((e) => {
+}, VFe = /*#__PURE__*/ L.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: zL,
@@ -66990,13 +66993,13 @@ var BFe = (e) => {
graphicalItemId: l
}
};
- return /*#__PURE__*/ R.createElement(V$, { tooltipEntrySettings: u });
+ return /*#__PURE__*/ L.createElement(V$, { tooltipEntrySettings: u });
});
function HFe(e) {
var t = Q(oZ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = o2(a, MFe), u = R$(o, r, a.id), d = z$(s), f = B$(c, r, a.id);
if (!i || n == null) return null;
var p = bI(i);
- return /*#__PURE__*/ R.createElement(DZ, { zIndex: R1(i, fG.barBackground) }, n.map((e, n) => {
+ return /*#__PURE__*/ L.createElement(DZ, { zIndex: R1(i, fG.barBackground) }, n.map((e, n) => {
var { value: a, background: o, tooltipPosition: s } = e, c = o2(e, NFe);
if (!o) return null;
var m = u(e, n), h = d(e, n), g = f(e, n), _ = a2(a2(a2(a2(a2({
@@ -67010,7 +67013,7 @@ function HFe(e) {
index: n,
className: "recharts-bar-background-rectangle"
});
- return /*#__PURE__*/ R.createElement(Z0, r2({ key: `background-bar-${n}` }, _));
+ return /*#__PURE__*/ L.createElement(Z0, r2({ key: `background-bar-${n}` }, _));
}));
}
function UFe(e) {
@@ -67031,11 +67034,11 @@ function UFe(e) {
fill: e.fill
});
});
- return /*#__PURE__*/ R.createElement(FQ, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ L.createElement(FQ, { value: t ? i : void 0 }, n);
}
function WFe(e) {
- var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(oZ), c = Q(cZ), 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 { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(oZ), c = Q(cZ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, L.useState)(!1), [f, p] = (0, L.useState)(!1);
+ (0, L.useEffect)(() => {
var e;
return l ? (d(!0), e = requestAnimationFrame(() => {
p(!0);
@@ -67043,20 +67046,20 @@ function WFe(e) {
cancelAnimationFrame(e);
};
}, [l]);
- var m = (0, R.useCallback)(() => {
+ var m = (0, L.useCallback)(() => {
l || d(!1);
- }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ R.createElement(Z0, r2({}, r, { name: String(r.name) }, i, {
+ }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ L.createElement(Z0, r2({}, r, { name: String(r.name) }, i, {
isActive: h,
option: _,
index: a,
dataKey: o,
onTransitionEnd: m
}));
- return g ? /*#__PURE__*/ R.createElement(DZ, { zIndex: fG.activeBar }, /*#__PURE__*/ R.createElement(n2, { index: i.originalDataIndex }, v)) : v;
+ return g ? /*#__PURE__*/ L.createElement(DZ, { zIndex: fG.activeBar }, /*#__PURE__*/ L.createElement(n2, { index: i.originalDataIndex }, v)) : v;
}
function GFe(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
- return /*#__PURE__*/ R.createElement(Z0, r2({}, n, { name: String(n.name) }, r, {
+ return /*#__PURE__*/ L.createElement(Z0, r2({}, n, { name: String(n.name) }, r, {
isActive: !1,
option: t,
index: i,
@@ -67065,7 +67068,7 @@ function GFe(e) {
}
function KFe(e) {
var { data: t, props: n } = e, r = yI(n) ?? {}, { id: i } = r, a = o2(r, PFe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = o2(n, FFe), p = R$(l, s, i), m = z$(d), h = B$(u, s, i);
- return t ? /*#__PURE__*/ R.createElement(R.Fragment, null, t.map((e, t) => /*#__PURE__*/ R.createElement(n2, r2({
+ return t ? /*#__PURE__*/ L.createElement(L.Fragment, null, t.map((e, t) => /*#__PURE__*/ L.createElement(n2, r2({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
@@ -67073,14 +67076,14 @@ function KFe(e) {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ R.createElement(WFe, {
+ }), c ? /*#__PURE__*/ L.createElement(WFe, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ R.createElement(GFe, {
+ }) : /*#__PURE__*/ L.createElement(GFe, {
shape: o,
baseProps: a,
entry: e,
@@ -67089,15 +67092,15 @@ function KFe(e) {
})))) : null;
}
function qFe(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 = vW(t, "recharts-bar-"), [p, m] = (0, R.useState)(!1), h = !p, g = (0, R.useCallback)(() => {
+ 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 = vW(t, "recharts-bar-"), [p, m] = (0, L.useState)(!1), h = !p, g = (0, L.useCallback)(() => {
typeof l == "function" && l(), m(!1);
- }, [l]), _ = (0, R.useCallback)(() => {
+ }, [l]), _ = (0, L.useCallback)(() => {
typeof u == "function" && u(), m(!0);
}, [u]);
- return /*#__PURE__*/ R.createElement(UFe, {
+ return /*#__PURE__*/ L.createElement(UFe, {
showLabels: h,
rects: r
- }, /*#__PURE__*/ R.createElement(_W, {
+ }, /*#__PURE__*/ L.createElement(_W, {
animationId: f,
begin: o,
duration: s,
@@ -67128,15 +67131,15 @@ function qFe(e) {
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ R.createElement(TI, null, /*#__PURE__*/ R.createElement(KFe, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ L.createElement(TI, null, /*#__PURE__*/ L.createElement(KFe, {
props: t,
data: a
}));
- }), /*#__PURE__*/ R.createElement(RQ, { label: t.label }), t.children);
+ }), /*#__PURE__*/ L.createElement(RQ, { label: t.label }), t.children);
}
function JFe(e) {
- var t = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(qFe, {
+ var t = (0, L.useRef)(null);
+ return /*#__PURE__*/ L.createElement(qFe, {
previousRectanglesRef: t,
props: e
});
@@ -67149,27 +67152,27 @@ var s2 = 0, YFe = (e, t) => {
value: n,
errorVal: $B(e, t)
};
-}, XFe = class extends R.PureComponent {
+}, XFe = class extends L.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 = ja("recharts-bar", r), u = c;
- return /*#__PURE__*/ R.createElement(TI, {
+ var l = Ma("recharts-bar", r), u = c;
+ return /*#__PURE__*/ L.createElement(TI, {
className: l,
id: c
- }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(x0, {
+ }, o && /*#__PURE__*/ L.createElement("defs", null, /*#__PURE__*/ L.createElement(x0, {
clipPathId: u,
xAxisId: i,
yAxisId: a
- })), /*#__PURE__*/ R.createElement(TI, {
+ })), /*#__PURE__*/ L.createElement(TI, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ R.createElement(HFe, {
+ }, /*#__PURE__*/ L.createElement(HFe, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ R.createElement(JFe, this.props)));
+ }), /*#__PURE__*/ L.createElement(JFe, this.props)));
}
}, ZFe = {
activeBar: !1,
@@ -67190,13 +67193,13 @@ function QFe(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 } = b0(t, n), f = CH(), p = HV(), m = D$(e.children, WZ), h = Q((t) => TFe(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(y0, {
+ return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ L.createElement(y0, {
xAxisId: t,
yAxisId: n,
data: h,
dataPointFormatter: YFe,
errorBarOffset: g
- }, /*#__PURE__*/ R.createElement(XFe, r2({}, e, {
+ }, /*#__PURE__*/ L.createElement(XFe, r2({}, e, {
layout: f,
needClip: d,
data: h,
@@ -67283,10 +67286,10 @@ function $Fe(e) {
}
function eIe(e) {
var t = YL(e, ZFe), n = kFe(t.stackId), r = HV();
- return /*#__PURE__*/ R.createElement(W$, {
+ return /*#__PURE__*/ L.createElement(W$, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(H$, { legendPayload: BFe(t) }), /*#__PURE__*/ R.createElement(VFe, {
+ }, (e) => /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(H$, { legendPayload: BFe(t) }), /*#__PURE__*/ L.createElement(VFe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -67296,7 +67299,7 @@ function eIe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(K$, {
+ }), /*#__PURE__*/ L.createElement(K$, {
type: "bar",
id: e,
data: void 0,
@@ -67311,9 +67314,9 @@ function eIe(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ R.createElement(DZ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(QFe, r2({}, t, { id: e })))));
+ }), /*#__PURE__*/ L.createElement(DZ, { zIndex: t.zIndex }, /*#__PURE__*/ L.createElement(QFe, r2({}, t, { id: e })))));
}
-var c2 = /*#__PURE__*/ R.memo(eIe, OU);
+var c2 = /*#__PURE__*/ L.memo(eIe, OU);
c2.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
@@ -67422,15 +67425,15 @@ function uIe(e, t) {
return n;
}
function dIe(e) {
- var t = SR(), n = (0, R.useRef)(null), r = wH(), { type: i } = e, a = h2(e, iIe), o = gG(r, "xAxis", i), s = (0, R.useMemo)(() => {
+ var t = SR(), n = (0, L.useRef)(null), r = wH(), { type: i } = e, a = h2(e, iIe), o = gG(r, "xAxis", i), s = (0, L.useMemo)(() => {
if (o != null) return m2(m2({}, a), {}, { type: o });
}, [a, o]);
- return (0, R.useLayoutEffect)(() => {
+ return (0, L.useLayoutEffect)(() => {
s != null && (n.current === null ? t(Dje(s)) : n.current !== s && t(Oje({
prev: n.current,
next: s
})), n.current = s);
- }, [s, t]), (0, R.useLayoutEffect)(() => () => {
+ }, [s, t]), (0, L.useLayoutEffect)(() => () => {
n.current &&= (t(kje(n.current)), null);
}, [t]), null;
}
@@ -67438,12 +67441,12 @@ var fIe = (e) => {
var { xAxisId: t, className: n } = e, r = Q(BV), i = HV(), a = "xAxis", o = Q((e) => _X(e, a, t, i)), s = Q((e) => uX(e, t)), c = Q((e) => NEe(e, t)), l = Q((e) => iY(e, t));
if (s == null || c == null || l == null) return null;
var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = h2(e, aIe), { id: m, scale: h } = l, g = h2(l, oIe);
- return /*#__PURE__*/ R.createElement(d0, f2({}, p, g, {
+ return /*#__PURE__*/ L.createElement(d0, f2({}, p, g, {
x: c.x,
y: c.y,
width: s.width,
height: s.height,
- className: ja(`recharts-${a} ${a}`, n),
+ className: Ma(`recharts-${a} ${a}`, n),
viewBox: r,
ticks: o,
axisType: a,
@@ -67473,9 +67476,9 @@ var fIe = (e) => {
type: rY.type,
niceTicks: rY.niceTicks,
xAxisId: 0
-}, g2 = /*#__PURE__*/ R.memo((e) => {
+}, g2 = /*#__PURE__*/ L.memo((e) => {
var t = YL(e, pIe);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(dIe, {
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(dIe, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -67501,7 +67504,7 @@ var fIe = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ R.createElement(fIe, t));
+ }), /*#__PURE__*/ L.createElement(fIe, t));
}, d2);
g2.displayName = "XAxis";
//#endregion
@@ -67582,22 +67585,22 @@ function bIe(e, t) {
return n;
}
function xIe(e) {
- var t = SR(), n = (0, R.useRef)(null), r = wH(), { type: i } = e, a = b2(e, mIe), o = gG(r, "yAxis", i), s = (0, R.useMemo)(() => {
+ var t = SR(), n = (0, L.useRef)(null), r = wH(), { type: i } = e, a = b2(e, mIe), o = gG(r, "yAxis", i), s = (0, L.useMemo)(() => {
if (o != null) return y2(y2({}, a), {}, { type: o });
}, [o, a]);
- return (0, R.useLayoutEffect)(() => {
+ return (0, L.useLayoutEffect)(() => {
s != null && (n.current === null ? t(Aje(s)) : n.current !== s && t(jje({
prev: n.current,
next: s
})), n.current = s);
- }, [s, t]), (0, R.useLayoutEffect)(() => () => {
+ }, [s, t]), (0, L.useLayoutEffect)(() => () => {
n.current &&= (t(Mje(n.current)), null);
}, [t]), null;
}
function SIe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = Q(BV), c = HV(), l = SR(), u = "yAxis", d = Q((e) => dX(e, t)), f = Q((e) => PEe(e, t)), p = Q((e) => _X(e, u, t, c)), m = Q((e) => sY(e, t));
- if ((0, R.useLayoutEffect)(() => {
- if (!(r !== "auto" || !d || DQ(i) || /*#__PURE__*/ (0, R.isValidElement)(i) || m == null)) {
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = Q(BV), c = HV(), l = SR(), u = "yAxis", d = Q((e) => dX(e, t)), f = Q((e) => PEe(e, t)), p = Q((e) => _X(e, u, t, c)), m = Q((e) => sY(e, t));
+ if ((0, L.useLayoutEffect)(() => {
+ if (!(r !== "auto" || !d || DQ(i) || /*#__PURE__*/ (0, L.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
@@ -67617,7 +67620,7 @@ function SIe(e) {
m
]), d == null || f == null || m == null) return null;
var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = b2(e, hIe), { id: y, scale: b } = m, x = b2(m, gIe);
- return /*#__PURE__*/ R.createElement(d0, _2({}, v, x, {
+ return /*#__PURE__*/ L.createElement(d0, _2({}, v, x, {
ref: a,
labelRef: o,
x: f.x,
@@ -67625,7 +67628,7 @@ function SIe(e) {
tickTextProps: r === "auto" ? { width: void 0 } : { width: r },
width: d.width,
height: d.height,
- className: ja(`recharts-${u} ${u}`, n),
+ className: Ma(`recharts-${u} ${u}`, n),
viewBox: s,
ticks: p,
axisType: u,
@@ -67656,9 +67659,9 @@ var CIe = {
niceTicks: oY.niceTicks,
width: oY.width,
yAxisId: 0
-}, x2 = /*#__PURE__*/ R.memo((e) => {
+}, x2 = /*#__PURE__*/ L.memo((e) => {
var t = YL(e, CIe);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(xIe, {
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(xIe, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -67684,7 +67687,7 @@ var CIe = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ R.createElement(SIe, t));
+ }), /*#__PURE__*/ L.createElement(SIe, t));
}, d2);
x2.displayName = "YAxis";
var S2 = $([
@@ -68060,11 +68063,11 @@ var $2 = {
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
function t4(e) {
- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = HV(), a = (0, R.useRef)(null);
+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = HV(), a = (0, L.useRef)(null);
if (i) return n;
a.current ??= PIe(t, r);
var o = xR;
- return /*#__PURE__*/ R.createElement(cxe, {
+ return /*#__PURE__*/ L.createElement(cxe, {
context: o,
store: a.current
}, n);
@@ -68073,7 +68076,7 @@ function t4(e) {
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
function FIe(e) {
var { layout: t, margin: n } = e, r = SR(), i = HV();
- return (0, R.useEffect)(() => {
+ return (0, L.useEffect)(() => {
i || (r(VB(t)), r(BB(n)));
}, [
r,
@@ -68082,26 +68085,26 @@ function FIe(e) {
n
]), null;
}
-var n4 = /*#__PURE__*/ (0, R.memo)(FIe, OU);
+var n4 = /*#__PURE__*/ (0, L.memo)(FIe, OU);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
function r4(e) {
var t = SR();
- return (0, R.useEffect)(() => {
+ return (0, L.useEffect)(() => {
t(DIe(e));
}, [t, e]), null;
}
-var i4 = /*#__PURE__*/ (0, R.memo)((e) => {
+var i4 = /*#__PURE__*/ (0, L.memo)((e) => {
var t = SR();
- return (0, R.useEffect)(() => {
+ return (0, L.useEffect)(() => {
t(jIe(e));
}, [t, e]), null;
}, OU);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
function a4(e) {
- var { zIndex: t, isPanorama: n } = e, r = (0, R.useRef)(null), i = SR();
- return (0, R.useLayoutEffect)(() => (r.current && i(JDe({
+ var { zIndex: t, isPanorama: n } = e, r = (0, L.useRef)(null), i = SR();
+ return (0, L.useLayoutEffect)(() => (r.current && i(JDe({
zIndex: t,
element: r.current,
isPanorama: n
@@ -68114,7 +68117,7 @@ function a4(e) {
i,
t,
n
- ]), /*#__PURE__*/ R.createElement("g", {
+ ]), /*#__PURE__*/ L.createElement("g", {
tabIndex: -1,
ref: r,
className: `recharts-zIndex-layer_${t}`
@@ -68124,11 +68127,11 @@ function o4(e) {
var { children: t, isPanorama: n } = e, r = Q(zDe);
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(a4, {
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, i.map((e) => /*#__PURE__*/ L.createElement(a4, {
key: e,
zIndex: e,
isPanorama: n
- })), t, a.map((e) => /*#__PURE__*/ R.createElement(a4, {
+ })), t, a.map((e) => /*#__PURE__*/ L.createElement(a4, {
key: e,
zIndex: e,
isPanorama: n
@@ -68168,11 +68171,11 @@ var zIe = {
width: "100%",
height: "100%",
display: "block"
-}, BIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+}, BIe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
var n = yH(), r = bH(), i = UU();
if (!qB(n) || !qB(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(CI, s4({}, 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__*/ L.createElement(CI, s4({}, o, {
title: s,
desc: c,
role: u,
@@ -68186,21 +68189,21 @@ var zIe = {
var { children: t } = e, n = Q(WV);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
- return /*#__PURE__*/ R.createElement(CI, {
+ return /*#__PURE__*/ L.createElement(CI, {
width: r,
height: i,
x: o,
y: a
}, t);
-}, c4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+}, c4 = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
var { children: n } = e, r = LIe(e, IIe);
- return HV() ? /*#__PURE__*/ R.createElement(VIe, null, /*#__PURE__*/ R.createElement(o4, { isPanorama: !0 }, n)) : /*#__PURE__*/ R.createElement(BIe, s4({ ref: t }, r), /*#__PURE__*/ R.createElement(o4, { isPanorama: !1 }, n));
+ return HV() ? /*#__PURE__*/ L.createElement(VIe, null, /*#__PURE__*/ L.createElement(o4, { isPanorama: !0 }, n)) : /*#__PURE__*/ L.createElement(BIe, s4({ ref: t }, r), /*#__PURE__*/ L.createElement(o4, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
function HIe() {
- var e = SR(), [t, n] = (0, R.useState)(null), r = Q(CV);
- return (0, R.useEffect)(() => {
+ var e = SR(), [t, n] = (0, L.useState)(null), r = Q(CV);
+ return (0, L.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
KB(n) && n !== r && e(UB(n));
@@ -68274,11 +68277,11 @@ function d4(e) {
}
return 0;
}
-var JIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = (0, R.useRef)(null), [r, i] = (0, R.useState)({
+var JIe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
+ var n = (0, L.useRef)(null), [r, i] = (0, L.useState)({
containerWidth: d4(e.style?.width),
containerHeight: d4(e.style?.height)
- }), a = (0, R.useCallback)((e, t) => {
+ }), a = (0, L.useCallback)((e, t) => {
i((n) => {
var r = Math.round(e), i = Math.round(t);
return n.containerWidth === r && n.containerHeight === i ? n : {
@@ -68286,7 +68289,7 @@ var JIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
containerHeight: i
};
});
- }, []), o = (0, R.useCallback)((e) => {
+ }, []), o = (0, L.useCallback)((e) => {
if (typeof t == "function" && t(e), e != null && typeof ResizeObserver < "u") {
var { width: r, height: i } = e.getBoundingClientRect();
a(r, i);
@@ -68300,17 +68303,17 @@ var JIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
o.observe(e), n.current = o;
}
}, [t, a]);
- return (0, R.useEffect)(() => () => {
+ return (0, L.useEffect)(() => () => {
n.current?.disconnect();
- }, [a]), /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(OH, {
+ }, [a]), /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(OH, {
width: r.containerWidth,
height: r.containerHeight
- }), /*#__PURE__*/ R.createElement("div", u4({ ref: o }, e)));
-}), YIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { width: n, height: r } = e, [i, a] = (0, R.useState)({
+ }), /*#__PURE__*/ L.createElement("div", u4({ ref: o }, e)));
+}), YIe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
+ var { width: n, height: r } = e, [i, a] = (0, L.useState)({
containerWidth: d4(n),
containerHeight: d4(r)
- }), o = (0, R.useCallback)((e, t) => {
+ }), o = (0, L.useCallback)((e, t) => {
a((n) => {
var r = Math.round(e), i = Math.round(t);
return n.containerWidth === r && n.containerHeight === i ? n : {
@@ -68318,96 +68321,96 @@ var JIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
containerHeight: i
};
});
- }, []), s = (0, R.useCallback)((e) => {
+ }, []), s = (0, L.useCallback)((e) => {
if (typeof t == "function" && t(e), e != null) {
var { width: n, height: r } = e.getBoundingClientRect();
o(n, r);
}
}, [t, o]);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(OH, {
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(OH, {
width: i.containerWidth,
height: i.containerHeight
- }), /*#__PURE__*/ R.createElement("div", u4({ ref: s }, e)));
-}), XIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ L.createElement("div", u4({ ref: s }, e)));
+}), XIe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(OH, {
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(OH, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement("div", u4({ ref: t }, e)));
-}), ZIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ L.createElement("div", u4({ ref: t }, e)));
+}), ZIe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ R.createElement(YIe, u4({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ R.createElement(XIe, u4({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ L.createElement(YIe, u4({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ L.createElement(XIe, u4({}, e, {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(OH, {
+ })) : /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(OH, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement("div", u4({ ref: t }, e)));
+ }), /*#__PURE__*/ L.createElement("div", u4({ ref: t }, e)));
});
function QIe(e) {
return e ? JIe : ZIe;
}
-var $Ie = /*#__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 = SR(), [S, C] = (0, R.useState)(null), [w, T] = (0, R.useState)(null), E = HIe(), D = fH(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, R.useCallback)((e) => {
+var $Ie = /*#__PURE__*/ (0, L.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, L.useRef)(null), x = SR(), [S, C] = (0, L.useState)(null), [w, T] = (0, L.useState)(null), E = HIe(), D = fH(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, L.useCallback)((e) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
t,
C,
T
- ]), j = (0, R.useCallback)((e) => {
+ ]), j = (0, L.useCallback)((e) => {
x(w2(e)), x(H2({
handler: a,
reactEvent: e
}));
- }, [x, a]), M = (0, R.useCallback)((e) => {
+ }, [x, a]), M = (0, L.useCallback)((e) => {
x(E2(e)), x(H2({
handler: l,
reactEvent: e
}));
- }, [x, l]), N = (0, R.useCallback)((e) => {
+ }, [x, l]), N = (0, L.useCallback)((e) => {
x(kX()), x(H2({
handler: u,
reactEvent: e
}));
- }, [x, u]), P = (0, R.useCallback)((e) => {
+ }, [x, u]), P = (0, L.useCallback)((e) => {
x(E2(e)), x(H2({
handler: d,
reactEvent: e
}));
- }, [x, d]), ee = (0, R.useCallback)(() => {
+ }, [x, d]), ee = (0, L.useCallback)(() => {
x(F2());
- }, [x]), F = (0, R.useCallback)(() => {
+ }, [x]), F = (0, L.useCallback)(() => {
x(I2());
- }, [x]), I = (0, R.useCallback)((e) => {
+ }, [x]), te = (0, L.useCallback)((e) => {
x(P2(e.key));
- }, [x]), te = (0, R.useCallback)((e) => {
+ }, [x]), ne = (0, L.useCallback)((e) => {
x(H2({
handler: o,
reactEvent: e
}));
- }, [x, o]), ne = (0, R.useCallback)((e) => {
+ }, [x, o]), re = (0, L.useCallback)((e) => {
x(H2({
handler: s,
reactEvent: e
}));
- }, [x, s]), re = (0, R.useCallback)((e) => {
+ }, [x, s]), ie = (0, L.useCallback)((e) => {
x(H2({
handler: c,
reactEvent: e
}));
- }, [x, c]), ie = (0, R.useCallback)((e) => {
+ }, [x, c]), ae = (0, L.useCallback)((e) => {
x(H2({
handler: f,
reactEvent: e
}));
- }, [x, f]), ae = (0, R.useCallback)((e) => {
+ }, [x, f]), oe = (0, L.useCallback)((e) => {
x(H2({
handler: h,
reactEvent: e
}));
- }, [x, h]), oe = (0, R.useCallback)((e) => {
+ }, [x, h]), se = (0, L.useCallback)((e) => {
y && x(q2(e)), x(H2({
handler: m,
reactEvent: e
@@ -68416,16 +68419,16 @@ var $Ie = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
x,
y,
m
- ]), se = (0, R.useCallback)((e) => {
+ ]), ce = (0, L.useCallback)((e) => {
x(H2({
handler: p,
reactEvent: e
}));
- }, [x, p]), ce = QIe(v);
- return /*#__PURE__*/ R.createElement(jZ.Provider, { value: S }, /*#__PURE__*/ R.createElement(EI.Provider, { value: w }, /*#__PURE__*/ R.createElement(ce, {
+ }, [x, p]), le = QIe(v);
+ return /*#__PURE__*/ L.createElement(jZ.Provider, { value: S }, /*#__PURE__*/ L.createElement(EI.Provider, { value: w }, /*#__PURE__*/ L.createElement(le, {
width: O ?? g?.width,
height: k ?? g?.height,
- className: ja("recharts-wrapper", r),
+ className: Ma("recharts-wrapper", r),
style: UIe({
position: "relative",
cursor: "default",
@@ -68433,21 +68436,21 @@ var $Ie = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
height: k
}, g),
onClick: j,
- onContextMenu: te,
- onDoubleClick: ne,
+ onContextMenu: ne,
+ onDoubleClick: re,
onFocus: ee,
onBlur: F,
- onKeyDown: I,
- onMouseDown: re,
+ onKeyDown: te,
+ onMouseDown: ie,
onMouseEnter: M,
onMouseLeave: N,
onMouseMove: P,
- onMouseUp: ie,
- onTouchEnd: se,
- onTouchMove: oe,
- onTouchStart: ae,
+ onMouseUp: ae,
+ onTouchEnd: ce,
+ onTouchMove: se,
+ onTouchStart: oe,
ref: A
- }, /*#__PURE__*/ R.createElement(qIe, null), n)));
+ }, /*#__PURE__*/ L.createElement(qIe, null), n)));
}), eLe = [
"width",
"height",
@@ -68477,16 +68480,16 @@ function nLe(e, t) {
}
return n;
}
-var f4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+var f4 = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = yI(tLe(e, eLe));
- return c ? /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(OH, {
+ return c ? /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(OH, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement(c4, {
+ }), /*#__PURE__*/ L.createElement(c4, {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ R.createElement($Ie, {
+ }, a)) : /*#__PURE__*/ L.createElement($Ie, {
className: o,
style: s,
width: n,
@@ -68503,12 +68506,12 @@ var f4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
onTouchStart: e.onTouchStart,
onTouchMove: e.onTouchMove,
onTouchEnd: e.onTouchEnd
- }, /*#__PURE__*/ R.createElement(c4, {
+ }, /*#__PURE__*/ L.createElement(c4, {
otherAttributes: d,
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ R.createElement(cNe, null, a)));
+ }, /*#__PURE__*/ L.createElement(cNe, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
@@ -68579,7 +68582,7 @@ var sLe = rLe({
reverseStackOrder: !1,
stackOffset: "none",
syncMethod: "index"
-}, $2), h4 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+}, $2), h4 = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
var n = YL(e.categoricalChartProps, sLe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
@@ -68587,16 +68590,16 @@ var sLe = rLe({
tooltipPayloadSearcher: o,
eventEmitter: void 0
};
- return /*#__PURE__*/ R.createElement(t4, {
+ return /*#__PURE__*/ L.createElement(t4, {
preloadedState: { options: c },
reduxStoreName: s.id ?? r
- }, /*#__PURE__*/ R.createElement(K1, { chartData: s.data }), /*#__PURE__*/ R.createElement(n4, {
+ }, /*#__PURE__*/ L.createElement(K1, { chartData: s.data }), /*#__PURE__*/ L.createElement(n4, {
layout: n.layout,
margin: n.margin
- }), /*#__PURE__*/ R.createElement(i4, {
+ }), /*#__PURE__*/ L.createElement(i4, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ R.createElement(r4, {
+ }), /*#__PURE__*/ L.createElement(r4, {
baseValue: n.baseValue,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -68608,15 +68611,15 @@ var sLe = rLe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ R.createElement(f4, p4({}, n, { ref: t })));
-}), cLe = ["axis"], lLe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(h4, {
+ }), /*#__PURE__*/ L.createElement(f4, p4({}, n, { ref: t })));
+}), cLe = ["axis"], lLe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => /*#__PURE__*/ L.createElement(h4, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
validateTooltipEventTypes: cLe,
tooltipPayloadSearcher: FZ,
categoricalChartProps: e,
ref: t
-})), uLe = ["axis", "item"], g4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(h4, {
+})), uLe = ["axis", "item"], g4 = /*#__PURE__*/ (0, L.forwardRef)((e, t) => /*#__PURE__*/ L.createElement(h4, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
validateTooltipEventTypes: uLe,
@@ -68628,7 +68631,7 @@ var sLe = rLe({
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
function dLe(e) {
var t = SR();
- return (0, R.useEffect)(() => {
+ return (0, L.useEffect)(() => {
t(OIe(e));
}, [t, e]), null;
}
@@ -68724,7 +68727,7 @@ var y4 = hLe({
cy: "50%",
innerRadius: 0,
outerRadius: "80%"
-}, $2), b4 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+}, $2), b4 = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
var n = YL(e.categoricalChartProps, y4), { layout: r } = n, i = pLe(n, fLe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
@@ -68732,16 +68735,16 @@ var y4 = hLe({
tooltipPayloadSearcher: c,
eventEmitter: void 0
};
- return /*#__PURE__*/ R.createElement(t4, {
+ return /*#__PURE__*/ L.createElement(t4, {
preloadedState: { options: l },
reduxStoreName: n.id ?? a
- }, /*#__PURE__*/ R.createElement(K1, { chartData: n.data }), /*#__PURE__*/ R.createElement(n4, {
+ }, /*#__PURE__*/ L.createElement(K1, { chartData: n.data }), /*#__PURE__*/ L.createElement(n4, {
layout: r,
margin: n.margin
- }), /*#__PURE__*/ R.createElement(i4, {
+ }), /*#__PURE__*/ L.createElement(i4, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ R.createElement(r4, {
+ }), /*#__PURE__*/ L.createElement(r4, {
baseValue: void 0,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -68753,14 +68756,14 @@ var y4 = hLe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ R.createElement(dLe, {
+ }), /*#__PURE__*/ L.createElement(dLe, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
endAngle: n.endAngle,
innerRadius: n.innerRadius,
outerRadius: n.outerRadius
- }), /*#__PURE__*/ R.createElement(f4, _4({}, i, { ref: t })));
+ }), /*#__PURE__*/ L.createElement(f4, _4({}, i, { ref: t })));
});
//#endregion
//#region node_modules/recharts/es6/chart/RadarChart.js
@@ -68811,9 +68814,9 @@ var SLe = ["axis"], CLe = S4(S4({}, y4), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), wLe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+}), wLe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
var n = YL(e, CLe);
- return /*#__PURE__*/ R.createElement(b4, {
+ return /*#__PURE__*/ L.createElement(b4, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
validateTooltipEventTypes: SLe,
@@ -68821,7 +68824,7 @@ var SLe = ["axis"], CLe = S4(S4({}, y4), {}, {
categoricalChartProps: n,
ref: t
});
-}), TLe = ["axis"], ELe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(h4, {
+}), TLe = ["axis"], ELe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => /*#__PURE__*/ L.createElement(h4, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
validateTooltipEventTypes: TLe,
@@ -68878,9 +68881,9 @@ var ALe = ["axis", "item"], jLe = w4(w4({}, y4), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), MLe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+}), MLe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
var n = YL(e, jLe);
- return /*#__PURE__*/ R.createElement(b4, {
+ return /*#__PURE__*/ L.createElement(b4, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
validateTooltipEventTypes: ALe,
@@ -68892,7 +68895,7 @@ var ALe = ["axis", "item"], jLe = w4(w4({}, y4), {}, {
//#endregion
//#region src/react/charts/cn.ts
function T4(...e) {
- return Ii(ja(e));
+ return Li(Ma(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
@@ -68903,9 +68906,9 @@ var E4 = {
function NLe(e) {
for (let [t, n] of Object.entries(e)) if (n.colors && !D4.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${D4.join(", ")}). Received empty object or invalid keys.`);
}
-var O4 = R.createContext(null);
+var O4 = L.createContext(null);
function k4() {
- let e = R.useContext(O4);
+ let e = L.useContext(O4);
if (!e) throw Error("useChart must be used within a <ChartContainer />");
return e;
}
@@ -68913,20 +68916,20 @@ function A4({ 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 NLe(t), /* @__PURE__ */ (0, z.jsx)(O4.Provider, {
+ let s = L.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
+ return NLe(t), /* @__PURE__ */ (0, R.jsx)(O4.Provider, {
value: { config: t },
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
"data-slot": "chart",
"data-chart": c,
className: T4("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, z.jsx)(M4, {
+ /* @__PURE__ */ (0, R.jsx)(M4, {
id: c,
config: t
}),
- /* @__PURE__ */ (0, z.jsx)(mH, {
+ /* @__PURE__ */ (0, R.jsx)(mH, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -68937,11 +68940,11 @@ function A4({ id: e, config: t, initialDimension: n = {
});
}
function j4({ isLoading: e }) {
- return e ? /* @__PURE__ */ (0, z.jsx)("div", {
+ return e ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center",
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
className: "text-primary bg-background flex items-center justify-center gap-2 rounded-md border px-2 py-0.5 text-sm",
- children: [/* @__PURE__ */ (0, z.jsx)("div", { className: "border-border border-t-primary h-3 w-3 animate-spin rounded-full border" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "Loading" })]
+ children: [/* @__PURE__ */ (0, R.jsx)("div", { className: "border-border border-t-primary h-3 w-3 animate-spin rounded-full border" }), /* @__PURE__ */ (0, R.jsx)("span", { children: "Loading" })]
})
}) : null;
}
@@ -68962,7 +68965,7 @@ var M4 = ({ id: e, config: t }) => {
let r = n.colors?.[e];
return !r || !Array.isArray(r) || r.length === 0 ? [] : PLe(r, P4(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
}).filter(Boolean).join("\n"), i = Object.entries(E4).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
- return /* @__PURE__ */ (0, z.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
+ return /* @__PURE__ */ (0, R.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
function N4(e, t, n) {
if (typeof t != "object" || !t) return;
@@ -68987,13 +68990,13 @@ var FLe = (e = 10, t = 0, n = 70) => {
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
function F4({ 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 } = k4(), g = R.useMemo(() => {
+ let { config: h } = k4(), g = L.useMemo(() => {
if (i || !t?.length) return null;
let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = N4(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
- return s ? /* @__PURE__ */ (0, z.jsx)("div", {
+ return s ? /* @__PURE__ */ (0, R.jsx)("div", {
className: T4("font-medium", c),
children: s(a, t)
- }) : a ? /* @__PURE__ */ (0, z.jsx)("div", {
+ }) : a ? /* @__PURE__ */ (0, R.jsx)("div", {
className: T4("font-medium", c),
children: a
}) : null;
@@ -69006,17 +69009,17 @@ function F4({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
h,
d
]);
- if (!e || !t?.length) return /* @__PURE__ */ (0, z.jsx)("span", { className: "p-4" });
+ if (!e || !t?.length) return /* @__PURE__ */ (0, R.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: T4("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", ILe[p], LLe[m], n),
- children: [_ ? null : g, /* @__PURE__ */ (0, z.jsx)("div", {
+ children: [_ ? null : g, /* @__PURE__ */ (0, R.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 = N4(h, e, n), o = i ? P4(i) : 1;
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
className: T4("[&>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, z.jsxs)(z.Fragment, { children: [i?.icon ? /* @__PURE__ */ (0, z.jsx)(i.icon, {}) : !a && /* @__PURE__ */ (0, z.jsx)("div", {
+ children: l && e?.value !== void 0 && e.name ? l(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [i?.icon ? /* @__PURE__ */ (0, R.jsx)(i.icon, {}) : !a && /* @__PURE__ */ (0, R.jsx)("div", {
className: T4("shrink-0 rounded-[2px]", {
"h-2.5 w-2.5": r === "dot",
"w-1": r === "line",
@@ -69024,15 +69027,15 @@ function F4({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
"my-0.5": _ && r === "dashed"
}),
style: RLe(n, o)
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: T4("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "grid gap-1.5",
- children: [_ ? g : null, /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [_ ? g : null, /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-muted-foreground",
children: i?.label ?? e.name
})]
- }), e.value != null && /* @__PURE__ */ (0, z.jsx)("span", {
+ }), e.value != null && /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-foreground font-mono font-medium tabular-nums",
children: typeof e.value == "number" ? e.value.toLocaleString() : String(e.value)
})]
@@ -69045,7 +69048,7 @@ function F4({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
function RLe(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 I4 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, z.jsx)(DOe, {
+var I4 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, R.jsx)(DOe, {
animationDuration: e,
...t
});
@@ -69053,16 +69056,16 @@ var I4 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, z.jsx)(DO
//#region src/react/evilcharts/registry/ui/recharts-legend.tsx
function L4({ 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 } = k4();
- return r?.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ return r?.length ? /* @__PURE__ */ (0, R.jsx)("div", {
className: T4("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 = N4(u, e, r), a = o === null || o === r, d = i ? P4(i) : 1;
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: T4("[&>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, z.jsx)(i.icon, {}) : /* @__PURE__ */ (0, z.jsx)(zLe, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, R.jsx)(i.icon, {}) : /* @__PURE__ */ (0, R.jsx)(zLe, {
variant: l,
dataKey: r,
colorsCount: d
@@ -69074,31 +69077,31 @@ function L4({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
function zLe({ variant: e, dataKey: t, colorsCount: n }) {
let r = BLe(t, n), i = VLe(t, n);
switch (e) {
- case "square": return /* @__PURE__ */ (0, z.jsx)("div", {
+ case "square": return /* @__PURE__ */ (0, R.jsx)("div", {
className: "h-2 w-2 shrink-0",
style: r
});
- case "circle": return /* @__PURE__ */ (0, z.jsx)("div", {
+ case "circle": return /* @__PURE__ */ (0, R.jsx)("div", {
className: "h-2 w-2 shrink-0 rounded-full",
style: r
});
- case "circle-outline": return /* @__PURE__ */ (0, z.jsx)("div", {
+ case "circle-outline": return /* @__PURE__ */ (0, R.jsx)("div", {
className: "h-2.5 w-2.5 shrink-0 rounded-full p-[1.5px]",
style: i
});
- case "vertical-bar": return /* @__PURE__ */ (0, z.jsx)("div", {
+ case "vertical-bar": return /* @__PURE__ */ (0, R.jsx)("div", {
className: "h-3 w-1 shrink-0 rounded-[2px]",
style: r
});
- case "horizontal-bar": return /* @__PURE__ */ (0, z.jsx)("div", {
+ case "horizontal-bar": return /* @__PURE__ */ (0, R.jsx)("div", {
className: "h-1 w-3 shrink-0 rounded-[2px]",
style: r
});
- case "rounded-square-outline": return /* @__PURE__ */ (0, z.jsx)("div", {
+ case "rounded-square-outline": return /* @__PURE__ */ (0, R.jsx)("div", {
className: "h-2.5 w-2.5 shrink-0 rounded-[3px] p-[1.5px]",
style: i
});
- default: return /* @__PURE__ */ (0, z.jsx)("div", {
+ default: return /* @__PURE__ */ (0, R.jsx)("div", {
className: "h-2 w-2 shrink-0 rounded-[2px]",
style: r
});
@@ -69128,13 +69131,13 @@ var R4 = MU, z4 = () => null, B4 = {
mass: .8
};
function HLe({ 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) => {
+ let i = L.useRef(null), [a, o] = L.useState(!1), s = (0, L.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, L.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
originX: t.clientX,
originRange: { ...e }
}, o(!0);
- }, [e]), l = (0, R.useCallback)((e) => {
+ }, [e]), l = (0, L.useCallback)((e) => {
let n = i.current;
if (!n) return;
let a = s(e.clientX - n.originX), { type: o, originRange: c } = n;
@@ -69157,12 +69160,12 @@ function HLe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
s,
t,
r
- ]), u = (0, R.useCallback)((e) => {
+ ]), u = (0, L.useCallback)((e) => {
e.target.releasePointerCapture(e.pointerId), i.current = null, o(!1);
}, []);
return {
isDragging: a,
- bind: (0, R.useCallback)((e) => ({
+ bind: (0, L.useCallback)((e) => ({
onPointerDown: (t) => c(t, e),
onPointerMove: l,
onPointerUp: u
@@ -69174,11 +69177,11 @@ function HLe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
};
}
function ULe({ 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(() => ({
+ let x = L.useRef(null), S = L.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = L.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = L.useState(() => ({
startIndex: Math.max(0, Math.min(p, C - 1)),
endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))
- })), O = R.useRef(E);
- (0, R.useEffect)(() => {
+ })), O = L.useRef(E);
+ (0, L.useEffect)(() => {
T || D((e) => {
let t = {
startIndex: Math.min(e.startIndex, Math.max(0, C - 1)),
@@ -69187,7 +69190,7 @@ function ULe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
return O.current = t, t;
});
}, [C, T]);
- let k = (0, R.useCallback)((e, t) => {
+ let k = (0, L.useCallback)((e, t) => {
let { startIndex: n, endIndex: r } = e, i = Math.max(0, C - 1);
if (n = Math.max(0, Math.min(n, i)), r = Math.max(0, Math.min(r, i)), t === "left") {
let e = Math.max(0, r - v);
@@ -69211,14 +69214,14 @@ function ULe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
range: E,
totalPoints: C,
containerRef: x,
- commit: (0, R.useCallback)((e, t) => {
+ commit: (0, L.useCallback)((e, t) => {
let n = k(e, t), r = O.current;
- (r.startIndex !== n.startIndex || r.endIndex !== n.endIndex) && (O.current = n, D(n), R.startTransition(() => {
+ (r.startIndex !== n.startIndex || r.endIndex !== n.endIndex) && (O.current = n, D(n), L.startTransition(() => {
h?.(n);
}));
}, [k, h])
}), M = E;
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
if (T && !A) {
let e = {
startIndex: d,
@@ -69234,15 +69237,15 @@ function ULe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]);
let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, P = C > 1 ? M.endIndex / (C - 1) * 100 : 100, ee = KP(N), F = KP(P);
ee.get() !== N && ee.set(N), F.get() !== P && F.set(P);
- let I = XP(ee, B4), te = XP(F, B4), ne = JP(I, (e) => `${e}%`), re = JP(te, (e) => `${e}%`), ie = JP(I, (e) => `${e}%`), ae = JP(te, (e) => `${Math.max(0, 100 - e)}%`), oe = KP(`${Math.max(0, P - N)}%`), se = (0, R.useCallback)(() => {
- oe.set(`${Math.max(0, te.get() - I.get())}%`);
+ let te = XP(ee, B4), ne = XP(F, B4), re = JP(te, (e) => `${e}%`), ie = JP(ne, (e) => `${e}%`), ae = JP(te, (e) => `${e}%`), oe = JP(ne, (e) => `${Math.max(0, 100 - e)}%`), se = KP(`${Math.max(0, P - N)}%`), ce = (0, L.useCallback)(() => {
+ se.set(`${Math.max(0, ne.get() - te.get())}%`);
}, [
- I,
te,
- oe
+ ne,
+ se
]);
- GP(I, "change", se), GP(te, "change", se);
- let ce = (0, R.useCallback)((t) => {
+ GP(te, "change", ce), GP(ne, "change", ce);
+ let le = (0, L.useCallback)((t) => {
if (!r) return String(t);
let n = e[t]?.[r];
return g ? g(n, t) : String(n ?? t);
@@ -69251,19 +69254,19 @@ function ULe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
r,
g
]);
- return C === 0 ? null : /* @__PURE__ */ (0, z.jsxs)("div", {
+ return C === 0 ? null : /* @__PURE__ */ (0, R.jsxs)("div", {
ref: x,
"data-chart": b ? void 0 : w,
className: T4("group relative select-none", o),
style: { height: a },
children: [
- !b && /* @__PURE__ */ (0, z.jsx)(M4, {
+ !b && /* @__PURE__ */ (0, R.jsx)(M4, {
id: w,
config: t
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, z.jsx)(WLe, {
+ children: /* @__PURE__ */ (0, R.jsx)(WLe, {
data: e,
keys: S,
chartConfig: t,
@@ -69276,32 +69279,32 @@ function ULe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
barRadius: u
})
}),
- /* @__PURE__ */ (0, z.jsx)(ZP.div, {
+ /* @__PURE__ */ (0, R.jsx)(ZP.div, {
className: "bg-background/70 pointer-events-none absolute inset-y-0 left-0 rounded-l-md backdrop-blur-[2px]",
- style: { width: ie }
+ style: { width: ae }
}),
- /* @__PURE__ */ (0, z.jsx)(ZP.div, {
+ /* @__PURE__ */ (0, R.jsx)(ZP.div, {
className: "bg-background/70 pointer-events-none absolute inset-y-0 right-0 rounded-r-md backdrop-blur-[2px]",
- style: { width: ae }
+ style: { width: oe }
}),
- /* @__PURE__ */ (0, z.jsx)(ZP.div, {
+ /* @__PURE__ */ (0, R.jsx)(ZP.div, {
className: "absolute inset-y-0 cursor-grab touch-none rounded-sm border active:cursor-grabbing",
style: {
- left: ne,
- width: oe
+ left: re,
+ width: se
},
...j("middle")
}),
- /* @__PURE__ */ (0, z.jsx)(V4, {
+ /* @__PURE__ */ (0, R.jsx)(V4, {
side: "left",
- position: ne,
- label: y ? ce(M.startIndex) : void 0,
+ position: re,
+ label: y ? le(M.startIndex) : void 0,
bind: j("left")
}),
- /* @__PURE__ */ (0, z.jsx)(V4, {
+ /* @__PURE__ */ (0, R.jsx)(V4, {
side: "right",
- position: re,
- label: y ? ce(M.endIndex) : void 0,
+ position: ie,
+ label: y ? le(M.endIndex) : void 0,
bind: j("right")
})
]
@@ -69309,79 +69312,79 @@ function ULe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
}
function V4({ side: e, position: t, label: n, bind: r }) {
let i = e === "left";
- return /* @__PURE__ */ (0, z.jsxs)(ZP.div, {
+ return /* @__PURE__ */ (0, R.jsxs)(ZP.div, {
className: "absolute inset-y-0 z-10",
style: { left: t },
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: T4("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, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
className: T4("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, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-[2px]",
children: [
- /* @__PURE__ */ (0, z.jsx)("div", { className: "bg-background/70 h-[2px] w-[2px] rounded-full" }),
- /* @__PURE__ */ (0, z.jsx)("div", { className: "bg-background/70 h-[2px] w-[2px] rounded-full" }),
- /* @__PURE__ */ (0, z.jsx)("div", { className: "bg-background/70 h-[2px] w-[2px] rounded-full" })
+ /* @__PURE__ */ (0, R.jsx)("div", { className: "bg-background/70 h-[2px] w-[2px] rounded-full" }),
+ /* @__PURE__ */ (0, R.jsx)("div", { className: "bg-background/70 h-[2px] w-[2px] rounded-full" }),
+ /* @__PURE__ */ (0, R.jsx)("div", { className: "bg-background/70 h-[2px] w-[2px] rounded-full" })
]
})
})
- }), n && /* @__PURE__ */ (0, z.jsx)("div", {
+ }), n && /* @__PURE__ */ (0, R.jsx)("div", {
className: T4("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 WLe({ 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]) => ({
+ let u = L.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
colorsCount: P4(t)
- })), [n, t]), d = s === "dashed" || s === "animated-dashed" ? "4 4" : void 0, f = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [r === "area" && /* @__PURE__ */ (0, z.jsxs)("linearGradient", {
+ })), [n, t]), d = s === "dashed" || s === "animated-dashed" ? "4 4" : void 0, f = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [r === "area" && /* @__PURE__ */ (0, R.jsxs)("linearGradient", {
id: `${a}-zm-vertical-fade`,
x1: "0",
y1: "0",
x2: "0",
y2: "1",
- children: [/* @__PURE__ */ (0, z.jsx)("stop", {
+ children: [/* @__PURE__ */ (0, R.jsx)("stop", {
offset: "0%",
stopColor: "white",
stopOpacity: .15
- }), /* @__PURE__ */ (0, z.jsx)("stop", {
+ }), /* @__PURE__ */ (0, R.jsx)("stop", {
offset: "100%",
stopColor: "white",
stopOpacity: 0
})]
}), u.map(({ dataKey: e, colorsCount: t }) => {
- let n = t === 1 ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("stop", {
+ let n = t === 1 ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("stop", {
offset: "0%",
stopColor: `var(--color-${e}-0)`
- }), /* @__PURE__ */ (0, z.jsx)("stop", {
+ }), /* @__PURE__ */ (0, R.jsx)("stop", {
offset: "100%",
stopColor: `var(--color-${e}-0)`
- })] }) : Array.from({ length: t }, (n, r) => /* @__PURE__ */ (0, z.jsx)("stop", {
+ })] }) : Array.from({ length: t }, (n, r) => /* @__PURE__ */ (0, R.jsx)("stop", {
offset: `${r / (t - 1) * 100}%`,
stopColor: `var(--color-${e}-${r}, var(--color-${e}-0))`
}, r));
- return /* @__PURE__ */ (0, z.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("linearGradient", {
+ return /* @__PURE__ */ (0, R.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("linearGradient", {
id: `${a}-zm-${e}`,
x1: "0",
y1: "0",
x2: "0",
y2: "1",
children: n
- }), r === "area" && /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("mask", {
+ }), r === "area" && /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("mask", {
id: `${a}-zm-fill-mask-${e}`,
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
width: "100%",
height: "100%",
fill: `url(#${a}-zm-vertical-fade)`
})
- }), /* @__PURE__ */ (0, z.jsx)("pattern", {
+ }), /* @__PURE__ */ (0, R.jsx)("pattern", {
id: `${a}-zm-fill-${e}`,
patternUnits: "userSpaceOnUse",
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
width: "100%",
height: "100%",
fill: `url(#${a}-zm-${e})`,
@@ -69389,10 +69392,10 @@ function WLe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, z.jsx)(mH, {
+ if (r === "line") return /* @__PURE__ */ (0, R.jsx)(mH, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, z.jsxs)(lLe, {
+ children: /* @__PURE__ */ (0, R.jsxs)(lLe, {
data: e,
margin: {
top: 4,
@@ -69400,7 +69403,7 @@ function WLe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(P0, {
+ children: [/* @__PURE__ */ (0, R.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, R.jsx)(P0, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -69416,10 +69419,10 @@ function WLe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, z.jsx)(mH, {
+ return /* @__PURE__ */ (0, R.jsx)(mH, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, z.jsxs)(g4, {
+ children: /* @__PURE__ */ (0, R.jsxs)(g4, {
data: e,
margin: {
top: 2,
@@ -69429,7 +69432,7 @@ function WLe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
},
barGap: 2,
barSize: 14,
- children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(c2, {
+ children: [/* @__PURE__ */ (0, R.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, R.jsx)(c2, {
dataKey: e,
fill: `url(#${a}-zm-${e})`,
fillOpacity: .35,
@@ -69445,10 +69448,10 @@ function WLe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, z.jsx)(mH, {
+ return /* @__PURE__ */ (0, R.jsx)(mH, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, z.jsxs)(ELe, {
+ children: /* @__PURE__ */ (0, R.jsxs)(ELe, {
data: e,
margin: {
top: 4,
@@ -69456,7 +69459,7 @@ function WLe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(Y0, {
+ children: [/* @__PURE__ */ (0, R.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, R.jsx)(Y0, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -69475,18 +69478,18 @@ function WLe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
}
function GLe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
- let [r, i] = R.useState({
+ let [r, i] = L.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
- }), a = R.useDeferredValue(r);
- return (0, R.useEffect)(() => {
+ }), a = L.useDeferredValue(r);
+ return (0, L.useEffect)(() => {
i({
startIndex: 0,
endIndex: Math.max(0, e.length - 1)
});
}, [e.length]), {
range: r,
- visibleData: R.useMemo(() => e.slice(a.startIndex, a.endIndex + 1), [
+ visibleData: L.useMemo(() => e.slice(a.startIndex, a.endIndex + 1), [
e,
a.startIndex,
a.endIndex
@@ -69499,14 +69502,14 @@ function GLe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
};
}
var KLe = {
- dots: ({ id: e }) => /* @__PURE__ */ (0, z.jsx)("pattern", {
+ dots: ({ id: e }) => /* @__PURE__ */ (0, R.jsx)("pattern", {
id: e,
x: "0",
y: "0",
width: "20",
height: "20",
patternUnits: "userSpaceOnUse",
- children: /* @__PURE__ */ (0, z.jsx)("circle", {
+ children: /* @__PURE__ */ (0, R.jsx)("circle", {
className: "text-border dark:text-border",
cx: "2",
cy: "2",
@@ -69514,14 +69517,14 @@ var KLe = {
fill: "currentColor"
})
}),
- grid: ({ id: e }) => /* @__PURE__ */ (0, z.jsx)("pattern", {
+ grid: ({ id: e }) => /* @__PURE__ */ (0, R.jsx)("pattern", {
id: e,
x: "0",
y: "0",
width: "20",
height: "20",
patternUnits: "userSpaceOnUse",
- children: /* @__PURE__ */ (0, z.jsx)("path", {
+ children: /* @__PURE__ */ (0, R.jsx)("path", {
className: "text-border dark:text-border",
d: "M 20 0 L 0 0 0 20",
fill: "none",
@@ -69529,14 +69532,14 @@ var KLe = {
strokeWidth: "0.5"
})
}),
- plus: ({ id: e }) => /* @__PURE__ */ (0, z.jsx)("pattern", {
+ plus: ({ id: e }) => /* @__PURE__ */ (0, R.jsx)("pattern", {
id: e,
x: "0",
y: "0",
width: "16",
height: "16",
patternUnits: "userSpaceOnUse",
- children: /* @__PURE__ */ (0, z.jsx)("path", {
+ children: /* @__PURE__ */ (0, R.jsx)("path", {
className: "text-border dark:text-border",
d: "M 8 4 L 8 12 M 4 8 L 12 8",
fill: "none",
@@ -69545,7 +69548,7 @@ var KLe = {
strokeLinecap: "round"
})
}),
- bubbles: ({ id: e }) => /* @__PURE__ */ (0, z.jsx)("pattern", {
+ bubbles: ({ id: e }) => /* @__PURE__ */ (0, R.jsx)("pattern", {
id: e,
x: "0",
y: "0",
@@ -69553,7 +69556,7 @@ var KLe = {
height: "100",
patternUnits: "userSpaceOnUse",
patternTransform: "scale(0.6667)",
- children: /* @__PURE__ */ (0, z.jsx)("path", {
+ children: /* @__PURE__ */ (0, R.jsx)("path", {
className: "text-border dark:text-border",
d: "M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z",
fill: "currentColor",
@@ -69561,14 +69564,14 @@ var KLe = {
fillRule: "evenodd"
})
}),
- "cross-hatch": ({ id: e }) => /* @__PURE__ */ (0, z.jsx)("pattern", {
+ "cross-hatch": ({ id: e }) => /* @__PURE__ */ (0, R.jsx)("pattern", {
id: e,
x: "0",
y: "0",
width: "20",
height: "20",
patternUnits: "userSpaceOnUse",
- children: /* @__PURE__ */ (0, z.jsx)("path", {
+ children: /* @__PURE__ */ (0, R.jsx)("path", {
className: "text-border/60 dark:text-border/50",
d: "M 0 0 L 20 20 M 20 0 L 0 20",
fill: "none",
@@ -69576,7 +69579,7 @@ var KLe = {
strokeWidth: "0.5"
})
}),
- "diagonal-lines": ({ id: e }) => /* @__PURE__ */ (0, z.jsx)("pattern", {
+ "diagonal-lines": ({ id: e }) => /* @__PURE__ */ (0, R.jsx)("pattern", {
id: e,
x: "0",
y: "0",
@@ -69584,7 +69587,7 @@ var KLe = {
height: "6",
patternUnits: "userSpaceOnUse",
patternTransform: "rotate(45)",
- children: /* @__PURE__ */ (0, z.jsx)("line", {
+ children: /* @__PURE__ */ (0, R.jsx)("line", {
className: "text-border dark:text-border",
x1: "0",
y1: "0",
@@ -69594,14 +69597,14 @@ var KLe = {
strokeWidth: "0.5"
})
}),
- "falling-triangles": ({ id: e }) => /* @__PURE__ */ (0, z.jsx)("pattern", {
+ "falling-triangles": ({ id: e }) => /* @__PURE__ */ (0, R.jsx)("pattern", {
id: e,
x: "0",
y: "0",
width: "18",
height: "36",
patternUnits: "userSpaceOnUse",
- children: /* @__PURE__ */ (0, z.jsx)("path", {
+ children: /* @__PURE__ */ (0, R.jsx)("path", {
className: "text-border dark:text-border",
d: "M2 6h12L8 18 2 6zm18 36h12l-6 12-6-12z",
transform: "scale(0.5)",
@@ -69609,14 +69612,14 @@ var KLe = {
fillOpacity: "0.4"
})
}),
- "4-pointed-star": ({ id: e }) => /* @__PURE__ */ (0, z.jsx)("pattern", {
+ "4-pointed-star": ({ id: e }) => /* @__PURE__ */ (0, R.jsx)("pattern", {
id: e,
x: "0",
y: "0",
width: "16",
height: "16",
patternUnits: "userSpaceOnUse",
- children: /* @__PURE__ */ (0, z.jsx)("polygon", {
+ children: /* @__PURE__ */ (0, R.jsx)("polygon", {
className: "text-border dark:text-border",
fillRule: "evenodd",
points: "5 3 8 4 5 5 4 8 3 5 0 4 3 3 4 0 5 3",
@@ -69624,14 +69627,14 @@ var KLe = {
fillOpacity: "0.4"
})
}),
- "tiny-checkers": ({ id: e }) => /* @__PURE__ */ (0, z.jsx)("pattern", {
+ "tiny-checkers": ({ id: e }) => /* @__PURE__ */ (0, R.jsx)("pattern", {
id: e,
x: "0",
y: "0",
width: "8",
height: "8",
patternUnits: "userSpaceOnUse",
- children: /* @__PURE__ */ (0, z.jsx)("path", {
+ children: /* @__PURE__ */ (0, R.jsx)("path", {
className: "text-border dark:text-border",
fillRule: "evenodd",
d: "M0 0h4v4H0V0zm4 4h4v4H4V4z",
@@ -69639,14 +69642,14 @@ var KLe = {
fillOpacity: "0.2"
})
}),
- "overlapping-circles": ({ id: e }) => /* @__PURE__ */ (0, z.jsx)("pattern", {
+ "overlapping-circles": ({ id: e }) => /* @__PURE__ */ (0, R.jsx)("pattern", {
id: e,
x: "0",
y: "0",
width: "40",
height: "40",
patternUnits: "userSpaceOnUse",
- children: /* @__PURE__ */ (0, z.jsx)("path", {
+ children: /* @__PURE__ */ (0, R.jsx)("path", {
className: "text-border dark:text-border",
fillRule: "evenodd",
d: "M25 25c0-2.762 2.238-5 5-5s5 2.238 5 5-2.238 5-5 5c0 2.762-2.238 5-5 5s-5-2.238-5-5 2.238-5 5-5zM5 5c0-2.762 2.238-5 5-5s5 2.238 5 5-2.238 5-5 5c0 2.762-2.238 5-5 5S0 12.762 0 10s2.238-5 5-5zm5 4c2.209 0 4-1.791 4-4s-1.791-4-4-4-4 1.791-4 4 1.791 4 4 4zm20 20c2.209 0 4-1.791 4-4s-1.791-4-4-4-4 1.791-4 4 1.791 4 4 4z",
@@ -69654,7 +69657,7 @@ var KLe = {
fillOpacity: "0.4"
})
}),
- "wiggle-lines": ({ id: e }) => /* @__PURE__ */ (0, z.jsx)("pattern", {
+ "wiggle-lines": ({ id: e }) => /* @__PURE__ */ (0, R.jsx)("pattern", {
id: e,
x: "0",
y: "0",
@@ -69662,7 +69665,7 @@ var KLe = {
height: "26",
patternUnits: "userSpaceOnUse",
patternTransform: "scale(0.6)",
- children: /* @__PURE__ */ (0, z.jsx)("path", {
+ children: /* @__PURE__ */ (0, R.jsx)("path", {
className: "text-border dark:text-border",
d: "M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z",
fill: "currentColor",
@@ -69671,19 +69674,19 @@ var KLe = {
})
};
function H4({ variant: e }) {
- let t = (0, R.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = KLe[e];
- return /* @__PURE__ */ (0, z.jsxs)(DZ, {
+ let t = (0, L.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = KLe[e];
+ return /* @__PURE__ */ (0, R.jsxs)(DZ, {
zIndex: -1,
- children: [/* @__PURE__ */ (0, z.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, z.jsx)(a, { id: n }),
- /* @__PURE__ */ (0, z.jsx)("filter", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("defs", { children: [
+ /* @__PURE__ */ (0, R.jsx)(a, { id: n }),
+ /* @__PURE__ */ (0, R.jsx)("filter", {
id: i,
- children: /* @__PURE__ */ (0, z.jsx)("feGaussianBlur", { stdDeviation: "25" })
+ children: /* @__PURE__ */ (0, R.jsx)("feGaussianBlur", { stdDeviation: "25" })
}),
- /* @__PURE__ */ (0, z.jsx)("mask", {
+ /* @__PURE__ */ (0, R.jsx)("mask", {
id: r,
maskUnits: "userSpaceOnUse",
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
x: "8%",
y: "20%",
width: "85%",
@@ -69692,7 +69695,7 @@ function H4({ variant: e }) {
filter: `url(#${i})`
})
})
- ] }), /* @__PURE__ */ (0, z.jsx)("rect", {
+ ] }), /* @__PURE__ */ (0, R.jsx)("rect", {
width: "100%",
height: "100%",
fill: `url(#${n})`,
@@ -69707,27 +69710,27 @@ var U4 = 2, qLe = "loading", JLe = 2e3, YLe = "evil-stacked", XLe = .5, ZLe = .0
.7,
.5,
1
-], W4 = (0, R.createContext)(null);
+], W4 = (0, L.createContext)(null);
function G4() {
- let e = (0, R.use)(W4);
+ let e = (0, L.use)(W4);
if (!e) throw Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");
return e;
}
function K4({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = U4, 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 } = _Re(m, h), { visibleData: T, brushProps: E } = GLe({ data: t }), D = (0, R.useMemo)(() => {
- let e = R.Children.toArray(n), t = e.find((e) => (0, R.isValidElement)(e) && e.type === z4), r = (0, R.isValidElement)(t) ? t.props : {};
+ let _ = (0, L.useId)().replace(/:/g, ""), [v] = (0, L.useState)(() => Date.now()), [y, b] = (0, L.useState)(f), [x, S] = (0, L.useState)(!1), { loadingData: C, onShimmerExit: w } = _Re(m, h), { visibleData: T, brushProps: E } = GLe({ data: t }), D = (0, L.useMemo)(() => {
+ let e = L.Children.toArray(n), t = e.find((e) => (0, L.isValidElement)(e) && e.type === z4), r = (0, L.isValidElement)(t) ? t.props : {};
return {
slot: {
- present: (0, R.isValidElement)(t),
+ present: (0, L.isValidElement)(t),
height: r.height,
formatLabel: r.formatLabel,
onChange: r.onChange
},
- chartChildren: e.filter((e) => !((0, R.isValidElement)(e) && e.type === z4))
+ chartChildren: e.filter((e) => !((0, L.isValidElement)(e) && e.type === z4))
};
- }, [n]), O = D.slot.present, k = a === "stacked" || a === "percent", A = o === "horizontal", j = O && !m ? T : t, M = (0, R.useCallback)((e) => {
+ }, [n]), O = D.slot.present, k = a === "stacked" || a === "percent", A = o === "horizontal", j = O && !m ? T : t, M = (0, L.useCallback)((e) => {
b(e), p?.(e);
- }, [p]), N = (0, R.useMemo)(() => ({
+ }, [p]), N = (0, L.useMemo)(() => ({
config: e,
isStacked: k,
isHorizontal: A,
@@ -69752,12 +69755,12 @@ function K4({ config: e, data: t, children: n, className: r, chartProps: i, stac
M,
x
]);
- return /* @__PURE__ */ (0, z.jsx)(W4, {
+ return /* @__PURE__ */ (0, R.jsx)(W4, {
value: N,
- children: /* @__PURE__ */ (0, z.jsxs)(A4, {
+ children: /* @__PURE__ */ (0, R.jsxs)(A4, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, z.jsx)(ULe, {
+ footer: O && !m && /* @__PURE__ */ (0, R.jsx)(ULe, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -69773,7 +69776,7 @@ function K4({ config: e, data: t, children: n, className: r, chartProps: i, stac
E.onChange(e), D.slot.onChange?.(e);
}
}),
- children: [/* @__PURE__ */ (0, z.jsx)(j4, { isLoading: m }), /* @__PURE__ */ (0, z.jsxs)(g4, {
+ children: [/* @__PURE__ */ (0, R.jsx)(j4, { isLoading: m }), /* @__PURE__ */ (0, R.jsxs)(g4, {
id: _,
accessibilityLayer: !0,
layout: A ? "vertical" : "horizontal",
@@ -69785,10 +69788,10 @@ function K4({ config: e, data: t, children: n, className: r, chartProps: i, stac
onMouseLeave: () => S(!1),
...i,
children: [
- d && /* @__PURE__ */ (0, z.jsx)(H4, { variant: d }),
- /* @__PURE__ */ (0, z.jsx)(e0, { color: "white" }),
+ d && /* @__PURE__ */ (0, R.jsx)(H4, { variant: d }),
+ /* @__PURE__ */ (0, R.jsx)(e0, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, z.jsx)(vRe, {
+ m && /* @__PURE__ */ (0, R.jsx)(vRe, {
chartId: _,
onShimmerExit: w
})
@@ -69798,7 +69801,7 @@ function K4({ config: e, data: t, children: n, className: r, chartProps: i, stac
});
}
function $Le({ 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 } = G4(), b = (0, R.useId)().replace(/:/g, ""), x = pme();
+ let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = G4(), b = (0, L.useId)().replace(/:/g, ""), x = pme();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
id: b,
@@ -69818,57 +69821,57 @@ function $Le({ dataKey: e, variant: t = "default", radius: n, animationType: r,
i && v(C ? null : e);
}
};
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(c2, {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(c2, {
dataKey: e,
stackId: u ? YLe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
style: i || a ? { cursor: "pointer" } : void 0,
- shape: (e) => /* @__PURE__ */ (0, z.jsx)(q4, {
+ shape: (e) => /* @__PURE__ */ (0, R.jsx)(q4, {
...e,
...T,
animationType: w
}),
- activeBar: (e) => /* @__PURE__ */ (0, z.jsx)(q4, {
+ activeBar: (e) => /* @__PURE__ */ (0, R.jsx)(q4, {
...e,
...T,
animationType: "none"
}),
...c
- }), /* @__PURE__ */ (0, z.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, z.jsx)(cRe, {
+ }), /* @__PURE__ */ (0, R.jsxs)("defs", { children: [
+ /* @__PURE__ */ (0, R.jsx)(cRe, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, z.jsx)(lRe, {
+ t === "hatched" && /* @__PURE__ */ (0, R.jsx)(lRe, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, z.jsx)(dRe, {
+ t === "duotone" && /* @__PURE__ */ (0, R.jsx)(dRe, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, z.jsx)(fRe, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, R.jsx)(fRe, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, z.jsx)(pRe, {
+ t === "gradient" && /* @__PURE__ */ (0, R.jsx)(pRe, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, z.jsx)(mRe, {
+ t === "stripped" && /* @__PURE__ */ (0, R.jsx)(mRe, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, z.jsx)(uRe, {
+ s && /* @__PURE__ */ (0, R.jsx)(uRe, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, z.jsx)(hRe, {
+ o && /* @__PURE__ */ (0, R.jsx)(hRe, {
id: b,
dataKey: e
})
@@ -69876,7 +69879,7 @@ function $Le({ dataKey: e, variant: t = "default", radius: n, animationType: r,
}
function eRe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
let { isLoading: o, isHorizontal: s } = G4();
- return o ? null : /* @__PURE__ */ (0, z.jsx)(g2, {
+ return o ? null : /* @__PURE__ */ (0, R.jsx)(g2, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -69887,7 +69890,7 @@ function eRe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
}
function tRe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
let { isLoading: s, isHorizontal: c } = G4();
- return s ? null : /* @__PURE__ */ (0, z.jsx)(x2, {
+ return s ? null : /* @__PURE__ */ (0, R.jsx)(x2, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -69899,7 +69902,7 @@ function tRe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
}
function nRe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
let { isHorizontal: i } = G4();
- return /* @__PURE__ */ (0, z.jsx)(_0, {
+ return /* @__PURE__ */ (0, R.jsx)(_0, {
strokeDasharray: e,
vertical: t ?? i,
horizontal: n ?? !i,
@@ -69908,10 +69911,10 @@ function nRe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
}
function rRe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = G4();
- return r ? null : /* @__PURE__ */ (0, z.jsx)(I4, {
+ return r ? null : /* @__PURE__ */ (0, R.jsx)(I4, {
cursor: !1,
defaultIndex: n,
- content: /* @__PURE__ */ (0, z.jsx)(F4, {
+ content: /* @__PURE__ */ (0, R.jsx)(F4, {
selected: i,
roundness: t,
variant: e
@@ -69920,10 +69923,10 @@ function rRe({ variant: e, roundness: t, defaultIndex: n }) {
}
function iRe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
let { selectedDataKey: i, selectDataKey: a } = G4();
- return /* @__PURE__ */ (0, z.jsx)(R4, {
+ return /* @__PURE__ */ (0, R.jsx)(R4, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, z.jsx)(L4, {
+ content: /* @__PURE__ */ (0, R.jsx)(L4, {
selected: i,
onSelectChange: a,
isClickable: r,
@@ -69944,7 +69947,7 @@ var q4 = (e) => {
c,
0,
0
- ] : c, A = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(EW, {
+ ] : c, A = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(EW, {
x: t,
y: n,
width: r,
@@ -69955,7 +69958,7 @@ var q4 = (e) => {
filter: E,
stroke: S ? `url(#${a}-colors-${o})` : void 0,
strokeWidth: S ? 1 : void 0
- }), C && /* @__PURE__ */ (0, z.jsx)(EW, {
+ }), C && /* @__PURE__ */ (0, R.jsx)(EW, {
x: t,
y: n - 4,
width: r,
@@ -69963,13 +69966,13 @@ var q4 = (e) => {
radius: 1,
fill: `url(#${a}-colors-${o})`
})] });
- return /* @__PURE__ */ (0, z.jsxs)("g", {
+ return /* @__PURE__ */ (0, R.jsxs)("g", {
style: O,
onClick: b,
- children: [/* @__PURE__ */ (0, z.jsx)(EW, {
+ children: [/* @__PURE__ */ (0, R.jsx)(EW, {
...e,
fill: "transparent"
- }), w ? /* @__PURE__ */ (0, z.jsx)(ZP.g, {
+ }), w ? /* @__PURE__ */ (0, R.jsx)(ZP.g, {
initial: w.initial,
animate: w.animate,
transition: w.transition,
@@ -70024,28 +70027,28 @@ var q4 = (e) => {
return r && i ? a ? o : o * .3 : o;
}, cRe = ({ id: e, dataKey: t, config: n }) => {
let r = P4(n[t] ?? {});
- return /* @__PURE__ */ (0, z.jsx)("linearGradient", {
+ return /* @__PURE__ */ (0, R.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
y1: "0",
x2: "0",
y2: "1",
- children: r === 1 ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("stop", {
+ children: r === 1 ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("stop", {
offset: "0%",
stopColor: `var(--color-${t}-0)`
- }), /* @__PURE__ */ (0, z.jsx)("stop", {
+ }), /* @__PURE__ */ (0, R.jsx)("stop", {
offset: "100%",
stopColor: `var(--color-${t}-0)`
})] }) : Array.from({ length: r }, (e, n) => {
let i = `${n / (r - 1) * 100}%`;
- return /* @__PURE__ */ (0, z.jsx)("stop", {
+ return /* @__PURE__ */ (0, R.jsx)("stop", {
offset: i,
stopColor: `var(--color-${t}-${n}, var(--color-${t}-0))`
}, i);
})
});
-}, lRe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsxs)("pattern", {
+}, lRe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
y: "0",
@@ -70053,40 +70056,40 @@ var q4 = (e) => {
height: "5",
patternUnits: "userSpaceOnUse",
patternTransform: "rotate(-45)",
- children: [/* @__PURE__ */ (0, z.jsx)("rect", {
+ children: [/* @__PURE__ */ (0, R.jsx)("rect", {
width: "5",
height: "5",
fill: "white",
fillOpacity: .3
- }), /* @__PURE__ */ (0, z.jsx)("rect", {
+ }), /* @__PURE__ */ (0, R.jsx)("rect", {
width: "1.5",
height: "5",
fill: "white",
fillOpacity: 1
})]
}),
- /* @__PURE__ */ (0, z.jsx)("mask", {
+ /* @__PURE__ */ (0, R.jsx)("mask", {
id: `${e}-hatched-mask-${t}`,
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
width: "100%",
height: "100%",
fill: `url(#${e}-hatched-mask-pattern)`
})
}),
- /* @__PURE__ */ (0, z.jsx)("pattern", {
+ /* @__PURE__ */ (0, R.jsx)("pattern", {
id: `${e}-hatched-${t}`,
patternUnits: "userSpaceOnUse",
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
width: "100%",
height: "100%",
fill: `url(#${e}-colors-${t})`,
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), uRe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsxs)("pattern", {
+] }), uRe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
y: "0",
@@ -70094,32 +70097,32 @@ var q4 = (e) => {
height: "5",
patternUnits: "userSpaceOnUse",
patternTransform: "rotate(-45)",
- children: [/* @__PURE__ */ (0, z.jsx)("rect", {
+ children: [/* @__PURE__ */ (0, R.jsx)("rect", {
width: "5",
height: "5",
fill: "black",
fillOpacity: 0
- }), /* @__PURE__ */ (0, z.jsx)("rect", {
+ }), /* @__PURE__ */ (0, R.jsx)("rect", {
width: "1",
height: "5",
fill: "white",
fillOpacity: 1
})]
}),
- /* @__PURE__ */ (0, z.jsx)("mask", {
+ /* @__PURE__ */ (0, R.jsx)("mask", {
id: `${e}-buffer-hatched-mask-${t}`,
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
width: "100%",
height: "100%",
fill: `url(#${e}-buffer-hatched-mask-pattern)`
})
}),
- /* @__PURE__ */ (0, z.jsx)("pattern", {
+ /* @__PURE__ */ (0, R.jsx)("pattern", {
id: `${e}-buffer-hatched-${t}`,
patternUnits: "userSpaceOnUse",
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
width: "100%",
height: "100%",
fill: `url(#${e}-colors-${t})`,
@@ -70128,49 +70131,49 @@ var q4 = (e) => {
})
] }), dRe = ({ id: e, dataKey: t, config: n }) => {
let r = P4(n[t] ?? {});
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsxs)("linearGradient", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsxs)("linearGradient", {
id: `${e}-duotone-mask-gradient-${t}`,
gradientUnits: "objectBoundingBox",
x1: "0",
y1: "0",
x2: "1",
y2: "0",
- children: [/* @__PURE__ */ (0, z.jsx)("stop", {
+ children: [/* @__PURE__ */ (0, R.jsx)("stop", {
offset: "50%",
stopColor: "white",
stopOpacity: .4
- }), /* @__PURE__ */ (0, z.jsx)("stop", {
+ }), /* @__PURE__ */ (0, R.jsx)("stop", {
offset: "50%",
stopColor: "white",
stopOpacity: 1
})]
}),
- /* @__PURE__ */ (0, z.jsx)("linearGradient", {
+ /* @__PURE__ */ (0, R.jsx)("linearGradient", {
id: `${e}-duotone-colors-${t}`,
gradientUnits: "objectBoundingBox",
x1: "0",
y1: "0",
x2: "0",
y2: "1",
- children: r === 1 ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("stop", {
+ children: r === 1 ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("stop", {
offset: "0%",
stopColor: `var(--color-${t}-0)`
- }), /* @__PURE__ */ (0, z.jsx)("stop", {
+ }), /* @__PURE__ */ (0, R.jsx)("stop", {
offset: "100%",
stopColor: `var(--color-${t}-0)`
})] }) : Array.from({ length: r }, (e, n) => {
let i = `${n / (r - 1) * 100}%`;
- return /* @__PURE__ */ (0, z.jsx)("stop", {
+ return /* @__PURE__ */ (0, R.jsx)("stop", {
offset: i,
stopColor: `var(--color-${t}-${n}, var(--color-${t}-0))`
}, i);
})
}),
- /* @__PURE__ */ (0, z.jsx)("mask", {
+ /* @__PURE__ */ (0, R.jsx)("mask", {
id: `${e}-duotone-mask-${t}`,
maskContentUnits: "objectBoundingBox",
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
x: "0",
y: "0",
width: "1",
@@ -70178,13 +70181,13 @@ var q4 = (e) => {
fill: `url(#${e}-duotone-mask-gradient-${t})`
})
}),
- /* @__PURE__ */ (0, z.jsx)("pattern", {
+ /* @__PURE__ */ (0, R.jsx)("pattern", {
id: `${e}-duotone-${t}`,
patternUnits: "objectBoundingBox",
patternContentUnits: "objectBoundingBox",
width: "1",
height: "1",
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
x: "0",
y: "0",
width: "1",
@@ -70196,49 +70199,49 @@ var q4 = (e) => {
] });
}, fRe = ({ id: e, dataKey: t, config: n }) => {
let r = P4(n[t] ?? {});
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsxs)("linearGradient", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsxs)("linearGradient", {
id: `${e}-duotone-reverse-mask-gradient-${t}`,
gradientUnits: "objectBoundingBox",
x1: "0",
y1: "0",
x2: "1",
y2: "0",
- children: [/* @__PURE__ */ (0, z.jsx)("stop", {
+ children: [/* @__PURE__ */ (0, R.jsx)("stop", {
offset: "50%",
stopColor: "white",
stopOpacity: 1
- }), /* @__PURE__ */ (0, z.jsx)("stop", {
+ }), /* @__PURE__ */ (0, R.jsx)("stop", {
offset: "50%",
stopColor: "white",
stopOpacity: .4
})]
}),
- /* @__PURE__ */ (0, z.jsx)("linearGradient", {
+ /* @__PURE__ */ (0, R.jsx)("linearGradient", {
id: `${e}-duotone-reverse-colors-${t}`,
gradientUnits: "objectBoundingBox",
x1: "0",
y1: "0",
x2: "0",
y2: "1",
- children: r === 1 ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("stop", {
+ children: r === 1 ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("stop", {
offset: "0%",
stopColor: `var(--color-${t}-0)`
- }), /* @__PURE__ */ (0, z.jsx)("stop", {
+ }), /* @__PURE__ */ (0, R.jsx)("stop", {
offset: "100%",
stopColor: `var(--color-${t}-0)`
})] }) : Array.from({ length: r }, (e, n) => {
let i = `${n / (r - 1) * 100}%`;
- return /* @__PURE__ */ (0, z.jsx)("stop", {
+ return /* @__PURE__ */ (0, R.jsx)("stop", {
offset: i,
stopColor: `var(--color-${t}-${n}, var(--color-${t}-0))`
}, i);
})
}),
- /* @__PURE__ */ (0, z.jsx)("mask", {
+ /* @__PURE__ */ (0, R.jsx)("mask", {
id: `${e}-duotone-reverse-mask-${t}`,
maskContentUnits: "objectBoundingBox",
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
x: "0",
y: "0",
width: "1",
@@ -70246,13 +70249,13 @@ var q4 = (e) => {
fill: `url(#${e}-duotone-reverse-mask-gradient-${t})`
})
}),
- /* @__PURE__ */ (0, z.jsx)("pattern", {
+ /* @__PURE__ */ (0, R.jsx)("pattern", {
id: `${e}-duotone-reverse-${t}`,
patternUnits: "objectBoundingBox",
patternContentUnits: "objectBoundingBox",
width: "1",
height: "1",
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
x: "0",
y: "0",
width: "1",
@@ -70262,99 +70265,99 @@ var q4 = (e) => {
})
})
] });
-}, pRe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsxs)("linearGradient", {
+}, pRe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
y1: "0",
x2: "0",
y2: "1",
- children: [/* @__PURE__ */ (0, z.jsx)("stop", {
+ children: [/* @__PURE__ */ (0, R.jsx)("stop", {
offset: "20%",
stopColor: "white",
stopOpacity: 1
- }), /* @__PURE__ */ (0, z.jsx)("stop", {
+ }), /* @__PURE__ */ (0, R.jsx)("stop", {
offset: "90%",
stopColor: "white",
stopOpacity: 0
})]
}),
- /* @__PURE__ */ (0, z.jsx)("mask", {
+ /* @__PURE__ */ (0, R.jsx)("mask", {
id: `${e}-gradient-mask-${t}`,
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
width: "100%",
height: "100%",
fill: `url(#${e}-gradient-mask-gradient)`
})
}),
- /* @__PURE__ */ (0, z.jsx)("pattern", {
+ /* @__PURE__ */ (0, R.jsx)("pattern", {
id: `${e}-gradient-${t}`,
patternUnits: "userSpaceOnUse",
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
width: "100%",
height: "100%",
fill: `url(#${e}-colors-${t})`,
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), mRe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsxs)("linearGradient", {
+] }), mRe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
y1: "0",
x2: "0",
y2: "1",
- children: [/* @__PURE__ */ (0, z.jsx)("stop", {
+ children: [/* @__PURE__ */ (0, R.jsx)("stop", {
offset: "0%",
stopColor: "white",
stopOpacity: .2
- }), /* @__PURE__ */ (0, z.jsx)("stop", {
+ }), /* @__PURE__ */ (0, R.jsx)("stop", {
offset: "100%",
stopColor: "white",
stopOpacity: .2
})]
}),
- /* @__PURE__ */ (0, z.jsx)("mask", {
+ /* @__PURE__ */ (0, R.jsx)("mask", {
id: `${e}-stripped-mask-${t}`,
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
width: "100%",
height: "100%",
fill: `url(#${e}-stripped-mask-gradient)`
})
}),
- /* @__PURE__ */ (0, z.jsx)("pattern", {
+ /* @__PURE__ */ (0, R.jsx)("pattern", {
id: `${e}-stripped-${t}`,
patternUnits: "userSpaceOnUse",
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
width: "100%",
height: "100%",
fill: `url(#${e}-colors-${t})`,
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), hRe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)("filter", {
+] }), hRe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
width: "300%",
height: "300%",
children: [
- /* @__PURE__ */ (0, z.jsx)("feGaussianBlur", {
+ /* @__PURE__ */ (0, R.jsx)("feGaussianBlur", {
in: "SourceGraphic",
stdDeviation: "8",
result: "blur"
}),
- /* @__PURE__ */ (0, z.jsx)("feColorMatrix", {
+ /* @__PURE__ */ (0, R.jsx)("feColorMatrix", {
in: "blur",
type: "matrix",
values: "1 0 0 0 0\n 0 1 0 0 0\n 0 0 1 0 0\n 0 0 0 0.5 0",
result: "glow"
}),
- /* @__PURE__ */ (0, z.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, z.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, z.jsx)("feMergeNode", { in: "SourceGraphic" })] })
+ /* @__PURE__ */ (0, R.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, R.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, R.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
}), gRe = (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);
@@ -70364,15 +70367,15 @@ var q4 = (e) => {
};
});
function _Re(e, t = 12) {
- let [n, r] = (0, R.useState)(!1), i = (0, R.useCallback)(() => {
+ let [n, r] = (0, L.useState)(!1), i = (0, L.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, R.useMemo)(() => FLe(t, 20, 80), [t, n]),
+ loadingData: (0, L.useMemo)(() => FLe(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var vRe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(c2, {
+var vRe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(c2, {
dataKey: qLe,
fill: "currentColor",
fillOpacity: .15,
@@ -70380,25 +70383,25 @@ var vRe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fr
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)(yRe, {
+}), /* @__PURE__ */ (0, R.jsx)("defs", { children: /* @__PURE__ */ (0, R.jsx)(yRe, {
chartId: e,
onShimmerExit: t
}) })] }), yRe = ({ chartId: e, onShimmerExit: t }) => {
- let n = gRe(), r = (0, R.useRef)(-1);
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)("linearGradient", {
+ let n = gRe(), r = (0, L.useRef)(-1);
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
x1: "0",
y1: "0",
x2: "1",
y2: "0",
- children: n.map(({ offset: e, opacity: t }) => /* @__PURE__ */ (0, z.jsx)("stop", {
+ children: n.map(({ offset: e, opacity: t }) => /* @__PURE__ */ (0, R.jsx)("stop", {
offset: e,
stopColor: "white",
stopOpacity: t
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)("pattern", {
+ /* @__PURE__ */ (0, R.jsx)("pattern", {
id: `${e}-loading-mask-pattern`,
patternUnits: "objectBoundingBox",
patternContentUnits: "objectBoundingBox",
@@ -70407,7 +70410,7 @@ var vRe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fr
height: "1",
x: "0",
y: "0",
- children: /* @__PURE__ */ (0, z.jsx)(ZP.rect, {
+ children: /* @__PURE__ */ (0, R.jsx)(ZP.rect, {
y: "0",
width: "1",
height: "1",
@@ -70426,10 +70429,10 @@ var vRe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fr
}
})
}),
- /* @__PURE__ */ (0, z.jsx)("mask", {
+ /* @__PURE__ */ (0, R.jsx)("mask", {
id: `${e}-loading-mask`,
maskUnits: "userSpaceOnUse",
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
width: "100%",
height: "100%",
fill: `url(#${e}-loading-mask-pattern)`
@@ -70440,20 +70443,20 @@ var vRe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fr
K4.Bar = $Le, K4.XAxis = eRe, K4.YAxis = tRe, K4.Grid = nRe, K4.Tooltip = rRe, K4.Legend = iRe, K4.Brush = z4;
//#endregion
//#region src/react/charts/chart-card.tsx
-var J4 = `${Zi({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+var J4 = `${Qi({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
function Y4({ title: e, figure: t, note: n }) {
- return /* @__PURE__ */ (0, z.jsxs)("header", {
+ return /* @__PURE__ */ (0, R.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
- children: [/* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
- children: [/* @__PURE__ */ (0, z.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: e
- }), /* @__PURE__ */ (0, z.jsx)("b", {
+ }), /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-display-4-medium tabular-nums text-text-primary",
children: t
})]
- }), /* @__PURE__ */ (0, z.jsx)("small", {
+ }), /* @__PURE__ */ (0, R.jsx)("small", {
className: "min-w-0 text-caption-1-regular break-words text-text-secondary",
children: n
})]
@@ -70477,14 +70480,14 @@ function bRe(e) {
//#region src/react/charts/chart-tip.tsx
var $4 = "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 e3({ swatch: e, name: t, value: n }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex w-full items-center gap-2",
- children: [e, /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [e, /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-1 items-center justify-between gap-4 leading-none",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "text-muted-foreground",
children: t
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
className: "font-mono font-medium tabular-nums text-foreground",
children: n.toLocaleString()
})]
@@ -70494,19 +70497,19 @@ function e3({ swatch: e, name: t, value: n }) {
var t3 = "size-2.5 shrink-0 rounded-xs";
function xRe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
let { config: o } = k4(), s = (t ?? []).filter((e) => e.type !== "none");
- if (!e || !s.length) return /* @__PURE__ */ (0, z.jsx)("span", { className: "p-4" });
+ if (!e || !s.length) return /* @__PURE__ */ (0, R.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: $4,
- children: [c ? /* @__PURE__ */ (0, z.jsx)("div", {
+ children: [c ? /* @__PURE__ */ (0, R.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 = N4(o, e, a), c = i ? n[i] : e.value;
- return /* @__PURE__ */ (0, z.jsx)(e3, {
+ return /* @__PURE__ */ (0, R.jsx)(e3, {
name: s?.label ?? e.name,
value: Number(c ?? 0),
- swatch: /* @__PURE__ */ (0, z.jsx)("i", {
+ swatch: /* @__PURE__ */ (0, R.jsx)("i", {
className: t3,
style: { background: `var(--color-${a}-0)` }
})
@@ -70515,9 +70518,9 @@ function xRe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLab
});
}
function n3({ nameKey: e, valueKey: t, hideLabel: n }) {
- return /* @__PURE__ */ (0, z.jsx)(I4, {
+ return /* @__PURE__ */ (0, R.jsx)(I4, {
cursor: !1,
- content: /* @__PURE__ */ (0, z.jsx)(xRe, {
+ content: /* @__PURE__ */ (0, R.jsx)(xRe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -70538,14 +70541,14 @@ function a3({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vert
})), s = o.reduce((e, t) => e + t.value, 0);
if (!s) return null;
let c = a === "horizontal";
- return /* @__PURE__ */ (0, z.jsxs)("section", {
+ return /* @__PURE__ */ (0, R.jsxs)("section", {
className: J4,
"aria-label": e,
- children: [/* @__PURE__ */ (0, z.jsx)(Y4, {
+ children: [/* @__PURE__ */ (0, R.jsx)(Y4, {
title: e,
figure: s.toLocaleString(),
note: t
- }), /* @__PURE__ */ (0, z.jsxs)(K4, {
+ }), /* @__PURE__ */ (0, R.jsxs)(K4, {
data: o,
config: { value: {
label: n,
@@ -70555,22 +70558,22 @@ function a3({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vert
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, z.jsx)(K4.Grid, {}),
- c ? /* @__PURE__ */ (0, z.jsx)(K4.YAxis, {
+ /* @__PURE__ */ (0, R.jsx)(K4.Grid, {}),
+ c ? /* @__PURE__ */ (0, R.jsx)(K4.YAxis, {
dataKey: "name",
interval: 0
- }) : /* @__PURE__ */ (0, z.jsx)(K4.XAxis, {
+ }) : /* @__PURE__ */ (0, R.jsx)(K4.XAxis, {
dataKey: "name",
interval: 0
}),
- c ? /* @__PURE__ */ (0, z.jsx)(K4.XAxis, {
+ c ? /* @__PURE__ */ (0, R.jsx)(K4.XAxis, {
hide: !0,
domain: r3
- }) : /* @__PURE__ */ (0, z.jsx)(K4.YAxis, {
+ }) : /* @__PURE__ */ (0, R.jsx)(K4.YAxis, {
hide: !0,
domain: r3
}),
- /* @__PURE__ */ (0, z.jsx)(K4.Bar, {
+ /* @__PURE__ */ (0, R.jsx)(K4.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
@@ -70578,7 +70581,7 @@ function a3({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vert
label: i3(c ? "right" : "top")
}
}),
- /* @__PURE__ */ (0, z.jsx)(n3, {})
+ /* @__PURE__ */ (0, R.jsx)(n3, {})
]
})]
});
@@ -70656,25 +70659,25 @@ var c3 = 14, l3 = 17, u3 = {
end: "-translate-x-full"
};
function TRe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${$4} ${wRe[a]}`,
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
- }), /* @__PURE__ */ (0, z.jsx)(e3, {
+ }), /* @__PURE__ */ (0, R.jsx)(e3, {
name: t,
value: e.count,
- swatch: /* @__PURE__ */ (0, z.jsx)("i", { className: `${t3} ${u3[n].dot}` })
+ swatch: /* @__PURE__ */ (0, R.jsx)("i", { className: `${t3} ${u3[n].dot}` })
})]
});
}
function d3({ 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 * l3, m = f + a * l3, h = (e) => ({
+ let [l, u] = (0, L.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * l3, m = f + a * l3, h = (e) => ({
x: d + e % i * l3,
y: f + Math.floor(e / i) * l3
}), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + c3 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
@@ -70682,19 +70685,19 @@ function d3({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
center: _.x + c3 / 2,
end: _.x + c3
}[y] : 0;
- return /* @__PURE__ */ (0, z.jsxs)("section", {
+ return /* @__PURE__ */ (0, R.jsxs)("section", {
className: J4,
children: [
- /* @__PURE__ */ (0, z.jsx)(Y4, {
+ /* @__PURE__ */ (0, R.jsx)(Y4, {
title: e,
figure: (g ? g.count : r).toLocaleString(),
note: g ? g.label : t.unit
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "relative",
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "min-w-0 overflow-x-auto",
- children: /* @__PURE__ */ (0, z.jsxs)("svg", {
+ children: /* @__PURE__ */ (0, R.jsxs)("svg", {
role: "img",
"aria-label": e,
onPointerLeave: () => u(-1),
@@ -70702,7 +70705,7 @@ function d3({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
className: "block h-auto min-w-80 w-full",
children: [o, n.map((e, n) => {
let { x: r, y: i } = h(n);
- return /* @__PURE__ */ (0, z.jsx)("rect", {
+ return /* @__PURE__ */ (0, R.jsx)("rect", {
tabIndex: 0,
role: "img",
"aria-label": `${e.label},${e.count} ${t.cellUnit}`,
@@ -70720,7 +70723,7 @@ function d3({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, z.jsx)(TRe, {
+ }), g && _ ? /* @__PURE__ */ (0, R.jsx)(TRe, {
cell: g,
series: t.series,
tone: c,
@@ -70729,20 +70732,20 @@ function d3({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
top: _.y / m * 100
}) : null]
}),
- /* @__PURE__ */ (0, z.jsx)("footer", {
+ /* @__PURE__ */ (0, R.jsx)("footer", {
className: "flex flex-wrap justify-between gap-3 text-caption-1-regular text-text-secondary",
children: s
})
]
});
}
-var ERe = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [o3.map((e, t) => /* @__PURE__ */ (0, z.jsx)("text", {
+var ERe = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [o3.map((e, t) => /* @__PURE__ */ (0, R.jsx)("text", {
x: 0,
y: 18 + t * l3 + 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, z.jsx)("text", {
+}, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, R.jsx)("text", {
x: 30 + t * l3,
y: 8,
dominantBaseline: "middle",
@@ -70751,9 +70754,9 @@ var ERe = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [o3.map((e, t) =>
}, t))] });
function f3({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
let o = SRe(e), s = CRe(e);
- return s.cells.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ return s.cells.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
- children: [/* @__PURE__ */ (0, z.jsx)(d3, {
+ children: [/* @__PURE__ */ (0, R.jsx)(d3, {
title: t,
words: r,
tone: i,
@@ -70762,8 +70765,8 @@ function f3({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
columns: 24,
rows: 7,
axis: ERe,
- footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
- }), /* @__PURE__ */ (0, z.jsx)(d3, {
+ footer: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, R.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
+ }), /* @__PURE__ */ (0, R.jsx)(d3, {
title: n,
words: r,
tone: i,
@@ -70771,14 +70774,14 @@ function f3({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: s.total,
columns: 13,
rows: 7,
- footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: s.start }), /* @__PURE__ */ (0, z.jsx)("span", { children: s.end })] })
+ footer: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("span", { children: s.start }), /* @__PURE__ */ (0, R.jsx)("span", { children: s.end })] })
})]
- }) : a ? /* @__PURE__ */ (0, z.jsxs)("section", {
+ }) : a ? /* @__PURE__ */ (0, R.jsxs)("section", {
className: J4,
- children: [/* @__PURE__ */ (0, z.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: t
- }), /* @__PURE__ */ (0, z.jsx)("p", {
+ }), /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: a
})]
@@ -70787,8 +70790,8 @@ function f3({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
//#endregion
//#region src/react/components/expandable-ranking.tsx
function p3({ 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 r = (0, L.useId)(), i = (0, L.useRef)(null), [a, o] = (0, L.useState)(!1), [s, c] = (0, L.useState)(!1), l = L.Children.toArray(e), u = l.length > n;
+ (0, L.useLayoutEffect)(() => {
let e = i.current;
if (!e || !u) return;
let t = () => {
@@ -70803,13 +70806,13 @@ function p3({ children: e, className: t = "", previewCount: n = 10 }) {
n,
l.length
]);
- let d = l.map((e, t) => !(0, R.isValidElement)(e) || t < n ? e : (0, R.cloneElement)(e, { inert: !a || void 0 }));
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ let d = l.map((e, t) => !(0, L.isValidElement)(e) || t < n ? e : (0, L.cloneElement)(e, { inert: !a || void 0 }));
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-expandable-ranking": !0,
"data-expandable": u || void 0,
"data-expanded": a || void 0,
"data-animating": s || void 0,
- children: [/* @__PURE__ */ (0, z.jsx)("ol", {
+ children: [/* @__PURE__ */ (0, R.jsx)("ol", {
id: r,
ref: i,
"data-expandable-ranking-list": !0,
@@ -70818,7 +70821,7 @@ function p3({ children: e, className: t = "", previewCount: n = 10 }) {
e.target === i.current && e.propertyName === "max-height" && c(!1);
},
children: d
- }), u ? /* @__PURE__ */ (0, z.jsx)("button", {
+ }), u ? /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-ranking-toggle": !0,
"aria-controls": r,
@@ -70827,32 +70830,32 @@ function p3({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, z.jsx)(Ue, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, R.jsx)(We, { "aria-hidden": !0 })
}) : null]
});
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var DRe = "30%", ORe = "100%", m3 = 5, h3 = 14, kRe = 5, g3 = 1500, _3 = (0, R.createContext)(null);
+var DRe = "30%", ORe = "100%", m3 = 5, h3 = 14, kRe = 5, g3 = 1500, _3 = (0, L.createContext)(null);
function v3() {
- let e = (0, R.use)(_3);
+ let e = (0, L.use)(_3);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
function y3({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = DRe, outerRadius: l = ORe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, R.useId)().replace(/:/g, ""), [h, g] = (0, R.useState)(u), _ = IRe(f), v = NRe(o), y = (0, R.useCallback)((e, t) => {
+ let m = (0, L.useId)().replace(/:/g, ""), [h, g] = (0, L.useState)(u), _ = IRe(f), v = NRe(o), y = (0, L.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
});
- }, [d]), b = (0, R.useMemo)(() => t.map((e) => ({
+ }, [d]), b = (0, L.useMemo)(() => t.map((e) => ({
...e,
fill: `url(#${m}-radial-colors-${e[n]})`
})), [
t,
n,
m
- ]), x = (0, R.useMemo)(() => ({
+ ]), x = (0, L.useMemo)(() => ({
config: e,
nameKey: n,
chartId: m,
@@ -70867,12 +70870,12 @@ function y3({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
h,
y
]);
- return /* @__PURE__ */ (0, z.jsx)(_3, {
+ return /* @__PURE__ */ (0, R.jsx)(_3, {
value: x,
- children: /* @__PURE__ */ (0, z.jsxs)(A4, {
+ children: /* @__PURE__ */ (0, R.jsxs)(A4, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, z.jsx)(j4, { isLoading: f }), /* @__PURE__ */ (0, z.jsxs)(MLe, {
+ children: [/* @__PURE__ */ (0, R.jsx)(j4, { isLoading: f }), /* @__PURE__ */ (0, R.jsxs)(MLe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -70883,16 +70886,16 @@ function y3({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
cy: v.cy,
...a,
children: [
- s != null && s > 0 && /* @__PURE__ */ (0, z.jsx)(S$, {
+ s != null && s > 0 && /* @__PURE__ */ (0, R.jsx)(S$, {
type: "number",
domain: [0, s],
tick: !1,
axisLine: !1
}),
- p && /* @__PURE__ */ (0, z.jsx)(H4, { variant: p }),
+ p && /* @__PURE__ */ (0, R.jsx)(H4, { variant: p }),
r,
- f && /* @__PURE__ */ (0, z.jsx)(LRe, {}),
- /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)(PRe, {
+ f && /* @__PURE__ */ (0, R.jsx)(LRe, {}),
+ /* @__PURE__ */ (0, R.jsx)("defs", { children: /* @__PURE__ */ (0, R.jsx)(PRe, {
config: e,
chartId: m
}) })
@@ -70903,7 +70906,7 @@ function y3({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
}
function ARe({ dataKey: e, cornerRadius: t = m3, barSize: n = h3, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = v3();
- return s ? null : /* @__PURE__ */ (0, z.jsx)(G1, {
+ return s ? null : /* @__PURE__ */ (0, R.jsx)(G1, {
dataKey: e,
cornerRadius: t,
barSize: n,
@@ -70917,7 +70920,7 @@ function ARe({ dataKey: e, cornerRadius: t = m3, barSize: n = h3, showBackground
},
shape: (e) => {
let t = e[o], n = c === null || c === t;
- return /* @__PURE__ */ (0, z.jsx)(LW, {
+ return /* @__PURE__ */ (0, R.jsx)(LW, {
...e,
opacity: i && !n ? .15 : 1,
className: "transition-opacity duration-200"
@@ -70928,10 +70931,10 @@ function ARe({ dataKey: e, cornerRadius: t = m3, barSize: n = h3, showBackground
}
function jRe({ variant: e, roundness: t, defaultIndex: n }) {
let { nameKey: r, isLoading: i } = v3();
- return i ? null : /* @__PURE__ */ (0, z.jsx)(I4, {
+ return i ? null : /* @__PURE__ */ (0, R.jsx)(I4, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, z.jsx)(F4, {
+ content: /* @__PURE__ */ (0, R.jsx)(F4, {
nameKey: r,
hideLabel: !0,
roundness: t,
@@ -70941,10 +70944,10 @@ function jRe({ variant: e, roundness: t, defaultIndex: n }) {
}
function MRe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = v3();
- return a ? null : /* @__PURE__ */ (0, z.jsx)(R4, {
+ return a ? null : /* @__PURE__ */ (0, R.jsx)(R4, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, z.jsx)(L4, {
+ content: /* @__PURE__ */ (0, R.jsx)(L4, {
selected: o,
onSelectChange: s,
isClickable: r,
@@ -70969,23 +70972,23 @@ function NRe(e) {
};
}
}
-var PRe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: Object.entries(e).map(([e, n]) => {
+var PRe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, R.jsx)(R.Fragment, { children: Object.entries(e).map(([e, n]) => {
let r = P4(n);
- return /* @__PURE__ */ (0, z.jsx)("linearGradient", {
+ return /* @__PURE__ */ (0, R.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
x1: "0",
y1: "0",
x2: "1",
y2: "1",
- children: r === 1 ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("stop", {
+ children: r === 1 ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("stop", {
offset: "0%",
stopColor: `var(--color-${e}-0)`
- }), /* @__PURE__ */ (0, z.jsx)("stop", {
+ }), /* @__PURE__ */ (0, R.jsx)("stop", {
offset: "100%",
stopColor: `var(--color-${e}-0)`
})] }) : Array.from({ length: r }, (t, n) => {
let i = `${n / (r - 1) * 100}%`;
- return /* @__PURE__ */ (0, z.jsx)("stop", {
+ return /* @__PURE__ */ (0, R.jsx)("stop", {
offset: i,
stopColor: `var(--color-${e}-${n}, var(--color-${e}-0))`
}, i);
@@ -70999,16 +71002,16 @@ function FRe() {
}));
}
function IRe(e) {
- let [t, n] = (0, R.useState)(0);
- return (0, R.useEffect)(() => {
+ let [t, n] = (0, L.useState)(0);
+ return (0, L.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
n((e) => e + 1);
}, g3);
return () => clearInterval(t);
- }, [e]), (0, R.useMemo)(() => FRe(), [t]);
+ }, [e]), (0, L.useMemo)(() => FRe(), [t]);
}
-var LRe = () => /* @__PURE__ */ (0, z.jsx)(G1, {
+var LRe = () => /* @__PURE__ */ (0, R.jsx)(G1, {
dataKey: "value",
cornerRadius: m3,
barSize: h3,
@@ -71016,7 +71019,7 @@ var LRe = () => /* @__PURE__ */ (0, z.jsx)(G1, {
isAnimationActive: !0,
animationDuration: g3,
animationEasing: "ease-in-out",
- shape: (e) => /* @__PURE__ */ (0, z.jsx)(LW, {
+ shape: (e) => /* @__PURE__ */ (0, R.jsx)(LW, {
...e,
fill: "currentColor",
fillOpacity: .25
@@ -71041,47 +71044,47 @@ var RRe = [
"aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"
];
function b3({ 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);
+ let [r, i] = (0, L.useState)(-1), [a, o] = (0, L.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: Q4(t),
value: e.value
}));
- return /* @__PURE__ */ (0, z.jsxs)("section", {
+ return /* @__PURE__ */ (0, R.jsxs)("section", {
className: J4,
children: [
- /* @__PURE__ */ (0, z.jsxs)("header", {
+ /* @__PURE__ */ (0, R.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
- children: [/* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
- children: [/* @__PURE__ */ (0, z.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: u ? u.name : e
- }), /* @__PURE__ */ (0, z.jsx)("b", {
+ }), /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-display-4-medium tabular-nums text-text-primary",
children: (u ? u.value : l).toLocaleString()
})]
- }), /* @__PURE__ */ (0, z.jsx)("small", {
+ }), /* @__PURE__ */ (0, R.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: n
})]
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
role: "img",
"aria-label": e,
onPointerLeave: () => o(-1),
- children: /* @__PURE__ */ (0, z.jsxs)(y3, {
+ children: /* @__PURE__ */ (0, R.jsxs)(y3, {
data: f,
nameKey: "slice",
config: bRe(s.map((e) => e.name)),
max: x_e(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
- children: [/* @__PURE__ */ (0, z.jsx)(y3.RadialBar, {
+ children: [/* @__PURE__ */ (0, R.jsx)(y3.RadialBar, {
dataKey: "value",
barSize: S_e(s.length),
radialBarProps: {
- shape: (e) => /* @__PURE__ */ (0, z.jsx)(LW, {
+ shape: (e) => /* @__PURE__ */ (0, R.jsx)(LW, {
...e,
opacity: c >= 0 && c !== e.index ? .3 : 1,
className: "cursor-pointer transition-opacity duration-200"
@@ -71089,15 +71092,15 @@ function b3({ title: e, rows: t, unit: n = "个视频" }) {
onClick: (e, t) => d(t),
onMouseEnter: (e, t) => o(t)
}
- }), /* @__PURE__ */ (0, z.jsx)(n3, {
+ }), /* @__PURE__ */ (0, R.jsx)(n3, {
nameKey: "slice",
hideLabel: !0
})]
})
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
className: "inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2",
- children: s.map((e, t) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: s.map((e, t) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"aria-pressed": r === t,
onClick: () => d(t),
@@ -71107,18 +71110,18 @@ function b3({ title: e, rows: t, unit: n = "个视频" }) {
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 ${zRe[t % 6]}`,
children: [
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, z.jsx)("i", {
+ children: [/* @__PURE__ */ (0, R.jsx)("i", {
"aria-hidden": !0,
className: `size-3 shrink-0 rounded-sm ${RRe[t % 6]}`
}), e.name]
}),
- /* @__PURE__ */ (0, z.jsx)("b", {
+ /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-title-2-medium tabular-nums text-text-primary",
children: e.value.toLocaleString()
}),
- e.detail ? /* @__PURE__ */ (0, z.jsx)("small", {
+ e.detail ? /* @__PURE__ */ (0, R.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
}) : null
@@ -71130,32 +71133,32 @@ function b3({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var BRe = 10, x3 = X4[5], VRe = X4[4], HRe = `${Zi()} flex flex-col gap-4`, URe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", WRe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", GRe = "开始播放后,这里会显示最近的真实观看证据。", KRe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", qRe = "添加媒体文件夹后,这里会显示存储空间。";
+var BRe = 10, x3 = X4[5], VRe = X4[4], HRe = `${Qi()} flex flex-col gap-4`, URe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", WRe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", GRe = "开始播放后,这里会显示最近的真实观看证据。", KRe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", qRe = "添加媒体文件夹后,这里会显示存储空间。";
function S3({ term: e, value: t }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.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, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e
- }), /* @__PURE__ */ (0, z.jsx)("b", {
+ }), /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-title-3-medium tabular-nums text-text-primary",
children: t.toLocaleString()
})]
});
}
function C3({ term: e, value: t, total: n }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
- children: [/* @__PURE__ */ (0, z.jsxs)("p", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("p", {
className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",
- children: [/* @__PURE__ */ (0, z.jsx)("span", { children: e }), /* @__PURE__ */ (0, z.jsxs)("b", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", { children: e }), /* @__PURE__ */ (0, R.jsxs)("b", {
className: "tabular-nums",
- children: [t.toLocaleString(), /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [t.toLocaleString(), /* @__PURE__ */ (0, R.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
children: [fI(t, n), "%"]
})]
})]
- }), /* @__PURE__ */ (0, z.jsx)(ia, {
+ }), /* @__PURE__ */ (0, R.jsx)(aa, {
label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
value: t,
max: Math.max(n, 1)
@@ -71163,18 +71166,18 @@ function C3({ term: e, value: t, total: n }) {
});
}
function w3({ term: e, figure: t, unit: n }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e
}),
- /* @__PURE__ */ (0, z.jsx)("b", {
+ /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-display-4-medium tabular-nums text-text-primary",
children: t
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: n
})
@@ -71182,27 +71185,27 @@ function w3({ term: e, figure: t, unit: n }) {
});
}
function T3({ headline: e, children: t }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: `${HRe} md:flex-row md:gap-6`,
- children: [e, /* @__PURE__ */ (0, z.jsx)("div", {
+ children: [e, /* @__PURE__ */ (0, R.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
function JRe({ data: t, configurable: n, openMediaSettings: r }) {
- return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-5",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2",
- children: [/* @__PURE__ */ (0, z.jsx)(b3, {
+ children: [/* @__PURE__ */ (0, R.jsx)(b3, {
title: "网盘与本地",
rows: t.by_loc.map((t) => ({
name: e[t.k] ?? t.k,
value: t.videos,
detail: s(t.bytes)
}))
- }), /* @__PURE__ */ (0, z.jsx)(b3, {
+ }), /* @__PURE__ */ (0, R.jsx)(b3, {
title: "媒体库",
rows: t.by_library.map((e) => ({
name: e.name,
@@ -71210,24 +71213,24 @@ function JRe({ data: t, configurable: n, openMediaSettings: r }) {
detail: s(e.bytes)
}))
})]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(a3, {
+ /* @__PURE__ */ (0, R.jsx)(a3, {
title: "时长",
unit: "个视频",
series: "视频",
color: x3,
rows: E_e(t.by_length)
}),
- /* @__PURE__ */ (0, z.jsx)(a3, {
+ /* @__PURE__ */ (0, R.jsx)(a3, {
title: "画质",
unit: "个视频",
series: "视频",
color: x3,
rows: hI(t.by_quality)
}),
- /* @__PURE__ */ (0, z.jsx)(a3, {
+ /* @__PURE__ */ (0, R.jsx)(a3, {
title: "文件类型",
unit: "个条目",
series: "条目",
@@ -71237,15 +71240,15 @@ function JRe({ data: t, configurable: n, openMediaSettings: r }) {
})
]
})]
- }) : /* @__PURE__ */ (0, z.jsx)($i, {
+ }) : /* @__PURE__ */ (0, R.jsx)(ea, {
shell: "plain",
- icon: Ct,
+ icon: wt,
title: "还没有视频",
- actions: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [n ? /* @__PURE__ */ (0, z.jsx)(H, {
+ actions: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [n ? /* @__PURE__ */ (0, R.jsx)(V, {
size: "small",
onClick: r,
children: "添加媒体文件夹"
- }) : null, /* @__PURE__ */ (0, z.jsx)(Vi, {
+ }) : null, /* @__PURE__ */ (0, R.jsx)(Hi, {
variant: "secondary",
href: "/follow-manage?tab=add",
size: "small",
@@ -71255,7 +71258,7 @@ function JRe({ data: t, configurable: n, openMediaSettings: r }) {
});
}
function YRe({ data: e }) {
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(f3, {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(f3, {
activity: e.play_activity,
title: "播放时间",
dailyTitle: "每日播放",
@@ -71265,7 +71268,7 @@ function YRe({ data: e }) {
cellUnit: "个作品"
},
tone: 5
- }), /* @__PURE__ */ (0, z.jsx)(a3, {
+ }), /* @__PURE__ */ (0, R.jsx)(a3, {
title: "播放次数",
unit: "个作品",
series: "作品",
@@ -71275,30 +71278,30 @@ function YRe({ data: e }) {
}
function XRe({ attribution: e }) {
let t = e.videos;
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col",
children: [
- /* @__PURE__ */ (0, z.jsx)(C3, {
+ /* @__PURE__ */ (0, R.jsx)(C3, {
term: "有创作者",
value: e.creator,
total: t
}),
- /* @__PURE__ */ (0, z.jsx)(C3, {
+ /* @__PURE__ */ (0, R.jsx)(C3, {
term: "有番号",
value: e.code,
total: t
}),
- /* @__PURE__ */ (0, z.jsx)(C3, {
+ /* @__PURE__ */ (0, R.jsx)(C3, {
term: "有厂牌",
value: e.studio,
total: t
}),
- /* @__PURE__ */ (0, z.jsx)(C3, {
+ /* @__PURE__ */ (0, R.jsx)(C3, {
term: "已抽帧",
value: e.thumb,
total: t
}),
- /* @__PURE__ */ (0, z.jsx)(C3, {
+ /* @__PURE__ */ (0, R.jsx)(C3, {
term: "已探测时长",
value: e.duration,
total: t
@@ -71308,36 +71311,36 @@ function XRe({ attribution: e }) {
}
function ZRe({ volume: e }) {
let t = e.total, n = e.used ?? 0;
- return /* @__PURE__ */ (0, z.jsxs)("article", {
+ return /* @__PURE__ */ (0, R.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
children: [
- /* @__PURE__ */ (0, z.jsxs)("header", {
+ /* @__PURE__ */ (0, R.jsxs)("header", {
className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",
- children: [/* @__PURE__ */ (0, z.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h3", {
className: "min-w-0 break-words",
children: e.label
- }), t == null ? /* @__PURE__ */ (0, z.jsx)("span", {
+ }), t == null ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "whitespace-nowrap text-text-secondary",
children: e.online ? "容量未取得" : "离线"
- }) : /* @__PURE__ */ (0, z.jsxs)("b", {
+ }) : /* @__PURE__ */ (0, R.jsxs)("b", {
className: "whitespace-nowrap tabular-nums",
- children: [s(n), /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [s(n), /* @__PURE__ */ (0, R.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
children: [fI(n, t), "%"]
})]
})]
}),
- t == null ? null : /* @__PURE__ */ (0, z.jsx)(ia, {
+ t == null ? null : /* @__PURE__ */ (0, R.jsx)(aa, {
label: `${e.label}空间使用率`,
value: n,
max: Math.max(t, 1)
}),
- /* @__PURE__ */ (0, z.jsxs)("p", {
+ /* @__PURE__ */ (0, R.jsxs)("p", {
className: "flex justify-between gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "min-w-0 break-words",
children: e.root ?? "未映射"
- }), t == null ? null : /* @__PURE__ */ (0, z.jsx)("span", {
+ }), t == null ? null : /* @__PURE__ */ (0, R.jsx)("span", {
className: "whitespace-nowrap tabular-nums",
children: `可用 ${s(e.free ?? 0)} · 共 ${s(t)}`
})]
@@ -71346,14 +71349,14 @@ function ZRe({ volume: e }) {
});
}
function QRe({ volumes: e, configurable: t, openMediaSettings: n }) {
- return e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ return e.length ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(ZRe, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, z.jsx)($i, {
+ children: e.map((e) => /* @__PURE__ */ (0, R.jsx)(ZRe, { volume: e }, `${e.kind}:${e.label}`))
+ }) : /* @__PURE__ */ (0, R.jsx)(ea, {
shell: "plain",
- icon: at,
+ icon: ot,
title: "还没有存储来源",
- actions: t ? /* @__PURE__ */ (0, z.jsx)(H, {
+ actions: t ? /* @__PURE__ */ (0, R.jsx)(V, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
@@ -71362,36 +71365,36 @@ function QRe({ volumes: e, configurable: t, openMediaSettings: n }) {
});
}
function $Re({ tags: e, tagLabel: t, onTag: n }) {
- return e.length ? /* @__PURE__ */ (0, z.jsx)(p3, {
+ return e.length ? /* @__PURE__ */ (0, R.jsx)(p3, {
previewCount: BRe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
- children: e.map((e, r) => /* @__PURE__ */ (0, z.jsx)("li", {
+ children: e.map((e, r) => /* @__PURE__ */ (0, R.jsx)("li", {
className: "min-w-0",
- children: /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
onClick: () => n(e.k),
className: "flex min-h-11 w-full min-w-0 cursor-pointer items-center gap-2.5 rounded-lg px-3 py-2 text-left outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: r + 1
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "min-w-0 grow text-body-2-regular break-words text-text-primary",
children: t(e.k)
}),
- /* @__PURE__ */ (0, z.jsx)("b", {
+ /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-body-2-medium tabular-nums text-text-secondary",
children: e.n.toLocaleString()
})
]
})
}, e.k))
- }) : /* @__PURE__ */ (0, z.jsx)($i, {
+ }) : /* @__PURE__ */ (0, R.jsx)(ea, {
shell: "plain",
- icon: pt,
+ icon: mt,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, z.jsx)(Vi, {
+ actions: /* @__PURE__ */ (0, R.jsx)(Hi, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
@@ -71401,43 +71404,43 @@ function $Re({ tags: e, tagLabel: t, onTag: n }) {
});
}
function eze({ rows: e }) {
- return e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ return e.length ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
let t = pI(e);
- return /* @__PURE__ */ (0, z.jsxs)("article", {
+ return /* @__PURE__ */ (0, R.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "min-w-0 grow basis-64",
- children: [/* @__PURE__ */ (0, z.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
- children: /* @__PURE__ */ (0, z.jsx)("a", {
+ children: /* @__PURE__ */ (0, R.jsx)("a", {
href: b_e(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
- }), /* @__PURE__ */ (0, z.jsxs)("p", {
+ }), /* @__PURE__ */ (0, R.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, z.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, z.jsx)("span", { children: y_e(e) })]
+ children: [/* @__PURE__ */ (0, R.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, R.jsx)("span", { children: y_e(e) })]
})]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, z.jsx)(ia, {
+ children: [/* @__PURE__ */ (0, R.jsx)(aa, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
- }), /* @__PURE__ */ (0, z.jsx)("small", {
+ }), /* @__PURE__ */ (0, R.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
children: `真实 ${t.toFixed(0)}% · 到达 ${mI(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, z.jsx)($i, {
+ }) : /* @__PURE__ */ (0, R.jsx)(ea, {
shell: "plain",
- icon: ot,
+ icon: st,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, z.jsx)(Vi, {
+ actions: /* @__PURE__ */ (0, R.jsx)(Hi, {
variant: "secondary",
href: "/",
size: "small",
@@ -71447,40 +71450,40 @@ function eze({ rows: e }) {
});
}
function tze({ sources: e, videos: t }) {
- return e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ return e.length ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
- children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)("article", {
+ children: e.map((e) => /* @__PURE__ */ (0, R.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5",
children: [
- /* @__PURE__ */ (0, z.jsxs)("header", {
+ /* @__PURE__ */ (0, R.jsxs)("header", {
className: "flex items-baseline justify-between gap-3",
- children: [/* @__PURE__ */ (0, z.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h3", {
className: "min-w-0 text-body-2-medium break-words text-text-primary",
children: e.k
- }), /* @__PURE__ */ (0, z.jsxs)("b", {
+ }), /* @__PURE__ */ (0, R.jsxs)("b", {
className: "text-body-2-medium whitespace-nowrap text-text-primary",
- children: [e.assets.toLocaleString(), /* @__PURE__ */ (0, z.jsx)("small", {
+ children: [e.assets.toLocaleString(), /* @__PURE__ */ (0, R.jsx)("small", {
className: "ml-1 text-caption-1-regular font-normal text-text-secondary",
children: "个视频"
})]
})]
}),
- /* @__PURE__ */ (0, z.jsx)(ia, {
+ /* @__PURE__ */ (0, R.jsx)(aa, {
label: `${e.k} 覆盖视频`,
value: e.assets,
max: Math.max(t, 1)
}),
- /* @__PURE__ */ (0, z.jsxs)("small", {
+ /* @__PURE__ */ (0, R.jsxs)("small", {
className: "text-caption-1-regular text-text-secondary",
children: [e.n.toLocaleString(), " 条标签"]
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, z.jsx)($i, {
+ }) : /* @__PURE__ */ (0, R.jsx)(ea, {
shell: "plain",
- icon: pt,
+ icon: mt,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, z.jsx)(Vi, {
+ actions: /* @__PURE__ */ (0, R.jsx)(Hi, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
@@ -71490,13 +71493,13 @@ function tze({ sources: e, videos: t }) {
});
}
function E3({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, z.jsx)(sy, {
+ return /* @__PURE__ */ (0, R.jsx)(cy, {
id: e,
- className: vS({
+ className: yS({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, z.jsx)(SS, {
+ children: /* @__PURE__ */ (0, R.jsx)(CS, {
label: t,
icon: i,
accent: a,
@@ -71506,138 +71509,138 @@ function E3({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
});
}
function nze(e) {
- let t = $n({
+ let t = er({
queryKey: uI,
queryFn: ({ signal: e }) => dI(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, z.jsx)(ta, { children: /* @__PURE__ */ (0, z.jsx)(K, {
+ if (!n) return /* @__PURE__ */ (0, R.jsx)(na, { children: /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "馆藏统计读取失败",
- children: t.error ? U(t.error) : "未取得统计数据,请刷新页面重试。"
+ children: t.error ? H(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), c = fI(n.tag_cov, n.attribution.videos);
- return /* @__PURE__ */ (0, z.jsxs)(ta, { children: [
- /* @__PURE__ */ (0, z.jsx)("p", {
+ return /* @__PURE__ */ (0, R.jsxs)(na, { children: [
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${s(o)}`
}),
- /* @__PURE__ */ (0, z.jsxs)(ay, {
+ /* @__PURE__ */ (0, R.jsxs)(oy, {
defaultSelectedKey: "inventory",
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, z.jsxs)(oy, {
+ /* @__PURE__ */ (0, R.jsxs)(sy, {
"aria-label": "统计视图",
- className: yS,
+ className: bS,
children: [
- /* @__PURE__ */ (0, z.jsx)(E3, {
+ /* @__PURE__ */ (0, R.jsx)(E3, {
id: "inventory",
label: "馆藏视频",
- icon: Qe,
+ icon: $e,
accent: 0,
figure: a.toLocaleString(),
detail: s(o)
}),
- /* @__PURE__ */ (0, z.jsx)(E3, {
+ /* @__PURE__ */ (0, R.jsx)(E3, {
id: "viewing",
label: "看过",
- icon: nt,
+ icon: rt,
accent: 1,
figure: r.played.toLocaleString(),
detail: v_e(r.play_seconds)
}),
- /* @__PURE__ */ (0, z.jsx)(E3, {
+ /* @__PURE__ */ (0, R.jsx)(E3, {
id: "coverage",
label: "内容标签",
- icon: pt,
+ icon: mt,
accent: 2,
figure: `${c}%`,
detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- /* @__PURE__ */ (0, z.jsx)(E3, {
+ /* @__PURE__ */ (0, R.jsx)(E3, {
id: "storage",
label: "使用空间",
- icon: at,
+ icon: ot,
accent: 3,
figure: `${i.online} 个卷`,
detail: i.measured ? `已用 ${s(i.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(cy, {
+ /* @__PURE__ */ (0, R.jsx)(ly, {
id: "inventory",
- children: /* @__PURE__ */ (0, z.jsx)(JRe, {
+ children: /* @__PURE__ */ (0, R.jsx)(JRe, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, z.jsxs)(cy, {
+ /* @__PURE__ */ (0, R.jsxs)(ly, {
id: "viewing",
className: "flex flex-col gap-5",
- children: [/* @__PURE__ */ (0, z.jsx)(T3, {
- headline: /* @__PURE__ */ (0, z.jsx)(w3, {
+ children: [/* @__PURE__ */ (0, R.jsx)(T3, {
+ headline: /* @__PURE__ */ (0, R.jsx)(w3, {
term: "观看",
figure: r.played.toLocaleString(),
unit: "个作品有播放记录"
}),
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(S3, {
+ /* @__PURE__ */ (0, R.jsx)(S3, {
term: "馆藏观看",
value: r.library_played
}),
- /* @__PURE__ */ (0, z.jsx)(S3, {
+ /* @__PURE__ */ (0, R.jsx)(S3, {
term: "在线直接观看",
value: r.online_played
}),
- /* @__PURE__ */ (0, z.jsx)(S3, {
+ /* @__PURE__ */ (0, R.jsx)(S3, {
term: "高潮计数",
value: r.o_total
}),
- /* @__PURE__ */ (0, z.jsx)(S3, {
+ /* @__PURE__ */ (0, R.jsx)(S3, {
term: "快进扫过",
value: r.skimmed
}),
- /* @__PURE__ */ (0, z.jsx)(S3, {
+ /* @__PURE__ */ (0, R.jsx)(S3, {
term: "喜欢",
value: r.liked
}),
- /* @__PURE__ */ (0, z.jsx)(S3, {
+ /* @__PURE__ */ (0, R.jsx)(S3, {
term: "明确不喜欢",
value: r.dislike
}),
- /* @__PURE__ */ (0, z.jsx)(S3, {
+ /* @__PURE__ */ (0, R.jsx)(S3, {
term: "看过了",
value: r.seen
}),
- /* @__PURE__ */ (0, z.jsx)(S3, {
+ /* @__PURE__ */ (0, R.jsx)(S3, {
term: "回收站",
value: r.trash
})
]
})
- }), /* @__PURE__ */ (0, z.jsx)(YRe, { data: n })]
+ }), /* @__PURE__ */ (0, R.jsx)(YRe, { data: n })]
}),
- /* @__PURE__ */ (0, z.jsx)(cy, {
+ /* @__PURE__ */ (0, R.jsx)(ly, {
id: "coverage",
- children: /* @__PURE__ */ (0, z.jsx)(T3, {
- headline: /* @__PURE__ */ (0, z.jsx)(w3, {
+ children: /* @__PURE__ */ (0, R.jsx)(T3, {
+ headline: /* @__PURE__ */ (0, R.jsx)(w3, {
term: "内容标签覆盖",
figure: `${c}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, z.jsx)(XRe, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, R.jsx)(XRe, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, z.jsx)(cy, {
+ /* @__PURE__ */ (0, R.jsx)(ly, {
id: "storage",
- children: /* @__PURE__ */ (0, z.jsx)(T3, {
- headline: /* @__PURE__ */ (0, z.jsx)(w3, {
+ children: /* @__PURE__ */ (0, R.jsx)(T3, {
+ headline: /* @__PURE__ */ (0, R.jsx)(w3, {
term: "使用空间",
figure: String(i.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, z.jsx)(QRe, {
+ children: /* @__PURE__ */ (0, R.jsx)(QRe, {
volumes: n.storage_volumes,
...e
})
@@ -71645,27 +71648,27 @@ function nze(e) {
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)(ay, {
+ /* @__PURE__ */ (0, R.jsxs)(oy, {
defaultSelectedKey: "tags",
- className: `${Zi({ padding: "none" })} flex flex-col`,
+ className: `${Qi({ padding: "none" })} flex flex-col`,
children: [
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, z.jsxs)(WO, {
+ children: /* @__PURE__ */ (0, R.jsxs)(WO, {
"aria-label": "统计维度",
className: KO,
children: [
- /* @__PURE__ */ (0, z.jsx)(sy, {
+ /* @__PURE__ */ (0, R.jsx)(cy, {
id: "tags",
className: qO,
children: "内容标签"
}),
- /* @__PURE__ */ (0, z.jsx)(sy, {
+ /* @__PURE__ */ (0, R.jsx)(cy, {
id: "recent",
className: qO,
children: "最近看过"
}),
- /* @__PURE__ */ (0, z.jsx)(sy, {
+ /* @__PURE__ */ (0, R.jsx)(cy, {
id: "sources",
className: qO,
children: "标签来源"
@@ -71673,23 +71676,23 @@ function nze(e) {
]
})
}),
- /* @__PURE__ */ (0, z.jsx)(cy, {
+ /* @__PURE__ */ (0, R.jsx)(ly, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, z.jsx)($Re, {
+ children: /* @__PURE__ */ (0, R.jsx)($Re, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, z.jsx)(cy, {
+ /* @__PURE__ */ (0, R.jsx)(ly, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, z.jsx)(eze, { rows: n.recent })
+ children: /* @__PURE__ */ (0, R.jsx)(eze, { rows: n.recent })
}),
- /* @__PURE__ */ (0, z.jsx)(cy, {
+ /* @__PURE__ */ (0, R.jsx)(ly, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, z.jsx)(tze, {
+ children: /* @__PURE__ */ (0, R.jsx)(tze, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -72051,17 +72054,17 @@ var bze = "/api/taste", B3 = "/api/taste/refresh", xze = "/api/taste/import", Sz
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], H3 = (e, t) => W(`${bze}?window=${e}`, t), Tze = (e) => W(B3, e);
+], H3 = (e, t) => U(`${bze}?window=${e}`, t), Tze = (e) => U(B3, e);
async function Eze(e, t) {
- await X.fetchQuery({
+ await Y.fetchQuery({
queryKey: V3(e),
queryFn: () => H3(e, t)
});
}
-var Dze = (e) => G(B3, {
+var Dze = (e) => W(B3, {
window: e,
background: !0
-}), Oze = (e, t) => G(Sze, {
+}), Oze = (e, t) => W(Sze, {
operation: "remove",
source_key: e,
window: t
@@ -72081,7 +72084,7 @@ async function kze(e) {
} catch {}
if (!t.ok) {
let e = n?.error;
- throw new Hi(e || `导入失败(${t.status})`, t.status, n);
+ throw new Ui(e || `导入失败(${t.status})`, t.status, n);
}
return n;
}
@@ -72158,11 +72161,11 @@ function Ize(e = []) {
total: a
};
}
-var Lze = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, q3 = 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)})`;
+var Lze = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, q3 = L.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+ let c = L.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, z.jsx)(Y3, {
+ case "border": return /* @__PURE__ */ (0, R.jsx)(Y3, {
cx: e,
cy: t,
dotId: c,
@@ -72171,7 +72174,7 @@ var Lze = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, q3 = R.memo(functio
className: i,
maskId: s
});
- case "colored-border": return /* @__PURE__ */ (0, z.jsx)(X3, {
+ case "colored-border": return /* @__PURE__ */ (0, R.jsx)(X3, {
cx: e,
cy: t,
dotId: c,
@@ -72180,7 +72183,7 @@ var Lze = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, q3 = R.memo(functio
className: i,
maskId: s
});
- default: return /* @__PURE__ */ (0, z.jsx)(J3, {
+ default: return /* @__PURE__ */ (0, R.jsx)(J3, {
cx: e,
cy: t,
dotId: c,
@@ -72190,17 +72193,17 @@ var Lze = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, q3 = R.memo(functio
maskId: s
});
}
-}), J3 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, z.jsxs)("g", {
+}), J3 = L.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, R.jsxs)("g", {
className: a,
mask: o ? `url(#${o})` : void 0,
- children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)("clipPath", {
+ children: [/* @__PURE__ */ (0, R.jsx)("defs", { children: /* @__PURE__ */ (0, R.jsx)("clipPath", {
id: `dot-clip-${n}`,
- children: /* @__PURE__ */ (0, z.jsx)("circle", {
+ children: /* @__PURE__ */ (0, R.jsx)("circle", {
cx: e,
cy: t,
r: 3
})
- }) }), /* @__PURE__ */ (0, z.jsx)("rect", {
+ }) }), /* @__PURE__ */ (0, R.jsx)("rect", {
x: "0",
y: t - 3,
width: "100%",
@@ -72211,25 +72214,25 @@ var Lze = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, q3 = R.memo(functio
})]
}));
J3.displayName = "DefaultDot";
-var Y3 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, z.jsxs)("g", {
+var Y3 = L.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, R.jsxs)("g", {
className: T4(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
- /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)("clipPath", {
+ /* @__PURE__ */ (0, R.jsx)("defs", { children: /* @__PURE__ */ (0, R.jsx)("clipPath", {
id: `dot-clip-${n}`,
- children: /* @__PURE__ */ (0, z.jsx)("circle", {
+ children: /* @__PURE__ */ (0, R.jsx)("circle", {
cx: e,
cy: t,
r: 6
})
}) }),
- /* @__PURE__ */ (0, z.jsx)("circle", {
+ /* @__PURE__ */ (0, R.jsx)("circle", {
cx: e,
cy: t,
r: 6,
fill: "currentColor"
}),
- /* @__PURE__ */ (0, z.jsx)("rect", {
+ /* @__PURE__ */ (0, R.jsx)("rect", {
x: "0",
y: t - (6 - 5 / 2),
width: "100%",
@@ -72238,9 +72241,9 @@ var Y3 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
fillOpacity: r,
clipPath: `url(#dot-clip-inner-${n})`
}),
- /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)("clipPath", {
+ /* @__PURE__ */ (0, R.jsx)("defs", { children: /* @__PURE__ */ (0, R.jsx)("clipPath", {
id: `dot-clip-inner-${n}`,
- children: /* @__PURE__ */ (0, z.jsx)("circle", {
+ children: /* @__PURE__ */ (0, R.jsx)("circle", {
cx: e,
cy: t,
r: 6 - 5 / 2
@@ -72249,19 +72252,19 @@ var Y3 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
]
}));
Y3.displayName = "PrimaryBorderDot";
-var X3 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, z.jsxs)("g", {
+var X3 = L.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, R.jsxs)("g", {
className: T4(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
- /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)("clipPath", {
+ /* @__PURE__ */ (0, R.jsx)("defs", { children: /* @__PURE__ */ (0, R.jsx)("clipPath", {
id: `dot-clip-${n}`,
- children: /* @__PURE__ */ (0, z.jsx)("circle", {
+ children: /* @__PURE__ */ (0, R.jsx)("circle", {
cx: e,
cy: t,
r: 3.5
})
}) }),
- /* @__PURE__ */ (0, z.jsx)("rect", {
+ /* @__PURE__ */ (0, R.jsx)("rect", {
x: "0",
y: t - 3 - 1 / 2,
width: "100%",
@@ -72270,7 +72273,7 @@ var X3 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
fillOpacity: r,
clipPath: `url(#dot-clip-${n})`
}),
- /* @__PURE__ */ (0, z.jsx)("circle", {
+ /* @__PURE__ */ (0, R.jsx)("circle", {
cx: e,
cy: t,
r: 3 - 1 / 2,
@@ -72281,16 +72284,16 @@ var X3 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
X3.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var Rze = 1, zze = .3, Bze = 6, Z3 = 1500, Q3 = "value", $3 = (0, R.createContext)(null);
+var Rze = 1, zze = .3, Bze = 6, Z3 = 1500, Q3 = "value", $3 = (0, L.createContext)(null);
function e6() {
- let e = (0, R.use)($3);
+ let e = (0, L.use)($3);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
function t6({ 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 = $ze(c, l), m = (0, R.useCallback)((e) => {
+ let u = (0, L.useId)().replace(/:/g, ""), [d, f] = (0, L.useState)(o), p = $ze(c, l), m = (0, L.useCallback)((e) => {
f(e), s?.(e);
- }, [s]), h = (0, R.useMemo)(() => ({
+ }, [s]), h = (0, L.useMemo)(() => ({
config: e,
isLoading: c,
selectedDataKey: d,
@@ -72301,33 +72304,33 @@ function t6({ config: e, data: t, children: n, className: r, chartProps: i, back
d,
m
]);
- return /* @__PURE__ */ (0, z.jsx)($3, {
+ return /* @__PURE__ */ (0, R.jsx)($3, {
value: h,
- children: /* @__PURE__ */ (0, z.jsxs)(A4, {
+ children: /* @__PURE__ */ (0, R.jsxs)(A4, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, z.jsx)(j4, { isLoading: c }), /* @__PURE__ */ (0, z.jsxs)(wLe, {
+ children: [/* @__PURE__ */ (0, R.jsx)(j4, { isLoading: c }), /* @__PURE__ */ (0, R.jsxs)(wLe, {
id: u,
data: c ? p : t,
...i,
children: [
- a && /* @__PURE__ */ (0, z.jsx)(H4, { variant: a }),
+ a && /* @__PURE__ */ (0, R.jsx)(H4, { variant: a }),
n,
- c && /* @__PURE__ */ (0, z.jsx)(eBe, {})
+ c && /* @__PURE__ */ (0, R.jsx)(eBe, {})
]
})]
})
});
}
function Vze({ dataKey: e, variant: t = "filled", fillOpacity: n = zze, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
- let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = e6(), d = (0, R.useId)().replace(/:/g, "");
+ let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = e6(), d = (0, L.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 } = qze(a, d, e, p.dot);
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(h1, {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(h1, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
@@ -72343,23 +72346,23 @@ function Vze({ dataKey: e, variant: t = "filled", fillOpacity: n = zze, isGlowin
i && u(l === e ? null : e);
},
...o
- }), /* @__PURE__ */ (0, z.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, z.jsx)(Jze, {
+ }), /* @__PURE__ */ (0, R.jsxs)("defs", { children: [
+ /* @__PURE__ */ (0, R.jsx)(Jze, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, z.jsx)(Yze, {
+ /* @__PURE__ */ (0, R.jsx)(Yze, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, z.jsx)(Xze, {
+ m && /* @__PURE__ */ (0, R.jsx)(Xze, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, z.jsx)(Zze, {
+ r && /* @__PURE__ */ (0, R.jsx)(Zze, {
id: d,
dataKey: e
})
@@ -72367,7 +72370,7 @@ function Vze({ dataKey: e, variant: t = "filled", fillOpacity: n = zze, isGlowin
}
var n6 = () => null, r6 = () => null;
function Hze({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
- return /* @__PURE__ */ (0, z.jsx)(c$, {
+ return /* @__PURE__ */ (0, R.jsx)(c$, {
gridType: e,
stroke: t,
strokeOpacity: n,
@@ -72380,7 +72383,7 @@ function Uze({ tick: e = {
fontSize: 12
}, tickLine: t = !1, ...n }) {
let { isLoading: r } = e6();
- return r ? null : /* @__PURE__ */ (0, z.jsx)(S$, {
+ return r ? null : /* @__PURE__ */ (0, R.jsx)(S$, {
tick: e,
tickLine: t,
...n
@@ -72391,7 +72394,7 @@ function Wze({ tick: e = {
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
let { isLoading: i } = e6();
- return i ? null : /* @__PURE__ */ (0, z.jsx)(g$, {
+ return i ? null : /* @__PURE__ */ (0, R.jsx)(g$, {
tick: e,
tickLine: t,
axisLine: n,
@@ -72400,10 +72403,10 @@ function Wze({ tick: e = {
}
function Gze({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = e6();
- return r ? null : /* @__PURE__ */ (0, z.jsx)(I4, {
+ return r ? null : /* @__PURE__ */ (0, R.jsx)(I4, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, z.jsx)(F4, {
+ content: /* @__PURE__ */ (0, R.jsx)(F4, {
selected: i,
roundness: t,
variant: e
@@ -72412,10 +72415,10 @@ function Gze({ variant: e, roundness: t, defaultIndex: n }) {
}
function Kze({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { isLoading: i, selectedDataKey: a, selectDataKey: o } = e6();
- return i ? null : /* @__PURE__ */ (0, z.jsx)(R4, {
+ return i ? null : /* @__PURE__ */ (0, R.jsx)(R4, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, z.jsx)(L4, {
+ content: /* @__PURE__ */ (0, R.jsx)(L4, {
selected: a,
onSelectChange: o,
isClickable: r,
@@ -72425,11 +72428,11 @@ function Kze({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
}
var qze = (e, t, n, r) => {
let i = !1, a = !1;
- return R.Children.forEach(e, (e) => {
- if ((0, R.isValidElement)(e)) {
+ return L.Children.forEach(e, (e) => {
+ if ((0, L.isValidElement)(e)) {
if (e.type === n6) {
let { variant: a } = e.props;
- i = /* @__PURE__ */ (0, z.jsx)(q3, {
+ i = /* @__PURE__ */ (0, R.jsx)(q3, {
type: a,
dataKey: n,
chartId: t,
@@ -72438,7 +72441,7 @@ var qze = (e, t, n, r) => {
}
if (e.type === r6) {
let { variant: i } = e.props;
- a = /* @__PURE__ */ (0, z.jsx)(q3, {
+ a = /* @__PURE__ */ (0, R.jsx)(q3, {
type: i,
dataKey: n,
chartId: t,
@@ -72450,79 +72453,79 @@ var qze = (e, t, n, r) => {
dot: i,
activeDot: a
};
-}, i6 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("stop", {
+}, i6 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("stop", {
offset: "0%",
stopColor: `var(--color-${e}-0)`,
stopOpacity: n?.[0]
-}), /* @__PURE__ */ (0, z.jsx)("stop", {
+}), /* @__PURE__ */ (0, R.jsx)("stop", {
offset: "100%",
stopColor: `var(--color-${e}-0)`,
stopOpacity: n?.[n.length - 1]
-})] }) : /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: Array.from({ length: t }, (r, i) => {
+})] }) : /* @__PURE__ */ (0, R.jsx)(R.Fragment, { children: Array.from({ length: t }, (r, i) => {
let a = `${i / (t - 1) * 100}%`;
- return /* @__PURE__ */ (0, z.jsx)("stop", {
+ return /* @__PURE__ */ (0, R.jsx)("stop", {
offset: a,
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
}) }), Jze = ({ id: e, dataKey: t, config: n }) => {
let r = P4(n[t] ?? {});
- return /* @__PURE__ */ (0, z.jsx)("linearGradient", {
+ return /* @__PURE__ */ (0, R.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "0",
- children: /* @__PURE__ */ (0, z.jsx)(i6, {
+ children: /* @__PURE__ */ (0, R.jsx)(i6, {
dataKey: t,
colorsCount: r
})
});
}, Yze = ({ id: e, dataKey: t, config: n }) => {
let r = P4(n[t] ?? {});
- return /* @__PURE__ */ (0, z.jsx)("linearGradient", {
+ return /* @__PURE__ */ (0, R.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "1",
- children: /* @__PURE__ */ (0, z.jsx)(i6, {
+ children: /* @__PURE__ */ (0, R.jsx)(i6, {
dataKey: t,
colorsCount: r
})
});
}, Xze = ({ id: e, dataKey: t, config: n }) => {
let r = P4(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
- return /* @__PURE__ */ (0, z.jsx)("radialGradient", {
+ return /* @__PURE__ */ (0, R.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
cx: "50%",
cy: "50%",
r: "50%",
- children: /* @__PURE__ */ (0, z.jsx)(i6, {
+ children: /* @__PURE__ */ (0, R.jsx)(i6, {
dataKey: t,
colorsCount: r,
opacities: i
})
});
-}, Zze = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)("filter", {
+}, Zze = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
width: "200%",
height: "200%",
children: [
- /* @__PURE__ */ (0, z.jsx)("feGaussianBlur", {
+ /* @__PURE__ */ (0, R.jsx)("feGaussianBlur", {
in: "SourceGraphic",
stdDeviation: "4",
result: "blur"
}),
- /* @__PURE__ */ (0, z.jsx)("feColorMatrix", {
+ /* @__PURE__ */ (0, R.jsx)("feColorMatrix", {
in: "blur",
type: "matrix",
values: "1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.6 0",
result: "glow"
}),
- /* @__PURE__ */ (0, z.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, z.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, z.jsx)("feMergeNode", { in: "SourceGraphic" })] })
+ /* @__PURE__ */ (0, R.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, R.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, R.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
}), Qze = (e) => [
"A",
@@ -72536,16 +72539,16 @@ var qze = (e, t, n, r) => {
[Q3]: 30 + Math.random() * 70
}));
function $ze(e, t = Bze) {
- let [n, r] = (0, R.useState)(0);
- return (0, R.useEffect)(() => {
+ let [n, r] = (0, L.useState)(0);
+ return (0, L.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
r((e) => e + 1);
}, Z3);
return () => clearInterval(t);
- }, [e]), (0, R.useMemo)(() => Qze(t), [t, n]);
+ }, [e]), (0, L.useMemo)(() => Qze(t), [t, n]);
}
-var eBe = () => /* @__PURE__ */ (0, z.jsx)(h1, {
+var eBe = () => /* @__PURE__ */ (0, R.jsx)(h1, {
dataKey: Q3,
stroke: "currentColor",
strokeOpacity: .3,
@@ -72595,34 +72598,34 @@ function sBe({ rows: e, label: t }) {
...e,
radius: oBe(e.value, r)
}));
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
- children: /* @__PURE__ */ (0, z.jsxs)(t6, {
+ children: /* @__PURE__ */ (0, R.jsxs)(t6, {
data: i,
config: aBe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
- /* @__PURE__ */ (0, z.jsx)(t6.PolarGrid, {}),
- /* @__PURE__ */ (0, z.jsx)(t6.PolarAngleAxis, { dataKey: "name" }),
- /* @__PURE__ */ (0, z.jsx)(t6.PolarRadiusAxis, {
+ /* @__PURE__ */ (0, R.jsx)(t6.PolarGrid, {}),
+ /* @__PURE__ */ (0, R.jsx)(t6.PolarAngleAxis, { dataKey: "name" }),
+ /* @__PURE__ */ (0, R.jsx)(t6.PolarRadiusAxis, {
domain: [0, 1],
allowDecimals: !0,
tick: !1
}),
- /* @__PURE__ */ (0, z.jsx)(t6.Radar, { dataKey: "radius" }),
- /* @__PURE__ */ (0, z.jsx)(n3, { valueKey: "value" })
+ /* @__PURE__ */ (0, R.jsx)(t6.Radar, { dataKey: "radius" }),
+ /* @__PURE__ */ (0, R.jsx)(n3, { valueKey: "value" })
]
})
});
}
function cBe({ rows: e, label: t }) {
let n = W3(e, 8);
- return n.length ? /* @__PURE__ */ (0, z.jsx)("section", {
+ return n.length ? /* @__PURE__ */ (0, R.jsx)("section", {
"aria-label": t,
className: `flex grow flex-col ${rBe[n.length]}`,
- children: /* @__PURE__ */ (0, z.jsxs)(K4, {
+ children: /* @__PURE__ */ (0, R.jsxs)(K4, {
data: n,
config: a6,
layout: "horizontal",
@@ -72630,15 +72633,15 @@ function cBe({ rows: e, label: t }) {
chartProps: { maxBarSize: iBe },
className: "aspect-auto text-text-secondary",
children: [
- /* @__PURE__ */ (0, z.jsx)(K4.YAxis, {
+ /* @__PURE__ */ (0, R.jsx)(K4.YAxis, {
dataKey: "name",
interval: 0
}),
- /* @__PURE__ */ (0, z.jsx)(K4.XAxis, {
+ /* @__PURE__ */ (0, R.jsx)(K4.XAxis, {
hide: !0,
domain: r3
}),
- /* @__PURE__ */ (0, z.jsx)(K4.Bar, {
+ /* @__PURE__ */ (0, R.jsx)(K4.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
@@ -72646,33 +72649,33 @@ function cBe({ rows: e, label: t }) {
label: i3("right")
}
}),
- /* @__PURE__ */ (0, z.jsx)(n3, {})
+ /* @__PURE__ */ (0, R.jsx)(n3, {})
]
})
}) : null;
}
function lBe({ flows: e }) {
- let [t, n] = (0, R.useState)(null), r = Ize(e);
+ let [t, n] = (0, L.useState)(null), r = Ize(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, z.jsxs)("section", {
+ return /* @__PURE__ */ (0, R.jsxs)("section", {
className: J4,
children: [
- /* @__PURE__ */ (0, z.jsx)(Y4, {
+ /* @__PURE__ */ (0, R.jsx)(Y4, {
title: "创作者线索来源",
figure: (t ? t.value : r.total).toLocaleString(),
note: t ? t.label : "条线索"
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
className: "min-w-0 overflow-x-auto",
- children: /* @__PURE__ */ (0, z.jsxs)("svg", {
+ children: /* @__PURE__ */ (0, R.jsxs)("svg", {
viewBox: `0 0 ${G3.width} ${G3.height}`,
fill: "none",
role: "img",
"aria-label": "来源网站与创作者线索",
className: "block h-auto max-h-130 min-w-160 w-full",
onPointerLeave: () => n(null),
- children: [/* @__PURE__ */ (0, z.jsx)("g", { children: r.links.map((e) => /* @__PURE__ */ (0, z.jsx)("path", {
+ children: [/* @__PURE__ */ (0, R.jsx)("g", { children: r.links.map((e) => /* @__PURE__ */ (0, R.jsx)("path", {
d: e.d,
strokeWidth: e.width,
tabIndex: 0,
@@ -72692,7 +72695,7 @@ function lBe({ flows: e }) {
node: null
}),
onBlur: () => n(null)
- }, e.key)) }), /* @__PURE__ */ (0, z.jsx)("g", { children: r.nodes.map((e) => /* @__PURE__ */ (0, z.jsxs)("g", {
+ }, e.key)) }), /* @__PURE__ */ (0, R.jsx)("g", { children: r.nodes.map((e) => /* @__PURE__ */ (0, R.jsxs)("g", {
tabIndex: 0,
role: "img",
"aria-label": `${e.name}:${e.value} 条线索`,
@@ -72708,20 +72711,20 @@ function lBe({ flows: e }) {
node: e.index
}),
onBlur: () => n(null),
- children: [/* @__PURE__ */ (0, z.jsx)("rect", {
+ children: [/* @__PURE__ */ (0, R.jsx)("rect", {
x: e.x,
y: e.y,
width: 10,
height: e.height,
rx: 5,
className: e.side === "source" ? nBe[e.color] : "fill-text-secondary"
- }), /* @__PURE__ */ (0, z.jsxs)("text", {
+ }), /* @__PURE__ */ (0, R.jsxs)("text", {
x: K3[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: [Lze(e.name), /* @__PURE__ */ (0, z.jsx)("tspan", {
+ children: [Lze(e.name), /* @__PURE__ */ (0, R.jsx)("tspan", {
x: K3[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
@@ -72730,20 +72733,20 @@ function lBe({ flows: e }) {
}, e.id)) })]
})
}),
- /* @__PURE__ */ (0, z.jsxs)("footer", {
+ /* @__PURE__ */ (0, R.jsxs)("footer", {
className: "flex justify-between gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, z.jsx)("span", { children: "来源网站" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "创作者 · 线索占比" })]
+ children: [/* @__PURE__ */ (0, R.jsx)("span", { children: "来源网站" }), /* @__PURE__ */ (0, R.jsx)("span", { children: "创作者 · 线索占比" })]
})
]
});
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var uBe = 10, o6 = Ii(hy, gy, "text-body-2-medium"), s6 = `${Zi()} flex flex-col gap-4`, c6 = "rounded-xl bg-background-primary-default p-3", dBe = "读取运行 Peach 的这台电脑上的浏览记录", fBe = "导入或读取浏览记录后,这里会列出已采集设备。", pBe = "馆藏里暂时没有对得上浏览信号的标签。", mBe = "采集浏览记录后,这里会显示聚合后的口味证据。", hBe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", gBe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", _Be = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", vBe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", yBe = "这个数据源将不再用于口味分析。原始导出文件保留。", l6 = "peach-taste-guide-dismissed";
+var uBe = 10, o6 = Li(gy, _y, "text-body-2-medium"), s6 = `${Qi()} flex flex-col gap-4`, c6 = "rounded-xl bg-background-primary-default p-3", dBe = "读取运行 Peach 的这台电脑上的浏览记录", fBe = "导入或读取浏览记录后,这里会列出已采集设备。", pBe = "馆藏里暂时没有对得上浏览信号的标签。", mBe = "采集浏览记录后,这里会显示聚合后的口味证据。", hBe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", gBe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", _Be = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", vBe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", yBe = "这个数据源将不再用于口味分析。原始导出文件保留。", l6 = "peach-taste-guide-dismissed";
function u6({ icon: e, term: t, figure: n, detail: r, accent: i }) {
- return /* @__PURE__ */ (0, z.jsx)("div", {
- className: vS(),
- children: /* @__PURE__ */ (0, z.jsx)(SS, {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
+ className: yS(),
+ children: /* @__PURE__ */ (0, R.jsx)(CS, {
label: t,
icon: e,
accent: i,
@@ -72753,9 +72756,9 @@ function u6({ icon: e, term: t, figure: n, detail: r, accent: i }) {
});
}
function d6({ name: e, domain: t }) {
- return /* @__PURE__ */ (0, z.jsxs)("span", {
+ return /* @__PURE__ */ (0, R.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, z.jsx)("img", {
+ children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, R.jsx)("img", {
src: g({ domain: t }),
alt: "",
loading: "lazy",
@@ -72767,75 +72770,76 @@ function d6({ name: e, domain: t }) {
});
}
function bBe({ html: e }) {
- return /* @__PURE__ */ (0, z.jsx)("span", {
+ return /* @__PURE__ */ (0, R.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 ${qN}`,
dangerouslySetInnerHTML: { __html: e }
});
}
function xBe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
- if (!e.length) return /* @__PURE__ */ (0, z.jsx)($i, {
+ if (!e.length) return /* @__PURE__ */ (0, R.jsx)(ea, {
shell: "plain",
- icon: gt,
+ icon: _t,
title: "暂无足够证据",
children: r
});
let o = Pze(e);
- return /* @__PURE__ */ (0, z.jsx)(p3, {
+ return /* @__PURE__ */ (0, R.jsx)(p3, {
previewCount: uBe,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
- let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)("svg", {
+ let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 100 1",
preserveAspectRatio: "none",
"aria-hidden": !0,
className: "absolute inset-0 -z-10 size-full overflow-hidden rounded-lg opacity-15",
- children: /* @__PURE__ */ (0, z.jsx)("rect", {
+ children: /* @__PURE__ */ (0, R.jsx)("rect", {
width: o[r],
height: 1,
className: "fill-chart-4"
})
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: r + 1
}),
- n === "domain" ? /* @__PURE__ */ (0, z.jsx)(d6, {
+ n === "domain" ? /* @__PURE__ */ (0, R.jsx)(d6, {
name: e.name,
domain: e.name
}) : null,
- n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, z.jsx)(d6, {
+ n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, R.jsx)(d6, {
name: e.name,
domain: c
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, z.jsx)(bBe, { html: a(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, R.jsx)(bBe, { html: a(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
+ image_version: e.image_version,
avatar_focus: e.avatar_focus
} : null, e.has_avatar ? e.representative_asset_id ?? null : null, n === "creator" ? "creator" : t || "performer") }) : null,
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, z.jsx)("b", {
+ children: [/* @__PURE__ */ (0, R.jsx)("b", {
className: "min-w-0 text-body-medium break-words text-text-primary",
children: e.name
- }), /* @__PURE__ */ (0, z.jsx)("small", {
+ }), /* @__PURE__ */ (0, R.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: Nze(e)
})]
}),
- s ? /* @__PURE__ */ (0, z.jsx)(Ge, {
+ s ? /* @__PURE__ */ (0, R.jsx)(Ke, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
] }), u = "relative isolate flex min-h-11 w-full min-w-0 items-center gap-2.5 rounded-lg px-3 py-2 text-left";
- return /* @__PURE__ */ (0, z.jsx)("li", {
+ return /* @__PURE__ */ (0, R.jsx)("li", {
className: "min-w-0",
- children: s ? /* @__PURE__ */ (0, z.jsx)("button", {
+ children: s ? /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
onClick: () => i(t, e.name),
className: `${u} cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: l
- }) : /* @__PURE__ */ (0, z.jsx)("div", {
+ }) : /* @__PURE__ */ (0, R.jsx)("div", {
className: u,
children: l
})
@@ -72844,23 +72848,23 @@ function xBe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
});
}
function f6({ label: e, panels: t, onSignal: n, avatarInner: r }) {
- return /* @__PURE__ */ (0, z.jsxs)(ay, {
- className: `${Zi({ padding: "none" })} flex flex-col`,
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)(oy, {
+ className: `${Qi({ padding: "none" })} flex flex-col`,
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, z.jsx)(WO, {
+ children: /* @__PURE__ */ (0, R.jsx)(WO, {
"aria-label": e,
className: KO,
- children: t.map((e) => /* @__PURE__ */ (0, z.jsx)(sy, {
+ children: t.map((e) => /* @__PURE__ */ (0, R.jsx)(cy, {
id: e.id,
className: qO,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(cy, {
+ }), t.map((e) => /* @__PURE__ */ (0, R.jsx)(ly, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, z.jsx)(xBe, {
+ children: /* @__PURE__ */ (0, R.jsx)(xBe, {
...e.props,
onSignal: n,
avatarInner: r
@@ -72882,66 +72886,66 @@ function SBe({ data: e, onSignal: t, navigate: n }) {
detail: e.detail,
act: () => n(e.route)
}))];
- return /* @__PURE__ */ (0, z.jsxs)("section", {
+ return /* @__PURE__ */ (0, R.jsxs)("section", {
className: s6,
"aria-label": "口味总结",
children: [
- /* @__PURE__ */ (0, z.jsxs)("header", {
+ /* @__PURE__ */ (0, R.jsxs)("header", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)("h3", {
+ /* @__PURE__ */ (0, R.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "口味总结"
}),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "max-w-prose text-title-2-regular text-text-primary",
children: r.headline
}),
- /* @__PURE__ */ (0, z.jsxs)("p", {
+ /* @__PURE__ */ (0, R.jsxs)("p", {
className: "flex flex-wrap items-center gap-2 text-body-2-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, z.jsx)("i", {
+ children: [/* @__PURE__ */ (0, R.jsx)("i", {
"aria-hidden": !0,
className: `size-2 shrink-0 rounded-full ${i.level === "high" ? "bg-status-lime-text" : i.level === "medium" ? "bg-status-yellow-text" : "bg-text-tertiary"}`
}), i.label || "仍在学习"]
})
]
}),
- r.points?.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ r.points?.length ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
- children: r.points.map((e) => /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: r.points.map((e) => /* @__PURE__ */ (0, R.jsxs)("div", {
className: `flex min-w-0 flex-col gap-1 ${c6}`,
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e.label
- }), /* @__PURE__ */ (0, z.jsx)("b", {
+ }), /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-body-2-medium break-words text-text-primary",
children: e.text
})]
}, e.label))
}) : null,
- a.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ a.length ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: a.map((e) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
onClick: e.act,
className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${c6} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
- children: [/* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-1",
- children: [/* @__PURE__ */ (0, z.jsx)("b", {
+ children: [/* @__PURE__ */ (0, R.jsx)("b", {
className: "text-body-2-medium text-text-primary",
children: e.title
- }), /* @__PURE__ */ (0, z.jsx)("small", {
+ }), /* @__PURE__ */ (0, R.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, z.jsx)(Ge, {
+ }), /* @__PURE__ */ (0, R.jsx)(Ke, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, z.jsx)($i, {
+ }) : /* @__PURE__ */ (0, R.jsx)(ea, {
shell: "plain",
- icon: gt,
+ icon: _t,
title: "还没有可探索的入口",
children: pBe
})
@@ -72949,35 +72953,35 @@ function SBe({ data: e, onSignal: t, navigate: n }) {
});
}
function CBe({ onboarding: e, done: t }) {
- let [n, r] = (0, R.useState)(() => {
+ let [n, r] = (0, L.useState)(() => {
try {
return localStorage.getItem(l6) === "1";
} catch {
return !1;
}
});
- return t || n ? null : /* @__PURE__ */ (0, z.jsx)("div", {
- className: Zi({
+ return t || n ? null : /* @__PURE__ */ (0, R.jsx)("div", {
+ className: Qi({
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, z.jsxs)(Fy, {
+ children: /* @__PURE__ */ (0, R.jsxs)(Iy, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: gBe
}),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: _Be
}),
- /* @__PURE__ */ (0, z.jsxs)("ul", {
+ /* @__PURE__ */ (0, R.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, z.jsxs)("li", { children: [
+ children: [/* @__PURE__ */ (0, R.jsxs)("li", { children: [
"Chrome:在 ",
- /* @__PURE__ */ (0, z.jsx)("a", {
+ /* @__PURE__ */ (0, R.jsx)("a", {
href: "https://takeout.google.com/",
target: "_blank",
rel: "noopener noreferrer",
@@ -72986,9 +72990,9 @@ function CBe({ onboarding: e, done: t }) {
}),
" ",
"选择 Chrome 历史记录,下载 ZIP 后直接导入。"
- ] }), /* @__PURE__ */ (0, z.jsxs)("li", { children: [
+ ] }), /* @__PURE__ */ (0, R.jsxs)("li", { children: [
"其他浏览器:用 ",
- /* @__PURE__ */ (0, z.jsx)("a", {
+ /* @__PURE__ */ (0, R.jsx)("a", {
href: "https://github.com/purarue/browserexport",
target: "_blank",
rel: "noopener noreferrer",
@@ -72999,13 +73003,13 @@ function CBe({ onboarding: e, done: t }) {
"导出历史记录,再导入导出文件。"
] })]
}),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: vBe
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, z.jsx)(H, {
+ children: /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
onClick: () => {
@@ -73022,54 +73026,54 @@ function CBe({ onboarding: e, done: t }) {
});
}
function wBe({ busy: e, onRefresh: t, onImport: n }) {
- let r = (0, R.useRef)(null), [i, a] = (0, R.useState)(!1), o = (e) => {
+ let r = (0, L.useRef)(null), [i, a] = (0, L.useState)(!1), o = (e) => {
a(!1), e();
};
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("span", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("span", {
"data-button-group": !0,
"data-split-button": !0,
"data-variant": "primary",
- children: [/* @__PURE__ */ (0, z.jsx)(H, {
- leadingIcon: Ze,
+ children: [/* @__PURE__ */ (0, R.jsx)(V, {
+ leadingIcon: Qe,
title: dBe,
onClick: t,
- ...q(e),
+ ...K(e),
children: "读取浏览器历史"
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
ref: r,
iconOnly: !0,
- leadingIcon: Ue,
+ leadingIcon: We,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
- ...q(e),
+ ...K(e),
onClick: () => {
e || a(!0);
}
})]
- }), /* @__PURE__ */ (0, z.jsx)(zh, {
+ }), /* @__PURE__ */ (0, R.jsx)(Bh, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: my,
- children: /* @__PURE__ */ (0, z.jsxs)($D, {
+ className: hy,
+ children: /* @__PURE__ */ (0, R.jsxs)($D, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: [/* @__PURE__ */ (0, z.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
className: o6,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, z.jsx)(Ze, {
+ children: [/* @__PURE__ */ (0, R.jsx)(Qe, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
- }), /* @__PURE__ */ (0, z.jsxs)("button", {
+ }), /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
className: o6,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, z.jsx)(xt, {
+ children: [/* @__PURE__ */ (0, R.jsx)(St, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@ -73078,56 +73082,56 @@ function wBe({ busy: e, onRefresh: t, onImport: n }) {
})] });
}
function TBe({ sources: e, window: t, toast: n }) {
- let r = er({
+ let r = tr({
mutationFn: (e) => Oze(e, t),
onSuccess: (e) => {
- X.setQueryData(V3(t), e.dashboard), n("已移除口味数据源");
+ Y.setQueryData(V3(t), e.dashboard), n("已移除口味数据源");
}
});
- return /* @__PURE__ */ (0, z.jsxs)("section", {
+ return /* @__PURE__ */ (0, R.jsxs)("section", {
className: s6,
"aria-label": "数据源",
children: [
- /* @__PURE__ */ (0, z.jsx)("h3", {
+ /* @__PURE__ */ (0, R.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "数据源"
}),
- r.error ? /* @__PURE__ */ (0, z.jsx)(K, {
+ r.error ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
- children: U(r.error)
+ children: H(r.error)
}) : null,
- e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ e.length ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "inline-grid w-full gap-2 sm:grid-cols-2",
- children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: e.map((e) => /* @__PURE__ */ (0, R.jsxs)("div", {
className: `flex min-w-0 items-center gap-3 ${c6}`,
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, z.jsx)(xt, {
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, R.jsx)(St, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, z.jsx)(Qe, {
+ }) : /* @__PURE__ */ (0, R.jsx)($e, {
"aria-hidden": !0,
className: "size-4"
})
}),
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, z.jsx)("b", {
+ children: [/* @__PURE__ */ (0, R.jsx)("b", {
className: "min-w-0 text-body-2-medium break-words text-text-primary",
children: e.profile
- }), /* @__PURE__ */ (0, z.jsx)("small", {
+ }), /* @__PURE__ */ (0, R.jsx)("small", {
className: "min-w-0 text-caption-1-regular break-words text-text-secondary",
children: `${e.browser} · ${e.host} · ${Number(e.visits || 0).toLocaleString()} 条`
})]
}),
- /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
- leadingIcon: $e,
- ...q(r.isPending),
+ leadingIcon: et,
+ ...K(r.isPending),
onClick: () => {
r.isPending || b({
title: "移除口味数据源",
@@ -73139,9 +73143,9 @@ function TBe({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, z.jsx)($i, {
+ }) : /* @__PURE__ */ (0, R.jsx)(ea, {
shell: "plain",
- icon: Qe,
+ icon: $e,
title: "还没有数据源",
children: fBe
})
@@ -73149,22 +73153,22 @@ function TBe({ sources: e, window: t, toast: n }) {
});
}
function EBe(e) {
- let { onSignal: t, navigate: n, toast: r, avatarInner: i, onboarding: a } = e, [o, c] = (0, R.useState)("all"), [l, u] = (0, R.useState)("browser"), d = (0, R.useRef)(null), f = $n({
+ let { onSignal: t, navigate: n, toast: r, avatarInner: i, onboarding: a } = e, [o, c] = (0, L.useState)("all"), [l, u] = (0, L.useState)("browser"), d = (0, L.useRef)(null), f = er({
queryKey: V3(o),
queryFn: ({ signal: e }) => H3(o, e),
- placeholderData: Zt
+ placeholderData: Qt
}), { job: p, running: m, outcome: h, start: g } = pO({
queryKey: Cze,
queryFn: ({ signal: e }) => Tze(e),
start: () => Dze(o),
idlePollMs: Aze,
onFinish: (e) => {
- e.status !== "failed" && (X.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
+ e.status !== "failed" && (Y.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
- }), _ = er({
+ }), _ = tr({
mutationFn: (e) => kze(e),
onSuccess: (e) => {
- X.setQueryData(V3("all"), e.dashboard), c("all"), r("已导入口味数据");
+ Y.setQueryData(V3("all"), e.dashboard), c("all"), r("已导入口味数据");
}
}), v = (e) => {
let t = e.currentTarget.files?.[0];
@@ -73172,52 +73176,52 @@ function EBe(e) {
}, y = () => {
m || g.isPending || (g.reset(), g.mutate());
}, b = f.data;
- if (!b) return /* @__PURE__ */ (0, z.jsx)(ta, { children: /* @__PURE__ */ (0, z.jsx)(K, {
+ if (!b) return /* @__PURE__ */ (0, R.jsx)(na, { children: /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "口味分析读取失败",
- children: f.error ? U(f.error) : "读取口味分析失败"
+ children: f.error ? H(f.error) : "读取口味分析失败"
}) });
- let x = b.summary || {}, S = b.coverage || {}, C = b.rankings || {}, w = b.storage || {}, T = C.browser_categories || [], E = b.gaps || [], D = S.tagged || 0, O = S.identified || 0, k = g.error ? U(g.error) : _.error ? U(_.error) : h?.status === "failed" ? h.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, z.jsxs)(ta, { children: [
- /* @__PURE__ */ (0, z.jsxs)(ay, {
+ let x = b.summary || {}, S = b.coverage || {}, C = b.rankings || {}, w = b.storage || {}, T = C.browser_categories || [], E = b.gaps || [], D = S.tagged || 0, O = S.identified || 0, k = g.error ? H(g.error) : _.error ? H(_.error) : h?.status === "failed" ? h.error || "读取未取得" : "";
+ return /* @__PURE__ */ (0, R.jsxs)(na, { children: [
+ /* @__PURE__ */ (0, R.jsxs)(oy, {
selectedKey: l,
onSelectionChange: (e) => u(String(e)),
className: "flex flex-col gap-5",
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, z.jsxs)(WO, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(WO, {
"aria-label": "口味证据来源",
className: KO,
- children: [/* @__PURE__ */ (0, z.jsx)(sy, {
+ children: [/* @__PURE__ */ (0, R.jsx)(cy, {
id: "browser",
className: qO,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, z.jsx)(sy, {
+ }), /* @__PURE__ */ (0, R.jsx)(cy, {
id: "peach",
className: qO,
children: "Peach 内部"
})]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(vy, {
+ /* @__PURE__ */ (0, R.jsx)(yy, {
"aria-label": "分析范围",
selectedKey: o,
onSelectionChange: (e) => {
e !== null && c(String(e));
},
- children: wze.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(yy, {
+ children: wze.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(by, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(wBe, {
+ /* @__PURE__ */ (0, R.jsx)(wBe, {
busy: m || g.isPending || _.isPending,
onRefresh: y,
onImport: () => d.current?.click()
}),
- /* @__PURE__ */ (0, z.jsx)("input", {
+ /* @__PURE__ */ (0, R.jsx)("input", {
ref: d,
type: "file",
tabIndex: -1,
@@ -73228,95 +73232,95 @@ function EBe(e) {
]
})]
}),
- /* @__PURE__ */ (0, z.jsx)(CBe, {
+ /* @__PURE__ */ (0, R.jsx)(CBe, {
onboarding: a,
done: !!(x.history_sources || b.updated_at)
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- m ? /* @__PURE__ */ (0, z.jsx)(lO, {
+ m ? /* @__PURE__ */ (0, R.jsx)(lO, {
label: p?.message || "正在读取浏览记录并更新口味分析",
value: p?.checked,
total: p?.total
}) : null,
- _.isPending ? /* @__PURE__ */ (0, z.jsx)(lO, { label: "正在导入历史文件" }) : null,
- k ? /* @__PURE__ */ (0, z.jsx)(K, {
+ _.isPending ? /* @__PURE__ */ (0, R.jsx)(lO, { label: "正在导入历史文件" }) : null,
+ k ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
children: k
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsxs)(cy, {
+ /* @__PURE__ */ (0, R.jsxs)(ly, {
id: "browser",
className: "flex flex-col gap-5",
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
- className: yS,
+ /* @__PURE__ */ (0, R.jsxs)("div", {
+ className: bS,
children: [
- /* @__PURE__ */ (0, z.jsx)(u6, {
+ /* @__PURE__ */ (0, R.jsx)(u6, {
accent: 0,
- icon: ot,
+ icon: st,
term: "浏览记录",
figure: Number(x.history_visits || 0).toLocaleString(),
detail: `${x.history_sources || 0} 个数据源 · ${U3(x.range_start)}—${U3(x.range_end)}`
}),
- /* @__PURE__ */ (0, z.jsx)(u6, {
+ /* @__PURE__ */ (0, R.jsx)(u6, {
accent: 1,
- icon: pt,
+ icon: mt,
term: "口味维度",
figure: T.length.toLocaleString(),
detail: T[0]?.name || "尚无主维度"
}),
- /* @__PURE__ */ (0, z.jsx)(u6, {
+ /* @__PURE__ */ (0, R.jsx)(u6, {
accent: 2,
- icon: gt,
+ icon: _t,
term: "浏览候选",
figure: E.length.toLocaleString()
}),
- /* @__PURE__ */ (0, z.jsx)(u6, {
+ /* @__PURE__ */ (0, R.jsx)(u6, {
accent: 3,
- icon: Qe,
+ icon: $e,
term: "私有导出",
figure: Number(w.exports || 0).toLocaleString(),
detail: s(w.bytes || 0)
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)("section", {
+ /* @__PURE__ */ (0, R.jsxs)("section", {
className: `${s6} md:flex-row md:gap-6`,
"aria-label": "浏览器画像",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex shrink-0 flex-col gap-2 pb-5 md:w-80 md:pr-6 md:pb-0",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, z.jsx)(sBe, {
+ /* @__PURE__ */ (0, R.jsx)(sBe, {
rows: T,
label: "主要口味维度"
}),
- /* @__PURE__ */ (0, z.jsx)("small", {
+ /* @__PURE__ */ (0, R.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: b.updated_at ? `更新于 ${U3(b.updated_at)}` : "尚未采集浏览记录"
})
]
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: T.length ? /* @__PURE__ */ (0, z.jsx)(cBe, {
+ children: T.length ? /* @__PURE__ */ (0, R.jsx)(cBe, {
rows: T,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, z.jsx)($i, {
+ }) : /* @__PURE__ */ (0, R.jsx)(ea, {
shell: "plain",
- icon: gt,
+ icon: _t,
title: "暂无口味维度",
children: mBe
})
})]
}),
- /* @__PURE__ */ (0, z.jsx)(f3, {
+ /* @__PURE__ */ (0, R.jsx)(f3, {
activity: b.activity,
title: "浏览活跃时间",
dailyTitle: "每日活跃",
@@ -73328,8 +73332,8 @@ function EBe(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, z.jsx)(lBe, { flows: b.creator_flows }),
- /* @__PURE__ */ (0, z.jsx)(f6, {
+ /* @__PURE__ */ (0, R.jsx)(lBe, { flows: b.creator_flows }),
+ /* @__PURE__ */ (0, R.jsx)(f6, {
label: "浏览器口味维度",
onSignal: t,
avatarInner: i,
@@ -73378,73 +73382,73 @@ function EBe(e) {
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)(cy, {
+ /* @__PURE__ */ (0, R.jsxs)(ly, {
id: "peach",
className: "flex flex-col gap-5",
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
- className: yS,
+ /* @__PURE__ */ (0, R.jsxs)("div", {
+ className: bS,
children: [
- /* @__PURE__ */ (0, z.jsx)(u6, {
+ /* @__PURE__ */ (0, R.jsx)(u6, {
accent: 0,
- icon: nt,
+ icon: rt,
term: "Peach 看过",
figure: Number(x.peach_items || 0).toLocaleString(),
detail: jze(x.peach_seconds || 0)
}),
- /* @__PURE__ */ (0, z.jsx)(u6, {
+ /* @__PURE__ */ (0, R.jsx)(u6, {
accent: 1,
- icon: bt,
+ icon: xt,
term: "喜欢",
figure: Number(x.liked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, z.jsx)(u6, {
+ /* @__PURE__ */ (0, R.jsx)(u6, {
accent: 2,
- icon: yt,
+ icon: bt,
term: "不合口味",
figure: Number(x.disliked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, z.jsx)(u6, {
+ /* @__PURE__ */ (0, R.jsx)(u6, {
accent: 3,
- icon: pt,
+ icon: mt,
term: "有标签",
figure: D.toLocaleString()
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)("section", {
+ /* @__PURE__ */ (0, R.jsxs)("section", {
className: `${s6} md:flex-row md:gap-6`,
"aria-label": "Peach 观看",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "Peach 观看"
}),
- /* @__PURE__ */ (0, z.jsx)("b", {
+ /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-display-4-medium tabular-nums text-text-primary",
children: Number(x.peach_items || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: "个作品有内部行为证据"
})
]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 grow flex-col",
- children: [/* @__PURE__ */ (0, z.jsx)(p6, {
+ children: [/* @__PURE__ */ (0, R.jsx)(p6, {
term: "有标签",
value: D,
rest: S.untagged || 0
- }), /* @__PURE__ */ (0, z.jsx)(p6, {
+ }), /* @__PURE__ */ (0, R.jsx)(p6, {
term: "有身份",
value: O,
rest: S.unidentified || 0
})]
})]
}),
- /* @__PURE__ */ (0, z.jsx)(f6, {
+ /* @__PURE__ */ (0, R.jsx)(f6, {
label: "Peach 口味维度",
onSignal: t,
avatarInner: i,
@@ -73485,12 +73489,12 @@ function EBe(e) {
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(SBe, {
+ /* @__PURE__ */ (0, R.jsx)(SBe, {
data: b,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, z.jsx)(TBe, {
+ /* @__PURE__ */ (0, R.jsx)(TBe, {
sources: b.sources || [],
window: o,
toast: r
@@ -73499,18 +73503,18 @@ function EBe(e) {
}
function p6({ term: e, value: t, rest: n }) {
let r = Math.max(t + n, 1);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
- children: [/* @__PURE__ */ (0, z.jsxs)("p", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("p", {
className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",
- children: [/* @__PURE__ */ (0, z.jsx)("span", { children: e }), /* @__PURE__ */ (0, z.jsxs)("b", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", { children: e }), /* @__PURE__ */ (0, R.jsxs)("b", {
className: "tabular-nums",
- children: [t.toLocaleString(), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [t.toLocaleString(), /* @__PURE__ */ (0, R.jsx)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
children: `${n} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, z.jsx)(ia, {
+ }), /* @__PURE__ */ (0, R.jsx)(aa, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -73632,7 +73636,7 @@ function v6() {
let e = h6;
if (!e || !g6) return;
let t = _6;
- (0, ze.flushSync)(() => g6.render(/* @__PURE__ */ (0, z.jsx)(LF, { children: /* @__PURE__ */ (0, z.jsx)(ABe, {
+ (0, Be.flushSync)(() => g6.render(/* @__PURE__ */ (0, R.jsx)(LF, { children: /* @__PURE__ */ (0, R.jsx)(ABe, {
host: e,
props: t
}) })));
@@ -73641,27 +73645,27 @@ var OBe = { render(e) {
_6 = e, v6();
} };
function kBe(e) {
- return h6 = e, g6 = (0, Be.createRoot)(e.root), v6(), OBe;
+ return h6 = e, g6 = (0, Ve.createRoot)(e.root), v6(), OBe;
}
function ABe({ host: e, props: t }) {
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, z.jsx)($P, {
+ children: /* @__PURE__ */ (0, R.jsx)($P, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count} 项`,
- children: DBe(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: DBe(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
"data-danger": t.danger ? "" : void 0,
onClick: (n) => e.run(t.group, t.operation, n.currentTarget),
- children: [/* @__PURE__ */ (0, z.jsx)("svg", {
+ children: [/* @__PURE__ */ (0, R.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${t.glyph}` })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${t.glyph}` })
}), t.label]
}, `${t.group}:${t.operation}`))
})
@@ -74195,17 +74199,17 @@ function KBe(e) {
});
let F = document.createElement("div");
F.className = "vjs-peach-expand vjs-control", F.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${l("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, ee.prepend(F);
- let I = F.querySelector("button"), te = B6(I, "展开控件"), ne = (t) => {
- e.el().classList.toggle("vjs-peach-right-expanded", t), I.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
+ let te = F.querySelector("button"), ne = B6(te, "展开控件"), re = (t) => {
+ e.el().classList.toggle("vjs-peach-right-expanded", t), te.setAttribute("aria-expanded", String(t)), ne(t ? "收起控件" : "展开控件");
};
- I.onclick = (t) => {
- t.stopPropagation(), ne(!e.el().classList.contains("vjs-peach-right-expanded"));
+ te.onclick = (t) => {
+ t.stopPropagation(), re(!e.el().classList.contains("vjs-peach-right-expanded"));
};
- let re = () => {
+ let ie = () => {
let t = e.el(), n = t.clientWidth < 528;
- t.style.setProperty("--peach-player-h", `${t.clientHeight}px`), t.classList.toggle("vjs-peach-xsmall", n), n || ne(!1);
- }, ie = new ResizeObserver(re);
- ie.observe(e.el()), e.on("dispose", () => ie.disconnect()), ne(!1), re();
+ t.style.setProperty("--peach-player-h", `${t.clientHeight}px`), t.classList.toggle("vjs-peach-xsmall", n), n || re(!1);
+ }, ae = new ResizeObserver(ie);
+ ae.observe(e.el()), e.on("dispose", () => ae.disconnect()), re(!1), ie();
}
function qBe(e, n, r = {}) {
let i = e.getChild("controlBar")?.el()?.querySelector(".vjs-progress-control");
@@ -74765,22 +74769,22 @@ var m8 = (e) => ["item", e], h8 = (e) => [
t
], sVe = (e) => `/api/item?id=${e}`, cVe = (e, t) => `/api/related?id=${e}&limit=${t}`, g8 = "/api/playlist", _8 = "/api/feedback", v8 = "/api/item-tag", y8 = "/api/watch-later", b8 = "/api/quality-goal", x8 = "/api/preference", S8 = class extends Error {};
async function C8(e, t) {
- let n = await W(sVe(e), t);
+ let n = await U(sVe(e), t);
if (n.error) throw new S8(n.error);
return n;
}
async function w8(e, t, n) {
if (e.kind === "mix") {
let r = e.seedId, [i, a] = await Promise.all([C8(r, n), t.mixRelated(r)]);
- return X.setQueryData(m8(i.id), i), {
+ return Y.setQueryData(m8(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${t.mixLabel(i)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return T8(await W(`${g8}?id=${e.playlistId}`, n));
- let r = await W(`/api/${e.kind}?id=${e.seedId}`, n);
+ if (e.kind === "playlist") return T8(await U(`${g8}?id=${e.playlistId}`, n));
+ let r = await U(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
kind: e.kind,
@@ -74814,7 +74818,7 @@ async function uVe(e, t) {
if (n) {
let a = h8(n);
try {
- i = (n.fresh ? void 0 : X.getQueryData(a)) || await X.fetchQuery({
+ i = (n.fresh ? void 0 : Y.getQueryData(a)) || await Y.fetchQuery({
queryKey: a,
queryFn: () => w8(n, e.helpers, t),
staleTime: 0
@@ -74836,7 +74840,7 @@ async function uVe(e, t) {
}
let o;
try {
- o = X.getQueryData(m8(a)) || await X.fetchQuery({
+ o = Y.getQueryData(m8(a)) || await Y.fetchQuery({
queryKey: m8(a),
queryFn: () => C8(a, t)
});
@@ -74975,9 +74979,9 @@ function OVe(e, t = Math.random) {
return e;
}
async function kVe(e, t) {
- return OVe(((await W(`/api/items?${e}`)).items || []).filter((e) => DVe(e, t)));
+ return OVe(((await U(`/api/items?${e}`)).items || []).filter((e) => DVe(e, t)));
}
-var L8 = (e) => X.ensureQueryData({
+var L8 = (e) => Y.ensureQueryData({
queryKey: m8(e),
queryFn: ({ signal: t }) => C8(e, t)
});
@@ -75014,11 +75018,11 @@ function a5() {
return z8;
}
function FVe() {
- return (!B8 || !V8?.isConnected) && (B8?.unmount(), V8 = document.createElement("div"), V8.dataset.immerseHost = "", document.body.append(V8), B8 = (0, Be.createRoot)(V8)), B8;
+ return (!B8 || !V8?.isConnected) && (B8?.unmount(), V8 = document.createElement("div"), V8.dataset.immerseHost = "", document.body.append(V8), B8 = (0, Ve.createRoot)(V8)), B8;
}
function o5() {
let e = FVe();
- (0, ze.flushSync)(() => e.render(/* @__PURE__ */ (0, z.jsx)(LF, { children: /* @__PURE__ */ (0, z.jsx)($Ve, { view: U8 }) })));
+ (0, Be.flushSync)(() => e.render(/* @__PURE__ */ (0, R.jsx)(LF, { children: /* @__PURE__ */ (0, R.jsx)($Ve, { view: U8 }) })));
}
function s5() {
let e = t5 ? L6(t5.id) : 0;
@@ -75108,7 +75112,7 @@ function BVe(e) {
}
var p5 = () => {
let e = q8;
- return X.fetchQuery({
+ return Y.fetchQuery({
queryKey: TVe(e, G8, K8),
queryFn: () => kVe(e, a5().sourceOffline),
staleTime: Infinity
@@ -75148,7 +75152,7 @@ async function m5(e = 0) {
index: Y8,
length: J8.length
}
- }, VVe(o.video, t), G("/api/play", { id: t.id }).catch(() => {}), c5(null);
+ }, VVe(o.video, t), W("/api/play", { id: t.id }).catch(() => {}), c5(null);
} catch {
l5(r), n === W8 && c5(null);
} finally {
@@ -75172,7 +75176,7 @@ async function h5(e) {
}
async function HVe(e) {
let t = ++W8;
- g5(), G8 += 1, K8 = 0, q8 = EVe(a5().filters()), X.removeQueries({ queryKey: ["immerse-list"] }), U8 = {
+ g5(), G8 += 1, K8 = 0, q8 = EVe(a5().filters()), Y.removeQueries({ queryKey: ["immerse-list"] }), U8 = {
...U8,
open: !0,
idle: !0,
@@ -75297,11 +75301,11 @@ function JVe() {
i5 = !1, w5(!1);
}
async function M5(e, t) {
- let n = await G(_8, {
+ let n = await W(_8, {
id: e,
kind: t
- }), r = X.getQueryData(m8(e));
- if (!r) return ab(e, {
+ }), r = Y.getQueryData(m8(e));
+ if (!r) return ob(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -75310,7 +75314,7 @@ async function M5(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return X.setQueryData(m8(e), i), ab(e, {
+ return Y.setQueryData(m8(e), i), ob(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -75336,7 +75340,7 @@ var YVe = [
}
];
function N5(e) {
- return $n({
+ return er({
queryKey: m8(e ?? 0),
queryFn: ({ signal: t }) => C8(e, t),
enabled: e != null,
@@ -75344,9 +75348,9 @@ function N5(e) {
}).data;
}
function XVe({ kind: e, glyph: t, label: n, id: r }) {
- let i = N5(r), a = er({
+ let i = N5(r), a = tr({
mutationFn: async (t) => {
- let n = X.getQueryData(m8(t))?.feedback || null;
+ let n = Y.getQueryData(m8(t))?.feedback || null;
return {
result: await M5(t, e),
before: n
@@ -75361,9 +75365,9 @@ function XVe({ kind: e, glyph: t, label: n, id: r }) {
},
onError: (e) => a5().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-immerse-action": "",
- children: [/* @__PURE__ */ (0, z.jsx)("button", {
+ children: [/* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-immerse-circle": "",
title: n,
@@ -75376,16 +75380,16 @@ function XVe({ kind: e, glyph: t, label: n, id: r }) {
onClick: () => {
r != null && !a.isPending && a.mutate(r);
},
- children: /* @__PURE__ */ (0, z.jsx)("svg", {
+ children: /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${t}` })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${t}` })
})
- }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ }), /* @__PURE__ */ (0, R.jsxs)("span", {
"data-immerse-label": "",
children: [
e === "dislike" ? "不喜欢" : null,
e === "seen" ? i?.feedback === "seen" ? "已看" : "看过" : null,
- e === "o" ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: ["高潮 ", /* @__PURE__ */ (0, z.jsx)("b", { children: i?.o_count || 0 })] }) : null
+ e === "o" ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: ["高潮 ", /* @__PURE__ */ (0, R.jsx)("b", { children: i?.o_count || 0 })] }) : null
]
})]
});
@@ -75396,26 +75400,26 @@ function ZVe({ shown: e }) {
}, s = () => {
t && (_5(), i.openItem(t.id));
}, c = r ? i.avatarHtml(r.name, r.ref, r.kind || "performer") : "";
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-immerse-ui": "",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
"data-immerse-author": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-immerse-avatar": "",
"aria-label": "打开资料",
onClick: a,
dangerouslySetInnerHTML: { __html: c }
}),
- /* @__PURE__ */ (0, z.jsx)("a", {
+ /* @__PURE__ */ (0, R.jsx)("a", {
href: "#",
onClick: a,
children: r?.who ?? ""
}),
- /* @__PURE__ */ (0, z.jsx)("span", { children: e && t ? `· ${o(t.duration)} · ${t.ctx_orient || ""} · ${e.index + 1}/${e.length}` : "" })
+ /* @__PURE__ */ (0, R.jsx)("span", { children: e && t ? `· ${o(t.duration)} · ${t.ctx_orient || ""} · ${e.index + 1}/${e.length}` : "" })
]
- }), /* @__PURE__ */ (0, z.jsx)("button", {
+ }), /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-immerse-title": "",
onClick: s,
@@ -75423,10 +75427,10 @@ function ZVe({ shown: e }) {
})]
});
}
-var QVe = { __html: ie("媒体加载中") };
+var QVe = { __html: ae("媒体加载中") };
function $Ve({ 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 t = (0, L.useRef)(null), n = (0, L.useRef)(null), r = (0, L.useRef)(null), i = (0, L.useRef)(null);
+ (0, L.useLayoutEffect)(() => {
let e = t.current;
return H8 = {
root: e,
@@ -75438,59 +75442,59 @@ function $Ve({ view: e }) {
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
ref: t,
"data-immerse": "",
"data-idle": o(e.idle),
"data-wide": o(e.wide),
hidden: !e.open,
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-immerse-stage": "",
"data-wide": o(e.wide),
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
ref: n,
"data-immerse-track": "",
onClick: WVe
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
"data-immerse-actions": "",
- children: YVe.map((e) => /* @__PURE__ */ (0, z.jsx)(XVe, {
+ children: YVe.map((e) => /* @__PURE__ */ (0, R.jsx)(XVe, {
...e,
id: a
}, e.kind))
})]
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-immerse-loader": "",
role: "status",
"aria-live": "polite",
hidden: e.loading === null,
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-immerse-spinner": "",
dangerouslySetInnerHTML: QVe
- }), /* @__PURE__ */ (0, z.jsx)("span", { children: e.loading ?? "" })]
+ }), /* @__PURE__ */ (0, R.jsx)("span", { children: e.loading ?? "" })]
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
onClick: _5,
- children: /* @__PURE__ */ (0, z.jsx)("svg", {
+ children: /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: "#i-x" })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: "#i-x" })
})
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
ref: r,
"data-immerse-bar": "",
onPointerDown: GVe,
onPointerMove: KVe,
onPointerUp: qVe,
onPointerCancel: JVe,
- children: /* @__PURE__ */ (0, z.jsx)("i", { ref: i })
+ children: /* @__PURE__ */ (0, R.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, z.jsx)(ZVe, { shown: e.shown })
+ /* @__PURE__ */ (0, R.jsx)(ZVe, { shown: e.shown })
]
});
}
@@ -75542,17 +75546,17 @@ var sHe = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidde
//#endregion
//#region src/react/settings-panel/icon.tsx
function P5({ name: e }) {
- return /* @__PURE__ */ (0, z.jsx)("svg", {
+ return /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
});
}
function cHe({ name: e }) {
- return /* @__PURE__ */ (0, z.jsx)("svg", {
+ return /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#${e}` })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#${e}` })
});
}
//#endregion
@@ -75560,7 +75564,7 @@ function cHe({ name: e }) {
var F5 = null, I5 = null, L5 = null;
function lHe() {
let e = F5, t = L5;
- !e || !I5 || !t || (0, ze.flushSync)(() => I5.render(/* @__PURE__ */ (0, z.jsx)(fHe, {
+ !e || !I5 || !t || (0, Be.flushSync)(() => I5.render(/* @__PURE__ */ (0, R.jsx)(fHe, {
host: e,
props: t
})));
@@ -75569,26 +75573,26 @@ var uHe = { render(e) {
L5 = e, lHe();
} };
function dHe(e) {
- return F5 = e, L5 = null, e.root.replaceChildren(), I5 = (0, Be.createRoot)(e.root), uHe;
+ return F5 = e, L5 = null, e.root.replaceChildren(), I5 = (0, Ve.createRoot)(e.root), uHe;
}
function fHe({ host: e, props: t }) {
let n = oHe(t);
- return n ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)(pHe, {
+ return n ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsx)(pHe, {
host: e,
section: t.section,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, z.jsx)(mHe, {
+ n.crumb ? /* @__PURE__ */ (0, R.jsx)(mHe, {
host: e,
label: n.crumb
}) : null,
- /* @__PURE__ */ (0, z.jsx)("h2", {
+ /* @__PURE__ */ (0, R.jsx)("h2", {
"data-manage-title": "",
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, z.jsx)(hHe, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, R.jsx)(hHe, {
host: e,
lede: n.lede
})
@@ -75599,7 +75603,7 @@ function z5(e, t, n) {
e.style.setProperty("--tab-x", `${t}px`), e.style.setProperty("--tab-width", `${n}px`);
}
function pHe({ host: e, section: t, menu: n }) {
- let r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = () => {
+ let r = (0, L.useRef)(null), i = (0, L.useRef)(null), a = () => {
let e = r.current, t = i.current;
if (!e || !t) return;
let n = e.querySelector("button[aria-pressed=\"true\"]");
@@ -75608,7 +75612,7 @@ function pHe({ host: e, section: t, menu: n }) {
width: n.offsetWidth
}));
};
- return (0, R.useLayoutEffect)(() => {
+ return (0, L.useLayoutEffect)(() => {
let e = r.current, t = i.current;
R5 ? z5(t, R5.x, R5.width) : a();
let n = 0, o = requestAnimationFrame(() => {
@@ -75617,25 +75621,25 @@ function pHe({ host: e, section: t, menu: n }) {
return s.observe(e), () => {
cancelAnimationFrame(o), cancelAnimationFrame(n), s.disconnect();
};
- }, []), (0, R.useLayoutEffect)(() => {
+ }, []), (0, L.useLayoutEffect)(() => {
i.current?.hasAttribute("data-ready") && a();
- }, [t, n]), /* @__PURE__ */ (0, z.jsx)("nav", {
+ }, [t, n]), /* @__PURE__ */ (0, R.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
ref: r,
"data-manage-menu": "",
children: [n.map(([n, r, i]) => {
let a = n === t;
- return /* @__PURE__ */ (0, z.jsxs)("button", {
+ return /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-manage": n,
"aria-pressed": a,
"aria-current": a ? "page" : void 0,
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, z.jsx)(P5, { name: i }), /* @__PURE__ */ (0, z.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, R.jsx)(P5, { name: i }), /* @__PURE__ */ (0, R.jsx)("span", { children: r })]
}, n);
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
ref: i,
"data-manage-indicator": "",
"aria-hidden": "true"
@@ -75644,29 +75648,29 @@ function pHe({ host: e, section: t, menu: n }) {
});
}
function mHe({ host: e, label: t }) {
- return /* @__PURE__ */ (0, z.jsx)("nav", {
+ return /* @__PURE__ */ (0, R.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "Breadcrumb",
- children: /* @__PURE__ */ (0, z.jsxs)("ol", { children: [/* @__PURE__ */ (0, z.jsxs)("li", { children: [/* @__PURE__ */ (0, z.jsx)("a", {
+ children: /* @__PURE__ */ (0, R.jsxs)("ol", { children: [/* @__PURE__ */ (0, R.jsxs)("li", { children: [/* @__PURE__ */ (0, R.jsx)("a", {
href: "/data-cleanup",
onClick: (t) => {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, z.jsx)(P5, { name: "chevron-right" })] }), /* @__PURE__ */ (0, z.jsx)("li", {
+ }), /* @__PURE__ */ (0, R.jsx)(P5, { name: "chevron-right" })] }), /* @__PURE__ */ (0, R.jsx)("li", {
"aria-current": "true",
- children: /* @__PURE__ */ (0, z.jsx)("span", { children: t })
+ children: /* @__PURE__ */ (0, R.jsx)("span", { children: t })
})] })
});
}
function hHe({ host: e, lede: t }) {
- return /* @__PURE__ */ (0, z.jsx)("p", {
+ return /* @__PURE__ */ (0, R.jsx)("p", {
className: "mono",
"data-manage-lede": "",
- children: t.kind === "skeleton" ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: t.kind === "skeleton" ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-trash-lede-skeletons": "",
dangerouslySetInnerHTML: { __html: sHe }
- }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(gHe, { text: t.text }), t.total ? /* @__PURE__ */ (0, z.jsx)("button", {
+ }) : /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(gHe, { text: t.text }), t.total ? /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -75677,10 +75681,10 @@ function hHe({ host: e, lede: t }) {
});
}
function gHe({ text: e }) {
- let t = (0, R.useRef)(null);
- return (0, R.useLayoutEffect)(() => {
- ae(t.current, e);
- }, [e]), /* @__PURE__ */ (0, z.jsx)("span", {
+ let t = (0, L.useRef)(null);
+ return (0, L.useLayoutEffect)(() => {
+ oe(t.current, e);
+ }, [e]), /* @__PURE__ */ (0, R.jsx)("span", {
ref: t,
"data-lede-text": ""
});
@@ -75697,32 +75701,32 @@ var _He = (e) => {
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
function vHe({ openConfiguration: e }) {
- let t = $n({
+ let t = er({
queryKey: eI,
queryFn: ({ signal: e }) => tI(e)
}), n = t.data;
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, z.jsxs)(Ny, { children: [
- /* @__PURE__ */ (0, z.jsx)(Py, {
+ children: [n ? /* @__PURE__ */ (0, R.jsxs)(Py, { children: [
+ /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, z.jsx)(Py, {
+ /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, z.jsx)(Py, {
+ /* @__PURE__ */ (0, R.jsx)(Fy, {
term: "更新",
children: _He(n)
})
- ] }) : /* @__PURE__ */ (0, z.jsx)(Dy, { children: /* @__PURE__ */ (0, z.jsx)(K, {
+ ] }) : /* @__PURE__ */ (0, R.jsx)(Oy, { children: /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
title: "配置读取失败",
- children: t.error ? U(t.error) : "未取得配置,请刷新页面重试。"
- }) }), /* @__PURE__ */ (0, z.jsx)(Oy, {
+ children: t.error ? H(t.error) : "未取得配置,请刷新页面重试。"
+ }) }), /* @__PURE__ */ (0, R.jsx)(ky, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
- children: /* @__PURE__ */ (0, z.jsx)(H, {
+ children: /* @__PURE__ */ (0, R.jsx)(V, {
onClick: e,
children: "打开配置页"
})
@@ -75737,14 +75741,14 @@ var V5 = (e) => e.map(([e, t, n]) => n ? [
n
] : [e, t]);
function H5({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
- let u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(l);
- return f.current = l, (0, R.useLayoutEffect)(() => {
+ let u = (0, L.useRef)(null), d = (0, L.useRef)(null), f = (0, L.useRef)(l);
+ return f.current = l, (0, L.useLayoutEffect)(() => {
let e = u.current;
e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = D(t, n, V5(r), i, {
attr: a,
className: o,
text: s
- }), ue(e, a, (e) => {
+ }), de(e, a, (e) => {
d.current = {
value: e,
epoch: c
@@ -75753,24 +75757,24 @@ function H5({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
value: i,
epoch: c
}));
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
id: e,
ref: u
});
}
function U5({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
- let d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(-1), m = (0, R.useRef)(l);
- return m.current = l, (0, R.useLayoutEffect)(() => {
+ let d = (0, L.useRef)(null), f = (0, L.useRef)(null), p = (0, L.useRef)(-1), m = (0, L.useRef)(l);
+ return m.current = l, (0, L.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = I(V5(n), r, { label: t });
- let i = L(e.firstElementChild);
+ e.innerHTML = te(V5(n), r, { label: t });
+ let i = I(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
let o = f.current;
- o.value !== r && (o.value = r), o.disabled !== i && (o.disabled = i), o.getAttribute("aria-busy") === "true" !== a && te(o, a), u?.(o);
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ o.value !== r && (o.value = r), o.disabled !== i && (o.disabled = i), o.getAttribute("aria-busy") === "true" !== a && ne(o, a), u?.(o);
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
id: e,
ref: d,
hidden: o,
@@ -75778,14 +75782,14 @@ function U5({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
});
}
function yHe({ 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)({
+ let s = (0, L.useRef)(null), c = (0, L.useRef)(null), l = (0, L.useRef)({
onStep: a,
onSettle: o
});
return l.current = {
onStep: a,
onSettle: o
- }, (0, R.useLayoutEffect)(() => {
+ }, (0, L.useLayoutEffect)(() => {
let i = s.current;
!i || c.current || (i.insertAdjacentHTML("beforeend", x({
value: r,
@@ -75794,17 +75798,17 @@ function yHe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
step: 1,
label: t,
attr: `data-glow-dial="${e}"`
- })), c.current = ce(i.lastElementChild, {
+ })), c.current = le(i.lastElementChild, {
onInput: (e) => l.current.onStep(e),
onChange: (e) => l.current.onSettle(e)
}));
- }), (0, R.useLayoutEffect)(() => {
+ }), (0, L.useLayoutEffect)(() => {
c.current && c.current.value !== r && c.current.set(r);
- }, [r]), /* @__PURE__ */ (0, z.jsx)("div", {
+ }, [r]), /* @__PURE__ */ (0, R.jsx)("div", {
"data-glow-field": e,
hidden: i,
ref: s,
- children: /* @__PURE__ */ (0, z.jsx)("span", {
+ children: /* @__PURE__ */ (0, R.jsx)("span", {
"data-glow-field-label": "",
children: t
})
@@ -75840,11 +75844,11 @@ var bHe = [
]
];
function xHe({ host: e, version: t }) {
- let n = (0, R.useRef)(null), r = (0, R.useRef)(!1);
- return (0, R.useLayoutEffect)(() => {
+ let n = (0, L.useRef)(null), r = (0, L.useRef)(!1);
+ return (0, L.useLayoutEffect)(() => {
let t = n.current;
t && (r.current ||= (e.wireGlowGrid(t), !0), e.renderGlowGrid(t));
- }, [e, t]), /* @__PURE__ */ (0, z.jsx)("div", {
+ }, [e, t]), /* @__PURE__ */ (0, R.jsx)("div", {
className: "board-glow-grid",
"data-glow-grid": "",
role: "group",
@@ -75853,8 +75857,8 @@ function xHe({ host: e, version: t }) {
});
}
function SHe({ host: e, spot: t, index: n, glow: r }) {
- let i = de[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 i = fe[n], a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = (0, L.useRef)(null), [c, l] = (0, L.useState)("all");
+ (0, L.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
o.current,
@@ -75862,59 +75866,59 @@ function SHe({ host: e, spot: t, index: n, glow: r }) {
];
!e || !t || !n || (t.addEventListener("click", () => {
n.style.width = `${e.getBoundingClientRect().width}px`;
- }), oe(e, t, n));
+ }), se(e, t, n));
}, []);
let u = r[t].color, d = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = he(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), y(), o.current?.focus();
+ r[t].color = ge(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), y(), o.current?.focus();
};
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-glow-stop": t,
ref: a,
- children: [/* @__PURE__ */ (0, z.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-glow-stop-toggle": "",
"aria-haspopup": "dialog",
"aria-expanded": "false",
ref: o,
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": "true",
"data-glow-stop-dot": "",
style: { "--glow-swatch": u }
}),
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
"data-glow-stop-text": "",
- children: [/* @__PURE__ */ (0, z.jsx)("b", { children: i }), /* @__PURE__ */ (0, z.jsx)("small", {
+ children: [/* @__PURE__ */ (0, R.jsx)("b", { children: i }), /* @__PURE__ */ (0, R.jsx)("small", {
className: "mono",
"data-glow-stop-hex": "",
children: u
})]
}),
- /* @__PURE__ */ (0, z.jsx)(P5, { name: "chevron-down" })
+ /* @__PURE__ */ (0, R.jsx)(P5, { name: "chevron-down" })
]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "popmenu",
"data-glow-stop-pop": "",
popover: "manual",
hidden: !0,
ref: s,
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: pe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)("button", {
+ children: me.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === c,
onClick: () => l(e),
children: t
}, e))
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: fe.map(([e, t, n]) => /* @__PURE__ */ (0, z.jsx)("button", {
+ children: pe.map(([e, t, n]) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === u,
@@ -75931,36 +75935,36 @@ function SHe({ host: e, spot: t, index: n, glow: r }) {
});
}
function CHe({ host: e, version: t }) {
- let n = e.store.value.homeGlow, r = _e(n.preset);
- return /* @__PURE__ */ (0, z.jsxs)("section", {
+ let n = e.store.value.homeGlow, r = ve(n.preset);
+ return /* @__PURE__ */ (0, R.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
"aria-label": "侧栏光晕参数",
hidden: !n.on,
children: [
- /* @__PURE__ */ (0, z.jsxs)("section", {
+ /* @__PURE__ */ (0, R.jsxs)("section", {
"data-glow-group": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("h4", { children: "配色" }),
- /* @__PURE__ */ (0, z.jsxs)("p", {
+ /* @__PURE__ */ (0, R.jsx)("h4", { children: "配色" }),
+ /* @__PURE__ */ (0, R.jsxs)("p", {
"data-glow-current": "",
- children: ["当前配色", /* @__PURE__ */ (0, z.jsx)("b", {
+ children: ["当前配色", /* @__PURE__ */ (0, R.jsx)("b", {
"data-glow-preset-name": "",
- children: ge(n.preset)
+ children: _e(n.preset)
})]
}),
- /* @__PURE__ */ (0, z.jsx)(xHe, {
+ /* @__PURE__ */ (0, R.jsx)(xHe, {
host: e,
version: t
}),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
"data-glow-native-note": "",
hidden: !r,
children: "这一档用每块玻璃自带的反光,颜色跟着明暗主题走。"
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"data-glow-fields": "",
- children: bHe.map(([t, i, a]) => /* @__PURE__ */ (0, z.jsx)(yHe, {
+ children: bHe.map(([t, i, a]) => /* @__PURE__ */ (0, R.jsx)(yHe, {
field: t,
label: i,
max: a,
@@ -75976,13 +75980,13 @@ function CHe({ host: e, version: t }) {
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)("section", {
+ /* @__PURE__ */ (0, R.jsxs)("section", {
"data-glow-group": "",
"data-glow-colours": "",
hidden: r,
- children: [/* @__PURE__ */ (0, z.jsx)("h4", { children: "颜色" }), /* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h4", { children: "颜色" }), /* @__PURE__ */ (0, R.jsx)("div", {
"data-glow-stops": "",
- children: me.map((t, r) => /* @__PURE__ */ (0, z.jsx)(SHe, {
+ children: he.map((t, r) => /* @__PURE__ */ (0, R.jsx)(SHe, {
host: e,
spot: t,
index: r,
@@ -75990,14 +75994,14 @@ function CHe({ host: e, version: t }) {
}, t))
})]
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"data-glow-actions": "",
- children: /* @__PURE__ */ (0, z.jsx)("button", {
+ children: /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = ve(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = ye(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -76050,10 +76054,10 @@ var wHe = {
}
}, W5 = (e) => `peach.number.${e}`;
function G5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = wHe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, R.useRef)(0);
+ let a = wHe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, L.useRef)(0);
d.current ||= B5(Number(localStorage.getItem(W5(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)(() => {
+ let [f, p] = (0, L.useState)(n ?? 0), [m, h] = (0, L.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, L.useState)(""), v = (0, L.useRef)(null), y = (0, L.useRef)(i);
+ y.current = i, (0, L.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
}, [n]);
let b = () => {
@@ -76065,8 +76069,8 @@ function G5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(W5(e), String(d.current)), y.current(d.current);
}
- }, x = (0, R.useRef)(b);
- x.current = b, (0, R.useEffect)(() => {
+ }, x = (0, L.useRef)(b);
+ x.current = b, (0, L.useEffect)(() => {
let e = v.current;
if (!e) return;
let t = () => x.current();
@@ -76080,9 +76084,9 @@ function G5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(W5(e), String(d.current)), p(0), y.current(0);
}, w = r || n === null;
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-number-setting": "",
- children: [u ? /* @__PURE__ */ (0, z.jsx)("input", {
+ children: [u ? /* @__PURE__ */ (0, R.jsx)("input", {
type: "checkbox",
"data-toggle": "",
role: "switch",
@@ -76090,12 +76094,12 @@ function G5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
checked: S,
disabled: w,
onChange: C
- }) : null, /* @__PURE__ */ (0, z.jsxs)("div", {
+ }) : null, /* @__PURE__ */ (0, R.jsxs)("div", {
"data-number-fields": "",
hidden: u && !S,
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
"data-number-control": "",
- children: [/* @__PURE__ */ (0, z.jsx)("input", {
+ children: [/* @__PURE__ */ (0, R.jsx)("input", {
ref: v,
type: "number",
className: "geist-input",
@@ -76112,11 +76116,11 @@ function G5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
onKeyDown: (e) => {
e.key === "Enter" && (e.preventDefault(), b());
}
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": "true",
children: c
})]
- }), /* @__PURE__ */ (0, z.jsx)("small", {
+ }), /* @__PURE__ */ (0, R.jsx)("small", {
id: `${e}-error`,
"data-number-error": "",
role: "status",
@@ -76129,8 +76133,8 @@ function G5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
//#endregion
//#region src/react/sidebar/sidebar-order.ts
function K5(e) {
- let { mutate: t } = Kx();
- return (0, R.useCallback)((n) => {
+ let { mutate: t } = qx();
+ return (0, L.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
@@ -76146,7 +76150,7 @@ function q5(e, t, n, r) {
//#region src/react/settings-panel/sidebar-order.tsx
var THe = "__home__", J5 = (e) => e === "" ? THe : e;
function EHe({ host: e }) {
- let t = K5(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 t = K5(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, L.useState)(null), [c, l] = (0, L.useState)(!1), [u, d] = (0, L.useState)(null), [f, p] = (0, L.useState)(null), m = (0, L.useRef)(null), h = (0, L.useRef)(null), g = (e, r, i) => {
let a = q5(n, e, r, i);
a && t(a);
}, _ = (e, r) => {
@@ -76193,29 +76197,29 @@ function EHe({ host: e }) {
},
onDragEnd: C
});
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-sidebar-order": "",
id: "sidebarOrderSetting",
- children: [i.map(([e, r, a], o) => /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [i.map(([e, r, a], o) => /* @__PURE__ */ (0, R.jsxs)("div", {
"data-sidebar-row": e,
...w(e),
"data-dragging": u === e ? "" : void 0,
"data-drop": f?.key === e ? f.after ? "after" : "before" : void 0,
- children: [/* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("span", {
"data-sidebar-label": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("i", {
+ /* @__PURE__ */ (0, R.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)(P5, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, R.jsx)(P5, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, z.jsx)(P5, { name: a ?? "" }),
- /* @__PURE__ */ (0, z.jsx)("b", { children: r })
+ /* @__PURE__ */ (0, R.jsx)(P5, { name: a ?? "" }),
+ /* @__PURE__ */ (0, R.jsx)("b", { children: r })
]
- }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ }), /* @__PURE__ */ (0, R.jsxs)("span", {
"data-sidebar-actions": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-sidebar-key": e,
"data-sidebar-move": "-1",
@@ -76223,9 +76227,9 @@ function EHe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, z.jsx)(P5, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, R.jsx)(P5, { name: "chevron-up" })
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-sidebar-key": e,
"data-sidebar-move": "1",
@@ -76233,9 +76237,9 @@ function EHe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, z.jsx)(P5, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, R.jsx)(P5, { name: "chevron-down" })
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-sidebar-key": e,
"data-sidebar-hide": "",
@@ -76245,18 +76249,18 @@ function EHe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, z.jsx)(P5, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, R.jsx)(P5, { name: "eye-off" })
})
]
})]
- }, J5(e))), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }, J5(e))), /* @__PURE__ */ (0, R.jsxs)("div", {
"data-sidebar-add-row": "",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
"data-sidebar-add-picker": "",
onBlur: (e) => {
e.currentTarget.contains(e.relatedTarget) || y();
},
- children: [/* @__PURE__ */ (0, z.jsx)("button", {
+ children: [/* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-sidebar-add-trigger": "",
"aria-haspopup": "listbox",
@@ -76264,22 +76268,22 @@ function EHe({ host: e }) {
disabled: !v,
ref: m,
onClick: b,
- children: v ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)(P5, { name: v[2] ?? "" }),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ children: v ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsx)(P5, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, z.jsx)(P5, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(P5, { name: "check" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "全部页面都已显示" })] })
- }), a.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)(P5, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(P5, { name: "check" }), /* @__PURE__ */ (0, R.jsx)("span", { children: "全部页面都已显示" })] })
+ }), a.length ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
role: "listbox",
"aria-label": "选择要添加的页面",
hidden: !0,
ref: h,
- children: a.map(([e, t, n]) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: a.map(([e, t, n]) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
role: "option",
"data-sidebar-add-option": J5(e),
@@ -76289,10 +76293,10 @@ function EHe({ host: e }) {
onClick: () => {
s(J5(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, z.jsx)(P5, { name: n ?? "" }), /* @__PURE__ */ (0, z.jsx)("span", { children: t })]
+ children: [/* @__PURE__ */ (0, R.jsx)(P5, { name: n ?? "" }), /* @__PURE__ */ (0, R.jsx)("span", { children: t })]
}, J5(e)))
}) : null]
- }), /* @__PURE__ */ (0, z.jsx)("button", {
+ }), /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
className: "geist-button primary",
"data-sidebar-add": "",
@@ -76379,11 +76383,11 @@ var Y5 = [
machine: "none"
}, e7 = 0, t7 = null;
function FHe() {
- return (!Z5 || !Q5?.isConnected) && (Z5?.unmount(), Q5 = document.createElement("div"), Q5.dataset.settingsHost = "", document.body.append(Q5), Z5 = (0, Be.createRoot)(Q5)), Z5;
+ return (!Z5 || !Q5?.isConnected) && (Z5?.unmount(), Q5 = document.createElement("div"), Q5.dataset.settingsHost = "", document.body.append(Q5), Z5 = (0, Ve.createRoot)(Q5)), Z5;
}
function n7() {
let e = X5;
- e && (0, ze.flushSync)(() => FHe().render(/* @__PURE__ */ (0, z.jsx)(LF, { children: /* @__PURE__ */ (0, z.jsx)(HHe, {
+ e && (0, Be.flushSync)(() => FHe().render(/* @__PURE__ */ (0, R.jsx)(LF, { children: /* @__PURE__ */ (0, R.jsx)(HHe, {
host: e,
view: $5
}) })));
@@ -76456,7 +76460,7 @@ function BHe(e) {
}
var a7 = (e) => `settings-tab-${e}`, o7 = (e) => e === Y5.length - 1 ? "machineGroup" : `settings-group-${e}`;
function VHe({ 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 r = (0, L.useRef)(null), i = (0, L.useRef)(null), a = (0, L.useRef)(null), o = (0, L.useRef)(e), s = (0, L.useRef)([]), c = (e, t) => {
let n = i.current;
if (!n) return;
if (!e || !e.offsetHeight) {
@@ -76471,14 +76475,14 @@ function VHe({ tab: e, epoch: t, onSelect: n }) {
h: e.offsetHeight
}, o = a.current;
a.current = r, A(n, t ? o : null, r, "y");
- }, l = (0, R.useRef)(c);
- l.current = c, (0, R.useLayoutEffect)(() => {
+ }, l = (0, L.useRef)(c);
+ l.current = c, (0, L.useLayoutEffect)(() => {
let e = r.current;
if (!e) return;
- le(e);
+ ue(e);
let t = new ResizeObserver(() => l.current(s.current[o.current], !1));
return t.observe(e), () => t.disconnect();
- }, []), (0, R.useLayoutEffect)(() => {
+ }, []), (0, L.useLayoutEffect)(() => {
let t = o.current !== e;
o.current = e, l.current(s.current[e], t);
}, [e, t]);
@@ -76491,7 +76495,7 @@ function VHe({ tab: e, epoch: t, onSelect: n }) {
else return;
e.preventDefault(), n(i), s.current[i]?.focus();
};
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-settings-nav": "",
"data-glass-pane": "",
role: "tablist",
@@ -76501,18 +76505,18 @@ function VHe({ tab: e, epoch: t, onSelect: n }) {
e.pointerType !== "touch" && c(s.current[o.current], !0);
},
children: [
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-settings-glide": "",
"aria-hidden": "true",
hidden: !0,
ref: i
}),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
"data-settings-nav-caption": "",
role: "presentation",
children: "设置"
}),
- Y5.map(([t, r], i) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ Y5.map(([t, r], i) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
role: "tab",
id: a7(i),
@@ -76527,28 +76531,28 @@ function VHe({ tab: e, epoch: t, onSelect: n }) {
onPointerEnter: (e) => {
e.pointerType !== "touch" && c(e.currentTarget, !0);
},
- children: [/* @__PURE__ */ (0, z.jsx)(cHe, { name: r }), t]
+ children: [/* @__PURE__ */ (0, R.jsx)(cHe, { name: r }), t]
}, t))
]
});
}
function s7({ index: e, tab: t, children: n }) {
- return /* @__PURE__ */ (0, z.jsxs)("section", {
+ return /* @__PURE__ */ (0, R.jsxs)("section", {
"data-setting-group": "",
id: o7(e),
role: "tabpanel",
"aria-labelledby": a7(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, z.jsx)("h3", { children: Y5[e][0] }), n]
+ children: [/* @__PURE__ */ (0, R.jsx)("h3", { children: Y5[e][0] }), n]
});
}
function c7({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
- return /* @__PURE__ */ (0, z.jsxs)("label", {
+ return /* @__PURE__ */ (0, R.jsxs)("label", {
"data-setting-row": "",
- children: [/* @__PURE__ */ (0, z.jsxs)("span", { children: [/* @__PURE__ */ (0, z.jsx)("b", { children: t }), /* @__PURE__ */ (0, z.jsx)("small", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("span", { children: [/* @__PURE__ */ (0, R.jsx)("b", { children: t }), /* @__PURE__ */ (0, R.jsx)("small", {
id: r,
children: n
- })] }), /* @__PURE__ */ (0, z.jsx)("input", {
+ })] }), /* @__PURE__ */ (0, R.jsx)("input", {
"data-toggle": "",
type: "checkbox",
id: e,
@@ -76560,40 +76564,40 @@ function c7({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se
});
}
function l7({ title: e, description: t, kind: n, children: r }) {
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
"data-setting-related": n === "related" ? "" : void 0,
- children: [/* @__PURE__ */ (0, z.jsxs)("span", { children: [/* @__PURE__ */ (0, z.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, z.jsx)("small", { children: t }) : t] }), r]
+ children: [/* @__PURE__ */ (0, R.jsxs)("span", { children: [/* @__PURE__ */ (0, R.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, R.jsx)("small", { children: t }) : t] }), r]
});
}
-var u7 = ({ html: e, ...t }) => /* @__PURE__ */ (0, z.jsx)("small", {
+var u7 = ({ html: e, ...t }) => /* @__PURE__ */ (0, R.jsx)("small", {
...t,
dangerouslySetInnerHTML: { __html: e }
-}), d7 = () => `${ie("保存中")}<span>正在保存…</span>`, f7 = (e, t) => e instanceof Error && e.message || t;
+}), d7 = () => `${ae("保存中")}<span>正在保存…</span>`, f7 = (e, t) => e instanceof Error && e.message || t;
function HHe({ host: e, view: t }) {
- let n = (0, R.useSyncExternalStore)(e.store.subscribe, e.store.version), r = e.store.value, 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)(t.tab), u = () => {
+ let n = (0, L.useSyncExternalStore)(e.store.subscribe, e.store.version), r = e.store.value, i = (0, L.useRef)(null), a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = (0, L.useRef)(null), c = (0, L.useRef)(null), l = (0, L.useRef)(t.tab), u = () => {
let [e, t] = [a.current, s.current];
if (!e || !t) return;
let n = parseFloat(getComputedStyle(e).getPropertyValue("--settings-gap")) || 0;
e.toggleAttribute("data-scrolled", t.scrollTop > Math.max(n - 4, 0));
- }, d = (0, R.useRef)(u);
- d.current = u, (0, R.useLayoutEffect)(() => {
+ }, d = (0, L.useRef)(u);
+ d.current = u, (0, L.useLayoutEffect)(() => {
let t = s.current;
if (!t || !i.current) return;
c.current = v(t) ?? c.current, e.attached(i.current);
let n = () => d.current();
return t.addEventListener("scroll", n, { passive: !0 }), () => t.removeEventListener("scroll", n);
- }, [e]), (0, R.useLayoutEffect)(() => {
+ }, [e]), (0, L.useLayoutEffect)(() => {
let e = l.current !== t.tab;
l.current = t.tab, s.current && (s.current.scrollTop = 0), e && o.current && ee(o.current, "h2"), d.current();
- }, [t.tab, t.epoch]), (0, R.useLayoutEffect)(() => {
+ }, [t.tab, t.epoch]), (0, L.useLayoutEffect)(() => {
c.current?.();
});
let f = t.epoch, p = (e) => {
e !== $5.tab && r7({ tab: e });
}, m = () => e.store.save();
- return /* @__PURE__ */ (0, z.jsx)("section", {
+ return /* @__PURE__ */ (0, R.jsx)("section", {
"data-settings-panel": "",
id: "settingsPanel",
hidden: !t.open,
@@ -76606,44 +76610,44 @@ function HHe({ host: e, view: t }) {
onClick: (e) => {
e.target === e.currentTarget && i7();
},
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
"data-settings-card": "",
ref: a,
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-settings-head": "",
ref: o,
- children: [/* @__PURE__ */ (0, z.jsx)("h2", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h2", {
id: "settingsTitle",
children: Y5[t.tab][0]
- }), /* @__PURE__ */ (0, z.jsx)("button", {
+ }), /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
id: "settingsClose",
"aria-label": "关闭设置",
onClick: i7,
- children: /* @__PURE__ */ (0, z.jsx)("svg", {
+ children: /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: "#i-x" })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: "#i-x" })
})
})]
}),
- /* @__PURE__ */ (0, z.jsx)(VHe, {
+ /* @__PURE__ */ (0, R.jsx)(VHe, {
tab: t.tab,
epoch: f,
onSelect: p
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-settings-scroll": "",
ref: s,
children: [
- /* @__PURE__ */ (0, z.jsxs)(s7, {
+ /* @__PURE__ */ (0, R.jsxs)(s7, {
index: 0,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, z.jsx)(l7, {
+ /* @__PURE__ */ (0, R.jsx)(l7, {
title: "主题",
description: "跟随系统,或固定用浅色、深色。",
- children: /* @__PURE__ */ (0, z.jsx)(H5, {
+ children: /* @__PURE__ */ (0, R.jsx)(H5, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -76657,12 +76661,12 @@ function HHe({ host: e, view: t }) {
}
})
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-setting-row": "",
- children: [/* @__PURE__ */ (0, z.jsxs)("label", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("label", {
htmlFor: "glassContrastSetting",
- children: [/* @__PURE__ */ (0, z.jsx)("b", { children: "增加对比度" }), /* @__PURE__ */ (0, z.jsx)("small", { children: "关闭玻璃折射与透明效果,使用实色背景。" })]
- }), /* @__PURE__ */ (0, z.jsx)("input", {
+ children: [/* @__PURE__ */ (0, R.jsx)("b", { children: "增加对比度" }), /* @__PURE__ */ (0, R.jsx)("small", { children: "关闭玻璃折射与透明效果,使用实色背景。" })]
+ }), /* @__PURE__ */ (0, R.jsx)("input", {
type: "checkbox",
id: "glassContrastSetting",
"data-toggle": "",
@@ -76671,7 +76675,7 @@ function HHe({ host: e, view: t }) {
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, z.jsx)(c7, {
+ /* @__PURE__ */ (0, R.jsx)(c7, {
id: "uiSoundsSetting",
title: "界面音效",
checked: r.uiSounds,
@@ -76680,7 +76684,7 @@ function HHe({ host: e, view: t }) {
r.uiSounds = t, m(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, z.jsx)(c7, {
+ /* @__PURE__ */ (0, R.jsx)(c7, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: r.homeGlow.on,
@@ -76689,47 +76693,47 @@ function HHe({ host: e, view: t }) {
r.homeGlow.on = t, m(), e.changed("glow");
}
}),
- /* @__PURE__ */ (0, z.jsx)(CHe, {
+ /* @__PURE__ */ (0, R.jsx)(CHe, {
host: e,
version: n
}),
- /* @__PURE__ */ (0, z.jsxs)("section", {
+ /* @__PURE__ */ (0, R.jsxs)("section", {
"data-sidebar-setting": "",
"aria-labelledby": "sidebarOrderTitle",
- children: [/* @__PURE__ */ (0, z.jsxs)("span", { children: [/* @__PURE__ */ (0, z.jsx)("b", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("span", { children: [/* @__PURE__ */ (0, R.jsx)("b", {
id: "sidebarOrderTitle",
children: "左侧导航"
- }), /* @__PURE__ */ (0, z.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, z.jsx)(EHe, { host: e })]
+ }), /* @__PURE__ */ (0, R.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, R.jsx)(EHe, { host: e })]
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(WHe, {
+ /* @__PURE__ */ (0, R.jsx)(WHe, {
host: e,
tab: t.tab,
epoch: f
}),
- /* @__PURE__ */ (0, z.jsx)(KHe, {
+ /* @__PURE__ */ (0, R.jsx)(KHe, {
host: e,
tab: t.tab,
epoch: f
}),
- /* @__PURE__ */ (0, z.jsx)(s7, {
+ /* @__PURE__ */ (0, R.jsx)(s7, {
index: 3,
tab: t.tab,
- children: /* @__PURE__ */ (0, z.jsx)(JHe, {
+ children: /* @__PURE__ */ (0, R.jsx)(JHe, {
host: e,
epoch: f
})
}),
- /* @__PURE__ */ (0, z.jsx)(YHe, {
+ /* @__PURE__ */ (0, R.jsx)(YHe, {
host: e,
tab: t.tab,
epoch: f
}),
- /* @__PURE__ */ (0, z.jsx)(s7, {
+ /* @__PURE__ */ (0, R.jsx)(s7, {
index: 5,
tab: t.tab,
- children: /* @__PURE__ */ (0, z.jsx)(c7, {
+ children: /* @__PURE__ */ (0, R.jsx)(c7, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
@@ -76738,10 +76742,10 @@ function HHe({ host: e, view: t }) {
onToggle: (t) => e.setCensored(t)
})
}),
- /* @__PURE__ */ (0, z.jsx)(s7, {
+ /* @__PURE__ */ (0, R.jsx)(s7, {
index: 6,
tab: t.tab,
- children: /* @__PURE__ */ (0, z.jsx)(ZHe, {
+ children: /* @__PURE__ */ (0, R.jsx)(ZHe, {
host: e,
machine: t.machine
})
@@ -76758,22 +76762,22 @@ function UHe(e, t) {
n.querySelector("[data-icon-swap]") || (n.innerHTML = E("arrow-up", "arrow-down", "a", {
className: "gselectmark",
iconClass: "gselectmark"
- }) + "<span data-sort-direction-label></span>"), re(n, t ? "a" : "b");
+ }) + "<span data-sort-direction-label></span>"), ie(n, t ? "a" : "b");
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
function WHe({ 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, z.jsxs)(s7, {
+ return /* @__PURE__ */ (0, R.jsxs)(s7, {
index: 1,
tab: t,
children: [
- /* @__PURE__ */ (0, z.jsx)(l7, {
+ /* @__PURE__ */ (0, R.jsx)(l7, {
title: "每批作品",
description: "首页每次加载的作品数量。",
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, z.jsx)(G5, {
+ children: /* @__PURE__ */ (0, R.jsx)(G5, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -76783,16 +76787,16 @@ function WHe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, z.jsx)(l7, {
+ /* @__PURE__ */ (0, R.jsx)(l7, {
title: "默认排序",
kind: "sort",
- description: /* @__PURE__ */ (0, z.jsx)("small", {
+ description: /* @__PURE__ */ (0, R.jsx)("small", {
id: "sortDirectionHelp",
children: a ? "随机排序不使用方向。" : "打开首页时使用的排序与方向。"
}),
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, z.jsx)(U5, {
+ children: [/* @__PURE__ */ (0, R.jsx)(U5, {
id: "defaultSortSetting",
label: "默认排序",
options: DHe,
@@ -76801,7 +76805,7 @@ function WHe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, z.jsx)(U5, {
+ }), /* @__PURE__ */ (0, R.jsx)(U5, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
options: OHe,
@@ -76817,9 +76821,9 @@ function WHe({ host: e, tab: t, epoch: n }) {
})]
})
}),
- /* @__PURE__ */ (0, z.jsxs)("label", {
+ /* @__PURE__ */ (0, R.jsxs)("label", {
"data-setting-row": "",
- children: [/* @__PURE__ */ (0, z.jsxs)("span", { children: [/* @__PURE__ */ (0, z.jsx)("b", { children: "合并分卷与版本" }), /* @__PURE__ */ (0, z.jsx)("small", { children: "同一番号的多个分卷或版次只占一张卡,展示第一个。" })] }), /* @__PURE__ */ (0, z.jsx)("input", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("span", { children: [/* @__PURE__ */ (0, R.jsx)("b", { children: "合并分卷与版本" }), /* @__PURE__ */ (0, R.jsx)("small", { children: "同一番号的多个分卷或版次只占一张卡,展示第一个。" })] }), /* @__PURE__ */ (0, R.jsx)("input", {
type: "checkbox",
id: "groupCollapseSetting",
"data-toggle": "",
@@ -76830,10 +76834,10 @@ function WHe({ host: e, tab: t, epoch: n }) {
}
})]
}),
- /* @__PURE__ */ (0, z.jsx)(l7, {
+ /* @__PURE__ */ (0, R.jsx)(l7, {
title: "JAV 默认封面",
description: "首页、接着看和 Mix 等位置共用;缺图时使用另一种封面。",
- children: /* @__PURE__ */ (0, z.jsx)(H5, {
+ children: /* @__PURE__ */ (0, R.jsx)(H5, {
id: "javImageSetting",
name: "jav-image",
legend: "JAV 默认封面",
@@ -76844,15 +76848,15 @@ function WHe({ host: e, tab: t, epoch: n }) {
text: !0,
epoch: n,
onChoose: (t) => {
- r.javImage = eb(t), i(), e.changed("javImage");
+ r.javImage = tb(t), i(), e.changed("javImage");
}
})
}),
- /* @__PURE__ */ (0, z.jsx)(l7, {
+ /* @__PURE__ */ (0, R.jsx)(l7, {
title: "视频封面默认大小",
kind: "related",
description: "首页和 JAV 等视频列表共用;小图展示完整封套,大图展示完整正封。",
- children: /* @__PURE__ */ (0, z.jsx)(H5, {
+ children: /* @__PURE__ */ (0, R.jsx)(H5, {
id: "javSizeSetting",
name: "video-size",
legend: "视频封面默认大小",
@@ -76865,7 +76869,7 @@ function WHe({ host: e, tab: t, epoch: n }) {
onChoose: (t) => e.setVideoLayout(t)
})
}),
- /* @__PURE__ */ (0, z.jsx)(c7, {
+ /* @__PURE__ */ (0, R.jsx)(c7, {
id: "feedAutoScrollSetting",
title: "新作自动滚动",
checked: r.feedAutoScroll,
@@ -76874,7 +76878,7 @@ function WHe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- NHe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, z.jsx)(GHe, {
+ NHe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, R.jsx)(GHe, {
host: e,
id: t,
settingKey: n,
@@ -76887,23 +76891,23 @@ function WHe({ host: e, tab: t, epoch: n }) {
});
}
function GHe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
- let s = Kx(), [c, l] = (0, R.useState)(null), u = (0, R.useRef)(null), d = e.store.value, f = (t) => {
- l(t), te(u.current), s.mutate({ [n]: t }, {
+ let s = qx(), [c, l] = (0, L.useState)(null), u = (0, L.useRef)(null), d = e.store.value, f = (t) => {
+ l(t), ne(u.current), s.mutate({ [n]: t }, {
onSuccess: (i) => {
d[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
},
onError: (t) => e.failure(`保存${r}开关`, t),
onSettled: () => {
- l(null), te(u.current, !1);
+ l(null), ne(u.current, !1);
}
});
};
- return /* @__PURE__ */ (0, z.jsxs)("label", {
+ return /* @__PURE__ */ (0, R.jsxs)("label", {
"data-setting-row": "",
- children: [/* @__PURE__ */ (0, z.jsxs)("span", { children: [/* @__PURE__ */ (0, z.jsx)("b", { children: i }), /* @__PURE__ */ (0, z.jsx)("small", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("span", { children: [/* @__PURE__ */ (0, R.jsx)("b", { children: i }), /* @__PURE__ */ (0, R.jsx)("small", {
id: a,
children: o
- })] }), /* @__PURE__ */ (0, z.jsx)("input", {
+ })] }), /* @__PURE__ */ (0, R.jsx)("input", {
"data-toggle": "",
type: "checkbox",
id: t,
@@ -76917,16 +76921,16 @@ function GHe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a
}
function KHe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, z.jsxs)(s7, {
+ return /* @__PURE__ */ (0, R.jsxs)(s7, {
index: 2,
tab: t,
children: [
- /* @__PURE__ */ (0, z.jsx)(l7, {
+ /* @__PURE__ */ (0, R.jsx)(l7, {
title: "悬停放大",
description: "转圈完成后进入放大预览。",
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, z.jsx)(G5, {
+ children: /* @__PURE__ */ (0, R.jsx)(G5, {
id: "hoverDelaySetting",
label: "悬停放大",
value: r.hoverDelaySeconds,
@@ -76936,7 +76940,7 @@ function KHe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, z.jsx)(c7, {
+ /* @__PURE__ */ (0, R.jsx)(c7, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: r.detailAutoplay,
@@ -76945,7 +76949,7 @@ function KHe({ host: e, tab: t, epoch: n }) {
r.detailAutoplay = e, i();
}
}),
- /* @__PURE__ */ (0, z.jsx)(c7, {
+ /* @__PURE__ */ (0, R.jsx)(c7, {
id: "miniplayerSetting",
title: "小窗播放",
checked: r.miniplayer,
@@ -76954,12 +76958,12 @@ function KHe({ host: e, tab: t, epoch: n }) {
r.miniplayer = t, i(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, z.jsx)(l7, {
+ /* @__PURE__ */ (0, R.jsx)(l7, {
title: "快进 / 快退",
description: "卡片预览和详情播放器共用。",
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, z.jsx)(G5, {
+ children: /* @__PURE__ */ (0, R.jsx)(G5, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: r.seekSeconds,
@@ -76969,13 +76973,13 @@ function KHe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, z.jsx)(qHe, { epoch: n }),
- /* @__PURE__ */ (0, z.jsx)(l7, {
+ /* @__PURE__ */ (0, R.jsx)(qHe, { epoch: n }),
+ /* @__PURE__ */ (0, R.jsx)(l7, {
title: "相关推荐",
description: "详情下方一次显示的相似作品数量。",
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, z.jsx)(G5, {
+ children: /* @__PURE__ */ (0, R.jsx)(G5, {
id: "relatedLimitSetting",
label: "相关推荐",
value: r.relatedLimit,
@@ -76989,22 +76993,22 @@ function KHe({ host: e, tab: t, epoch: n }) {
});
}
function qHe({ epoch: e }) {
- let t = $n({
- queryKey: Ux,
- queryFn: ({ signal: e }) => Gx(e)
+ let t = er({
+ queryKey: Wx,
+ queryFn: ({ signal: e }) => Kx(e)
}), n = Jre(), r = n.reset;
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
r();
}, [e, r]);
let i = t.data?.mode || "off", a = n.isPending ? d7() : t.isFetching ? k("正在读取状态") : n.isError ? p7(f7(n.error, "保存失败")) : t.isError ? p7(`状态未取得:${f7(t.error, String(t.error))}`) : t.data ? p7(Xre(t.data)) : "读取运行状态…";
- return /* @__PURE__ */ (0, z.jsx)(l7, {
+ return /* @__PURE__ */ (0, R.jsx)(l7, {
title: "视频缩略图采集",
- description: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, z.jsx)(u7, {
+ description: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, R.jsx)(u7, {
id: "videoThumbnailState",
"aria-live": "polite",
html: a
})] }),
- children: /* @__PURE__ */ (0, z.jsx)(U5, {
+ children: /* @__PURE__ */ (0, R.jsx)(U5, {
id: "videoThumbnailSetting",
label: "视频缩略图采集",
options: kHe,
@@ -77016,13 +77020,13 @@ function qHe({ epoch: e }) {
});
}
function JHe({ host: e, epoch: t }) {
- let n = e.store.value, r = Kx();
- return /* @__PURE__ */ (0, z.jsx)(l7, {
+ let n = e.store.value, r = qx();
+ return /* @__PURE__ */ (0, R.jsx)(l7, {
title: "搜索记录",
description: "保存在 Peach 账本,所有访问端同步。",
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, z.jsx)(G5, {
+ children: /* @__PURE__ */ (0, R.jsx)(G5, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
@@ -77034,8 +77038,8 @@ function JHe({ host: e, epoch: t }) {
});
}
function YHe({ host: e, tab: t, epoch: n }) {
- let r = e.store.value, i = Kx(), a = Kx(), [o, s] = (0, R.useState)("");
- (0, R.useEffect)(() => {
+ let r = e.store.value, i = qx(), a = qx(), [o, s] = (0, L.useState)("");
+ (0, L.useEffect)(() => {
s("");
}, [n]);
let c = (t) => {
@@ -77048,18 +77052,18 @@ function YHe({ host: e, tab: t, epoch: n }) {
}
}));
};
- return /* @__PURE__ */ (0, z.jsxs)(s7, {
+ return /* @__PURE__ */ (0, R.jsxs)(s7, {
index: 4,
tab: t,
children: [
- /* @__PURE__ */ (0, z.jsx)(l7, {
+ /* @__PURE__ */ (0, R.jsx)(l7, {
title: "首次采集历史范围",
- description: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("small", { children: "按发布时间限制新来源首次导入的内容;范围内不足 30 条时补到 30 条。没有日期的条目仍会导入;已有内容不受影响,支持历史分页的来源可手动加载更早。" }), /* @__PURE__ */ (0, z.jsx)("small", {
+ description: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("small", { children: "按发布时间限制新来源首次导入的内容;范围内不足 30 条时补到 30 条。没有日期的条目仍会导入;已有内容不受影响,支持历史分页的来源可手动加载更早。" }), /* @__PURE__ */ (0, R.jsx)("small", {
id: "followInitialDaysState",
"aria-live": "polite",
children: o
})] }),
- children: /* @__PURE__ */ (0, z.jsx)(U5, {
+ children: /* @__PURE__ */ (0, R.jsx)(U5, {
id: "followInitialDaysSetting",
label: "首次采集历史范围",
options: e.followInitialRanges,
@@ -77069,11 +77073,11 @@ function YHe({ host: e, tab: t, epoch: n }) {
onPick: (e) => c(Number(e))
})
}),
- /* @__PURE__ */ (0, z.jsx)(XHe, { epoch: n }),
- /* @__PURE__ */ (0, z.jsx)(l7, {
+ /* @__PURE__ */ (0, R.jsx)(XHe, { epoch: n }),
+ /* @__PURE__ */ (0, R.jsx)(l7, {
title: "头像与站点图标刷新",
description: "创作者头像、来源图标和外链圆标保存在本机,到期后下次显示时重新取一次;视频与图片不保存。",
- children: /* @__PURE__ */ (0, z.jsx)(U5, {
+ children: /* @__PURE__ */ (0, R.jsx)(U5, {
id: "metadataRefreshSetting",
label: "头像与站点图标刷新",
options: AHe,
@@ -77089,24 +77093,24 @@ function YHe({ host: e, tab: t, epoch: n }) {
});
}
function XHe({ epoch: e }) {
- let t = $n({
- queryKey: Hx,
- queryFn: ({ signal: e }) => Wx(e)
+ let t = er({
+ queryKey: Ux,
+ queryFn: ({ signal: e }) => Gx(e)
}), n = qre(), r = n.reset;
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
r();
}, [e, r]);
let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? d7() : t.isFetching ? k("正在读取状态") : n.isError ? p7(f7(n.error, "保存失败")) : t.isError ? p7(`状态未取得:${f7(t.error, String(t.error))}`) : i ? p7(Yre(i)) : "读取运行状态…";
- return /* @__PURE__ */ (0, z.jsx)(l7, {
+ return /* @__PURE__ */ (0, R.jsx)(l7, {
title: "关注自动更新",
- description: /* @__PURE__ */ (0, z.jsx)(u7, {
+ description: /* @__PURE__ */ (0, R.jsx)(u7, {
id: "followScheduleState",
"aria-live": "polite",
html: o
}),
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
id: "followScheduleSetting",
- children: /* @__PURE__ */ (0, z.jsx)(G5, {
+ children: /* @__PURE__ */ (0, R.jsx)(G5, {
id: "followScheduleSetting",
label: "关注自动更新",
value: i && !a ? i.enabled ? i.interval_minutes : 0 : null,
@@ -77117,18 +77121,18 @@ function XHe({ epoch: e }) {
});
}
function ZHe({ host: e, machine: t }) {
- return t === "summary" ? /* @__PURE__ */ (0, z.jsx)("div", {
+ return t === "summary" ? /* @__PURE__ */ (0, R.jsx)("div", {
id: "machineSettings",
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, z.jsx)(vHe, { openConfiguration: () => {
+ children: /* @__PURE__ */ (0, R.jsx)(vHe, { openConfiguration: () => {
i7(), e.openConfiguration();
} })
})
- }, "summary") : t === "note" ? /* @__PURE__ */ (0, z.jsx)("div", {
+ }, "summary") : t === "note" ? /* @__PURE__ */ (0, R.jsx)("div", {
id: "machineSettings",
dangerouslySetInnerHTML: { __html: j("媒体文件夹、端口、代理与更新只能在运行 Peach 服务的那台设备上改:在它的浏览器里打开配置页。", { label: "在服务端设备修改" }) }
- }, "note") : /* @__PURE__ */ (0, z.jsx)("div", { id: "machineSettings" }, "none");
+ }, "note") : /* @__PURE__ */ (0, R.jsx)("div", { id: "machineSettings" }, "none");
}
function p7(e) {
return e.replace(/[&<>"']/g, (e) => `&#${e.charCodeAt(0)};`);
@@ -77148,7 +77152,7 @@ function b7() {
let e = g7;
if (!e || !_7) return;
let t = v7, n = y7;
- (0, ze.flushSync)(() => _7.render(/* @__PURE__ */ (0, z.jsx)(LF, { children: /* @__PURE__ */ (0, z.jsx)(tUe, {
+ (0, Be.flushSync)(() => _7.render(/* @__PURE__ */ (0, R.jsx)(LF, { children: /* @__PURE__ */ (0, R.jsx)(tUe, {
host: e,
props: t,
epoch: n
@@ -77167,18 +77171,18 @@ function eUe(e) {
content: null,
filters: {},
latest: null
- }, e.scroll.replaceChildren(), _7 = (0, Be.createRoot)(e.scroll), b7(), e.attached(), $He;
+ }, e.scroll.replaceChildren(), _7 = (0, Ve.createRoot)(e.scroll), b7(), e.attached(), $He;
}
function tUe({ host: e, props: t, epoch: n }) {
- let r = (0, R.useSyncExternalStore)(e.store.subscribe, e.store.version);
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, z.jsx)(nUe, {
+ let r = (0, L.useSyncExternalStore)(e.store.subscribe, e.store.version);
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsx)("div", { "data-sidebar-head": "" }),
+ /* @__PURE__ */ (0, R.jsx)(nUe, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, z.jsx)(iUe, {
+ t.content ? /* @__PURE__ */ (0, R.jsx)(iUe, {
host: e,
content: t.content,
filters: t.filters,
@@ -77187,8 +77191,8 @@ function tUe({ host: e, props: t, epoch: n }) {
] });
}
function nUe({ host: e, epoch: t, version: n }) {
- let r = K5(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 = UO(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || m7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
- (0, R.useEffect)(() => {
+ let r = K5(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, L.useRef)(null), l = (0, L.useRef)(null), u = UO(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || m7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+ (0, L.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
return [
n,
@@ -77200,7 +77204,7 @@ function nUe({ host: e, epoch: t, version: n }) {
i.disconnect(), document.removeEventListener("board:sidebar", d);
};
}, [e, d]);
- let [f, p] = (0, R.useState)(null), [m, h] = (0, R.useState)(null), g = () => {
+ let [f, p] = (0, L.useState)(null), [m, h] = (0, L.useState)(null), g = () => {
p(null), h(null);
}, _ = (e) => ({
draggable: !0,
@@ -77225,11 +77229,11 @@ function nUe({ host: e, epoch: t, version: n }) {
},
onDragEnd: g
}), v = e.scroll.parentElement;
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("div", {
"data-sidebar-nav": "",
ref: c,
onPointerLeave: u.leave,
- children: o.map(([t, n, r], i) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: o.map(([t, n, r], i) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-nav": t,
"aria-pressed": s[i],
@@ -77239,13 +77243,13 @@ function nUe({ host: e, epoch: t, version: n }) {
onClick: () => e.navTo(t),
onPointerEnter: u.hover,
..._(t),
- children: [t === "" ? /* @__PURE__ */ (0, z.jsx)("img", {
+ children: [t === "" ? /* @__PURE__ */ (0, R.jsx)("img", {
"data-sidebar-home-logo": "",
src: "/peach-logo.png",
alt: ""
- }) : /* @__PURE__ */ (0, z.jsx)(P5, { name: r }), /* @__PURE__ */ (0, z.jsx)("span", { children: n })]
+ }) : /* @__PURE__ */ (0, R.jsx)(P5, { name: r }), /* @__PURE__ */ (0, R.jsx)("span", { children: n })]
}, t || m7))
- }), v ? (0, ze.createPortal)(/* @__PURE__ */ (0, z.jsx)("span", {
+ }), v ? (0, Be.createPortal)(/* @__PURE__ */ (0, R.jsx)("span", {
"data-sidebar-glide": "",
"aria-hidden": "true",
ref: l
@@ -77267,7 +77271,7 @@ function rUe(e) {
}
function iUe({ 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)(() => {
+ (0, L.useLayoutEffect)(() => {
t.kind === "catalog" && M(e.scroll, "drawer");
}, [
e,
@@ -77275,7 +77279,7 @@ function iUe({ host: e, content: t, filters: n, latest: r }) {
t.kind
]);
let a = t.kind === "catalog" ? aUe(e, t.facets, n, r, i) : [oUe(e, t.tags, new Set(t.selected))], o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, z.jsx)(sUe, {
+ return a.map((e) => e && /* @__PURE__ */ (0, R.jsx)(sUe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -77288,7 +77292,7 @@ function aUe(e, t, n, r, i) {
let a = rUe(r), o = (t, r, i) => {
if (!t.length) return null;
let o = x7(n, r);
- return /* @__PURE__ */ (0, z.jsx)(w7, {
+ return /* @__PURE__ */ (0, R.jsx)(w7, {
rows: t,
filterKey: r,
multi: i,
@@ -77310,7 +77314,7 @@ function aUe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, z.jsx)(lUe, {
+ body: /* @__PURE__ */ (0, R.jsx)(lUe, {
epoch: i,
title: t,
rows: c,
@@ -77330,7 +77334,7 @@ function aUe(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, z.jsx)(uUe, {
+ body: /* @__PURE__ */ (0, R.jsx)(uUe, {
host: e,
filters: n
})
@@ -77344,7 +77348,7 @@ function aUe(e, t, n, r, i) {
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, z.jsx)(T7, {
+ body: /* @__PURE__ */ (0, R.jsx)(T7, {
rows: t.followTags,
host: e,
selected: null,
@@ -77358,7 +77362,7 @@ function oUe(e, t, n) {
title: "内容标签",
kind: "online",
active: t.some((e) => n.has(e.value)),
- body: /* @__PURE__ */ (0, z.jsx)(T7, {
+ body: /* @__PURE__ */ (0, R.jsx)(T7, {
rows: t,
host: e,
selected: n,
@@ -77374,8 +77378,8 @@ function S7(e, t) {
return n === null ? t : n === "open";
}
function sUe({ 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)(() => S7(e, n)), u = (0, R.useRef)(!1);
- (0, R.useLayoutEffect)(() => {
+ let o = (0, L.useRef)(null), s = (0, L.useRef)(null), [c, l] = (0, L.useState)(() => S7(e, n)), u = (0, L.useRef)(!1);
+ (0, L.useLayoutEffect)(() => {
let t = o.current, r = s.current;
if (!t || !r) return;
let i = u.current ? S7(e, n) : c;
@@ -77384,33 +77388,33 @@ function sUe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
let d = (t) => {
if (t?.preventDefault(), !o.current || !s.current) return;
let n = !c;
- ne(o.current, s.current, n), l(n);
+ re(o.current, s.current, n), l(n);
try {
sessionStorage.setItem(`peach.sidebar.group.${e}`, n ? "open" : "closed");
} catch {}
}, f = `sidebar-collapse-${r}`;
- return /* @__PURE__ */ (0, z.jsxs)("details", {
+ return /* @__PURE__ */ (0, R.jsxs)("details", {
ref: o,
"data-sidebar-group": e,
"data-sidebar-kind": t,
- children: [/* @__PURE__ */ (0, z.jsxs)("summary", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("summary", {
role: "button",
"data-sidebar-toggle": "",
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, z.jsx)(P5, { name: "chevron-right" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e })]
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)(P5, { name: "chevron-right" }), /* @__PURE__ */ (0, R.jsx)("span", { children: e })]
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
id: f,
inert: !c,
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
"data-sidebar-collapse-body": "",
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
"data-sidebar-body": "",
id: `sidebar-group-${encodeURIComponent(e)}`,
- children: /* @__PURE__ */ (0, z.jsx)(C7.Provider, {
+ children: /* @__PURE__ */ (0, R.jsx)(C7.Provider, {
value: d,
children: a
})
@@ -77419,20 +77423,20 @@ function sUe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
})]
});
}
-var C7 = (0, R.createContext)(() => {});
+var C7 = (0, L.createContext)(() => {});
function cUe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, z.jsx)(P5, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, z.jsx)("img", {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, R.jsx)(P5, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, R.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
- }) : /* @__PURE__ */ (0, z.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
+ }) : /* @__PURE__ */ (0, R.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
function w7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }) {
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
let o = e.n === null ? null : i ? i.get(`${t}\n${e.value}`) ?? 0 : e.n;
- return /* @__PURE__ */ (0, z.jsxs)("button", {
+ return /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-sidebar-chip": "",
"aria-pressed": r.includes(e.value),
@@ -77444,12 +77448,12 @@ function w7({ 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, z.jsx)(cUe, { dot: e.dot }),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)(cUe, { dot: e.dot }),
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
}),
- o === null ? null : /* @__PURE__ */ (0, z.jsx)("span", {
+ o === null ? null : /* @__PURE__ */ (0, R.jsx)("span", {
"data-sidebar-count": "",
"data-count-badge": `${t}:${e.value}`,
children: o.toLocaleString()
@@ -77460,10 +77464,10 @@ function w7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }
});
}
function lUe({ 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)(C7), [d, f] = (0, R.useState)(null), [p, m] = (0, R.useState)(e);
+ let u = (0, L.useContext)(C7), [d, f] = (0, L.useState)(null), [p, m] = (0, L.useState)(e);
p !== e && (m(e), f(null));
- let h = (0, R.useRef)(null), g = (0, R.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
- return (0, R.useLayoutEffect)(() => {
+ let h = (0, L.useRef)(null), g = (0, L.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
+ return (0, L.useLayoutEffect)(() => {
let e = h.current;
if (!e) return;
h.current = null;
@@ -77475,14 +77479,14 @@ function lUe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
e.body.classList.add("fcollapse"), T(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(w7, {
+ }, [d, _]), /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(w7, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
selected: o,
counts: s,
host: c
- }), l && n.length > i ? /* @__PURE__ */ (0, z.jsx)("button", {
+ }), l && n.length > i ? /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
ref: g,
"data-sidebar-more": a,
@@ -77500,23 +77504,23 @@ function lUe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, z.jsx)(P5, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, R.jsx)(P5, { name: "chevron-down" })
}) : null] });
}
function T7({ rows: e, host: t, selected: n, badges: r }) {
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-sidebar-chips": "",
- children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: e.map((e) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-sidebar-chip": "",
"data-online": "",
"data-follow-drawer-tag": e.value,
"aria-pressed": n ? n.has(e.value) : void 0,
onClick: () => n ? t.selectFollowTag(e.value) : t.openFollowTag(e.value),
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-sidebar-count": "",
"data-count-badge": r ? `follow:${e.value}` : void 0,
children: r ? (e.n ?? 0).toLocaleString() : e.n
@@ -77526,18 +77530,18 @@ function T7({ rows: e, host: t, selected: n, badges: r }) {
}
var E7 = (e, t) => e ? Math.min(h7, Number(e) / 60) : t;
function uUe({ host: e, filters: t }) {
- let n = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [r, i] = (0, R.useState)(n), [a, o] = (0, R.useState)(() => [E7(t.dur_min, 0), E7(t.dur_max, h7)]), [s, c] = (0, R.useState)("max");
+ let n = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [r, i] = (0, L.useState)(n), [a, o] = (0, L.useState)(() => [E7(t.dur_min, 0), E7(t.dur_max, h7)]), [s, c] = (0, L.useState)("max");
r !== n && (i(n), o([E7(t.dur_min, 0), E7(t.dur_max, h7)]));
- let [l, u] = a, d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(a);
+ let [l, u] = a, d = (0, L.useRef)(null), f = (0, L.useRef)(null), p = (0, L.useRef)(null), m = (0, L.useRef)(a);
m.current = a;
let h = (e, t) => {
let [n, r] = e === "min" ? [t, u] : [l, t];
return n > r && (e === "min" ? r = n : n = r), c(e), o([n, r]), [n, r];
};
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
let t = () => e.setDuration(m.current[0], m.current[1]), n = [f.current, p.current];
return n.forEach((e) => e?.addEventListener("change", t)), () => n.forEach((e) => e?.removeEventListener("change", t));
- }, [e]), (0, R.useLayoutEffect)(() => {
+ }, [e]), (0, L.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
e.style.setProperty("--lo", `${l / h7 * 100}%`), e.style.setProperty("--hi", `${u / h7 * 100}%`);
@@ -77549,23 +77553,23 @@ function uUe({ host: e, filters: t }) {
i && e.style.setProperty("--range-tip-shift", `${Math.round(i)}px`);
});
}, [l, u]);
- let g = (e, t) => /* @__PURE__ */ (0, z.jsx)("output", {
+ let g = (e, t) => /* @__PURE__ */ (0, R.jsx)("output", {
"data-sidebar-range-tip": "",
"data-range-end": e,
"data-range-active": s === e ? "" : void 0,
"aria-hidden": "true",
children: e === "max" && t >= h7 ? "不限" : `${t} 分钟`
});
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-sidebar-duration": "",
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
"data-sidebar-range": "",
id: "durationRange",
ref: d,
children: [
- /* @__PURE__ */ (0, z.jsx)("span", { "data-sidebar-range-base": "" }),
- /* @__PURE__ */ (0, z.jsx)("span", { "data-sidebar-range-fill": "" }),
- /* @__PURE__ */ (0, z.jsx)("input", {
+ /* @__PURE__ */ (0, R.jsx)("span", { "data-sidebar-range-base": "" }),
+ /* @__PURE__ */ (0, R.jsx)("span", { "data-sidebar-range-fill": "" }),
+ /* @__PURE__ */ (0, R.jsx)("input", {
id: "durMin",
type: "range",
min: "0",
@@ -77576,7 +77580,7 @@ function uUe({ host: e, filters: t }) {
ref: f,
onChange: (e) => h("min", Number(e.currentTarget.value))
}),
- /* @__PURE__ */ (0, z.jsx)("input", {
+ /* @__PURE__ */ (0, R.jsx)("input", {
id: "durMax",
type: "range",
min: "0",
@@ -77603,7 +77607,7 @@ function pUe() {
//#region src/react/follow-detail/follow-detail.ts
var O7 = (e) => ["follow-item", e], mUe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, hUe = "/api/follow/save", gUe = "/api/follow/media/hide";
async function k7(e, t) {
- let n = await W(mUe(e), t);
+ let n = await U(mUe(e), t);
for (let t of n.groups || []) {
let r = SM(t).find((t) => t.id === e);
if (r) return {
@@ -77616,14 +77620,14 @@ async function k7(e, t) {
throw Error("这条关注内容已不存在");
}
async function _Ue(e, t) {
- let n = O7(e.id), r = dde(e.id), i = X.getQueryData(vM) ? null : X.fetchQuery({
+ let n = O7(e.id), r = dde(e.id), i = Y.getQueryData(vM) ? null : Y.fetchQuery({
queryKey: vM,
queryFn: () => yM(t)
});
- r ? X.setQueryData(n, {
+ r ? Y.setQueryData(n, {
...r,
item: r.item
- }) : await X.fetchQuery({
+ }) : await Y.fetchQuery({
queryKey: n,
queryFn: () => k7(e.id, t)
}), await i;
@@ -77742,18 +77746,18 @@ var jUe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
//#endregion
//#region src/react/components/mix-queue.tsx
function P7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
- return /* @__PURE__ */ (0, z.jsxs)("aside", {
+ return /* @__PURE__ */ (0, R.jsxs)("aside", {
"data-mix-queue": "",
"data-queue-kind": e,
...s,
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
"data-mix-queue-head": "",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", { children: [/* @__PURE__ */ (0, z.jsx)("h2", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", { children: [/* @__PURE__ */ (0, R.jsx)("h2", {
className: "font-semibold",
children: t
- }), /* @__PURE__ */ (0, z.jsx)("span", { children: n })] }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", { children: n })] }), /* @__PURE__ */ (0, R.jsxs)("div", {
"data-mix-queue-actions": "",
- children: [i, /* @__PURE__ */ (0, z.jsx)("button", {
+ children: [i, /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-queue-close": "",
title: "关闭",
@@ -77762,7 +77766,7 @@ function P7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
dangerouslySetInnerHTML: { __html: l("x") }
})]
})]
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
"data-mix-list": "",
ref: a,
children: o
@@ -77770,62 +77774,62 @@ function P7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
});
}
function F7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
- let s = /* @__PURE__ */ (0, z.jsx)("span", {
+ let s = /* @__PURE__ */ (0, R.jsx)("span", {
"data-mix-item-text": "",
children: a
});
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-mix-row": "",
...i,
- children: [/* @__PURE__ */ (0, z.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-mix-item": "",
"aria-current": e ? "true" : "false",
...o,
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-mix-item-pic": "",
children: t
- }), n === void 0 ? s : /* @__PURE__ */ (0, z.jsxs)("span", {
+ }), n === void 0 ? s : /* @__PURE__ */ (0, R.jsxs)("span", {
"data-mix-item-meta": "",
children: [n, s]
})]
}), r]
});
}
-var MUe = ({ label: e, count: t }) => /* @__PURE__ */ (0, z.jsxs)("h3", {
+var MUe = ({ label: e, count: t }) => /* @__PURE__ */ (0, R.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
" ",
- /* @__PURE__ */ (0, z.jsx)("span", { children: t })
+ /* @__PURE__ */ (0, R.jsx)("span", { children: t })
]
-}), I7 = (e) => Number(e) > 0, NUe = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
+}), I7 = (e) => Number(e) > 0, NUe = ({ name: e }) => /* @__PURE__ */ (0, R.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: l(e) }
}), L7 = l("external-link", "externalmark");
function PUe(e) {
- let { id: t, actions: n } = e, r = $n({
+ let { id: t, actions: n } = e, r = er({
queryKey: O7(t),
queryFn: ({ signal: e }) => k7(t, e)
- }), i = $n({
+ }), i = er({
queryKey: vM,
queryFn: ({ signal: e }) => yM(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, z.jsx)(FUe, {
+ }), a = (0, L.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, L.useState)(e.mediaIndex);
+ return r.data ? /* @__PURE__ */ (0, R.jsx)(FUe, {
...e,
data: r.data,
context: kUe(r.data, a),
mediaIndex: o,
onMedia: s
- }) : /* @__PURE__ */ (0, z.jsx)("div", {
+ }) : /* @__PURE__ */ (0, R.jsx)("div", {
"data-stage-grid": "",
"data-follow-detail": "",
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, z.jsx)(R7, { onClose: n.close }), /* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)(R7, { onClose: n.close }), /* @__PURE__ */ (0, R.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? /* @__PURE__ */ (0, z.jsx)(sb, {
+ children: r.isError ? /* @__PURE__ */ (0, R.jsx)(cb, {
message: m(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -77833,7 +77837,7 @@ function PUe(e) {
})
});
}
-var R7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
+var R7 = ({ onClose: e }) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -77843,7 +77847,7 @@ var R7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
dangerouslySetInnerHTML: { __html: l("x") }
});
function FUe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
- let { item: s, group: c } = e, l = vUe(s, c, n, i), u = zUe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, R.useState)({
+ let { item: s, group: c } = e, l = vUe(s, c, n, i), u = zUe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, L.useState)({
key: "",
kind: ""
}), m = {
@@ -77856,38 +77860,38 @@ function FUe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
kind: "thumb"
})
};
- (0, R.useLayoutEffect)(() => {
+ (0, L.useLayoutEffect)(() => {
o.present(s, l.kind);
}, [
o,
s,
l.kind
]);
- let h = !l.embedded.length && l.collection ? yUe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, z.jsx)(H7, {
+ let h = !l.embedded.length && l.collection ? yUe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, R.jsx)(H7, {
item: s,
current: l.selected.index,
helpers: a,
actions: o,
onMedia: r
- }) : l.collection ? h ? /* @__PURE__ */ (0, z.jsx)(H7, {
+ }) : l.collection ? h ? /* @__PURE__ */ (0, R.jsx)(H7, {
item: h,
current: null,
helpers: a,
actions: o,
onMedia: r,
currentId: s.id
- }) : /* @__PURE__ */ (0, z.jsx)(LUe, {
+ }) : /* @__PURE__ */ (0, R.jsx)(LUe, {
group: l.collection,
itemId: s.id,
helpers: a,
actions: o
}) : null;
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": g ? "" : void 0,
"data-follow-detail": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(IUe, {
+ /* @__PURE__ */ (0, R.jsx)(IUe, {
item: s,
media: l,
helpers: a,
@@ -77896,7 +77900,7 @@ function FUe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
issues: m
}, d),
g,
- /* @__PURE__ */ (0, z.jsx)(RUe, {
+ /* @__PURE__ */ (0, R.jsx)(RUe, {
item: s,
data: e,
context: t,
@@ -77910,14 +77914,14 @@ function FUe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
});
}
function IUe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a }) {
- let { kind: o, selected: s, src: c, images: u, position: d, carousel: f, frameRatio: p } = t, m = (0, R.useRef)(null), [h, g] = (0, R.useState)(null), _ = AUe(e, t), v = s?.thumb_url || e.thumb_url || "", y = e.playable && o === "video", b = e.playable && o === "image" ? c : e.thumb_url || "", x = e.playable && o === "image" && v && v !== c ? v : "", [S, C] = (0, R.useState)(b), w = (0, R.useRef)({
+ let { kind: o, selected: s, src: c, images: u, position: d, carousel: f, frameRatio: p } = t, m = (0, L.useRef)(null), [h, g] = (0, L.useState)(null), _ = AUe(e, t), v = s?.thumb_url || e.thumb_url || "", y = e.playable && o === "video", b = e.playable && o === "image" ? c : e.thumb_url || "", x = e.playable && o === "image" && v && v !== c ? v : "", [S, C] = (0, L.useState)(b), w = (0, L.useRef)({
item: e,
selected: s
- }), T = (0, R.useRef)(a.failed);
- T.current = a.failed, (0, R.useLayoutEffect)(() => {
+ }), T = (0, L.useRef)(a.failed);
+ T.current = a.failed, (0, L.useLayoutEffect)(() => {
let e = m.current;
if (!(!e || !y)) return r.mountPlayer(e, w.current.item, w.current.selected, { onError: () => T.current() });
- }, [r, y]), (0, R.useLayoutEffect)(() => {
+ }, [r, y]), (0, L.useLayoutEffect)(() => {
let e = m.current, t = e?.querySelector("[data-follow-detail-poster]"), n = e?.querySelector("[data-follow-image-step]");
if (!e || !t || !n) return;
let r = () => {
@@ -77930,7 +77934,7 @@ function IUe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a
};
}, [S]);
let E = (e) => i(u[(d + e + u.length) % u.length].index);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
ref: m,
"data-stage-media": "",
"data-follow-detail-media": o || "none",
@@ -77940,8 +77944,8 @@ function IUe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a
"--follow-image-arrow-inset": h === null ? void 0 : `${h}px`
},
children: [
- /* @__PURE__ */ (0, z.jsx)(R7, { onClose: r.close }),
- y ? null : b ? /* @__PURE__ */ (0, z.jsx)("img", {
+ /* @__PURE__ */ (0, R.jsx)(R7, { onClose: r.close }),
+ y ? null : b ? /* @__PURE__ */ (0, R.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": _.length ? "" : void 0,
src: S,
@@ -77955,15 +77959,15 @@ function IUe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a
}
a.failed();
}
- }) : /* @__PURE__ */ (0, z.jsxs)("div", {
+ }) : /* @__PURE__ */ (0, R.jsxs)("div", {
"data-follow-detail-placeholder": "",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: NM(e.resource_provider || e.provider) }
- }), /* @__PURE__ */ (0, z.jsx)("span", { children: "没有可用预览" })]
+ }), /* @__PURE__ */ (0, R.jsx)("span", { children: "没有可用预览" })]
}),
- f ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)("button", {
+ f ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-follow-image-step": "-1",
"data-follow-image-arrow": "prev",
@@ -77972,7 +77976,7 @@ function IUe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a
onClick: () => E(-1),
dangerouslySetInnerHTML: { __html: l("chevron-left") }
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-follow-image-step": "1",
"data-follow-image-arrow": "next",
@@ -77981,11 +77985,11 @@ function IUe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a
onClick: () => E(1),
dangerouslySetInnerHTML: { __html: l("chevron-right") }
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
"data-follow-image-dots": "",
role: "group",
"aria-label": `${u.length} 张图片`,
- children: u.map((e, t) => /* @__PURE__ */ (0, z.jsx)("button", {
+ children: u.map((e, t) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-follow-image-item": e.index,
"aria-current": t === d ? "true" : "false",
@@ -77998,13 +78002,13 @@ function IUe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a
]
});
}
-var z7 = ({ kind: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
+var z7 = ({ kind: e }) => /* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: l(e === "image" ? "image-off" : "play") }
});
function B7({ src: e }) {
- let [t, n] = (0, R.useState)(!1);
- return t ? null : /* @__PURE__ */ (0, z.jsx)("img", {
+ let [t, n] = (0, L.useState)(!1);
+ return t ? null : /* @__PURE__ */ (0, R.jsx)("img", {
src: e,
alt: "",
loading: "lazy",
@@ -78013,13 +78017,13 @@ function B7({ src: e }) {
});
}
function V7(e) {
- return (0, R.useCallback)((t) => {
+ return (0, L.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
function LUe({ group: e, itemId: t, helpers: n, actions: r }) {
let i = DM(e), a = V7(n);
- return /* @__PURE__ */ (0, z.jsx)(P7, {
+ return /* @__PURE__ */ (0, R.jsx)(P7, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
@@ -78028,27 +78032,27 @@ function LUe({ group: e, itemId: t, helpers: n, actions: r }) {
summary: `${e.primary.title || "未命名合集"} · ${i.length} 个视频`,
children: i.map((n) => {
let i = e.duplicates.includes(n), a = CUe(e, n, i ? n.provider_label : ""), s = i ? NM(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, z.jsxs)(F7, {
+ return /* @__PURE__ */ (0, R.jsxs)(F7, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, z.jsx)(B7, { src: n.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(z7, { kind: "video" }), I7(n.duration) ? /* @__PURE__ */ (0, z.jsx)("i", {
+ pic: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, R.jsx)(B7, { src: n.thumb_url }) : /* @__PURE__ */ (0, R.jsx)(z7, { kind: "video" }), I7(n.duration) ? /* @__PURE__ */ (0, R.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: o(n.duration)
}) : null] }),
- children: [/* @__PURE__ */ (0, z.jsx)("b", {
+ children: [/* @__PURE__ */ (0, R.jsx)("b", {
"data-truncate-end": "",
children: a.title
- }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ }), /* @__PURE__ */ (0, R.jsxs)("span", {
"data-follow-queue-meta": "",
- children: [s ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [s ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-queue-source": "",
dangerouslySetInnerHTML: { __html: s }
- }) : /* @__PURE__ */ (0, z.jsx)("i", {
+ }) : /* @__PURE__ */ (0, R.jsx)("i", {
"data-follow-variant": n.variant_kind || "",
children: a.label
- }), /* @__PURE__ */ (0, z.jsx)("time", {
+ }), /* @__PURE__ */ (0, R.jsx)("time", {
dateTime: n.published_at || "",
children: BM(n)
})]
@@ -78068,27 +78072,27 @@ function H7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, c.push(n)), n.items.push(e);
});
let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);
- return /* @__PURE__ */ (0, z.jsx)(P7, {
+ return /* @__PURE__ */ (0, R.jsx)(P7, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
summary: `${e.title || "未命名内容"} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, z.jsx)(MUe, {
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, R.jsx)(MUe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, z.jsxs)(F7, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, R.jsxs)(F7, {
current: n.index === t,
"data-follow-media-owner": e.id,
"data-follow-media-item": n.index,
"data-media-kind": n.media_kind || "",
onClick: () => l(n),
- pic: n.thumb_url ? /* @__PURE__ */ (0, z.jsx)(B7, { src: n.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(z7, { kind: n.media_kind || "" }),
- children: [/* @__PURE__ */ (0, z.jsx)("b", {
+ pic: n.thumb_url ? /* @__PURE__ */ (0, R.jsx)(B7, { src: n.thumb_url }) : /* @__PURE__ */ (0, R.jsx)(z7, { kind: n.media_kind || "" }),
+ children: [/* @__PURE__ */ (0, R.jsx)("b", {
"data-middle-truncate": "",
children: wUe(n)
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
})]
@@ -78105,20 +78109,20 @@ function RUe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"aria-busy": !0,
"aria-disabled": !0
} : {};
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-stage-side": "",
"data-follow-detail-side": "",
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-follow-detail-title": "",
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
dangerouslySetInnerHTML: { __html: LM(h, e) + i(e.title) }
- }), e.url ? /* @__PURE__ */ (0, z.jsx)("a", {
+ }), e.url ? /* @__PURE__ */ (0, R.jsx)("a", {
"data-follow-origin": "",
href: e.url,
target: "_blank",
@@ -78128,67 +78132,67 @@ function RUe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
dangerouslySetInnerHTML: { __html: L7 }
}) : null]
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-follow-detail-identity": "",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-source-avatar": "",
dangerouslySetInnerHTML: { __html: _.avatar }
- }), /* @__PURE__ */ (0, z.jsxs)("div", { children: [
- /* @__PURE__ */ (0, z.jsx)("b", { children: _.author }),
- v ? /* @__PURE__ */ (0, z.jsxs)("span", { children: ["发布者 ", v] }) : null,
- _.credited ? /* @__PURE__ */ (0, z.jsxs)("span", { children: ["署名含 ", _.credited] }) : null
+ }), /* @__PURE__ */ (0, R.jsxs)("div", { children: [
+ /* @__PURE__ */ (0, R.jsx)("b", { children: _.author }),
+ v ? /* @__PURE__ */ (0, R.jsxs)("span", { children: ["发布者 ", v] }) : null,
+ _.credited ? /* @__PURE__ */ (0, R.jsxs)("span", { children: ["署名含 ", _.credited] }) : null
] })]
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "mono",
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", { children: BM(e) }),
- I7(e.duration) ? /* @__PURE__ */ (0, z.jsx)("span", { children: o(e.duration) }) : null,
- g ? /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", { children: BM(e) }),
+ I7(e.duration) ? /* @__PURE__ */ (0, R.jsx)("span", { children: o(e.duration) }) : null,
+ g ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: g }
}) : null
]
}),
- e.summary ? /* @__PURE__ */ (0, z.jsx)("p", {
+ e.summary ? /* @__PURE__ */ (0, R.jsx)("p", {
"data-follow-detail-summary": "",
children: e.summary
}) : null,
- y ? /* @__PURE__ */ (0, z.jsx)("p", {
+ y ? /* @__PURE__ */ (0, R.jsx)("p", {
"data-follow-media-issue": "",
children: y
}) : null,
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
"data-follow-media-issue": "",
"data-media-load-issue": "",
hidden: s !== "failed",
children: "媒体未取回:上游这一次没有返回内容,多半是站点限流,过一阵再打开。"
}),
- /* @__PURE__ */ (0, z.jsx)("p", {
+ /* @__PURE__ */ (0, R.jsx)("p", {
"data-follow-media-issue": "",
"data-media-thumb-fallback": "",
hidden: s !== "thumb",
children: "原图未取回,先显示缩略图:上游拦下了这一次请求。"
}),
- e.resource_urls?.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ e.resource_urls?.length ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-follow-resources": "",
- children: e.resource_urls.map((e) => /* @__PURE__ */ (0, z.jsxs)("a", {
+ children: e.resource_urls.map((e) => /* @__PURE__ */ (0, R.jsxs)("a", {
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [SUe(e), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [SUe(e), /* @__PURE__ */ (0, R.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: L7 }
})]
}, e))
}) : null,
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-stage-actions": "",
"data-follow-detail-actions": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-stage-action": "later",
"data-follow-detail-save": "",
@@ -78199,7 +78203,7 @@ function RUe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
onClick: a.save,
dangerouslySetInnerHTML: { __html: l(x ? "check" : "bookmark-plus") }
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-stage-action": "later",
"data-follow-detail-want": "",
@@ -78210,7 +78214,7 @@ function RUe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
onClick: a.toggleWant,
dangerouslySetInnerHTML: { __html: l("star") }
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-stage-action": "seen",
"data-follow-detail-status": "seen",
@@ -78221,7 +78225,7 @@ function RUe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
onClick: () => a.status("seen"),
dangerouslySetInnerHTML: { __html: l("eye") }
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-stage-action": "dislike",
"data-follow-detail-status": "ignored",
@@ -78232,7 +78236,7 @@ function RUe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
onClick: () => a.status("ignored"),
dangerouslySetInnerHTML: { __html: l("eye-off") }
}),
- e.status === "seen" || e.status === "ignored" ? /* @__PURE__ */ (0, z.jsx)("button", {
+ e.status === "seen" || e.status === "ignored" ? /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-follow-detail-status": "new",
"aria-label": "恢复未看",
@@ -78241,7 +78245,7 @@ function RUe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
onClick: () => a.status("new"),
dangerouslySetInnerHTML: { __html: l("rotate-ccw") }
}) : null,
- f === "image" && p ? /* @__PURE__ */ (0, z.jsx)("button", {
+ f === "image" && p ? /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-stage-action": "dislike",
"data-follow-media-hide": p.index,
@@ -78251,7 +78255,7 @@ function RUe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
onClick: () => a.hide(p.index),
dangerouslySetInnerHTML: { __html: l("image-off") }
}) : null,
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-follow-cloud-download": "",
"aria-label": "云下载",
@@ -78259,7 +78263,7 @@ function RUe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
onClick: () => d.cloudDownload(e),
dangerouslySetInnerHTML: { __html: l("cloud-download") }
}),
- m ? /* @__PURE__ */ (0, z.jsx)("a", {
+ m ? /* @__PURE__ */ (0, R.jsx)("a", {
"data-follow-download": "",
href: `${m}${m.includes("?") ? "&" : "?"}download=1`,
download: "",
@@ -78269,37 +78273,37 @@ function RUe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
}) : null
]
}),
- e.hidden_media?.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ e.hidden_media?.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
"data-follow-hidden-media": "",
- children: [/* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("span", {
"data-follow-hidden-label": "",
children: [
"已隐藏 ",
e.hidden_media.length,
" 张"
]
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
"data-follow-hidden-thumbs": "",
- children: e.hidden_media.map((e) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: e.hidden_media.map((e) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-follow-media-restore": e.index,
title: `恢复显示 ${e.name || ""}`,
"aria-label": `恢复显示 ${e.name || ""}`,
...C(`restore:${e.index}`),
onClick: () => a.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, z.jsx)(B7, { src: e.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(NUe, { name: "image-off" }), /* @__PURE__ */ (0, z.jsx)("i", { dangerouslySetInnerHTML: { __html: l("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, R.jsx)(B7, { src: e.thumb_url }) : /* @__PURE__ */ (0, R.jsx)(NUe, { name: "image-off" }), /* @__PURE__ */ (0, R.jsx)("i", { dangerouslySetInnerHTML: { __html: l("rotate-ccw") } })]
}, e.index))
})]
}) : null,
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-state": "",
"aria-live": "polite",
children: a.failure
}),
- b.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ b.length ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-stage-tags": "",
"data-follow-detail-tags": "",
- children: b.map((t) => /* @__PURE__ */ (0, z.jsx)("button", {
+ children: b.map((t) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-tag-cat": EUe(e, t),
"data-follow-tag": t,
@@ -78312,11 +78316,11 @@ function RUe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
});
}
function zUe(e, t, n) {
- let r = e.id, i = O7(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), l = (e, t) => o((n) => {
+ let r = e.id, i = O7(r), [a, o] = (0, L.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, L.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), u = (e) => {
- X.setQueryData(i, (t) => t && {
+ Y.setQueryData(i, (t) => t && {
...t,
item: {
...t.item,
@@ -78325,14 +78329,14 @@ function zUe(e, t, n) {
}), pde(r, e);
}, d = (e) => {
c(m(e) || "操作失败"), t.failure("更新关注状态", e);
- }, f = er({
- mutationFn: ({ to: e }) => G(Mj, {
+ }, f = tr({
+ mutationFn: ({ to: e }) => W(Mj, {
item: r,
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
u(n), c(""), n === "ignored" && lF(), t.toast(jUe(n), { undo: i === "saved" ? void 0 : async () => {
- await G(Mj, {
+ await W(Mj, {
item: r,
to: i
}), u(i);
@@ -78340,34 +78344,34 @@ function zUe(e, t, n) {
},
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
- }), p = er({
- mutationFn: () => G(hUe, { item: r }),
+ }), p = tr({
+ mutationFn: () => W(hUe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到账本");
},
onError: d,
onSettled: () => l("save", !1)
- }), h = er({
+ }), h = tr({
mutationFn: async ({ index: e, hidden: t }) => {
- await G(gUe, {
+ await W(gUe, {
item: r,
media: e,
hidden: t
- }), await X.invalidateQueries({
+ }), await Y.invalidateQueries({
queryKey: i,
exact: !0
});
},
onSuccess: (e, { hidden: r, next: a }) => {
- let o = X.getQueryData(i);
+ let o = Y.getQueryData(i);
o && fde(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
},
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
- }), g = $n({
+ }), g = er({
queryKey: Ime(r),
queryFn: ({ signal: e }) => zme(r, e)
- }).data?.want ?? null, _ = er({
+ }).data?.want ?? null, _ = tr({
mutationFn: async (e) => (e ? await cF([e.id]) : await sF({ follow: r }), !e),
onSuccess: (e) => {
c(""), t.toast(e ? "已加入想要" : "已取消想要"), lF();
@@ -78422,12 +78426,12 @@ function VUe(e) {
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var HUe = "/api/cover-crop", UUe = (e, t) => G(HUe, {
+var HUe = "/api/cover-crop", UUe = (e, t) => W(HUe, {
code: e,
box: t
}), U7 = .704;
function W7({ className: e }) {
- return /* @__PURE__ */ (0, z.jsx)("svg", {
+ return /* @__PURE__ */ (0, R.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
@@ -78436,12 +78440,12 @@ function W7({ className: e }) {
strokeLinecap: "round",
strokeLinejoin: "round",
className: e,
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: "#i-crop" })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: "#i-crop" })
});
}
function WUe({ code: e, coverUrl: t, box: n, onSaved: r }) {
- let [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null);
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("button", {
+ let [i, a] = (0, L.useState)(!1), o = (0, L.useRef)(null);
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("button", {
ref: o,
type: "button",
"aria-haspopup": "dialog",
@@ -78450,15 +78454,15 @@ function WUe({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, z.jsx)(W7, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, z.jsx)(Oh, {
+ children: /* @__PURE__ */ (0, R.jsx)(W7, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, R.jsx)(kh, {
getContainer: () => VUe(o.current),
- children: /* @__PURE__ */ (0, z.jsx)(tj, {
+ children: /* @__PURE__ */ (0, R.jsx)(tj, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, z.jsx)(GUe, {
+ children: /* @__PURE__ */ (0, R.jsx)(GUe, {
code: e,
coverUrl: t,
box: n,
@@ -78469,7 +78473,7 @@ function WUe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})] });
}
function GUe({ 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 = aO(), f = er({
+ let [a, o] = (0, L.useState)(null), [s, c] = (0, L.useState)(null), [l, u] = (0, L.useState)(!0), d = aO(), f = tr({
mutationFn: (t) => UUe(e, t),
onSuccess: () => {
i(), r();
@@ -78486,41 +78490,41 @@ function GUe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
c(ZA(t, e, null));
}
let m = f.isPending;
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, z.jsx)(nj, { children: /* @__PURE__ */ (0, z.jsx)(W7, { className: "size-6" }) }),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsx)(nj, { children: /* @__PURE__ */ (0, R.jsx)(W7, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(gu, {
+ /* @__PURE__ */ (0, R.jsx)(_u, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
}),
- /* @__PURE__ */ (0, z.jsxs)("p", {
+ /* @__PURE__ */ (0, R.jsxs)("p", {
className: "text-body-2-regular text-text-secondary",
children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]
}),
- f.error ? /* @__PURE__ */ (0, z.jsx)(K, {
+ f.error ? /* @__PURE__ */ (0, R.jsx)(G, {
tone: "error",
- children: U(f.error)
+ children: H(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsx)(sO, {
- icon: Xe,
+ /* @__PURE__ */ (0, R.jsx)(sO, {
+ icon: Ze,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
}),
- /* @__PURE__ */ (0, z.jsx)("div", {
+ /* @__PURE__ */ (0, R.jsx)("div", {
ref: d,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, z.jsx)(ij, {
+ children: /* @__PURE__ */ (0, R.jsx)(ij, {
src: t,
aspect: l ? U7 : null,
box: s,
@@ -78532,29 +78536,29 @@ function GUe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
onBox: c
})
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, z.jsx)(KN, {
+ children: [/* @__PURE__ */ (0, R.jsx)(KN, {
isSelected: l,
onChange: (e) => {
u(e), e && s && a && c(ZA(s, a, U7));
},
- children: /* @__PURE__ */ (0, z.jsx)("span", {
+ children: /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: "锁定正封比例"
})
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
- children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
- ...q(m),
+ ...K(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
- }), /* @__PURE__ */ (0, z.jsx)(H, {
+ }), /* @__PURE__ */ (0, R.jsx)(V, {
disabled: !s || !a,
- ...q(m),
+ ...K(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -78566,34 +78570,34 @@ function GUe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/react/item-detail/item-detail-page.tsx
-var G7 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
+var G7 = ({ name: e }) => /* @__PURE__ */ (0, R.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: l(e) }
-}), K7 = ({ html: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
+}), K7 = ({ html: e }) => /* @__PURE__ */ (0, R.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
});
function KUe(e) {
- let { queue: t, actions: n } = e, r = $n({
+ let { queue: t, actions: n } = e, r = er({
queryKey: t ? h8(t) : ["item-queue", "none"],
queryFn: ({ signal: n }) => w8(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? D8(i, e.id) : t ? null : e.id, o = $n({
+ }), i = t && r.data || null, a = i ? D8(i, e.id) : t ? null : e.id, o = er({
queryKey: m8(a ?? 0),
queryFn: ({ signal: e }) => C8(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
let e = o.error || r.error;
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-stage-grid": "",
"data-item-detail": "",
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, z.jsx)(q7, { onClose: n.close }), /* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)(q7, { onClose: n.close }), /* @__PURE__ */ (0, R.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, z.jsx)(sb, {
+ children: e ? /* @__PURE__ */ (0, R.jsx)(cb, {
message: m(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -78603,13 +78607,13 @@ function KUe(e) {
})
});
}
- return /* @__PURE__ */ (0, z.jsx)(qUe, {
+ return /* @__PURE__ */ (0, R.jsx)(qUe, {
...e,
item: lVe(o.data, i),
queue: i
}, o.data.id);
}
-var q7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
+var q7 = ({ onClose: e }) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -78619,35 +78623,35 @@ var q7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
dangerouslySetInnerHTML: { __html: l("x") }
});
function qUe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = lWe(t, r, e.grid.cache, i.tagLabel), o = (0, R.useRef)(t);
- (0, R.useLayoutEffect)(() => {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = lWe(t, r, e.grid.cache, i.tagLabel), o = (0, L.useRef)(t);
+ (0, L.useLayoutEffect)(() => {
r.present(o.current, n);
- }, [r]), (0, R.useEffect)(() => {
- n?.kind === "playlist" && G(g8, {
+ }, [r]), (0, L.useEffect)(() => {
+ n?.kind === "playlist" && W(g8, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
let s = CVe(t, i.sourceOffline(t.location || ""));
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(JUe, {
+ /* @__PURE__ */ (0, R.jsx)(JUe, {
item: t,
gate: s,
helpers: i,
actions: r
}),
- n ? /* @__PURE__ */ (0, z.jsx)(XUe, {
+ n ? /* @__PURE__ */ (0, R.jsx)(XUe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- /* @__PURE__ */ (0, z.jsx)($Ue, {
+ /* @__PURE__ */ (0, R.jsx)($Ue, {
item: t,
queue: n,
write: a,
@@ -78655,33 +78659,33 @@ function qUe(e) {
actions: r
})
]
- }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, z.jsx)(cWe, { ...e }) : null] });
+ }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, R.jsx)(cWe, { ...e }) : null] });
}
function JUe({ item: e, gate: t, helpers: n, actions: r }) {
- let [i, a] = (0, R.useState)(t ? "" : "auto"), o = (0, R.useRef)(null), c = (0, R.useRef)(e);
- (0, R.useLayoutEffect)(() => {
+ let [i, a] = (0, L.useState)(t ? "" : "auto"), o = (0, L.useRef)(null), c = (0, L.useRef)(e);
+ (0, L.useLayoutEffect)(() => {
let e = o.current;
if (!(!e || !i)) return r.mountPlayer(e, c.current, null, i === "clicked" ? { autoplay: !0 } : void 0);
}, [r, i]);
let l = n.badgeHtml(e.location || "", e.cost || "", "srcbig");
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
ref: o,
"data-stage-media": "",
"data-item-media": t || "video",
- children: [/* @__PURE__ */ (0, z.jsx)(q7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, z.jsx)(YUe, {
+ children: [/* @__PURE__ */ (0, R.jsx)(q7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, R.jsx)(YUe, {
item: e,
badge: l,
helpers: n,
actions: r
- }) : t === "online" ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ }) : t === "online" ? /* @__PURE__ */ (0, R.jsxs)("div", {
id: "onlineGate",
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, z.jsx)(K7, { html: l }),
- /* @__PURE__ */ (0, z.jsx)("b", { children: "在线资产" }),
- /* @__PURE__ */ (0, z.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)(K7, { html: l }),
+ /* @__PURE__ */ (0, R.jsx)("b", { children: "在线资产" }),
+ /* @__PURE__ */ (0, R.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
+ /* @__PURE__ */ (0, R.jsx)("button", {
className: "chip",
id: "openSavedFollow",
type: "button",
@@ -78689,29 +78693,29 @@ function JUe({ item: e, gate: t, helpers: n, actions: r }) {
children: "打开已保存关注"
})
]
- }) : t === "metered" && !i ? /* @__PURE__ */ (0, z.jsxs)("div", {
+ }) : t === "metered" && !i ? /* @__PURE__ */ (0, R.jsxs)("div", {
id: "gate",
"data-item-gate": "metered",
onClick: () => a("clicked"),
- children: [/* @__PURE__ */ (0, z.jsx)(K7, { html: l }), /* @__PURE__ */ (0, z.jsxs)("span", { children: ["点此开始拉流 · ", s(e.size || 0)] })]
+ children: [/* @__PURE__ */ (0, R.jsx)(K7, { html: l }), /* @__PURE__ */ (0, R.jsxs)("span", { children: ["点此开始拉流 · ", s(e.size || 0)] })]
}) : null]
});
}
function YUe({ item: e, badge: t, helpers: n, actions: r }) {
- let [i, a] = (0, R.useState)(!1), [o, s] = (0, R.useState)(!1), c = async () => {
+ let [i, a] = (0, L.useState)(!1), [o, s] = (0, L.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
a(!1), t ? r.reopen() : s(!0);
};
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
id: "offlineGate",
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, z.jsx)(K7, { html: t }),
- /* @__PURE__ */ (0, z.jsx)("b", { children: "脱盘模式" }),
- /* @__PURE__ */ (0, z.jsx)("span", { children: n.offlineReason(e.location || "") }),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)(K7, { html: t }),
+ /* @__PURE__ */ (0, R.jsx)("b", { children: "脱盘模式" }),
+ /* @__PURE__ */ (0, R.jsx)("span", { children: n.offlineReason(e.location || "") }),
+ /* @__PURE__ */ (0, R.jsx)("button", {
className: "chip",
id: "offlineRetry",
type: "button",
@@ -78723,22 +78727,22 @@ function YUe({ item: e, badge: t, helpers: n, actions: r }) {
});
}
function XUe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = yVe(e), a = (0, R.useRef)(null), s = QUe(e, t, r), c = (0, R.useRef)(s);
+ let i = yVe(e), a = (0, L.useRef)(null), s = QUe(e, t, r), c = (0, L.useRef)(s);
c.current = s;
- let u = (0, R.useCallback)((t) => {
+ let u = (0, L.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
selector: "[data-queue-row]",
attribute: "data-queue-row",
onMove: (e, t, n) => c.current.move(+e, +t, n)
}));
- }, [n, e.kind]), d = ZUe(e, r), f = e.kind === "mix" ? /* @__PURE__ */ (0, z.jsx)("button", {
+ }, [n, e.kind]), d = ZUe(e, r), f = e.kind === "mix" ? /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
"aria-label": "保存为播放列表",
onClick: d,
dangerouslySetInnerHTML: { __html: l("playlist") }
- }) : e.kind === "playlist" ? /* @__PURE__ */ (0, z.jsx)("button", {
+ }) : e.kind === "playlist" ? /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-edit-playlist": "",
title: "编辑播放列表",
@@ -78750,7 +78754,7 @@ function XUe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, z.jsx)(P7, {
+ return /* @__PURE__ */ (0, R.jsx)(P7, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -78758,12 +78762,12 @@ function XUe({ queue: e, itemId: t, helpers: n, actions: r }) {
actions: f,
listRef: u,
children: e.items.map((i) => {
- let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, z.jsx)("i", {
+ let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, R.jsx)("i", {
className: `javedition ${_Ve[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
}) : null, c = e.kind === "playlist" && E8(i);
- return /* @__PURE__ */ (0, z.jsxs)(F7, {
+ return /* @__PURE__ */ (0, R.jsxs)(F7, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -78773,34 +78777,34 @@ function XUe({ queue: e, itemId: t, helpers: n, actions: r }) {
onClick: () => {
c || r.openQueueItem(p, i.id);
},
- pic: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(K7, { html: n.queueThumbHtml(i) }), /* @__PURE__ */ (0, z.jsx)("i", {
+ pic: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(K7, { html: n.queueThumbHtml(i) }), /* @__PURE__ */ (0, R.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: o(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, z.jsx)(K7, { html: n.queueAvatarHtml(i) }),
- after: e.kind === "playlist" ? /* @__PURE__ */ (0, z.jsxs)("span", {
+ lead: /* @__PURE__ */ (0, R.jsx)(K7, { html: n.queueAvatarHtml(i) }),
+ after: e.kind === "playlist" ? /* @__PURE__ */ (0, R.jsxs)("span", {
"data-queue-edit": "",
- children: [/* @__PURE__ */ (0, z.jsx)("i", {
+ children: [/* @__PURE__ */ (0, R.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "grip-vertical" })
- }), /* @__PURE__ */ (0, z.jsx)("button", {
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: "grip-vertical" })
+ }), /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => s.remove(i.id),
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "x" })
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: "x" })
})]
}) : null,
- children: [/* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("span", {
"data-queue-head": "",
- children: [a, /* @__PURE__ */ (0, z.jsx)("b", {
+ children: [a, /* @__PURE__ */ (0, R.jsx)("b", {
"data-middle-truncate": "",
children: n.displayName(i)
})]
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-truncate-end": "",
children: c ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? F8(i.part_label) : n.mixLabel(i)
})]
@@ -78809,7 +78813,7 @@ function XUe({ queue: e, itemId: t, helpers: n, actions: r }) {
});
}
function ZUe(e, t) {
- let n = er({ mutationFn: (t) => G(g8, {
+ let n = tr({ mutationFn: (t) => W(g8, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -78826,10 +78830,10 @@ function QUe(e, t, n) {
let r = h8({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (X.setQueryData(r, T8(e)), e), a = (t) => G(g8, {
+ }), i = (e) => (Y.setQueryData(r, T8(e)), e), a = (t) => W(g8, {
id: e.playlistId,
...t
- }).then((e) => e.playlist), o = er({
+ }).then((e) => e.playlist), o = tr({
mutationFn: (e) => a({
action: "reorder",
asset_ids: e
@@ -78890,77 +78894,77 @@ function QUe(e, t, n) {
};
}
function $Ue({ item: e, queue: t, write: n, helpers: r, actions: i }) {
- let a = e.location === "online", o = n.busyAttrs, [c, l] = (0, R.useState)(!1);
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ let a = e.location === "online", o = n.busyAttrs, [c, l] = (0, L.useState)(!1);
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-stage-side": "",
"data-item-side": "",
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(eWe, {
+ /* @__PURE__ */ (0, R.jsx)(eWe, {
item: e,
queue: t,
helpers: r,
actions: i,
onStatus: n.setSourceState
}),
- a ? null : /* @__PURE__ */ (0, z.jsx)("span", {
+ a ? null : /* @__PURE__ */ (0, R.jsx)("span", {
"data-title-state": "",
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, z.jsx)(nWe, {
+ /* @__PURE__ */ (0, R.jsx)(nWe, {
item: e,
write: n
}),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsxs)("div", {
className: "mono",
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "monitor" }), /* @__PURE__ */ (0, z.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, R.jsx)(G7, { name: "monitor" }), /* @__PURE__ */ (0, R.jsxs)("span", { children: [
e.width || "?",
"×",
e.height || "?"
] })]
}),
- /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, R.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "hard-drive" }), /* @__PURE__ */ (0, z.jsx)("span", { children: s(e.size || 0) })]
+ children: [/* @__PURE__ */ (0, R.jsx)(G7, { name: "hard-drive" }), /* @__PURE__ */ (0, R.jsx)("span", { children: s(e.size || 0) })]
}),
- e.release_date ? /* @__PURE__ */ (0, z.jsxs)("span", {
+ e.release_date ? /* @__PURE__ */ (0, R.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "calendar" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, R.jsx)(G7, { name: "calendar" }), /* @__PURE__ */ (0, R.jsx)("span", { children: e.release_date })]
}) : null,
- e.region_label ? /* @__PURE__ */ (0, z.jsxs)("button", {
+ e.region_label ? /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-spec-item": "",
"data-open-region": e.region || "",
title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",
onClick: () => i.openRegion(e.region || ""),
- children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "globe" }), /* @__PURE__ */ (0, z.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, R.jsx)(G7, { name: "globe" }), /* @__PURE__ */ (0, R.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsx)(rWe, {
+ /* @__PURE__ */ (0, R.jsx)(rWe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, z.jsx)(iWe, {
+ /* @__PURE__ */ (0, R.jsx)(iWe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, z.jsx)(oWe, { item: e }),
- /* @__PURE__ */ (0, z.jsxs)("div", {
+ /* @__PURE__ */ (0, R.jsx)(oWe, { item: e }),
+ /* @__PURE__ */ (0, R.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
id: "likeBtn",
"data-fb": "like",
@@ -78969,9 +78973,9 @@ function $Ue({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.liked,
...o("like"),
onClick: () => n.preference({ liked: !e.liked }),
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: "thumbs-up" })
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
id: "preferenceToggle",
"data-fb": "reason",
@@ -78981,9 +78985,9 @@ function $Ue({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-controls": "preferencePanel",
"data-has-reason": String(!!e.like_reason),
onClick: () => l((e) => !e),
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: "notebook-pen" })
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-stage-action": "dislike",
"data-kind": "dislike",
@@ -78992,9 +78996,9 @@ function $Ue({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: "thumbs-down" })
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-stage-action": "seen",
"data-kind": "seen",
@@ -79003,9 +79007,9 @@ function $Ue({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "eye" })
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: "eye" })
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-stage-action": "later",
id: "stageLater",
@@ -79014,18 +79018,18 @@ function $Ue({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
id: "addPlaylist",
"data-fb": "playlist",
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "playlist" })
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: "playlist" })
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
id: "betterVersion",
"data-fb": "quality",
@@ -79034,17 +79038,17 @@ function $Ue({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: "sparkles" })
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-fb": "cloud-download",
"aria-label": "云下载",
title: "云下载 · 贴磁力交给 115 或 PikPak 离线下载",
onClick: () => i.cloudDownload(e),
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "cloud-download" })
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: "cloud-download" })
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-kind": "dispose",
"data-fb": "dispose",
@@ -79053,24 +79057,24 @@ function $Ue({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "trash" })
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(sWe, {
+ /* @__PURE__ */ (0, R.jsx)(sWe, {
item: e,
open: c,
write: n
}),
- /* @__PURE__ */ (0, z.jsxs)("button", {
+ /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-kind": "o",
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, z.jsx)(G7, { name: "sperm" }),
- /* @__PURE__ */ (0, z.jsx)("span", { children: "记一次高潮" }),
- /* @__PURE__ */ (0, z.jsx)("b", {
+ /* @__PURE__ */ (0, R.jsx)(G7, { name: "sperm" }),
+ /* @__PURE__ */ (0, R.jsx)("span", { children: "记一次高潮" }),
+ /* @__PURE__ */ (0, R.jsx)("b", {
className: "mono",
id: "oCount",
children: e.o_count || 0
@@ -79082,8 +79086,8 @@ function $Ue({ item: e, queue: t, write: n, helpers: r, actions: i }) {
});
}
function eWe({ 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 a = (0, L.useRef)(null), [o, s] = (0, L.useState)(!1), [c, l] = (0, L.useState)(!1);
+ (0, L.useLayoutEffect)(() => {
let e = a.current;
if (!e) return;
let t = () => {
@@ -79092,13 +79096,13 @@ function eWe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
return n.observe(e), t(), () => n.disconnect();
}, []);
let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + bVe(e, t);
- return /* @__PURE__ */ (0, z.jsx)("div", {
+ return /* @__PURE__ */ (0, R.jsx)("div", {
"data-item-title": "",
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
"data-stage-title": "",
"data-title-line": "",
"data-reveal-line": "",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
ref: a,
"data-detail-title": "",
"data-expanded": o ? "" : void 0,
@@ -79107,10 +79111,10 @@ function eWe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
c && !String(getSelection() || "") && u();
},
dangerouslySetInnerHTML: { __html: d }
- }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ }), /* @__PURE__ */ (0, R.jsxs)("span", {
"data-title-tools": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-title-fold": "",
hidden: !c,
@@ -79118,21 +79122,21 @@ function eWe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: u,
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: o ? "chevron-up" : "chevron-down" })
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: o ? "chevron-up" : "chevron-down" })
}),
- e.has_cover && e.code ? /* @__PURE__ */ (0, z.jsx)("span", {
+ e.has_cover && e.code ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, z.jsx)(WUe, {
+ children: /* @__PURE__ */ (0, R.jsx)(WUe, {
code: e.code,
coverUrl: `/cover?code=${encodeURIComponent(e.code)}`,
box: e.poster_box || null,
- onSaved: () => void X.invalidateQueries({
+ onSaved: () => void Y.invalidateQueries({
queryKey: m8(e.id),
exact: !0
})
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, z.jsx)(tWe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, R.jsx)(tWe, {
id: e.id,
actions: r,
onStatus: i
@@ -79143,7 +79147,7 @@ function eWe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
});
}
function tWe({ id: e, actions: t, onStatus: n }) {
- let [r, i] = (0, R.useState)(""), a = async () => {
+ let [r, i] = (0, L.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
if (r) return;
@@ -79151,7 +79155,7 @@ function tWe({ id: e, actions: t, onStatus: n }) {
let a = await t.sync(e);
n(a.text), i(""), a.removed.includes(e) && t.close();
};
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("button", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-reveal": e,
title: "在文件管理器里打开源文件所在目录",
@@ -79161,8 +79165,8 @@ function tWe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void a(),
- dangerouslySetInnerHTML: { __html: r === "reveal" ? ie("正在定位") : l("folder-open") }
- }), /* @__PURE__ */ (0, z.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: r === "reveal" ? ae("正在定位") : l("folder-open") }
+ }), /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-sync": e,
title: "核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失",
@@ -79172,18 +79176,18 @@ function tWe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: "folder-sync" })
})] });
}
function nWe({ item: e, write: t }) {
let n = k8(e.rating);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
"data-value": O8(e.rating),
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
"data-rating-stars": "",
children: [
1,
@@ -79191,7 +79195,7 @@ function nWe({ item: e, write: t }) {
3,
4,
5
- ].map((e) => /* @__PURE__ */ (0, z.jsx)("button", {
+ ].map((e) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-rate": e,
"data-on": String(e <= n),
@@ -79199,9 +79203,9 @@ function nWe({ item: e, write: t }) {
"aria-label": e === n ? `取消评分(当前 ${e} 星)` : `评为 ${e} 星`,
...t.busyAttrs(`rate:${e}`),
onClick: () => t.rate(e),
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "star" })
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: "star" })
}, e))
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
children: fVe(e.rating)
@@ -79209,20 +79213,20 @@ function nWe({ item: e, write: t }) {
});
}
function rWe({ item: e, helpers: t, actions: n }) {
- let r = (0, R.useMemo)(() => dVe(e), [e]), [i, a] = (0, R.useState)(!1), o = Math.max(0, r.cast.length - 8), s = (e, r, a) => {
- let o = e === "performer" && a >= 8 && !i, s = e === "performer" ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: r.name.slice(0, 1) }), /* @__PURE__ */ (0, z.jsx)(K7, { html: t.faceHtml(r) })] }) : e === "studio" ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: r.name.slice(0, 2) }), r.has_logo ? /* @__PURE__ */ (0, z.jsx)("img", {
+ let r = (0, L.useMemo)(() => dVe(e), [e]), [i, a] = (0, L.useState)(!1), o = Math.max(0, r.cast.length - 8), s = (e, r, a) => {
+ let o = e === "performer" && a >= 8 && !i, s = e === "performer" ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("span", { children: r.name.slice(0, 1) }), /* @__PURE__ */ (0, R.jsx)(K7, { html: t.faceHtml(r) })] }) : e === "studio" ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("span", { children: r.name.slice(0, 2) }), r.has_logo ? /* @__PURE__ */ (0, R.jsx)("img", {
src: `/logo?studio=${encodeURIComponent(r.name)}&variant=icon`,
alt: "",
loading: "lazy",
"data-drop": "self"
- }) : null] }) : /* @__PURE__ */ (0, z.jsx)("span", { children: r.name.slice(0, 1) }), c = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ }) : null] }) : /* @__PURE__ */ (0, R.jsx)("span", { children: r.name.slice(0, 1) }), c = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-id-face": "",
children: s
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-id-name": "",
children: r.name
})] }), l = e === "performer" && a >= 8 ? { "data-castoverflow": "" } : {};
- return r.id ? /* @__PURE__ */ (0, z.jsx)("button", {
+ return r.id ? /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-id-cell": e,
"data-entity-kind": e,
@@ -79232,46 +79236,46 @@ function rWe({ item: e, helpers: t, actions: n }) {
...l,
onClick: () => n.openEntity(e, r.name),
children: c
- }, `${e}:${r.name}`) : /* @__PURE__ */ (0, z.jsx)("span", {
+ }, `${e}:${r.name}`) : /* @__PURE__ */ (0, R.jsx)("span", {
"data-id-cell": e,
title: r.name,
hidden: o,
...l,
children: c
}, `${e}:${r.name}`);
- }, c = (e, t, n, r = null) => n.length ? /* @__PURE__ */ (0, z.jsxs)("section", {
+ }, c = (e, t, n, r = null) => n.length ? /* @__PURE__ */ (0, R.jsxs)("section", {
"data-id-group": t,
- children: [/* @__PURE__ */ (0, z.jsx)("h5", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h5", {
"data-id-label": "",
children: e
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
"data-id-row": "",
children: [n.map((e, n) => s(t, e, n)), r]
})]
}, `${t}:${e}`) : null, l = [
- r.unowned ? /* @__PURE__ */ (0, z.jsxs)("section", {
+ r.unowned ? /* @__PURE__ */ (0, R.jsxs)("section", {
"data-id-group": "unowned",
- children: [/* @__PURE__ */ (0, z.jsx)("h5", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h5", {
"data-id-label": "",
children: "归属"
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
"data-id-row": "",
- children: /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-id-cell": "unowned",
"data-open-unowned": "",
title: "打开未归属:馆藏里没有署名人的作品",
onClick: n.openUnowned,
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "user-round" })
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: "user-round" })
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-id-name": "",
children: "未归属"
})]
})
})]
- }, "unowned") : c(t.performerLabel(e), "performer", r.cast, o && !i ? /* @__PURE__ */ (0, z.jsxs)("button", {
+ }, "unowned") : c(t.performerLabel(e), "performer", r.cast, o && !i ? /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
id: "castMore",
"data-cast-more": "",
@@ -79285,33 +79289,33 @@ function rWe({ item: e, helpers: t, actions: n }) {
c("厂牌", "studio", r.studios),
c("片商", "studio", r.makers)
].filter(Boolean);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-item-identity": "",
children: [
- l.length ? /* @__PURE__ */ (0, z.jsx)("div", {
+ l.length ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-identity-primary": "",
children: l
}) : null,
c("创作者", "creator", r.creators),
- r.series.length ? /* @__PURE__ */ (0, z.jsxs)("section", {
+ r.series.length ? /* @__PURE__ */ (0, R.jsxs)("section", {
"data-id-group": "series",
- children: [/* @__PURE__ */ (0, z.jsx)("h5", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h5", {
"data-id-label": "",
children: "系列"
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
"data-series-rows": "",
- children: r.series.map((e) => e.id ? /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: r.series.map((e) => e.id ? /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-series-link": "",
"data-entity-kind": "series",
"data-entity-name": e.name,
title: e.name,
onClick: () => n.openEntity("series", e.name),
- children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "tags" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e.name })]
- }, e.name) : /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)(G7, { name: "tags" }), /* @__PURE__ */ (0, R.jsx)("span", { children: e.name })]
+ }, e.name) : /* @__PURE__ */ (0, R.jsxs)("span", {
"data-series-link": "",
title: e.name,
- children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "tags" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e.name })]
+ children: [/* @__PURE__ */ (0, R.jsx)(G7, { name: "tags" }), /* @__PURE__ */ (0, R.jsx)("span", { children: e.name })]
}, e.name))
})]
}) : null
@@ -79320,27 +79324,27 @@ function rWe({ item: e, helpers: t, actions: n }) {
}
function iWe({ item: e, write: t, helpers: n, actions: r }) {
let i = mVe(e, n);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-stage-tags": "",
id: "detailTags",
"data-item-tags": "",
- children: [i.map((e) => /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [i.map((e) => /* @__PURE__ */ (0, R.jsxs)("span", {
"data-detail-tag": "",
- children: [/* @__PURE__ */ (0, z.jsx)("button", {
+ children: [/* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-tag": e.k,
onClick: () => r.openTag(e.k),
children: n.tagLabel(e.k)
- }), /* @__PURE__ */ (0, z.jsx)("button", {
+ }), /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-remove-tag": e.k,
title: "从此视频隐藏该标签",
"aria-label": `删除标签 ${n.tagLabel(e.k)}`,
...t.busyAttrs(`tag:${e.k}`),
onClick: () => t.removeTag(e),
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "x" })
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: "x" })
})]
- }, e.k)), /* @__PURE__ */ (0, z.jsx)(aWe, {
+ }, e.k)), /* @__PURE__ */ (0, R.jsx)(aWe, {
item: e,
write: t,
helpers: n
@@ -79348,10 +79352,10 @@ function iWe({ item: e, write: t, helpers: n, actions: r }) {
});
}
function aWe({ 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)(() => {
+ let r = (0, L.useRef)(null), i = (0, L.useRef)(null), a = (0, L.useRef)(null), o = (0, L.useRef)(!1), [s, c] = (0, L.useState)(!1), [l, u] = (0, L.useState)(""), [d, f] = (0, L.useState)(""), [p, m] = (0, L.useState)(-1), h = (0, L.useCallback)(() => {
i.current && S(i.current), c(!1);
}, []);
- (0, R.useEffect)(() => {
+ (0, L.useEffect)(() => {
if (!s) return;
let e = (e) => {
let t = e.target;
@@ -79395,26 +79399,26 @@ function aWe({ item: e, write: t, helpers: n }) {
}, b = -1, x = (t) => {
b += 1;
let r = b, i = A8(e, t.k);
- return /* @__PURE__ */ (0, z.jsxs)("button", {
+ return /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-pick": t.k,
"data-active": r === p ? "" : void 0,
"aria-pressed": i,
onClick: () => v(t, i),
children: [
- /* @__PURE__ */ (0, z.jsx)(G7, { name: i ? "check" : "tags" }),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)(G7, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-pick-name": "",
children: n.tagLabel(t.k)
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
"data-pick-count": "",
children: (t.n || 0).toLocaleString()
})
]
}, `${r}:${t.k}`);
};
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("button", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("button", {
ref: r,
type: "button",
id: "tagPlus",
@@ -79425,17 +79429,17 @@ function aWe({ item: e, write: t, helpers: n }) {
onClick: () => {
i.current && (P(i.current), c(!0), u(""), f(""), m(-1), requestAnimationFrame(() => a.current?.focus()));
},
- children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "plus" })
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)(G7, { name: "plus" })
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
ref: i,
id: "tagPicker",
"data-tag-picker": "",
role: "dialog",
"aria-label": "添加标签",
hidden: !0,
- children: [/* @__PURE__ */ (0, z.jsxs)("label", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("label", {
"data-tag-search": "",
- children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "search" }), /* @__PURE__ */ (0, z.jsx)("input", {
+ children: [/* @__PURE__ */ (0, R.jsx)(G7, { name: "search" }), /* @__PURE__ */ (0, R.jsx)("input", {
ref: a,
id: "tagPickSearch",
maxLength: 80,
@@ -79453,30 +79457,30 @@ function aWe({ item: e, write: t, helpers: n }) {
},
onKeyDown: y
})]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
id: "tagPickBody",
"data-tag-body": "",
- children: [s && g.recent.length ? /* @__PURE__ */ (0, z.jsxs)("section", {
+ children: [s && g.recent.length ? /* @__PURE__ */ (0, R.jsxs)("section", {
"data-tag-section": "",
- children: [/* @__PURE__ */ (0, z.jsx)("h4", { children: "最近使用" }), /* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h4", { children: "最近使用" }), /* @__PURE__ */ (0, R.jsx)("div", {
"data-tag-grid": "",
children: g.recent.map(x)
})]
- }) : null, s ? /* @__PURE__ */ (0, z.jsxs)("section", {
+ }) : null, s ? /* @__PURE__ */ (0, R.jsxs)("section", {
"data-tag-section": "",
- children: [/* @__PURE__ */ (0, z.jsx)("h4", { children: d.trim() ? "搜索结果" : "全部标签" }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h4", { children: d.trim() ? "搜索结果" : "全部标签" }), /* @__PURE__ */ (0, R.jsxs)("div", {
"data-tag-grid": "",
children: [g.results.map(x), g.create ? (() => {
b += 1;
let e = b;
- return /* @__PURE__ */ (0, z.jsxs)("button", {
+ return /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-pick": g.create,
"data-active": e === p ? "" : void 0,
onClick: () => {
h(), t.addTag(g.create);
},
- children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "plus" }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)(G7, { name: "plus" }), /* @__PURE__ */ (0, R.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -79493,31 +79497,31 @@ function aWe({ item: e, write: t, helpers: n }) {
}
function oWe({ item: e }) {
let t = wVe(e);
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-item-trace": "",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
"data-trace-metric": "",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
"data-trace-label": "",
- children: [/* @__PURE__ */ (0, z.jsx)("span", { children: "离开位置" }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", { children: "离开位置" }), /* @__PURE__ */ (0, R.jsx)("span", {
id: "ratioTxt",
children: "0%"
})]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
"data-trace-bar": "",
- children: [/* @__PURE__ */ (0, z.jsx)("u", { id: "watched" }), /* @__PURE__ */ (0, z.jsx)("b", { id: "mark" })]
+ children: [/* @__PURE__ */ (0, R.jsx)("u", { id: "watched" }), /* @__PURE__ */ (0, R.jsx)("b", { id: "mark" })]
})]
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
"data-trace-metric": "",
- children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsxs)("div", {
"data-trace-label": "",
- children: [/* @__PURE__ */ (0, z.jsx)("span", { children: "真实观看" }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", { children: "真实观看" }), /* @__PURE__ */ (0, R.jsx)("span", {
id: "realTxt",
children: t == null ? "0%" : `${t.toFixed(0)}%`
})]
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
"data-trace-bar": "",
- children: /* @__PURE__ */ (0, z.jsx)("u", {
+ children: /* @__PURE__ */ (0, R.jsx)("u", {
id: "realBar",
"data-trace-real": "",
style: t == null ? void 0 : { width: `${t.toFixed(1)}%` }
@@ -79527,31 +79531,31 @@ function oWe({ item: e }) {
});
}
function sWe({ item: e, open: t, write: n }) {
- let [r, i] = (0, R.useState)(e.like_reason || ""), a = (0, R.useRef)(null);
- (0, R.useEffect)(() => {
+ let [r, i] = (0, L.useState)(e.like_reason || ""), a = (0, L.useRef)(null);
+ (0, L.useEffect)(() => {
t && a.current?.focus();
- }, [t]), (0, R.useEffect)(() => {
+ }, [t]), (0, L.useEffect)(() => {
i(e.like_reason || "");
}, [e.like_reason]);
let o = n.busy.has("preference");
- return /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, R.jsxs)("div", {
id: "preferencePanel",
"data-item-preference": "",
hidden: !t,
- children: [/* @__PURE__ */ (0, z.jsx)("textarea", {
+ children: [/* @__PURE__ */ (0, R.jsx)("textarea", {
ref: a,
id: "likeReason",
maxLength: 2e3,
placeholder: "为什么喜欢?",
value: r,
onChange: (e) => i(e.target.value)
- }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsxs)("div", {
"data-preference-foot": "",
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
id: "preferenceState",
"aria-live": "polite",
children: n.preferenceState
- }), /* @__PURE__ */ (0, z.jsx)("button", {
+ }), /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
className: "geist-button primary",
id: "savePreference",
@@ -79560,31 +79564,31 @@ function sWe({ item: e, open: t, write: n }) {
"aria-label": "提交喜爱理由",
...n.busyAttrs("preference"),
onClick: () => n.preference({ reason: r }),
- dangerouslySetInnerHTML: { __html: o ? `${ie("正在提交喜爱理由")}<span>提交中…</span>` : "<span>提交</span>" }
+ dangerouslySetInnerHTML: { __html: o ? `${ae("正在提交喜爱理由")}<span>提交中…</span>` : "<span>提交</span>" }
})]
})]
});
}
function cWe(e) {
- let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = $n({
+ let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = er({
queryKey: oVe(t.id, n),
queryFn: async ({ signal: e }) => {
- let r = await W(cVe(t.id, n), e);
+ let r = await U(cVe(t.id, n), e);
return i.cache(r.items || []), r.items || [];
}
- }), [o] = (0, R.useState)(() => r.relatedSkeletonHtml()), s = (0, R.useCallback)((e) => {
+ }), [o] = (0, L.useState)(() => r.relatedSkeletonHtml()), s = (0, L.useCallback)((e) => {
e && (w(e), r.wireDrag(e));
}, [r]);
- return a.data && !a.data.length ? null : /* @__PURE__ */ (0, z.jsxs)("div", {
+ return a.data && !a.data.length ? null : /* @__PURE__ */ (0, R.jsxs)("div", {
"data-item-related": "",
- children: [/* @__PURE__ */ (0, z.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, R.jsx)("h3", {
className: "font-semibold",
children: "接着看"
- }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)("div", {
ref: s,
id: "nrow",
"data-related-row": "",
- children: a.data ? /* @__PURE__ */ (0, z.jsx)(Rb, {
+ children: a.data ? /* @__PURE__ */ (0, R.jsx)(zb, {
mode: "items",
variant: "next",
items: a.data,
@@ -79598,20 +79602,20 @@ function cWe(e) {
cache: i.cache,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : a.isError ? null : /* @__PURE__ */ (0, z.jsx)(K7, { html: o })
+ }) : a.isError ? null : /* @__PURE__ */ (0, R.jsx)(K7, { html: o })
})]
});
}
function lWe(e, t, n, r) {
- let i = e.id, a = m8(i), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(""), f = (e, t) => s((n) => {
+ let i = e.id, a = m8(i), [o, s] = (0, L.useState)(() => /* @__PURE__ */ new Set()), [c, l] = (0, L.useState)(""), [u, d] = (0, L.useState)(""), f = (e, t) => s((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
- }), p = () => X.getQueryData(a) || e, m = (e) => {
+ }), p = () => Y.getQueryData(a) || e, m = (e) => {
let t = typeof e == "function" ? e(p()) : {
...p(),
...e
};
- X.setQueryData(a, t);
+ Y.setQueryData(a, t);
let r = {
feedback: t.feedback,
disposal: t.disposal,
@@ -79619,11 +79623,11 @@ function lWe(e, t, n, r) {
rating: t.rating,
o_count: t.o_count
};
- return ab(i, r), n([t]), t;
- }, h = (e, t) => G(e, {
+ return ob(i, r), n([t]), t;
+ }, h = (e, t) => W(e, {
id: i,
...t
- }), g = er({
+ }), g = tr({
mutationFn: ({ run: e }) => e(),
onError: (e, { action: n }) => t.failure(n, e),
onSettled: (e, t, { name: n }) => f(n, !1)
@@ -79857,7 +79861,7 @@ function p9() {
let e = Y7?.player;
if (!e || e.isDisposed() || !Q7) return;
let t = e.paused();
- Q7.play.setAttribute("aria-label", t ? "播放" : "暂停"), Q7.play.querySelector("[data-icon-swap]") || (Q7.play.innerHTML = E("player-pause", "player-play", t ? "b" : "a")), re(Q7.play, t ? "b" : "a");
+ Q7.play.setAttribute("aria-label", t ? "播放" : "暂停"), Q7.play.querySelector("[data-icon-swap]") || (Q7.play.innerHTML = E("player-pause", "player-play", t ? "b" : "a")), ie(Q7.play, t ? "b" : "a");
}
function m9() {
let e = Y7?.player;
@@ -80004,15 +80008,15 @@ async function bWe(e) {
}
//#endregion
//#region src/react/stage/miniplayer.tsx
-var T9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
+var T9 = ({ name: e }) => /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
}), xWe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, E9 = (e) => (t) => {
t.stopPropagation(), e();
-}, SWe = (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)(() => (l9({
+}, SWe = (0, L.memo)(function() {
+ let e = (0, L.useRef)(null), t = (0, L.useRef)(null), n = (0, L.useRef)(null), r = (0, L.useRef)(null), i = (0, L.useRef)(null), a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = (0, L.useRef)(null), c = (0, L.useRef)(null), l = (0, L.useRef)(null);
+ return (0, L.useLayoutEffect)(() => (l9({
root: e.current,
frame: n.current,
play: r.current,
@@ -80022,50 +80026,50 @@ var T9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => l9(null)), []), (0, R.useEffect)(() => wWe(e.current, t.current), []), /* @__PURE__ */ (0, z.jsx)("aside", {
+ }), () => l9(null)), []), (0, L.useEffect)(() => wWe(e.current, t.current), []), /* @__PURE__ */ (0, R.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
"data-corner": "br",
"aria-label": "小窗播放",
hidden: !0,
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
ref: t,
"data-miniplayer-card": "",
id: "miniplayerCard",
- children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)("div", {
ref: n,
"data-miniplayer-frame": "",
id: "miniplayerFrame",
- children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: /* @__PURE__ */ (0, R.jsxs)("div", {
"data-miniplayer-scrim": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-miniplayer-button": "expand",
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
onClick: E9(x9),
- children: /* @__PURE__ */ (0, z.jsx)(T9, { name: "maximize-2" })
+ children: /* @__PURE__ */ (0, R.jsx)(T9, { name: "maximize-2" })
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
onClick: E9(b9),
- children: /* @__PURE__ */ (0, z.jsx)(T9, { name: "x" })
+ children: /* @__PURE__ */ (0, R.jsx)(T9, { name: "x" })
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
onClick: E9(() => C9(-1)),
- children: /* @__PURE__ */ (0, z.jsx)(T9, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, R.jsx)(T9, { name: "rotate-ccw" })
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
ref: r,
type: "button",
"data-miniplayer-play": "",
@@ -80075,15 +80079,15 @@ var T9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
onClick: E9(yWe),
dangerouslySetInnerHTML: xWe
}),
- /* @__PURE__ */ (0, z.jsx)("button", {
+ /* @__PURE__ */ (0, R.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
onClick: E9(() => C9(1)),
- children: /* @__PURE__ */ (0, z.jsx)(T9, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, R.jsx)(T9, { name: "rotate-cw" })
}),
- /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)("span", {
ref: i,
className: "mono",
"data-miniplayer-time": "",
@@ -80092,18 +80096,18 @@ var T9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
})
]
})
- }), /* @__PURE__ */ (0, z.jsxs)("button", {
+ }), /* @__PURE__ */ (0, R.jsxs)("button", {
ref: l,
type: "button",
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
onClick: () => x9(),
- children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
id: "miniplayerTitle"
- }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }), /* @__PURE__ */ (0, R.jsx)("span", {
ref: c,
"data-miniplayer-sub": "",
id: "miniplayerSub"
@@ -80181,16 +80185,16 @@ function I9() {
return D9;
}
function TWe() {
- return (!O9 || !k9?.isConnected) && (O9?.unmount(), k9 = document.createElement("div"), k9.dataset.stageHost = "", document.body.append(k9), O9 = (0, Be.createRoot)(k9)), O9;
+ return (!O9 || !k9?.isConnected) && (O9?.unmount(), k9 = document.createElement("div"), k9.dataset.stageHost = "", document.body.append(k9), O9 = (0, Ve.createRoot)(k9)), O9;
}
function L9() {
let e = TWe();
- (0, ze.flushSync)(() => e.render(/* @__PURE__ */ (0, z.jsx)(LF, { children: /* @__PURE__ */ (0, z.jsx)(EWe, { view: A9 }) })));
+ (0, Be.flushSync)(() => e.render(/* @__PURE__ */ (0, R.jsx)(LF, { children: /* @__PURE__ */ (0, R.jsx)(EWe, { view: A9 }) })));
}
function EWe({ view: e }) {
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [e ? /* @__PURE__ */ (0, z.jsx)(B9, { view: e }, e.generation) : null, /* @__PURE__ */ (0, z.jsx)(SWe, {})] });
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [e ? /* @__PURE__ */ (0, R.jsx)(B9, { view: e }, e.generation) : null, /* @__PURE__ */ (0, R.jsx)(SWe, {})] });
}
-var R9 = () => /* @__PURE__ */ (0, z.jsx)("div", {
+var R9 = () => /* @__PURE__ */ (0, R.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
@@ -80203,15 +80207,15 @@ function z9(e) {
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
function B9({ view: e }) {
- let t = (0, R.useRef)(null);
- (0, R.useLayoutEffect)(() => {
+ let t = (0, L.useRef)(null);
+ (0, L.useLayoutEffect)(() => {
let e = t.current, n = (e) => {
e.preventDefault(), V9();
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, z.jsx)(KUe, { ...r.props }) : /* @__PURE__ */ (0, z.jsx)(PUe, { ...r.props });
- return /* @__PURE__ */ (0, z.jsxs)("dialog", {
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, R.jsx)(KUe, { ...r.props }) : /* @__PURE__ */ (0, R.jsx)(PUe, { ...r.props });
+ return /* @__PURE__ */ (0, R.jsxs)("dialog", {
ref: t,
id: "stage",
"data-stage": "",
@@ -80226,15 +80230,15 @@ function B9({ view: e }) {
P9 && z9(e) && V9();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, z.jsx)(R9, {}, "skeleton") : null,
- n === "reveal" ? /* @__PURE__ */ (0, z.jsx)("div", {
+ n === "skeleton" ? /* @__PURE__ */ (0, R.jsx)(R9, {}, "skeleton") : null,
+ n === "reveal" ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)(R9, {})
+ children: /* @__PURE__ */ (0, R.jsx)(R9, {})
}, "fade") : null,
- n === "skeleton" ? null : /* @__PURE__ */ (0, z.jsx)("div", {
+ n === "skeleton" ? null : /* @__PURE__ */ (0, R.jsx)("div", {
"data-stage-scroll": "",
- children: /* @__PURE__ */ (0, z.jsx)("div", {
+ children: /* @__PURE__ */ (0, R.jsx)("div", {
className: "peach-react",
children: i
})
@@ -80426,57 +80430,57 @@ var IWe = (e) => {
case "error": return HWe;
default: return null;
}
-}, LWe = Array(12).fill(0), RWe = ({ visible: e, className: t }) => /*#__PURE__*/ R.createElement("div", {
+}, LWe = Array(12).fill(0), RWe = ({ visible: e, className: t }) => /*#__PURE__*/ L.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ R.createElement("div", { className: "sonner-spinner" }, LWe.map((e, t) => /*#__PURE__*/ R.createElement("div", {
+}, /*#__PURE__*/ L.createElement("div", { className: "sonner-spinner" }, LWe.map((e, t) => /*#__PURE__*/ L.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), zWe = /*#__PURE__*/ R.createElement("svg", {
+})))), zWe = /*#__PURE__*/ L.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
height: "20",
width: "20",
"aria-hidden": "true"
-}, /*#__PURE__*/ R.createElement("path", {
+}, /*#__PURE__*/ L.createElement("path", {
fillRule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
clipRule: "evenodd"
-})), BWe = /*#__PURE__*/ R.createElement("svg", {
+})), BWe = /*#__PURE__*/ L.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
height: "20",
width: "20",
"aria-hidden": "true"
-}, /*#__PURE__*/ R.createElement("path", {
+}, /*#__PURE__*/ L.createElement("path", {
fillRule: "evenodd",
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
clipRule: "evenodd"
-})), VWe = /*#__PURE__*/ R.createElement("svg", {
+})), VWe = /*#__PURE__*/ L.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
height: "20",
width: "20",
"aria-hidden": "true"
-}, /*#__PURE__*/ R.createElement("path", {
+}, /*#__PURE__*/ L.createElement("path", {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
clipRule: "evenodd"
-})), HWe = /*#__PURE__*/ R.createElement("svg", {
+})), HWe = /*#__PURE__*/ L.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
height: "20",
width: "20",
"aria-hidden": "true"
-}, /*#__PURE__*/ R.createElement("path", {
+}, /*#__PURE__*/ L.createElement("path", {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
clipRule: "evenodd"
-})), UWe = /*#__PURE__*/ R.createElement("svg", {
+})), UWe = /*#__PURE__*/ L.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -80487,19 +80491,19 @@ var IWe = (e) => {
strokeLinecap: "round",
strokeLinejoin: "round",
"aria-hidden": "true"
-}, /*#__PURE__*/ R.createElement("line", {
+}, /*#__PURE__*/ L.createElement("line", {
x1: "18",
y1: "6",
x2: "6",
y2: "18"
-}), /*#__PURE__*/ R.createElement("line", {
+}), /*#__PURE__*/ L.createElement("line", {
x1: "6",
y1: "6",
x2: "18",
y2: "18"
})), WWe = () => {
- let [e, t] = R.useState(document.hidden);
- return R.useEffect(() => {
+ let [e, t] = L.useState(document.hidden);
+ return L.useEffect(() => {
let e = () => {
t(document.hidden);
};
@@ -80588,14 +80592,14 @@ var IWe = (e) => {
description: typeof t.description == "function" ? void 0 : t.description
}));
let r = Promise.resolve(e instanceof Function ? e() : e), i = n !== void 0, a, o = r.then(async (e) => {
- if (a = ["resolve", e], R.isValidElement(e)) i = !1, this.create({
+ if (a = ["resolve", e], L.isValidElement(e)) i = !1, this.create({
id: n,
type: "default",
message: e
});
else if (JWe(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 };
+ 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" && !L.isValidElement(r) ? r : { message: r };
this.create({
id: n,
type: "error",
@@ -80604,7 +80608,7 @@ var IWe = (e) => {
});
} else if (e instanceof Error) {
i = !1;
- let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !R.isValidElement(r) ? r : { message: r };
+ let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !L.isValidElement(r) ? r : { message: r };
this.create({
id: n,
type: "error",
@@ -80613,7 +80617,7 @@ var IWe = (e) => {
});
} else if (t.success !== void 0) {
i = !1;
- let r = typeof t.success == "function" ? await t.success(e) : t.success, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !R.isValidElement(r) ? r : { message: r };
+ let r = typeof t.success == "function" ? await t.success(e) : t.success, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !L.isValidElement(r) ? r : { message: r };
this.create({
id: n,
type: "success",
@@ -80624,7 +80628,7 @@ var IWe = (e) => {
}).catch(async (e) => {
if (a = ["reject", e], t.error !== void 0) {
i = !1;
- let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !R.isValidElement(r) ? r : { message: r };
+ let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !L.isValidElement(r) ? r : { message: r };
this.create({
id: n,
type: "error",
@@ -80673,27 +80677,27 @@ function nGe(e) {
return t && r.push(t), n && r.push(n), r;
}
var rGe = (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), [P, ee] = R.useState(!1), [F, I] = R.useState(!1), [te, ne] = R.useState(!1), [re, ie] = R.useState(0), [ae, oe] = R.useState(0), se = R.useRef(n.duration || y || J9), ce = R.useRef(null), le = R.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", he = n.descriptionClassName || "", ge = R.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), _e = R.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ve = R.useMemo(() => n.duration || y || J9, [n.duration, y]), ye = R.useRef(0), be = R.useRef(0), xe = R.useRef(0), Se = R.useRef(null), [Ce, we] = b.split("-"), Te = R.useMemo(() => s.reduce((e, t, n) => n >= ge ? e : e + t.height, 0), [s, ge]), Ee = WWe(), De = R.useMemo(() => e.swipeDirections ?? nGe(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = de === "loading";
- be.current = R.useMemo(() => ge * x + Te, [ge, Te]), R.useEffect(() => {
- se.current = ve;
- }, [ve]), R.useEffect(() => {
+ 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] = L.useState(null), [O, k] = L.useState(null), [A, j] = L.useState(!1), [M, N] = L.useState(!1), [P, ee] = L.useState(!1), [F, te] = L.useState(!1), [ne, re] = L.useState(!1), [ie, ae] = L.useState(0), [oe, se] = L.useState(0), ce = L.useRef(n.duration || y || J9), le = L.useRef(null), ue = L.useRef(null), de = c === 0, I = c + 1 <= o, fe = n.type, pe = fe ?? "default", me = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = L.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = L.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = L.useMemo(() => n.duration || y || J9, [n.duration, y]), be = L.useRef(0), xe = L.useRef(0), Se = L.useRef(0), Ce = L.useRef(null), [we, Te] = b.split("-"), Ee = L.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), De = WWe(), Oe = L.useMemo(() => e.swipeDirections ?? nGe(b), [e.swipeDirections, b]), ke = n.invert || t, Ae = fe === "loading";
+ xe.current = L.useMemo(() => _e * x + Ee, [_e, Ee]), L.useEffect(() => {
+ ce.current = ye;
+ }, [ye]), L.useEffect(() => {
j(!0);
- }, []), R.useEffect(() => {
- let e = le.current;
+ }, []), L.useEffect(() => {
+ let e = ue.current;
if (e) {
let t = e.getBoundingClientRect().height;
- return oe(t), a((e) => [{
+ return se(t), a((e) => [{
toastId: n.id,
height: t,
position: n.position
}, ...e]), () => a((e) => e.filter((e) => e.toastId !== n.id));
}
- }, [a, n.id]), R.useLayoutEffect(() => {
+ }, [a, n.id]), L.useLayoutEffect(() => {
if (!A) return;
- let e = le.current, t = e.style.height;
+ let e = ue.current, t = e.style.height;
e.style.height = "auto";
let r = e.getBoundingClientRect().height;
- e.style.height = t, oe(r), a((e) => e.find((e) => e.toastId === n.id) ? e.map((e) => e.toastId === n.id ? {
+ e.style.height = t, se(r), a((e) => e.find((e) => e.toastId === n.id) ? e.map((e) => e.toastId === n.id ? {
...e,
height: r
} : e) : [{
@@ -80711,68 +80715,68 @@ var rGe = (e) => {
n.action,
n.cancel
]);
- let Ae = R.useCallback(() => {
- N(!0), ie(be.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
+ let je = L.useCallback(() => {
+ N(!0), ae(xe.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
}, tGe);
}, [
n,
d,
a,
- be
+ xe
]);
- R.useEffect(() => {
- if (n.promise && de === "loading" || n.duration === Infinity || n.type === "loading") return;
+ L.useEffect(() => {
+ if (n.promise && fe === "loading" || n.duration === Infinity || n.type === "loading") return;
let e;
- return u || i || Ee ? (() => {
- if (xe.current < ye.current) {
- let e = (/* @__PURE__ */ new Date()).getTime() - ye.current;
- se.current -= e;
+ return u || i || De ? (() => {
+ if (Se.current < be.current) {
+ let e = (/* @__PURE__ */ new Date()).getTime() - be.current;
+ ce.current -= e;
}
- xe.current = (/* @__PURE__ */ new Date()).getTime();
- })() : se.current !== Infinity && (ye.current = (/* @__PURE__ */ new Date()).getTime(), e = setTimeout(() => {
- n.onAutoClose == null || n.onAutoClose.call(n, n), Ae();
- }, se.current)), () => clearTimeout(e);
+ Se.current = (/* @__PURE__ */ new Date()).getTime();
+ })() : ce.current !== Infinity && (be.current = (/* @__PURE__ */ new Date()).getTime(), e = setTimeout(() => {
+ n.onAutoClose == null || n.onAutoClose.call(n, n), je();
+ }, ce.current)), () => clearTimeout(e);
}, [
u,
i,
n,
- de,
- Ee,
- Ae
- ]), R.useEffect(() => {
- n.delete && (Ae(), n.onDismiss == null || n.onDismiss.call(n, n));
- }, [Ae, n.delete]);
- function je() {
- return w?.loading ? /*#__PURE__*/ R.createElement("div", {
+ fe,
+ De,
+ je
+ ]), L.useEffect(() => {
+ n.delete && (je(), n.onDismiss == null || n.onDismiss.call(n, n));
+ }, [je, n.delete]);
+ function Me() {
+ return w?.loading ? /*#__PURE__*/ L.createElement("div", {
className: Y9(C?.loader, n?.classNames?.loader, "sonner-loader"),
- "data-visible": de === "loading"
- }, w.loading) : /*#__PURE__*/ R.createElement(RWe, {
+ "data-visible": fe === "loading"
+ }, w.loading) : /*#__PURE__*/ L.createElement(RWe, {
className: Y9(C?.loader, n?.classNames?.loader),
- visible: de === "loading"
+ visible: fe === "loading"
});
}
- let Me = n.icon || w?.[de] || IWe(de);
- return /*#__PURE__*/ R.createElement("li", {
+ let Ne = n.icon || w?.[fe] || IWe(fe);
+ return /*#__PURE__*/ L.createElement("li", {
tabIndex: 0,
- ref: le,
- className: Y9(_, me, C?.toast, n?.classNames?.toast, C?.[fe], n?.classNames?.[fe]),
+ ref: ue,
+ className: Y9(_, he, C?.toast, n?.classNames?.toast, C?.[pe], n?.classNames?.[pe]),
"data-sonner-toast": "",
"data-rich-colors": n.richColors ?? f,
"data-styled": !(n.jsx || n.unstyled || r),
"data-mounted": A,
"data-promise": !!n.promise,
- "data-swiped": te,
+ "data-swiped": ne,
"data-removed": M,
- "data-visible": L,
- "data-y-position": Ce,
- "data-x-position": we,
+ "data-visible": I,
+ "data-y-position": we,
+ "data-x-position": Te,
"data-index": c,
- "data-front": ue,
+ "data-front": de,
"data-swiping": P,
- "data-dismissible": pe,
- "data-type": de,
- "data-invert": Oe,
+ "data-dismissible": me,
+ "data-type": fe,
+ "data-invert": ke,
"data-swipe-out": F,
"data-swipe-direction": O,
"data-expanded": !!(u || S && A),
@@ -80781,91 +80785,91 @@ var rGe = (e) => {
"--index": c,
"--toasts-before": c,
"--z-index": l.length - c,
- "--offset": `${M ? re : be.current}px`,
- "--initial-height": S ? "auto" : `${ae}px`,
+ "--offset": `${M ? ie : xe.current}px`,
+ "--initial-height": S ? "auto" : `${oe}px`,
...m,
...n.style
},
onDragEnd: () => {
- ee(!1), D(null), Se.current = null;
+ ee(!1), D(null), Ce.current = null;
},
onPointerDown: (e) => {
- e.button !== 2 && (ke || !pe || (ce.current = /* @__PURE__ */ new Date(), ie(be.current), e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (ee(!0), Se.current = {
+ e.button !== 2 && (Ae || !me || (le.current = /* @__PURE__ */ new Date(), ae(xe.current), e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (ee(!0), Ce.current = {
x: e.clientX,
y: e.clientY
})));
},
onPointerUp: () => {
- if (F || !pe) return;
- Se.current = null;
- let e = Number(le.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(le.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - ce.current?.getTime(), i = 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) >= eGe || a > .11)) {
- ie(be.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Ae(), I(!0);
+ if (F || !me) return;
+ Ce.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" ? Oe.includes(e > 0 ? "right" : "left") : Oe.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= eGe || a > .11)) {
+ ae(xe.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), je(), te(!0);
return;
}
var o, s;
- (o = le.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = le.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), ne(!1), ee(!1), D(null);
+ (o = ue.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = ue.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), re(!1), ee(!1), D(null);
},
onPointerMove: (e) => {
var t, n;
- if (!Se.current || !pe || window.getSelection()?.toString().length > 0) return;
- let r = e.clientY - Se.current.y, i = e.clientX - Se.current.x;
+ if (!Ce.current || !me || window.getSelection()?.toString().length > 0) return;
+ let r = e.clientY - Ce.current.y, i = e.clientX - Ce.current.x;
!E && (Math.abs(i) > 1 || Math.abs(r) > 1) && D(Math.abs(i) > Math.abs(r) ? "x" : "y");
let a = {
x: 0,
y: 0
}, o = (e) => 1 / (1.5 + Math.abs(e) / 20);
if (E === "y") {
- if (De.includes("top") || De.includes("bottom")) {
- if (De.includes("top") && r < 0 || De.includes("bottom") && r > 0) a.y = r;
+ if (Oe.includes("top") || Oe.includes("bottom")) {
+ if (Oe.includes("top") && r < 0 || Oe.includes("bottom") && r > 0) a.y = r;
else {
let e = r * o(r);
a.y = Math.abs(e) < Math.abs(r) ? e : r;
}
}
- } else if (E === "x" && (De.includes("left") || De.includes("right"))) {
- if (De.includes("left") && i < 0 || De.includes("right") && i > 0) a.x = i;
+ } else if (E === "x" && (Oe.includes("left") || Oe.includes("right"))) {
+ if (Oe.includes("left") && i < 0 || Oe.includes("right") && i > 0) a.x = i;
else {
let e = i * o(i);
a.x = Math.abs(e) < Math.abs(i) ? e : i;
}
}
- (Math.abs(a.x) > 0 || Math.abs(a.y) > 0) && ne(!0), (t = le.current) == null || t.style.setProperty("--swipe-amount-x", `${a.x}px`), (n = le.current) == null || n.style.setProperty("--swipe-amount-y", `${a.y}px`);
+ (Math.abs(a.x) > 0 || Math.abs(a.y) > 0) && re(!0), (t = ue.current) == null || t.style.setProperty("--swipe-amount-x", `${a.x}px`), (n = ue.current) == null || n.style.setProperty("--swipe-amount-y", `${a.y}px`);
}
- }, _e && !n.jsx && de !== "loading" ? /*#__PURE__*/ R.createElement("button", {
+ }, ve && !n.jsx && fe !== "loading" ? /*#__PURE__*/ L.createElement("button", {
"aria-label": T,
- "data-disabled": ke,
+ "data-disabled": Ae,
"data-close-button": !0,
- onClick: ke || !pe ? () => {} : () => {
- Ae(), n.onDismiss == null || n.onDismiss.call(n, n);
+ onClick: Ae || !me ? () => {} : () => {
+ je(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: Y9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? UWe) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ R.createElement("div", {
+ }, w?.close ?? UWe) : null, (fe || n.icon || n.promise) && n.icon !== null && (w?.[fe] !== null || n.icon) ? /*#__PURE__*/ L.createElement("div", {
"data-icon": "",
className: Y9(C?.icon, n?.classNames?.icon)
- }, de === "loading" ? n.icon || je() : n.promise ? je() : null, de === "loading" ? null : Me) : null, /*#__PURE__*/ R.createElement("div", {
+ }, fe === "loading" ? n.icon || Me() : n.promise ? Me() : null, fe === "loading" ? null : Ne) : null, /*#__PURE__*/ L.createElement("div", {
"data-content": "",
className: Y9(C?.content, n?.classNames?.content)
- }, /*#__PURE__*/ R.createElement("div", {
+ }, /*#__PURE__*/ L.createElement("div", {
"data-title": "",
className: Y9(C?.title, n?.classNames?.title)
- }, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ R.createElement("div", {
+ }, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ L.createElement("div", {
"data-description": "",
- className: Y9(v, he, C?.description, n?.classNames?.description)
- }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ R.isValidElement(n.cancel) ? n.cancel : n.cancel && q9(n.cancel) ? /*#__PURE__*/ R.createElement("button", {
+ className: Y9(v, ge, C?.description, n?.classNames?.description)
+ }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ L.isValidElement(n.cancel) ? n.cancel : n.cancel && q9(n.cancel) ? /*#__PURE__*/ L.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- q9(n.cancel) && pe && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Ae());
+ q9(n.cancel) && me && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), je());
},
className: Y9(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ R.isValidElement(n.action) ? n.action : n.action && q9(n.action) ? /*#__PURE__*/ R.createElement("button", {
+ }, n.cancel.label) : null, /*#__PURE__*/ L.isValidElement(n.action) ? n.action : n.action && q9(n.action) ? /*#__PURE__*/ L.createElement("button", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- q9(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Ae());
+ q9(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && je());
},
className: Y9(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
@@ -80899,11 +80903,11 @@ function iGe(e, t) {
}) : o(a);
}), n;
}
-var aGe = /*#__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 = YWe, toastOptions: g, dir: _ = X9(), gap: v = $We, 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), P = R.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = R.useRef(null), I = R.useRef(!1), te = R.useCallback((e) => {
+var aGe = /*#__PURE__*/ L.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 = YWe, toastOptions: g, dir: _ = X9(), gap: v = $We, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = L.useState([]), w = L.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = L.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = L.useState([]), [O, k] = L.useState(!1), [A, j] = L.useState(!1), [M, N] = L.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = L.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = L.useRef(null), te = L.useRef(!1), ne = L.useCallback((e) => {
C((t) => (t.find((t) => t.id === e.id)?.delete || G9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return R.useEffect(() => G9.subscribe((e) => {
+ return L.useEffect(() => G9.subscribe((e) => {
if (e.dismiss) {
requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
@@ -80914,7 +80918,7 @@ var aGe = /*#__PURE__*/ R.forwardRef(function(e, t) {
return;
}
setTimeout(() => {
- ze.flushSync(() => {
+ Be.flushSync(() => {
C((t) => {
let n = t.findIndex((t) => t.id === e.id);
return n === -1 ? [e, ...t] : [
@@ -80928,7 +80932,7 @@ var aGe = /*#__PURE__*/ R.forwardRef(function(e, t) {
});
});
});
- }), []), R.useEffect(() => {
+ }), []), L.useEffect(() => {
if (d !== "system") {
N(d);
return;
@@ -80948,9 +80952,9 @@ var aGe = /*#__PURE__*/ R.forwardRef(function(e, t) {
}
});
}
- }, [d]), R.useEffect(() => {
+ }, [d]), L.useEffect(() => {
S.length <= 1 && k(!1);
- }, [S]), R.useEffect(() => {
+ }, [S]), L.useEffect(() => {
let e = (e) => {
if (a.length > 0 && a.every((t) => e[t] || e.code === t)) {
var t;
@@ -80959,11 +80963,11 @@ var aGe = /*#__PURE__*/ R.forwardRef(function(e, t) {
e.code === "Escape" && (document.activeElement === P.current || P.current?.contains(document.activeElement)) && k(!1);
};
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
- }, [a]), R.useEffect(() => {
+ }, [a]), L.useEffect(() => {
if (P.current) return () => {
- F.current && (F.current.focus({ preventScroll: !0 }), F.current = null, I.current = !1);
+ F.current && (F.current.focus({ preventScroll: !0 }), F.current = null, te.current = !1);
};
- }, [P.current]), /*#__PURE__*/ R.createElement("section", {
+ }, [P.current]), /*#__PURE__*/ L.createElement("section", {
ref: t,
"aria-label": b ?? `${x} ${ee}`,
tabIndex: -1,
@@ -80974,7 +80978,7 @@ var aGe = /*#__PURE__*/ R.forwardRef(function(e, t) {
"data-react-aria-top-layer": !0
}, T.map((t, n) => {
let [i, a] = t.split("-");
- return w.length ? /*#__PURE__*/ R.createElement("ol", {
+ return w.length ? /*#__PURE__*/ L.createElement("ol", {
key: t,
dir: _ === "auto" ? X9() : _,
tabIndex: -1,
@@ -80992,10 +80996,10 @@ var aGe = /*#__PURE__*/ R.forwardRef(function(e, t) {
...iGe(l, u)
},
onBlur: (e) => {
- I.current && !e.currentTarget.contains(e.relatedTarget) && (I.current = !1, F.current &&= (F.current.focus({ preventScroll: !0 }), null));
+ te.current && !e.currentTarget.contains(e.relatedTarget) && (te.current = !1, F.current &&= (F.current.focus({ preventScroll: !0 }), null));
},
onFocus: (e) => {
- e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || I.current || (I.current = !0, F.current = e.relatedTarget);
+ e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || te.current || (te.current = !0, F.current = e.relatedTarget);
},
onMouseEnter: () => k(!0),
onMouseMove: () => k(!0),
@@ -81007,7 +81011,7 @@ var aGe = /*#__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(rGe, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ L.createElement(rGe, {
key: n.id,
icons: y,
index: i,
@@ -81027,7 +81031,7 @@ var aGe = /*#__PURE__*/ R.forwardRef(function(e, t) {
cancelButtonStyle: g?.cancelButtonStyle,
actionButtonStyle: g?.actionButtonStyle,
closeButtonAriaLabel: g?.closeButtonAriaLabel,
- removeToast: te,
+ removeToast: ne,
toasts: w.filter((e) => e.position == n.position),
heights: E.filter((e) => e.position == n.position),
setHeights: D,
@@ -81037,12 +81041,12 @@ var aGe = /*#__PURE__*/ R.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), Z9 = (e, t) => /* @__PURE__ */ (0, z.jsx)("span", {
+}), Z9 = (e, t) => /* @__PURE__ */ (0, R.jsx)("span", {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
}), Q9 = !1, oGe = (e, t) => {
- Q9 || (Q9 = !0, (0, Be.createRoot)(e).render(/* @__PURE__ */ (0, z.jsx)(aGe, {
+ Q9 || (Q9 = !0, (0, Ve.createRoot)(e).render(/* @__PURE__ */ (0, R.jsx)(aGe, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -81065,7 +81069,7 @@ var aGe = /*#__PURE__*/ R.forwardRef(function(e, t) {
})));
}, sGe = (e, t) => {
let n = t.alert ? K9.error : K9.success, r = t.action;
- n(/* @__PURE__ */ (0, z.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
+ n(/* @__PURE__ */ (0, R.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
duration: t.timeout || Infinity,
action: r ? {
@@ -81080,8 +81084,8 @@ var aGe = /*#__PURE__*/ R.forwardRef(function(e, t) {
//#region src/react/entry.tsx
function $9(e) {
return (t, n) => {
- let r = (0, Be.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, z.jsx)(LF, { children: /* @__PURE__ */ (0, z.jsx)(e, { ...t }) }));
- return (0, ze.flushSync)(() => i(n)), {
+ let r = (0, Ve.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, R.jsx)(LF, { children: /* @__PURE__ */ (0, R.jsx)(e, { ...t }) }));
+ return (0, Be.flushSync)(() => i(n)), {
update: i,
unmount: () => r.unmount()
};
@@ -81094,7 +81098,7 @@ var cGe = {
},
"catalog-grid": {
prefetch: Nne,
- mount: $9(Rb)
+ mount: $9(zb)
},
configuration: {
prefetch: (e, t) => nI(t),
@@ -81137,8 +81141,8 @@ var cGe = {
mount: $9(bhe)
},
"library-processing": {
- prefetch: (e, t) => $b(t),
- mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, z.jsx)(Ehe, { ...e }) : /* @__PURE__ */ (0, z.jsx)(dO, { ...e }))
+ prefetch: (e, t) => ex(t),
+ mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, R.jsx)(Ehe, { ...e }) : /* @__PURE__ */ (0, R.jsx)(dO, { ...e }))
},
playlists: {
prefetch: (e, t) => Ohe(t),