Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(feeds): 订阅源页签按女优名添加订阅,账本里没有的就新建一位

longmeidao0364b44b3ef3
diff --git a/README.en.md b/README.en.md
index aca3c2a32..555093aac 100644
--- a/README.en.md
+++ b/README.en.md
@@ -63,7 +63,7 @@ Want to look around before installing? The [live demo](https://demo.peach.video)
- **Performer pages**: aliases, birthday and measurements, social accounts and JavDB and MISSAV links on one page, above every video of hers in your library and her photos. You can pick an avatar by drawing a box on any cover.
- **Filling in details**: by video code, Peach fills in titles, performers, studios and high-resolution covers from studio sites, DMM, JavBus, JavDB and others. It only fills empty fields and never overwrites your edits.
- **Playback**: play in the browser and pick up where you left off. Like, rate, save for later, add to a playlist, or "log a climax".
-- **New releases**: turn on a subscription on a performer page and Peach checks for her new titles regularly. Creators can be followed across 11 sites such as FANBOX, Patreon and Kemono, and the same post on different sites shows up as one card.
+- **New releases**: turn on a subscription on a performer page, or subscribe by name in follow management (she does not need to be in your library yet), and Peach checks for her new titles regularly. Creators can be followed across 11 sites such as FANBOX, Patreon and Kemono, and the same post on different sites shows up as one card.
- **Statistics**: which drive holds what, how much you have watched and which tags dominate, on one page.
- **Appearance**: light or dark, accent color and sidebar order are all yours to set.
- **Any screen**: works in the browser on desktop, tablet and phone.
diff --git a/README.md b/README.md
index d73682936..ab487f5f4 100644
--- a/README.md
+++ b/README.md
@@ -63,7 +63,7 @@ https://github.com/user-attachments/assets/cc164de3-28d6-4fc9-8067-f2e70e94cb93
- **女优页**:别名、生日身材、社媒和 JavDB、MISSAV 链接汇在一页,下面是她在你馆藏里的全部作品和照片;头像可以直接在作品封面上框一块。
- **补资料**:按番号从片商官网、DMM、JavBus、JavDB 等站点补标题、女优、厂牌和高清封面;只填空着的,不覆盖你改过的。
- **播放**:在浏览器里直接播放,记下看到哪;可以点喜欢、打分、稍后看、加进播放列表,也能「记一次高潮」。
-- **追新作**:在女优页打开订阅,Peach 会定期查她的新作;创作者可以跨 FANBOX、Patreon、Kemono 等 11 个站点一起关注,不同站点上的同一个作品合成一张卡。
+- **追新作**:在女优页打开订阅,或在关注管理里按名字订阅(馆藏里还没有她也行),Peach 会定期查她的新作;创作者可以跨 FANBOX、Patreon、Kemono 等 11 个站点一起关注,不同站点上的同一个作品合成一张卡。
- **统计**:片子存在哪块盘、看过多少、标签分布,一页看完。
- **外观**:深色浅色、主题色、侧栏顺序都能自己调。
- **多端**:电脑、平板、手机的浏览器都能用。
diff --git a/docs/adr/0083-feed-subscriptions-by-name-create-performers.md b/docs/adr/0083-feed-subscriptions-by-name-create-performers.md
new file mode 100644
index 000000000..0a0c1a8e6
--- /dev/null
+++ b/docs/adr/0083-feed-subscriptions-by-name-create-performers.md
@@ -0,0 +1,62 @@
+# ADR-0083:订阅源页签按女优名订阅,账本里没有的就新建
+
+- 状态:Accepted
+- 日期:2026-09-27
+- 关系:放宽 [ADR-0047](0047-feed-subscriptions-enter-from-the-performer-page.md)
+ 决策一「订阅只从人物页的『订阅新作』开关进」;「页面不送地址」与「只有 JavDB 演员页一类」不变。
+ 与 [ADR-0081](0081-performer-profile-followup-binds-javdb-actor-ids.md) 共用演员卡的判身份规则。
+
+## 背景
+
+ADR-0047 把订阅入口收到人物页的开关上,前提是想订的人已经在账本里。实际用法里常常不是:
+看到一位新人想盯她的新作,她在本机一部作品都没有,人物页不存在,开关无处可点。
+唯一的办法是先弄到她的一部作品、等编目认出她,再回人物页开订阅。
+
+关注管理页的「关注列表」有自己的「添加关注」,按链接、名字或 id 查找候选再登记。
+「订阅源」页签只有清单,用户要的是同一件事:给一个名字,就能订。
+
+`feeds.match_performers` 写过「这里只做关联,不建实体:凭一个来源给的名字往账本里加一个人,
+等于让未经复核的断言变成实体」。那条理由针对的是 Feed 拉回来的作品上写的演员名——来源说的。
+按名字订是用户当场看着 JavDB 的演员卡点选的,是用户说的,不是来源说的。
+
+## 决策
+
+**一、订阅源页签加「添加 JAV 订阅」。** 输入女优名,服务端到 JavDB 的演员搜索
+(`javdb.SEARCH`,走 Feed 同一条 `SourceTransport` 与主机限流)拿演员卡,页面列出每张卡的
+站内 id、站上全部写法与记录类型。查找只读不写;`GET /api/feeds/lookup?q=`。
+
+**二、页面仍不送地址。** 登记时送的是勾选的演员 id(`POST /api/feeds/source`,
+`action: follow-name`,`{name, ids}`),地址由服务端按 id 现拼(`entry_links.javdb_actor_pages`),
+和人物页开关走同一段 `feeds.follow_entity`。ADR-0047 决策一放宽为「订阅从人物页开关或
+订阅源页签按名字进」,其余不变。
+
+**三、这位是谁,按这个顺序定。** 所勾的 id 已经在账本里谁名下就是谁;都没主时按名字认账本里的
+正名或唯一别名(`entities.resolve_entity`);还认不出就新建一位 `performer`。几张卡分属账本里
+不同的人时拒绝并列出,让用户先去合并。查找结果里就把「会挂给谁」说出来(`held_by`、`known`),
+不让人点了才知道。
+
+**四、预勾只给同一个人。** 卡上写法与输入的名字同键(`match_key`)的那几张,按 ADR-0081 的
+`one_person` 判是不是同一位(每种记录类型至多一张):是就先勾上,站上同名不止一位就一张都不勾。
+
+**五、来源写 `user:feed-follow`。** 新建实体的 `metadata_json.source` 与绑上的
+`entity_external_ref.metadata_json.source` 都记这一个,不冒充 `auto:performer-profile`;
+按来源整批撤回时(ADR-0052)分得清哪些是用户当场点的。卡上的其他写法不写进 `entity_alias`,
+那是补女优资料后继(ADR-0067)的事。
+
+## 被否决的方案
+
+**只允许订账本里已有的人。** 解决不了背景里的场景:她还没有作品时正是最想盯新作的时候。
+
+**由查找结果直接建,不让用户勾。** 站上同名的人不止一位时会挂错人;`one_person` 只判
+「名字对得上的这几张是不是同一位」,判不了「就是用户要的那位」。
+
+**把卡上的写法一并写进别名。** 那些写法是站上的,不是用户点的;ADR-0081 已让后继按自己的
+来源去写,两处各写一份会让撤回时分不清归属。
+
+## 后果
+
+- `KIND_LABELS` 里演员页那一类改叫「JAV 订阅」:类型标签说的是用户订的东西,不是抓取实现。
+- 按名字新建的女优没有作品:`/api/entity` 打得开她的资料页并带订阅开关,但作品索引与搜索建议
+ 都 join 作品,她只出现在订阅源表与新作那一行里,直到有作品认到她名下。
+- `performer_profile_followup._bind` 改公开为 `bind`,两条路共用同一段绑 id 的写法。
+- `tests/test_feeds_web.py` 的 `FeedFollowByNameTest` 钉住候选、预勾、归属顺序与拒绝条件。
diff --git a/frontend/src/react/follow-manage/add-feed.tsx b/frontend/src/react/follow-manage/add-feed.tsx
new file mode 100644
index 000000000..3bbe9c04d
--- /dev/null
+++ b/frontend/src/react/follow-manage/add-feed.tsx
@@ -0,0 +1,134 @@
+/* 添加 JAV 订阅:输入女优名,到 JavDB 搜她的演员卡,勾选后登记到她名下并订上(ADR-0083)。
+ *
+ * 查找只是列出候选、不写任何东西:同名的人站上可能不止一位,替用户决定「就是这个」是错的。
+ * 名字对得上、又只有一个人的那几张先勾上,其余的要用户自己点。地址仍由服务端按勾选的 id 拼,
+ * 页面从头到尾不送地址。这位在账本里不存在也可以订:服务端会新建她。 */
+import { useState } from 'react';
+import type { KeyboardEvent } from 'react';
+import { RiSearchLine } from '@remixicon/react';
+
+import { Chip } from '@/components/base/badges/chip';
+import { Button } from '@/components/base/buttons/button';
+import { Checkbox } from '@/components/base/checkbox/checkbox';
+import { Input } from '@/components/base/input/input';
+
+import { cardClass } from '../components/card';
+import { Note } from '../components/note';
+import { ExternalLink, FieldLabel, Help } from '../settings/section';
+import { busyProps, useAction } from '../settings/use-action';
+import { followFeedByName, lookupFeedActor, type FeedCandidate, type FeedLookup } from './follow-manage';
+
+const PLACEHOLDER = '输入女优名,到 JavDB 找她的演员页';
+
+export interface AddFeedProps {
+ readOnly: boolean;
+ toast(message: string): void;
+ /** 订上之后让清单重取。 */
+ onAdded(): void;
+}
+
+/** 勾下去会登记到谁名下:先看勾选的卡已经在谁名下,再看账本里按名字认得出谁,都没有就新建。 */
+function destination(result: FeedLookup, picked: ReadonlySet<string>): { text: string; blocked: boolean } {
+ const holders = new Map<number, string>();
+ for (const card of result.candidates) {
+ if (picked.has(card.id) && card.held_by) holders.set(card.held_by.id, card.held_by.name);
+ }
+ if (holders.size > 1) {
+ return { text: `所勾的卡分属账本里不同的人:${[...holders.values()].join('、')},先去合并再订`, blocked: true };
+ }
+ const [holder] = holders.values();
+ if (holder) return { text: `会登记到「${holder}」名下`, blocked: false };
+ if (result.known) return { text: `会登记到账本里的「${result.known.name}」名下`, blocked: false };
+ return { text: `账本里还没有「${result.q}」,会新建一位`, blocked: false };
+}
+
+function CandidateRow({ card, picked, onPick }: { card: FeedCandidate; picked: boolean; onPick(on: boolean): void }) {
+ return (
+ <div className="flex flex-wrap items-center gap-2">
+ <Checkbox isSelected={picked} onChange={onPick}>
+ <span className="flex min-w-0 flex-wrap items-center gap-1.5">
+ <span className="min-w-0 break-words">{card.names.join('、')}</span>
+ {card.record ? <Chip variant="caption" color="neutral">{card.record}</Chip> : null}
+ {card.held_by ? (
+ <small className="text-caption-1-regular text-text-secondary">{`已在「${card.held_by.name}」名下`}</small>
+ ) : null}
+ </span>
+ </Checkbox>
+ <ExternalLink href={card.url}>{card.id}</ExternalLink>
+ </div>
+ );
+}
+
+export function AddFeed({ readOnly, toast, onAdded }: AddFeedProps) {
+ const [name, setName] = useState('');
+ const [result, setResult] = useState<FeedLookup | null>(null);
+ const [picked, setPicked] = useState<ReadonlySet<string>>(new Set<string>());
+ const action = useAction();
+
+ const search = () => {
+ const q = name.trim();
+ if (!q || readOnly) return;
+ void action.run('lookup', (signal) => lookupFeedActor(q, signal), (found) => {
+ setResult(found);
+ setPicked(new Set(found.suggested));
+ });
+ };
+ const onKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {
+ if (event.key === 'Enter' && !event.nativeEvent.isComposing) { event.preventDefault(); search() }
+ };
+ const close = () => { setResult(null); setPicked(new Set()); action.setError('') };
+ const add = () => {
+ if (!result) return;
+ void action.run('follow', (signal) => followFeedByName(result.q, [...picked], signal), (done) => {
+ toast(done.created
+ ? `已新建「${done.entity_name}」并订阅她的新作`
+ : `已订阅「${done.entity_name}」的新作`);
+ setName('');
+ close();
+ onAdded();
+ });
+ };
+
+ const where = result ? destination(result, picked) : null;
+
+ return (
+ /* 和「添加关注」那一块同一个形:一张填充卡,标题在卡里。 */
+ <div className={cardClass({ padding: 'none', className: 'flex flex-col gap-4 px-6 py-5 max-sm:px-4' })}>
+ <h3 className="text-title-2-medium text-text-primary">添加 JAV 订阅</h3>
+ <div className="flex flex-wrap items-end gap-2">
+ <div className="min-w-64 grow">
+ <Input aria-label="女优名" placeholder={PLACEHOLDER} value={name} leadingIcon={RiSearchLine}
+ isDisabled={readOnly} onChange={setName} onKeyDown={onKeyDown} />
+ </div>
+ <Button variant="primary" disabled={readOnly || !name.trim()} {...busyProps(action.busy === 'lookup')}
+ onClick={search}>查找</Button>
+ </div>
+
+ {action.error ? <Note tone="error" title="这一次没有完成">{action.error}</Note> : null}
+
+ {result ? (
+ <div className="flex flex-col gap-3">
+ <FieldLabel>JavDB 上的演员卡</FieldLabel>
+ {result.candidates.length ? result.candidates.map((card) => (
+ <CandidateRow key={card.id} card={card} picked={picked.has(card.id)}
+ onPick={(on) => setPicked((now) => {
+ const next = new Set(now);
+ if (on) next.add(card.id); else next.delete(card.id);
+ return next;
+ })} />
+ )) : <Help>JavDB 上没有搜到这个名字。</Help>}
+ {result.candidates.length ? (
+ <Help role="status">{picked.size ? where!.text : '勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。'}</Help>
+ ) : null}
+ <div className="flex flex-wrap items-center gap-2">
+ {result.candidates.length ? (
+ <Button variant="primary" size="small" disabled={readOnly || !picked.size || where!.blocked}
+ {...busyProps(action.busy === 'follow')} onClick={add}>{`添加订阅(${picked.size})`}</Button>
+ ) : null}
+ <Button variant="secondary" size="small" onClick={close}>关闭</Button>
+ </div>
+ </div>
+ ) : null}
+ </div>
+ );
+}
diff --git a/frontend/src/react/follow-manage/feed-sources.tsx b/frontend/src/react/follow-manage/feed-sources.tsx
index 935c245f6..93ad9337c 100644
--- a/frontend/src/react/follow-manage/feed-sources.tsx
+++ b/frontend/src/react/follow-manage/feed-sources.tsx
@@ -1,8 +1,9 @@
-/* 关注管理页的「订阅源」页签:一张和关注列表同一个外观的表,一行一条源,列出类型、来源、
- * 状态、频率、上次拉取与新增,行尾是启用开关与移除键(ADR-0042)。
+/* 关注管理页的「订阅源」页签:上面一张「添加 JAV 订阅」卡,下面一张和关注列表同一个外观的表,
+ * 一行一条源,列出类型、来源、状态、频率、上次拉取与新增,行尾是启用开关与移除键(ADR-0042)。
*
- * 订阅只从人物页的「订阅新作」进,这里不收地址(ADR-0047)。拉回来的新作排在首页与人物页
- * 筛选栏下面那一行,不在这里列——这里再列一遍就成了第二个入口,两处的已读状态会各说各话。
+ * 订阅从人物页的「订阅新作」或这里按名字进,两条路都不收地址(ADR-0047、ADR-0083)。拉回来的
+ * 新作排在首页与人物页筛选栏下面那一行,不在这里列——这里再列一遍就成了第二个入口,两处的
+ * 已读状态会各说各话。
* 服务端是唯一真相:开关与移除之后重取这一份,不在前端按响应拼一份新的本地状态。
*
* 勾选和关注列表同一套:勾在行首,点一行的空白处也是选这一行,选中了底部浮出批量操作。 */
@@ -31,6 +32,7 @@ import { queryClient } from '../query';
import { ErrorText, Help } from '../settings/section';
import { busyProps, useAction } from '../settings/use-action';
import { localTime } from '../time';
+import { AddFeed } from './add-feed';
import {
checkFeeds, FEEDS_KEY, fetchFeeds, removeFeed, setFeedEnabled, type FeedSource,
} from './follow-manage';
@@ -164,11 +166,17 @@ export function FeedSources({ readOnly, toast }: { readOnly: boolean; toast(mess
column.accessor(feedName, {
id: 'name',
header: label('name'),
+ /* 名字、频率与时间都不换行:窄屏上这张表靠 Table 自带的容器横着滚,让格子换行只会
+ 把「三上悠亜」竖着摆成四行,滚动反而没了用处。 */
cell: (context) => (
- <span className="min-w-0 break-words text-body-medium text-text-primary">{context.getValue()}</span>
+ <span className="whitespace-nowrap text-body-medium text-text-primary">{context.getValue()}</span>
),
}),
- column.accessor((row) => row.kind_label, { id: 'kind', header: label('kind') }),
+ column.accessor((row) => row.kind_label, {
+ id: 'kind',
+ header: label('kind'),
+ cell: (context) => <span className="whitespace-nowrap">{context.getValue()}</span>,
+ }),
column.accessor((row) => row.url, {
id: 'origin',
header: label('origin'),
@@ -184,16 +192,20 @@ export function FeedSources({ readOnly, toast }: { readOnly: boolean; toast(mess
header: label('status'),
cell: (context) => <StatusChip source={context.row.original} />,
}),
- column.accessor((row) => intervalText(row.interval_minutes), { id: 'interval', header: label('interval') }),
+ column.accessor((row) => intervalText(row.interval_minutes), {
+ id: 'interval',
+ header: label('interval'),
+ cell: (context) => <span className="whitespace-nowrap">{context.getValue()}</span>,
+ }),
column.accessor((row) => (row.last_fetched_at ? localTime(row.last_fetched_at) : '还没拉过'), {
id: 'fetched',
header: label('fetched'),
- cell: (context) => <span className="tabular-nums">{context.getValue()}</span>,
+ cell: (context) => <span className="whitespace-nowrap tabular-nums">{context.getValue()}</span>,
}),
column.accessor((row) => row.last_new_count, {
id: 'fresh',
header: label('fresh'),
- cell: (context) => <span className="tabular-nums">{`${context.getValue()} 条`}</span>,
+ cell: (context) => <span className="whitespace-nowrap tabular-nums">{`${context.getValue()} 条`}</span>,
}),
column.display({
id: 'enabled',
@@ -251,6 +263,7 @@ export function FeedSources({ readOnly, toast }: { readOnly: boolean; toast(mess
/* 分区名由页签「订阅源」给,表上面没有同名的小标题。 */
return (
<div className="flex flex-col gap-3">
+ <AddFeed readOnly={readOnly} toast={toast} onAdded={() => void reload()} />
<div className="flex flex-wrap items-center justify-between gap-3">
<Help role="status">{data.unread ? `有 ${data.unread} 条新作还没看` : '新作都看过了'}</Help>
<Button onClick={check} disabled={readOnly} {...busyProps(action.busy === 'check')}>立即拉取</Button>
@@ -309,7 +322,7 @@ export function FeedSources({ readOnly, toast }: { readOnly: boolean; toast(mess
</DataTableFrame>
) : (
<EmptyState icon={RiRssLine} title="还没有订阅源" shell="plain">
- 在人物页点「订阅新作」添加。
+ 在上面按女优名添加,或在人物页点「订阅新作」。
</EmptyState>
)}
</div>
diff --git a/frontend/src/react/follow-manage/follow-manage.ts b/frontend/src/react/follow-manage/follow-manage.ts
index 38da6fab0..891e44ef1 100644
--- a/frontend/src/react/follow-manage/follow-manage.ts
+++ b/frontend/src/react/follow-manage/follow-manage.ts
@@ -33,6 +33,7 @@ export const FOLLOW_STATUS_URL = '/api/follow/status';
export const FEEDS_URL = '/api/feeds';
export const FEED_SOURCE_URL = '/api/feeds/source';
export const FEEDS_CHECK_URL = '/api/feeds/check';
+export const FEEDS_LOOKUP_URL = '/api/feeds/lookup';
/** 来源清单、创作者别名与推荐共用这一个键。 */
export const FOLLOW_MANAGE_KEY = ['follow-manage'] as const;
@@ -488,6 +489,46 @@ export const removeFeed = (id: number, signal?: AbortSignal) =>
/** 立即拉取走的是和定时同一条路,只是把到期判断换成「全部启用的源」。 */
export const checkFeeds = (signal?: AbortSignal) => apiSend(FEEDS_CHECK_URL, { all: true }, 'POST', signal);
+/** JavDB 搜出来的一张演员卡。字段以 `web_feeds.q_feed_lookup` 为准。 */
+export interface FeedCandidate {
+ /** 站内 id,登记时送回去的就是它。 */
+ id: string;
+ /** 这个人在站上的全部写法。 */
+ names: string[];
+ /** 记录类型:無碼那条带 `無碼`,有碼那条是空串。 */
+ record: string;
+ url: string;
+ /** 这个 id 已经在账本里谁名下。 */
+ held_by: { id: number; name: string } | null;
+ /** 卡上的写法对得上账本里哪几位的正名或别名。 */
+ matched: { id: number; name: string }[];
+}
+
+export interface FeedLookup {
+ q: string;
+ url: string;
+ candidates: FeedCandidate[];
+ /** 名字对得上、又只有一个人的那几张,先替用户勾上;同名不止一位时是空的。 */
+ suggested: string[];
+ /** 账本里按这个名字认得出的那位;认不出是 null,登记时会新建。 */
+ known: { id: number; name: string } | null;
+}
+
+export const lookupFeedActor = (name: string, signal?: AbortSignal) =>
+ apiGet<FeedLookup>(`${FEEDS_LOOKUP_URL}?q=${encodeURIComponent(name)}`, signal);
+
+export interface FeedFollowed {
+ entity_id: number;
+ entity_name: string;
+ /** 这位是这一次新建到账本里的。 */
+ created: boolean;
+ sources: number[];
+}
+
+/** 勾选的演员卡登记到这位名下并订上她的演员页。地址仍由服务端拼,页面只送 id。 */
+export const followFeedByName = (name: string, ids: string[], signal?: AbortSignal) =>
+ apiSend<FeedFollowed>(FEED_SOURCE_URL, { action: 'follow-name', name, ids }, 'POST', signal);
+
/** 首屏:来源清单与凭据状态取回来才画;地址栏直接指着「订阅源」时连它一起取。
*
* 两趟后台任务不在首屏里:它们的快照常年躺着上一趟的回执,等它们只会让首屏多等一个
diff --git a/frontend/test/react/follow-manage.test.tsx b/frontend/test/react/follow-manage.test.tsx
index 2e4f3567a..4c24c505e 100644
--- a/frontend/test/react/follow-manage.test.tsx
+++ b/frontend/test/react/follow-manage.test.tsx
@@ -12,12 +12,12 @@ import { JOB_RUNNING_POLL_MS } from '../../src/react/background-job';
import { queryClient } from '../../src/react/query';
import {
authorAvatar, authorGroups, authorInitial, authorName, checkSummary, FEEDS_CHECK_URL, FEED_SOURCE_URL,
- FEEDS_URL, FOLLOW_CHECK_URL,
+ FEEDS_LOOKUP_URL, FEEDS_URL, FOLLOW_CHECK_URL,
FOLLOW_CREDENTIAL_URL, FOLLOW_CREDENTIALS_URL, FOLLOW_RESOLVE_URL, FOLLOW_SOURCE_URL,
FOLLOW_SUGGEST_URL, FOLLOW_URL, pageWindow, prefetchFollowManage,
sortLabel, SUGGEST_DEBOUNCE_MS, tableRows,
- type CheckJob, type CredentialData, type CredentialRow, type FeedsData, type FollowData, type FollowSource,
- type ResolveJob, type SuggestData,
+ type CheckJob, type CredentialData, type CredentialRow, type FeedLookup, type FeedsData, type FollowData,
+ type FollowSource, type ResolveJob, type SuggestData,
} from '../../src/react/follow-manage/follow-manage';
import { FollowManagePage } from '../../src/react/follow-manage/follow-manage-page';
@@ -89,8 +89,10 @@ interface Plan {
add?: (body: { url: string; label: string }) => unknown;
/** 订阅源清单。 */
feeds?: FeedsData;
- /** 订阅源的开关与移除。回 `refuse(...)` 就是这一次被服务端挡回来。 */
- feedWrite?: (body: { action: string; id: number }) => unknown;
+ /** 订阅源的开关、移除与按名字登记。回 `refuse(...)` 就是这一次被服务端挡回来。 */
+ feedWrite?: (body: { action: string; id?: number; name?: string; ids?: string[] }) => unknown;
+ /** 按女优名到 JavDB 搜演员卡的结果。回 `refuse(...)` 就是这一趟被服务端挡回来。 */
+ lookup?: (q: string) => FeedLookup | ReturnType<typeof refuse>;
}
/** 按端点分流的假 fetch。写操作各回一个最小成功体。 */
@@ -102,6 +104,11 @@ function serve(plan: Plan = {}) {
if (url === FEEDS_URL) return ok(plan.feeds ?? { sources: [], unread: 0 });
if (url === FEED_SOURCE_URL && plan.feedWrite) return plan.feedWrite(body);
if (url === FEED_SOURCE_URL || url === FEEDS_CHECK_URL) return ok({ ok: true });
+ if (url.startsWith(`${FEEDS_LOOKUP_URL}?`)) {
+ const q = new URL(url, 'http://peach.test').searchParams.get('q') || '';
+ const found = plan.lookup ? plan.lookup(q) : { q, url: '', candidates: [], suggested: [], known: null };
+ return 'candidates' in found ? ok(found) : found;
+ }
if (url === FOLLOW_CREDENTIALS_URL) return ok(plan.creds ?? credentials());
if (url === FOLLOW_CREDENTIAL_URL) return ok({});
if (url === FOLLOW_CHECK_URL) {
@@ -698,9 +705,11 @@ it('移除被服务端挡回时把原因交给弹层,不发 Toast、不重取
expect(feedReads(fetcher)).toBe(before);
});
-it('订阅源页签不收地址,只读的这台开关、移除与拉取都停用', async () => {
+it('订阅源页签不收地址,只读的这台查找、开关、移除与拉取都停用', async () => {
const { host } = await open({ feeds: FEEDS }, { tab: 'feeds', readOnly: true });
- expect(host.querySelector('input[type="url"], input[type="text"]')).toBeNull();
+ expect(host.querySelector('input[type="url"]')).toBeNull();
+ expect(nameField(host).disabled).toBe(true);
+ expect(buttonNamed('查找', host)?.disabled).toBe(true);
expect(buttonNamed('立即拉取', host)?.disabled).toBe(true);
expect(buttonLabelled(host, '移除 甲 的新作')?.disabled).toBe(true);
expect(host.querySelector<HTMLInputElement>('input[aria-label="启用 甲 的新作"]')?.disabled).toBe(true);
@@ -709,12 +718,101 @@ it('订阅源页签不收地址,只读的这台开关、移除与拉取都停
it('没有订阅源时那张卡里是空态,分区名由页签给、卡上没有同名标题', async () => {
const { host } = await open({}, { tab: 'feeds' });
const panel = host.querySelector('[role="tabpanel"]')!;
- expect(panel.querySelector('h3')?.textContent).toBe('还没有订阅源');
- expect(panel.textContent).toContain('在人物页点「订阅新作」添加。');
+ expect([...panel.querySelectorAll('h3')].map((h) => h.textContent)).toEqual(['添加 JAV 订阅', '还没有订阅源']);
+ expect(panel.textContent).toContain('在上面按女优名添加,或在人物页点「订阅新作」。');
expect(panel.querySelector('section[aria-label="订阅源"]')).toBeNull();
expect(buttonNamed('立即拉取', host)).not.toBeNull();
});
+// ── 添加 JAV 订阅:按名字搜演员卡、勾选、登记 ─────────────────────────────
+
+/** 女优名输入框。BoardUI 的 `Input` 把无障碍名称落在外层字段上,输入框在它里面。 */
+function nameField(root: ParentNode): HTMLInputElement {
+ const named = root.querySelector('[aria-label="女优名"]');
+ const field = named instanceof HTMLInputElement ? named : named?.querySelector('input');
+ if (!field) throw new Error('女优名输入框没有画出来');
+ return field;
+}
+
+const card = (id: string, names: string[], record = '', held_by: FeedLookup['known'] = null) =>
+ ({ id, names, record, url: `https://javdb.com/actors/${id}`, held_by, matched: [] });
+
+const LOOKUP: FeedLookup = {
+ q: '瀬戸環奈', url: 'https://javdb.com/search?f=actor&q=x', known: null, suggested: ['Kn01', 'Kn02'],
+ candidates: [card('Kn01', ['瀬戸環奈', '瀨戶環奈']), card('Kn02', ['瀬戸環奈'], '無碼'), card('Zz99', ['別人さん'])],
+};
+
+const boxNamed = (root: ParentNode, text: string) =>
+ [...root.querySelectorAll('label')].find((label) => label.textContent?.includes(text))
+ ?.querySelector<HTMLInputElement>('input[type="checkbox"]');
+
+it('按名字查找列出每张演员卡,同一个人的两张先勾上;说清会新建,添加后送 id、Toast 点名并重取清单', async () => {
+ const lookup = vi.fn(() => LOOKUP);
+ const feedWrite = vi.fn(() => ok({ ok: true, entity_id: 9, entity_name: '瀬戸環奈', created: true, sources: [7, 8] }));
+ const { host, fetcher, props } = await open({ feeds: FEEDS, lookup, feedWrite }, { tab: 'feeds' });
+ const before = feedReads(fetcher);
+ expect(buttonNamed('查找', host)?.disabled).toBe(true);
+ await type(nameField(host), ' 瀬戸環奈 ');
+ await click(buttonNamed('查找', host));
+ await settle();
+ expect(lookup).toHaveBeenCalledWith('瀬戸環奈');
+ expect(boxNamed(host, '瀬戸環奈、瀨戶環奈')?.checked).toBe(true);
+ expect(boxNamed(host, '無碼')?.checked).toBe(true);
+ expect(boxNamed(host, '別人さん')?.checked).toBe(false);
+ expect(host.textContent).toContain('账本里还没有「瀬戸環奈」,会新建一位');
+ expect([...host.querySelectorAll('a')].find((a) => a.textContent?.includes('Kn01'))?.getAttribute('href'))
+ .toBe('https://javdb.com/actors/Kn01');
+
+ await click(boxNamed(host, '無碼'));
+ expect(buttonNamed('添加订阅(1)', host)).not.toBeNull();
+ await click(buttonNamed('添加订阅(1)', host));
+ await settle();
+ expect(feedWrite).toHaveBeenCalledWith({ action: 'follow-name', name: '瀬戸環奈', ids: ['Kn01'] });
+ expect(props.toast).toHaveBeenCalledWith('已新建「瀬戸環奈」并订阅她的新作');
+ expect(feedReads(fetcher)).toBeGreaterThan(before);
+ // 候选收起,输入框清空,下一位从头来。
+ expect(boxNamed(host, '無碼')).toBeUndefined();
+ expect(nameField(host).value).toBe('');
+});
+
+it('回车也是查找;勾的卡已在账本里谁名下就说会挂给谁,分属两个人时添加键停用', async () => {
+ const held = { ...LOOKUP, suggested: [], candidates: [
+ card('Kn01', ['瀬戸環奈'], '', { id: 3, name: '甲' }), card('Kn02', ['瀬戸環奈'], '無碼', { id: 4, name: '乙' }),
+ ] };
+ const { host, fetcher } = await open({ feeds: FEEDS, lookup: () => held }, { tab: 'feeds' });
+ await type(nameField(host), '瀬戸環奈');
+ await act(async () => {
+ nameField(host).dispatchEvent(new KeyboardEvent('keydown', { key: 'Enter', bubbles: true, cancelable: true }));
+ });
+ await settle();
+ expect(host.textContent).toContain('已在「甲」名下');
+ expect(host.textContent).toContain('勾选她的演员卡');
+ await click(boxNamed(host, '無碼'));
+ expect(host.textContent).toContain('会登记到「乙」名下');
+ expect(buttonNamed('添加订阅(1)', host)?.disabled).toBe(false);
+ await click(boxNamed(host, '瀬戸環奈'));
+ expect(host.textContent).toContain('所勾的卡分属账本里不同的人:甲、乙');
+ expect(buttonNamed('添加订阅(2)', host)?.disabled).toBe(true);
+ expect(sentBody(fetcher, FEED_SOURCE_URL)).toEqual([]);
+});
+
+it('查找被服务端挡回时原因摆在卡里,没有候选时直说', async () => {
+ const first = await open({ feeds: FEEDS, lookup: () => refuse('JavDB 回的是登入页') }, { tab: 'feeds' });
+ await type(nameField(first.host), '甲');
+ await click(buttonNamed('查找', first.host));
+ await settle();
+ expect(first.host.textContent).toContain('JavDB 回的是登入页');
+ await first.unmount();
+ queryClient.clear();
+
+ const none = await open({ feeds: FEEDS }, { tab: 'feeds' });
+ await type(nameField(none.host), '乙');
+ await click(buttonNamed('查找', none.host));
+ await settle();
+ expect(none.host.textContent).toContain('JavDB 上没有搜到这个名字。');
+ expect(buttonNamed('关闭', none.host)).not.toBeNull();
+});
+
it('只读的这台说清楚、指向写入端,写操作一律停用', async () => {
const writer = 'https://writer.example/follow-manage';
const list = await open({}, { readOnly: true, readOnlyMessage: '本机是只读副本', writerUrl: writer });
diff --git a/src/peach/feeds.py b/src/peach/feeds.py
index 5defe324e..7cfd7ac68 100644
--- a/src/peach/feeds.py
+++ b/src/peach/feeds.py
@@ -4,8 +4,9 @@ Feed 只回答一个问题——最近出了哪些番号。一次拉取的全部
的记录和一条「这个番号还没入库」的记录;不下载种子、不下载 enclosure、不建目录、
不碰任何媒体文件。
-订阅只有一类:JavDB 演员页当伪 Feed 抓,由人物页的「订阅新作」开关按这位的 JavDB 身份
-现拼地址(ADR-0047)。页面不送地址,所以这里没有「任意地址」这条入口。
+订阅只有一类:JavDB 演员页当伪 Feed 抓,由人物页的「订阅新作」开关或订阅源页签按名字勾选的
+演员卡,按这位的 JavDB 身份现拼地址(ADR-0047、ADR-0083)。页面不送地址,所以这里没有
+「任意地址」这条入口。
**解析只吃已下载的字节**,地址由调用方自己取(`peach.http` 的 transport 加主机限流)。
把地址交给一个会自己发 HTTP 的解析器,等于绕过项目的代理、限流、超时与预算闸门。
diff --git a/src/peach/performer_profile_followup.py b/src/peach/performer_profile_followup.py
index 2ca7d3dc7..c6d204920 100644
--- a/src/peach/performer_profile_followup.py
+++ b/src/peach/performer_profile_followup.py
@@ -212,8 +212,8 @@ def _ours(metadata: dict) -> bool:
return source == SOURCE or source.startswith(SOURCE + "@")
-def _bind(connection: sqlite3.Connection, entity_id: int, provider: str, external_id: str,
- metadata: dict) -> str:
+def bind(connection: sqlite3.Connection, entity_id: int, provider: str, external_id: str,
+ metadata: dict) -> str:
"""把站上编号登记到她名下,返回判词:`绑定`,或编号已属另一条实体时的 `占用`。
已经在她名下、却不是这条后继登记的,只换资料那几项,`source` 留原样:撤回只删自己登记的。
@@ -373,8 +373,8 @@ def _visit_minnano(contract, pages, entity_id: int, names, state: dict, batch: s
wrote = write_profile(connection, entity_id, parsed, source=batch, source_url=url)
bound = ""
if not refs:
- bound = _bind(connection, entity_id, MINNANO, parsed["actress_id"],
- {"source": SOURCE, "batch": batch})
+ bound = bind(connection, entity_id, MINNANO, parsed["actress_id"],
+ {"source": SOURCE, "batch": batch})
state["profile"] = parsed
reports[MINNANO] = f"命中 {url}"
rows.append({**base, "site": MINNANO, "page": url, "action": WRITE if wrote else MISS,
@@ -421,8 +421,8 @@ def _visit_avwikidb(contract, pages, entity_id: int, names, state: dict, batch:
if not _alive(connection, entity_id, canonical):
reports[AVWIKIDB] = f"{MISS}:账本里这条实体已经变了"
return 0
- verdict = _bind(connection, entity_id, AVWIKIDB, actor_ref,
- _actor_metadata(actor, work, batch, found))
+ verdict = bind(connection, entity_id, AVWIKIDB, actor_ref,
+ _actor_metadata(actor, work, batch, found))
return _record_bind(url, verdict, work, actor, found, batch, base, reports, rows)
@@ -543,8 +543,8 @@ def _visit_javdb(contract, pages, entity_id: int, names, batch: str, base: dict,
if not _alive(connection, entity_id, canonical):
reports[JAVDB] = f"{MISS}:账本里这条实体已经变了"
return
- verdicts = [(card, _bind(connection, entity_id, JAVDB, card["id"],
- {"source": SOURCE, "batch": batch})) for card in cards]
+ verdicts = [(card, bind(connection, entity_id, JAVDB, card["id"],
+ {"source": SOURCE, "batch": batch})) for card in cards]
reports[JAVDB] = ";".join(f"{'命中' if verdict == BIND else TAKEN} {card['id']}"
for card, verdict in verdicts)
for card, verdict in verdicts:
diff --git a/src/peach/web_feeds.py b/src/peach/web_feeds.py
index c68c81526..1813a0d98 100644
--- a/src/peach/web_feeds.py
+++ b/src/peach/web_feeds.py
@@ -6,12 +6,18 @@
"""
from __future__ import annotations
+import json
+import re
import threading
import time
import uuid
from datetime import timedelta
+from urllib.parse import quote
-from . import entities, entry_links, feed_followup, feeds, web_settings
+from . import (
+ entities, entry_links, feed_followup, feeds, javdb, performer_alias_followup as alias,
+ performer_profile_followup, web_settings,
+)
from .jobs import TaskRunConflict
from .http import HttpRequest, public_https_url
@@ -232,9 +238,10 @@ def q_feeds(contract, args) -> dict:
def w_feed_source(contract, body) -> dict:
- """订阅的移除与开关,以及人物页的「订阅新作」。
+ """订阅的移除与开关、人物页的「订阅新作」,以及订阅源页签按名字订。
- 这里不收页面送来的地址:订阅只从人物页进,地址由服务端按这位的 JavDB 身份现拼(ADR-0047)。
+ 这里不收页面送来的地址:地址由服务端按这位的 JavDB 身份现拼,按名字订时页面送的也只是
+ 她在站上的演员 id(ADR-0047、ADR-0083)。
"""
action = str(body.get("action") or "")
if action == "remove":
@@ -253,16 +260,37 @@ def w_feed_source(contract, body) -> dict:
return {"ok": True, "source": source_id, "enabled": enabled}
if action == "follow":
return _follow_entity(contract, body)
+ if action == "follow-name":
+ return _follow_by_name(contract, body)
raise ValueError(f"unknown feed source action: {action}")
-def _follow_entity(contract, body) -> dict:
- """人物页「订阅新作」开关。地址按这位的 JavDB 演员页现拼,不收页面传来的地址。
+def _subscribe(connection, entity_id: int, canonical_name: str) -> list[int]:
+ """这位的每个 JavDB 演员页各订一条,返回源 id。地址按账本里她的编号现拼。"""
+ refs = [dict(ref) for ref in connection.execute(
+ "SELECT provider,external_kind,external_id FROM entity_external_ref"
+ " WHERE entity_id=?", (int(entity_id),))]
+ pages = entry_links.javdb_actor_pages(canonical_name, refs)
+ if not pages:
+ raise ValueError("这位在 JavDB 上没有演员页编号")
+ return feeds.follow_entity(connection, entity_id, pages)
+
- 打开后当场在后台拉这几条:人物页上点开关的人要的是马上看到她有哪些新作,
- 而不是等下一轮到期扫描。已有一轮在跑时就交给那一轮之后的到期扫描——
- 新源 `next_fetch_at` 为空,下一轮一定带上它。
+def _fetch_now(contract, ids: list[int]) -> None:
+ """新订的当场在后台拉:订的人要的是马上看到她有哪些新作,不是等下一轮到期扫描。
+
+ 已有一轮在跑时就交给那一轮之后的到期扫描——新源 `next_fetch_at` 为空,下一轮一定带上它。
"""
+ contract.cache_bust()
+ if ids:
+ try:
+ w_feed_check(contract, {"sources": ids, "background": True})
+ except TaskRunConflict:
+ pass
+
+
+def _follow_entity(contract, body) -> dict:
+ """人物页「订阅新作」开关。地址按这位的 JavDB 演员页现拼,不收页面传来的地址。"""
entity_id, enabled = body.get("entity_id"), body.get("enabled")
if not isinstance(entity_id, int) or not isinstance(enabled, bool):
raise ValueError("entity_id must be an integer and enabled must be a boolean")
@@ -276,22 +304,131 @@ def _follow_entity(contract, body) -> dict:
feeds.unfollow_entity(connection, entity_id)
ids: list[int] = []
else:
- refs = [dict(ref) for ref in connection.execute(
- "SELECT provider,external_kind,external_id FROM entity_external_ref"
- " WHERE entity_id=?", (entity_id,))]
- pages = entry_links.javdb_actor_pages(row["canonical_name"], refs)
- if not pages:
- raise ValueError("这位在 JavDB 上没有演员页编号")
- ids = feeds.follow_entity(connection, entity_id, pages)
- contract.cache_bust()
- if ids:
- try:
- w_feed_check(contract, {"sources": ids, "background": True})
- except TaskRunConflict:
- pass
+ ids = _subscribe(connection, entity_id, row["canonical_name"])
+ _fetch_now(contract, ids)
return {"ok": True, "entity_id": entity_id, "following": enabled, "sources": ids}
+#: 订阅源页签按名字订的那条路写下的来源:新建的实体与绑上的演员 id 都记这一个,
+#: 回溯「这位是谁登记的」时一眼看得出是用户当场点选的,不是自动后继猜的。
+FOLLOW_SOURCE = "user:feed-follow"
+
+#: JavDB 演员 id 的写法。页面送来的 id 只认这一种,拼出的地址才一定还在演员页那一档。
+ACTOR_ID = re.compile(r"^[A-Za-z0-9]{1,16}$")
+
+#: 搜索页的超时。它比演员页小,体积上限沿用演员页那一档。
+LOOKUP_TIMEOUT = 20.0
+
+
+def q_feed_lookup(contract, args) -> dict:
+ """按女优名到 JavDB 搜演员卡,列出候选;只查不写(ADR-0083)。
+
+ 每张卡带站内 id、标题一栏的全部写法与记录类型,再对一遍账本:这个 id 已经在谁名下
+ (`held_by`),卡上哪个写法是账本里某位的正名或别名(`matched`)。名字对得上、又只有
+ 一个人的那几张先勾上(`suggested`);同名不止一位时一张都不替用户挑。
+ """
+ name = entities.canonicalize_entity_name("performer", str(args.get("q") or ""))
+ if not name:
+ raise ValueError("要先给一个女优名")
+ url = javdb.SEARCH.format(quote(name))
+ try:
+ response = _transport(contract)(HttpRequest("GET", url, {"Accept": "text/html"}),
+ LOOKUP_TIMEOUT, FETCH_MAX_BYTES)
+ except Exception as error: # noqa: BLE001 - 冷却、限流还是断网,原因原样交给页面
+ raise ValueError(f"JavDB 没有搜成:{error}") from error
+ if response.status != 200:
+ raise ValueError(f"JavDB 回了 HTTP {response.status}")
+ html = response.body.decode("utf-8", "replace")
+ if javdb.LOGIN.search(html):
+ raise ValueError("JavDB 回的是登入页,这一趟搜不了;稍后再试")
+ cards = javdb.search_cards(html)
+ wanted = alias.match_key(name)
+ with contract.database.read_connection() as connection:
+ candidates = [_describe_card(connection, card) for card in cards]
+ # 账本里按这个名字认得出谁:登记时没人持有所勾的卡就挂到她名下(`_follow_by_name`),
+ # 页面提前把这句话说出来,免得点了才知道挂给了谁。
+ known = entities.resolve_entity(connection, "performer", name)
+ mine = [card for card in cards
+ if any(alias.match_key(written) == wanted for written in card["names"])]
+ suggested = [card["id"] for card in mine] if javdb.one_person(mine) else []
+ return {"ok": True, "q": name, "url": url, "candidates": candidates, "suggested": suggested,
+ "known": {"id": int(known["id"]), "name": str(known["canonical_name"])} if known else None}
+
+
+def _describe_card(connection, card: dict) -> dict:
+ held = connection.execute(
+ "SELECT e.id,e.canonical_name FROM entity_external_ref r JOIN entity e ON e.id=r.entity_id"
+ " WHERE r.provider='javdb' AND r.external_kind='performer' AND r.external_id=?",
+ (card["id"],)).fetchone()
+ matched: list[dict] = []
+ for written in card["names"]:
+ key = entities.normalize_entity_name(written)
+ if not key:
+ continue
+ for row in connection.execute(
+ "SELECT id,canonical_name FROM entity WHERE kind='performer' AND normalized_name=?"
+ " UNION SELECT e.id,e.canonical_name FROM entity_alias a"
+ " JOIN entity e ON e.id=a.entity_id"
+ " WHERE e.kind='performer' AND a.normalized_alias=? ORDER BY 1", (key, key)):
+ if all(int(row[0]) != found["id"] for found in matched):
+ matched.append({"id": int(row[0]), "name": str(row[1])})
+ return {"id": card["id"], "names": card["names"], "record": card["record"],
+ "url": f"{javdb.BASE}actors/{card['id']}",
+ "held_by": {"id": int(held[0]), "name": str(held[1])} if held else None,
+ "matched": matched}
+
+
+def _follow_by_name(contract, body) -> dict:
+ """订阅源页签「添加 JAV 订阅」:勾选的演员卡登记到这位名下,再订上她的演员页(ADR-0083)。
+
+ 这位是谁按这个顺序定:卡上的 id 已经在账本里谁名下就是谁;都没主时按名字认账本里
+ 的正名或唯一别名;还认不出就新建一位。几张卡分属不同的人时拒绝,让用户先去合并。
+ 新建的实体与绑上的 id 都记 `FOLLOW_SOURCE`;卡上的其他写法不写进别名,那是资料后继的事。
+ """
+ name = entities.canonicalize_entity_name("performer", str(body.get("name") or ""))
+ if not name:
+ raise ValueError("女优名不能为空")
+ raw = body.get("ids")
+ ids = [value for value in (raw if isinstance(raw, list) else [])
+ if isinstance(value, str) and ACTOR_ID.match(value)]
+ if not ids:
+ raise ValueError("要先勾选至少一张演员卡")
+ with contract.database.write_transaction() as connection:
+ holders: dict[int, str] = {}
+ for actor_id in ids:
+ held = connection.execute(
+ "SELECT e.id,e.canonical_name FROM entity_external_ref r"
+ " JOIN entity e ON e.id=r.entity_id WHERE r.provider='javdb'"
+ " AND r.external_kind='performer' AND r.external_id=?", (actor_id,)).fetchone()
+ if held is not None:
+ holders[int(held[0])] = str(held[1])
+ if len(holders) > 1:
+ raise ValueError("这几张卡分属账本里不同的人:" + "、".join(holders.values()))
+ created = False
+ if holders:
+ [(entity_id, canonical)] = holders.items()
+ else:
+ found = entities.resolve_entity(connection, "performer", name)
+ if found is not None:
+ entity_id, canonical = int(found["id"]), str(found["canonical_name"])
+ else:
+ stamp = feeds.stamp()
+ entity_id = int(connection.execute(
+ "INSERT INTO entity(kind,canonical_name,normalized_name,metadata_json,"
+ "created_at,updated_at) VALUES('performer',?,?,?,?,?)",
+ (name, entities.normalize_entity_name(name),
+ json.dumps({"source": FOLLOW_SOURCE}, ensure_ascii=False), stamp, stamp),
+ ).lastrowid)
+ canonical, created = name, True
+ for actor_id in ids:
+ performer_profile_followup.bind(connection, entity_id, "javdb", actor_id,
+ {"source": FOLLOW_SOURCE})
+ sources = _subscribe(connection, entity_id, canonical)
+ _fetch_now(contract, sources)
+ return {"ok": True, "entity_id": entity_id, "entity_name": canonical, "created": created,
+ "sources": sources}
+
+
#: 列表一次给多少条。首页那一块只放一行,人物页给一屏。
DISCOVERY_LIMIT = 24
diff --git a/src/peach/web_router.py b/src/peach/web_router.py
index 1b29365a3..8f529a0bb 100644
--- a/src/peach/web_router.py
+++ b/src/peach/web_router.py
@@ -49,6 +49,7 @@ from .web_entity import (
from .web_feeds import (
q_feed_check,
q_feed_discoveries,
+ q_feed_lookup,
q_feeds,
w_feed_check,
w_feed_discovery,
@@ -314,6 +315,7 @@ GET_HANDLERS = {
"/api/feeds": q_feeds,
"/api/feeds/check": q_feed_check,
"/api/feeds/discoveries": q_feed_discoveries,
+ "/api/feeds/lookup": q_feed_lookup,
"/api/follow": q_follow,
"/api/follow/credentials": q_follow_credentials,
"/api/follow/tags": q_follow_tags,
diff --git a/tests/test_feeds_web.py b/tests/test_feeds_web.py
index c6a0372a3..295ec01dd 100644
--- a/tests/test_feeds_web.py
+++ b/tests/test_feeds_web.py
@@ -2,6 +2,7 @@
from __future__ import annotations
import io
+import json
import sys
import tempfile
import time
@@ -601,5 +602,155 @@ class PerformerFeedSwitchTest(FeedWebFixture):
self.assertEqual(self._sources(), [])
+#: JavDB 演员搜索页:同一位的有碼与無碼两张卡,加一位同名的别人。写法照
+#: `test_directory_link_harvest.JAVDB_SEARCH_PAGE`,多了無碼那枚 `info` 标记。
+SEARCH_PAGE = """<div id="actors" class="actors">
+ <div class="box actor-box"><a href="/actors/Kn01" title="瀬戸環奈, 瀨戶環奈, 濑户环奈">
+ <figure class="image"><img class="avatar" src="https://c0.jdbstatic.com/avatars/kn/Kn01.jpg" />
+ </figure><strong>瀬戸環奈</strong></a></div>
+ <div class="box actor-box"><a href="/actors/Kn02" title="瀬戸環奈">
+ <figure class="image"><span class="info">無碼</span></figure><strong>瀬戸環奈</strong></a></div>
+ <div class="box actor-box"><a href="/actors/Zz99" title="別人さん">
+ <strong>別人さん</strong></a></div>
+</div>"""
+
+#: 站上真有两位同名:有碼那种记录出现了两张。
+TWINS_PAGE = """<div id="actors" class="actors">
+ <div class="box actor-box"><a href="/actors/Tw01" title="瀬戸環奈"><strong>瀬戸環奈</strong></a></div>
+ <div class="box actor-box"><a href="/actors/Tw02" title="瀬戸環奈"><strong>瀬戸環奈</strong></a></div>
+</div>"""
+
+LOGIN_PAGE = """<html><head><title> 登入 | JavDB 成人影片數據庫 </title></head>
+<body><form action="/user_sessions"></form></body></html>"""
+
+
+class FeedFollowByNameTest(PerformerFeedSwitchTest):
+ """订阅源页签「添加 JAV 订阅」:按名字搜演员卡,勾选后登记到她名下并订上(ADR-0083)。"""
+
+ def setUp(self):
+ super().setUp()
+ self.search = "https://javdb.com/search?f=actor&q=%E7%80%AC%E6%88%B8%E7%92%B0%E5%A5%88"
+ self._serve(self.search, SEARCH_PAGE)
+ for actor_id in ("Kn01", "Kn02", "Tw01", "Tw02"):
+ self._serve(f"https://javdb.com/actors/{actor_id}", JAVDB_PAGE)
+
+ def _serve(self, url, html):
+ self.transport.responses[url] = HttpResponse(
+ 200, {"Content-Type": "text/html"}, html.encode("utf-8"), url)
+
+ def _lookup(self, name="瀬戸環奈"):
+ return dispatch_api_get(self.contract, "/api/feeds/lookup", {"q": name})
+
+ def _follow(self, ids, name="瀬戸環奈"):
+ return dispatch_api_post(self.contract, "/api/feeds/source",
+ {"action": "follow-name", "name": name, "ids": ids})
+
+ def _entity(self, entity_id):
+ with self.contract.database.read_connection() as connection:
+ row = connection.execute(
+ "SELECT canonical_name,metadata_json FROM entity WHERE id=?", (entity_id,)).fetchone()
+ refs = connection.execute(
+ "SELECT external_id,metadata_json FROM entity_external_ref WHERE entity_id=?"
+ " AND provider='javdb' ORDER BY external_id", (entity_id,)).fetchall()
+ return row, refs
+
+ def test_lookup_lists_every_card_and_only_pre_picks_the_one_person_matching_the_name(self):
+ result = self._lookup()
+ self.assertEqual(result["url"], self.search)
+ self.assertEqual([card["id"] for card in result["candidates"]], ["Kn01", "Kn02", "Zz99"])
+ first = result["candidates"][0]
+ self.assertEqual(first["names"], ["瀬戸環奈", "瀨戶環奈", "濑户环奈"])
+ self.assertEqual(first["url"], "https://javdb.com/actors/Kn01")
+ self.assertEqual(result["candidates"][1]["record"], "無碼")
+ # 有碼与無碼各一张,是同一个人;别人那张不在预勾里。
+ self.assertEqual(result["suggested"], ["Kn01", "Kn02"])
+ # 账本里还没有她:既没人持有这些 id,名字也对不上谁。
+ self.assertIsNone(first["held_by"])
+ self.assertEqual(first["matched"], [])
+ self.assertIsNone(result["known"])
+ self.assertEqual(self.transport.requests[-1].url, self.search)
+
+ def test_lookup_tells_who_already_holds_the_card_and_whose_name_it_matches(self):
+ held = self._performer("瀬戸環奈", ["Kn01"])
+ with self.contract.database.write_transaction() as connection:
+ connection.execute(
+ "INSERT INTO entity_alias(entity_id,alias,normalized_alias,source)"
+ " VALUES(?,'濑户环奈',peach_normalize('濑户环奈'),'test')", (held,))
+ result = self._lookup()
+ first, second = result["candidates"][:2]
+ self.assertEqual(result["known"], {"id": held, "name": "瀬戸環奈"})
+ self.assertEqual(first["held_by"], {"id": held, "name": "瀬戸環奈"})
+ self.assertIsNone(second["held_by"])
+ # 无码那张卡上只有正名,也对得上她;别名撞上的写法只报一次。
+ self.assertEqual(first["matched"], [{"id": held, "name": "瀬戸環奈"}])
+ self.assertEqual(second["matched"], [{"id": held, "name": "瀬戸環奈"}])
+
+ def test_lookup_does_not_pre_pick_when_the_site_has_two_people_with_that_name(self):
+ self._serve(self.search, TWINS_PAGE)
+ result = self._lookup()
+ self.assertEqual([card["id"] for card in result["candidates"]], ["Tw01", "Tw02"])
+ self.assertEqual(result["suggested"], [])
+
+ def test_lookup_refuses_a_login_page_and_an_empty_name(self):
+ self._serve(self.search, LOGIN_PAGE)
+ with self.assertRaisesRegex(ValueError, "登入页"):
+ self._lookup()
+ with self.assertRaises(ValueError):
+ self._lookup(" ")
+
+ def test_following_an_unknown_name_creates_her_binds_the_cards_and_subscribes_now(self):
+ result = self._follow(["Kn01", "Kn02"])
+ self.assertTrue(result["created"])
+ self.assertEqual(result["entity_name"], "瀬戸環奈")
+ row, refs = self._entity(result["entity_id"])
+ self.assertEqual(row["canonical_name"], "瀬戸環奈")
+ self.assertEqual(json.loads(row["metadata_json"])["source"], web_feeds.FOLLOW_SOURCE)
+ self.assertEqual([ref["external_id"] for ref in refs], ["Kn01", "Kn02"])
+ self.assertEqual(json.loads(refs[0]["metadata_json"])["source"], web_feeds.FOLLOW_SOURCE)
+ # 两个演员页各一条源,全部启用、挂在她名下,当场拉了一趟。
+ self.assertEqual(sorted(source["url"] for source in self._sources()),
+ ["https://javdb.com/actors/Kn01", "https://javdb.com/actors/Kn02"])
+ self.assertTrue(all(source["entity_id"] == result["entity_id"] for source in self._sources()))
+ self.assertEqual(self._settled()["added"], 2)
+ # 新建的是零作品实体:她的资料页打得开,但作品索引里还没有她。
+ profile = dispatch_api_get(self.contract, "/api/entity",
+ {"kind": "performer", "name": "瀬戸環奈"})
+ self.assertEqual(profile["feed"], {"following": True})
+
+ def test_following_a_known_name_binds_to_her_instead_of_making_a_second_person(self):
+ known = self._performer("瀬戸環奈", [])
+ result = self._follow(["Kn01"])
+ self.assertFalse(result["created"])
+ self.assertEqual(result["entity_id"], known)
+ _row, refs = self._entity(known)
+ self.assertEqual([ref["external_id"] for ref in refs], ["Kn01"])
+ self._settled()
+
+ def test_a_card_already_held_wins_over_the_typed_name(self):
+ holder = self._performer("瀬戸かんな", ["Kn01"])
+ result = self._follow(["Kn01", "Kn02"], name="瀬戸環奈")
+ self.assertEqual((result["entity_id"], result["entity_name"], result["created"]),
+ (holder, "瀬戸かんな", False))
+ _row, refs = self._entity(holder)
+ self.assertEqual([ref["external_id"] for ref in refs], ["Kn01", "Kn02"])
+ self._settled()
+
+ def test_cards_held_by_two_different_people_are_refused_by_name(self):
+ self._performer("甲", ["Kn01"])
+ self._performer("乙", ["Kn02"])
+ with self.assertRaisesRegex(ValueError, "甲、乙"):
+ self._follow(["Kn01", "Kn02"])
+ self.assertEqual(self._sources(), [])
+
+ def test_following_needs_a_name_and_well_formed_card_ids(self):
+ with self.assertRaises(ValueError):
+ self._follow(["Kn01"], name="")
+ with self.assertRaises(ValueError):
+ self._follow([])
+ with self.assertRaises(ValueError):
+ self._follow(["../Kn01"])
+ self.assertEqual(self._sources(), [])
+
+
if __name__ == "__main__": # pragma: no cover
unittest.main()
diff --git a/tests/test_rm_web.py b/tests/test_rm_web.py
index ceb8d77eb..34137a427 100644
--- a/tests/test_rm_web.py
+++ b/tests/test_rm_web.py
@@ -950,7 +950,7 @@ class WebDataTests(unittest.TestCase):
"/api/links/prune", "/api/resource-sync/apply",
"/api/follow/tags", "/api/follow/authors",
"/api/taste", "/api/settings", "/api/links", "/api/organize",
- "/api/feeds", "/api/feeds/check", "/api/feeds/discoveries",
+ "/api/feeds", "/api/feeds/check", "/api/feeds/discoveries", "/api/feeds/lookup",
})
self.assertEqual(set(rm_web.POST_HANDLERS), {
"/api/library-processing", "/api/thumbnail-jobs", "/api/media-repair",
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 177516b8e..63ddecbd1 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -12541,14 +12541,14 @@ function ob(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function sb(e) {
+function Mee(e) {
return e && e.__esModule ? e.default : e;
}
-function Mee(e, t) {
+function Nee(e, t) {
let { key: n } = e, r = t.selectionManager, i = Om(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": ug(sb(Xy), "@react-aria/grid").format("select"),
+ "aria-label": ug(Mee(Xy), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -12556,7 +12556,7 @@ function Mee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Nee(e, t, n) {
+function Pee(e, t, n) {
let r = _g(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 } = rb({
@@ -12597,7 +12597,7 @@ function Nee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Pee(e) {
+function Fee(e) {
let { heading: t, "aria-label": n } = e, r = Om();
return {
itemProps: { role: "presentation" },
@@ -12617,7 +12617,7 @@ function Pee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Fee(e, t, n) {
+function Iee(e, t, n) {
let { key: r } = e, i = V_.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 = Am(), f = Am(), p = {
role: "option",
"aria-disabled": a || void 0,
@@ -12670,15 +12670,15 @@ function Fee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Iee() {
+function Lee() {
return window.ResizeObserver !== void 0;
}
-function cb(e) {
+function sb(e) {
let { ref: t, box: n, onResize: r } = e, i = Lh(r);
(0, P.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Iee()) {
+ if (Lee()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -12694,186 +12694,186 @@ function cb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var lb = {};
-lb = { dismiss: "تجاهل" };
+var cb = {};
+cb = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var ub = {};
-ub = { dismiss: "Отхвърляне" };
+var lb = {};
+lb = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var db = {};
-db = { dismiss: "Odstranit" };
+var ub = {};
+ub = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var fb = {};
-fb = { dismiss: "Luk" };
+var db = {};
+db = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var pb = {};
-pb = { dismiss: "Schließen" };
+var fb = {};
+fb = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var mb = {};
-mb = { dismiss: "Απόρριψη" };
+var pb = {};
+pb = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var hb = {};
-hb = { dismiss: "Dismiss" };
+var mb = {};
+mb = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var gb = {};
-gb = { dismiss: "Descartar" };
+var hb = {};
+hb = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var _b = {};
-_b = { dismiss: "Lõpeta" };
+var gb = {};
+gb = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var vb = {};
-vb = { dismiss: "Hylkää" };
+var _b = {};
+_b = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var yb = {};
-yb = { dismiss: "Rejeter" };
+var vb = {};
+vb = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var bb = {};
-bb = { dismiss: "התעלם" };
+var yb = {};
+yb = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var xb = {};
-xb = { dismiss: "Odbaci" };
+var bb = {};
+bb = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var Sb = {};
-Sb = { dismiss: "Elutasítás" };
+var xb = {};
+xb = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var Cb = {};
-Cb = { dismiss: "Ignora" };
+var Sb = {};
+Sb = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var wb = {};
-wb = { dismiss: "閉じる" };
+var Cb = {};
+Cb = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var Tb = {};
-Tb = { dismiss: "무시" };
+var wb = {};
+wb = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var Eb = {};
-Eb = { dismiss: "Atmesti" };
+var Tb = {};
+Tb = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var Db = {};
-Db = { dismiss: "Nerādīt" };
+var Eb = {};
+Eb = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var Ob = {};
-Ob = { dismiss: "Lukk" };
+var Db = {};
+Db = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var kb = {};
-kb = { dismiss: "Negeren" };
+var Ob = {};
+Ob = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var Ab = {};
-Ab = { dismiss: "Zignoruj" };
+var kb = {};
+kb = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var jb = {};
-jb = { dismiss: "Descartar" };
+var Ab = {};
+Ab = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var Mb = {};
-Mb = { dismiss: "Dispensar" };
+var jb = {};
+jb = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var Nb = {};
-Nb = { dismiss: "Revocare" };
+var Mb = {};
+Mb = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var Pb = {};
-Pb = { dismiss: "Пропустить" };
+var Nb = {};
+Nb = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var Fb = {};
-Fb = { dismiss: "Zrušiť" };
+var Pb = {};
+Pb = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var Ib = {};
-Ib = { dismiss: "Opusti" };
+var Fb = {};
+Fb = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var Lb = {};
-Lb = { dismiss: "Odbaci" };
+var Ib = {};
+Ib = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var Rb = {};
-Rb = { dismiss: "Avvisa" };
+var Lb = {};
+Lb = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var zb = {};
-zb = { dismiss: "Kapat" };
+var Rb = {};
+Rb = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var Bb = {};
-Bb = { dismiss: "Скасувати" };
+var zb = {};
+zb = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var Vb = {};
-Vb = { dismiss: "取消" };
+var Bb = {};
+Bb = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var Hb = {};
-Hb = { dismiss: "關閉" };
+var Vb = {};
+Vb = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var Ub = {};
-Ub = {
- "ar-AE": lb,
- "bg-BG": ub,
- "cs-CZ": db,
- "da-DK": fb,
- "de-DE": pb,
- "el-GR": mb,
- "en-US": hb,
- "es-ES": gb,
- "et-EE": _b,
- "fi-FI": vb,
- "fr-FR": yb,
- "he-IL": bb,
- "hr-HR": xb,
- "hu-HU": Sb,
- "it-IT": Cb,
- "ja-JP": wb,
- "ko-KR": Tb,
- "lt-LT": Eb,
- "lv-LV": Db,
- "nb-NO": Ob,
- "nl-NL": kb,
- "pl-PL": Ab,
- "pt-BR": jb,
- "pt-PT": Mb,
- "ro-RO": Nb,
- "ru-RU": Pb,
- "sk-SK": Fb,
- "sl-SI": Ib,
- "sr-SP": Lb,
- "sv-SE": Rb,
- "tr-TR": zb,
- "uk-UA": Bb,
- "zh-CN": Vb,
- "zh-TW": Hb
+var Hb = {};
+Hb = {
+ "ar-AE": cb,
+ "bg-BG": lb,
+ "cs-CZ": ub,
+ "da-DK": db,
+ "de-DE": fb,
+ "el-GR": pb,
+ "en-US": mb,
+ "es-ES": hb,
+ "et-EE": gb,
+ "fi-FI": _b,
+ "fr-FR": vb,
+ "he-IL": yb,
+ "hr-HR": bb,
+ "hu-HU": xb,
+ "it-IT": Sb,
+ "ja-JP": Cb,
+ "ko-KR": wb,
+ "lt-LT": Tb,
+ "lv-LV": Eb,
+ "nb-NO": Db,
+ "nl-NL": Ob,
+ "pl-PL": kb,
+ "pt-BR": Ab,
+ "pt-PT": jb,
+ "ro-RO": Mb,
+ "ru-RU": Nb,
+ "sk-SK": Pb,
+ "sl-SI": Fb,
+ "sr-SP": Ib,
+ "sv-SE": Lb,
+ "tr-TR": Rb,
+ "uk-UA": zb,
+ "zh-CN": Bb,
+ "zh-TW": Vb
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Lee(e) {
+function Ree(e) {
return e && e.__esModule ? e.default : e;
}
-function Wb(e) {
- let { onDismiss: t, ...n } = e, r = zh(n, ug(Lee(Ub), "@react-aria/overlays").format("dismiss")), i = () => {
+function Ub(e) {
+ let { onDismiss: t, ...n } = e, r = zh(n, ug(Ree(Hb), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
return /*#__PURE__*/ P.createElement(I_, null, /*#__PURE__*/ P.createElement("button", {
@@ -12888,22 +12888,22 @@ function Wb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var Gb = [];
-function Kb(e, t) {
+var Wb = [];
+function Gb(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, P.useRef)(void 0);
(0, P.useEffect)(() => {
- if (i && !Gb.includes(t)) return Gb.push(t), () => {
- let e = Gb.indexOf(t);
- e >= 0 && Gb.splice(e, 1);
+ if (i && !Wb.includes(t)) return Wb.push(t), () => {
+ let e = Wb.indexOf(t);
+ e >= 0 && Wb.splice(e, 1);
};
}, [i, t]);
let l = () => {
- Gb[Gb.length - 1] === t && n && n();
+ Wb[Wb.length - 1] === t && n && n();
}, u = (e) => {
- let n = Gb[Gb.length - 1];
+ let n = Wb[Wb.length - 1];
c.current = n, (!s || s(V(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(V(e))) && (Gb[Gb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ (!s || s(V(e))) && (Wb[Wb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
}, { keyboardProps: f } = Ym({ shortcuts: { Escape: () => {
if (!o) {
l();
@@ -12932,20 +12932,20 @@ function Kb(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var qb = typeof document < "u" && window.visualViewport, Jb = 0, Yb;
-function Xb(e = {}) {
+var Kb = typeof document < "u" && window.visualViewport, qb = 0, Jb;
+function Yb(e = {}) {
let { isDisabled: t } = e;
cp(() => {
- if (!t) return Jb++, Jb === 1 && (Yb = bp() && Sp() ? zee() : Ree()), () => {
- Jb--, Jb === 0 && Yb();
+ if (!t) return qb++, qb === 1 && (Jb = bp() && Sp() ? Bee() : zee()), () => {
+ qb--, qb === 0 && Jb();
};
}, [t]);
}
-function Ree() {
+function zee() {
let e = window.innerWidth - document.documentElement.clientWidth;
return Sm(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Gf(document.documentElement, "scrollbar-gutter", "stable") : Gf(document.documentElement, "padding-right", `${e}px`)), Gf(document.documentElement, "overflow", "hidden"));
}
-function zee() {
+function Bee() {
let e = Gf(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = V(e);
t = c_(r) ? r : l_(r, !0), n = !1;
@@ -12963,7 +12963,7 @@ function zee() {
}
}, s = (e) => {
let t = V(e), n = e.relatedTarget;
- n && Fh(n) ? (n.focus({ preventScroll: !0 }), Zb(n, Fh(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && Fh(n) ? (n.focus({ preventScroll: !0 }), Xb(n, Fh(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -12973,7 +12973,7 @@ function zee() {
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && Zb(this, n);
+ }), (!e || !e.preventScroll) && Xb(this, n);
}
});
let l = Sm(Wf(document, "touchstart", r, {
@@ -12991,10 +12991,10 @@ function zee() {
});
};
}
-function Zb(e, t) {
- t || !qb ? Qb(e) : qb.addEventListener("resize", () => Qb(e), { once: !0 });
+function Xb(e, t) {
+ t || !Kb ? Zb(e) : Kb.addEventListener("resize", () => Zb(e), { once: !0 });
}
-function Qb(e) {
+function Zb(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
let e = l_(n);
@@ -13002,7 +13002,7 @@ function Qb(e) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- qb && (n = Math.min(n, qb.offsetTop + qb.height));
+ Kb && (n = Math.min(n, Kb.offsetTop + Kb.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)),
@@ -13015,13 +13015,13 @@ function Qb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function Bee(e, t, n) {
- let { overlayProps: r, underlayProps: i } = Kb({
+function Vee(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = Gb({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return Xb({ isDisabled: !t.isOpen }), iy(), (0, P.useEffect)(() => {
+ return Yb({ isDisabled: !t.isOpen }), iy(), (0, P.useEffect)(() => {
if (t.isOpen && n.current) return B_([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
modalProps: H(r),
@@ -13030,32 +13030,32 @@ function Bee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var $b = {
+var Qb = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, ex = {
+}, $b = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, Vee = {
+}, Hee = {
top: "left",
left: "top"
-}, tx = {
+}, ex = {
top: "height",
left: "width"
-}, nx = {
+}, tx = {
width: "totalWidth",
height: "totalHeight"
-}, rx = {}, Hee = () => typeof document < "u" ? window.visualViewport : null;
-function ix(e, t) {
+}, nx = {}, Uee = () => typeof document < "u" ? window.visualViewport : null;
+function rx(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} = ux(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ } else ({width: n, height: r, top: o, left: s} = lx(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
return Sp() && (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,
@@ -13066,7 +13066,7 @@ function ix(e, t) {
left: s
};
}
-function Uee(e) {
+function Wee(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -13074,11 +13074,11 @@ function Uee(e) {
height: e.scrollHeight
};
}
-function ax(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[tx[e]], l = o[e] + r.scroll[$b[e]] + a, u = o[e] + r.scroll[$b[e]] + c - a, d = t - s + r.scroll[$b[e]] + o[e] - r[$b[e]], f = t - s + n + r.scroll[$b[e]] + o[e] - r[$b[e]];
+function ix(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[ex[e]], l = o[e] + r.scroll[Qb[e]] + a, u = o[e] + r.scroll[Qb[e]] + c - a, d = t - s + r.scroll[Qb[e]] + o[e] - r[Qb[e]], f = t - s + n + r.scroll[Qb[e]] + o[e] - r[Qb[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function Wee(e) {
+function Gee(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -13087,55 +13087,55 @@ function Wee(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function ox(e) {
- if (rx[e]) return rx[e];
- let [t, n] = e.split(" "), r = $b[t] || "right", i = Vee[r];
- $b[n] || (n = "center");
- let a = tx[r], o = tx[i];
- return rx[e] = {
+function ax(e) {
+ if (nx[e]) return nx[e];
+ let [t, n] = e.split(" "), r = Qb[t] || "right", i = Hee[r];
+ Qb[n] || (n = "center");
+ let a = ex[r], o = ex[i];
+ return nx[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, rx[e];
+ }, nx[e];
}
-function sx(e, t, n, r, i, a, o, s, c, l, u) {
+function ox(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] = N_(_[m], v, y), d === p) {
- let t = s ? u[h] : u[nx[h]];
- _[ex[p]] = Math.floor(t - e[p] + i);
+ let t = s ? u[h] : u[tx[h]];
+ _[$b[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function Gee(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[nx.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function Kee(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[tx.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 cx(e, t, n, r, i, a, o, s) {
+function sx(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[ex[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[ex[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[$b[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[$b[l]] - i);
}
-function Kee(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = ox(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = sx(t, s, n, v, u, d, l, f, m, h, c), T = u, E = cx(s, l, t, i, a + u, v, c, g);
+function qee(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = ax(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = ox(t, s, n, v, u, d, l, f, m, h, c), T = u, E = sx(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = ox(`${ex[S]} ${C}`), r = sx(t, s, n, e, u, d, l, f, m, h, c);
- cx(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = ax(`${$b[S]} ${C}`), r = ox(t, s, n, e, u, d, l, f, m, h, c);
+ sx(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 = ax(b, w[b], n[x], s, c, a, l);
+ let O = ix(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = Gee(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = sx(t, s, n, v, T, d, l, f, m, h, c), O = ax(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[$b[b]], M = j + .5 * t[x], N = m / 2 + h, P = $b[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), F = n[x] - P - m / 2 - h;
- A[b] = N_(N_(M, t[b] + m / 2 - (w[b] + i[$b[b]]), t[b] + t[x] - m / 2 - (w[b] + i[$b[b]])), N, F), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = Kee(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = ox(t, s, n, v, T, d, l, f, m, h, c), O = ix(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[Qb[b]], M = j + .5 * t[x], N = m / 2 + h, P = Qb[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), F = n[x] - P - m / 2 - h;
+ A[b] = N_(N_(M, t[b] + m / 2 - (w[b] + i[Qb[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Qb[b]])), N, F), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let I = S === "left" || S === "top" ? n[y] : 0, ee = {
x: S === "top" || S === "bottom" ? j : I,
y: S === "left" || S === "right" ? j : I
@@ -13149,17 +13149,17 @@ function Kee(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ee
};
}
-function qee(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 = Hee(), h = r instanceof HTMLElement ? Jee(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? ux(n, !1, p) : dx(n, h, !1, p);
+function Jee(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 = Uee(), h = r instanceof HTMLElement ? Yee(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? lx(n, !1, p) : ux(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 = ux(r, !0), x = Wee(r);
+ let b = lx(r, !0), x = Gee(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Uee(i), C = ix(s, m), w = ix(h, m), T;
+ let S = Wee(i), C = rx(s, m), w = rx(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = lx(h, !1);
+ let e = cx(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -13171,11 +13171,11 @@ function qee(e) {
left: 0,
width: 0,
height: 0
- } : dx(s, h, !1);
+ } : ux(s, h, !1);
let E = Jf(s, h);
- return Kee(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ return qee(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function lx(e, t) {
+function cx(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,
@@ -13184,8 +13184,8 @@ function lx(e, t) {
height: a
};
}
-function ux(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || lx(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function lx(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || cx(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -13193,29 +13193,29 @@ function ux(e, t, n) {
height: o
};
}
-function dx(e, t, n, r) {
+function ux(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || lx(e, n);
+ if (i.position === "fixed") a = r || cx(e, n);
else {
- a = ux(e, n, r);
- let i = ux(t, n), o = window.getComputedStyle(t);
+ a = lx(e, n, r);
+ let i = lx(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 Jee(e) {
+function Yee(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !fx(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !fx(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !dx(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !dx(t);) t = t.parentElement;
return t || document.documentElement;
}
-function fx(e) {
+function dx(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/useOverlayPosition.mjs
-var px = typeof document < "u" ? window.visualViewport : null;
-function Yee(e) {
+var fx = typeof document < "u" ? window.visualViewport : null;
+function Xee(e) {
let { direction: t } = Xh(), { 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, P.useState)(null), x = [
p,
s,
@@ -13233,12 +13233,12 @@ function Yee(e) {
g,
_,
n
- ], S = (0, P.useRef)(px?.scale);
+ ], S = (0, P.useRef)(fx?.scale);
(0, P.useEffect)(() => {
- m && (S.current = px?.scale);
+ m && (S.current = fx?.scale);
}, [m]);
let C = (0, P.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || px?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || fx?.scale !== S.current) return;
let e = null;
if (o.current && Zf(o.current)) {
let t = Yf()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
@@ -13249,8 +13249,8 @@ function Yee(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 = qee({
- placement: Zee(s, t),
+ let y = Jee({
+ placement: Qee(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -13260,7 +13260,7 @@ function Yee(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? lx(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? cx(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
@@ -13273,10 +13273,10 @@ function Yee(e) {
}
b(y);
}, x);
- cp(C, x), Xee(C), cb({
+ cp(C, x), Zee(C), sb({
ref: i,
onResize: C
- }), cb({
+ }), sb({
ref: r,
onResize: C
});
@@ -13289,10 +13289,10 @@ function Yee(e) {
}, n = () => {
w.current && t();
};
- px?.addEventListener("resize", t), px?.addEventListener("scroll", n);
+ fx?.addEventListener("resize", t), fx?.addEventListener("scroll", n);
let r = Wf(Xf(window), "scroll", n);
return () => {
- px?.removeEventListener("resize", t), px?.removeEventListener("scroll", n), r();
+ fx?.removeEventListener("resize", t), fx?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, P.useCallback)(() => {
@@ -13324,25 +13324,25 @@ function Yee(e) {
updatePosition: C
};
}
-function Xee(e) {
+function Zee(e) {
cp(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function Zee(e, t) {
+function Qee(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/overlays/usePopover.mjs
-function Qee(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 } = Kb({
+function $ee(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 } = Gb({
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 } = Yee({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Xee({
...c,
targetRef: n,
overlayRef: r,
@@ -13350,7 +13350,7 @@ function Qee(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)
});
- Xb({ isDisabled: a || !t.isOpen }), (0, P.useEffect)(() => {
+ Yb({ isDisabled: a || !t.isOpen }), (0, P.useEffect)(() => {
if (t.isOpen && r.current) return a ? Oee(i?.current ?? r.current) : B_([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
@@ -13369,10 +13369,10 @@ function Qee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var mx = /* @__PURE__ */ new WeakMap();
+var px = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function $ee(e, t, n) {
+function ete(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: _ } = Ng({
@@ -13395,7 +13395,7 @@ function $ee(e, t, n) {
}
}), { focusableProps: b } = eh(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = H(g, b), S = _g(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 } = mx.get(t);
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = px.get(t);
h_(n, t.defaultSelectedValue, t.setSelectedValue), g_({ validationBehavior: O }, t, n);
let k = __();
return {
@@ -13429,7 +13429,7 @@ function $ee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function ete(e, t) {
+function tte(e, t) {
let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Xh(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = k_({
...e,
labelElementType: "span",
@@ -13458,7 +13458,7 @@ function ete(e, t) {
},
allowRepeats: !0
}), x = Om(n);
- return mx.set(t, {
+ return px.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -13487,8 +13487,8 @@ function ete(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var hx = /* @__PURE__ */ new WeakMap();
-function tte(e, t, n) {
+var mx = /* @__PURE__ */ new WeakMap();
+function nte(e, t, n) {
let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = Zv({
usage: "search",
sensitivity: "base"
@@ -13531,7 +13531,7 @@ function tte(e, t, n) {
});
t.selectionManager.selectionMode === "multiple" && (m = {});
let S = _g(e, { labelable: !0 }), C = H(m, d, y), w = Om();
- return hx.set(t, {
+ return mx.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -13592,8 +13592,8 @@ function tte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function nte(e, t, n) {
- let r = hx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = F_({ style: {
+function rte(e, t, n) {
+ let r = mx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = F_({ style: {
position: "fixed",
top: 0,
left: 0
@@ -13628,8 +13628,8 @@ function nte(e, t, n) {
}
};
}
-function rte(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, P.useRef)(null), c = (0, P.useRef)(null), { containerProps: l, selectProps: u } = nte({
+function ite(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, P.useRef)(null), c = (0, P.useRef)(null), { containerProps: l, selectProps: u } = rte({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -13653,7 +13653,7 @@ function rte(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = hx.get(t) || {};
+ let { validationBehavior: e } = mx.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -13684,7 +13684,7 @@ function rte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function ite(e, t, n) {
+function ate(e, t, n) {
let { labelProps: r, inputProps: i, isSelected: a, ...o } = E_(e, t, n);
return {
labelProps: r,
@@ -13699,10 +13699,10 @@ function ite(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var gx = class {
+var hx = 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 ate(e.layout) : new K_(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new ote(e.layout) : new K_(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -13868,7 +13868,7 @@ var gx = class {
}
return null;
}
-}, ate = class {
+}, ote = class {
constructor(e) {
this.layout = e;
}
@@ -13881,16 +13881,16 @@ var gx = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, _x = /* @__PURE__ */ new WeakMap();
+}, gx = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function ote(e, t, n) {
+function ste(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 = Zv({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Xh(), _ = t.selectionManager.disabledBehavior, v = (0, P.useMemo)(() => a || new gx({
+ }), { direction: g } = Xh(), _ = t.selectionManager.disabledBehavior, v = (0, P.useMemo)(() => a || new hx({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -13916,7 +13916,7 @@ function ote(e, t, n) {
disallowTypeAhead: i,
escapeKeyBehavior: d
}), b = Om(e.id);
- _x.set(t, {
+ gx.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -13946,27 +13946,27 @@ function ote(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var vx = /* @__PURE__ */ new WeakMap();
-function yx(e) {
+var _x = /* @__PURE__ */ new WeakMap();
+function vx(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function ste(e, t) {
- let n = vx.get(e);
+function cte(e, t) {
+ let n = _x.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${yx(t)}`;
+ return `${n}-${vx(t)}`;
}
-function bx(e, t, n) {
- let r = vx.get(e);
+function yx(e, t, n) {
+ let r = _x.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${yx(t)}-${yx(n)}`;
+ return `${r}-${vx(t)}-${vx(n)}`;
}
-function xx(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => bx(e, t, n)).join(" ");
+function bx(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => yx(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var Sx = {};
-Sx = {
+var xx = {};
+xx = {
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: "طي",
@@ -13981,8 +13981,8 @@ Sx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var Cx = {};
-Cx = {
+var Sx = {};
+Sx = {
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: "Свиване",
@@ -13997,8 +13997,8 @@ Cx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var wx = {};
-wx = {
+var Cx = {};
+Cx = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -14013,8 +14013,8 @@ wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var Tx = {};
-Tx = {
+var wx = {};
+wx = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -14029,8 +14029,8 @@ Tx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var Ex = {};
-Ex = {
+var Tx = {};
+Tx = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -14045,8 +14045,8 @@ Ex = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var Dx = {};
-Dx = {
+var Ex = {};
+Ex = {
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: "Σύμπτυξη",
@@ -14061,8 +14061,8 @@ Dx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var Ox = {};
-Ox = {
+var Dx = {};
+Dx = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -14077,8 +14077,8 @@ Ox = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var kx = {};
-kx = {
+var Ox = {};
+Ox = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -14093,8 +14093,8 @@ kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var Ax = {};
-Ax = {
+var kx = {};
+kx = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -14109,8 +14109,8 @@ Ax = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var jx = {};
-jx = {
+var Ax = {};
+Ax = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -14125,8 +14125,8 @@ jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var Mx = {};
-Mx = {
+var jx = {};
+jx = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -14141,8 +14141,8 @@ Mx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var Nx = {};
-Nx = {
+var Mx = {};
+Mx = {
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: "כווץ",
@@ -14157,8 +14157,8 @@ Nx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var Px = {};
-Px = {
+var Nx = {};
+Nx = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -14173,8 +14173,8 @@ Px = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var Fx = {};
-Fx = {
+var Px = {};
+Px = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -14189,8 +14189,8 @@ Fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var Ix = {};
-Ix = {
+var Fx = {};
+Fx = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -14205,8 +14205,8 @@ Ix = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var Lx = {};
-Lx = {
+var Ix = {};
+Ix = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -14221,8 +14221,8 @@ Lx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var Rx = {};
-Rx = {
+var Lx = {};
+Lx = {
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: "접기",
@@ -14237,8 +14237,8 @@ Rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var zx = {};
-zx = {
+var Rx = {};
+Rx = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -14253,8 +14253,8 @@ zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var Bx = {};
-Bx = {
+var zx = {};
+zx = {
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",
@@ -14269,8 +14269,8 @@ Bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var Vx = {};
-Vx = {
+var Bx = {};
+Bx = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -14285,8 +14285,8 @@ Vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var Hx = {};
-Hx = {
+var Vx = {};
+Vx = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -14301,8 +14301,8 @@ Hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var Ux = {};
-Ux = {
+var Hx = {};
+Hx = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -14317,8 +14317,8 @@ Ux = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var Wx = {};
-Wx = {
+var Ux = {};
+Ux = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -14333,8 +14333,8 @@ Wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var Gx = {};
-Gx = {
+var Wx = {};
+Wx = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -14349,8 +14349,8 @@ Gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var Kx = {};
-Kx = {
+var Gx = {};
+Gx = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -14365,8 +14365,8 @@ Kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var qx = {};
-qx = {
+var Kx = {};
+Kx = {
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: "Свернуть",
@@ -14381,8 +14381,8 @@ qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var Jx = {};
-Jx = {
+var qx = {};
+qx = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -14397,8 +14397,8 @@ Jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var Yx = {};
-Yx = {
+var Jx = {};
+Jx = {
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",
@@ -14413,8 +14413,8 @@ Yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var Xx = {};
-Xx = {
+var Yx = {};
+Yx = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -14429,8 +14429,8 @@ Xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var Zx = {};
-Zx = {
+var Xx = {};
+Xx = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -14445,8 +14445,8 @@ Zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var Qx = {};
-Qx = {
+var Zx = {};
+Zx = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -14461,8 +14461,8 @@ Qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var $x = {};
-$x = {
+var Qx = {};
+Qx = {
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: "Згорнути",
@@ -14477,8 +14477,8 @@ $x = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var eS = {};
-eS = {
+var $x = {};
+$x = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -14493,8 +14493,8 @@ eS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var tS = {};
-tS = {
+var eS = {};
+eS = {
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: "收合",
@@ -14509,46 +14509,46 @@ tS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var nS = {};
-nS = {
- "ar-AE": Sx,
- "bg-BG": Cx,
- "cs-CZ": wx,
- "da-DK": Tx,
- "de-DE": Ex,
- "el-GR": Dx,
- "en-US": Ox,
- "es-ES": kx,
- "et-EE": Ax,
- "fi-FI": jx,
- "fr-FR": Mx,
- "he-IL": Nx,
- "hr-HR": Px,
- "hu-HU": Fx,
- "it-IT": Ix,
- "ja-JP": Lx,
- "ko-KR": Rx,
- "lt-LT": zx,
- "lv-LV": Bx,
- "nb-NO": Vx,
- "nl-NL": Hx,
- "pl-PL": Ux,
- "pt-BR": Wx,
- "pt-PT": Gx,
- "ro-RO": Kx,
- "ru-RU": qx,
- "sk-SK": Jx,
- "sl-SI": Yx,
- "sr-SP": Xx,
- "sv-SE": Zx,
- "tr-TR": Qx,
- "uk-UA": $x,
- "zh-CN": eS,
- "zh-TW": tS
+var tS = {};
+tS = {
+ "ar-AE": xx,
+ "bg-BG": Sx,
+ "cs-CZ": Cx,
+ "da-DK": wx,
+ "de-DE": Tx,
+ "el-GR": Ex,
+ "en-US": Dx,
+ "es-ES": Ox,
+ "et-EE": kx,
+ "fi-FI": Ax,
+ "fr-FR": jx,
+ "he-IL": Mx,
+ "hr-HR": Nx,
+ "hu-HU": Px,
+ "it-IT": Fx,
+ "ja-JP": Ix,
+ "ko-KR": Lx,
+ "lt-LT": Rx,
+ "lv-LV": zx,
+ "nb-NO": Bx,
+ "nl-NL": Vx,
+ "pl-PL": Hx,
+ "pt-BR": Ux,
+ "pt-PT": Wx,
+ "ro-RO": Gx,
+ "ru-RU": Kx,
+ "sk-SK": qx,
+ "sl-SI": Jx,
+ "sr-SP": Yx,
+ "sv-SE": Xx,
+ "tr-TR": Zx,
+ "uk-UA": Qx,
+ "zh-CN": $x,
+ "zh-TW": eS
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var cte = class extends gx {
+var lte = class extends hx {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -14626,14 +14626,14 @@ var cte = class extends gx {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function lte(e) {
+function ute(e) {
return e && e.__esModule ? e.default : e;
}
-function ute(e, t, n) {
+function dte(e, t, n) {
let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = Zv({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Xh(), l = t.selectionManager.disabledBehavior, u = (0, P.useMemo)(() => r || new cte({
+ }), { direction: c } = Xh(), l = t.selectionManager.disabledBehavior, u = (0, P.useMemo)(() => r || new lte({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -14653,14 +14653,14 @@ function ute(e, t, n) {
a,
o
]), d = Om(e.id);
- vx.set(t, d);
- let { gridProps: f } = ote({
+ _x.set(t, d);
+ let { gridProps: f } = ste({
...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 = ug(lte(nS), "@react-aria/table"), g = (0, P.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = ug(ute(tS), "@react-aria/table"), g = (0, P.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
@@ -14674,13 +14674,13 @@ function ute(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function rS(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Xh(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = _x.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, P.useRef)(null), h = () => {
+function nS(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Xh(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = gx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, P.useRef)(null), h = () => {
if (n.current) {
let e = t_(n.current);
if (p === "child") {
if (Zf(n.current) && n.current !== Yf(Rf(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? iS(e) : e.firstChild();
+ let r = t.selectionManager.childFocusStrategy === "last" ? rS(e) : e.firstChild();
if (r) {
xm(r);
return;
@@ -14712,7 +14712,7 @@ function rS(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (xm(n.current), f_(n.current, { containingElement: l_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : iS(a), t && (xm(t), f_(t, { containingElement: l_(n.current) })));
+ p === "cell" && l === "rtl" ? (xm(n.current), f_(n.current, { containingElement: l_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : rS(a), t && (xm(t), f_(t, { containingElement: l_(n.current) })));
}
break;
}
@@ -14724,7 +14724,7 @@ function rS(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (xm(n.current), f_(n.current, { containingElement: l_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? iS(a) : a.firstChild(), t && (xm(t), f_(t, { containingElement: l_(n.current) })));
+ p === "cell" && l === "ltr" ? (xm(n.current), f_(n.current, { containingElement: l_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? rS(a) : a.firstChild(), t && (xm(t), f_(t, { containingElement: l_(n.current) })));
}
break;
}
@@ -14769,7 +14769,7 @@ function rS(e, t, n) {
isPressed: _
};
}
-function iS(e) {
+function rS(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -14778,20 +14778,20 @@ function iS(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function dte(e, t, n) {
- let { gridCellProps: r, isPressed: i } = rS(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = bx(t, e.node.parentKey, a)), {
+function fte(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = nS(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = yx(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function fte(e) {
+function pte(e) {
return e && e.__esModule ? e.default : e;
}
-function pte(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = rS({
+function mte(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = nS({
focusMode: "child",
...e
}, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Ng({
@@ -14802,7 +14802,7 @@ function pte(e, t, n) {
ref: n
}), { focusableProps: l } = eh({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
r.props.allowsSorting && !wp() && (u = d ? f : "none");
- let p = ug(fte(nS), "@react-aria/table"), m;
+ let p = ug(pte(tS), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && wp() && (m = `${m}, ${p.format(f)}`));
let h = m_(m), g = t.collection.size === 0;
return (0, P.useEffect)(() => {
@@ -14815,7 +14815,7 @@ function pte(e, t, n) {
columnHeaderProps: {
...H(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: ste(t, r.key),
+ id: cte(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -14824,14 +14824,14 @@ function pte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function mte(e, t, n) {
+function hte(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function hte(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = _x.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = ib({
+function gte(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = gx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = ib({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -14852,10 +14852,10 @@ function hte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function gte(e) {
+function _te(e) {
return e && e.__esModule ? e.default : e;
}
-var aS = {
+var iS = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -14865,21 +14865,21 @@ var aS = {
rtl: "ArrowRight"
}
};
-function _te(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = hte(e, t, n), { direction: s } = Xh();
+function vte(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = gte(e, t, n), { direction: s } = Xh();
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 = ug(gte(nS), "@react-aria/table"), u = zh({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = ug(_te(tS), "@react-aria/table"), u = zh({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": xx(t, r.key)
+ "aria-labelledby": bx(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = oS(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 = oS(t.collection, a);
+ let n = aS(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 = aS(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === aS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === aS.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 === iS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === iS.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,
@@ -14901,41 +14901,41 @@ function _te(e, t, n) {
return {
rowProps: {
...H(a, d, m),
- "aria-labelledby": xx(t, r.key)
+ "aria-labelledby": bx(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function oS(e, t) {
+function aS(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function vte() {
+function yte() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function sS() {
- return vte();
+function oS() {
+ return yte();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function yte(e) {
+function bte(e) {
return e && e.__esModule ? e.default : e;
}
-function bte(e, t) {
- let { key: n } = e, { checkboxProps: r } = Mee(e, t);
+function xte(e, t) {
+ let { key: n } = e, { checkboxProps: r } = Nee(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${xx(t, n)}`
+ "aria-labelledby": `${r.id} ${bx(t, n)}`
} };
}
-function xte(e) {
+function Ste(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": ug(yte(nS), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": ug(bte(tS), "@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,
@@ -14944,13 +14944,13 @@ function xte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var cS = /* @__PURE__ */ new WeakMap();
-function lS(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${cS.get(e)}-${n}-${t}`) : "";
+var sS = /* @__PURE__ */ new WeakMap();
+function cS(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${sS.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Ste(e, t, n) {
+function Cte(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 } = ib({
selectionManager: o,
key: r,
@@ -14958,7 +14958,7 @@ function Ste(e, t, n) {
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = lS(t, r, "tab"), m = lS(t, r, "tabpanel"), { tabIndex: h } = d, g = _g(u?.props, { labelable: !0 });
+ }), p = cS(t, r, "tab"), m = cS(t, r, "tabpanel"), { tabIndex: h } = d, g = _g(u?.props, { labelable: !0 });
delete g.id;
let _ = Pp(u?.props), { focusableProps: v } = eh({
...u?.props,
@@ -14980,7 +14980,7 @@ function Ste(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var Cte = class {
+var wte = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -15024,11 +15024,11 @@ var Cte = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function wte(e, t, n) {
+function Tte(e, t, n) {
let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Xh(), { collectionProps: l } = Vv({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, P.useMemo)(() => new Cte(a, c, r, s), [
+ keyboardDelegate: (0, P.useMemo)(() => new wte(a, c, r, s), [
a,
s,
r,
@@ -15039,7 +15039,7 @@ function wte(e, t, n) {
scrollRef: n,
linkBehavior: "selection"
}), u = Om();
- return cS.set(t, u), { tabListProps: {
+ return sS.set(t, u), { tabListProps: {
...H(l, zh({
...e,
id: u
@@ -15051,12 +15051,12 @@ function wte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function Tte(e, t, n) {
- let r = eb(n) ? void 0 : 0, i = lS(t, e.id ?? t?.selectedKey, "tabpanel");
+function Ete(e, t, n) {
+ let r = eb(n) ? void 0 : 0, i = cS(t, e.id ?? t?.selectedKey, "tabpanel");
return { tabPanelProps: H(zh({
...e,
id: i,
- "aria-labelledby": lS(t, t?.selectedKey, "tab")
+ "aria-labelledby": cS(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -15066,7 +15066,7 @@ function Tte(e, t, n) {
}
//#endregion
//#region node_modules/scheduler/cjs/scheduler.production.js
-var Ete = /* @__PURE__ */ T(((e) => {
+var Dte = /* @__PURE__ */ T(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -15265,10 +15265,10 @@ var Ete = /* @__PURE__ */ T(((e) => {
}
};
};
-})), Dte = /* @__PURE__ */ T(((e, t) => {
- t.exports = Ete();
-})), Ote = /* @__PURE__ */ T(((e) => {
- var t = Dte(), n = j(), r = oh();
+})), Ote = /* @__PURE__ */ T(((e, t) => {
+ t.exports = Dte();
+})), kte = /* @__PURE__ */ T(((e) => {
+ var t = Ote(), n = j(), r = oh();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -23678,7 +23678,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
var n = !1, r = "", o = wc, s = Tc, c = Ec;
return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = yh(e, 1, !1, null, null, n, r, null, o, s, c, $h), e[xt] = t.current, $f(e), new eg(t);
};
-})), uS = (/* @__PURE__ */ T(((e, t) => {
+})), lS = (/* @__PURE__ */ T(((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);
@@ -23686,8 +23686,8 @@ var Ete = /* @__PURE__ */ T(((e) => {
console.error(e);
}
}
- n(), t.exports = Ote();
-})))(), kte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+ n(), t.exports = kte();
+})))(), Ate = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23695,7 +23695,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Ate = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), jte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23703,7 +23703,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), dS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), uS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23711,7 +23711,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), fS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), dS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23719,7 +23719,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), pS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), fS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23727,7 +23727,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), jte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Mte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23735,7 +23735,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), mS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), pS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23743,7 +23743,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), hS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), mS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23751,7 +23751,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Mte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Nte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23759,7 +23759,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), gS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), hS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23767,7 +23767,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), _S = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), gS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23775,7 +23775,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), vS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), _S = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23783,7 +23783,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), yS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), vS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23791,7 +23791,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Nte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Pte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23799,7 +23799,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), bS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), yS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23807,7 +23807,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), xS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), bS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23815,7 +23815,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Pte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Fte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23823,7 +23823,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Fte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Ite = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23831,7 +23831,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), SS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), xS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23839,7 +23839,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), CS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), SS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23847,7 +23847,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Ite = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Lte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23855,7 +23855,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Lte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Rte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23863,7 +23863,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Rte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), zte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23871,7 +23871,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), zte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Bte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23879,7 +23879,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Bte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Vte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23887,7 +23887,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Vte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Hte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23895,7 +23895,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), wS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), CS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23903,7 +23903,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), TS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), wS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23911,7 +23911,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), ES = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), TS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23919,7 +23919,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), DS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), ES = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23927,7 +23927,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), OS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Ute = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23935,7 +23935,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Hte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), DS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23943,7 +23943,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), kS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), OS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23951,7 +23951,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), AS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), kS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23959,7 +23959,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), jS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), AS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23967,7 +23967,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Ute = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), jS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23983,100 +23983,100 @@ var Ete = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), MS = (e, t) => {
+}, P.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" })), Gte = (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;
-}, NS = (e, t) => ({
+}, Kte = (e, t) => ({
classGroupId: e,
validator: t
-}), PS = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), MS = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), FS = "-", IS = [], Gte = "arbitrary..", Kte = (e) => {
- let t = Jte(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), NS = "-", PS = [], qte = "arbitrary..", Jte = (e) => {
+ let t = Xte(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return qte(e);
- let n = e.split(FS);
- return LS(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return Yte(e);
+ let n = e.split(NS);
+ return FS(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? MS(i, t) : t : i || IS;
+ return t ? i ? Gte(i, t) : t : i || PS;
}
- return n[e] || IS;
+ return n[e] || PS;
}
};
-}, LS = (e, t, n) => {
+}, FS = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = LS(e, t + 1, i);
+ let n = FS(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(FS) : e.slice(t).join(FS), s = a.length;
+ let o = t === 0 ? e.join(NS) : e.slice(t).join(NS), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, qte = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, Yte = (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 ? Gte + r : void 0;
-})(), Jte = (e) => {
+ return r ? qte + r : void 0;
+})(), Xte = (e) => {
let { theme: t, classGroups: n } = e;
- return Yte(n, t);
-}, Yte = (e, t) => {
- let n = PS();
+ return Zte(n, t);
+}, Zte = (e, t) => {
+ let n = MS();
for (let r in e) {
let i = e[r];
- RS(i, n, r, t);
+ IS(i, n, r, t);
}
return n;
-}, RS = (e, t, n, r) => {
+}, IS = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- Xte(i, t, n, r);
+ Qte(i, t, n, r);
}
-}, Xte = (e, t, n, r) => {
+}, Qte = (e, t, n, r) => {
if (typeof e == "string") {
- Zte(e, t, n);
+ $te(e, t, n);
return;
}
if (typeof e == "function") {
- Qte(e, t, n, r);
+ ene(e, t, n, r);
return;
}
- $te(e, t, n, r);
-}, Zte = (e, t, n) => {
- let r = e === "" ? t : zS(t, e);
+ tne(e, t, n, r);
+}, $te = (e, t, n) => {
+ let r = e === "" ? t : LS(t, e);
r.classGroupId = n;
-}, Qte = (e, t, n, r) => {
- if (BS(e)) {
- RS(e(r), t, n, r);
+}, ene = (e, t, n, r) => {
+ if (RS(e)) {
+ IS(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(NS(n, e));
-}, $te = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(Kte(n, e));
+}, tne = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- RS(o, zS(t, a), n, r);
+ IS(o, LS(t, a), n, r);
}
-}, zS = (e, t) => {
- let n = e, r = t.split(FS), i = r.length;
+}, LS = (e, t) => {
+ let n = e, r = t.split(NS), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = PS(), n.nextPart.set(t, i)), n = i;
+ i || (i = MS(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, BS = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, VS = (e) => {
+}, RS = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, zS = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -24094,19 +24094,19 @@ var Ete = /* @__PURE__ */ T(((e) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, HS = "!", US = ":", WS = [], GS = (e, t, n, r, i) => ({
+}, BS = "!", VS = ":", HS = [], US = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), KS = (e) => {
+}), WS = (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 === US) {
+ if (o === VS) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -24118,13 +24118,13 @@ var Ete = /* @__PURE__ */ T(((e) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(HS) ? (c = s.slice(0, -1), l = !0) : s.startsWith(HS) && (c = s.slice(1), l = !0);
+ s.endsWith(BS) ? (c = s.slice(0, -1), l = !0) : s.startsWith(BS) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return GS(t, l, c, u);
+ return US(t, l, c, u);
};
if (t) {
- let e = t + US, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : GS(WS, !1, t, void 0, !0);
+ let e = t + VS, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : US(HS, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -24134,7 +24134,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
});
}
return r;
-}, qS = (e) => {
+}, GS = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -24146,18 +24146,18 @@ var Ete = /* @__PURE__ */ T(((e) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, JS = (e) => ({
- cache: VS(e.cacheSize),
- parseClassName: KS(e),
- sortModifiers: qS(e),
- postfixLookupClassGroupIds: ene(e),
- ...Kte(e)
-}), ene = (e) => {
+}, KS = (e) => ({
+ cache: zS(e.cacheSize),
+ parseClassName: WS(e),
+ sortModifiers: GS(e),
+ postfixLookupClassGroupIds: qS(e),
+ ...Jte(e)
+}), qS = (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;
-}, tne = /\s+/, nne = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(tne), l = "";
+}, JS = /\s+/, YS = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(JS), 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) {
@@ -24181,7 +24181,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + HS : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + BS : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -24192,34 +24192,34 @@ var Ete = /* @__PURE__ */ T(((e) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, rne = (...e) => {
+}, nne = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = YS(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = XS(n)) && (i && (i += " "), i += r);
return i;
-}, YS = (e) => {
+}, XS = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = YS(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = XS(e[r])) && (n && (n += " "), n += t);
return n;
-}, XS = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = JS(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, ZS = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = KS(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 = nne(e, n);
+ let a = YS(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(rne(...e));
-}, ine = [], ZS = (e) => {
- let t = (t) => t[e] || ine;
+ return a = o, (...e) => a(nne(...e));
+}, rne = [], QS = (e) => {
+ let t = (t) => t[e] || rne;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, QS = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, $S = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ane = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, one = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, sne = /\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$/, cne = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, lne = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, une = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, eC = (e) => ane.test(e), tC = (e) => !!e && !Number.isNaN(Number(e)), nC = (e) => !!e && Number.isInteger(Number(e)), rC = (e) => e.endsWith("%") && tC(e.slice(0, -1)), iC = (e) => one.test(e), aC = () => !0, dne = (e) => sne.test(e) && !cne.test(e), oC = () => !1, fne = (e) => lne.test(e), pne = (e) => une.test(e), sC = (e) => !U(e) && !W(e), cC = (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)), lC = (e) => wC(e, OC, oC), U = (e) => QS.test(e), uC = (e) => wC(e, kC, dne), dC = (e) => wC(e, mne, tC), fC = (e) => wC(e, jC, aC), pC = (e) => wC(e, AC, oC), mC = (e) => wC(e, EC, oC), hC = (e) => wC(e, DC, pne), gC = (e) => wC(e, MC, fne), W = (e) => $S.test(e), _C = (e) => TC(e, kC), vC = (e) => TC(e, AC), yC = (e) => TC(e, EC), bC = (e) => TC(e, OC), xC = (e) => TC(e, DC), SC = (e) => TC(e, MC, !0), CC = (e) => TC(e, jC, !0), wC = (e, t, n) => {
- let r = QS.exec(e);
+}, $S = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, eC = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ine = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ane = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, one = /\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$/, sne = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, cne = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, lne = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, tC = (e) => ine.test(e), nC = (e) => !!e && !Number.isNaN(Number(e)), rC = (e) => !!e && Number.isInteger(Number(e)), iC = (e) => e.endsWith("%") && nC(e.slice(0, -1)), aC = (e) => ane.test(e), oC = () => !0, une = (e) => one.test(e) && !sne.test(e), sC = () => !1, dne = (e) => cne.test(e), fne = (e) => lne.test(e), pne = (e) => !U(e) && !W(e), cC = (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)), lC = (e) => wC(e, OC, sC), U = (e) => $S.test(e), uC = (e) => wC(e, kC, une), dC = (e) => wC(e, mne, nC), fC = (e) => wC(e, jC, oC), pC = (e) => wC(e, AC, sC), mC = (e) => wC(e, EC, sC), hC = (e) => wC(e, DC, fne), gC = (e) => wC(e, MC, dne), W = (e) => eC.test(e), _C = (e) => TC(e, kC), vC = (e) => TC(e, AC), yC = (e) => TC(e, EC), bC = (e) => TC(e, OC), xC = (e) => TC(e, DC), SC = (e) => TC(e, MC, !0), CC = (e) => TC(e, jC, !0), wC = (e, t, n) => {
+ let r = $S.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
}, TC = (e, t, n = !1) => {
- let r = $S.exec(e);
+ let r = eC.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
}, EC = (e) => e === "position" || e === "percentage", DC = (e) => e === "image" || e === "url", OC = (e) => e === "length" || e === "size" || e === "bg-size", kC = (e) => e === "length", mne = (e) => e === "number", AC = (e) => e === "family-name", jC = (e) => e === "number" || e === "weight", MC = (e) => e === "shadow", NC = () => {
- let e = ZS("color"), t = ZS("font"), n = ZS("text"), r = ZS("font-weight"), i = ZS("tracking"), a = ZS("leading"), o = ZS("breakpoint"), s = ZS("container"), c = ZS("spacing"), l = ZS("radius"), u = ZS("shadow"), d = ZS("inset-shadow"), f = ZS("text-shadow"), p = ZS("drop-shadow"), m = ZS("blur"), h = ZS("perspective"), g = ZS("aspect"), _ = ZS("ease"), v = ZS("animate"), y = () => [
+ let e = QS("color"), t = QS("font"), n = QS("text"), r = QS("font-weight"), i = QS("tracking"), a = QS("leading"), o = QS("breakpoint"), s = QS("container"), c = QS("spacing"), l = QS("radius"), u = QS("shadow"), d = QS("inset-shadow"), f = QS("text-shadow"), p = QS("drop-shadow"), m = QS("blur"), h = QS("perspective"), g = QS("aspect"), _ = QS("ease"), v = QS("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -24261,12 +24261,12 @@ var Ete = /* @__PURE__ */ T(((e) => {
U,
c
], T = () => [
- eC,
+ tC,
"full",
"auto",
...w()
], E = () => [
- nC,
+ rC,
"none",
"subgrid",
W,
@@ -24275,15 +24275,15 @@ var Ete = /* @__PURE__ */ T(((e) => {
"auto",
{ span: [
"full",
- nC,
+ rC,
W,
U
] },
- nC,
+ rC,
W,
U
], O = () => [
- nC,
+ rC,
"auto",
W,
U
@@ -24313,7 +24313,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- eC,
+ tC,
"auto",
"full",
"dvw",
@@ -24328,7 +24328,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
...w()
], P = () => [
s,
- eC,
+ tC,
"screen",
"full",
"dvw",
@@ -24339,7 +24339,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
"fit",
...w()
], F = () => [
- eC,
+ tC,
"screen",
"full",
"lh",
@@ -24373,7 +24373,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
lC,
{ size: [W, U] }
], re = () => [
- rC,
+ iC,
_C,
uC
], ie = () => [
@@ -24385,7 +24385,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
U
], ae = () => [
"",
- tC,
+ nC,
_C,
uC
], oe = () => [
@@ -24411,8 +24411,8 @@ var Ete = /* @__PURE__ */ T(((e) => {
"color",
"luminosity"
], ce = () => [
- tC,
- rC,
+ nC,
+ iC,
yC,
mC
], le = () => [
@@ -24423,20 +24423,20 @@ var Ete = /* @__PURE__ */ T(((e) => {
U
], L = () => [
"none",
- tC,
+ nC,
W,
U
], ue = () => [
"none",
- tC,
+ nC,
W,
U
], R = () => [
- tC,
+ nC,
W,
U
], z = () => [
- eC,
+ tC,
"full",
...w()
];
@@ -24450,17 +24450,17 @@ var Ete = /* @__PURE__ */ T(((e) => {
"bounce"
],
aspect: ["video"],
- blur: [iC],
- breakpoint: [iC],
- color: [aC],
- container: [iC],
- "drop-shadow": [iC],
+ blur: [aC],
+ breakpoint: [aC],
+ color: [oC],
+ container: [aC],
+ "drop-shadow": [aC],
ease: [
"in",
"out",
"in-out"
],
- font: [sC],
+ font: [pne],
"font-weight": [
"thin",
"extralight",
@@ -24472,7 +24472,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
"extrabold",
"black"
],
- "inset-shadow": [iC],
+ "inset-shadow": [aC],
leading: [
"none",
"tight",
@@ -24489,11 +24489,11 @@ var Ete = /* @__PURE__ */ T(((e) => {
"distant",
"none"
],
- radius: [iC],
- shadow: [iC],
- spacing: ["px", tC],
- text: [iC],
- "text-shadow": [iC],
+ radius: [aC],
+ shadow: [aC],
+ spacing: ["px", nC],
+ text: [aC],
+ "text-shadow": [aC],
tracking: [
"tighter",
"tight",
@@ -24507,7 +24507,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
aspect: [{ aspect: [
"auto",
"square",
- eC,
+ tC,
U,
W,
g
@@ -24522,7 +24522,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
] }],
"container-named": [cC],
columns: [{ columns: [
- tC,
+ nC,
"auto",
U,
W,
@@ -24622,13 +24622,13 @@ var Ete = /* @__PURE__ */ T(((e) => {
"collapse"
],
z: [{ z: [
- nC,
+ rC,
"auto",
W,
U
] }],
basis: [{ basis: [
- eC,
+ tC,
"full",
"auto",
s,
@@ -24646,8 +24646,8 @@ var Ete = /* @__PURE__ */ T(((e) => {
"wrap-reverse"
] }],
flex: [{ flex: [
+ nC,
tC,
- eC,
"auto",
"initial",
"none",
@@ -24655,18 +24655,18 @@ var Ete = /* @__PURE__ */ T(((e) => {
] }],
grow: [{ grow: [
"",
- tC,
+ nC,
W,
U
] }],
shrink: [{ shrink: [
"",
- tC,
+ nC,
W,
U
] }],
order: [{ order: [
- nC,
+ rC,
"first",
"last",
"none",
@@ -24798,7 +24798,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- rC,
+ iC,
U
] }],
"font-family": [{ font: [
@@ -24819,7 +24819,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
U
] }],
"line-clamp": [{ "line-clamp": [
- tC,
+ nC,
"none",
W,
dC
@@ -24860,7 +24860,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- tC,
+ nC,
"from-font",
"auto",
W,
@@ -24868,7 +24868,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
] }],
"text-decoration-color": [{ decoration: I() }],
"underline-offset": [{ "underline-offset": [
- tC,
+ nC,
"auto",
W,
U
@@ -24892,7 +24892,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- nC,
+ rC,
W,
U
] }],
@@ -24970,7 +24970,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
"l",
"tl"
] },
- nC,
+ rC,
W,
U
],
@@ -24981,7 +24981,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
],
conic: [
"",
- nC,
+ rC,
W,
U
]
@@ -25054,13 +25054,13 @@ var Ete = /* @__PURE__ */ T(((e) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- tC,
+ nC,
W,
U
] }],
"outline-w": [{ outline: [
"",
- tC,
+ nC,
_C,
uC
] }],
@@ -25084,7 +25084,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: I() }],
- "ring-offset-w": [{ "ring-offset": [tC, uC] }],
+ "ring-offset-w": [{ "ring-offset": [nC, uC] }],
"ring-offset-color": [{ "ring-offset": I() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": I() }],
@@ -25096,7 +25096,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
] }],
"text-shadow-color": [{ "text-shadow": I() }],
opacity: [{ opacity: [
- tC,
+ nC,
W,
U
] }],
@@ -25120,7 +25120,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [tC] }],
+ "mask-image-linear-pos": [{ "mask-linear": [nC] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],
"mask-image-linear-from-color": [{ "mask-linear-from": I() }],
@@ -25160,7 +25160,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [tC] }],
+ "mask-image-conic-pos": [{ "mask-conic": [nC] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],
"mask-image-conic-from-color": [{ "mask-conic-from": I() }],
@@ -25195,12 +25195,12 @@ var Ete = /* @__PURE__ */ T(((e) => {
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- tC,
+ nC,
W,
U
] }],
contrast: [{ contrast: [
- tC,
+ nC,
W,
U
] }],
@@ -25214,29 +25214,29 @@ var Ete = /* @__PURE__ */ T(((e) => {
"drop-shadow-color": [{ "drop-shadow": I() }],
grayscale: [{ grayscale: [
"",
- tC,
+ nC,
W,
U
] }],
"hue-rotate": [{ "hue-rotate": [
- tC,
+ nC,
W,
U
] }],
invert: [{ invert: [
"",
- tC,
+ nC,
W,
U
] }],
saturate: [{ saturate: [
- tC,
+ nC,
W,
U
] }],
sepia: [{ sepia: [
"",
- tC,
+ nC,
W,
U
] }],
@@ -25248,45 +25248,45 @@ var Ete = /* @__PURE__ */ T(((e) => {
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- tC,
+ nC,
W,
U
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- tC,
+ nC,
W,
U
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- tC,
+ nC,
W,
U
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- tC,
+ nC,
W,
U
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- tC,
+ nC,
W,
U
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- tC,
+ nC,
W,
U
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- tC,
+ nC,
W,
U
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- tC,
+ nC,
W,
U
] }],
@@ -25309,7 +25309,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- tC,
+ nC,
"initial",
W,
U
@@ -25322,7 +25322,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
U
] }],
delay: [{ delay: [
- tC,
+ nC,
W,
U
] }],
@@ -25367,7 +25367,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
"translate-z": [{ "translate-z": z() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- nC,
+ rC,
W,
U
] }],
@@ -25511,7 +25511,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
] }],
fill: [{ fill: ["none", ...I()] }],
"stroke-w": [{ stroke: [
- tC,
+ nC,
_C,
uC,
dC
@@ -25781,7 +25781,7 @@ var Ete = /* @__PURE__ */ T(((e) => {
}, LC = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, gne = (e, ...t) => typeof e == "function" ? XS(NC, e, ...t) : XS(() => hne(NC(), e), ...t), _ne = [
+}, gne = (e, ...t) => typeof e == "function" ? ZS(NC, e, ...t) : ZS(() => hne(NC(), e), ...t), _ne = [
"large-title",
"display-1",
"display-2",
@@ -26015,16 +26015,16 @@ function qC(e = {}) {
}
//#endregion
//#region src/react/components/empty-state.tsx
-var JC = {
+var Ene = {
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 YC({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+function JC({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
let a = i === "page";
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-empty-state": "",
- className: `flex flex-col items-center gap-2 text-center ${JC[i]}`,
+ className: `flex flex-col items-center gap-2 text-center ${Ene[i]}`,
children: [
a ? /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
@@ -26054,7 +26054,7 @@ function YC({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function XC({ label: e, inline: t = !1 }) {
+function YC({ label: e, inline: t = !1 }) {
let n = /* @__PURE__ */ (0, F.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex items-center gap-1",
@@ -26120,7 +26120,7 @@ function J({ tone: e, title: t, action: n, extra: r, children: i }) {
}
//#endregion
//#region src/react/components/page.tsx
-function ZC({ children: e }) {
+function XC({ children: e }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@ -26128,21 +26128,21 @@ function ZC({ children: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var QC = 100, $C = .4;
-function ew({ 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 * QC;
+var ZC = 100, QC = .4;
+function $C({ 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 * ZC;
return /* @__PURE__ */ (0, F.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": n,
"aria-valuenow": t,
- viewBox: `0 0 ${QC} 1`,
+ viewBox: `0 0 ${ZC} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, F.jsx)("rect", {
- width: QC,
+ width: ZC,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -26153,7 +26153,7 @@ function ew({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, F.jsx)("rect", {
x: a(e),
- width: $C,
+ width: QC,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -26162,7 +26162,7 @@ function ew({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function tw(e = "") {
+function ew(e = "") {
let t = (0, P.useRef)(null), [n, r] = (0, P.useState)(""), [i, a] = (0, P.useState)(e);
(0, P.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -26200,11 +26200,11 @@ var X = new lt({ defaultOptions: { queries: {
refetchOnWindowFocus: !1,
refetchOnMount: !1,
retryOnMount: !1
-} } }), nw = "/api/tasks", rw = ["tasks"], iw = (e, t) => KC(`${nw}?${new URLSearchParams({
+} } }), tw = "/api/tasks", nw = ["tasks"], rw = (e, t) => KC(`${tw}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function aw(...e) {
+function iw(...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) => {
@@ -26212,26 +26212,26 @@ function aw(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var ow = 2e3, sw = 1e4, cw = (e) => e?.running.length ? ow : sw, lw = (e) => KC(nw, e);
-async function uw(e) {
+var aw = 2e3, ow = 1e4, sw = (e) => e?.running.length ? aw : ow, cw = (e) => KC(tw, e);
+async function lw(e) {
await X.fetchQuery({
- queryKey: rw,
- queryFn: () => lw(e)
+ queryKey: nw,
+ queryFn: () => cw(e)
});
}
-var dw = {
+var uw = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, fw = {
+}, dw = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, pw = (e) => fw[e] || e, mw = {
+}, fw = (e) => dw[e] || e, pw = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -26261,7 +26261,7 @@ var dw = {
source: "来源",
cover_network: "封面连不上图片主机"
};
-function hw(e) {
+function mw(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -26270,7 +26270,7 @@ function hw(e) {
}
return t;
}
-function gw(e, t) {
+function hw(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -26292,19 +26292,19 @@ function gw(e, t) {
}
return n;
}
-var _w = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), vw = (e) => e.status === "pending" || e.status === "running";
-function yw(e) {
+var gw = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), _w = (e) => e.status === "pending" || e.status === "running";
+function vw(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 || Cw(e.result_summary) || (vw(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
+ return [r, e.error || Sw(e.result_summary) || (_w(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
}
-function bw(e) {
+function yw(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 xw(e) {
+function bw(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -26314,7 +26314,7 @@ function xw(e) {
minute: "2-digit"
});
}
-var Sw = /* @__PURE__ */ new Set([
+var xw = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -26323,28 +26323,28 @@ var Sw = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function Cw(e) {
- return Object.entries(e || {}).filter(([e, t]) => !Sw.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${mw[e] || e} ${t}`).join(" · ");
+function Sw(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !xw.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${pw[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var ww = {
+var Cw = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function Tw({ status: e }) {
+function ww({ status: e }) {
return /* @__PURE__ */ (0, F.jsx)(VC, {
- color: ww[e] ?? "neutral",
- children: pw(e)
+ color: Cw[e] ?? "neutral",
+ children: fw(e)
});
}
-function Ew({ rows: e }) {
+function Tw({ rows: e }) {
return /* @__PURE__ */ (0, F.jsx)("ul", {
className: "flex min-w-0 flex-col",
children: e.map((e) => {
- let t = yw(e);
+ let t = vw(e);
return /* @__PURE__ */ (0, F.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
@@ -26354,7 +26354,7 @@ function Ew({ rows: e }) {
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
- /* @__PURE__ */ (0, F.jsx)(Tw, { status: e.status }),
+ /* @__PURE__ */ (0, F.jsx)(ww, { status: e.status }),
t ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: t
@@ -26364,7 +26364,7 @@ function Ew({ rows: e }) {
})
});
}
-function Dw({ run: e, meta: t, children: n, footer: r, followups: i }) {
+function Ew({ run: e, meta: t, children: n, footer: r, followups: i }) {
return /* @__PURE__ */ (0, F.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
@@ -26383,7 +26383,7 @@ function Dw({ run: e, meta: t, children: n, footer: r, followups: i }) {
children: [/* @__PURE__ */ (0, F.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, F.jsx)(Tw, { status: e.status })]
+ }), /* @__PURE__ */ (0, F.jsx)(ww, { status: e.status })]
}),
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -26392,7 +26392,7 @@ function Dw({ run: e, meta: t, children: n, footer: r, followups: i }) {
n
]
}),
- i?.length ? /* @__PURE__ */ (0, F.jsx)(Ew, { rows: i }) : null,
+ i?.length ? /* @__PURE__ */ (0, F.jsx)(Tw, { rows: i }) : null,
r ? /* @__PURE__ */ (0, F.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, F.jsx)("p", {
@@ -26403,15 +26403,15 @@ function Dw({ run: e, meta: t, children: n, footer: r, followups: i }) {
]
});
}
-function Ene({ run: e, followups: t }) {
- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = bw(e.elapsed_seconds), o = [dw[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, F.jsx)(Dw, {
+function Dw({ run: e, followups: t }) {
+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = yw(e.elapsed_seconds), o = [uw[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, F.jsx)(Ew, {
run: e,
meta: o,
followups: t,
children: n > 0 ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, F.jsx)(ew, {
+ children: [/* @__PURE__ */ (0, F.jsx)($C, {
label: i,
value: r,
max: n
@@ -26426,20 +26426,20 @@ function Ene({ run: e, followups: t }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, F.jsx)(XC, { label: i })
+ }) : /* @__PURE__ */ (0, F.jsx)(YC, { label: i })
});
}
function Ow({ run: e, followups: t, runs: n }) {
- let r = Cw(e.result_summary), i = bw(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
- dw[e.trigger] || e.trigger,
+ let r = Sw(e.result_summary), i = yw(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
+ uw[e.trigger] || e.trigger,
`近 ${n.length} 轮`,
- `${xw(a.finished_at)} – ${xw(e.finished_at)}`
+ `${bw(a.finished_at)} – ${bw(e.finished_at)}`
] : [
- dw[e.trigger] || e.trigger,
- xw(e.finished_at),
+ uw[e.trigger] || e.trigger,
+ bw(e.finished_at),
i && `用时 ${i}`
]).filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, F.jsx)(Dw, {
+ return /* @__PURE__ */ (0, F.jsx)(Ew, {
run: e,
meta: o,
footer: e.error,
@@ -26471,32 +26471,32 @@ function Aw({ live: e = !1, children: t }) {
}
function Dne(e) {
let t = St({
- queryKey: rw,
- queryFn: ({ signal: e }) => lw(e),
- refetchInterval: (e) => cw(e.state.data)
+ queryKey: nw,
+ queryFn: ({ signal: e }) => cw(e),
+ refetchInterval: (e) => sw(e.state.data)
}), n = t.data, r = n?.finished, [i, a] = (0, P.useState)([]), [o, s] = (0, P.useState)(!1), [c, l] = (0, P.useState)(r);
- r !== c && (l(r), i.length && c && a(aw(i, c)));
+ r !== c && (l(r), i.length && c && a(iw(i, c)));
let u = Ct({
- mutationFn: ({ oldest: e }) => iw(e),
+ mutationFn: ({ oldest: e }) => rw(e),
onSuccess: (e, { shown: t }) => {
- a((n) => aw(n, t, e.finished || [])), s(!!e.finished_has_more);
+ a((n) => iw(n, t, e.finished || [])), s(!!e.finished_has_more);
}
}), d = t.error ? K(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, F.jsx)(ZC, { children: /* @__PURE__ */ (0, F.jsx)(J, {
+ if (!n) return /* @__PURE__ */ (0, F.jsx)(XC, { children: /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
children: d || "读取任务中心失败"
}) });
- let f = aw(n.finished || [], i), p = [
+ let f = iw(n.finished || [], i), p = [
...n.running || [],
...n.skipped || [],
...f
- ], m = hw(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {
+ ], m = mw(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {
!u.isPending && v && u.mutate({
oldest: v,
shown: f
});
- }, x = _.filter((e) => m.get(e.id)?.some(vw)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = gw(w, (e) => _w(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
- return /* @__PURE__ */ (0, F.jsxs)(ZC, { children: [
+ }, x = _.filter((e) => m.get(e.id)?.some(_w)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = hw(w, (e) => gw(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
+ return /* @__PURE__ */ (0, F.jsxs)(XC, { children: [
d ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
children: d
@@ -26505,9 +26505,9 @@ function Dne(e) {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- E ? /* @__PURE__ */ (0, F.jsx)(YC, {
+ E ? /* @__PURE__ */ (0, F.jsx)(JC, {
shell: "plain",
- icon: CS,
+ icon: SS,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
@@ -26515,7 +26515,7 @@ function Dne(e) {
title: "正在进行",
children: S.length || x.length ? /* @__PURE__ */ (0, F.jsxs)(Aw, {
live: !0,
- children: [S.map((e) => /* @__PURE__ */ (0, F.jsx)(Ene, {
+ children: [S.map((e) => /* @__PURE__ */ (0, F.jsx)(Dw, {
run: e,
followups: m.get(e.id)
}, e.id)), x.map((e) => /* @__PURE__ */ (0, F.jsx)(Ow, {
@@ -26549,7 +26549,7 @@ function Dne(e) {
y ? /* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: dS,
+ leadingIcon: uS,
className: "self-start",
...Y(u.isPending),
onClick: b,
@@ -27906,7 +27906,7 @@ function lE({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Nee({
+ ]), { listBoxProps: x } = Pee({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -27990,7 +27990,7 @@ function lE({ state: e, props: t, listBoxRef: n }) {
}))), F, E));
}
function Xne(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, P.useContext)(cE), { dragAndDropHooks: a, dropState: o } = (0, P.useContext)(RT), { CollectionBranch: s } = (0, P.useContext)(Ww), [c, l] = Iw(), { headingProps: u, groupProps: d } = Pee({
+ let i = (0, P.useContext)(cE), { dragAndDropHooks: a, dropState: o } = (0, P.useContext)(RT), { CollectionBranch: s } = (0, P.useContext)(Ww), [c, l] = Iw(), { headingProps: u, groupProps: d } = Fee({
heading: l,
"aria-label": e["aria-label"] ?? void 0
}), f = Nw({
@@ -28013,7 +28013,7 @@ function Xne(e, t, n, r = "react-aria-ListBoxSection") {
})));
}
var Zne = /*#__PURE__*/ xh(Tf, function(e, t, n) {
- let r = Xm(t), i = (0, P.useContext)(cE), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, P.useContext)(RT), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Fee({
+ let r = Xm(t), i = (0, P.useContext)(cE), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, P.useContext)(RT), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Iee({
key: n.key,
"aria-label": e?.["aria-label"]
}, i, r), { hoverProps: p, isHovered: m } = py({
@@ -28233,7 +28233,7 @@ var mE = /*#__PURE__*/ (0, P.createContext)(null), hE = /*#__PURE__*/ (0, P.crea
});
});
function nre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useContext)(hE), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Qee({
+ let a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useContext)(hE), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = $ee({
...i,
offset: i.offset ?? 8,
arrowRef: a,
@@ -28264,7 +28264,7 @@ function nre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}, [_.children, r]), [S, C] = (0, P.useState)(null), w = (0, P.useCallback)(() => {
i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- cp(w, [w]), cb({
+ cp(w, [w]), sb({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: w
});
@@ -28289,11 +28289,11 @@ function nre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ P.createElement(Wb, { onDismiss: e.close }), /*#__PURE__*/ P.createElement(tre.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ P.createElement(Ub, { onDismiss: e.close }), /*#__PURE__*/ P.createElement(tre.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ P.createElement(Wb, { onDismiss: e.close }));
+ } }, x), /*#__PURE__*/ P.createElement(Ub, { onDismiss: e.close }));
return c ? /*#__PURE__*/ P.createElement(ry, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
@@ -28422,7 +28422,7 @@ function sre(e, t) {
}
var SE = /*#__PURE__*/ (0, P.forwardRef)(sre);
function cre({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Bee(t, r, n), o = dE(t.overlayRef) || t.isEntering || !1, s = Nw({
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Vee(t, r, n), o = dE(t.overlayRef) || t.isEntering || !1, s = Nw({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -28475,7 +28475,7 @@ function CE(e) {
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ P.createElement(Wb, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ P.createElement(Ub, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
@@ -28509,7 +28509,7 @@ var fre = /*#__PURE__*/ (0, P.createContext)(null), pre = /*#__PURE__*/ (0, P.cr
let { validationBehavior: n } = Pw(Zw) || {}, r = e.validationBehavior ?? n ?? "native", i = dre({
...e,
validationBehavior: r
- }), [a, o] = Iw(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = ete({
+ }), [a, o] = Iw(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = tte({
...e,
label: o,
validationBehavior: r
@@ -28550,7 +28550,7 @@ var fre = /*#__PURE__*/ (0, P.createContext)(null), pre = /*#__PURE__*/ (0, P.cr
}), EE = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
[e, t] = Fw(r, t, pre);
- let i = P.useContext(wE), a = Xm((0, P.useMemo)(() => jm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = $ee({
+ let i = P.useContext(wE), a = Xm((0, P.useMemo)(() => jm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = ete({
...Lw(e),
children: typeof e.children == "function" || e.children
}, i, a);
@@ -28699,7 +28699,7 @@ function bre({ props: e, selectRef: t, collection: n }) {
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = oy({ within: !0 }), c = (0, P.useRef)(null), [l, u] = Iw(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = tte({
+ }), { isFocusVisible: o, focusProps: s } = oy({ within: !0 }), c = (0, P.useRef)(null), [l, u] = Iw(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = nte({
...Lw(e),
label: u,
validationBehavior: i
@@ -28768,7 +28768,7 @@ function bre({ 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__*/ P.createElement(rte, {
+ }, b.children, /*#__PURE__*/ P.createElement(ite, {
..._,
autoComplete: e.autoComplete
})));
@@ -28823,7 +28823,7 @@ for (var AE = /*#__PURE__*/ (0, P.createContext)(null), xre = /*#__PURE__*/ rh(f
}), Sre = /*#__PURE__*/ (0, P.createContext)(null), jE = /*#__PURE__*/ (0, P.createContext)(null), Cre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
[e, t] = Fw(r, t, Sre);
- let i = Xm((0, P.useMemo)(() => jm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = M_(e), o = ite({
+ let i = Xm((0, P.useMemo)(() => jm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = M_(e), o = ate({
...Lw(e),
children: typeof e.children == "function" || e.children
}, a, i);
@@ -29527,7 +29527,7 @@ function Lre({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = jre(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, P.useContext)(Ww), { dragAndDropHooks: _ } = e, { gridProps: v } = ute({
+ }), f = jre(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, P.useContext)(Ww), { dragAndDropHooks: _ } = e, { gridProps: v } = dte({
...s,
layoutDelegate: m,
isVirtualized: p
@@ -29639,7 +29639,7 @@ var Rre = /*#__PURE__*/ (0, P.createContext)(null), VE = class extends Sf {
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = sS(), { hoverProps: a, isHovered: o } = py({
+ }), { rowGroupProps: i } = oS(), { hoverProps: a, isHovered: o } = py({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
@@ -29669,10 +29669,10 @@ var Rre = /*#__PURE__*/ (0, P.createContext)(null), VE = class extends Sf {
});
});
function Vre({ item: e }) {
- let t = (0, P.useRef)(null), n = (0, P.useContext)(RE), { isVirtualized: r, CollectionBranch: i } = (0, P.useContext)(Ww), { rowProps: a } = mte({
+ let t = (0, P.useRef)(null), n = (0, P.useContext)(RE), { isVirtualized: r, CollectionBranch: i } = (0, P.useContext)(Ww), { rowProps: a } = hte({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = xte(n);
+ }, n, t), { checkboxProps: o } = Ste(n);
return /*#__PURE__*/ P.createElement(Bre, {
...a,
ref: t
@@ -29695,7 +29695,7 @@ var Hre = class extends Sf {
ref: t
});
}), UE = /*#__PURE__*/ xh(Hre, (e, t, n) => {
- let r = Xm(t), i = (0, P.useContext)(RE), { isVirtualized: a } = (0, P.useContext)(Ww), { columnHeaderProps: o, isPressed: s } = pte({
+ let r = Xm(t), i = (0, P.useContext)(RE), { isVirtualized: a } = (0, P.useContext)(Ww), { columnHeaderProps: o, isPressed: s } = mte({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
@@ -29781,7 +29781,7 @@ var Hre = class extends Sf {
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = sS(), _ = _g(e, { global: !0 });
+ let { rowGroupProps: g } = oS(), _ = _g(e, { global: !0 });
return /*#__PURE__*/ P.createElement(Gre, {
...H(_, p, g),
ref: t,
@@ -29819,7 +29819,7 @@ var KE = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Kr
ref: t
});
}), JE = /*#__PURE__*/ Sh(Kre, (e, t, n) => {
- let r = Xm(t), i = (0, P.useContext)(RE), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, P.useContext)(RT), { isVirtualized: c, CollectionBranch: l } = (0, P.useContext)(Ww), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = _te({
+ let r = Xm(t), i = (0, P.useContext)(RE), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, P.useContext)(RT), { isVirtualized: c, CollectionBranch: l } = (0, P.useContext)(Ww), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = vte({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
@@ -29828,7 +29828,7 @@ var KE = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Kr
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = bte({ key: n.key }, i), S;
+ }), { checkboxProps: x } = xte({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
@@ -29941,7 +29941,7 @@ var KE = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Kr
}), XE = /*#__PURE__*/ xh(qre, (e, t, n) => {
let r = Xm(t), i = (0, P.useContext)(RE), { dragState: a } = (0, P.useContext)(RT), { isVirtualized: o } = (0, P.useContext)(Ww);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = dte({
+ let { gridCellProps: s, isPressed: c } = fte({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
@@ -30206,7 +30206,7 @@ var tD = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
}) : /*#__PURE__*/ P.createElement(Th, e);
});
function rie({ props: e, forwardedRef: t }) {
- let n = (0, P.useContext)($E), { CollectionRoot: r } = (0, P.useContext)(Ww), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Pw(QE), o = Xm(t), { tabListProps: s } = wte({
+ let n = (0, P.useContext)($E), { CollectionRoot: r } = (0, P.useContext)(Ww), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Pw(QE), o = Xm(t), { tabListProps: s } = Tte({
...e,
orientation: i,
keyboardActivation: a
@@ -30233,7 +30233,7 @@ var nD = /*#__PURE__*/ xh(class extends Sf {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, P.useContext)($E), i = Xm(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Ste({
+ let r = (0, P.useContext)($E), i = Xm(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Cte({
key: n.key,
...e
}, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = oy(), { hoverProps: f, isHovered: p } = py({
@@ -30277,7 +30277,7 @@ var nD = /*#__PURE__*/ xh(class extends Sf {
});
});
function iD(e) {
- let t = (0, P.useContext)($E), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Tte(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = oy(), d = t.selectedKey === e.id, f = dE(r) && !i, p = Nw({
+ let t = (0, P.useContext)($E), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Ete(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = oy(), d = t.selectedKey === e.id, f = dE(r) && !i, p = Nw({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
@@ -30405,7 +30405,7 @@ function uD({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, F.jsx)(Lte, {
+ n && /* @__PURE__ */ (0, F.jsx)(Rte, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -30901,7 +30901,7 @@ function oO({ kind: e, entityId: t, name: n, onPicked: r }) {
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, F.jsx)(kte, {
+ children: /* @__PURE__ */ (0, F.jsx)(Ate, {
"aria-hidden": !0,
className: "size-4"
})
@@ -30946,7 +30946,7 @@ function sO({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, F.jsx)(ND, { children: /* @__PURE__ */ (0, F.jsx)(jS, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, F.jsx)(ND, { children: /* @__PURE__ */ (0, F.jsx)(AS, { className: "size-6" }) }),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
@@ -30976,7 +30976,7 @@ function sO({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
]
}),
/* @__PURE__ */ (0, F.jsx)(lD, {
- icon: gS,
+ icon: hS,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -32587,7 +32587,7 @@ function Sie({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
]
}),
/* @__PURE__ */ (0, F.jsx)(lD, {
- icon: gS,
+ icon: hS,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -33409,19 +33409,19 @@ function HA({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function UA({ className: e, children: t }) {
+function doe({ className: e, children: t }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
className: RC("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function WA({ className: e, children: t }) {
+function UA({ className: e, children: t }) {
return /* @__PURE__ */ (0, F.jsx)("p", {
className: RC("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function GA({ label: e, description: t, children: n }) {
+function WA({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: RC("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, F.jsxs)("div", {
@@ -33438,14 +33438,14 @@ function GA({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/settings/section.tsx
-function KA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+function GA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
let a = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [n ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, F.jsx)(WA, { children: e })
+ children: /* @__PURE__ */ (0, F.jsx)(UA, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, F.jsx)(WA, { children: e }), /* @__PURE__ */ (0, F.jsx)(UA, { children: i })] });
+ }) : /* @__PURE__ */ (0, F.jsx)(UA, { children: e }), /* @__PURE__ */ (0, F.jsx)(doe, { children: i })] });
return r ? /* @__PURE__ */ (0, F.jsx)("form", {
id: t,
"aria-label": e,
@@ -33460,13 +33460,13 @@ function KA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function qA({ children: e }) {
+function KA({ children: e }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function JA({ divided: e = !1, children: t }) {
+function qA({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@ -33475,7 +33475,7 @@ function JA({ divided: e = !1, children: t }) {
children: t
});
}
-function YA({ status: e, children: t }) {
+function JA({ status: e, children: t }) {
return /* @__PURE__ */ (0, F.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, F.jsx)("div", {
@@ -33484,43 +33484,43 @@ function YA({ status: e, children: t }) {
}) : null, t]
});
}
-function XA({ role: e, children: t }) {
+function YA({ role: e, children: t }) {
return /* @__PURE__ */ (0, F.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function ZA({ children: e }) {
+function XA({ children: e }) {
return /* @__PURE__ */ (0, F.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function QA({ children: e }) {
+function ZA({ children: e }) {
return /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function $A({ href: e, children: t }) {
+function QA({ href: e, children: t }) {
return /* @__PURE__ */ (0, F.jsx)(NA, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
- trailingIcon: bS,
+ trailingIcon: yS,
children: t
});
}
-function ej({ children: e }) {
+function $A({ children: e }) {
return /* @__PURE__ */ (0, F.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function tj({ term: e, children: t }) {
+function ej({ term: e, children: t }) {
return /* @__PURE__ */ (0, F.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, F.jsx)("dt", {
@@ -33532,7 +33532,7 @@ function tj({ term: e, children: t }) {
})]
});
}
-function nj({ summary: e, defaultOpen: t = !1, children: n }) {
+function tj({ summary: e, defaultOpen: t = !1, children: n }) {
let r = (0, P.useId)(), i = (0, P.useRef)(null), a = (0, P.useRef)(null), o = (0, P.useRef)(!1), [s, c] = (0, P.useState)(t);
return /* @__PURE__ */ (0, F.jsxs)("details", {
ref: (e) => {
@@ -33545,7 +33545,7 @@ function nj({ summary: e, defaultOpen: t = !1, children: n }) {
e.preventDefault(), !(!i.current || !a.current) && (g(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, F.jsx)(pS, {
+ children: [/* @__PURE__ */ (0, F.jsx)(fS, {
"aria-hidden": !0,
className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
@@ -33560,7 +33560,7 @@ function nj({ summary: e, defaultOpen: t = !1, children: n }) {
})]
});
}
-function doe({ name: e }) {
+function foe({ name: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -33569,18 +33569,18 @@ function doe({ name: e }) {
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
-function rj({ mark: e }) {
+function nj({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, F.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, F.jsx)(doe, { name: e });
+ }) : /* @__PURE__ */ (0, F.jsx)(foe, { name: e });
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function ij({ toast: e, mode: t, monitor: n }) {
+function rj({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = St({
queryKey: vk,
queryFn: ({ signal: e }) => yk(e),
@@ -33604,29 +33604,29 @@ function ij({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var foe = [
+var poe = [
{
label: "扫描并补全资料",
- icon: vS,
+ icon: _S,
command: {}
},
{
label: "只扫描",
- icon: SS,
+ icon: xS,
command: { stage: "scan" }
},
{
label: "只采集",
- icon: Fte,
+ icon: Ite,
command: { stage: "collect" }
}
-], poe = RC(FA, IA, "text-body-2-medium"), moe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", hoe = (e) => {
+], moe = RC(FA, IA, "text-body-2-medium"), hoe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", goe = (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(",")}。`;
-}, goe = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + hoe(e);
-function _oe({ busy: e, onRun: t }) {
+}, _oe = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + goe(e);
+function voe({ busy: e, onRun: t }) {
let n = (0, P.useRef)(null), [r, i] = (0, P.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
@@ -33635,14 +33635,14 @@ function _oe({ busy: e, onRun: t }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, F.jsx)(G, {
- leadingIcon: vS,
+ leadingIcon: _S,
onClick: () => a({}),
...Y(e),
children: "扫描并补全资料"
}), /* @__PURE__ */ (0, F.jsx)(G, {
ref: n,
iconOnly: !0,
- leadingIcon: dS,
+ leadingIcon: uS,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
@@ -33661,9 +33661,9 @@ function _oe({ busy: e, onRun: t }) {
children: /* @__PURE__ */ (0, F.jsx)(vE, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: foe.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, F.jsxs)("button", {
+ children: poe.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
- className: poe,
+ className: moe,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, F.jsx)(t, {
"aria-hidden": !0,
@@ -33673,7 +33673,7 @@ function _oe({ busy: e, onRun: t }) {
})
})] });
}
-function voe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+function yoe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
let a = Rie(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Lie(e.notes || {}), c = PD();
return /* @__PURE__ */ (0, F.jsxs)("div", {
"aria-live": "polite",
@@ -33682,7 +33682,7 @@ function voe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "warning",
title: "处理较慢",
- children: moe
+ children: hoe
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
@@ -33694,7 +33694,7 @@ function voe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, F.jsxs)(nj, {
+ children: /* @__PURE__ */ (0, F.jsxs)(tj, {
summary: a.label,
children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "relative",
@@ -33739,7 +33739,7 @@ function voe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
n?.status === "complete" ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "success",
title: "处理完成",
- children: goe(n)
+ children: _oe(n)
}) : null,
e.status !== "running" && s ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "neutral",
@@ -33757,8 +33757,8 @@ function voe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function aj(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = ij(e), o = Ct({
+function ij(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = rj(e), o = Ct({
mutationFn: (e) => q(_k, e),
onSuccess: (e) => {
a(), X.setQueryData(vk, e), X.invalidateQueries({ queryKey: vk });
@@ -33779,16 +33779,16 @@ function aj(e) {
/* @__PURE__ */ (0, F.jsx)(NA, {
href: "/scraping",
size: "small",
- trailingIcon: fS,
+ trailingIcon: dS,
children: "来源和凭证"
}),
s.candidates ? /* @__PURE__ */ (0, F.jsx)(NA, {
href: "/review",
size: "small",
- trailingIcon: fS,
+ trailingIcon: dS,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, F.jsx)(_oe, {
+ /* @__PURE__ */ (0, F.jsx)(voe, {
busy: l,
onRun: d
})
@@ -33803,7 +33803,7 @@ function aj(e) {
}),
s.status === "running" ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col gap-1.5",
- children: s.total ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(ew, {
+ children: s.total ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)($C, {
label: u,
value: s.checked || 0,
max: s.total
@@ -33817,11 +33817,11 @@ function aj(e) {
s.total,
" 个视频"
]
- })] }) : /* @__PURE__ */ (0, F.jsx)(XC, { label: u })
+ })] }) : /* @__PURE__ */ (0, F.jsx)(YC, { label: u })
}) : null
]
})
- }), /* @__PURE__ */ (0, F.jsx)(voe, {
+ }), /* @__PURE__ */ (0, F.jsx)(yoe, {
state: s,
problem: c,
settled: i,
@@ -33837,7 +33837,7 @@ function aj(e) {
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function yoe(e) {
+function boe(e) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -33851,7 +33851,7 @@ function yoe(e) {
})
});
}
-function boe(e) {
+function xoe(e) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -33865,7 +33865,7 @@ function boe(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function xoe(e, t, n) {
+function Soe(e, t, n) {
(0, P.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -33879,7 +33879,7 @@ function xoe(e, t, n) {
n
]);
}
-function Soe(e, t) {
+function Coe(e, t) {
let n = (0, P.useRef)(!1);
return (0, P.useEffect)(() => {
if (!e) return;
@@ -33893,11 +33893,11 @@ function Soe(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var oj = (0, P.createContext)("md");
-function sj({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var aj = (0, P.createContext)("md");
+function oj({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, P.useRef)(null), u = (0, P.useRef)(null), [d, f] = (0, P.useState)(!1);
- xoe(d, () => f(!1), [l, u]);
- let p = Soe(d, l);
+ Soe(d, () => f(!1), [l, u]);
+ let p = Coe(d, l);
return /* @__PURE__ */ (0, F.jsx)(vre, {
ref: s,
...c,
@@ -33910,7 +33910,7 @@ function sj({ className: e, triggerClassName: t, popoverClassName: n, size: r =
children: [/* @__PURE__ */ (0, F.jsx)(xre, {
className: RC("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, F.jsx)(yoe, { className: RC("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, F.jsx)(boe, { className: RC("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
}), /* @__PURE__ */ (0, F.jsx)(gE, {
ref: u,
isNonModal: !0,
@@ -33919,7 +33919,7 @@ function sj({ className: e, triggerClassName: t, popoverClassName: n, size: r =
children: /* @__PURE__ */ (0, F.jsx)(Jne, {
items: a,
className: RC(eoe, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, F.jsx)(oj.Provider, {
+ children: /* @__PURE__ */ (0, F.jsx)(aj.Provider, {
value: r,
children: i
})
@@ -33927,8 +33927,8 @@ function sj({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function cj({ className: e, children: t, ...n }) {
- let r = (0, P.useContext)(oj);
+function sj({ className: e, children: t, ...n }) {
+ let r = (0, P.useContext)(aj);
return /* @__PURE__ */ (0, F.jsx)(Zne, {
...n,
className: (t) => RC(FA, 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),
@@ -33937,9 +33937,9 @@ function cj({ className: e, children: t, ...n }) {
}
//#endregion
//#region src/react/background-job.ts
-var lj = 2e3, Coe = (e) => e, woe = (e, t) => t;
-function uj(e) {
- let { queryKey: t, jobOf: n = Coe, withJob: r = woe, idlePollMs: i } = e, [a, o] = (0, P.useState)(!1), [s, c] = (0, P.useState)(null), l = (0, P.useRef)(e);
+var cj = 2e3, woe = (e) => e, Toe = (e, t) => t;
+function lj(e) {
+ let { queryKey: t, jobOf: n = woe, withJob: r = Toe, idlePollMs: i } = e, [a, o] = (0, P.useState)(!1), [s, c] = (0, P.useState)(null), l = (0, P.useRef)(e);
(0, P.useEffect)(() => {
l.current = e;
});
@@ -33948,7 +33948,7 @@ function uj(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? lj : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? cj : i ?? !1;
}
}), d = Ct({
mutationFn: (e) => l.current.start(e),
@@ -33979,32 +33979,32 @@ function uj(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var Toe = (e) => s[e] || e, dj = (e) => X.setQueryData(Ek, e);
-function Eoe() {
+var Eoe = (e) => s[e] || e, uj = (e) => X.setQueryData(Ek, e);
+function Doe() {
let e = St({
queryKey: Ek,
queryFn: ({ signal: e }) => Ok(e),
- refetchInterval: (e) => e.state.data?.status === "running" && lj
+ refetchInterval: (e) => e.state.data?.status === "running" && cj
}), t = St({
queryKey: Dk,
queryFn: ({ signal: e }) => kk(e)
- }), [n, r] = (0, P.useState)(""), i = tw(), a = e.data ?? Vie, 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], u = () => {
+ }), [n, r] = (0, P.useState)(""), i = ew(), a = e.data ?? Vie, 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], u = () => {
c && l({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => dj(await q(Tk, {
+ onConfirm: async () => uj(await q(Tk, {
library: c.id,
restart: !0
}))
});
- }, d = () => void i.run("stop", (e) => q(Tk, { stop: !0 }, "POST", e), dj), f = Uie(a), p = a.status === "complete", m = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, d = () => void i.run("stop", (e) => q(Tk, { stop: !0 }, "POST", e), uj), f = Uie(a), p = a.status === "complete", m = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-4",
children: [/* @__PURE__ */ (0, F.jsx)(VA, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(sj, {
+ footer: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(oj, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@ -34012,10 +34012,10 @@ function Eoe() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, F.jsxs)(cj, {
+ children: o.map((e) => /* @__PURE__ */ (0, F.jsxs)(sj, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, F.jsx)(rj, { mark: Toe(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, F.jsx)(nj, { mark: Eoe(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, F.jsx)(G, {
onClick: d,
@@ -34034,7 +34034,7 @@ function Eoe() {
className: "text-body-2-regular text-text-secondary",
children: noe
}),
- s && a.total ? /* @__PURE__ */ (0, F.jsx)(ew, {
+ s && a.total ? /* @__PURE__ */ (0, F.jsx)($C, {
label: "修复进度",
value: a.checked,
max: a.total
@@ -34070,7 +34070,7 @@ function Eoe() {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var fj = {
+var dj = {
md: {
box: "size-4",
glyph: "size-4",
@@ -34084,8 +34084,8 @@ var fj = {
gap: "gap-1.5"
}
};
-function pj({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = fj[t], c = n || r, l = o && !a;
+function fj({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = dj[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
className: RC("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? RC("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : RC("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"),
@@ -34112,13 +34112,13 @@ function pj({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function mj({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = fj[n];
+function pj({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = dj[n];
return /* @__PURE__ */ (0, F.jsx)(Bne, {
ref: r,
...i,
className: (t) => RC("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, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(pj, {
+ children: (e) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(fj, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, F.jsx)("span", {
@@ -34129,7 +34129,7 @@ function mj({ className: e, children: t, size: n = "md", ref: r, ...i }) {
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function hj({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function mj({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
className: RC("w-full overflow-x-auto", n),
children: /* @__PURE__ */ (0, F.jsx)(Fre, {
@@ -34140,11 +34140,38 @@ function hj({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
});
}
//#endregion
+//#region src/react/components/row-click.ts
+var Ooe = [
+ "a",
+ "button",
+ "input",
+ "select",
+ "textarea",
+ "label",
+ "[role=\"checkbox\"]",
+ "[role=\"switch\"]",
+ "[role=\"button\"]",
+ "[role=\"link\"]",
+ "[role=\"menu\"]"
+].join(",");
+function hj(e, t) {
+ let n = e.target;
+ if (!(n instanceof Element) || !t.contains(n)) return !1;
+ let r = n.closest(Ooe);
+ return !r || !t.contains(r) || r === t;
+}
+//#endregion
//#region src/react/components/data-table-frame.tsx
-function gj({ children: e, follow: t = !1 }) {
+function gj({ children: e, follow: t = !1, onRowClick: n }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
+ onClick: n ? (e) => {
+ let t = e.target;
+ if (!(t instanceof Element)) return;
+ let r = t.closest("[role=\"row\"][data-key]");
+ r && hj(e, r) && n(r.dataset.key);
+ } : void 0,
children: e
});
}
@@ -34187,13 +34214,13 @@ function Tj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
className: "mb-3 text-caption-1-regular text-text-secondary",
children: n
}),
- /* @__PURE__ */ (0, F.jsx)(gj, { children: /* @__PURE__ */ (0, F.jsxs)(hj, {
+ /* @__PURE__ */ (0, F.jsx)(gj, { children: /* @__PURE__ */ (0, F.jsxs)(mj, {
"aria-label": e,
size: "sm",
children: [/* @__PURE__ */ (0, F.jsxs)(HE, { children: [
i ? /* @__PURE__ */ (0, F.jsx)(UE, {
id: "pick",
- children: /* @__PURE__ */ (0, F.jsx)(mj, {
+ children: /* @__PURE__ */ (0, F.jsx)(pj, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -34225,7 +34252,7 @@ function Tj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
] }), /* @__PURE__ */ (0, F.jsx)(GE, { children: t.map((e) => /* @__PURE__ */ (0, F.jsxs)(JE, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsx)(mj, {
+ i ? /* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsx)(pj, {
slot: null,
"aria-label": `选择 ${e.entity} 的${e.label || e.url}`,
isSelected: o.includes(e.id),
@@ -34248,7 +34275,7 @@ function Tj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
"data-middle-truncate": !0,
className: "min-w-0 truncate",
children: e.url
- }), /* @__PURE__ */ (0, F.jsx)(bS, {
+ }), /* @__PURE__ */ (0, F.jsx)(yS, {
"aria-hidden": !0,
className: "size-3.5 shrink-0"
})]
@@ -34263,21 +34290,21 @@ function Tj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
function Ej({ line: e, value: t, total: n }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
className: `${LA} flex flex-col gap-1.5`,
- children: n ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(ew, {
+ children: n ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)($C, {
label: e,
value: t || 0,
max: n
}), /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: e
- })] }) : /* @__PURE__ */ (0, F.jsx)(XC, { label: e })
+ })] }) : /* @__PURE__ */ (0, F.jsx)(YC, { label: e })
});
}
function Dj() {
let e = St({
queryKey: Xk,
queryFn: ({ signal: e }) => tA(e)
- }), [t, n] = (0, P.useState)([]), r = uj({
+ }), [t, n] = (0, P.useState)([]), r = lj({
queryKey: Qk,
queryFn: ({ signal: e }) => rA(e),
start: vae,
@@ -34290,7 +34317,7 @@ function Dj() {
exact: !0
});
}
- }), i = uj({
+ }), i = lj({
queryKey: Zk,
queryFn: ({ signal: e }) => nA(e),
start: _ae,
@@ -34514,7 +34541,7 @@ function Mj({ toast: t, failure: n }) {
let t = jae.test(K(e)) ? "dir" : "file";
_(t), (t === "dir" ? y : v).current?.focus();
}
- }), S = uj({
+ }), S = lj({
queryKey: aA,
queryFn: ({ signal: e }) => oA(e),
start: Oae,
@@ -34549,7 +34576,7 @@ function Mj({ toast: t, failure: n }) {
let e = M.message || M.stage || "正在整理文件…";
j = M.total ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, F.jsx)(ew, {
+ children: [/* @__PURE__ */ (0, F.jsx)($C, {
label: e,
value: M.checked || 0,
max: M.total
@@ -34557,7 +34584,7 @@ function Mj({ toast: t, failure: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e
})]
- }) : /* @__PURE__ */ (0, F.jsx)(XC, { label: e });
+ }) : /* @__PURE__ */ (0, F.jsx)(YC, { label: e });
} else if (N?.status === "failed") j = /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "任务失败",
@@ -34574,7 +34601,7 @@ function Mj({ toast: t, failure: n }) {
tone: "error",
title: "整理失败",
children: K(S.start.error)
- }) : x.isPending ? j = /* @__PURE__ */ (0, F.jsx)(XC, { label: "正在按模板算计划…" }) : x.isError ? j = /* @__PURE__ */ (0, F.jsx)(J, {
+ }) : x.isPending ? j = /* @__PURE__ */ (0, F.jsx)(YC, { label: "正在按模板算计划…" }) : x.isError ? j = /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "模板不可用",
children: K(x.error)
@@ -34627,17 +34654,17 @@ function Mj({ toast: t, failure: n }) {
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- a.length ? /* @__PURE__ */ (0, F.jsx)(sj, {
+ a.length ? /* @__PURE__ */ (0, F.jsx)(oj, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: u || null,
onSelectionChange: (e) => {
e !== null && (c(String(e)), _(null), x.reset());
},
- children: a.map((t) => /* @__PURE__ */ (0, F.jsxs)(cj, {
+ children: a.map((t) => /* @__PURE__ */ (0, F.jsxs)(sj, {
id: t.location,
textValue: e[t.location] || t.location,
- children: [/* @__PURE__ */ (0, F.jsx)(rj, { mark: s[t.location] || "database" }), e[t.location] || t.location]
+ children: [/* @__PURE__ */ (0, F.jsx)(nj, { mark: s[t.location] || "database" }), e[t.location] || t.location]
}, t.location))
}) : null,
/* @__PURE__ */ (0, F.jsx)(gD, {
@@ -34703,7 +34730,7 @@ function zj({ scan: e }) {
className: kA(),
children: /* @__PURE__ */ (0, F.jsx)(AA, {
label: Lae[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, F.jsx)(rj, { mark: s[e.location] ?? "database" }),
+ mark: /* @__PURE__ */ (0, F.jsx)(nj, { mark: s[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, F.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
@@ -34744,7 +34771,7 @@ function zj({ scan: e }) {
})] });
}
function Bj({ toast: e }) {
- let t = uj({
+ let t = lj({
queryKey: pA,
queryFn: ({ signal: e }) => hA(e),
start: Pae,
@@ -34759,7 +34786,7 @@ function Bj({ toast: e }) {
let { done: n, left: r } = vA(t);
r ? e(`已完成 ${Rj(n)} 项,${Rj(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = uj({
+ }), n = lj({
queryKey: fA,
queryFn: ({ signal: e }) => mA(e),
start: Nae,
@@ -34784,7 +34811,7 @@ function Bj({ toast: e }) {
children: d.error || "任务失败"
});
else if (d) p = f(d);
- else if (t.running) p = /* @__PURE__ */ (0, F.jsx)(XC, { label: t.job?.message || "正在复核并清理失效条目…" });
+ else if (t.running) p = /* @__PURE__ */ (0, F.jsx)(YC, { label: t.job?.message || "正在复核并清理失效条目…" });
else if (n.start.isError) p = /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "扫描失败",
@@ -34799,14 +34826,14 @@ function Bj({ toast: e }) {
let e = Rae(i);
p = /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col gap-1.5 rounded-2lg border border-separator-border px-4 py-3.5",
- children: i.total_sources ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(ew, {
+ children: i.total_sources ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)($C, {
label: e,
value: i.completed_sources || 0,
max: i.total_sources
}), /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: e
- })] }) : /* @__PURE__ */ (0, F.jsx)(XC, { label: "正在检查本地磁盘和网盘…" })
+ })] }) : /* @__PURE__ */ (0, F.jsx)(YC, { label: "正在检查本地磁盘和网盘…" })
});
} else if (i?.status === "failed") p = /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
@@ -34932,7 +34959,7 @@ function Xj({ toast: e, failure: t, open: n }) {
queryKey: lk,
queryFn: ({ signal: e }) => uk(e)
}), u = (t) => e(t);
- return /* @__PURE__ */ (0, F.jsxs)(ZC, { children: [
+ return /* @__PURE__ */ (0, F.jsxs)(XC, { children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
className: Qae,
children: [
@@ -34988,7 +35015,7 @@ function Xj({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, F.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, F.jsx)(aj, {
+ children: /* @__PURE__ */ (0, F.jsx)(ij, {
toast: u,
monitor: !0,
onComplete: Yj
@@ -34996,7 +35023,7 @@ function Xj({ toast: e, failure: t, open: n }) {
}),
/* @__PURE__ */ (0, F.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, F.jsx)(Eoe, {})
+ children: /* @__PURE__ */ (0, F.jsx)(Doe, {})
}),
/* @__PURE__ */ (0, F.jsx)(Mj, {
toast: u,
@@ -35184,7 +35211,7 @@ function pM({ file: t, openItem: i }) {
}),
/* @__PURE__ */ (0, F.jsxs)("span", {
className: `${uM} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, F.jsx)(rj, { mark: s[t.location] || "database" }), /* @__PURE__ */ (0, F.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(nj, { mark: s[t.location] || "database" }), /* @__PURE__ */ (0, F.jsx)("span", {
className: "whitespace-nowrap",
children: e[t.location] || t.location || t.drive
})]
@@ -35370,7 +35397,7 @@ function mM({ openItem: t, toast: n, failure: i }) {
openItem: t
}, e.id)) })]
}, `${n.code}-${i}`);
- }) : /* @__PURE__ */ (0, F.jsx)(YC, {
+ }) : /* @__PURE__ */ (0, F.jsx)(JC, {
icon: oM,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
@@ -35406,22 +35433,22 @@ function yM(e, t) {
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var bM = "/api/follow", xM = "/api/follow/credentials", SM = "/api/follow/check", CM = "/api/follow/source", wM = "/api/follow/resolve", TM = "/api/follow/suggest", EM = "/api/follow/author-alias", DM = "/api/follow/credential", OM = "/api/follow/status", kM = "/api/feeds", AM = "/api/feeds/source", jM = "/api/feeds/check", MM = ["follow-manage"], NM = ["follow-manage", "credentials"], PM = ["follow-manage", "check"], FM = ["follow-manage", "resolve"], IM = ["follow-manage", "feeds"], LM = (e) => [
+var bM = "/api/follow", xM = "/api/follow/credentials", SM = "/api/follow/check", CM = "/api/follow/source", wM = "/api/follow/resolve", TM = "/api/follow/suggest", EM = "/api/follow/author-alias", DM = "/api/follow/credential", OM = "/api/follow/status", kM = "/api/feeds", AM = "/api/feeds/source", jM = "/api/feeds/check", MM = "/api/feeds/lookup", NM = ["follow-manage"], PM = ["follow-manage", "credentials"], FM = ["follow-manage", "check"], IM = ["follow-manage", "resolve"], LM = ["follow-manage", "feeds"], RM = (e) => [
"follow-manage",
"suggest",
e
-], RM = [["default", "默认视图"], ["table", "表格视图"]], zM = [
+], zM = [["default", "默认视图"], ["table", "表格视图"]], BM = [
10,
20,
50,
100
-], BM = Object.fromEntries(hM), VM = {
+], VM = Object.fromEntries(hM), HM = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, HM = (e) => RM.some(([t]) => t === e), UM = (e) => zM.includes(Number(e)) ? Number(e) : 20, WM = {
+}, UM = (e) => zM.some(([t]) => t === e), WM = (e) => BM.includes(Number(e)) ? Number(e) : 20, GM = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -35429,25 +35456,25 @@ var bM = "/api/follow", xM = "/api/follow/credentials", SM = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, GM = (e, t) => `按${BM[e]}${WM[e][t === "asc" ? 0 : 1]}排序`;
-function KM(e) {
+}, KM = (e, t) => `按${VM[e]}${GM[e][t === "asc" ? 0 : 1]}排序`;
+function qM(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function qM(e) {
+function JM(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var JM = (e) => e.last_status === "error" || e.last_status === "unauthorized", YM = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), XM = {
- source: YM,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || YM(e, t),
- status: (e, t) => KM(e) - KM(t) || YM(e, t)
-}, ZM = (e) => Date.parse(e || "") || 0, QM = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function $M(e, t = []) {
+var YM = (e) => e.last_status === "error" || e.last_status === "unauthorized", XM = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), ZM = {
+ source: XM,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || XM(e, t),
+ status: (e, t) => qM(e) - qM(t) || XM(e, t)
+}, QM = (e) => Date.parse(e || "") || 0, $M = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function eN(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || QM(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || $M(e.label), r = e.find((e) => e.entity_name);
if (r) return r.entity_name;
let i = t.find((t) => `name:${t.canonical_key}` === e[0]?.author_key);
- if (i) return QM(i.canonical_name);
+ if (i) return $M(i.canonical_name);
let a = e.find((e) => e.official_avatar_url);
if (a && n(a)) return n(a);
let o = e.map(n).filter(Boolean);
@@ -35455,18 +35482,18 @@ function $M(e, t = []) {
let s = (e) => (e.match(/[A-Z]/g) || []).length;
return o.reduce((e, t) => s(t) > s(e) ? t : e, o[0]);
}
-function eN(e) {
+function tN(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function tN(e) {
+function nN(e) {
let t = e.find((e) => e.official_avatar_url), n = e.find((e) => e.avatar_url), r = t?.official_avatar_url || n?.avatar_url || "";
return {
src: r,
fallback: t && n && n.avatar_url !== r && n.avatar_url || ""
};
}
-function nN(e) {
+function rN(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -35474,31 +35501,31 @@ function nN(e) {
}
return t.map((e) => n.get(e));
}
-function rN(e, t, n, r = []) {
- let i = nN(e), a = n === _M[t] ? 1 : -1, o = (e) => $M(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = XM[t];
+function iN(e, t, n, r = []) {
+ let i = rN(e), a = n === _M[t] ? 1 : -1, o = (e) => eN(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = ZM[t];
if (c) {
for (let e of i) e.sort((e, t) => a * c(e, t));
return i.sort((e, t) => a * c(e[0], t[0]) || s(e, t));
}
- let l = (e) => Math.max(...e.map((e) => ZM(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => ZM(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => QM(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => QM(e.created_at)));
return i.sort((e, n) => t === "name" ? a * s(e, n) : t === "sources" ? a * (n.length - e.length) || s(e, n) : t === "added" ? a * (u(n) - u(e)) || s(e, n) : a * (l(n) - l(e)) || s(e, n));
}
-function iN(e, t, n, r = []) {
+function aN(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = $M(e, r);
+ let t = eN(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = XM[t];
+ }), a = ZM[t];
if (a) {
let e = n === _M[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function aN(e, t, n) {
+function oN(e, t, n) {
let r = Pk(e, t), i = Fk(n, r), a = (i - 1) * t;
return {
page: i,
@@ -35508,87 +35535,91 @@ function aN(e, t, n) {
end: Math.min(a + t, e)
};
}
-function oN(e, t) {
+function sN(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function sN(e, t) {
+function cN(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
all: t.length > 0 && n === t.length,
some: n > 0 && n < t.length
};
}
-function cN(e, t, n) {
+function lN(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var lN = (e) => KC(`${bM}?summary=1`, e), uN = (e) => KC(xM, e), dN = (e) => KC(SM, e), fN = (e) => KC(wM, e), pN = (e, t) => KC(`${TM}?q=${encodeURIComponent(e)}`, t), mN = (e) => q(SM, {
+var uN = (e) => KC(`${bM}?summary=1`, e), dN = (e) => KC(xM, e), fN = (e) => KC(SM, e), pN = (e) => KC(wM, e), mN = (e, t) => KC(`${TM}?q=${encodeURIComponent(e)}`, t), hN = (e) => q(SM, {
...e?.length ? { sources: e } : {},
background: !0
-}), hN = (e) => q(wM, {
+}), gN = (e) => q(wM, {
lines: e,
background: !0
-}), gN = (e, t) => q(CM, {
+}), _N = (e, t) => q(CM, {
action: "enabled",
id: e,
enabled: t
-}), _N = (e) => q(CM, {
+}), vN = (e) => q(CM, {
action: "remove",
id: e
-}), vN = (e) => q(CM, {
+}), yN = (e) => q(CM, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), yN = (e, t) => q(EM, {
+}), bN = (e, t) => q(EM, {
action: "add",
canonical: e,
alias: t
-}), bN = (e) => q(EM, {
+}), xN = (e) => q(EM, {
action: "remove",
alias: e
-}), xN = (e, t) => q(DM, {
+}), SN = (e, t) => q(DM, {
provider: e,
values: t
-}), SN = (e, t) => q(OM, {
+}), CN = (e, t) => q(OM, {
item: e,
to: t
-}), CN = () => KC(`${bM}?status=new&limit=1000`);
-async function wN(e) {
+}), wN = () => KC(`${bM}?status=new&limit=1000`);
+async function TN(e) {
let t = await KC(kM, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var TN = (e, t, n) => q(AM, {
+var EN = (e, t, n) => q(AM, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), EN = (e, t) => q(AM, {
+}, "POST", n), DN = (e, t) => q(AM, {
action: "remove",
id: e
-}, "POST", t), DN = (e) => q(jM, { all: !0 }, "POST", e);
-async function ON(e, t = "") {
+}, "POST", t), ON = (e) => q(jM, { all: !0 }, "POST", e), kN = (e, t) => KC(`${MM}?q=${encodeURIComponent(e)}`, t), AN = (e, t, n) => q(AM, {
+ action: "follow-name",
+ name: e,
+ ids: t
+}, "POST", n);
+async function jN(e, t = "") {
await Promise.all([
- X.fetchQuery({
- queryKey: MM,
- queryFn: () => lN(e)
- }),
X.fetchQuery({
queryKey: NM,
queryFn: () => uN(e)
}),
+ X.fetchQuery({
+ queryKey: PM,
+ queryFn: () => dN(e)
+ }),
t === "feeds" ? X.fetchQuery({
- queryKey: IM,
- queryFn: () => wN(e)
+ queryKey: LM,
+ queryFn: () => TN(e)
}) : null
]);
}
-function kN(e, t) {
- X.setQueryData(MM, (n) => n && {
+function MN(e, t) {
+ X.setQueryData(NM, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -35596,24 +35627,24 @@ function kN(e, t) {
} : n)
});
}
-function AN(e) {
+function NN(e) {
let t = new Set(e);
- X.setQueryData(MM, (e) => e && {
+ X.setQueryData(NM, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var jN = () => X.invalidateQueries({
- queryKey: MM,
+var PN = () => X.invalidateQueries({
+ queryKey: NM,
exact: !0
});
-function MN(e) {
+function FN(e) {
let t = e.results || [], n = (e) => t.reduce((t, n) => t + (e(n) || 0), 0), r = n((e) => e.added), i = n((e) => e.updated), a = n((e) => e.skipped_compilations), o = n((e) => e.skipped) - a, s = n((e) => e.history_skipped), c = n((e) => e.probed), l = t.filter((e) => e.ok && !e.added && !e.updated).length, u = t.filter((e) => !e.ok).length, d = [];
r && d.push(`新增 ${r} 条`), i && d.push(`更新 ${i} 条`), o && d.push(`跳过 ${o} 条无资源`), a && d.push(`排除 ${a} 个超大合集`), s && d.push(`跳过 ${s} 条超出首次采集范围的历史内容`), c && d.push(`回查 ${c} 条`), l && d.push(`${l} 个来源没有更新`), d.length || d.push("没有任何更新");
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var NN = (e) => (e?.results || []).filter((e) => !e.ok), PN = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", FN = (e) => e.last_checked_at ? Ik(e.last_checked_at) : "未检查", IN = /* @__PURE__ */ new Set([
+var IN = (e) => (e?.results || []).filter((e) => !e.ok), LN = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", RN = (e) => e.last_checked_at ? Ik(e.last_checked_at) : "未检查", zN = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -35626,16 +35657,16 @@ var NN = (e) => (e?.results || []).filter((e) => !e.ok), PN = (e) => (e?.results
"gofile",
"f95zone",
"simpcity"
-]), LN = (e) => IN.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", RN = {
+]), BN = (e) => zN.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", VN = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, zN = (e) => !!e.present && !e.missing.length, BN = "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", VN = "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-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", HN = "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-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", UN = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", WN = "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)";
+}, HN = (e) => !!e.present && !e.missing.length, UN = "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", WN = "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-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", GN = "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-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", KN = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", qN = "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function GN({ provider: e, label: t }) {
- let n = LN(e), [r, i] = (0, P.useState)(!1);
+function JN({ provider: e, label: t }) {
+ let n = BN(e), [r, i] = (0, P.useState)(!1);
return !n || r ? t ? /* @__PURE__ */ (0, F.jsx)(F.Fragment, { children: t }) : null : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("img", {
src: n,
alt: "",
@@ -35646,8 +35677,8 @@ function GN({ provider: e, label: t }) {
className: "size-3.5 shrink-0 rounded-sm object-contain"
}), t ? /* @__PURE__ */ (0, F.jsx)(I_, { children: t }) : null] });
}
-function KN({ group: e, name: t }) {
- let { src: n, fallback: r } = tN(e), [i, a] = (0, P.useState)(0), o = [n, r].filter(Boolean)[i];
+function YN({ group: e, name: t }) {
+ let { src: n, fallback: r } = nN(e), [i, a] = (0, P.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, F.jsx)("img", {
src: o,
alt: "",
@@ -35660,18 +35691,18 @@ function KN({ group: e, name: t }) {
}) : /* @__PURE__ */ (0, F.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: eN(t)
+ children: tN(t)
});
}
-function qN({ source: e }) {
- let t = JM(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+function XN({ source: e }) {
+ let t = YM(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
return /* @__PURE__ */ (0, F.jsx)(VC, {
variant: "caption",
color: t,
- children: qM(e)
+ children: JM(e)
});
}
-function JN({ source: e }) {
+function ZN({ source: e }) {
return /* @__PURE__ */ (0, F.jsx)("a", {
href: e.url,
target: "_blank",
@@ -35683,8 +35714,8 @@ function JN({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var YN = RC(FA, IA, "text-body-2-medium"), XN = "粘贴来源链接,或输入创作者名、id…", ZN = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", QN = "识别中…", $N = "站内没有查到来源", eP = (e, t) => `${e}:${t.url}`;
-function tP({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
+var QN = RC(FA, IA, "text-body-2-medium"), $N = "粘贴来源链接,或输入创作者名、id…", eP = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", tP = "识别中…", nP = "站内没有查到来源", rP = (e, t) => `${e}:${t.url}`;
+function iP({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, P.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
}, [t, r]), /* @__PURE__ */ (0, F.jsxs)(gE, {
@@ -35702,14 +35733,14 @@ function tP({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onCl
className: RC(PA, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, F.jsx)(XC, { label: "正在查找建议" })
+ children: /* @__PURE__ */ (0, F.jsx)(YC, { label: "正在查找建议" })
}) : null, n.map((e, t) => /* @__PURE__ */ (0, F.jsxs)(P.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, F.jsx)("div", {
className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",
children: e.group
}), /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? RC(YN, "bg-background-secondary-default") : YN,
+ className: t === r ? RC(QN, "bg-background-secondary-default") : QN,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -35729,7 +35760,7 @@ function tP({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onCl
})] }, `${e.group}-${e.value}`))]
});
}
-function nP({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+function aP({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
let i = (0, P.useRef)(null), [a, o] = (0, P.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);
@@ -35737,7 +35768,7 @@ function nP({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(G, {
ref: i,
variant: "secondary",
- leadingIcon: Pte,
+ leadingIcon: Fte,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
@@ -35766,16 +35797,16 @@ function nP({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, F.jsx)(XA, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, F.jsx)(YA, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(mj, {
+ children: [/* @__PURE__ */ (0, F.jsx)(pj, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, F.jsx)(GN, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, F.jsx)(JN, { provider: e.provider }), e.provider_label]
})
}), n ? /* @__PURE__ */ (0, F.jsx)(G, {
variant: "ghost",
@@ -35791,7 +35822,7 @@ function nP({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function rP({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function oP({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
if (e.kind === "error") return /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: e.line,
@@ -35809,15 +35840,15 @@ function rP({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: e.line
}),
a.length ? a.map((e) => {
- let n = eP(t, e);
- return /* @__PURE__ */ (0, F.jsx)(mj, {
+ let n = rP(t, e);
+ return /* @__PURE__ */ (0, F.jsx)(pj, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
children: /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, F.jsx)(GN, { provider: e.provider }),
+ /* @__PURE__ */ (0, F.jsx)(JN, { provider: e.provider }),
/* @__PURE__ */ (0, F.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@ -35833,22 +35864,22 @@ function rP({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, F.jsx)(XA, { children: $N }),
+ }) : /* @__PURE__ */ (0, F.jsx)(YA, { children: nP }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, F.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, F.jsx)($A, {
+ }), /* @__PURE__ */ (0, F.jsx)(QA, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, F.jsx)(XA, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, F.jsx)(YA, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
-function iP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+function sP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
let [a, o] = (0, P.useState)(""), [s, c] = (0, P.useState)(""), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(!1), [p, m] = (0, P.useState)(null), [h, g] = (0, P.useState)(-1), _ = (0, P.useRef)(null), v = (0, P.useRef)(null), [y, b] = (0, P.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, P.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, P.useState)(""), [T, E] = (0, P.useState)(0);
(0, P.useEffect)(() => {
let e = a.trim();
@@ -35860,18 +35891,18 @@ function iP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
return () => clearTimeout(t);
}, [a]);
let D = St({
- queryKey: LM(l),
- queryFn: ({ signal: e }) => pN(l, e),
+ queryKey: RM(l),
+ queryFn: ({ signal: e }) => mN(l, e),
enabled: l.length > 0 && d
}), O = (0, P.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({
value: t.value,
matched: t.matched || "",
n: t.n || 0,
group: e.label
- }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = uj({
- queryKey: FM,
- queryFn: ({ signal: e }) => fN(e),
- start: (e) => hN([e]),
+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = lj({
+ queryKey: IM,
+ queryFn: ({ signal: e }) => pN(e),
+ start: (e) => gN([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
onError: (e) => w(K(e)),
onFinish: (e) => {
@@ -35905,14 +35936,14 @@ function iP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
}
}, ie = j?.results || [], ae = ie.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: eP(t, e)
+ key: rP(t, e)
})).filter((e) => !x.has(e.key))), oe = Ct({
mutationFn: async (e) => {
let t = [], n = [];
E(0);
for (let r of e) {
try {
- let e = await vN(r.candidate);
+ let e = await yN(r.candidate);
n.push(e.source);
} catch (e) {
t.push(`${r.candidate.label}:${K(e)}`);
@@ -35920,7 +35951,7 @@ function iP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
E((e) => e + 1);
}
if (n.length) try {
- await mN(n);
+ await hN(n);
} catch (e) {
t.push(K(e));
}
@@ -35930,7 +35961,7 @@ function iP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
};
},
onSuccess: (e) => {
- if (jN(), e.failures.length) {
+ if (PN(), e.failures.length) {
w(e.failures.join(";"));
return;
}
@@ -35961,13 +35992,13 @@ function iP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
},
children: [/* @__PURE__ */ (0, F.jsx)(gD, {
"aria-label": "来源链接、名字或 id",
- placeholder: XN,
+ placeholder: $N,
value: a,
- leadingIcon: DS,
+ leadingIcon: ES,
isDisabled: n,
onChange: o,
onKeyDown: re
- }), te ? /* @__PURE__ */ (0, F.jsx)(tP, {
+ }), te ? /* @__PURE__ */ (0, F.jsx)(iP, {
field: _,
menu: v,
options: O,
@@ -35977,7 +36008,7 @@ function iP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
onClose: ne
}) : null]
}),
- /* @__PURE__ */ (0, F.jsx)(nP, {
+ /* @__PURE__ */ (0, F.jsx)(aP, {
credentials: t,
hidden: y,
onHidden: b,
@@ -35995,11 +36026,11 @@ function iP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
/* @__PURE__ */ (0, F.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [A || M.isPending ? k?.total ? /* @__PURE__ */ (0, F.jsx)(ew, {
+ children: [A || M.isPending ? k?.total ? /* @__PURE__ */ (0, F.jsx)($C, {
label: k.message || `查找中:${k.checked || 0}/${k.total}`,
value: k.checked || 0,
max: k.total
- }) : /* @__PURE__ */ (0, F.jsx)(XC, { label: ce ? ZN : QN }) : null, C ? /* @__PURE__ */ (0, F.jsx)(J, {
+ }) : /* @__PURE__ */ (0, F.jsx)(YC, { label: ce ? eP : tP }) : null, C ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "这一次没有完成",
children: C
@@ -36008,8 +36039,8 @@ function iP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
ie.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, F.jsx)(QA, { children: "查找结果" }),
- ie.map((e, t) => /* @__PURE__ */ (0, F.jsx)(rP, {
+ /* @__PURE__ */ (0, F.jsx)(ZA, { children: "查找结果" }),
+ ie.map((e, t) => /* @__PURE__ */ (0, F.jsx)(oP, {
row: e,
at: t,
hidden: y,
@@ -36064,16 +36095,16 @@ function iP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var aP = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, oP = (e) => e.alias;
-function sP(e, t, n) {
+var cP = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, lP = (e) => e.alias;
+function uP(e, t, n) {
let r = n ? `name:${n}` : "", i = r ? e.find((e) => e.author_key === r) : e.find((e) => e.author_name === t || e.entity_name === t);
return i ? e.filter((e) => e.author_key === i.author_key) : [];
}
-function cP({ sources: e, name: t, canonicalKey: n }) {
+function dP({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(KN, {
- group: sP(e, t, n),
+ children: [/* @__PURE__ */ (0, F.jsx)(YN, {
+ group: uP(e, t, n),
name: t
}), /* @__PURE__ */ (0, F.jsx)("b", {
className: "text-body-medium",
@@ -36081,15 +36112,15 @@ function cP({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function lP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+function fP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
let [a, o] = (0, P.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, P.useState)(""), [u, d] = (0, P.useState)(""), [f, p] = (0, P.useState)(""), m = Ct({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await yN(n.canonical, n.alias);
+ await bN(n.canonical, n.alias);
} catch (n) {
- throw t && jN(), Error(`${K(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && PN(), Error(`${K(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -36099,19 +36130,19 @@ function lP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- c(""), o(/* @__PURE__ */ new Set()), jN(), i(`已合并 ${e.done} 组创作者别名`);
+ c(""), o(/* @__PURE__ */ new Set()), PN(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => c(K(e))
}), h = Ct({
- mutationFn: (e) => yN(e.canonical, e.alias),
+ mutationFn: (e) => bN(e.canonical, e.alias),
onSuccess: () => {
- c(""), d(""), p(""), jN(), i("已保存创作者别名");
+ c(""), d(""), p(""), PN(), i("已保存创作者别名");
},
onError: (e) => c(K(e))
}), g = Ct({
- mutationFn: (e) => bN(e),
+ mutationFn: (e) => xN(e),
onSuccess: () => {
- c(""), jN(), i("已移除创作者别名");
+ c(""), PN(), i("已移除创作者别名");
},
onError: (e) => c(K(e))
}), _ = (e, t) => {
@@ -36121,7 +36152,7 @@ function lP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => m.mutateAsync(e)
});
- }, v = t.filter((e) => a.has(oP(e))), y = t.length > 0 && v.length === t.length, b = Y(m.isPending);
+ }, v = t.filter((e) => a.has(lP(e))), y = t.length > 0 && v.length === t.length, b = Y(m.isPending);
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: qC({
padding: "none",
@@ -36134,7 +36165,7 @@ function lP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(QA, { children: "手动添加别名" }), /* @__PURE__ */ (0, F.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)(ZA, { children: "手动添加别名" }), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
/* @__PURE__ */ (0, F.jsx)(gD, {
@@ -36166,13 +36197,13 @@ function lP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: s }) : null,
+ s ? /* @__PURE__ */ (0, F.jsx)(XA, { children: s }) : null,
t.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(QA, { children: "待合并" }),
+ /* @__PURE__ */ (0, F.jsx)(ZA, { children: "待合并" }),
/* @__PURE__ */ (0, F.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -36194,18 +36225,18 @@ function lP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, F.jsx)(gj, { children: /* @__PURE__ */ (0, F.jsxs)(hj, {
+ }), /* @__PURE__ */ (0, F.jsx)(gj, { children: /* @__PURE__ */ (0, F.jsxs)(mj, {
"aria-label": "待合并创作者别名",
size: "sm",
children: [/* @__PURE__ */ (0, F.jsxs)(HE, { children: [
/* @__PURE__ */ (0, F.jsx)(UE, {
id: "select",
- children: /* @__PURE__ */ (0, F.jsx)(mj, {
+ children: /* @__PURE__ */ (0, F.jsx)(pj, {
slot: null,
isSelected: y,
isIndeterminate: v.length > 0 && !y,
"aria-label": "全选待合并别名",
- onChange: (e) => o(e ? new Set(t.map(oP)) : /* @__PURE__ */ new Set())
+ onChange: (e) => o(e ? new Set(t.map(lP)) : /* @__PURE__ */ new Set())
})
}),
/* @__PURE__ */ (0, F.jsx)(UE, {
@@ -36226,12 +36257,12 @@ function lP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: "操作"
})
] }), /* @__PURE__ */ (0, F.jsx)(GE, { children: t.map((e) => {
- let t = oP(e);
+ let t = lP(e);
return /* @__PURE__ */ (0, F.jsxs)(JE, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsx)(mj, {
+ /* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsx)(pj, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -36240,7 +36271,7 @@ function lP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsx)(cP, {
+ /* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsx)(dP, {
sources: n,
name: e.canonical
}) }),
@@ -36266,11 +36297,11 @@ function lP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(QA, { children: "已保存别名" }), /* @__PURE__ */ (0, F.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(ZA, { children: "已保存别名" }), /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, F.jsx)(gj, { children: /* @__PURE__ */ (0, F.jsxs)(hj, {
+ }), e.length ? /* @__PURE__ */ (0, F.jsx)(gj, { children: /* @__PURE__ */ (0, F.jsxs)(mj, {
"aria-label": "已保存创作者别名",
size: "sm",
children: [/* @__PURE__ */ (0, F.jsxs)(HE, { children: [/* @__PURE__ */ (0, F.jsx)(UE, {
@@ -36282,7 +36313,7 @@ function lP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: "平台别名"
})] }), /* @__PURE__ */ (0, F.jsx)(GE, { children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)(JE, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsx)(cP, {
+ children: [/* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsx)(dP, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
@@ -36294,13 +36325,13 @@ function lP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: gS,
+ leadingIcon: hS,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
...Y(g.isPending),
onClick: () => void l({
title: "移除创作者别名",
- body: aP(e.name),
+ body: cP(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => g.mutateAsync(e.name)
})
@@ -36308,9 +36339,9 @@ function lP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, F.jsx)(YC, {
+ }) }) : /* @__PURE__ */ (0, F.jsx)(JC, {
shell: "plain",
- icon: jS,
+ icon: AS,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})]
@@ -36320,12 +36351,12 @@ function lP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var uP = "这些账号信息存在哪里", dP = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", fP = "将清除这个来源在本机和共享副本中的登录凭据。", pP = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function mP(e, t) {
+var pP = "这些账号信息存在哪里", mP = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", hP = "将清除这个来源在本机和共享副本中的登录凭据。", gP = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function _P(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function hP({ row: e }) {
- if (zN(e)) return /* @__PURE__ */ (0, F.jsx)(VC, {
+function vP({ row: e }) {
+ if (HN(e)) return /* @__PURE__ */ (0, F.jsx)(VC, {
variant: "caption",
color: "lime",
children: "已配置"
@@ -36334,19 +36365,19 @@ function hP({ row: e }) {
return /* @__PURE__ */ (0, F.jsx)(VC, {
variant: "caption",
color: t,
- children: RN[e.requirement] || ""
+ children: VN[e.requirement] || ""
});
}
-function gP({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, P.useState)({}), [a, o] = (0, P.useState)(""), s = zN(e), c = Ct({
- mutationFn: (t) => xN(e.provider, t),
+function yP({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, P.useState)({}), [a, o] = (0, P.useState)(""), s = HN(e), c = Ct({
+ mutationFn: (t) => SN(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
return;
}
o(""), i({}), X.invalidateQueries({
- queryKey: NM,
+ queryKey: PM,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -36362,17 +36393,17 @@ function gP({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, F.jsxs)(XA, { children: [e.why, e.where ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [" ", /* @__PURE__ */ (0, F.jsx)($A, {
+ /* @__PURE__ */ (0, F.jsxs)(YA, { children: [e.why, e.where ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [" ", /* @__PURE__ */ (0, F.jsx)(QA, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, F.jsx)(XA, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, F.jsx)(YA, { children: e.howto }) : null,
/* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-wrap items-end gap-3",
children: (e.needs || []).map((n) => /* @__PURE__ */ (0, F.jsx)(gD, {
type: "password",
label: n,
- placeholder: mP(e, n),
+ placeholder: _P(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -36400,7 +36431,7 @@ function gP({ row: e, readOnly: t, toast: n }) {
...Y(c.isPending),
onClick: () => void l({
title: "清除来源凭据",
- body: fP,
+ body: hP,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -36408,8 +36439,8 @@ function gP({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, F.jsx)(XA, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ a ? /* @__PURE__ */ (0, F.jsx)(XA, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, F.jsx)(YA, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
e.path ? /* @__PURE__ */ (0, F.jsx)(HA, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
@@ -36418,24 +36449,24 @@ function gP({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "凭据文件权限过宽",
- children: pP
+ children: gP
}) : null
]
});
}
-function _P({ row: e, readOnly: t, toast: n }) {
+function bP({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
/* @__PURE__ */ (0, F.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, F.jsx)(GN, { provider: e.provider })
+ children: /* @__PURE__ */ (0, F.jsx)(JN, { provider: e.provider })
}),
/* @__PURE__ */ (0, F.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, F.jsx)(hP, { row: e }),
+ /* @__PURE__ */ (0, F.jsx)(vP, { row: e }),
e.missing.length ? /* @__PURE__ */ (0, F.jsx)(VC, {
variant: "caption",
color: "rose",
@@ -36445,13 +36476,13 @@ function _P({ row: e, readOnly: t, toast: n }) {
});
return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, F.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, F.jsx)(XA, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, F.jsx)(YA, { children: e.why }) : null]
}) : /* @__PURE__ */ (0, F.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, F.jsx)(nj, {
- summary: zN(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !zN(e),
- children: /* @__PURE__ */ (0, F.jsx)(gP, {
+ children: [r, /* @__PURE__ */ (0, F.jsx)(tj, {
+ summary: HN(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !HN(e),
+ children: /* @__PURE__ */ (0, F.jsx)(yP, {
row: e,
readOnly: t,
toast: n
@@ -36459,8 +36490,8 @@ function _P({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function vP({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !zN(e));
+function xP({ data: e, readOnly: t, toast: n }) {
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !HN(e));
return r.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: qC({
padding: "none",
@@ -36482,7 +36513,7 @@ function vP({ data: e, readOnly: t, toast: n }) {
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: r.map((e) => /* @__PURE__ */ (0, F.jsx)(_P, {
+ children: r.map((e) => /* @__PURE__ */ (0, F.jsx)(bP, {
row: e,
readOnly: t,
toast: n
@@ -36493,11 +36524,11 @@ function vP({ data: e, readOnly: t, toast: n }) {
children: [
/* @__PURE__ */ (0, F.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: uP
+ children: pP
}),
/* @__PURE__ */ (0, F.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: dP
+ children: mP
}),
/* @__PURE__ */ (0, F.jsx)(HA, {
path: e.root,
@@ -36508,91 +36539,16 @@ function vP({ data: e, readOnly: t, toast: n }) {
]
})
]
- }) : /* @__PURE__ */ (0, F.jsx)(YC, {
+ }) : /* @__PURE__ */ (0, F.jsx)(JC, {
shell: "plain",
- icon: zte,
+ icon: Bte,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
}
//#endregion
-//#region src/react/follow-manage/feed-sources.tsx
-function yP(e) {
- let t = e.last_fetched_at ? `上次拉取 ${new Date(e.last_fetched_at).toLocaleString()}` : "还没拉过", n = e.interval_minutes >= 60 ? `每 ${Math.round(e.interval_minutes / 60)} 小时一次` : `每 ${e.interval_minutes} 分钟一次`;
- return `${e.kind_label} · ${n} · ${t} · 上次新增 ${e.last_new_count} 条`;
-}
-var bP = () => X.invalidateQueries({
- queryKey: IM,
- exact: !0
-}), xP = (e) => e.name || e.url;
-function SP({ readOnly: e, toast: t }) {
- let n = St({
- queryKey: IM,
- queryFn: ({ signal: e }) => wN(e)
- }), r = tw(), i = n.data;
- if (!i) return /* @__PURE__ */ (0, F.jsx)(UA, { children: /* @__PURE__ */ (0, F.jsx)(JA, { children: n.error ? /* @__PURE__ */ (0, F.jsx)(J, {
- tone: "error",
- title: "打不开订阅源",
- children: K(n.error)
- }) : /* @__PURE__ */ (0, F.jsx)(XA, { children: "正在读订阅源。" }) }) });
- let a = (e, t) => void r.run(`enabled-${e.id}`, (n) => TN(e.id, t, n), () => void bP()), o = (e) => void l({
- title: "移除订阅源",
- body: `将移除订阅源「${xP(e)}」,之后不再拉取它的新作;已经拉到的新作保留。`,
- confirmLabel: "移除订阅源",
- danger: !0,
- onConfirm: async () => {
- await EN(e.id), t(`已移除订阅源「${xP(e)}」`), bP();
- }
- }), s = () => void r.run("check", (e) => DN(e), () => void bP()), c = i.sources.filter((e) => e.last_error);
- return /* @__PURE__ */ (0, F.jsxs)(UA, { children: [
- i.sources.length ? /* @__PURE__ */ (0, F.jsx)(qA, { children: i.sources.map((t) => /* @__PURE__ */ (0, F.jsx)(GA, {
- label: xP(t),
- description: yP(t),
- children: /* @__PURE__ */ (0, F.jsxs)("div", {
- className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(ok, {
- "aria-label": `启用 ${xP(t)}`,
- isSelected: t.enabled,
- isDisabled: e,
- onChange: (e) => a(t, e)
- }), /* @__PURE__ */ (0, F.jsx)(G, {
- variant: "secondary",
- size: "xs",
- iconOnly: !0,
- leadingIcon: yS,
- "aria-label": `移除 ${xP(t)}`,
- disabled: e,
- onClick: () => o(t)
- })]
- })
- }, t.id)) }) : /* @__PURE__ */ (0, F.jsx)(YC, {
- icon: ES,
- title: "还没有订阅源",
- shell: "plain",
- children: "在人物页点「订阅新作」添加。"
- }),
- c.length || r.error ? /* @__PURE__ */ (0, F.jsxs)(JA, {
- divided: !0,
- children: [c.map((e) => /* @__PURE__ */ (0, F.jsx)(J, {
- tone: "error",
- title: `${xP(e)} 拉取失败`,
- children: e.last_error
- }, e.id)), r.error ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: r.error }) : null]
- }) : null,
- /* @__PURE__ */ (0, F.jsx)(YA, {
- status: i.unread ? `有 ${i.unread} 条新作还没看` : "新作都看过了",
- children: /* @__PURE__ */ (0, F.jsx)(G, {
- onClick: s,
- disabled: e,
- ...Y(r.busy === "check"),
- children: "立即拉取"
- })
- })
- ] });
-}
-//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function CP() {
+function SP() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -36605,24 +36561,24 @@ function CP() {
group: (e) => e
};
}
-function wP(e, t) {
+function CP(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function TP(e, t) {
+function wP(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: wP(n, t[e])
+ [e]: CP(n, t[e])
}));
};
}
-function EP(e) {
+function TP(e) {
return e instanceof Function;
}
-function DP(e) {
+function EP(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function OP(e, t) {
+function DP(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -36632,7 +36588,7 @@ function OP(e, t) {
};
return r(e), n;
}
-function kP(e, t, n) {
+function OP(e, t, n) {
let r = [], i;
return (a) => {
let o;
@@ -36654,21 +36610,21 @@ function kP(e, t, n) {
return i;
};
}
-function AP(e, t, n, r) {
+function kP(e, t, n, r) {
return {
debug: () => e?.debugAll ?? e[t],
key: !1,
onChange: r
};
}
-function jP(e, t, n, r) {
+function AP(e, t, n, r) {
let i = {
id: `${t.id}_${n.id}`,
row: t,
column: n,
getValue: () => t.getValue(r),
renderValue: () => i.getValue() ?? e.options.renderFallbackValue,
- getContext: kP(() => [
+ getContext: OP(() => [
e,
n,
t,
@@ -36680,13 +36636,13 @@ function jP(e, t, n, r) {
cell: r,
getValue: r.getValue,
renderValue: r.renderValue
- }), AP(e.options, "debugCells", "cell.getContext"))
+ }), kP(e.options, "debugCells", "cell.getContext"))
};
return e._features.forEach((r) => {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function MP(e, t, n, r) {
+function jP(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -36703,17 +36659,17 @@ function MP(e, t, n, r) {
depth: n,
columnDef: i,
columns: [],
- getFlatColumns: kP(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], AP(e.options, "debugColumns", "column.getFlatColumns")),
- getLeafColumns: kP(() => [e._getOrderColumnsFn()], (e) => {
+ getFlatColumns: OP(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], kP(e.options, "debugColumns", "column.getFlatColumns")),
+ getLeafColumns: OP(() => [e._getOrderColumnsFn()], (e) => {
var t;
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
- }, AP(e.options, "debugColumns", "column.getLeafColumns"))
+ }, kP(e.options, "debugColumns", "column.getLeafColumns"))
};
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var NP = "debugHeaders";
-function PP(e, t, n) {
+var MP = "debugHeaders";
+function NP(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -36741,42 +36697,42 @@ function PP(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var FP = { createTable: (e) => {
- e.getHeaderGroups = kP(() => [
+var PP = { createTable: (e) => {
+ e.getHeaderGroups = OP(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (t, n, r, i) => {
let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
- return IP(t, [
+ return FP(t, [
...a,
...s,
...o
], e);
- }, AP(e.options, NP, "getHeaderGroups")), e.getCenterHeaderGroups = kP(() => [
+ }, kP(e.options, MP, "getHeaderGroups")), e.getCenterHeaderGroups = OP(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), IP(t, n, e, "center")), AP(e.options, NP, "getCenterHeaderGroups")), e.getLeftHeaderGroups = kP(() => [
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), FP(t, n, e, "center")), kP(e.options, MP, "getCenterHeaderGroups")), e.getLeftHeaderGroups = OP(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => IP(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), AP(e.options, NP, "getLeftHeaderGroups")), e.getRightHeaderGroups = kP(() => [
+ ], (t, n, r) => FP(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), kP(e.options, MP, "getLeftHeaderGroups")), e.getRightHeaderGroups = OP(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => IP(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), AP(e.options, NP, "getRightHeaderGroups")), e.getFooterGroups = kP(() => [e.getHeaderGroups()], (e) => [...e].reverse(), AP(e.options, NP, "getFooterGroups")), e.getLeftFooterGroups = kP(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), AP(e.options, NP, "getLeftFooterGroups")), e.getCenterFooterGroups = kP(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), AP(e.options, NP, "getCenterFooterGroups")), e.getRightFooterGroups = kP(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), AP(e.options, NP, "getRightFooterGroups")), e.getFlatHeaders = kP(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), AP(e.options, NP, "getFlatHeaders")), e.getLeftFlatHeaders = kP(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), AP(e.options, NP, "getLeftFlatHeaders")), e.getCenterFlatHeaders = kP(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), AP(e.options, NP, "getCenterFlatHeaders")), e.getRightFlatHeaders = kP(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), AP(e.options, NP, "getRightFlatHeaders")), e.getCenterLeafHeaders = kP(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (t, n, r) => FP(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), kP(e.options, MP, "getRightHeaderGroups")), e.getFooterGroups = OP(() => [e.getHeaderGroups()], (e) => [...e].reverse(), kP(e.options, MP, "getFooterGroups")), e.getLeftFooterGroups = OP(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), kP(e.options, MP, "getLeftFooterGroups")), e.getCenterFooterGroups = OP(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), kP(e.options, MP, "getCenterFooterGroups")), e.getRightFooterGroups = OP(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), kP(e.options, MP, "getRightFooterGroups")), e.getFlatHeaders = OP(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), kP(e.options, MP, "getFlatHeaders")), e.getLeftFlatHeaders = OP(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), kP(e.options, MP, "getLeftFlatHeaders")), e.getCenterFlatHeaders = OP(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), kP(e.options, MP, "getCenterFlatHeaders")), e.getRightFlatHeaders = OP(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), kP(e.options, MP, "getRightFlatHeaders")), e.getCenterLeafHeaders = OP(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), AP(e.options, NP, "getCenterLeafHeaders")), e.getLeftLeafHeaders = kP(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), kP(e.options, MP, "getCenterLeafHeaders")), e.getLeftLeafHeaders = OP(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), AP(e.options, NP, "getLeftLeafHeaders")), e.getRightLeafHeaders = kP(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), kP(e.options, MP, "getLeftLeafHeaders")), e.getRightLeafHeaders = OP(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), AP(e.options, NP, "getRightLeafHeaders")), e.getLeafHeaders = kP(() => [
+ }), kP(e.options, MP, "getRightLeafHeaders")), e.getLeafHeaders = OP(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -36784,9 +36740,9 @@ var FP = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), AP(e.options, NP, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), kP(e.options, MP, "getLeafHeaders"));
} };
-function IP(e, t, n, r) {
+function FP(e, t, n, r) {
let i = 0, a = function(e, t) {
t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
var n;
@@ -36804,7 +36760,7 @@ function IP(e, t, n, r) {
let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
else {
- let i = PP(n, c, {
+ let i = NP(n, c, {
id: [
r,
t,
@@ -36821,7 +36777,7 @@ function IP(e, t, n, r) {
i.headers.push(e), e.headerGroup = i;
}), o.push(i), t > 0 && s(a, t - 1);
};
- s(t.map((e, t) => PP(n, e, {
+ s(t.map((e, t) => NP(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -36839,7 +36795,7 @@ function IP(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var LP = (e, t, n, r, i, a, o) => {
+var IP = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -36860,7 +36816,7 @@ var LP = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => OP(s.subRows, (e) => e.subRows),
+ getLeafRows: () => DP(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -36871,95 +36827,95 @@ var LP = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: kP(() => [e.getAllLeafColumns()], (t) => t.map((t) => jP(e, s, t, t.id)), AP(e.options, "debugRows", "getAllCells")),
- _getAllCellsByColumnId: kP(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), AP(e.options, "debugRows", "getAllCellsByColumnId"))
+ getAllCells: OP(() => [e.getAllLeafColumns()], (t) => t.map((t) => AP(e, s, t, t.id)), kP(e.options, "debugRows", "getAllCells")),
+ _getAllCellsByColumnId: OP(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), kP(e.options, "debugRows", "getAllCellsByColumnId"))
};
for (let t = 0; t < e._features.length; t++) {
let n = e._features[t];
n == null || n.createRow == null || n.createRow(s, e);
}
return s;
-}, RP = { createColumn: (e, t) => {
+}, LP = { createColumn: (e, t) => {
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
};
-} }, zP = (e, t, n) => {
+} }, RP = (e, t, n) => {
var r, i;
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
return !!((i = e.getValue(t)) != null && (i = i.toString()) != null && (i = i.toLowerCase()) != null && i.includes(a));
};
-zP.autoRemove = (e) => YP(e);
-var BP = (e, t, n) => {
+RP.autoRemove = (e) => JP(e);
+var zP = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-BP.autoRemove = (e) => YP(e);
-var VP = (e, t, n) => {
+zP.autoRemove = (e) => JP(e);
+var BP = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-VP.autoRemove = (e) => YP(e);
-var HP = (e, t, n) => e.getValue(t)?.includes(n);
-HP.autoRemove = (e) => YP(e);
-var UP = (e, t, n) => !n.some((n) => {
+BP.autoRemove = (e) => JP(e);
+var VP = (e, t, n) => e.getValue(t)?.includes(n);
+VP.autoRemove = (e) => JP(e);
+var HP = (e, t, n) => !n.some((n) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-UP.autoRemove = (e) => YP(e) || !(e != null && e.length);
-var WP = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-WP.autoRemove = (e) => YP(e) || !(e != null && e.length);
-var GP = (e, t, n) => e.getValue(t) === n;
-GP.autoRemove = (e) => YP(e);
-var KP = (e, t, n) => e.getValue(t) == n;
-KP.autoRemove = (e) => YP(e);
-var qP = (e, t, n) => {
+HP.autoRemove = (e) => JP(e) || !(e != null && e.length);
+var UP = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
+UP.autoRemove = (e) => JP(e) || !(e != null && e.length);
+var WP = (e, t, n) => e.getValue(t) === n;
+WP.autoRemove = (e) => JP(e);
+var GP = (e, t, n) => e.getValue(t) == n;
+GP.autoRemove = (e) => JP(e);
+var KP = (e, t, n) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-qP.resolveFilterValue = (e) => {
+KP.resolveFilterValue = (e) => {
let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
if (a > o) {
let e = a;
a = o, o = e;
}
return [a, o];
-}, qP.autoRemove = (e) => YP(e) || YP(e[0]) && YP(e[1]);
-var JP = {
- includesString: zP,
- includesStringSensitive: BP,
- equalsString: VP,
- arrIncludes: HP,
- arrIncludesAll: UP,
- arrIncludesSome: WP,
- equals: GP,
- weakEquals: KP,
- inNumberRange: qP
+}, KP.autoRemove = (e) => JP(e) || JP(e[0]) && JP(e[1]);
+var qP = {
+ includesString: RP,
+ includesStringSensitive: zP,
+ equalsString: BP,
+ arrIncludes: VP,
+ arrIncludesAll: HP,
+ arrIncludesSome: UP,
+ equals: WP,
+ weakEquals: GP,
+ inNumberRange: KP
};
-function YP(e) {
+function JP(e) {
return e == null || e === "";
}
-var XP = {
+var YP = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: TP("columnFilters", e),
+ onColumnFiltersChange: wP("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? JP.includesString : typeof n == "number" ? JP.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? JP.equals : Array.isArray(n) ? JP.arrIncludes : JP.weakEquals;
- }, e.getFilterFn = () => EP(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? JP[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
+ return typeof n == "string" ? qP.includesString : typeof n == "number" ? qP.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? qP.equals : Array.isArray(n) ? qP.arrIncludes : qP.weakEquals;
+ }, e.getFilterFn = () => TP(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? qP[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
var n;
return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
t.setColumnFilters((t) => {
- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = wP(n, i ? i.value : void 0);
- if (ZP(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = CP(n, i ? i.value : void 0);
+ if (XP(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
let o = {
id: e.id,
value: a
@@ -36974,19 +36930,19 @@ var XP = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => wP(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => CP(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && ZP(t.getFilterFn(), e.value, t));
+ return !(t && XP(t.getFilterFn(), e.value, t));
}));
}, e.resetColumnFilters = (t) => {
e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
}
};
-function ZP(e, t, n) {
+function XP(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var QP = {
+var ZP = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -37022,7 +36978,7 @@ var QP = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!DP(n)) return;
+ if (!EP(n)) return;
if (n.length === 1) return n[0];
let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
@@ -37030,7 +36986,7 @@ var QP = {
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
count: (e, t) => t.length
-}, $P = {
+}, QP = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -37043,7 +36999,7 @@ var QP = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: TP("grouping", e),
+ onGroupingChange: wP("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -37056,11 +37012,11 @@ var QP = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return QP.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return QP.extent;
+ if (typeof n == "number") return ZP.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return ZP.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return EP(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? QP[e.columnDef.aggregationFn];
+ return TP(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? ZP[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -37082,27 +37038,27 @@ var QP = {
};
}
};
-function eF(e, t, n) {
+function $P(e, t, n) {
if (!(t != null && t.length) || !n) return e;
let r = e.filter((e) => !t.includes(e.id));
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
}
-var tF = {
+var eF = {
getInitialState: (e) => ({
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: TP("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: wP("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = kP((e) => [fF(t, e)], (t) => t.findIndex((t) => t.id === e.id), AP(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => fF(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = fF(t, n);
+ e.getIndex = OP((e) => [dF(t, e)], (t) => t.findIndex((t) => t.id === e.id), kP(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => dF(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
+ let r = dF(t, n);
return r[r.length - 1]?.id === e.id;
};
},
createTable: (e) => {
e.setColumnOrder = (t) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(t), e.resetColumnOrder = (t) => {
e.setColumnOrder(t ? [] : e.initialState.columnOrder ?? []);
- }, e._getOrderColumnsFn = kP(() => [
+ }, e._getOrderColumnsFn = OP(() => [
e.getState().columnOrder,
e.getState().grouping,
e.options.groupedColumnMode
@@ -37117,18 +37073,18 @@ var tF = {
}
i = [...i, ...n];
}
- return eF(i, t, n);
- }, AP(e.options, "debugTable", "_getOrderColumnsFn"));
+ return $P(i, t, n);
+ }, kP(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, nF = () => ({
+}, tF = () => ({
left: [],
right: []
-}), rF = {
+}), nF = {
getInitialState: (e) => ({
- columnPinning: nF(),
+ columnPinning: tF(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: TP("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: wP("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -37152,75 +37108,75 @@ var tF = {
};
},
createRow: (e, t) => {
- e.getCenterVisibleCells = kP(() => [
+ e.getCenterVisibleCells = OP(() => [
e._getAllVisibleCells(),
t.getState().columnPinning.left,
t.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.column.id));
- }, AP(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = kP(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ }, kP(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = OP(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "left"
- })), AP(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = kP(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ })), kP(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = OP(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "right"
- })), AP(t.options, "debugRows", "getRightVisibleCells"));
+ })), kP(t.options, "debugRows", "getRightVisibleCells"));
},
createTable: (e) => {
- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? nF() : e.initialState?.columnPinning ?? nF()), e.getIsSomeColumnsPinned = (t) => {
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? tF() : e.initialState?.columnPinning ?? tF()), e.getIsSomeColumnsPinned = (t) => {
let n = e.getState().columnPinning;
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
- }, e.getLeftLeafColumns = kP(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), AP(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = kP(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), AP(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = kP(() => [
+ }, e.getLeftLeafColumns = OP(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), kP(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = OP(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), kP(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = OP(() => [
e.getAllLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.id));
- }, AP(e.options, "debugColumns", "getCenterLeafColumns"));
+ }, kP(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function iF(e) {
+function rF(e) {
return e || (typeof document < "u" ? document : null);
}
-var aF = {
+var iF = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, oF = () => ({
+}, aF = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), sF = {
- getDefaultColumnDef: () => aF,
+}), oF = {
+ getDefaultColumnDef: () => iF,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: oF(),
+ columnSizingInfo: aF(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: TP("columnSizing", e),
- onColumnSizingInfoChange: TP("columnSizingInfo", e)
+ onColumnSizingChange: wP("columnSizing", e),
+ onColumnSizingInfoChange: wP("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? aF.minSize, n ?? e.columnDef.size ?? aF.size), e.columnDef.maxSize ?? aF.maxSize);
- }, e.getStart = kP((e) => [
+ return Math.min(Math.max(e.columnDef.minSize ?? iF.minSize, n ?? e.columnDef.size ?? iF.size), e.columnDef.maxSize ?? iF.maxSize);
+ }, e.getStart = OP((e) => [
e,
- fF(t, e),
+ dF(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), AP(t.options, "debugColumns", "getStart")), e.getAfter = kP((e) => [
+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), kP(t.options, "debugColumns", "getStart")), e.getAfter = OP((e) => [
e,
- fF(t, e),
+ dF(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), AP(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), kP(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
let { [e.id]: n, ...r } = t;
return r;
@@ -37242,8 +37198,8 @@ var aF = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), uF(a) && a.touches && a.touches.length > 1)) return;
- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = uF(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ if (!r || !i || (a.persist == null || a.persist(), lF(a) && a.touches && a.touches.length > 1)) return;
+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = lF(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
typeof n == "number" && (t.setColumnSizingInfo((e) => {
let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
return e.columnSizingStart.forEach((e) => {
@@ -37268,7 +37224,7 @@ var aF = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = iF(n), m = {
+ }, p = rF(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -37278,8 +37234,8 @@ var aF = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = lF() ? { passive: !1 } : !1;
- uF(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
+ }, g = cF() ? { passive: !1 } : !1;
+ lF(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
...e,
startOffset: c,
startSize: o,
@@ -37295,12 +37251,12 @@ var aF = {
e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
}, e.resetHeaderSizeInfo = (t) => {
- e.setColumnSizingInfo(t ? oF() : e.initialState.columnSizingInfo ?? oF());
+ e.setColumnSizingInfo(t ? aF() : e.initialState.columnSizingInfo ?? aF());
}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
}
-}, cF = null;
-function lF() {
- if (typeof cF == "boolean") return cF;
+}, sF = null;
+function cF() {
+ if (typeof sF == "boolean") return sF;
let e = !1;
try {
let t = { get passive() {
@@ -37310,17 +37266,17 @@ function lF() {
} catch {
e = !1;
}
- return cF = e, cF;
+ return sF = e, sF;
}
-function uF(e) {
+function lF(e) {
return e.type === "touchstart";
}
-var dF = {
+var uF = {
getInitialState: (e) => ({
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: TP("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: wP("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -37335,7 +37291,7 @@ var dF = {
};
},
createRow: (e, t) => {
- e._getAllVisibleCells = kP(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), AP(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = kP(() => [
+ e._getAllVisibleCells = OP(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), kP(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = OP(() => [
e.getLeftVisibleCells(),
e.getCenterVisibleCells(),
e.getRightVisibleCells()
@@ -37343,10 +37299,10 @@ var dF = {
...e,
...t,
...n
- ], AP(t.options, "debugRows", "getVisibleCells"));
+ ], kP(t.options, "debugRows", "getVisibleCells"));
},
createTable: (e) => {
- let t = (t, n) => kP(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), AP(e.options, "debugColumns", t));
+ let t = (t, n) => OP(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), kP(e.options, "debugColumns", t));
e.getVisibleFlatColumns = t("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = t("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = t("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = t("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = t("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
e.setColumnVisibility(t ? {} : e.initialState.columnVisibility ?? {});
}, e.toggleAllColumnsVisible = (t) => {
@@ -37359,20 +37315,20 @@ var dF = {
};
}
};
-function fF(e, t) {
+function dF(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var pF = { createTable: (e) => {
+var fF = { createTable: (e) => {
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
};
-} }, mF = {
+} }, pF = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: TP("globalFilter", e),
+ onGlobalFilterChange: wP("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -37384,22 +37340,22 @@ var pF = { createTable: (e) => {
e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
},
createTable: (e) => {
- e.getGlobalAutoFilterFn = () => JP.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => qP.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return EP(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? JP[t];
+ return TP(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? qP[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, hF = {
+}, mF = {
getInitialState: (e) => ({
expanded: {},
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: TP("expanded", e),
+ onExpandedChange: wP("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -37470,18 +37426,18 @@ var pF = { createTable: (e) => {
};
};
}
-}, gF = 0, _F = 10, vF = () => ({
- pageIndex: gF,
- pageSize: _F
-}), yF = {
+}, hF = 0, gF = 10, _F = () => ({
+ pageIndex: hF,
+ pageSize: gF
+}), vF = {
getInitialState: (e) => ({
...e,
pagination: {
- ...vF(),
+ ..._F(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: TP("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: wP("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -37497,11 +37453,11 @@ var pF = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => wP(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? vF() : e.initialState.pagination ?? vF());
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => CP(t, e)), e.resetPagination = (t) => {
+ e.setPagination(t ? _F() : e.initialState.pagination ?? _F());
}, e.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = wP(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = CP(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
return r = Math.max(0, Math.min(r, i)), {
...n,
pageIndex: r
@@ -37509,13 +37465,13 @@ var pF = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? gF : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? gF);
+ e.setPageIndex(t ? hF : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? hF);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? _F : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? _F);
+ e.setPageSize(t ? gF : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? gF);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, wP(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, CP(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -37523,28 +37479,28 @@ var pF = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = wP(t, e.options.pageCount ?? -1);
+ let r = CP(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
};
- }), e.getPageOptions = kP(() => [e.getPageCount()], (e) => {
+ }), e.getPageOptions = OP(() => [e.getPageCount()], (e) => {
let t = [];
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
- }, AP(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
+ }, kP(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
let { pageIndex: t } = e.getState().pagination, n = e.getPageCount();
return n === -1 || n !== 0 && t < n - 1;
}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
}
-}, bF = () => ({
+}, yF = () => ({
top: [],
bottom: []
-}), xF = {
+}), bF = {
getInitialState: (e) => ({
- rowPinning: bF(),
+ rowPinning: yF(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: TP("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: wP("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -37583,7 +37539,7 @@ var pF = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? bF() : e.initialState?.rowPinning ?? bF()), e.getIsSomeRowsPinned = (t) => {
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? yF() : e.initialState?.rowPinning ?? yF()), e.getIsSomeRowsPinned = (t) => {
let n = e.getState().rowPinning;
return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
@@ -37592,22 +37548,22 @@ var pF = { createTable: (e) => {
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
...e,
position: r
- })), e.getTopRows = kP(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), AP(e.options, "debugRows", "getTopRows")), e.getBottomRows = kP(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), AP(e.options, "debugRows", "getBottomRows")), e.getCenterRows = kP(() => [
+ })), e.getTopRows = OP(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), kP(e.options, "debugRows", "getTopRows")), e.getBottomRows = OP(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), kP(e.options, "debugRows", "getBottomRows")), e.getCenterRows = OP(() => [
e.getRowModel().rows,
e.getState().rowPinning.top,
e.getState().rowPinning.bottom
], (e, t, n) => {
let r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
return e.filter((e) => !r.has(e.id));
- }, AP(e.options, "debugRows", "getCenterRows"));
+ }, kP(e.options, "debugRows", "getCenterRows"));
}
-}, SF = {
+}, xF = {
getInitialState: (e) => ({
rowSelection: {},
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: TP("rowSelection", e),
+ onRowSelectionChange: wP("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -37626,21 +37582,21 @@ var pF = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- CF(i, t.id, r, !0, e);
+ SF(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = kP(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? wF(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = OP(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? CF(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, AP(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = kP(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? wF(e, n) : {
+ }, kP(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = OP(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? CF(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, AP(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = kP(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? wF(e, n) : {
+ }, kP(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = OP(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? CF(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, AP(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
+ }, kP(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
let t = e.getFilteredRowModel().flatRows, { rowSelection: n } = e.getState(), r = !!(t.length && Object.keys(n).length);
return r && t.some((e) => e.getCanSelect() && !n[e.id]) && (r = !1), r;
}, e.getIsAllPageRowsSelected = () => {
@@ -37664,17 +37620,17 @@ var pF = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return CF(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return SF(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return TF(e, n);
+ return wF(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return EF(e, n) === "some";
+ return TF(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return EF(e, n) === "all";
+ return TF(e, n) === "all";
}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
let t = e.getCanSelect();
return (n) => {
@@ -37682,16 +37638,16 @@ var pF = { createTable: (e) => {
};
};
}
-}, CF = (e, t, n, r, i) => {
+}, SF = (e, t, n, r, i) => {
var a;
let o = i.getRow(t, !0);
- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => CF(e, t.id, n, r, i));
+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => SF(e, t.id, n, r, i));
};
-function wF(e, t) {
+function CF(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = TF(e, n);
+ let o = wF(e, n);
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
...e,
subRows: a(e.subRows)
@@ -37704,32 +37660,32 @@ function wF(e, t) {
rowsById: i
};
}
-function TF(e, t) {
+function wF(e, t) {
return t[e.id] ?? !1;
}
-function EF(e, t, n) {
+function TF(e, t, n) {
var r;
if (!((r = e.subRows) != null && r.length)) return !1;
let i = !0, a = !1;
return e.subRows.forEach((e) => {
- if (!(a && !i) && (e.getCanSelect() && (TF(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = EF(e, t);
+ if (!(a && !i) && (e.getCanSelect() && (wF(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
+ let n = TF(e, t);
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
}
}), i ? "all" : a ? "some" : !1;
}
-var DF = /([0-9]+)/gm, OF = (e, t, n) => IF(FF(e.getValue(n)).toLowerCase(), FF(t.getValue(n)).toLowerCase()), kF = (e, t, n) => IF(FF(e.getValue(n)), FF(t.getValue(n))), AF = (e, t, n) => PF(FF(e.getValue(n)).toLowerCase(), FF(t.getValue(n)).toLowerCase()), jF = (e, t, n) => PF(FF(e.getValue(n)), FF(t.getValue(n))), MF = (e, t, n) => {
+var EF = /([0-9]+)/gm, DF = (e, t, n) => FF(PF(e.getValue(n)).toLowerCase(), PF(t.getValue(n)).toLowerCase()), OF = (e, t, n) => FF(PF(e.getValue(n)), PF(t.getValue(n))), kF = (e, t, n) => NF(PF(e.getValue(n)).toLowerCase(), PF(t.getValue(n)).toLowerCase()), AF = (e, t, n) => NF(PF(e.getValue(n)), PF(t.getValue(n))), jF = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, NF = (e, t, n) => PF(e.getValue(n), t.getValue(n));
-function PF(e, t) {
+}, MF = (e, t, n) => NF(e.getValue(n), t.getValue(n));
+function NF(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function FF(e) {
+function PF(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function IF(e, t) {
- let n = e.split(DF).filter(Boolean), r = t.split(DF).filter(Boolean);
+function FF(e, t) {
+ let n = e.split(EF).filter(Boolean), r = t.split(EF).filter(Boolean);
for (; n.length && r.length;) {
let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
if (isNaN(o[0])) {
@@ -37743,22 +37699,22 @@ function IF(e, t) {
}
return n.length - r.length;
}
-var LF = {
- alphanumeric: OF,
- alphanumericCaseSensitive: kF,
- text: AF,
- textCaseSensitive: jF,
- datetime: MF,
- basic: NF
-}, RF = [
- FP,
- dF,
- tF,
- rF,
- RP,
- XP,
+var IF = {
+ alphanumeric: DF,
+ alphanumericCaseSensitive: OF,
+ text: kF,
+ textCaseSensitive: AF,
+ datetime: jF,
+ basic: MF
+}, LF = [
+ PP,
+ uF,
+ eF,
+ nF,
+ LP,
+ YP,
+ fF,
pF,
- mF,
{
getInitialState: (e) => ({
sorting: [],
@@ -37769,7 +37725,7 @@ var LF = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: TP("sorting", e),
+ onSortingChange: wP("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -37777,13 +37733,13 @@ var LF = {
let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
for (let t of n) {
let n = t?.getValue(e.id);
- if (Object.prototype.toString.call(n) === "[object Date]") return LF.datetime;
- if (typeof n == "string" && (r = !0, n.split(DF).length > 1)) return LF.alphanumeric;
+ if (Object.prototype.toString.call(n) === "[object Date]") return IF.datetime;
+ if (typeof n == "string" && (r = !0, n.split(EF).length > 1)) return IF.alphanumeric;
}
- return r ? LF.text : LF.basic;
+ return r ? IF.text : IF.basic;
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
if (!e) throw Error();
- return EP(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? LF[e.columnDef.sortingFn];
+ return TP(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? IF[e.columnDef.sortingFn];
}, e.toggleSorting = (n, r) => {
let i = e.getNextSortingOrder(), a = n != null;
t.setSorting((o) => {
@@ -37820,15 +37776,15 @@ var LF = {
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
}
},
- $P,
- hF,
- yF,
+ QP,
+ mF,
+ vF,
+ bF,
xF,
- SF,
- sF
+ oF
];
-function zF(e) {
- let t = [...RF, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
+function RF(e) {
+ let t = [...LF, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
...r,
...e
}, a = { ...e.initialState ?? {} };
@@ -37854,7 +37810,7 @@ function zF(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = wP(e, n.options);
+ let t = CP(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -37869,7 +37825,7 @@ function zF(e) {
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();
return r;
},
- _getDefaultColumnDef: kP(() => [n.options.defaultColumn], (e) => (e ??= {}, {
+ _getDefaultColumnDef: OP(() => [n.options.defaultColumn], (e) => (e ??= {}, {
header: (e) => {
let t = e.header.column.columnDef;
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
@@ -37880,20 +37836,20 @@ function zF(e) {
},
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
...e
- }), AP(e, "debugColumns", "_getDefaultColumnDef")),
+ }), kP(e, "debugColumns", "_getDefaultColumnDef")),
_getColumnDefs: () => n.options.columns,
- getAllColumns: kP(() => [n._getColumnDefs()], (e) => {
+ getAllColumns: OP(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = MP(n, e, i, r), o = e;
+ let a = jP(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
return t(e);
- }, AP(e, "debugColumns", "getAllColumns")),
- getAllFlatColumns: kP(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), AP(e, "debugColumns", "getAllFlatColumns")),
- _getAllFlatColumnsById: kP(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), AP(e, "debugColumns", "getAllFlatColumnsById")),
- getAllLeafColumns: kP(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), AP(e, "debugColumns", "getAllLeafColumns")),
+ }, kP(e, "debugColumns", "getAllColumns")),
+ getAllFlatColumns: OP(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), kP(e, "debugColumns", "getAllFlatColumns")),
+ _getAllFlatColumnsById: OP(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), kP(e, "debugColumns", "getAllFlatColumnsById")),
+ getAllLeafColumns: OP(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), kP(e, "debugColumns", "getAllLeafColumns")),
getColumn: (e) => n._getAllFlatColumnsById()[e]
};
Object.assign(n, c);
@@ -37903,8 +37859,8 @@ function zF(e) {
}
return n;
}
-function BF() {
- return (e) => kP(() => [e.options.data], (t) => {
+function zF() {
+ return (e) => OP(() => [e.options.data], (t) => {
let n = {
rows: [],
flatRows: [],
@@ -37913,7 +37869,7 @@ function BF() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = LP(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = IP(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
var s;
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
@@ -37922,9 +37878,9 @@ function BF() {
return o;
};
return n.rows = r(t), n;
- }, AP(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
+ }, kP(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function VF(e) {
+function BF(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -37935,8 +37891,8 @@ function VF(e) {
rowsById: e.rowsById
};
}
-function HF(e) {
- return (e) => kP(() => [
+function VF(e) {
+ return (e) => OP(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
e.options.paginateExpandedRows ? void 0 : e.getState().expanded
@@ -37949,7 +37905,7 @@ function HF(e) {
rows: a,
flatRows: o,
rowsById: s
- } : VF({
+ } : BF({
rows: a,
flatRows: o,
rowsById: s
@@ -37958,32 +37914,32 @@ function HF(e) {
u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);
};
return u.rows.forEach(d), u;
- }, AP(e.options, "debugTable", "getPaginationRowModel"));
+ }, kP(e.options, "debugTable", "getPaginationRowModel"));
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function UF(e, t) {
- return e ? WF(e) ? /*#__PURE__*/ P.createElement(e, t) : e : null;
+function HF(e, t) {
+ return e ? UF(e) ? /*#__PURE__*/ P.createElement(e, t) : e : null;
}
-function WF(e) {
- return GF(e) || typeof e == "function" || KF(e);
+function UF(e) {
+ return WF(e) || typeof e == "function" || GF(e);
}
-function GF(e) {
+function WF(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function KF(e) {
+function GF(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function qF(e) {
+function KF(e) {
let t = {
state: {},
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = P.useState(() => ({ current: zF(t) })), [r, i] = P.useState(() => n.current.initialState);
+ }, [n] = P.useState(() => ({ current: RF(t) })), [r, i] = P.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -37998,7 +37954,7 @@ function qF(e) {
}
//#endregion
//#region src/react/components/selection-dock.tsx
-function JF({ children: e, count: t, label: n }) {
+function qF({ children: e, count: t, label: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
role: "group",
"aria-label": n,
@@ -38012,20 +37968,469 @@ function JF({ children: e, count: t, label: n }) {
});
}
//#endregion
+//#region src/react/follow-manage/add-feed.tsx
+var JF = "输入女优名,到 JavDB 找她的演员页";
+function YF(e, t) {
+ let n = /* @__PURE__ */ new Map();
+ for (let r of e.candidates) t.has(r.id) && r.held_by && n.set(r.held_by.id, r.held_by.name);
+ if (n.size > 1) return {
+ text: `所勾的卡分属账本里不同的人:${[...n.values()].join("、")},先去合并再订`,
+ blocked: !0
+ };
+ let [r] = n.values();
+ return r ? {
+ text: `会登记到「${r}」名下`,
+ blocked: !1
+ } : e.known ? {
+ text: `会登记到账本里的「${e.known.name}」名下`,
+ blocked: !1
+ } : {
+ text: `账本里还没有「${e.q}」,会新建一位`,
+ blocked: !1
+ };
+}
+function XF({ card: e, picked: t, onPick: n }) {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
+ className: "flex flex-wrap items-center gap-2",
+ children: [/* @__PURE__ */ (0, F.jsx)(pj, {
+ isSelected: t,
+ onChange: n,
+ children: /* @__PURE__ */ (0, F.jsxs)("span", {
+ className: "flex min-w-0 flex-wrap items-center gap-1.5",
+ children: [
+ /* @__PURE__ */ (0, F.jsx)("span", {
+ className: "min-w-0 break-words",
+ children: e.names.join("、")
+ }),
+ e.record ? /* @__PURE__ */ (0, F.jsx)(VC, {
+ variant: "caption",
+ color: "neutral",
+ children: e.record
+ }) : null,
+ e.held_by ? /* @__PURE__ */ (0, F.jsx)("small", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: `已在「${e.held_by.name}」名下`
+ }) : null
+ ]
+ })
+ }), /* @__PURE__ */ (0, F.jsx)(QA, {
+ href: e.url,
+ children: e.id
+ })]
+ });
+}
+function ZF({ readOnly: e, toast: t, onAdded: n }) {
+ let [r, i] = (0, P.useState)(""), [a, o] = (0, P.useState)(null), [s, c] = (0, P.useState)(/* @__PURE__ */ new Set()), l = ew(), u = () => {
+ let t = r.trim();
+ !t || e || l.run("lookup", (e) => kN(t, e), (e) => {
+ o(e), c(new Set(e.suggested));
+ });
+ }, d = (e) => {
+ e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), u());
+ }, f = () => {
+ o(null), c(/* @__PURE__ */ new Set()), l.setError("");
+ }, p = () => {
+ a && l.run("follow", (e) => AN(a.q, [...s], e), (e) => {
+ t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
+ });
+ }, m = a ? YF(a, s) : null;
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
+ className: qC({
+ padding: "none",
+ className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
+ }),
+ children: [
+ /* @__PURE__ */ (0, F.jsx)("h3", {
+ className: "text-title-2-medium text-text-primary",
+ children: "添加 JAV 订阅"
+ }),
+ /* @__PURE__ */ (0, F.jsxs)("div", {
+ className: "flex flex-wrap items-end gap-2",
+ children: [/* @__PURE__ */ (0, F.jsx)("div", {
+ className: "min-w-64 grow",
+ children: /* @__PURE__ */ (0, F.jsx)(gD, {
+ "aria-label": "女优名",
+ placeholder: JF,
+ value: r,
+ leadingIcon: ES,
+ isDisabled: e,
+ onChange: i,
+ onKeyDown: d
+ })
+ }), /* @__PURE__ */ (0, F.jsx)(G, {
+ variant: "primary",
+ disabled: e || !r.trim(),
+ ...Y(l.busy === "lookup"),
+ onClick: u,
+ children: "查找"
+ })]
+ }),
+ l.error ? /* @__PURE__ */ (0, F.jsx)(J, {
+ tone: "error",
+ title: "这一次没有完成",
+ children: l.error
+ }) : null,
+ a ? /* @__PURE__ */ (0, F.jsxs)("div", {
+ className: "flex flex-col gap-3",
+ children: [
+ /* @__PURE__ */ (0, F.jsx)(ZA, { children: "JavDB 上的演员卡" }),
+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, F.jsx)(XF, {
+ 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, F.jsx)(YA, { children: "JavDB 上没有搜到这个名字。" }),
+ a.candidates.length ? /* @__PURE__ */ (0, F.jsx)(YA, {
+ role: "status",
+ children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
+ }) : null,
+ /* @__PURE__ */ (0, F.jsxs)("div", {
+ className: "flex flex-wrap items-center gap-2",
+ children: [a.candidates.length ? /* @__PURE__ */ (0, F.jsx)(G, {
+ variant: "primary",
+ size: "small",
+ disabled: e || !s.size || m.blocked,
+ ...Y(l.busy === "follow"),
+ onClick: p,
+ children: `添加订阅(${s.size})`
+ }) : null, /* @__PURE__ */ (0, F.jsx)(G, {
+ variant: "secondary",
+ size: "small",
+ onClick: f,
+ children: "关闭"
+ })]
+ })
+ ]
+ }) : null
+ ]
+ });
+}
+//#endregion
+//#region src/react/follow-manage/feed-sources.tsx
+var QF = {
+ select: "选择",
+ name: "名称",
+ kind: "类型",
+ origin: "来源",
+ status: "状态",
+ interval: "频率",
+ fetched: "上次拉取",
+ fresh: "上次新增",
+ enabled: "启用",
+ actions: "操作"
+}, $F = /* @__PURE__ */ new Set([
+ "select",
+ "enabled",
+ "actions"
+]), eI = () => X.invalidateQueries({
+ queryKey: LM,
+ exact: !0
+}), tI = (e) => e.name || e.url, nI = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
+function rI(e) {
+ try {
+ return new URL(e).hostname.replace(/^www\./, "");
+ } catch {
+ return e;
+ }
+}
+function iI({ source: e }) {
+ return e.last_error ? /* @__PURE__ */ (0, F.jsx)(VC, {
+ variant: "caption",
+ color: "rose",
+ children: "拉取失败"
+ }) : e.enabled ? /* @__PURE__ */ (0, F.jsx)(VC, {
+ variant: "caption",
+ color: "lime",
+ children: "正常"
+ }) : /* @__PURE__ */ (0, F.jsx)(VC, {
+ variant: "caption",
+ color: "neutral",
+ children: "已暂停"
+ });
+}
+function aI(e, t) {
+ let n = e.length === 1 ? e[0] : null;
+ return l({
+ title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
+ body: n ? `将移除订阅源「${tI(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
+ confirmLabel: n ? "移除订阅源" : "移除所选订阅源",
+ danger: !0,
+ onConfirm: t
+ });
+}
+function oI({ readOnly: e, toast: t }) {
+ let n = St({
+ queryKey: LM,
+ queryFn: ({ signal: e }) => TN(e)
+ }), r = ew(), a = n.data, o = (0, P.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, P.useState)(/* @__PURE__ */ new Set());
+ (0, P.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 l = Ct({
+ mutationFn: async (e) => {
+ let t = await i(e.ids, 4, async (t) => {
+ e.action === "remove" ? await DN(t) : await EN(t, e.action === "enabled");
+ });
+ return {
+ ...e,
+ results: t
+ };
+ },
+ onSuccess: (e) => {
+ let n = e.results.filter((e) => !e.ok), i = e.ids.length - n.length;
+ if (c(/* @__PURE__ */ new Set()), eI(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
+ let e = n[0];
+ r.setError(`${n.length} 条没有写入:${e.ok ? "" : K(e.error)}`);
+ }
+ },
+ onError: (e) => r.setError(K(e))
+ }), u = (0, P.useRef)({
+ readOnly: e,
+ toggle: () => {},
+ remove: () => {}
+ });
+ u.current = {
+ readOnly: e,
+ toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => EN(e.id, t, n), () => void eI()),
+ remove: (e) => void aI([e], async () => {
+ await DN(e.id), t(`已移除订阅源「${tI(e)}」`), eI();
+ })
+ };
+ let d = (0, P.useMemo)(() => {
+ let e = SP(), t = (e) => () => QF[e] || e;
+ return [
+ e.display({
+ id: "select",
+ header: t("select"),
+ cell: (e) => /* @__PURE__ */ (0, F.jsx)(pj, {
+ slot: null,
+ isSelected: e.row.getIsSelected(),
+ onChange: (t) => e.row.toggleSelected(t),
+ "aria-label": `选择 ${tI(e.row.original)}`
+ })
+ }),
+ e.accessor(tI, {
+ id: "name",
+ header: t("name"),
+ cell: (e) => /* @__PURE__ */ (0, F.jsx)("span", {
+ className: "whitespace-nowrap text-body-medium text-text-primary",
+ children: e.getValue()
+ })
+ }),
+ e.accessor((e) => e.kind_label, {
+ id: "kind",
+ header: t("kind"),
+ cell: (e) => /* @__PURE__ */ (0, F.jsx)("span", {
+ className: "whitespace-nowrap",
+ children: e.getValue()
+ })
+ }),
+ e.accessor((e) => e.url, {
+ id: "origin",
+ header: t("origin"),
+ cell: (e) => /* @__PURE__ */ (0, F.jsx)("a", {
+ href: e.getValue(),
+ target: "_blank",
+ rel: "noreferrer noopener",
+ title: "打开来源页面",
+ className: "text-text-primary underline-offset-2 hover:underline",
+ children: rI(e.getValue())
+ })
+ }),
+ e.display({
+ id: "status",
+ header: t("status"),
+ cell: (e) => /* @__PURE__ */ (0, F.jsx)(iI, { source: e.row.original })
+ }),
+ e.accessor((e) => nI(e.interval_minutes), {
+ id: "interval",
+ header: t("interval"),
+ cell: (e) => /* @__PURE__ */ (0, F.jsx)("span", {
+ className: "whitespace-nowrap",
+ children: e.getValue()
+ })
+ }),
+ e.accessor((e) => e.last_fetched_at ? Ik(e.last_fetched_at) : "还没拉过", {
+ id: "fetched",
+ header: t("fetched"),
+ cell: (e) => /* @__PURE__ */ (0, F.jsx)("span", {
+ className: "whitespace-nowrap tabular-nums",
+ children: e.getValue()
+ })
+ }),
+ e.accessor((e) => e.last_new_count, {
+ id: "fresh",
+ header: t("fresh"),
+ cell: (e) => /* @__PURE__ */ (0, F.jsx)("span", {
+ className: "whitespace-nowrap tabular-nums",
+ children: `${e.getValue()} 条`
+ })
+ }),
+ e.display({
+ id: "enabled",
+ header: t("enabled"),
+ cell: (e) => /* @__PURE__ */ (0, F.jsx)(ok, {
+ "aria-label": `启用 ${tI(e.row.original)}`,
+ isSelected: e.row.original.enabled,
+ isDisabled: u.current.readOnly,
+ onChange: (t) => u.current.toggle(e.row.original, t)
+ })
+ }),
+ e.display({
+ id: "actions",
+ header: t("actions"),
+ cell: (e) => /* @__PURE__ */ (0, F.jsx)(G, {
+ variant: "secondary",
+ size: "xs",
+ iconOnly: !0,
+ leadingIcon: vS,
+ "aria-label": `移除 ${tI(e.row.original)}`,
+ disabled: u.current.readOnly,
+ onClick: () => u.current.remove(e.row.original)
+ })
+ })
+ ];
+ }, []), f = (0, P.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), p = KF({
+ data: o,
+ columns: d,
+ getRowId: (e) => String(e.id),
+ state: { rowSelection: f },
+ enableRowSelection: !0,
+ onRowSelectionChange: (e) => {
+ let t = typeof e == "function" ? e(f) : e;
+ c(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
+ },
+ getCoreRowModel: zF()
+ });
+ if (!a) return n.error ? /* @__PURE__ */ (0, F.jsx)(J, {
+ tone: "error",
+ title: "打不开订阅源",
+ children: K(n.error)
+ }) : /* @__PURE__ */ (0, F.jsx)(YA, { children: "正在读订阅源。" });
+ let m = () => void r.run("check", (e) => ON(e), () => void eI()), h = (e) => c((t) => {
+ let n = new Set(t);
+ return n.has(e) ? n.delete(e) : n.add(e), n;
+ }), g = o.filter((e) => s.has(e.id)), _ = o.filter((e) => e.last_error);
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
+ className: "flex flex-col gap-3",
+ children: [
+ /* @__PURE__ */ (0, F.jsx)(ZF, {
+ readOnly: e,
+ toast: t,
+ onAdded: () => void eI()
+ }),
+ /* @__PURE__ */ (0, F.jsxs)("div", {
+ className: "flex flex-wrap items-center justify-between gap-3",
+ children: [/* @__PURE__ */ (0, F.jsx)(YA, {
+ role: "status",
+ children: a.unread ? `有 ${a.unread} 条新作还没看` : "新作都看过了"
+ }), /* @__PURE__ */ (0, F.jsx)(G, {
+ onClick: m,
+ disabled: e,
+ ...Y(r.busy === "check"),
+ children: "立即拉取"
+ })]
+ }),
+ _.length || r.error ? /* @__PURE__ */ (0, F.jsxs)("div", {
+ className: "flex flex-col gap-3",
+ children: [_.map((e) => /* @__PURE__ */ (0, F.jsx)(J, {
+ tone: "error",
+ title: `${tI(e)} 拉取失败`,
+ children: e.last_error
+ }, e.id)), r.error ? /* @__PURE__ */ (0, F.jsx)(XA, { children: r.error }) : null]
+ }) : null,
+ g.length ? /* @__PURE__ */ (0, F.jsxs)(qF, {
+ label: "订阅源批量操作",
+ count: `已选 ${g.length} 条订阅源`,
+ children: [
+ /* @__PURE__ */ (0, F.jsx)(G, {
+ variant: "secondary",
+ size: "small",
+ disabled: e,
+ ...Y(l.isPending),
+ onClick: () => l.mutate({
+ ids: g.map((e) => e.id),
+ action: "enabled"
+ }),
+ children: "启用"
+ }),
+ /* @__PURE__ */ (0, F.jsx)(G, {
+ variant: "secondary",
+ size: "small",
+ disabled: e,
+ ...Y(l.isPending),
+ onClick: () => l.mutate({
+ ids: g.map((e) => e.id),
+ action: "paused"
+ }),
+ children: "暂停"
+ }),
+ /* @__PURE__ */ (0, F.jsx)(G, {
+ variant: "danger",
+ size: "small",
+ disabled: e,
+ ...Y(l.isPending),
+ onClick: () => void aI(g, () => l.mutateAsync({
+ ids: g.map((e) => e.id),
+ action: "remove"
+ })),
+ children: "移除"
+ }),
+ /* @__PURE__ */ (0, F.jsx)(G, {
+ variant: "ghost",
+ size: "small",
+ onClick: () => c(/* @__PURE__ */ new Set()),
+ children: "取消选择"
+ })
+ ]
+ }) : null,
+ o.length ? /* @__PURE__ */ (0, F.jsx)(gj, {
+ onRowClick: (e) => h(Number(e)),
+ children: /* @__PURE__ */ (0, F.jsxs)(mj, {
+ "aria-label": "订阅源",
+ size: "sm",
+ children: [/* @__PURE__ */ (0, F.jsx)(HE, { children: p.getHeaderGroups()[0].headers.map((e) => {
+ let t = HF(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, F.jsx)(UE, {
+ id: e.id,
+ isRowHeader: e.column.id === "name",
+ children: $F.has(e.column.id) ? /* @__PURE__ */ (0, F.jsx)(I_, { children: t }) : t
+ }, e.id);
+ }) }), /* @__PURE__ */ (0, F.jsx)(GE, { children: p.getRowModel().rows.map((e) => /* @__PURE__ */ (0, F.jsx)(JE, {
+ id: e.id,
+ "data-follow-selected": e.getIsSelected() || void 0,
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, F.jsx)(XE, { children: HF(e.column.columnDef.cell, e.getContext()) }, e.id))
+ }, e.id)) })]
+ })
+ }) : /* @__PURE__ */ (0, F.jsx)(JC, {
+ icon: TS,
+ title: "还没有订阅源",
+ shell: "plain",
+ children: "在上面按女优名添加,或在人物页点「订阅新作」。"
+ })
+ ]
+ });
+}
+//#endregion
//#region src/react/follow-manage/source-list.tsx
-var YF = Object.fromEntries(Object.entries(VM).map(([e, t]) => [t, e])), XF = 740;
-function ZF() {
+var sI = Object.fromEntries(Object.entries(HM).map(([e, t]) => [t, e])), cI = 740;
+function lI() {
let [e, t] = (0, P.useState)(!1), n = (0, P.useRef)(null), r = (0, P.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < XF));
- r.observe(e), n.current = r, t(e.clientWidth < XF);
+ let r = new ResizeObserver(() => t(e.clientWidth < cI));
+ r.observe(e), n.current = r, t(e.clientWidth < cI);
}, []);
return (0, P.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var QF = {
+var uI = {
select: "选择",
author: "创作者",
source: "来源",
@@ -38034,7 +38439,7 @@ var QF = {
checked: "上次检查",
actions: "操作"
};
-function $F({ page: e, pages: t, onPage: n }) {
+function dI({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, F.jsxs)("nav", {
"aria-label": "关注列表分页",
className: "flex flex-wrap items-center justify-center gap-2",
@@ -38071,19 +38476,22 @@ function $F({ page: e, pages: t, onPage: n }) {
]
});
}
-function eI({ source: e, selected: t, onToggle: n, handlers: r }) {
+function fI({ source: e, selected: t, onToggle: n, handlers: r }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
+ onClick: (e) => {
+ hj(e, e.currentTarget) && n(!t);
+ },
children: [
- /* @__PURE__ */ (0, F.jsx)(mj, {
+ /* @__PURE__ */ (0, F.jsx)(pj, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
/* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, F.jsx)(JN, { source: e }), e.last_error ? /* @__PURE__ */ (0, F.jsx)("small", {
+ children: [/* @__PURE__ */ (0, F.jsx)(ZN, { source: e }), e.last_error ? /* @__PURE__ */ (0, F.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.last_error
}) : null]
@@ -38091,15 +38499,15 @@ function eI({ source: e, selected: t, onToggle: n, handlers: r }) {
/* @__PURE__ */ (0, F.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, F.jsx)(GN, {
+ children: /* @__PURE__ */ (0, F.jsx)(JN, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, F.jsx)(qN, { source: e }),
+ /* @__PURE__ */ (0, F.jsx)(XN, { source: e }),
/* @__PURE__ */ (0, F.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: FN(e)
+ children: RN(e)
}),
/* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
@@ -38107,7 +38515,7 @@ function eI({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: TS,
+ leadingIcon: wS,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
...Y(r.busy),
@@ -38116,7 +38524,7 @@ function eI({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: yS,
+ leadingIcon: vS,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -38125,8 +38533,8 @@ function eI({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function tI({ 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(JM).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = sN(r, c);
+function pI({ 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(YM).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = cN(r, c);
return /* @__PURE__ */ (0, F.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
className: qC({
@@ -38139,7 +38547,7 @@ function tI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, F.jsx)(KN, {
+ /* @__PURE__ */ (0, F.jsx)(YN, {
group: e,
name: t
}),
@@ -38151,7 +38559,7 @@ function tI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: TS,
+ leadingIcon: wS,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
...Y(i.busy),
@@ -38160,7 +38568,7 @@ function tI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
/* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, F.jsx)(GN, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, F.jsx)(I_, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, F.jsx)(JN, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, F.jsx)(I_, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@ -38169,7 +38577,7 @@ function tI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
/* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: hS,
+ leadingIcon: mS,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
@@ -38180,7 +38588,7 @@ function tI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? mS : dS,
+ leadingIcon: n ? pS : uS,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
@@ -38190,7 +38598,7 @@ function tI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, F.jsx)(eI, {
+ children: e.map((e) => /* @__PURE__ */ (0, F.jsx)(fI, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -38199,31 +38607,31 @@ function tI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
})]
});
}
-function nI(e) {
- let { data: t, sort: n, dir: r, page: a, layout: o, pageSize: s, selected: c, readOnly: u, onSort: d, onPage: f, onLayout: p, onPageSize: m, onSelected: h, toast: g, openFollow: _ } = e, v = t.sources, y = (0, P.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, P.useState)(/* @__PURE__ */ new Set()), [C, w] = ZF(), [T, E] = (0, P.useState)(""), D = (0, P.useMemo)(() => rN(v, n, r, y), [
+function mI(e) {
+ let { data: t, sort: n, dir: r, page: a, layout: o, pageSize: s, selected: c, readOnly: u, onSort: d, onPage: f, onLayout: p, onPageSize: m, onSelected: h, toast: g, openFollow: _ } = e, v = t.sources, y = (0, P.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, P.useState)(/* @__PURE__ */ new Set()), [C, w] = lI(), [T, E] = (0, P.useState)(""), D = (0, P.useMemo)(() => iN(v, n, r, y), [
v,
n,
r,
y
- ]), O = (0, P.useMemo)(() => iN(D, n, r, y), [
+ ]), O = (0, P.useMemo)(() => aN(D, n, r, y), [
D,
n,
r,
y
- ]), { job: k, running: A, outcome: j, start: M } = uj({
- queryKey: PM,
- queryFn: ({ signal: e }) => dN(e),
- start: (e) => mN(e),
+ ]), { job: k, running: A, outcome: j, start: M } = lj({
+ queryKey: FM,
+ queryFn: ({ signal: e }) => fN(e),
+ start: (e) => hN(e),
onError: (e) => E(K(e)),
onFinish: (e) => {
- jN(), g(e.status === "failed" ? e.error || "检查失败" : MN(e));
+ PN(), g(e.status === "failed" ? e.error || "检查失败" : FN(e));
}
}), N = (e) => {
A || M.isPending || (E(""), M.mutate(e));
- }, I = (e, t) => h(cN(c, [e], t)), ee = (e, t) => h(cN(c, e, t)), te = Ct({
- mutationFn: (e) => _N(e),
+ }, I = (e, t) => h(lN(c, [e], t)), ee = (e, t) => h(lN(c, e, t)), te = Ct({
+ mutationFn: (e) => vN(e),
onSuccess: (e, t) => {
- AN([t]), h(cN(c, [t], !1)), g("已取消关注来源");
+ NN([t]), h(lN(c, [t], !1)), g("已取消关注来源");
},
onError: (e) => E(K(e))
}), ne = (e) => void l({
@@ -38235,7 +38643,7 @@ function nI(e) {
}), re = Ct({
mutationFn: async (e) => {
let t = await i(e.ids, 4, async (t) => {
- e.action === "remove" ? await _N(t) : await gN(t, e.action === "enabled");
+ e.action === "remove" ? await vN(t) : await _N(t, e.action === "enabled");
});
return {
...e,
@@ -38244,9 +38652,9 @@ function nI(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") AN(e.done);
- else for (let t of e.done) kN(t, { enabled: e.action === "enabled" });
- h(cN(c, e.done, !1));
+ if (e.action === "remove") NN(e.done);
+ else for (let t of e.done) MN(t, { enabled: e.action === "enabled" });
+ h(lN(c, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
E(`${t.length}/${e.ids.length} 个来源未更新:${K(t[0]?.error)}`);
@@ -38259,18 +38667,18 @@ function nI(e) {
onError: (e) => E(K(e))
}), ie = Ct({
mutationFn: async (e) => {
- let t = ((await CN()).groups || []).flatMap((e) => [
+ let t = ((await wN()).groups || []).flatMap((e) => [
e.primary,
...e.variants,
...e.duplicates
]).filter((e) => e.status === "new").map((e) => e.id);
return {
ids: t,
- failed: (await i(t, 6, (t) => SN(t, e))).filter((e) => !e.ok)
+ failed: (await i(t, 6, (t) => CN(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
- if (jN(), e.failed.length) {
+ if (PN(), e.failed.length) {
E(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
@@ -38290,12 +38698,12 @@ function nI(e) {
readOnly: u
};
let oe = ae.current, se = (0, P.useMemo)(() => {
- let e = CP(), t = (e) => () => QF[e] || e;
+ let e = SP(), t = (e) => () => uI[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, F.jsx)(mj, {
+ cell: (e) => /* @__PURE__ */ (0, F.jsx)(pj, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -38307,7 +38715,7 @@ function nI(e) {
header: t("author"),
cell: (e) => /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(KN, {
+ children: [/* @__PURE__ */ (0, F.jsx)(YN, {
group: e.row.original.group,
name: e.row.original.author
}), /* @__PURE__ */ (0, F.jsx)("span", {
@@ -38321,7 +38729,7 @@ function nI(e) {
header: t("source"),
cell: (e) => /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, F.jsx)(JN, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, F.jsx)("small", {
+ children: [/* @__PURE__ */ (0, F.jsx)(ZN, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, F.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.row.original.source.last_error
}) : null]
@@ -38332,18 +38740,18 @@ function nI(e) {
header: t("provider"),
cell: (e) => /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, F.jsx)(GN, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, F.jsx)(JN, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, F.jsx)(qN, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, F.jsx)(XN, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => FN(e.row.original.source)
+ cell: (e) => RN(e.row.original.source)
}),
e.display({
id: "actions",
@@ -38354,7 +38762,7 @@ function nI(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: TS,
+ leadingIcon: wS,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
disabled: !e.row.original.source.enabled || oe.readOnly,
...Y(oe.busy),
@@ -38363,7 +38771,7 @@ function nI(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: yS,
+ leadingIcon: vS,
"aria-label": `移除 ${e.row.original.source.label}`,
disabled: oe.readOnly,
onClick: () => ae.current.remove(e.row.original.source)
@@ -38372,12 +38780,12 @@ function nI(e) {
})
];
}, [oe]), ce = (0, P.useMemo)(() => {
- let e = YF[n];
+ let e = sI[n];
return e ? [{
id: e,
desc: r === "desc"
}] : [];
- }, [n, r]), le = (0, P.useMemo)(() => Object.fromEntries([...c].map((e) => [String(e), !0])), [c]), L = o === "table", ue = aN(L ? O.length : D.length, s, a), R = qF({
+ }, [n, r]), le = (0, P.useMemo)(() => Object.fromEntries([...c].map((e) => [String(e), !0])), [c]), L = o === "table", ue = oN(L ? O.length : D.length, s, a), R = KF({
data: O,
columns: se,
getRowId: (e) => String(e.source.id),
@@ -38394,7 +38802,7 @@ function nI(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(ce) : e)[0];
if (!t) return;
- let n = VM[t.id];
+ let n = HM[t.id];
n && d(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -38408,9 +38816,9 @@ function nI(e) {
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === s ? n.pageIndex !== t.pageIndex && f(n.pageIndex + 1) : m(n.pageSize);
},
- getCoreRowModel: BF(),
- getPaginationRowModel: HF()
- }), z = R.getRowModel().rows, de = L ? z.map((e) => e.original.source.id) : D.slice(ue.start, ue.end).flatMap((e) => e.map((e) => e.id)), fe = sN(c, de), pe = [...c], me = NN(j), he = PN(j), ge = D.length > 0 && x.size >= D.length;
+ getCoreRowModel: zF(),
+ getPaginationRowModel: VF()
+ }), z = R.getRowModel().rows, de = L ? z.map((e) => e.original.source.id) : D.slice(ue.start, ue.end).flatMap((e) => e.map((e) => e.id)), fe = cN(c, de), pe = [...c], me = IN(j), he = LN(j), ge = D.length > 0 && x.size >= D.length;
return v.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: qC({
padding: "none",
@@ -38431,7 +38839,7 @@ function nI(e) {
}),
/* @__PURE__ */ (0, F.jsx)(G, {
variant: "primary",
- leadingIcon: TS,
+ leadingIcon: wS,
disabled: u,
"aria-label": "检查全部",
iconOnly: w,
@@ -38446,20 +38854,20 @@ function nI(e) {
children: [/* @__PURE__ */ (0, F.jsx)(G, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: Bte,
- "aria-label": RM[0][1],
+ leadingIcon: Vte,
+ "aria-label": zM[0][1],
"aria-pressed": !L,
onClick: () => p("default")
}), /* @__PURE__ */ (0, F.jsx)(G, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: OS,
- "aria-label": RM[1][1],
+ leadingIcon: Ute,
+ "aria-label": zM[1][1],
"aria-pressed": L,
onClick: () => p("table")
})]
}),
- /* @__PURE__ */ (0, F.jsx)(sj, {
+ /* @__PURE__ */ (0, F.jsx)(oj, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
@@ -38467,7 +38875,7 @@ function nI(e) {
let t = String(e);
d(t, _M[t]);
},
- children: hM.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(cj, {
+ children: hM.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(sj, {
id: e,
children: t
}, e))
@@ -38475,14 +38883,14 @@ function nI(e) {
/* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: r === "asc" ? jte : Ate,
- "aria-label": GM(n, r),
+ leadingIcon: r === "asc" ? Mte : jte,
+ "aria-label": KM(n, r),
onClick: () => d(n, r === "asc" ? "desc" : "asc")
}),
L ? null : /* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
iconOnly: w,
- leadingIcon: ge ? dS : mS,
+ leadingIcon: ge ? uS : pS,
"aria-label": ge ? "全部展开" : "全部收起",
onClick: () => S(ge ? /* @__PURE__ */ new Set() : new Set(D.map((e) => String(e[0].author_key || e[0].id)))),
children: ge ? "全部展开" : "全部收起"
@@ -38493,11 +38901,11 @@ function nI(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- A ? k?.total ? /* @__PURE__ */ (0, F.jsx)(ew, {
+ A ? k?.total ? /* @__PURE__ */ (0, F.jsx)($C, {
label: k.message || `${k.older ? "抓取历史" : "检查更新"}:已完成 ${k.checked || 0}/${k.total} 个来源`,
value: k.checked || 0,
max: k.total
- }) : /* @__PURE__ */ (0, F.jsx)(XC, { label: k?.message || "正在准备检查任务" }) : null,
+ }) : /* @__PURE__ */ (0, F.jsx)(YC, { label: k?.message || "正在准备检查任务" }) : null,
T ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "操作未完成",
@@ -38518,7 +38926,7 @@ function nI(e) {
}) : null
]
}),
- pe.length ? /* @__PURE__ */ (0, F.jsxs)(JF, {
+ pe.length ? /* @__PURE__ */ (0, F.jsxs)(qF, {
label: "关注来源批量操作",
count: `已选 ${pe.length} 个来源`,
children: [
@@ -38579,7 +38987,8 @@ function nI(e) {
}) : null,
L ? /* @__PURE__ */ (0, F.jsx)(gj, {
follow: !0,
- children: /* @__PURE__ */ (0, F.jsxs)(hj, {
+ onRowClick: (e) => I(Number(e), !c.has(Number(e))),
+ children: /* @__PURE__ */ (0, F.jsxs)(mj, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: ce[0] ? {
@@ -38591,7 +39000,7 @@ function nI(e) {
desc: e.direction === "descending"
}]),
children: [/* @__PURE__ */ (0, F.jsx)(HE, { children: R.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in VM, n = UF(e.column.columnDef.header, e.getContext());
+ let t = e.column.id in HM, n = HF(e.column.columnDef.header, e.getContext());
return /* @__PURE__ */ (0, F.jsx)(UE, {
id: e.id,
allowsSorting: t,
@@ -38601,7 +39010,7 @@ function nI(e) {
children: [n, /* @__PURE__ */ (0, F.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, F.jsx)(boe, {})
+ children: /* @__PURE__ */ (0, F.jsx)(xoe, {})
})]
}) : /* @__PURE__ */ (0, F.jsx)(I_, { children: n })
}, e.id);
@@ -38610,11 +39019,11 @@ function nI(e) {
children: z.map((e) => /* @__PURE__ */ (0, F.jsx)(JE, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, F.jsx)(XE, { children: UF(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, F.jsx)(XE, { children: HF(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(mj, {
+ }) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(pj, {
isSelected: fe.all,
isIndeterminate: fe.some,
onChange: (e) => ee(de, e),
@@ -38624,9 +39033,9 @@ function nI(e) {
className: "flex flex-col gap-3",
children: D.slice(ue.start, ue.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, F.jsx)(tI, {
+ return /* @__PURE__ */ (0, F.jsx)(pI, {
group: e,
- name: $M(e, y),
+ name: eN(e, y),
handlers: oe,
selected: c,
open: !x.has(t),
@@ -38646,19 +39055,19 @@ function nI(e) {
className: "text-body-2-regular text-text-secondary",
children: `${ue.start + 1}–${ue.end} / ${ue.total} ${L ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, F.jsx)(sj, {
+ /* @__PURE__ */ (0, F.jsx)(oj, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(s),
onSelectionChange: (e) => {
e !== null && R.setPageSize(Number(e));
},
- children: zM.map((e) => /* @__PURE__ */ (0, F.jsx)(cj, {
+ children: BM.map((e) => /* @__PURE__ */ (0, F.jsx)(sj, {
id: String(e),
children: `每页 ${e} ${L ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, F.jsx)($F, {
+ /* @__PURE__ */ (0, F.jsx)(dI, {
page: ue.page,
pages: ue.pages,
onPage: (e) => R.setPageIndex(e - 1)
@@ -38707,9 +39116,9 @@ function nI(e) {
]
}) : null
]
- }) : /* @__PURE__ */ (0, F.jsx)(YC, {
+ }) : /* @__PURE__ */ (0, F.jsx)(JC, {
shell: "plain",
- icon: ES,
+ icon: TS,
title: "还没有关注来源",
actions: /* @__PURE__ */ (0, F.jsx)(UC, {
variant: "primary",
@@ -38722,13 +39131,13 @@ function nI(e) {
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var rI = [
+var hI = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "订阅源"],
["source", "来源和凭证"]
-], iI = (e) => rI.some(([t]) => t === e);
-function aI({ term: e, figure: t, unit: n }) {
+], gI = (e) => hI.some(([t]) => t === e);
+function _I({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: qC({
padding: "none",
@@ -38746,20 +39155,20 @@ function aI({ term: e, figure: t, unit: n }) {
})]
});
}
-function oI(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, P.useState)(iI(e.tab) ? e.tab : "list"), [u, d] = (0, P.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, P.useState)(() => yM(e.sort, e.dir).sort), [m, h] = (0, P.useState)(() => yM(e.sort, e.dir).dir), [g, _] = (0, P.useState)(HM(e.layout) ? e.layout : "default"), [v, y] = (0, P.useState)(UM(e.pageSize)), [b, x] = (0, P.useState)(/* @__PURE__ */ new Set()), S = St({
- queryKey: MM,
- queryFn: ({ signal: e }) => lN(e)
- }), C = St({
+function vI(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, P.useState)(gI(e.tab) ? e.tab : "list"), [u, d] = (0, P.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, P.useState)(() => yM(e.sort, e.dir).sort), [m, h] = (0, P.useState)(() => yM(e.sort, e.dir).dir), [g, _] = (0, P.useState)(UM(e.layout) ? e.layout : "default"), [v, y] = (0, P.useState)(WM(e.pageSize)), [b, x] = (0, P.useState)(/* @__PURE__ */ new Set()), S = St({
queryKey: NM,
queryFn: ({ signal: e }) => uN(e)
+ }), C = St({
+ queryKey: PM,
+ queryFn: ({ signal: e }) => dN(e)
}), w = S.data || { sources: [] }, T = C.data || {
root: "",
providers: []
}, E = w.sources;
(0, P.useEffect)(() => {
x((e) => {
- let t = oN(e, E);
+ let t = sN(e, E);
return t.size === e.size ? e : t;
});
}, [E]);
@@ -38771,8 +39180,8 @@ function oI(e) {
sort: n === "checked" ? "" : n,
dir: r === _M[n] ? "" : r
});
- }, O = nN(E), k = E.filter(JM).length, A = E.filter((e) => e.enabled).length, j = (T.providers || []).filter((e) => e.requirement === "required" && !zN(e)).length;
- return /* @__PURE__ */ (0, F.jsxs)(ZC, { children: [
+ }, O = rN(E), k = E.filter(YM).length, A = E.filter((e) => e.enabled).length, j = (T.providers || []).filter((e) => e.requirement === "required" && !HN(e)).length;
+ return /* @__PURE__ */ (0, F.jsxs)(XC, { children: [
a ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "warning",
title: "本机只能浏览",
@@ -38790,22 +39199,22 @@ function oI(e) {
className: OA,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, F.jsx)(aI, {
+ /* @__PURE__ */ (0, F.jsx)(_I, {
term: "关注创作者",
figure: O.length,
unit: "位"
}),
- /* @__PURE__ */ (0, F.jsx)(aI, {
+ /* @__PURE__ */ (0, F.jsx)(_I, {
term: "启用来源",
figure: A,
unit: `/ ${E.length}`
}),
- /* @__PURE__ */ (0, F.jsx)(aI, {
+ /* @__PURE__ */ (0, F.jsx)(_I, {
term: "检查失败",
figure: k,
unit: "个来源"
}),
- /* @__PURE__ */ (0, F.jsx)(aI, {
+ /* @__PURE__ */ (0, F.jsx)(_I, {
term: "未看更新",
figure: w.counts?.new || 0,
unit: "条"
@@ -38816,23 +39225,23 @@ function oI(e) {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
- iI(t) && (l(t), D({ tab: t }));
+ gI(t) && (l(t), D({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
/* @__PURE__ */ (0, F.jsx)(tD, {
"aria-label": "关注管理区域",
- className: BN,
- children: rI.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(nD, {
+ className: UN,
+ children: hI.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(nD, {
id: e,
- className: VN,
+ className: WN,
children: e === "source" && j ? `${t}(${j})` : t
}, e))
}),
/* @__PURE__ */ (0, F.jsx)(rD, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, F.jsx)(nI, {
+ children: /* @__PURE__ */ (0, F.jsx)(mI, {
data: w,
sort: f,
dir: m,
@@ -38865,7 +39274,7 @@ function oI(e) {
/* @__PURE__ */ (0, F.jsxs)(rD, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, F.jsx)(iP, {
+ children: [/* @__PURE__ */ (0, F.jsx)(sP, {
data: w,
credentials: T,
readOnly: a,
@@ -38873,7 +39282,7 @@ function oI(e) {
openCredentials: () => {
l("source"), D({ tab: "source" });
}
- }), /* @__PURE__ */ (0, F.jsx)(lP, {
+ }), /* @__PURE__ */ (0, F.jsx)(fP, {
groups: w.author_aliases || [],
readOnly: a,
toast: r,
@@ -38884,7 +39293,7 @@ function oI(e) {
/* @__PURE__ */ (0, F.jsx)(rD, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, F.jsx)(SP, {
+ children: /* @__PURE__ */ (0, F.jsx)(oI, {
readOnly: a,
toast: r
})
@@ -38892,7 +39301,7 @@ function oI(e) {
/* @__PURE__ */ (0, F.jsx)(rD, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, F.jsx)(vP, {
+ children: /* @__PURE__ */ (0, F.jsx)(xP, {
data: T,
readOnly: a,
toast: r
@@ -38904,43 +39313,43 @@ function oI(e) {
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var sI = "/api/follow/authors", cI = "/api/follow/tags", lI = (e) => [
+var yI = "/api/follow/authors", bI = "/api/follow/tags", xI = (e) => [
"follow",
"authors",
e
-], uI = (e, t) => [
+], koe = (e, t) => [
"follow",
"tags",
e,
t
];
-function dI(e, t, n) {
+function Aoe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${sI}?${r}`;
+ return e && r.set("q", e), `${yI}?${r}`;
}
-function fI(e, t, n, r) {
+function joe(e, t, n, r) {
let i = new URLSearchParams({
types: "all",
limit: String(n),
offset: String(r)
});
- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${cI}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${bI}?${i}`;
}
-var pI = (e, t, n, r) => KC(dI(e, t, n), r), mI = (e, t, n, r, i) => KC(fI(e, t, n, r), i), hI = "/api/index", gI = {
+var Moe = (e, t, n, r) => KC(Aoe(e, t, n), r), Noe = (e, t, n, r, i) => KC(joe(e, t, n, r), i), Poe = "/api/index", SI = {
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, _I = {
+}, Foe = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, vI = [
+}, CI = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -38950,26 +39359,26 @@ var pI = (e, t, n, r) => KC(dI(e, t, n), r), mI = (e, t, n, r, i) => KC(fI(e, t,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], yI = [
+], wI = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], bI = {
+], TI = {
people: 120,
tags: 180
-}, xI = (e) => e !== "tags", SI = (e) => e === "studios" || e === "agencies";
-function CI(e) {
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? yI : vI).some(([t]) => t === e.category);
+}, EI = (e) => e !== "tags", DI = (e) => e === "studios" || e === "agencies";
+function OI(e) {
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? wI : CI).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: e.kind === "tags" && n ? e.category : "all"
};
}
-function wI(e) {
+function kI(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -38988,50 +39397,50 @@ function wI(e) {
q: n
};
}
-var TI = (e, t, n = "all") => [
+var AI = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" ? [n] : []
];
-function EI(e, t, n, r, i) {
+function jI(e, t, n, r, i) {
let a = new URLSearchParams({
kind: e,
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${hI}?${a}`;
+ return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${Poe}?${a}`;
}
-function DI(e) {
- let t = e.what === "people" || e.what === "online-authors" ? bI.people : bI.tags, n = {
+function MI(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? TI.people : TI.tags, n = {
initialPageParam: 0,
getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0
};
switch (e.what) {
case "people": return {
...n,
- queryKey: TI(e.kind, e.q),
- queryFn: ({ pageParam: n, signal: r }) => KC(EI(e.kind, e.q, "all", t, n), r)
+ queryKey: AI(e.kind, e.q),
+ queryFn: ({ pageParam: n, signal: r }) => KC(jI(e.kind, e.q, "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: TI("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => KC(EI("tags", e.q, e.category, t, n), r)
+ queryKey: AI("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => KC(jI("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
- queryKey: lI(e.q),
- queryFn: ({ pageParam: n, signal: r }) => pI(e.q, t, n, r)
+ queryKey: xI(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => Moe(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: uI(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => mI(e.q, e.category, t, n, r)
+ queryKey: koe(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => Noe(e.q, e.category, t, n, r)
};
}
}
-async function Doe(e, t) {
- let n = DI(wI(CI(e)));
+async function Ioe(e, t) {
+ let n = MI(kI(OI(e)));
X.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -39045,13 +39454,13 @@ async function Doe(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var Ooe = (e) => e ? e.pages.flatMap((e) => e.items) : [], koe = (e, t) => `${e}${t ? "+" : ""} 项`, OI = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Aoe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), joe = {
+var Loe = (e) => e ? e.pages.flatMap((e) => e.items) : [], Roe = (e, t) => `${e}${t ? "+" : ""} 项`, NI = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", zoe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Boe = {
numeric: !0,
sensitivity: "base"
};
-function Moe(e, t) {
+function Voe(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", joe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Boe))) {
let e = t(r.k).normalize("NFKC").trim().charAt(0).toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
a ? a.push(r) : n.set(i, [r]);
}
@@ -39059,15 +39468,15 @@ function Moe(e, t) {
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function Noe({ value: e }) {
+function Hoe({ value: e }) {
return /* @__PURE__ */ (0, F.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
children: e.toLocaleString()
});
}
-var Poe = "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 kI({ tabs: e, value: t, label: n, onChange: r }) {
+var Uoe = "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 PI({ tabs: e, value: t, label: n, onChange: r }) {
let i = (0, P.useRef)(null), a = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
let e = i.current;
@@ -39102,7 +39511,7 @@ function kI({ tabs: e, value: t, label: n, onChange: r }) {
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: Poe,
+ className: Uoe,
onClick: () => {
i || r(e.value);
},
@@ -39118,7 +39527,7 @@ function kI({ tabs: e, value: t, label: n, onChange: r }) {
}
//#endregion
//#region src/react/index/index-people.tsx
-function AI({ html: e, face: t, company: n, big: r }) {
+function FI({ html: e, face: t, company: n, big: r }) {
let i = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -39130,8 +39539,8 @@ function AI({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var Foe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
-function jI({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
+var Woe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
+function II({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
...a,
@@ -39141,7 +39550,7 @@ function jI({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
radius: "plain",
padding: "none",
interactive: !0,
- className: `${Foe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${Woe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -39158,8 +39567,8 @@ function jI({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
]
});
}
-function Ioe({ kind: e, items: t, layout: n, props: r }) {
- let i = _I[e], a = SI(e), o = n === "big";
+function Goe({ kind: e, items: t, layout: n, props: r }) {
+ let i = Foe[e], a = DI(e), o = n === "big";
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
@@ -39167,14 +39576,14 @@ function Ioe({ kind: e, items: t, layout: n, props: r }) {
className: `${a ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
let n = r.personAvatar(t, i, o);
- return /* @__PURE__ */ (0, F.jsx)(jI, {
+ return /* @__PURE__ */ (0, F.jsx)(II, {
"data-k": t.k,
"data-kind": i,
name: t.k,
- readout: Aoe(e, t),
+ readout: zoe(e, t),
big: o,
onPress: () => r.openEntity(i, t.k),
- children: /* @__PURE__ */ (0, F.jsx)(AI, {
+ children: /* @__PURE__ */ (0, F.jsx)(FI, {
html: n.html,
face: n.face,
company: a,
@@ -39184,21 +39593,21 @@ function Ioe({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function Loe({ items: e, layout: t, props: n }) {
+function Koe({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, F.jsx)(jI, {
+ children: e.map((e) => /* @__PURE__ */ (0, F.jsx)(II, {
"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, F.jsx)(AI, {
+ children: /* @__PURE__ */ (0, F.jsx)(FI, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -39208,23 +39617,23 @@ function Loe({ items: e, layout: t, props: n }) {
}
//#endregion
//#region src/react/index/index-tags.tsx
-var MI = () => /* @__PURE__ */ (0, F.jsx)("span", {
+var LI = () => /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
-function Roe({ tag: e, actions: t }) {
+function qoe({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": OI(t.online, e.cat),
+ "data-tag-cat": NI(t.online, e.cat),
"aria-pressed": n,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, F.jsx)(MI, {}),
+ /* @__PURE__ */ (0, F.jsx)(LI, {}),
/* @__PURE__ */ (0, F.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -39236,7 +39645,7 @@ function Roe({ tag: e, actions: t }) {
]
});
}
-function zoe({ groups: e, actions: t }) {
+function Joe({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
@@ -39249,10 +39658,10 @@ function zoe({ groups: e, actions: t }) {
}),
children: [/* @__PURE__ */ (0, F.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, F.jsx)(Noe, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, F.jsx)(Hoe, { value: n.length })]
}), /* @__PURE__ */ (0, F.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, F.jsx)(Roe, {
+ children: n.map((e) => /* @__PURE__ */ (0, F.jsx)(qoe, {
tag: e,
actions: t
}, e.k))
@@ -39260,8 +39669,8 @@ function zoe({ groups: e, actions: t }) {
}, e))
});
}
-var Boe = "\xA0";
-function Voe({ tags: e, actions: t }) {
+var Yoe = "\xA0";
+function Xoe({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
@@ -39269,11 +39678,11 @@ function Voe({ tags: e, actions: t }) {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": OI(t.online, e.cat),
+ "data-tag-cat": NI(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex cursor-pointer items-center rounded-lg border px-3 py-1.25 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [e.label + Boe, /* @__PURE__ */ (0, F.jsx)("span", {
+ children: [e.label + Yoe, /* @__PURE__ */ (0, F.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
@@ -39281,7 +39690,7 @@ function Voe({ tags: e, actions: t }) {
}, e.k))
});
}
-var Hoe = [[
+var Zoe = [[
"cloud",
"标签云",
"tags"
@@ -39290,16 +39699,16 @@ var Hoe = [[
"字母表",
"text-aa"
]];
-function Uoe({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
+function Qoe({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
return /* @__PURE__ */ (0, F.jsx)(eM, {
label: "标签筛选",
topLabel: "标签类型",
top: e.map(([e, r]) => /* @__PURE__ */ (0, F.jsxs)(nM, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : OI(n, e),
+ "data-tag-cat": e === "all" ? "all" : NI(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, F.jsx)(MI, {}), r]
+ children: [/* @__PURE__ */ (0, F.jsx)(LI, {}), r]
}, e)),
bottom: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsx)("span", {
@@ -39323,14 +39732,14 @@ function Uoe({ categories: e, category: t, online: n, readout: r, letters: i, vi
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${UN}`,
- children: Hoe.map(([e, t, n]) => {
+ className: `ml-auto ${KN}`,
+ children: Zoe.map(([e, t, n]) => {
let r = XO(n);
return /* @__PURE__ */ (0, F.jsx)(EE, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: WN,
+ className: qN,
children: /* @__PURE__ */ (0, F.jsx)("span", {
title: t,
className: "contents",
@@ -39342,12 +39751,12 @@ function Uoe({ categories: e, category: t, online: n, readout: r, letters: i, vi
] })
});
}
-function Woe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, F.jsxs)(JF, {
+function $oe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, F.jsxs)(qF, {
label: "所选标签操作",
count: `已选 ${e} 个标签`,
children: [
- /* @__PURE__ */ (0, F.jsx)(mj, {
+ /* @__PURE__ */ (0, F.jsx)(pj, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, F.jsxs)("span", {
@@ -39379,7 +39788,7 @@ function Woe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/index/index-page.tsx
-var Goe = [{
+var ese = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -39387,7 +39796,7 @@ var Goe = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], NI = [{
+}], RI = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -39395,7 +39804,7 @@ var Goe = [{
value: "online",
label: "在线",
symbol: "rss"
-}], Koe = {
+}], tse = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -39415,20 +39824,20 @@ var Goe = [{
"layout-grid"
]]
};
-function qoe({ kind: e, layout: t, onChange: n }) {
+function nse({ kind: e, layout: t, onChange: n }) {
return /* @__PURE__ */ (0, F.jsx)(TE, {
- "aria-label": `${gI[e]}索引版式`,
+ "aria-label": `${SI[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${BN}`,
- children: Koe[SI(e) ? "company" : "people"].map(([e, t, n]) => {
+ className: `flex-none max-board-narrow:order-3 ${UN}`,
+ children: tse[DI(e) ? "company" : "people"].map(([e, t, n]) => {
let r = XO(n);
return /* @__PURE__ */ (0, F.jsx)(EE, {
value: e,
"aria-label": t,
- className: HN,
+ className: GN,
children: /* @__PURE__ */ (0, F.jsx)("span", {
title: t,
className: "contents",
@@ -39438,8 +39847,8 @@ function qoe({ kind: e, layout: t, onChange: n }) {
})
});
}
-var Joe = XO("search");
-function Yoe({ label: e, value: t, onQuery: n }) {
+var rse = XO("search");
+function ise({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, P.useState)(t), a = (0, P.useRef)(!1), o = (0, P.useRef)(void 0);
(0, P.useEffect)(() => () => clearTimeout(o.current), []);
let s = (e) => {
@@ -39462,7 +39871,7 @@ function Yoe({ label: e, value: t, onQuery: n }) {
},
children: /* @__PURE__ */ (0, F.jsx)(hD, {
type: "search",
- leadingIcon: Joe,
+ leadingIcon: rse,
spellCheck: !1,
autoComplete: "off",
onKeyDown: (e) => {
@@ -39472,14 +39881,14 @@ function Yoe({ label: e, value: t, onQuery: n }) {
})
});
}
-function Xoe(e) {
- let [t, n] = (0, P.useState)(() => CI({
+function ase(e) {
+ let [t, n] = (0, P.useState)(() => OI({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [r, i] = (0, P.useState)(e.layout), [o, s] = (0, P.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, P.useState)("any"), u = (0, P.useRef)(null), { kind: f, q: p, scope: m, view: h, category: g } = t, _ = gI[f], v = f === "tags" && m === "online", y = f === "performers" && m === "online";
+ })), [r, i] = (0, P.useState)(e.layout), [o, s] = (0, P.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, P.useState)("any"), u = (0, P.useRef)(null), { kind: f, q: p, scope: m, view: h, category: g } = t, _ = SI[f], v = f === "tags" && m === "online", y = f === "performers" && m === "online";
(0, P.useEffect)(() => {
e.selectMode || s(/* @__PURE__ */ new Set());
}, [e.selectMode]);
@@ -39489,7 +39898,7 @@ function Xoe(e) {
...r
};
x(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, C = DI(wI(t)), w = wt({
+ }, C = MI(kI(t)), w = wt({
queryKey: C.queryKey,
queryFn: ({ pageParam: e, signal: t }) => C.queryFn({
pageParam: e,
@@ -39498,21 +39907,21 @@ function Xoe(e) {
initialPageParam: 0,
getNextPageParam: C.getNextPageParam,
placeholderData: b ? xe : void 0
- }), T = Ooe(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = koe(T.length, !!w.hasNextPage);
+ }), T = Loe(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = Roe(T.length, !!w.hasNextPage);
(0, P.useEffect)(() => {
u.current && e.refitImages(u.current);
}, [r]);
let O = (0, P.useMemo)(() => f === "tags" ? T.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [T, f]), k = (0, P.useMemo)(() => f === "tags" && h === "alphabet" ? Moe(O, (t) => e.tagLabel(t)) : [], [
+ })) : [], [T, f]), k = (0, P.useMemo)(() => f === "tags" && h === "alphabet" ? Voe(O, (t) => e.tagLabel(t)) : [], [
O,
h,
f
]), A = (t) => {
i(t), e.savePreference({ layout: t });
- }, j = f === "tags" ? /* @__PURE__ */ (0, F.jsx)(kI, {
- tabs: NI,
+ }, j = f === "tags" ? /* @__PURE__ */ (0, F.jsx)(PI, {
+ tabs: RI,
value: m,
label: "词表",
onChange: (e) => {
@@ -39522,15 +39931,15 @@ function Xoe(e) {
view: e === "online" ? "alphabet" : h
});
}
- }) : f === "performers" ? /* @__PURE__ */ (0, F.jsx)(kI, {
- tabs: NI,
+ }) : f === "performers" ? /* @__PURE__ */ (0, F.jsx)(PI, {
+ tabs: RI,
value: m,
label: "名册",
onChange: (t) => {
t === "online" && e.exitSelectMode(), S({ scope: t });
}
- }) : SI(f) ? /* @__PURE__ */ (0, F.jsx)(kI, {
- tabs: Goe,
+ }) : DI(f) ? /* @__PURE__ */ (0, F.jsx)(PI, {
+ tabs: ese,
value: f,
label: "公司类型",
onChange: (e) => S({ kind: e })
@@ -39547,7 +39956,7 @@ function Xoe(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
});
- }, N = (v ? yI : vI).filter(([e]) => e === "all" || Number(w.data?.pages[0]?.categories?.[e] || 0) > 0);
+ }, N = (v ? wI : CI).filter(([e]) => e === "all" || Number(w.data?.pages[0]?.categories?.[e] || 0) > 0);
return /* @__PURE__ */ (0, F.jsxs)("div", {
ref: u,
"data-index-page": f,
@@ -39562,12 +39971,12 @@ function Xoe(e) {
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: _
}),
- xI(f) ? /* @__PURE__ */ (0, F.jsx)("span", {
+ EI(f) ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: w.isPending ? "" : D
}) : null,
- xI(f) ? /* @__PURE__ */ (0, F.jsx)(qoe, {
+ EI(f) ? /* @__PURE__ */ (0, F.jsx)(nse, {
kind: f,
layout: r,
onChange: A
@@ -39576,7 +39985,7 @@ function Xoe(e) {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, F.jsx)(Yoe, {
+ /* @__PURE__ */ (0, F.jsx)(ise, {
label: `过滤${_}`,
value: p,
onQuery: (e) => {
@@ -39586,7 +39995,7 @@ function Xoe(e) {
]
}),
j,
- f === "tags" ? /* @__PURE__ */ (0, F.jsx)(Uoe, {
+ f === "tags" ? /* @__PURE__ */ (0, F.jsx)(Qoe, {
categories: N,
category: g,
online: v,
@@ -39611,7 +40020,7 @@ function Xoe(e) {
mode: h
}) }
});
- if (w.isError) return /* @__PURE__ */ (0, F.jsx)(YC, {
+ if (w.isError) return /* @__PURE__ */ (0, F.jsx)(JC, {
icon: XO("search"),
title: `没能读取${_}`,
actions: /* @__PURE__ */ (0, F.jsx)(G, {
@@ -39621,18 +40030,18 @@ function Xoe(e) {
}),
children: a(w.error)
});
- if (!T.length) return /* @__PURE__ */ (0, F.jsx)(Qoe, {
+ if (!T.length) return /* @__PURE__ */ (0, F.jsx)(sse, {
kind: f,
filtered: !!p || f === "tags" && g !== "all",
online: v || y,
configurable: e.configurable
});
- if (y) return /* @__PURE__ */ (0, F.jsx)(Loe, {
+ if (y) return /* @__PURE__ */ (0, F.jsx)(Koe, {
items: T,
layout: r,
props: e
});
- if (xI(f)) return /* @__PURE__ */ (0, F.jsx)(Ioe, {
+ if (EI(f)) return /* @__PURE__ */ (0, F.jsx)(Goe, {
kind: f,
items: T,
layout: r,
@@ -39643,10 +40052,10 @@ function Xoe(e) {
picked: o,
press: M
};
- return h === "alphabet" ? /* @__PURE__ */ (0, F.jsx)(zoe, {
+ return h === "alphabet" ? /* @__PURE__ */ (0, F.jsx)(Joe, {
groups: k,
actions: t
- }) : /* @__PURE__ */ (0, F.jsx)(Voe, {
+ }) : /* @__PURE__ */ (0, F.jsx)(Xoe, {
tags: O,
actions: t
});
@@ -39661,13 +40070,13 @@ function Xoe(e) {
disabled: w.isFetchingNextPage,
"aria-busy": w.isFetchingNextPage || void 0,
onClick: () => void w.fetchNextPage(),
- children: w.isFetchingNextPage ? /* @__PURE__ */ (0, F.jsx)(XC, {
+ children: w.isFetchingNextPage ? /* @__PURE__ */ (0, F.jsx)(YC, {
inline: !0,
label: "继续载入中…"
}) : "载入更多"
})
}) : null,
- f === "tags" && !v && e.selectMode && o.size ? /* @__PURE__ */ (0, F.jsx)(Woe, {
+ f === "tags" && !v && e.selectMode && o.size ? /* @__PURE__ */ (0, F.jsx)($oe, {
count: o.size,
match: c,
onMatch: l,
@@ -39680,15 +40089,15 @@ function Xoe(e) {
]
});
}
-var Zoe = {
+var ose = {
tags: "标签",
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所"
};
-function Qoe({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, F.jsx)(YC, {
+function sse({ kind: e, filtered: t, online: n, configurable: r }) {
+ if (t) return /* @__PURE__ */ (0, F.jsx)(JC, {
icon: XO("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, F.jsx)(UC, {
@@ -39698,12 +40107,12 @@ function Qoe({ kind: e, filtered: t, online: n, configurable: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : Zoe[e], a = /* @__PURE__ */ (0, F.jsx)(UC, {
+ let i = n && e === "performers" ? "创作者" : ose[e], a = /* @__PURE__ */ (0, F.jsx)(UC, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, F.jsx)(YC, {
+ return /* @__PURE__ */ (0, F.jsx)(JC, {
icon: XO(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
actions: n ? a : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [r ? /* @__PURE__ */ (0, F.jsx)(G, {
@@ -39714,15 +40123,15 @@ function Qoe({ kind: e, filtered: t, online: n, configurable: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var PI = {
+var zI = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, $oe = (e) => PI[e.junk_kind || "other"] || PI.other;
-function ese(e) {
+}, cse = (e) => zI[e.junk_kind || "other"] || zI.other;
+function lse(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -39733,21 +40142,21 @@ function ese(e) {
glyph: "check"
};
}
-var tse = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), nse = (e, t) => [
+var use = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), dse = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function rse({ kind: e, view: t }) {
+function fse({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function ise(e, t) {
- let n = await KC(`/api/ads?${rse(e)}`, t);
+async function pse(e, t) {
+ let n = await KC(`/api/ads?${fse(e)}`, t);
return {
...n,
items: n.items || []
@@ -39755,19 +40164,19 @@ async function ise(e, t) {
}
//#endregion
//#region src/react/junk-queue/junk-card.tsx
-function FI({ name: e }) {
+function BI({ name: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
-var II = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function ase({ item: e, view: n, selected: i, selectMode: a, helpers: o, actions: s }) {
- let c = (0, P.useRef)(null), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(""), p = e.junk_kind || "other", [m, h] = $oe(e), g = String(e.name || ""), v = ese(n), y = p === "video" ? `/thumb?id=${e.id}&c=4` : p === "image" ? `/photo-thumb?id=${e.id}` : "", b = p === "video" || p === "image", x = (t) => {
- t.target.closest("[data-junk-actions]") || II(a, t) && (t.preventDefault(), s.toggleSelection(e.id, t.shiftKey));
+var VI = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function mse({ item: e, view: n, selected: i, selectMode: a, helpers: o, actions: s }) {
+ let c = (0, P.useRef)(null), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(""), p = e.junk_kind || "other", [m, h] = cse(e), g = String(e.name || ""), v = lse(n), y = p === "video" ? `/thumb?id=${e.id}&c=4` : p === "image" ? `/photo-thumb?id=${e.id}` : "", b = p === "video" || p === "image", x = (t) => {
+ t.target.closest("[data-junk-actions]") || VI(a, t) && (t.preventDefault(), s.toggleSelection(e.id, t.shiftKey));
}, S = (t) => {
- if (t.stopPropagation(), II(a, t)) {
+ if (t.stopPropagation(), VI(a, t)) {
t.preventDefault(), s.toggleSelection(e.id, t.shiftKey);
return;
}
@@ -39809,7 +40218,7 @@ function ase({ item: e, view: n, selected: i, selectMode: a, helpers: o, actions
children: [
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, F.jsx)(FI, { name: h }), /* @__PURE__ */ (0, F.jsx)("b", { children: m })]
+ children: [/* @__PURE__ */ (0, F.jsx)(BI, { name: h }), /* @__PURE__ */ (0, F.jsx)("b", { children: m })]
}),
y ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-art": "thumb",
@@ -39821,7 +40230,7 @@ function ase({ item: e, view: n, selected: i, selectMode: a, helpers: o, actions
}),
/* @__PURE__ */ (0, F.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, F.jsx)(FI, { name: "check" })
+ children: /* @__PURE__ */ (0, F.jsx)(BI, { name: "check" })
})
]
}),
@@ -39858,7 +40267,7 @@ function ase({ item: e, view: n, selected: i, selectMode: a, helpers: o, actions
children: [l === "reveal" ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: _("正在定位") }
- }) : /* @__PURE__ */ (0, F.jsx)(FI, { name: "folder-open" }), /* @__PURE__ */ (0, F.jsx)("span", {
+ }) : /* @__PURE__ */ (0, F.jsx)(BI, { name: "folder-open" }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -39870,7 +40279,7 @@ function ase({ item: e, view: n, selected: i, selectMode: a, helpers: o, actions
"aria-label": v.label,
...T(v.operation),
onClick: w(v.operation),
- children: [/* @__PURE__ */ (0, F.jsx)(FI, { name: v.glyph }), /* @__PURE__ */ (0, F.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(BI, { name: v.glyph }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-label": "",
children: v.label
})]
@@ -39882,7 +40291,7 @@ function ase({ item: e, view: n, selected: i, selectMode: a, helpers: o, actions
"aria-label": "移入回收站",
...T("dispose"),
onClick: w("dispose"),
- children: [/* @__PURE__ */ (0, F.jsx)(FI, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(BI, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -39897,7 +40306,7 @@ function ase({ item: e, view: n, selected: i, selectMode: a, helpers: o, actions
]
});
}
-var ose = (0, P.memo)(ase), sse = [
+var hse = (0, P.memo)(mse), gse = [
[
"",
"全部",
@@ -39934,45 +40343,45 @@ var ose = (0, P.memo)(ase), sse = [
"hard-drive"
]
];
-function LI(e = "", t = "pending") {
+function HI(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function cse(e) {
+function _se(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: LI("", "pending")
+ href: HI("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: LI("", "dismissed")
+ href: HI("", "dismissed")
};
}
-var lse = (e) => e === "dismissed" ? "已排除" : "待判断";
+var vse = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
//#region src/react/junk-queue/junk-count.tsx
-function RI({ name: e }) {
+function UI({ name: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
-function zI({ scope: e, count: t }) {
+function WI({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [" ", /* @__PURE__ */ (0, F.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function use({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = PD(), { kind: a, view: o } = e, s = cse(o), c = (e) => {
+function yse({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = PD(), { kind: a, view: o } = e, s = _se(o), c = (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") || LI()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || HI()));
}, l = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-junk-count": "",
@@ -39980,7 +40389,7 @@ function use({ route: e, page: t, failed: n, onNavigate: r }) {
"data-junk-summary": "",
"aria-live": "polite",
children: /* @__PURE__ */ (0, F.jsx)(Zj, {
- label: lse(o),
+ label: vse(o),
figure: l,
pending: !t && !n,
flush: !0
@@ -39993,16 +40402,16 @@ function use({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-label": "垃圾文件分类",
onClick: c,
children: [
- sse.map(([e, n, r]) => /* @__PURE__ */ (0, F.jsxs)("a", {
- href: LI(e, o),
+ gse.map(([e, n, r]) => /* @__PURE__ */ (0, F.jsxs)("a", {
+ href: HI(e, o),
"data-junk-kind-link": e,
"aria-current": e === a ? "page" : void 0,
children: [
- /* @__PURE__ */ (0, F.jsx)(RI, { name: r }),
+ /* @__PURE__ */ (0, F.jsx)(UI, { name: r }),
n,
- /* @__PURE__ */ (0, F.jsx)(zI, {
+ /* @__PURE__ */ (0, F.jsx)(WI, {
scope: e,
- count: t ? tse(t, e) : 0
+ count: t ? use(t, e) : 0
})
]
}, e || "all")),
@@ -40015,9 +40424,9 @@ function use({ route: e, page: t, failed: n, onNavigate: r }) {
"data-junk-view-link": s.view,
"aria-current": o === "dismissed" ? "page" : void 0,
children: [
- /* @__PURE__ */ (0, F.jsx)(RI, { name: s.glyph }),
+ /* @__PURE__ */ (0, F.jsx)(UI, { name: s.glyph }),
s.label,
- /* @__PURE__ */ (0, F.jsx)(zI, {
+ /* @__PURE__ */ (0, F.jsx)(WI, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -40030,38 +40439,38 @@ function use({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var dse = XO("check"), fse = (e, t) => e[1] === t.view && e[2] === t.kind;
-function pse(e) {
+var bse = XO("check"), xse = (e, t) => e[1] === t.view && e[2] === t.kind;
+function Sse(e) {
let t = {
kind: e.kind,
view: e.view
}, n = (0, P.useRef)(e.cache);
n.current = e.cache;
let r = St({
- queryKey: nse(t, e.revision),
+ queryKey: dse(t, e.revision),
queryFn: async ({ signal: e }) => {
- let r = await ise(t, e);
+ let r = await pse(t, e);
return n.current(r.items), r;
},
- placeholderData: (e, n) => n && fse(n.queryKey, t) ? e : void 0
+ placeholderData: (e, n) => n && xse(n.queryKey, t) ? e : void 0
});
(0, P.useEffect)(() => {
r.isFetching || e.settled?.(e.revision);
}, [r.isFetching, e.revision]);
- let i = mse(e.countRow), a = r.isPending;
+ let i = Cse(e.countRow), a = r.isPending;
(0, P.useLayoutEffect)(() => {
let t = e.countRow;
t && (a ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, a]), (0, P.useLayoutEffect)(() => {
i && r.data && m(i, "junk");
}, [i, r.data]);
- let { navigate: o } = e.actions, s = i ? (0, lh.createPortal)(/* @__PURE__ */ (0, F.jsx)(use, {
+ let { navigate: o } = e.actions, s = i ? (0, lh.createPortal)(/* @__PURE__ */ (0, F.jsx)(yse, {
route: t,
page: r.data,
failed: r.isError && !r.data,
onNavigate: o
}), i) : null;
- return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [s, /* @__PURE__ */ (0, F.jsx)(hse, {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [s, /* @__PURE__ */ (0, F.jsx)(wse, {
props: e,
data: r.data,
pending: a,
@@ -40069,7 +40478,7 @@ function pse(e) {
retry: () => void r.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function mse(e) {
+function Cse(e) {
let [t, n] = (0, P.useState)(null);
return (0, P.useLayoutEffect)(() => {
if (!e) return;
@@ -40079,7 +40488,7 @@ function mse(e) {
};
}, [e]), t;
}
-function hse({ props: e, data: t, pending: n, error: r, retry: i }) {
+function wse({ props: e, data: t, pending: n, error: r, retry: i }) {
let o = kO(n, e.skeletonHtml), s = Math.max(1, e.batchSize || 60), [c, l] = (0, P.useState)(1), u = t?.items || [], d = u.slice(0, c * s), { canLoadMore: f } = e, p = (0, P.useCallback)(() => {
f?.() !== !1 && l((e) => e + 1);
}, [f]);
@@ -40094,8 +40503,8 @@ function hse({ props: e, data: t, pending: n, error: r, retry: i }) {
});
if (!u.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, F.jsx)(YC, {
- icon: dse,
+ return /* @__PURE__ */ (0, F.jsx)(JC, {
+ icon: bse,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
});
@@ -40104,7 +40513,7 @@ function hse({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: d.map((t) => /* @__PURE__ */ (0, F.jsx)(ose, {
+ children: d.map((t) => /* @__PURE__ */ (0, F.jsx)(hse, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -40112,11 +40521,11 @@ function hse({ props: e, data: t, pending: n, error: r, retry: i }) {
helpers: e.helpers,
actions: e.actions
}, t.id))
- }), d.length < u.length ? /* @__PURE__ */ (0, F.jsx)(gse, { onMore: p }, c) : null] });
+ }), d.length < u.length ? /* @__PURE__ */ (0, F.jsx)(Tse, { onMore: p }, c) : null] });
})()]
});
}
-function gse({ onMore: e }) {
+function Tse({ onMore: e }) {
let t = (0, P.useRef)(null);
return (0, P.useEffect)(() => {
let n = t.current;
@@ -40134,12 +40543,12 @@ function gse({ onMore: e }) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var BI = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", _se = {
- gray: `${BI} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${BI} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${BI} border-current/35 bg-background-tertiary-error text-text-error-primary`
+var GI = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", Ese = {
+ gray: `${GI} border-separator-border bg-background-secondary-default text-text-secondary`,
+ warning: `${GI} border-current/35 bg-status-yellow-background text-status-yellow-text`,
+ error: `${GI} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
-function vse({ value: e, max: t }) {
+function Dse({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, F.jsxs)("svg", {
role: "progressbar",
@@ -40167,16 +40576,16 @@ function vse({ value: e, max: t }) {
})]
});
}
-function yse(e) {
- let { job: t } = ij(e), n = t.data, r = t.isError ? n ? xk : K(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+function Ose(e) {
+ let { job: t } = rj(e), n = t.data, r = t.isError ? n ? xk : K(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 ? "扫描与资料采集未完成" : Ck(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? Rte : Nte;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : Ck(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? zte : Pte;
return /* @__PURE__ */ (0, F.jsxs)("aside", {
role: a ? "alert" : "status",
- className: _se[s],
+ className: Ese[s],
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, F.jsx)(vse, {
+ children: [o && l ? /* @__PURE__ */ (0, F.jsx)(Dse, {
value: c,
max: l
}) : /* @__PURE__ */ (0, F.jsx)(d, {
@@ -40189,39 +40598,39 @@ function yse(e) {
}), /* @__PURE__ */ (0, F.jsx)(NA, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: fS,
+ trailingIcon: dS,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region src/react/playlists/playlists.ts
-var bse = "/api/playlists", VI = "/api/playlist", HI = ["playlists"], UI = (e) => KC(bse, e);
-async function xse(e) {
+var kse = "/api/playlists", KI = "/api/playlist", qI = ["playlists"], JI = (e) => KC(kse, e);
+async function Ase(e) {
await X.fetchQuery({
- queryKey: HI,
- queryFn: () => UI(e),
+ queryKey: qI,
+ queryFn: () => JI(e),
staleTime: 0
});
}
-var WI = () => X.invalidateQueries({
- queryKey: HI,
+var YI = () => X.invalidateQueries({
+ queryKey: qI,
exact: !0
-}), Sse = (e) => e.current_asset_id || e.preview_asset_id || null, GI = (e) => `/poster?id=${e}&c=4`, Cse = (e) => q(VI, {
+}), jse = (e) => e.current_asset_id || e.preview_asset_id || null, XI = (e) => `/poster?id=${e}&c=4`, Mse = (e) => q(KI, {
action: "create",
name: e,
asset_ids: []
-}), KI = (e, t) => q(VI, {
+}), ZI = (e, t) => q(KI, {
action: "rename",
id: e,
name: t
-}), qI = (e) => q(VI, {
+}), QI = (e) => q(KI, {
action: "delete",
id: e
-}), wse = (e) => KC(`${VI}?id=${e}`).catch(() => null);
-function Tse(e) {
+}), Nse = (e) => KC(`${KI}?id=${e}`).catch(() => null);
+function Pse(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return q(VI, {
+ return q(KI, {
action: "create",
name: e.name,
asset_ids: t,
@@ -40231,18 +40640,18 @@ function Tse(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var Ese = XO("ellipsis"), Dse = XO("pencil"), Ose = XO("trash"), kse = XO("playlist"), JI = RC(FA, IA, "text-body-2-medium"), YI = "播放列表名称不能为空", XI = (e) => async () => {
+var Fse = XO("ellipsis"), Ise = XO("pencil"), Lse = XO("trash"), Rse = XO("playlist"), $I = RC(FA, IA, "text-body-2-medium"), eL = "播放列表名称不能为空", tL = (e) => async () => {
try {
await e();
} finally {
- WI();
+ YI();
}
};
-function Ase({ toast: e }) {
+function zse({ toast: e }) {
let [t, n] = (0, P.useState)(""), [r, i] = (0, P.useState)(""), a = Ct({
- mutationFn: (e) => Cse(e),
+ mutationFn: (e) => Mse(e),
onSuccess: (t) => {
- n(""), i(""), WI(), e("已新建播放列表", { undo: XI(() => qI(t.playlist.id)) });
+ n(""), i(""), YI(), e("已新建播放列表", { undo: tL(() => QI(t.playlist.id)) });
},
onError: (e) => i(K(e) || "新建失败")
});
@@ -40252,7 +40661,7 @@ function Ase({ toast: e }) {
onSubmit: (e) => {
if (e.preventDefault(), !a.isPending) {
if (!t.trim()) {
- i(YI);
+ i(eL);
return;
}
a.mutate(t);
@@ -40280,7 +40689,7 @@ function Ase({ toast: e }) {
})]
});
}
-function jse({ target: e, close: t, toast: n }) {
+function Bse({ target: e, close: t, toast: n }) {
let [r, i] = (0, P.useState)(""), [a, o] = (0, P.useState)(""), s = (0, P.useRef)(null);
(0, P.useEffect)(() => {
if (!e) return;
@@ -40291,9 +40700,9 @@ function jse({ target: e, close: t, toast: n }) {
return () => cancelAnimationFrame(t);
}, [e]);
let c = Ct({
- mutationFn: ({ row: e, value: t }) => KI(e.id, t),
+ mutationFn: ({ row: e, value: t }) => ZI(e.id, t),
onSuccess: (e, { row: r }) => {
- t(), WI(), n("已重命名播放列表", { undo: XI(() => KI(r.id, r.name)) });
+ t(), YI(), n("已重命名播放列表", { undo: tL(() => ZI(r.id, r.name)) });
},
onError: (e) => o(K(e))
});
@@ -40309,7 +40718,7 @@ function jse({ target: e, close: t, toast: n }) {
if (t.preventDefault(), !e || c.isPending) return;
let n = r.trim();
if (!n) {
- o(YI);
+ o(eL);
return;
}
c.mutate({
@@ -40352,7 +40761,7 @@ function jse({ target: e, close: t, toast: n }) {
})
});
}
-function Mse({ name: e, onRename: t, onDelete: n }) {
+function Vse({ name: e, onRename: t, onDelete: n }) {
let r = (0, P.useRef)(null), [i, a] = (0, P.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -40366,7 +40775,7 @@ function Mse({ 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, F.jsx)(Ese, {
+ children: /* @__PURE__ */ (0, F.jsx)(Fse, {
"aria-hidden": !0,
className: "size-4.5"
})
@@ -40382,17 +40791,17 @@ function Mse({ name: e, onRename: t, onDelete: n }) {
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
- className: JI,
+ className: $I,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, F.jsx)(Dse, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Ise, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "编辑名称"]
}), /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
- className: JI,
+ className: $I,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, F.jsx)(Ose, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Lse, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "删除播放列表"]
@@ -40400,13 +40809,13 @@ function Mse({ name: e, onRename: t, onDelete: n }) {
})
})] });
}
-function Nse({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
+function Hse({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
let o = St({
- queryKey: HI,
- queryFn: ({ signal: e }) => UI(e)
+ queryKey: qI,
+ queryFn: ({ signal: e }) => JI(e)
}), [s, c] = (0, P.useState)(null), u = (0, P.useRef)(a);
(0, P.useEffect)(() => {
- u.current !== a && (u.current = a, WI());
+ u.current !== a && (u.current = a, YI());
}, [a]);
let d = o.data;
if (!d) return /* @__PURE__ */ (0, F.jsx)("div", {
@@ -40424,8 +40833,8 @@ function Nse({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
confirmLabel: "删除播放列表",
danger: !0,
onConfirm: async () => {
- let t = await wse(e.id);
- await qI(e.id), WI(), i("已删除播放列表", t ? { undo: XI(() => Tse(t)) } : void 0);
+ let t = await Nse(e.id);
+ await QI(e.id), YI(), i("已删除播放列表", t ? { undo: tL(() => Pse(t)) } : void 0);
}
});
};
@@ -40440,39 +40849,39 @@ function Nse({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}), /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "保存 Mix,按自己的顺序继续播放。"
- })] }), /* @__PURE__ */ (0, F.jsx)(Ase, { toast: i })]
+ })] }), /* @__PURE__ */ (0, F.jsx)(zse, { toast: i })]
}),
f.length ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-playlist-grid": "",
className: "card-grid-cover gap-4.5",
children: f.map((i) => {
- let a = Sse(i);
+ let a = jse(i);
return /* @__PURE__ */ (0, F.jsx)(rk, {
"data-playlist-card": String(i.id),
name: i.name,
caption: i.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
count: i.item_count,
- poster: i.preview_asset_id ? GI(i.preview_asset_id) : null,
- flipImages: async () => (i.preview_ids || []).map(GI),
+ poster: i.preview_asset_id ? XI(i.preview_asset_id) : null,
+ flipImages: async () => (i.preview_ids || []).map(XI),
canFlip: r,
faces: i.faces || [],
faceAvatar: n,
onOpenEntity: t,
...a ? { onOpen: () => e(i.id, a) } : {},
openLabel: `打开播放列表 ${i.name}`,
- menu: /* @__PURE__ */ (0, F.jsx)(Mse, {
+ menu: /* @__PURE__ */ (0, F.jsx)(Vse, {
name: i.name,
onRename: () => c(i),
onDelete: () => p(i)
})
}, i.id);
})
- }) : /* @__PURE__ */ (0, F.jsx)(YC, {
- icon: kse,
+ }) : /* @__PURE__ */ (0, F.jsx)(JC, {
+ icon: Rse,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
}),
- /* @__PURE__ */ (0, F.jsx)(jse, {
+ /* @__PURE__ */ (0, F.jsx)(Bse, {
target: s,
close: () => c(null),
toast: i
@@ -40482,7 +40891,7 @@ function Nse({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function Pse({ item: t, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
+function Use({ item: t, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
let c = () => i(t.id);
return /* @__PURE__ */ (0, F.jsxs)("li", {
"data-goal-id": t.id,
@@ -40550,18 +40959,18 @@ function Pse({ item: t, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadg
})]
});
}
-function Fse(e) {
+function Wse(e) {
let t = St({
queryKey: jk,
queryFn: ({ signal: e }) => Mk(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, F.jsx)(ZC, { children: /* @__PURE__ */ (0, F.jsx)(J, {
+ if (!n) return /* @__PURE__ */ (0, F.jsx)(XC, { children: /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "读取失败",
children: t.error ? K(t.error) : "读取高清版目标失败"
}) });
let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, F.jsxs)(ZC, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
+ return r.length ? /* @__PURE__ */ (0, F.jsxs)(XC, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: qC({
variant: "raised",
className: "flex flex-col gap-1 px-6 py-5 max-sm:px-4"
@@ -40575,11 +40984,11 @@ function Fse(e) {
})]
}), /* @__PURE__ */ (0, F.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, F.jsx)(Pse, {
+ children: r.map((t) => /* @__PURE__ */ (0, F.jsx)(Use, {
item: t,
...e
}, t.id))
- })] }) : /* @__PURE__ */ (0, F.jsx)(ZC, { children: /* @__PURE__ */ (0, F.jsx)(YC, {
+ })] }) : /* @__PURE__ */ (0, F.jsx)(XC, { children: /* @__PURE__ */ (0, F.jsx)(JC, {
shell: "plain",
icon: Wte,
title: "没有标记中的高清版目标",
@@ -40588,7 +40997,7 @@ function Fse(e) {
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-function Ise(e) {
+function Gse(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 = iae(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
role: "group",
@@ -40597,29 +41006,29 @@ function Ise(e) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, F.jsx)(sj, {
+ /* @__PURE__ */ (0, F.jsx)(oj, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(cj, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(sj, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, F.jsxs)(sj, {
+ i.length > 1 ? /* @__PURE__ */ (0, F.jsxs)(oj, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, F.jsx)(cj, {
+ children: [/* @__PURE__ */ (0, F.jsx)(sj, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, F.jsx)(cj, {
+ }), i.map((e) => /* @__PURE__ */ (0, F.jsx)(sj, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@ -40627,7 +41036,7 @@ function Ise(e) {
/* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: hS,
+ leadingIcon: mS,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -40638,11 +41047,11 @@ function Ise(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), c.size ? /* @__PURE__ */ (0, F.jsxs)(JF, {
+ }), c.size ? /* @__PURE__ */ (0, F.jsxs)(qF, {
label: "复核所选项目",
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, F.jsxs)(sj, {
+ b ? /* @__PURE__ */ (0, F.jsxs)(oj, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -40650,10 +41059,10 @@ function Ise(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, F.jsx)(cj, {
+ children: [/* @__PURE__ */ (0, F.jsx)(sj, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, F.jsx)(cj, {
+ }), y.map((e) => /* @__PURE__ */ (0, F.jsx)(sj, {
id: e,
children: e
}, e))]
@@ -40689,7 +41098,7 @@ function Ise(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var Lse = {
+var Kse = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -40699,14 +41108,14 @@ var Lse = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, ZI = "reviewgenretags";
-function Rse({ tags: e }) {
+}, nL = "reviewgenretags";
+function qse({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, F.jsx)("datalist", {
- id: ZI,
+ id: nL,
children: e.map((e) => /* @__PURE__ */ (0, F.jsx)("option", { value: e }, e))
}) : null;
}
-function QI({ candidate: e, selectable: t = !1 }) {
+function rL({ 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, F.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
@@ -40743,7 +41152,7 @@ function QI({ candidate: e, selectable: t = !1 }) {
children: [
/* @__PURE__ */ (0, F.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: Lse[e] || e
+ children: Kse[e] || e
}),
/* @__PURE__ */ (0, F.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
@@ -40758,11 +41167,11 @@ function QI({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function zse({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function Jse({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, F.jsx)(QI, { candidate: a[0] })
+ children: /* @__PURE__ */ (0, F.jsx)(rL, { candidate: a[0] })
}) : /* @__PURE__ */ (0, F.jsx)(TE, {
"aria-label": `${t || "候选"}的来源`,
value: n,
@@ -40772,14 +41181,14 @@ function zse({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
children: a.map((e) => /* @__PURE__ */ (0, F.jsx)(EE, {
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, F.jsx)(QI, {
+ children: /* @__PURE__ */ (0, F.jsx)(rL, {
candidate: e,
selectable: !0
})
}, e.candidate_key))
}) : null;
}
-function Bse({ genre: e, tags: t, locked: n, toast: r }) {
+function Yse({ genre: e, tags: t, locked: n, toast: r }) {
let [i, a] = (0, P.useState)(""), [o, s] = (0, P.useState)(""), c = Ct({
mutationFn: (t) => fae(e, t),
onSuccess: async (t, n) => {
@@ -40815,7 +41224,7 @@ function Bse({ genre: e, tags: t, locked: n, toast: r }) {
className: "min-w-40 flex-1",
children: /* @__PURE__ */ (0, F.jsx)(hD, {
size: "small",
- list: t.length ? ZI : void 0,
+ list: t.length ? nL : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -40847,7 +41256,7 @@ function Bse({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function Vse({ row: e, tags: t, locked: n, toast: r }) {
+function Xse({ row: e, tags: t, locked: n, toast: r }) {
let i = lae(e);
return i.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
role: "group",
@@ -40856,7 +41265,7 @@ function Vse({ row: e, tags: t, locked: n, toast: r }) {
children: [/* @__PURE__ */ (0, F.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, F.jsx)(Bse, {
+ }), i.map((e) => /* @__PURE__ */ (0, F.jsx)(Yse, {
genre: e,
tags: t,
locked: n,
@@ -40866,9 +41275,9 @@ function Vse({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var $I = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", eL = (e = "") => /^https?:\/\//i.test(e) ? e : "", Hse = (e = "") => eL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function tL({ url: e }) {
- let t = Hse(e || ""), [n, r] = (0, P.useState)(!1);
+var iL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", aL = (e = "") => /^https?:\/\//i.test(e) ? e : "", Zse = (e = "") => aL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+function oL({ url: e }) {
+ let t = Zse(e || ""), [n, r] = (0, P.useState)(!1);
return /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
children: t && !n ? /* @__PURE__ */ (0, F.jsx)("img", {
@@ -40883,7 +41292,7 @@ function tL({ url: e }) {
})
});
}
-function nL({ asset: e, openItem: t }) {
+function sL({ asset: e, openItem: t }) {
let n = e.name || "";
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
@@ -40909,21 +41318,21 @@ function nL({ asset: e, openItem: t }) {
}), /* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: Vte,
+ leadingIcon: Hte,
onClick: () => t(e.id),
children: "打开原视频"
})]
})]
});
}
-function Use({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+function Qse({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, F.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 ${$I}`,
+ 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 ${iL}`,
dangerouslySetInnerHTML: { __html: r }
}), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
@@ -40939,8 +41348,8 @@ function Use({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
})]
});
}
-function Wse({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = eL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+function $se({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
+ let o = aL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, F.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
@@ -40953,7 +41362,7 @@ function Wse({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: [o ? /* @__PURE__ */ (0, F.jsx)(UC, {
variant: "secondary",
size: "small",
- trailingIcon: bS,
+ trailingIcon: yS,
href: o,
target: "_blank",
rel: "noopener noreferrer",
@@ -40965,7 +41374,7 @@ function Wse({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, F.jsx)(tL, { url: e.preview_url }),
+ /* @__PURE__ */ (0, F.jsx)(oL, { url: e.preview_url }),
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
@@ -41008,7 +41417,7 @@ function Wse({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
]
});
}
-function Gse({ assets: e, picked: t, onPicked: n, locked: r }) {
+function ece({ assets: e, picked: t, onPicked: n, locked: r }) {
let [i, a] = (0, P.useState)(null), o = new Set(t), s = (t, s) => {
if (r) return;
let c = new Set(o);
@@ -41064,7 +41473,7 @@ function Gse({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, F.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, F.jsx)(pj, {
+ children: /* @__PURE__ */ (0, F.jsx)(fj, {
size: "sm",
state: {
isSelected: n,
@@ -41084,19 +41493,19 @@ function Gse({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var Kse = qC({
+var tce = qC({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), rL = "flex min-h-6 min-w-0 items-center", qse = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function Jse(e) {
+}), cL = "flex min-h-6 min-w-0 items-center", nce = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+function rce(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, P.useRef)(!1), m = PD(), h = PD(), g = t === "metadata_fields", _ = eae[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = oae(t, n), x = Uk(t, n), S = Hk(t, n), C = sae(n), w = cae(n), T = Vk(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col gap-3",
- children: E.map((e) => /* @__PURE__ */ (0, F.jsx)(nL, {
+ children: E.map((e) => /* @__PURE__ */ (0, F.jsx)(sL, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : y ? /* @__PURE__ */ (0, F.jsx)(Use, {
+ }) : y ? /* @__PURE__ */ (0, F.jsx)(Qse, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -41106,14 +41515,14 @@ function Jse(e) {
has_image: !!n.has_image,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, F.jsx)(nL, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, F.jsx)(sL, {
openItem: f.openItem,
asset: {
id: n.asset_id,
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, A = g ? /* @__PURE__ */ (0, F.jsx)(zse, {
+ }) : null, A = g ? /* @__PURE__ */ (0, F.jsx)(Jse, {
row: n,
fieldName: x,
value: r.candidateKey,
@@ -41122,7 +41531,7 @@ function Jse(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, F.jsx)(Gse, {
+ }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, F.jsx)(ece, {
assets: D,
picked: r.assets,
locked: s,
@@ -41130,20 +41539,20 @@ function Jse(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, F.jsx)(YC, {
+ }) : /* @__PURE__ */ (0, F.jsx)(JC, {
shell: "inset",
- icon: Ite,
+ icon: Lte,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, F.jsx)(Wse, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, F.jsx)($se, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, F.jsx)(tL, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, F.jsxs)("h4", {
- className: `${rL} flex-wrap gap-2`,
+ }) : /* @__PURE__ */ (0, F.jsx)(oL, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, F.jsxs)("h4", {
+ className: `${cL} flex-wrap gap-2`,
children: [/* @__PURE__ */ (0, F.jsx)(VC, {
variant: "caption",
color: "blue",
@@ -41154,7 +41563,7 @@ function Jse(e) {
children: S
})]
}) : /* @__PURE__ */ (0, F.jsx)("h4", {
- className: rL,
+ className: cL,
children: /* @__PURE__ */ (0, F.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
@@ -41164,20 +41573,20 @@ function Jse(e) {
return /* @__PURE__ */ (0, F.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
- className: `${Kse} ${qse(t)} overflow-hidden`,
+ className: `${tce} ${nce(t)} overflow-hidden`,
children: [
/* @__PURE__ */ (0, F.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
s ? null : /* @__PURE__ */ (0, F.jsx)("span", {
- className: `${rL} shrink-0`,
+ className: `${cL} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, F.jsx)(mj, {
+ children: /* @__PURE__ */ (0, F.jsx)(pj, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@ -41221,7 +41630,7 @@ function Jse(e) {
})
}) : null,
A,
- /* @__PURE__ */ (0, F.jsx)(Vse, {
+ /* @__PURE__ */ (0, F.jsx)(Xse, {
row: n,
tags: u,
locked: s,
@@ -41283,8 +41692,8 @@ function Jse(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var Yse = "flex min-h-9 cursor-pointer items-center justify-between gap-2 rounded-2lg p-2 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-tertiary-default data-selected:text-text-primary review-tight:min-h-10 review-tight:px-3 review-tight:py-2.5";
-function Xse({ page: e, pages: t, onPage: n }) {
+var ice = "flex min-h-9 cursor-pointer items-center justify-between gap-2 rounded-2lg p-2 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-tertiary-default data-selected:text-text-primary review-tight:min-h-10 review-tight:px-3 review-tight:py-2.5";
+function ace({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, F.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
@@ -41321,7 +41730,7 @@ function Xse({ page: e, pages: t, onPage: n }) {
]
});
}
-function Zse(e) {
+function oce(e) {
let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, P.useState)(zk(e.category) ? e.category : $ie), [f, p] = (0, P.useState)("candidates"), [m, h] = (0, P.useState)(""), [g, _] = (0, P.useState)(1), [v, y] = (0, P.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, P.useState)(/* @__PURE__ */ new Map()), [S, C] = (0, P.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, P.useState)(""), E = (0, P.useRef)(null), [D, O] = (0, P.useState)(0), [k, A] = (0, P.useState)(""), j = (0, P.useRef)(!0);
(0, P.useEffect)(() => () => {
j.current = !1;
@@ -41410,7 +41819,7 @@ function Zse(e) {
avatarInner: a,
toast: o
};
- return /* @__PURE__ */ (0, F.jsx)(ZC, { children: /* @__PURE__ */ (0, F.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsx)(XC, { children: /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
ee ? /* @__PURE__ */ (0, F.jsx)(J, {
@@ -41426,7 +41835,7 @@ function Zse(e) {
}) : void 0,
children: ge
}) : null,
- /* @__PURE__ */ (0, F.jsx)(Rse, { tags: _e }),
+ /* @__PURE__ */ (0, F.jsx)(qse, { tags: _e }),
/* @__PURE__ */ (0, F.jsxs)(eD, {
selectedKey: u,
onSelectionChange: (e) => {
@@ -41447,7 +41856,7 @@ function Zse(e) {
let t = Number(M.counts[e] || 0);
return /* @__PURE__ */ (0, F.jsxs)(nD, {
id: e,
- className: Yse,
+ className: ice,
children: [Rk[e], t ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
@@ -41459,7 +41868,7 @@ function Zse(e) {
id: u,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- N.length && !ee ? /* @__PURE__ */ (0, F.jsx)(Ise, {
+ N.length && !ee ? /* @__PURE__ */ (0, F.jsx)(Gse, {
groupOptions: te,
groupBy: ne,
onGroupBy: (e) => {
@@ -41500,7 +41909,7 @@ function Zse(e) {
})]
}) : null, /* @__PURE__ */ (0, F.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, F.jsx)(Jse, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, F.jsx)(rce, {
category: u,
row: e,
choice: le(e),
@@ -41523,12 +41932,12 @@ function Zse(e) {
handlers: ve
}, e.item_key))
})]
- }, e.key)) : /* @__PURE__ */ (0, F.jsx)(YC, {
- icon: Mte,
+ }, e.key)) : /* @__PURE__ */ (0, F.jsx)(JC, {
+ icon: Nte,
title: "暂无候选",
children: "该分类当前没有待人工复核的项目。"
}),
- /* @__PURE__ */ (0, F.jsx)(Xse, {
+ /* @__PURE__ */ (0, F.jsx)(ace, {
page: ae.page,
pages: ae.pages,
onPage: _
@@ -41541,30 +41950,30 @@ function Zse(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var Qse = "/api/scraping", $se = "/api/scraping/settings", ece = "/api/scraping/check", iL = "/api/scraping/cover", tce = "/api/scraping/amane-bridge", nce = "/api/scraping/amane-bridge/check", rce = "/api/scraping/amane-bridge/rebuild", aL = ["scraping"], oL = ["scraping", "cover"], sL = ["scraping", "amane-bridge"], cL = (e) => KC(Qse, e), lL = (e) => KC(iL, e), uL = (e) => KC(tce, e);
-async function ice(e) {
+var sce = "/api/scraping", cce = "/api/scraping/settings", lce = "/api/scraping/check", lL = "/api/scraping/cover", uce = "/api/scraping/amane-bridge", dce = "/api/scraping/amane-bridge/check", fce = "/api/scraping/amane-bridge/rebuild", uL = ["scraping"], dL = ["scraping", "cover"], fL = ["scraping", "amane-bridge"], pL = (e) => KC(sce, e), mL = (e) => KC(lL, e), hL = (e) => KC(uce, e);
+async function pce(e) {
await Promise.all([
X.fetchQuery({
- queryKey: aL,
- queryFn: () => cL(e)
+ queryKey: uL,
+ queryFn: () => pL(e)
}),
X.fetchQuery({
- queryKey: oL,
- queryFn: () => lL(e)
+ queryKey: dL,
+ queryFn: () => mL(e)
}),
X.fetchQuery({
- queryKey: sL,
- queryFn: () => uL(e)
+ queryKey: fL,
+ queryFn: () => hL(e)
})
]);
}
-function ace(e, t) {
+function mce(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.message ? `。${e.message}` : "");
}
//#endregion
//#region src/react/scraping/scraping-page.tsx
-var oce = [["peach", "Peach 代理"], ["direct", "直接连接"]], dL = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function sce({ source: e }) {
+var hce = [["peach", "Peach 代理"], ["direct", "直接连接"]], gL = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function gce({ source: e }) {
return /* @__PURE__ */ (0, F.jsx)("img", {
src: o({ source: e }),
alt: "",
@@ -41575,13 +41984,13 @@ function sce({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function cce({ source: e, toast: t }) {
- let [n, r] = (0, P.useState)(e.network), [i, a] = (0, P.useState)(""), [o, s] = (0, P.useState)(""), [c, l] = (0, P.useState)(dL[0][0]), [u, d] = (0, P.useState)(""), [f, p] = (0, P.useState)(""), m = (0, P.useRef)(null);
+function _ce({ source: e, toast: t }) {
+ let [n, r] = (0, P.useState)(e.network), [i, a] = (0, P.useState)(""), [o, s] = (0, P.useState)(""), [c, l] = (0, P.useState)(gL[0][0]), [u, d] = (0, P.useState)(""), [f, p] = (0, P.useState)(""), m = (0, P.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
let g = Ct({
- mutationFn: (t) => q($se, {
+ mutationFn: (t) => q(cce, {
source: e.source,
network: n,
cookie: i,
@@ -41589,12 +41998,12 @@ function cce({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- X.setQueryData(aL, (t) => t && {
+ X.setQueryData(uL, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = Ct({ mutationFn: () => q(ece, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = Ct({ mutationFn: () => q(lce, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -41619,32 +42028,32 @@ function cce({ source: e, toast: t }) {
}
}
let C = f || (g.error ? K(g.error) : "") || (_.error ? K(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;
- return /* @__PURE__ */ (0, F.jsxs)(KA, {
+ return /* @__PURE__ */ (0, F.jsxs)(GA, {
title: e.label,
onSubmit: y,
aside: /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, F.jsx)(sce, { source: e.source }), /* @__PURE__ */ (0, F.jsx)($A, {
+ children: [/* @__PURE__ */ (0, F.jsx)(gce, { source: e.source }), /* @__PURE__ */ (0, F.jsx)(QA, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, F.jsx)(qA, { children: /* @__PURE__ */ (0, F.jsx)(GA, {
+ /* @__PURE__ */ (0, F.jsx)(KA, { children: /* @__PURE__ */ (0, F.jsx)(WA, {
label: "连接方式",
- children: /* @__PURE__ */ (0, F.jsx)(sj, {
+ children: /* @__PURE__ */ (0, F.jsx)(oj, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: oce.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(cj, {
+ children: hce.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(sj, {
id: e,
children: t
}, e))
})
}) }),
- T ? /* @__PURE__ */ (0, F.jsxs)(JA, {
+ T ? /* @__PURE__ */ (0, F.jsxs)(qA, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, F.jsx)("span", {
@@ -41652,7 +42061,7 @@ function cce({ source: e, toast: t }) {
children: /* @__PURE__ */ (0, F.jsx)(NA, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: fS,
+ trailingIcon: dS,
children: "配置 Peach 代理"
})
}) : null,
@@ -41671,10 +42080,10 @@ function cce({ source: e, toast: t }) {
onChange: (e) => {
l(e), h();
},
- className: BN,
- children: dL.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(EE, {
+ className: UN,
+ children: gL.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(EE, {
value: e,
- className: VN,
+ className: WN,
children: t
}, e))
}),
@@ -41687,7 +42096,7 @@ function cce({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(QA, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, F.jsx)(ZA, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, F.jsx)(G, {
@@ -41713,14 +42122,14 @@ function cce({ source: e, toast: t }) {
]
})
] }) : null,
- C ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: C }) : null,
+ C ? /* @__PURE__ */ (0, F.jsx)(XA, { children: C }) : null,
w.map((t) => /* @__PURE__ */ (0, F.jsx)(J, {
tone: t.ok ? "success" : "error",
- children: ace(t, e.label)
+ children: mce(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, F.jsxs)(YA, { children: [
+ /* @__PURE__ */ (0, F.jsxs)(JA, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
onClick: b,
@@ -41742,21 +42151,21 @@ function cce({ source: e, toast: t }) {
]
});
}
-function lce({ toast: e }) {
- let [t, n] = (0, P.useState)(""), { running: r, outcome: i, start: a } = uj({
- queryKey: oL,
- queryFn: ({ signal: e }) => lL(e),
- start: () => q(iL, { code: t }),
+function vce({ toast: e }) {
+ let [t, n] = (0, P.useState)(""), { running: r, outcome: i, start: a } = lj({
+ queryKey: dL,
+ queryFn: ({ signal: e }) => mL(e),
+ start: () => q(lL, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? K(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, F.jsx)(KA, {
+ return /* @__PURE__ */ (0, F.jsx)(GA, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, F.jsxs)(JA, { children: [
+ children: /* @__PURE__ */ (0, F.jsxs)(qA, { children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, F.jsx)("div", {
@@ -41776,7 +42185,7 @@ function lce({ toast: e }) {
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, F.jsx)(XC, { label: "正在抓取封面" }) : null,
+ r ? /* @__PURE__ */ (0, F.jsx)(YC, { label: "正在抓取封面" }) : null,
s ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
children: s
@@ -41788,11 +42197,11 @@ function lce({ toast: e }) {
] })
});
}
-function uce({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = uj({
- queryKey: sL,
- queryFn: ({ signal: e }) => uL(e),
- start: () => q(rce, {}),
+function yce({ toast: e }) {
+ let { query: t, running: n, outcome: r, start: i } = lj({
+ queryKey: fL,
+ queryFn: ({ signal: e }) => hL(e),
+ start: () => q(fce, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -41801,49 +42210,49 @@ function uce({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = Ct({ mutationFn: () => q(nce, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, F.jsx)(KA, {
+ }), a = Ct({ mutationFn: () => q(dce, {}) }), o = t.data;
+ if (!o) return t.error ? /* @__PURE__ */ (0, F.jsx)(GA, {
title: "amane 桥",
- children: /* @__PURE__ */ (0, F.jsx)(JA, { children: /* @__PURE__ */ (0, F.jsx)(J, {
+ children: /* @__PURE__ */ (0, F.jsx)(qA, { children: /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
children: K(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? K(i.error) : a.error ? K(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, F.jsxs)(KA, {
+ return /* @__PURE__ */ (0, F.jsxs)(GA, {
title: "amane 桥",
- aside: /* @__PURE__ */ (0, F.jsx)($A, {
+ aside: /* @__PURE__ */ (0, F.jsx)(QA, {
href: o.repository,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, F.jsxs)(ej, { children: [
- /* @__PURE__ */ (0, F.jsxs)(tj, {
+ /* @__PURE__ */ (0, F.jsxs)($A, { children: [
+ /* @__PURE__ */ (0, F.jsxs)(ej, {
term: "钉住的版本",
children: [o.version ? `${o.version} · ` : "", o.revision.slice(0, 12)]
}),
- /* @__PURE__ */ (0, F.jsx)(tj, {
+ /* @__PURE__ */ (0, F.jsx)(ej, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, F.jsx)(tj, {
+ /* @__PURE__ */ (0, F.jsx)(ej, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, F.jsx)(tj, {
+ /* @__PURE__ */ (0, F.jsx)(ej, {
term: "开放的站",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, F.jsxs)(JA, {
+ /* @__PURE__ */ (0, F.jsxs)(qA, {
divided: !0,
children: [
- /* @__PURE__ */ (0, F.jsxs)(XA, { children: [
+ /* @__PURE__ */ (0, F.jsxs)(YA, { children: [
"这几站由 amane(",
o.license,
")的解析器经独立子进程回答,运行环境按钉住的版本单独安装, 不随上游自动升级;换版本要人读过上游改动再改清单。首次安装约需下载 98 MB。"
] }),
- n ? /* @__PURE__ */ (0, F.jsx)(XC, { label: "正在重建运行环境" }) : null,
+ n ? /* @__PURE__ */ (0, F.jsx)(YC, { label: "正在重建运行环境" }) : null,
c ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
children: c
@@ -41854,7 +42263,7 @@ function uce({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, F.jsxs)(YA, { children: [/* @__PURE__ */ (0, F.jsx)(G, {
+ /* @__PURE__ */ (0, F.jsxs)(JA, { children: [/* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -41871,23 +42280,23 @@ function uce({ toast: e }) {
]
});
}
-function dce({ toast: e }) {
+function bce({ toast: e }) {
let t = St({
- queryKey: aL,
- queryFn: ({ signal: e }) => cL(e)
+ queryKey: uL,
+ queryFn: ({ signal: e }) => pL(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, F.jsxs)(ZC, { children: [
+ return n ? /* @__PURE__ */ (0, F.jsxs)(XC, { children: [
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, F.jsx)(lce, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, F.jsx)(cce, {
+ /* @__PURE__ */ (0, F.jsx)(vce, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, F.jsx)(_ce, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, F.jsx)(uce, { toast: e })
- ] }) : /* @__PURE__ */ (0, F.jsx)(ZC, { children: /* @__PURE__ */ (0, F.jsx)(J, {
+ /* @__PURE__ */ (0, F.jsx)(yce, { toast: e })
+ ] }) : /* @__PURE__ */ (0, F.jsx)(XC, { children: /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "读取失败",
children: t.error ? K(t.error) : "读取采集来源失败"
@@ -41895,21 +42304,21 @@ function dce({ toast: e }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var fL = "/api/configuration", fce = "/api/pick-folder", pL = ["configuration"], mL = (e) => KC(fL, e);
-async function hL(e) {
+var _L = "/api/configuration", xce = "/api/pick-folder", vL = ["configuration"], yL = (e) => KC(_L, e);
+async function bL(e) {
await X.fetchQuery({
- queryKey: pL,
- queryFn: () => mL(e)
+ queryKey: vL,
+ queryFn: () => yL(e)
});
}
//#endregion
//#region src/react/settings/entry-links-settings.tsx
-function pce({ initial: e, receipt: t }) {
- let [n, r] = (0, P.useState)(e.sites), i = tw(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+function Sce({ initial: e, receipt: t }) {
+ let [n, r] = (0, P.useState)(e.sites), i = ew(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, F.jsxs)(KA, {
+ return /* @__PURE__ */ (0, F.jsxs)(GA, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -41918,8 +42327,8 @@ function pce({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, F.jsxs)(JA, { children: [
- /* @__PURE__ */ (0, F.jsx)(XA, { children: "账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。" }),
+ children: [/* @__PURE__ */ (0, F.jsxs)(qA, { children: [
+ /* @__PURE__ */ (0, F.jsx)(YA, { children: "账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。" }),
n.map((e) => /* @__PURE__ */ (0, F.jsx)(gD, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
@@ -41931,8 +42340,8 @@ function pce({ initial: e, receipt: t }) {
validationBehavior: "aria",
hint: "只写域名本身,留空就是默认"
}, e.key)),
- i.error ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, F.jsx)(YA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
+ i.error ? /* @__PURE__ */ (0, F.jsx)(XA, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, F.jsx)(JA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
type: "submit",
...Y(i.busy === "save"),
children: "保存配置"
@@ -41941,21 +42350,21 @@ function pce({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function mce({ data: e, receipt: t }) {
+function Cce({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.startup ? /* @__PURE__ */ (0, F.jsx)(hce, {
+ children: [e.startup ? /* @__PURE__ */ (0, F.jsx)(wce, {
startup: e.startup,
receipt: t
- }) : null, e.entry_links ? /* @__PURE__ */ (0, F.jsx)(pce, {
+ }) : null, e.entry_links ? /* @__PURE__ */ (0, F.jsx)(Sce, {
initial: e.entry_links,
receipt: t
}) : null]
});
}
-function hce({ startup: e, receipt: t }) {
- let [n, r] = (0, P.useState)(e.enabled), [i, a] = (0, P.useState)(e.silent), [o, s] = (0, P.useState)(e.desktop), c = tw(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, F.jsxs)(KA, {
+function wce({ startup: e, receipt: t }) {
+ let [n, r] = (0, P.useState)(e.enabled), [i, a] = (0, P.useState)(e.silent), [o, s] = (0, P.useState)(e.desktop), c = ew(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, F.jsxs)(GA, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => q("/api/configuration/startup", {
@@ -41965,8 +42374,8 @@ function hce({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, F.jsxs)(qA, { children: [
- /* @__PURE__ */ (0, F.jsx)(GA, {
+ /* @__PURE__ */ (0, F.jsxs)(KA, { children: [
+ /* @__PURE__ */ (0, F.jsx)(WA, {
label: "开机后启动 Peach",
children: /* @__PURE__ */ (0, F.jsx)(ok, {
"aria-label": "开机后启动 Peach",
@@ -41975,7 +42384,7 @@ function hce({ startup: e, receipt: t }) {
onChange: r
})
}),
- /* @__PURE__ */ (0, F.jsx)(GA, {
+ /* @__PURE__ */ (0, F.jsx)(WA, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",
children: /* @__PURE__ */ (0, F.jsx)(ok, {
@@ -41985,7 +42394,7 @@ function hce({ startup: e, receipt: t }) {
onChange: a
})
}),
- /* @__PURE__ */ (0, F.jsx)(GA, {
+ /* @__PURE__ */ (0, F.jsx)(WA, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
children: /* @__PURE__ */ (0, F.jsx)(ok, {
@@ -41996,11 +42405,11 @@ function hce({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, F.jsxs)(JA, {
+ e.message || c.error ? /* @__PURE__ */ (0, F.jsxs)(qA, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, F.jsx)(XA, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, F.jsx)(YA, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, F.jsx)(XA, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, F.jsx)(YA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
+ /* @__PURE__ */ (0, F.jsx)(JA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
type: "submit",
disabled: !e.available,
...Y(c.busy === "save"),
@@ -42011,23 +42420,23 @@ function hce({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var gL = /* @__PURE__ */ new Set([
+var xL = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), gce = [
+]), Tce = [
65,
67,
90
-], _L = 120;
-function _ce({ initial: e, initialJob: t }) {
+], SL = 120;
+function Ece({ initial: e, initialJob: t }) {
let [n, r] = (0, P.useState)(e), [i, a] = (0, P.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, P.useState)(""), c = tw(), u = (0, P.useRef)(!1), d = (0, P.useRef)(!0), f = gL.has(i.state);
+ }), [o, s] = (0, P.useState)(""), c = ew(), u = (0, P.useRef)(!1), d = (0, P.useRef)(!0), f = xL.has(i.state);
(0, P.useEffect)(() => (d.current = !0, () => {
d.current = !1;
}), []);
@@ -42044,7 +42453,7 @@ function _ce({ initial: e, initialJob: t }) {
(0, P.useEffect)(() => {
i.state !== "ready" || u.current || (u.current = !0, m());
}, [i.state]), (0, P.useEffect)(() => {
- let e = new AbortController(), t = gL.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ let e = new AbortController(), t = xL.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
let t = await KC("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
@@ -42057,9 +42466,9 @@ function _ce({ initial: e, initialJob: t }) {
let n = await KC("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= _L && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= SL && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < _L && (n = setTimeout(c, t));
+ !e.signal.aborted && o < SL && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@ -42073,57 +42482,57 @@ function _ce({ initial: e, initialJob: t }) {
state: "error"
}), c.setError(K(t));
}), _ = c.error || o, v = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, F.jsxs)(KA, {
+ return /* @__PURE__ */ (0, F.jsxs)(GA, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, F.jsxs)(ej, { children: [
- /* @__PURE__ */ (0, F.jsx)(tj, {
+ /* @__PURE__ */ (0, F.jsxs)($A, { children: [
+ /* @__PURE__ */ (0, F.jsx)(ej, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, F.jsx)(tj, {
+ /* @__PURE__ */ (0, F.jsx)(ej, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, F.jsx)(tj, {
+ /* @__PURE__ */ (0, F.jsx)(ej, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, F.jsx)(tj, {
+ /* @__PURE__ */ (0, F.jsx)(ej, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, F.jsxs)(JA, {
+ /* @__PURE__ */ (0, F.jsxs)(qA, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, F.jsxs)(XA, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, F.jsxs)(YA, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
n.state === "available" && !_ ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : _ || n.state === "error" ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: _ || n.message }) : /* @__PURE__ */ (0, F.jsx)(XA, {
+ }) : _ || n.state === "error" ? /* @__PURE__ */ (0, F.jsx)(XA, { children: _ || n.message }) : /* @__PURE__ */ (0, F.jsx)(YA, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, F.jsx)(XA, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, F.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(ew, {
+ /* @__PURE__ */ (0, F.jsx)($C, {
label: "更新准备进度",
value: i.progress,
- stops: gce
+ stops: Tce
}),
- /* @__PURE__ */ (0, F.jsxs)(XA, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, F.jsx)(XA, { children: v })
+ /* @__PURE__ */ (0, F.jsxs)(YA, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, F.jsx)(YA, { children: v })
]
}) : null
]
}),
- /* @__PURE__ */ (0, F.jsxs)(YA, {
- status: /* @__PURE__ */ (0, F.jsx)($A, {
+ /* @__PURE__ */ (0, F.jsxs)(JA, {
+ status: /* @__PURE__ */ (0, F.jsx)(QA, {
href: n.release_url,
children: "查看发布页"
}),
@@ -42150,59 +42559,59 @@ function _ce({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var vce = [
+var Dce = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function yce({ data: e, receipt: t, reopenTutorial: n }) {
+function Oce({ data: e, receipt: t, reopenTutorial: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, F.jsx)(xce, {
+ e.automatic_updates ? /* @__PURE__ */ (0, F.jsx)(Ace, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, F.jsx)(_ce, {
+ e.updates ? /* @__PURE__ */ (0, F.jsx)(Ece, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, F.jsx)(Sce, { facts: e.facts }),
- /* @__PURE__ */ (0, F.jsx)(bce, {
+ /* @__PURE__ */ (0, F.jsx)(jce, { facts: e.facts }),
+ /* @__PURE__ */ (0, F.jsx)(kce, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, F.jsx)(Cce, {
+ e.uninstall ? /* @__PURE__ */ (0, F.jsx)(Mce, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function bce({ receipt: e, reopenTutorial: t }) {
- let n = tw();
- return /* @__PURE__ */ (0, F.jsxs)(KA, {
+function kce({ receipt: e, reopenTutorial: t }) {
+ let n = ew();
+ return /* @__PURE__ */ (0, F.jsxs)(GA, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, F.jsxs)(JA, { children: [/* @__PURE__ */ (0, F.jsx)(XA, { children: "关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。" }), n.error ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: n.error }) : null] }), /* @__PURE__ */ (0, F.jsx)(YA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
+ children: [/* @__PURE__ */ (0, F.jsxs)(qA, { children: [/* @__PURE__ */ (0, F.jsx)(YA, { children: "关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。" }), n.error ? /* @__PURE__ */ (0, F.jsx)(XA, { children: n.error }) : null] }), /* @__PURE__ */ (0, F.jsx)(JA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...Y(n.busy === "reopen"),
children: "重新打开教程"
}) })]
});
}
-function xce({ initial: e, receipt: t }) {
- let [n, r] = (0, P.useState)(e.mode), [i, a] = (0, P.useState)(e.interval_hours), o = tw(e.error), s = (r) => {
+function Ace({ initial: e, receipt: t }) {
+ let [n, r] = (0, P.useState)(e.mode), [i, a] = (0, P.useState)(e.interval_hours), o = ew(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => q("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, F.jsxs)(KA, {
+ return /* @__PURE__ */ (0, F.jsxs)(GA, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, F.jsxs)(qA, { children: [
- /* @__PURE__ */ (0, F.jsx)(GA, {
+ /* @__PURE__ */ (0, F.jsxs)(KA, { children: [
+ /* @__PURE__ */ (0, F.jsx)(WA, {
label: "自动检查新版本",
children: /* @__PURE__ */ (0, F.jsx)(ok, {
"aria-label": "自动检查新版本",
@@ -42211,7 +42620,7 @@ function xce({ initial: e, receipt: t }) {
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, F.jsx)(GA, {
+ /* @__PURE__ */ (0, F.jsx)(WA, {
label: "自动下载更新",
children: /* @__PURE__ */ (0, F.jsx)(ok, {
"aria-label": "自动下载更新",
@@ -42220,28 +42629,28 @@ function xce({ initial: e, receipt: t }) {
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, F.jsx)(GA, {
+ /* @__PURE__ */ (0, F.jsx)(WA, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, F.jsx)(sj, {
+ children: /* @__PURE__ */ (0, F.jsx)(oj, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: vce.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(cj, {
+ children: Dce.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(sj, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, F.jsx)(JA, {
+ o.error ? /* @__PURE__ */ (0, F.jsx)(qA, {
divided: !0,
- children: /* @__PURE__ */ (0, F.jsx)(ZA, { children: o.error })
+ children: /* @__PURE__ */ (0, F.jsx)(XA, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, F.jsx)(YA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
+ /* @__PURE__ */ (0, F.jsx)(JA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
type: "submit",
disabled: !e.available,
...Y(o.busy === "save"),
@@ -42250,19 +42659,19 @@ function xce({ initial: e, receipt: t }) {
]
});
}
-function Sce({ facts: e }) {
- return /* @__PURE__ */ (0, F.jsx)(KA, {
+function jce({ facts: e }) {
+ return /* @__PURE__ */ (0, F.jsx)(GA, {
title: "运行信息",
- children: /* @__PURE__ */ (0, F.jsx)(ej, { children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)(tj, {
+ children: /* @__PURE__ */ (0, F.jsx)($A, { children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)(ej, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, F.jsx)($A, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, F.jsx)(QA, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function Cce({ uninstall: e, receipt: t }) {
+function Mce({ uninstall: e, receipt: t }) {
let [n, r] = (0, P.useState)(!1), [i, a] = (0, P.useState)(""), o = () => void l({
title: "卸载 Peach",
danger: !0,
@@ -42276,18 +42685,18 @@ function Cce({ uninstall: e, receipt: t }) {
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, F.jsxs)(KA, {
+ return /* @__PURE__ */ (0, F.jsxs)(GA, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, F.jsxs)(JA, { children: [
- e.available ? /* @__PURE__ */ (0, F.jsx)(XA, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, F.jsx)(mj, {
+ children: [/* @__PURE__ */ (0, F.jsxs)(qA, { children: [
+ e.available ? /* @__PURE__ */ (0, F.jsx)(YA, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, F.jsx)(pj, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, F.jsx)(nj, {
+ /* @__PURE__ */ (0, F.jsx)(tj, {
summary: "数据目录",
children: c.map((e) => /* @__PURE__ */ (0, F.jsx)(HA, {
path: e,
@@ -42295,7 +42704,7 @@ function Cce({ uninstall: e, receipt: t }) {
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, F.jsx)(YA, {
+ ] }), /* @__PURE__ */ (0, F.jsx)(JA, {
status: s ? /* @__PURE__ */ (0, F.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@ -42311,7 +42720,7 @@ function Cce({ uninstall: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/clouddrive-guide.tsx
-var wce = [
+var Nce = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -42330,32 +42739,32 @@ var wce = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], Tce = [
+], Pce = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function Ece() {
+function Fce() {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, F.jsxs)(XA, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, F.jsx)($A, {
+ children: [/* @__PURE__ */ (0, F.jsxs)(YA, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, F.jsx)(QA, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, F.jsxs)(nj, {
+ })] }), /* @__PURE__ */ (0, F.jsxs)(tj, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, F.jsx)(XA, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),
+ /* @__PURE__ */ (0, F.jsx)(YA, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),
/* @__PURE__ */ (0, F.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: wce.map((e) => /* @__PURE__ */ (0, F.jsxs)("li", {
+ children: Nce.map((e) => /* @__PURE__ */ (0, F.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, F.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: Tce.map(([t, n]) => /* @__PURE__ */ (0, F.jsxs)("div", {
+ children: Pce.map(([t, n]) => /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, F.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -42376,9 +42785,9 @@ function Ece() {
/* @__PURE__ */ (0, F.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, F.jsxs)(XA, { children: [
+ /* @__PURE__ */ (0, F.jsxs)(YA, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, F.jsx)($A, {
+ /* @__PURE__ */ (0, F.jsx)(QA, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -42390,7 +42799,7 @@ function Ece() {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var vL = [
+var CL = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -42434,13 +42843,13 @@ var vL = [
["star", "收藏"],
["tags", "主题"]
];
-function Dce(e) {
+function Ice(e) {
let t = e === "local" ? "" : s[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var yL = "auto";
-function Oce({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, P.useRef)(null), [a, o] = (0, P.useState)(!1), [s, c] = (0, P.useState)(e), [l, u] = Dce(n);
+var wL = "auto";
+function Lce({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, P.useRef)(null), [a, o] = (0, P.useState)(!1), [s, c] = (0, P.useState)(e), [l, u] = Ice(n);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(G, {
ref: i,
variant: "secondary",
@@ -42454,7 +42863,7 @@ function Oce({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, F.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(rj, { mark: e || l }), ((e) => e && vL.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, F.jsx)(nj, { mark: e || l }), ((e) => e && CL.find(([t]) => t === e)?.[1] || u)(e)]
})
}), /* @__PURE__ */ (0, F.jsx)(gE, {
triggerRef: i,
@@ -42474,15 +42883,15 @@ function Oce({ value: e, label: t, kind: n = "local", onChange: r }) {
}),
/* @__PURE__ */ (0, F.jsx)(TE, {
"aria-label": "候选图标",
- value: s || yL,
- onChange: (e) => c(e === yL ? "" : e),
+ value: s || wL,
+ onChange: (e) => c(e === wL ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: vL.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(EE, {
- value: e || yL,
+ children: CL.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(EE, {
+ value: e || wL,
"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, F.jsx)(rj, { mark: e || l })
- }, e || yL))
+ children: /* @__PURE__ */ (0, F.jsx)(nj, { mark: e || l })
+ }, e || wL))
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -42504,15 +42913,15 @@ function Oce({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var kce = "/api/configuration/push-discovery", Ace = "/api/configuration/push-discovery/secret";
-function jce({ initial: e, receipt: t }) {
- let [n, r] = (0, P.useState)(e), [i, a] = (0, P.useState)(e.prefixes), [o, s] = (0, P.useState)(""), c = tw(), l = PD(), u = n.media_roots, [d, f] = (0, P.useState)(e), p = (e, n) => {
+var Rce = "/api/configuration/push-discovery", zce = "/api/configuration/push-discovery/secret";
+function Bce({ initial: e, receipt: t }) {
+ let [n, r] = (0, P.useState)(e), [i, a] = (0, P.useState)(e.prefixes), [o, s] = (0, P.useState)(""), c = ew(), l = PD(), u = n.media_roots, [d, f] = (0, P.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, F.jsxs)(KA, {
+ return /* @__PURE__ */ (0, F.jsxs)(GA, {
title: "推送发现",
onSubmit: (e) => {
e.preventDefault();
@@ -42522,11 +42931,11 @@ function jce({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => q(kce, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(K(e)));
+ c.run("save", (e) => q(Rce, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(K(e)));
},
children: [
- /* @__PURE__ */ (0, F.jsxs)(qA, { children: [
- /* @__PURE__ */ (0, F.jsx)(GA, {
+ /* @__PURE__ */ (0, F.jsxs)(KA, { children: [
+ /* @__PURE__ */ (0, F.jsx)(WA, {
label: "新文件落地就入库",
description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",
children: /* @__PURE__ */ (0, F.jsx)(ok, {
@@ -42539,7 +42948,7 @@ function jce({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, F.jsx)(GA, {
+ /* @__PURE__ */ (0, F.jsx)(WA, {
label: "监视本机文件夹",
description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",
children: /* @__PURE__ */ (0, F.jsx)(ok, {
@@ -42552,7 +42961,7 @@ function jce({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, F.jsx)(GA, {
+ /* @__PURE__ */ (0, F.jsx)(WA, {
label: "接收 CloudDrive2 通知",
description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",
children: /* @__PURE__ */ (0, F.jsx)(ok, {
@@ -42566,30 +42975,30 @@ function jce({ initial: e, receipt: t }) {
})
})
] }),
- d.enabled ? /* @__PURE__ */ (0, F.jsx)(JA, {
+ d.enabled ? /* @__PURE__ */ (0, F.jsx)(qA, {
divided: !0,
- children: /* @__PURE__ */ (0, F.jsxs)(ej, { children: [d.watch_local ? /* @__PURE__ */ (0, F.jsx)(tj, {
+ children: /* @__PURE__ */ (0, F.jsxs)($A, { children: [d.watch_local ? /* @__PURE__ */ (0, F.jsx)(ej, {
term: "本机文件夹监视",
children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"
- }) : null, /* @__PURE__ */ (0, F.jsx)(tj, {
+ }) : null, /* @__PURE__ */ (0, F.jsx)(ej, {
term: "已入库",
children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`
})] })
}) : null,
- d.enabled && d.cloud ? /* @__PURE__ */ (0, F.jsx)(JA, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, F.jsx)(qA, {
divided: !0,
children: /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, F.jsx)(QA, { children: "CloudDrive2 配置内容" }),
- /* @__PURE__ */ (0, F.jsx)(XA, { children: "在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。 Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。 Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
+ /* @__PURE__ */ (0, F.jsx)(ZA, { children: "CloudDrive2 配置内容" }),
+ /* @__PURE__ */ (0, F.jsx)(YA, { children: "在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。 Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。 Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
d.config_toml ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("div", { children: /* @__PURE__ */ (0, F.jsx)(G, {
size: "small",
onClick: () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));
},
children: "复制配置"
- }) }), /* @__PURE__ */ (0, F.jsx)(nj, {
+ }) }), /* @__PURE__ */ (0, F.jsx)(tj, {
summary: "查看这段配置",
children: /* @__PURE__ */ (0, F.jsx)("div", {
className: "relative",
@@ -42600,17 +43009,17 @@ function jce({ initial: e, receipt: t }) {
children: d.config_toml
})
})
- })] }) : /* @__PURE__ */ (0, F.jsx)(XA, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })
+ })] }) : /* @__PURE__ */ (0, F.jsx)(YA, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })
]
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, F.jsx)(JA, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, F.jsx)(qA, {
divided: !0,
children: /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, F.jsx)(QA, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, F.jsx)(XA, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),
+ /* @__PURE__ */ (0, F.jsx)(ZA, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, F.jsx)(YA, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),
/* @__PURE__ */ (0, F.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -42627,19 +43036,19 @@ function jce({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, F.jsx)(sj, {
+ /* @__PURE__ */ (0, F.jsx)(oj, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, F.jsx)(cj, {
+ children: u.map((e) => /* @__PURE__ */ (0, F.jsx)(sj, {
id: e,
children: e
}, e))
}),
/* @__PURE__ */ (0, F.jsx)(lD, {
- icon: gS,
+ icon: hS,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
@@ -42657,15 +43066,15 @@ function jce({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, F.jsx)(JA, {
+ o || c.error ? /* @__PURE__ */ (0, F.jsx)(qA, {
divided: !0,
- children: /* @__PURE__ */ (0, F.jsx)(ZA, { children: o || c.error })
+ children: /* @__PURE__ */ (0, F.jsx)(XA, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, F.jsxs)(YA, {
+ /* @__PURE__ */ (0, F.jsxs)(JA, {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, F.jsx)(G, {
onClick: () => {
- c.run("secret", (e) => q(Ace, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(K(e)));
+ c.run("secret", (e) => q(zce, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(K(e)));
},
disabled: !n.available,
...Y(c.busy === "secret"),
@@ -42682,8 +43091,8 @@ function jce({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var Mce = 8e3;
-function Nce({ className: e }) {
+var Vce = 8e3;
+function Hce({ className: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -42696,33 +43105,33 @@ function Nce({ className: e }) {
children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-folder-search" })
});
}
-var bL = [
+var TL = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], Pce = (e) => bL.find(([t]) => t === e)?.[1] ?? e, xL = (e) => s[e] || "database", SL = (e = "") => ({
+], Uce = (e) => TL.find(([t]) => t === e)?.[1] ?? e, EL = (e) => s[e] || "database", DL = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function Fce(e) {
- let t = e.media_sources?.filter((e) => bL.some(([t]) => t === e.location));
+function Wce(e) {
+ let t = e.media_sources?.filter((e) => TL.some(([t]) => t === e.location));
return t?.length ? t.map((e) => ({
path: e.path,
location: e.location,
root: e.root,
library: e.library || "",
library_icon: e.library_icon || ""
- })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => SL(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => DL(e));
}
-var Ice = (e) => !(e instanceof WC) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Lce({ data: e, receipt: t }) {
+var Gce = (e) => !(e instanceof WC) || e.status !== 400 ? null : e.body?.errors ?? null;
+function Kce({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.editable ? /* @__PURE__ */ (0, F.jsx)(Rce, {
+ e.editable ? /* @__PURE__ */ (0, F.jsx)(qce, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, F.jsx)(J, {
@@ -42730,21 +43139,21 @@ function Lce({ data: e, receipt: t }) {
title: "只读",
children: e.notice
}),
- /* @__PURE__ */ (0, F.jsx)(Bce, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, F.jsx)(jce, {
+ /* @__PURE__ */ (0, F.jsx)(Yce, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, F.jsx)(Bce, {
initial: e.push_discovery,
receipt: t
}) : null
]
});
}
-function Rce({ data: e, receipt: t }) {
- let [n, r] = (0, P.useState)(() => Fce(e)), [i, a] = (0, P.useState)(String(e.port)), [o, s] = (0, P.useState)(!1), [c, l] = (0, P.useState)([]), [u, d] = (0, P.useState)(""), [f, p] = (0, P.useState)(""), [m, h] = (0, P.useState)(null), [g, _] = (0, P.useState)(null), [v, y] = (0, P.useState)(null), b = (0, P.useRef)(!1), x = (0, P.useRef)(e.revision), S = (0, P.useRef)([]), C = tw();
+function qce({ data: e, receipt: t }) {
+ let [n, r] = (0, P.useState)(() => Wce(e)), [i, a] = (0, P.useState)(String(e.port)), [o, s] = (0, P.useState)(!1), [c, l] = (0, P.useState)([]), [u, d] = (0, P.useState)(""), [f, p] = (0, P.useState)(""), [m, h] = (0, P.useState)(null), [g, _] = (0, P.useState)(null), [v, y] = (0, P.useState)(null), b = (0, P.useRef)(!1), x = (0, P.useRef)(e.revision), S = (0, P.useRef)([]), C = ew();
(0, P.useLayoutEffect)(() => {
g !== null && (S.current[g]?.focus(), _(null));
}, [g]), (0, P.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), Mce);
+ let e = setTimeout(() => location.assign(m.url), Vce);
return () => clearTimeout(e);
}, [m]);
let w = (e, t) => r((n) => n.map((n, r) => r === e ? {
@@ -42755,14 +43164,14 @@ function Rce({ data: e, receipt: t }) {
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), E = () => {
- _(n.length), r((e) => [...e, SL()]);
+ _(n.length), r((e) => [...e, DL()]);
}, D = (e) => {
r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));
}, O = async (e) => {
if (!b.current) {
b.current = !0, y(e);
try {
- let { path: t } = await q(fce, { initial: n[e]?.path ?? "" });
+ let { path: t } = await q(xce, { initial: n[e]?.path ?? "" });
t && (w(e, { path: t }), T(e, ""));
} catch (t) {
T(e, K(t));
@@ -42771,7 +43180,7 @@ function Rce({ data: e, receipt: t }) {
}
}
}, k = (r) => {
- r.preventDefault(), p(""), C.run("save", (t) => q(fL, {
+ r.preventDefault(), p(""), C.run("save", (t) => q(_L, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -42780,13 +43189,13 @@ function Rce({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = Ice(e);
+ let t = Gce(e);
l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(K(e));
});
};
- if (m) return /* @__PURE__ */ (0, F.jsx)(KA, {
+ if (m) return /* @__PURE__ */ (0, F.jsx)(GA, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, F.jsx)(JA, { children: /* @__PURE__ */ (0, F.jsxs)(J, {
+ children: /* @__PURE__ */ (0, F.jsx)(qA, { children: /* @__PURE__ */ (0, F.jsxs)(J, {
tone: "success",
title: "配置已保存",
children: [
@@ -42801,14 +43210,14 @@ function Rce({ 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, F.jsxs)(KA, {
+ return /* @__PURE__ */ (0, F.jsxs)(GA, {
title: "这台电脑",
onSubmit: k,
- children: [/* @__PURE__ */ (0, F.jsxs)(JA, { children: [
+ children: [/* @__PURE__ */ (0, F.jsxs)(qA, { children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, F.jsx)(QA, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, F.jsx)(ZA, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, F.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
@@ -42833,13 +43242,13 @@ function Rce({ data: e, receipt: t }) {
hint: c[r] || void 0
}),
/* @__PURE__ */ (0, F.jsx)(lD, {
- icon: Nce,
+ icon: Hce,
"aria-label": "选择文件夹",
onClick: () => void O(r),
...Y(v === r)
}),
n.length > 1 ? /* @__PURE__ */ (0, F.jsx)(lD, {
- icon: gS,
+ icon: hS,
"aria-label": "移除这个文件夹",
onClick: () => D(r)
}) : null
@@ -42856,7 +43265,7 @@ function Rce({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, F.jsx)(QA, { children: "媒体库图标" }), /* @__PURE__ */ (0, F.jsx)(Oce, {
+ children: [/* @__PURE__ */ (0, F.jsx)(ZA, { children: "媒体库图标" }), /* @__PURE__ */ (0, F.jsx)(Lce, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
@@ -42865,16 +43274,16 @@ function Rce({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, F.jsx)(QA, { children: "媒体来源" }), /* @__PURE__ */ (0, F.jsx)(sj, {
+ children: [/* @__PURE__ */ (0, F.jsx)(ZA, { children: "媒体来源" }), /* @__PURE__ */ (0, F.jsx)(oj, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && w(r, { location: String(e) });
},
- children: bL.map(([e, t]) => /* @__PURE__ */ (0, F.jsxs)(cj, {
+ children: TL.map(([e, t]) => /* @__PURE__ */ (0, F.jsxs)(sj, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, F.jsx)(rj, { mark: xL(e) }), t]
+ children: [/* @__PURE__ */ (0, F.jsx)(nj, { mark: EL(e) }), t]
}, e))
})]
}),
@@ -42895,17 +43304,17 @@ function Rce({ data: e, receipt: t }) {
})
]
}),
- A ? /* @__PURE__ */ (0, F.jsx)(Ece, {}) : null,
- j.map((e) => /* @__PURE__ */ (0, F.jsxs)(XA, { children: [
+ A ? /* @__PURE__ */ (0, F.jsx)(Fce, {}) : null,
+ j.map((e) => /* @__PURE__ */ (0, F.jsxs)(YA, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, F.jsxs)($A, {
+ /* @__PURE__ */ (0, F.jsxs)(QA, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, F.jsx)(XA, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.windows === !1 ? /* @__PURE__ */ (0, F.jsx)(YA, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
e.port_editable === !1 ? null : /* @__PURE__ */ (0, F.jsx)(gD, {
id: "configPort",
label: "本机访问端口",
@@ -42916,7 +43325,7 @@ function Rce({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, F.jsx)(mj, {
+ /* @__PURE__ */ (0, F.jsx)(pj, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
@@ -42926,7 +43335,7 @@ function Rce({ data: e, receipt: t }) {
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, F.jsx)(YA, {
+ ] }), /* @__PURE__ */ (0, F.jsx)(JA, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, F.jsx)(G, {
type: "submit",
@@ -42936,7 +43345,7 @@ function Rce({ data: e, receipt: t }) {
})]
});
}
-function zce({ online: e }) {
+function Jce({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -42960,21 +43369,21 @@ function zce({ online: e }) {
}), "未检测"]
});
}
-function Bce({ data: e }) {
- let t = e.media_sources, n = tw();
- return t ? /* @__PURE__ */ (0, F.jsxs)(KA, {
+function Yce({ data: e }) {
+ let t = e.media_sources, n = ew();
+ return t ? /* @__PURE__ */ (0, F.jsxs)(GA, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, F.jsx)(ej, { children: t.map((e, t) => /* @__PURE__ */ (0, F.jsxs)(tj, {
- term: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(rj, { mark: xL(e.location) }), Pce(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, F.jsx)(zce, { online: e.online })]
+ /* @__PURE__ */ (0, F.jsx)($A, { children: t.map((e, t) => /* @__PURE__ */ (0, F.jsxs)(ej, {
+ term: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(nj, { mark: EL(e.location) }), Uce(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, F.jsx)(Jce, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, F.jsx)(JA, {
+ n.error ? /* @__PURE__ */ (0, F.jsx)(qA, {
divided: !0,
- children: /* @__PURE__ */ (0, F.jsx)(ZA, { children: n.error })
+ children: /* @__PURE__ */ (0, F.jsx)(XA, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, F.jsx)(YA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
- onClick: () => void n.run("refresh", (e) => mL(e), (e) => X.setQueryData(pL, e)),
+ /* @__PURE__ */ (0, F.jsx)(JA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
+ onClick: () => void n.run("refresh", (e) => yL(e), (e) => X.setQueryData(vL, e)),
...Y(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -42983,13 +43392,13 @@ function Bce({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var Vce = {
+var Xce = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function Hce({ initial: e, receipt: t }) {
- let [n, r] = (0, P.useState)(e), [i, a] = (0, P.useState)(""), [o, s] = (0, P.useState)(""), [c, l] = (0, P.useState)(""), [u, d] = (0, P.useState)(!1), [f, p] = (0, P.useState)({}), m = (0, P.useRef)(null), h = tw(), g = (e) => {
+function Zce({ initial: e, receipt: t }) {
+ let [n, r] = (0, P.useState)(e), [i, a] = (0, P.useState)(""), [o, s] = (0, P.useState)(""), [c, l] = (0, P.useState)(""), [u, d] = (0, P.useState)(!1), [f, p] = (0, P.useState)({}), m = (0, P.useRef)(null), h = ew(), 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) {
@@ -43009,20 +43418,20 @@ function Hce({ initial: e, receipt: t }) {
let t = e instanceof WC ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(K(e));
});
- }, _ = Vce[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, F.jsxs)(KA, {
+ }, _ = Xce[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, F.jsxs)(GA, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, F.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, F.jsxs)(JA, { children: [
- _ ? /* @__PURE__ */ (0, F.jsx)(XA, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, F.jsxs)(qA, { children: [
+ _ ? /* @__PURE__ */ (0, F.jsx)(YA, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, F.jsx)(mj, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, F.jsx)(pj, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
@@ -43072,9 +43481,9 @@ function Hce({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, F.jsx)(XA, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, F.jsx)(YA, {
+ }), v ? /* @__PURE__ */ (0, F.jsx)(JA, {
status: "保存后立即生效。",
children: /* @__PURE__ */ (0, F.jsx)(G, {
type: "submit",
@@ -43086,19 +43495,19 @@ function Hce({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var Uce = 2e3, Wce = [["quick", "临时链接"], ["named", "命名隧道"]], Gce = {
+var Qce = 2e3, $ce = [["quick", "临时链接"], ["named", "命名隧道"]], ele = {
quick: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。",
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
-function Kce({ revision: e, initial: t, receipt: n }) {
- let [r, i] = (0, P.useState)(t), [a, o] = (0, P.useState)(e), [s, c] = (0, P.useState)(t.mode), [l, u] = (0, P.useState)(t.hostname), [d, f] = (0, P.useState)(""), [p, m] = (0, P.useState)({}), h = tw(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
+function tle({ revision: e, initial: t, receipt: n }) {
+ let [r, i] = (0, P.useState)(t), [a, o] = (0, P.useState)(e), [s, c] = (0, P.useState)(t.mode), [l, u] = (0, P.useState)(t.hostname), [d, f] = (0, P.useState)(""), [p, m] = (0, P.useState)({}), h = ew(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, P.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- mL(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (X.setQueryData(pL, t), i(t.tunnel), o(t.revision));
+ yL(e.signal).then((t) => {
+ e.signal.aborted || !t.tunnel || (X.setQueryData(vL, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, Uce);
+ }, Qce);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -43117,25 +43526,25 @@ function Kce({ revision: e, initial: t, receipt: n }) {
n ? m(n) : h.setError(K(e));
});
};
- return /* @__PURE__ */ (0, F.jsxs)(KA, {
+ return /* @__PURE__ */ (0, F.jsxs)(GA, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, F.jsxs)(JA, { children: [
+ children: [/* @__PURE__ */ (0, F.jsxs)(qA, { children: [
r.named_available ? /* @__PURE__ */ (0, F.jsx)(TE, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: BN,
- children: Wce.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(EE, {
+ className: UN,
+ children: $ce.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(EE, {
value: e,
- className: VN,
+ className: WN,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, F.jsx)(XA, { children: Gce[_ ? "named" : "quick"] }),
+ /* @__PURE__ */ (0, F.jsx)(YA, { children: ele[_ ? "named" : "quick"] }),
_ ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(gD, {
id: "tunnel-hostname",
label: "公开主机名",
@@ -43167,7 +43576,7 @@ function Kce({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, F.jsx)($A, {
+ children: /* @__PURE__ */ (0, F.jsx)(QA, {
href: r.url,
children: r.url
})
@@ -43177,9 +43586,9 @@ function Kce({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, F.jsxs)(YA, {
+ r.error ? /* @__PURE__ */ (0, F.jsx)(XA, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, F.jsx)(XA, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, F.jsxs)(JA, {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
children: [/* @__PURE__ */ (0, F.jsx)(G, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
@@ -43195,24 +43604,24 @@ function Kce({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var qce = [
+var nle = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function Jce({ data: e, receipt: t }) {
+function rle({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, F.jsx)(Yce, {
+ e.peach_proxy ? /* @__PURE__ */ (0, F.jsx)(ile, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, F.jsx)(Hce, {
+ e.access ? /* @__PURE__ */ (0, F.jsx)(Zce, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, F.jsx)(Kce, {
+ e.tunnel ? /* @__PURE__ */ (0, F.jsx)(tle, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -43220,9 +43629,9 @@ function Jce({ data: e, receipt: t }) {
]
});
}
-function Yce({ initial: e, receipt: t }) {
- let [n, r] = (0, P.useState)(e), [i, a] = (0, P.useState)(e.mode), [o, s] = (0, P.useState)(""), c = tw();
- return /* @__PURE__ */ (0, F.jsxs)(KA, {
+function ile({ initial: e, receipt: t }) {
+ let [n, r] = (0, P.useState)(e), [i, a] = (0, P.useState)(e.mode), [o, s] = (0, P.useState)(""), c = ew();
+ return /* @__PURE__ */ (0, F.jsxs)(GA, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -43234,22 +43643,22 @@ function Yce({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, F.jsx)(qA, { children: /* @__PURE__ */ (0, F.jsx)(GA, {
+ /* @__PURE__ */ (0, F.jsx)(KA, { children: /* @__PURE__ */ (0, F.jsx)(WA, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, F.jsx)(sj, {
+ children: /* @__PURE__ */ (0, F.jsx)(oj, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: qce.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(cj, {
+ children: nle.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(sj, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, F.jsxs)(JA, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, F.jsxs)(qA, {
divided: !0,
children: [
i === "proxy" ? /* @__PURE__ */ (0, F.jsx)(gD, {
@@ -43266,10 +43675,10 @@ function Yce({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, F.jsx)(XA, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, F.jsx)(YA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
+ /* @__PURE__ */ (0, F.jsx)(JA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
type: "submit",
...Y(c.busy === "save"),
children: "保存配置"
@@ -43279,10 +43688,10 @@ function Yce({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function Xce({ receipt: e, reopenTutorial: t }) {
+function ale({ receipt: e, reopenTutorial: t }) {
let n = St({
- queryKey: pL,
- queryFn: ({ signal: e }) => mL(e)
+ queryKey: vL,
+ queryFn: ({ signal: e }) => yL(e)
}), r = n.data;
if (!r) return /* @__PURE__ */ (0, F.jsx)("div", {
className: "configpage",
@@ -43303,22 +43712,22 @@ function Xce({ receipt: e, reopenTutorial: t }) {
className: "configgroup",
children: "通用"
}) : null,
- a ? /* @__PURE__ */ (0, F.jsx)(mce, { ...i }) : null,
+ a ? /* @__PURE__ */ (0, F.jsx)(Cce, { ...i }) : null,
/* @__PURE__ */ (0, F.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, F.jsx)(Lce, { ...i }),
+ /* @__PURE__ */ (0, F.jsx)(Kce, { ...i }),
o ? /* @__PURE__ */ (0, F.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- o ? /* @__PURE__ */ (0, F.jsx)(Jce, { ...i }) : null,
+ o ? /* @__PURE__ */ (0, F.jsx)(rle, { ...i }) : null,
/* @__PURE__ */ (0, F.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ (0, F.jsx)(yce, {
+ /* @__PURE__ */ (0, F.jsx)(Oce, {
...i,
reopenTutorial: t
})
@@ -43327,35 +43736,35 @@ function Xce({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/react/settings/configuration-summary.tsx
-var Zce = (e) => {
+var ole = (e) => {
let t = e.updates;
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
-function Qce({ openConfiguration: e }) {
+function sle({ openConfiguration: e }) {
let t = St({
- queryKey: pL,
- queryFn: ({ signal: e }) => mL(e)
+ queryKey: vL,
+ queryFn: ({ signal: e }) => yL(e)
}), n = t.data;
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, F.jsxs)(ej, { children: [
- /* @__PURE__ */ (0, F.jsx)(tj, {
+ children: [n ? /* @__PURE__ */ (0, F.jsxs)($A, { children: [
+ /* @__PURE__ */ (0, F.jsx)(ej, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, F.jsx)(tj, {
+ /* @__PURE__ */ (0, F.jsx)(ej, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, F.jsx)(tj, {
+ /* @__PURE__ */ (0, F.jsx)(ej, {
term: "更新",
- children: Zce(n)
+ children: ole(n)
})
- ] }) : /* @__PURE__ */ (0, F.jsx)(JA, { children: /* @__PURE__ */ (0, F.jsx)(J, {
+ ] }) : /* @__PURE__ */ (0, F.jsx)(qA, { children: /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "打不开配置",
children: t.error ? K(t.error) : "没有读到配置"
- }) }), /* @__PURE__ */ (0, F.jsx)(YA, {
+ }) }), /* @__PURE__ */ (0, F.jsx)(JA, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
children: /* @__PURE__ */ (0, F.jsx)(G, {
onClick: e,
@@ -43366,14 +43775,14 @@ function Qce({ openConfiguration: e }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var $ce = "/api/stats", CL = ["stats"], wL = (e) => KC($ce, e);
-async function ele(e) {
+var cle = "/api/stats", OL = ["stats"], kL = (e) => KC(cle, e);
+async function lle(e) {
await X.fetchQuery({
- queryKey: CL,
- queryFn: () => wL(e)
+ queryKey: OL,
+ queryFn: () => kL(e)
});
}
-var TL = (e, t) => t ? Math.round(e / t * 100) : 0, tle = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, EL = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, DL = (e) => (e.max_reached || 0) * 100, nle = (e) => e.kind === "online" ? "在线直接观看" : EL(e) < DL(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", rle = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, ile = (e) => Math.max(1, ...e) * 1.1, ale = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), ole = {
+var AL = (e, t) => t ? Math.round(e / t * 100) : 0, ule = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, jL = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, ML = (e) => (e.max_reached || 0) * 100, dle = (e) => e.kind === "online" ? "在线直接观看" : jL(e) < ML(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", fle = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, ple = (e) => Math.max(1, ...e) * 1.1, mle = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), hle = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -43381,18 +43790,18 @@ var TL = (e, t) => t ? Math.round(e / t * 100) : 0, tle = (e) => e >= 3600 ? `${
audio: "音频",
account: "账号",
other: "其它文件"
-}, sle = (e) => e.map((e) => ({
- name: ole[e.k] ?? e.k,
+}, gle = (e) => e.map((e) => ({
+ name: hle[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), cle = {
+})).sort((e, t) => t.value - e.value), _le = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, OL = (e, t = {}) => e.map((e) => ({
+}, NL = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), lle = (e) => OL(e, cle), ule = [
+})), vle = (e) => NL(e, _le), yle = [
[
1,
1,
@@ -43428,49 +43837,49 @@ var TL = (e, t) => t ? Math.round(e / t * 100) : 0, tle = (e) => e >= 3600 ? `${
Infinity,
"≥10 次"
]
-], dle = (e) => ule.map(([t, n, r]) => ({
+], ble = (e) => yle.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), fle = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
-function kL(e) {
- return typeof e == "string" && fle.includes(e);
+})), xle = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
+function PL(e) {
+ return typeof e == "string" && xle.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
-var ple = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
-function AL(e) {
- return typeof e == "string" && ple.has(e);
+var Sle = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
+function FL(e) {
+ return typeof e == "string" && Sle.has(e);
}
-function jL(e) {
+function IL(e) {
return typeof e == "string" && e.startsWith("data-");
}
-function ML(e) {
+function LL(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (AL(n) || jL(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (FL(n) || IL(n)) && (t[n] = e[n]);
return t;
}
-function NL(e) {
+function RL(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, P.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return ML(t);
+ return LL(t);
}
- return typeof e == "object" && !Array.isArray(e) ? ML(e) : null;
+ return typeof e == "object" && !Array.isArray(e) ? LL(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
-function PL(e) {
+function zL(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (AL(n) || jL(n) || kL(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (FL(n) || IL(n) || PL(n)) && (t[n] = e[n]);
return t;
}
-function mle(e) {
- return e == null ? null : /*#__PURE__*/ (0, P.isValidElement)(e) ? PL(e.props) : typeof e == "object" && !Array.isArray(e) ? PL(e) : null;
+function Cle(e) {
+ return e == null ? null : /*#__PURE__*/ (0, P.isValidElement)(e) ? zL(e.props) : typeof e == "object" && !Array.isArray(e) ? zL(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var hle = [
+var wle = [
"children",
"width",
"height",
@@ -43480,25 +43889,25 @@ var hle = [
"title",
"desc"
];
-function FL() {
- return FL = Object.assign ? Object.assign.bind() : function(e) {
+function BL() {
+ return BL = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, FL.apply(null, arguments);
+ }, BL.apply(null, arguments);
}
-function gle(e, t) {
+function Tle(e, t) {
if (e == null) return {};
- var n, r, i = _le(e, t);
+ var n, r, i = Ele(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function _le(e, t) {
+function Ele(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -43507,14 +43916,14 @@ function _le(e, t) {
}
return n;
}
-var IL = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = gle(e, hle), d = a || {
+var VL = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = Tle(e, wle), d = a || {
width: r,
height: i,
x: 0,
y: 0
}, f = Pm("recharts-surface", o);
- return /*#__PURE__*/ P.createElement("svg", FL({}, PL(u), {
+ return /*#__PURE__*/ P.createElement("svg", BL({}, zL(u), {
className: f,
width: r,
height: i,
@@ -43522,26 +43931,26 @@ var IL = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,
ref: t
}), /*#__PURE__*/ P.createElement("title", null, c), /*#__PURE__*/ P.createElement("desc", null, l), n);
-}), vle = ["children", "className"];
-function LL() {
- return LL = Object.assign ? Object.assign.bind() : function(e) {
+}), Dle = ["children", "className"];
+function HL() {
+ return HL = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, LL.apply(null, arguments);
+ }, HL.apply(null, arguments);
}
-function yle(e, t) {
+function Ole(e, t) {
if (e == null) return {};
- var n, r, i = ble(e, t);
+ var n, r, i = kle(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function ble(e, t) {
+function kle(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -43550,39 +43959,39 @@ function ble(e, t) {
}
return n;
}
-var RL = /*#__PURE__*/ P.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = yle(e, vle), a = Pm("recharts-layer", r);
- return /*#__PURE__*/ P.createElement("g", LL({ className: a }, PL(i), { ref: t }), n);
-}), zL = /*#__PURE__*/ (0, P.createContext)(null), xle = () => (0, P.useContext)(zL);
+var UL = /*#__PURE__*/ P.forwardRef((e, t) => {
+ var { children: n, className: r } = e, i = Ole(e, Dle), a = Pm("recharts-layer", r);
+ return /*#__PURE__*/ P.createElement("g", HL({ className: a }, zL(i), { ref: t }), n);
+}), WL = /*#__PURE__*/ (0, P.createContext)(null), Ale = () => (0, P.useContext)(WL);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
-function BL(e) {
+function GL(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
-var VL = Math.cos, HL = Math.sin, UL = Math.sqrt, WL = Math.PI;
-WL / 2;
-var GL = 2 * WL, KL = Math.PI, qL = 2 * KL, JL = 1e-6, Sle = qL - JL;
-function YL(e) {
+var KL = Math.cos, qL = Math.sin, JL = Math.sqrt, YL = Math.PI;
+YL / 2;
+var XL = 2 * YL, ZL = Math.PI, QL = 2 * ZL, $L = 1e-6, jle = QL - $L;
+function eR(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function Cle(e) {
+function Mle(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
- if (t > 15) return YL;
+ if (t > 15) return eR;
let n = 10 ** t;
return function(e) {
this._ += e[0];
for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
};
}
-var XL = class {
+var tR = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? YL : Cle(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? eR : Mle(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -43603,18 +44012,18 @@ var XL = class {
if (e = +e, t = +t, n = +n, r = +r, i = +i, i < 0) throw Error(`negative radius: ${i}`);
let a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;
- else if (d > JL) {
- if (!(Math.abs(u * s - c * l) > JL) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
+ else if (d > $L) {
+ if (!(Math.abs(u * s - c * l) > $L) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
else {
- let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((KL - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > JL && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
+ let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((ZL - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > $L && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
}
}
}
arc(e, t, n, r, i, a) {
if (e = +e, t = +t, n = +n, a = !!a, n < 0) throw Error(`negative radius: ${n}`);
let o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
- this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > JL || Math.abs(this._y1 - l) > JL) && this._append`L${c},${l}`, n && (d < 0 && (d = d % qL + qL), d > Sle ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > JL && this._append`A${n},${n},0,${+(d >= KL)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
+ this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > $L || Math.abs(this._y1 - l) > $L) && this._append`L${c},${l}`, n && (d < 0 && (d = d % QL + QL), d > jle ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > $L && this._append`A${n},${n},0,${+(d >= ZL)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
}
rect(e, t, n, r) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
@@ -43623,10 +44032,10 @@ var XL = class {
return this._;
}
};
-XL.prototype;
+tR.prototype;
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js
-function ZL(e) {
+function nR(e) {
let t = 3;
return e.digits = function(n) {
if (!arguments.length) return t;
@@ -43637,18 +44046,18 @@ function ZL(e) {
t = e;
}
return e;
- }, () => new XL(t);
+ }, () => new tR(t);
}
Array.prototype.slice;
-function QL(e) {
+function rR(e) {
return typeof e == "object" && "length" in e ? e : Array.from(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linear.js
-function $L(e) {
+function iR(e) {
this._context = e;
}
-$L.prototype = {
+iR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -43671,33 +44080,33 @@ $L.prototype = {
}
}
};
-function eR(e) {
- return new $L(e);
+function aR(e) {
+ return new iR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js
-function tR(e) {
+function oR(e) {
return e[0];
}
-function nR(e) {
+function sR(e) {
return e[1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js
-function rR(e, t) {
- var n = BL(!0), r = null, i = eR, a = null, o = ZL(s);
- e = typeof e == "function" ? e : e === void 0 ? tR : BL(e), t = typeof t == "function" ? t : t === void 0 ? nR : BL(t);
+function cR(e, t) {
+ var n = GL(!0), r = null, i = aR, a = null, o = nR(s);
+ e = typeof e == "function" ? e : e === void 0 ? oR : GL(e), t = typeof t == "function" ? t : t === void 0 ? sR : GL(t);
function s(s) {
- var c, l = (s = QL(s)).length, u, d = !1, f;
+ var c, l = (s = rR(s)).length, u, d = !1, f;
for (r ?? (a = i(f = o())), c = 0; c <= l; ++c) !(c < l && n(u = s[c], c, s)) === d && ((d = !d) ? a.lineStart() : a.lineEnd()), d && a.point(+e(u, c, s), +t(u, c, s));
if (f) return a = null, f + "" || null;
}
return s.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : BL(+t), s) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : GL(+t), s) : e;
}, s.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : BL(+e), s) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : GL(+e), s) : t;
}, s.defined = function(e) {
- return arguments.length ? (n = typeof e == "function" ? e : BL(!!e), s) : n;
+ return arguments.length ? (n = typeof e == "function" ? e : GL(!!e), s) : n;
}, s.curve = function(e) {
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
}, s.context = function(e) {
@@ -43706,11 +44115,11 @@ function rR(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js
-function iR(e, t, n) {
- var r = null, i = BL(!0), a = null, o = eR, s = null, c = ZL(l);
- e = typeof e == "function" ? e : e === void 0 ? tR : BL(+e), t = typeof t == "function" ? t : BL(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? nR : BL(+n);
+function lR(e, t, n) {
+ var r = null, i = GL(!0), a = null, o = aR, s = null, c = nR(l);
+ e = typeof e == "function" ? e : e === void 0 ? oR : GL(+e), t = typeof t == "function" ? t : GL(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? sR : GL(+n);
function l(l) {
- var u, d, f, p = (l = QL(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
+ var u, d, f, p = (l = rR(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
for (a ?? (s = o(g = c())), u = 0; u <= p; ++u) {
if (!(u < p && i(m = l[u], u, l)) === h) {
if (h = !h) d = u, s.areaStart(), s.lineStart();
@@ -43724,20 +44133,20 @@ function iR(e, t, n) {
if (g) return s = null, g + "" || null;
}
function u() {
- return rR().defined(i).curve(o).context(a);
+ return cR().defined(i).curve(o).context(a);
}
return l.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : BL(+t), r = null, l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : GL(+t), r = null, l) : e;
}, l.x0 = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : BL(+t), l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : GL(+t), l) : e;
}, l.x1 = function(e) {
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : BL(+e), l) : r;
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : GL(+e), l) : r;
}, l.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : BL(+e), n = null, l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : GL(+e), n = null, l) : t;
}, l.y0 = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : BL(+e), l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : GL(+e), l) : t;
}, l.y1 = function(e) {
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : BL(+e), l) : n;
+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : GL(+e), l) : n;
}, l.lineX0 = l.lineY0 = function() {
return u().x(e).y(t);
}, l.lineY1 = function() {
@@ -43745,7 +44154,7 @@ function iR(e, t, n) {
}, l.lineX1 = function() {
return u().x(r).y(t);
}, l.defined = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : BL(!!e), l) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : GL(!!e), l) : i;
}, l.curve = function(e) {
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
}, l.context = function(e) {
@@ -43754,7 +44163,7 @@ function iR(e, t, n) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js
-var aR = class {
+var uR = class {
constructor(e, t) {
this._context = e, this._x = t;
}
@@ -43781,70 +44190,70 @@ var aR = class {
this._x0 = e, this._y0 = t;
}
};
-function wle(e) {
- return new aR(e, !0);
+function Nle(e) {
+ return new uR(e, !0);
}
-function Tle(e) {
- return new aR(e, !1);
+function Ple(e) {
+ return new uR(e, !1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js
-var oR = { draw(e, t) {
- let n = UL(t / WL);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, GL);
-} }, Ele = { draw(e, t) {
- let n = UL(t / 5) / 2;
+var dR = { draw(e, t) {
+ let n = JL(t / YL);
+ e.moveTo(n, 0), e.arc(0, 0, n, 0, XL);
+} }, Fle = { draw(e, t) {
+ let n = JL(t / 5) / 2;
e.moveTo(-3 * n, -n), e.lineTo(-n, -n), e.lineTo(-n, -3 * n), e.lineTo(n, -3 * n), e.lineTo(n, -n), e.lineTo(3 * n, -n), e.lineTo(3 * n, n), e.lineTo(n, n), e.lineTo(n, 3 * n), e.lineTo(-n, 3 * n), e.lineTo(-n, n), e.lineTo(-3 * n, n), e.closePath();
-} }, sR = UL(1 / 3), Dle = sR * 2, Ole = { draw(e, t) {
- let n = UL(t / Dle), r = n * sR;
+} }, fR = JL(1 / 3), Ile = fR * 2, Lle = { draw(e, t) {
+ let n = JL(t / Ile), r = n * fR;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, kle = { draw(e, t) {
- let n = UL(t), r = -n / 2;
+} }, Rle = { draw(e, t) {
+ let n = JL(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, Ale = .8908130915292852, cR = HL(WL / 10) / HL(7 * WL / 10), jle = HL(GL / 10) * cR, Mle = -VL(GL / 10) * cR, Nle = { draw(e, t) {
- let n = UL(t * Ale), r = jle * n, i = Mle * n;
+} }, zle = .8908130915292852, pR = qL(YL / 10) / qL(7 * YL / 10), Ble = qL(XL / 10) * pR, Vle = -KL(XL / 10) * pR, Hle = { draw(e, t) {
+ let n = JL(t * zle), r = Ble * n, i = Vle * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
- let a = GL * t / 5, o = VL(a), s = HL(a);
+ let a = XL * t / 5, o = KL(a), s = qL(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, lR = UL(3), Ple = { draw(e, t) {
- let n = -UL(t / (lR * 3));
- e.moveTo(0, n * 2), e.lineTo(-lR * n, -n), e.lineTo(lR * n, -n), e.closePath();
-} }, uR = -.5, dR = UL(3) / 2, fR = 1 / UL(12), Fle = (fR / 2 + 1) * 3, Ile = { draw(e, t) {
- let n = UL(t / Fle), r = n / 2, i = n * fR, a = r, o = n * fR + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(uR * r - dR * i, dR * r + uR * i), e.lineTo(uR * a - dR * o, dR * a + uR * o), e.lineTo(uR * s - dR * c, dR * s + uR * c), e.lineTo(uR * r + dR * i, uR * i - dR * r), e.lineTo(uR * a + dR * o, uR * o - dR * a), e.lineTo(uR * s + dR * c, uR * c - dR * s), e.closePath();
+} }, mR = JL(3), Ule = { draw(e, t) {
+ let n = -JL(t / (mR * 3));
+ e.moveTo(0, n * 2), e.lineTo(-mR * n, -n), e.lineTo(mR * n, -n), e.closePath();
+} }, hR = -.5, gR = JL(3) / 2, _R = 1 / JL(12), Wle = (_R / 2 + 1) * 3, Gle = { draw(e, t) {
+ let n = JL(t / Wle), r = n / 2, i = n * _R, a = r, o = n * _R + n, s = -a, c = o;
+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(hR * r - gR * i, gR * r + hR * i), e.lineTo(hR * a - gR * o, gR * a + hR * o), e.lineTo(hR * s - gR * c, gR * s + hR * c), e.lineTo(hR * r + gR * i, hR * i - gR * r), e.lineTo(hR * a + gR * o, hR * o - gR * a), e.lineTo(hR * s + gR * c, hR * c - gR * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function Lle(e, t) {
- let n = null, r = ZL(i);
- e = typeof e == "function" ? e : BL(e || oR), t = typeof t == "function" ? t : BL(t === void 0 ? 64 : +t);
+function Kle(e, t) {
+ let n = null, r = nR(i);
+ e = typeof e == "function" ? e : GL(e || dR), t = typeof t == "function" ? t : GL(t === void 0 ? 64 : +t);
function i() {
let i;
if (n ||= i = r(), e.apply(this, arguments).draw(n, +t.apply(this, arguments)), i) return n = null, i + "" || null;
}
return i.type = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : BL(t), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : GL(t), i) : e;
}, i.size = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : BL(+e), i) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : GL(+e), i) : t;
}, i.context = function(e) {
return arguments.length ? (n = e ?? null, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/noop.js
-function pR() {}
+function vR() {}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js
-function mR(e, t, n) {
+function yR(e, t, n) {
e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
}
-function hR(e) {
+function bR(e) {
this._context = e;
}
-hR.prototype = {
+bR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -43856,7 +44265,7 @@ hR.prototype = {
},
lineEnd: function() {
switch (this._point) {
- case 3: mR(this, this._x1, this._y1);
+ case 3: yR(this, this._x1, this._y1);
case 2: this._context.lineTo(this._x1, this._y1);
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
@@ -43870,22 +44279,22 @@ hR.prototype = {
this._point = 2;
break;
case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
- default: mR(this, e, t);
+ default: yR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Rle(e) {
- return new hR(e);
+function qle(e) {
+ return new bR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js
-function gR(e) {
+function xR(e) {
this._context = e;
}
-gR.prototype = {
- areaStart: pR,
- areaEnd: pR,
+xR.prototype = {
+ areaStart: vR,
+ areaEnd: vR,
lineStart: function() {
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
},
@@ -43911,20 +44320,20 @@ gR.prototype = {
case 2:
this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
break;
- default: mR(this, e, t);
+ default: yR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function zle(e) {
- return new gR(e);
+function Jle(e) {
+ return new xR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js
-function _R(e) {
+function SR(e) {
this._context = e;
}
-_R.prototype = {
+SR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -43951,22 +44360,22 @@ _R.prototype = {
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
break;
case 3: this._point = 4;
- default: mR(this, e, t);
+ default: yR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Ble(e) {
- return new _R(e);
+function Yle(e) {
+ return new SR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js
-function vR(e) {
+function CR(e) {
this._context = e;
}
-vR.prototype = {
- areaStart: pR,
- areaEnd: pR,
+CR.prototype = {
+ areaStart: vR,
+ areaEnd: vR,
lineStart: function() {
this._point = 0;
},
@@ -43977,30 +44386,30 @@ vR.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function Vle(e) {
- return new vR(e);
+function Xle(e) {
+ return new CR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js
-function yR(e) {
+function wR(e) {
return e < 0 ? -1 : 1;
}
-function bR(e, t, n) {
+function TR(e, t, n) {
var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
- return (yR(a) + yR(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
+ return (wR(a) + wR(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
}
-function xR(e, t) {
+function ER(e, t) {
var n = e._x1 - e._x0;
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
}
-function SR(e, t, n) {
+function DR(e, t, n) {
var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
}
-function CR(e) {
+function OR(e) {
this._context = e;
}
-CR.prototype = {
+OR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -44015,7 +44424,7 @@ CR.prototype = {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
- case 3: SR(this, this._t0, xR(this, this._t0));
+ case 3: DR(this, this._t0, ER(this, this._t0));
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
},
@@ -44030,24 +44439,24 @@ CR.prototype = {
this._point = 2;
break;
case 2:
- this._point = 3, SR(this, xR(this, n = bR(this, e, t)), n);
+ this._point = 3, DR(this, ER(this, n = TR(this, e, t)), n);
break;
- default: SR(this, this._t0, n = bR(this, e, t));
+ default: DR(this, this._t0, n = TR(this, e, t));
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
}
}
};
-function wR(e) {
- this._context = new TR(e);
+function kR(e) {
+ this._context = new AR(e);
}
-(wR.prototype = Object.create(CR.prototype)).point = function(e, t) {
- CR.prototype.point.call(this, t, e);
+(kR.prototype = Object.create(OR.prototype)).point = function(e, t) {
+ OR.prototype.point.call(this, t, e);
};
-function TR(e) {
+function AR(e) {
this._context = e;
}
-TR.prototype = {
+AR.prototype = {
moveTo: function(e, t) {
this._context.moveTo(t, e);
},
@@ -44061,18 +44470,18 @@ TR.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function Hle(e) {
- return new CR(e);
+function Zle(e) {
+ return new OR(e);
}
-function Ule(e) {
- return new wR(e);
+function Qle(e) {
+ return new kR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js
-function ER(e) {
+function jR(e) {
this._context = e;
}
-ER.prototype = {
+jR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -44086,7 +44495,7 @@ ER.prototype = {
var e = this._x, t = this._y, n = e.length;
if (n) {
if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
- else for (var r = DR(e), i = DR(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
+ else for (var r = MR(e), i = MR(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
}
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
},
@@ -44094,7 +44503,7 @@ ER.prototype = {
this._x.push(+e), this._y.push(+t);
}
};
-function DR(e) {
+function MR(e) {
var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
@@ -44102,15 +44511,15 @@ function DR(e) {
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
return [i, a];
}
-function Wle(e) {
- return new ER(e);
+function $le(e) {
+ return new jR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js
-function OR(e, t) {
+function NR(e, t) {
this._context = e, this._t = t;
}
-OR.prototype = {
+NR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -44138,78 +44547,78 @@ OR.prototype = {
this._x = e, this._y = t;
}
};
-function Gle(e) {
- return new OR(e, .5);
+function eue(e) {
+ return new NR(e, .5);
}
-function Kle(e) {
- return new OR(e, 0);
+function tue(e) {
+ return new NR(e, 0);
}
-function qle(e) {
- return new OR(e, 1);
+function nue(e) {
+ return new NR(e, 1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js
-function kR(e, t) {
+function PR(e, t) {
if ((o = e.length) > 1) for (var n = 1, r, i, a = e[t[0]], o, s = a.length; n < o; ++n) for (i = a, a = e[t[n]], r = 0; r < s; ++r) a[r][1] += a[r][0] = isNaN(i[r][1]) ? i[r][0] : i[r][1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/order/none.js
-function AR(e) {
+function FR(e) {
for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;
return n;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js
-function Jle(e, t) {
+function rue(e, t) {
return e[t];
}
-function Yle(e) {
+function iue(e) {
let t = [];
return t.key = e, t;
}
-function Xle() {
- var e = BL([]), t = AR, n = kR, r = Jle;
+function aue() {
+ var e = GL([]), t = FR, n = PR, r = rue;
function i(i) {
- var a = Array.from(e.apply(this, arguments), Yle), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), iue), o, s = a.length, c = -1, l;
for (let e of i) for (o = 0, ++c; o < s; ++o) (a[o][c] = [0, +r(e, a[o].key, c, i)]).data = e;
- for (o = 0, l = QL(t(a)); o < s; ++o) a[l[o]].index = o;
+ for (o = 0, l = rR(t(a)); o < s; ++o) a[l[o]].index = o;
return n(a, l), a;
}
return i.keys = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : BL(Array.from(t)), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : GL(Array.from(t)), i) : e;
}, i.value = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : BL(+e), i) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : GL(+e), i) : r;
}, i.order = function(e) {
- return arguments.length ? (t = e == null ? AR : typeof e == "function" ? e : BL(Array.from(e)), i) : t;
+ return arguments.length ? (t = e == null ? FR : typeof e == "function" ? e : GL(Array.from(e)), i) : t;
}, i.offset = function(e) {
- return arguments.length ? (n = e ?? kR, i) : n;
+ return arguments.length ? (n = e ?? PR, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function Zle(e, t) {
+function oue(e, t) {
if ((r = e.length) > 0) {
for (var n, r, i = 0, a = e[0].length, o; i < a; ++i) {
for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0;
if (o) for (n = 0; n < r; ++n) e[n][i][1] /= o;
}
- kR(e, t);
+ PR(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function Qle(e, t) {
+function sue(e, t) {
if ((i = e.length) > 0) {
for (var n = 0, r = e[t[0]], i, a = r.length; n < a; ++n) {
for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;
r[n][1] += r[n][0] = -s / 2;
}
- kR(e, t);
+ PR(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function $le(e, t) {
+function cue(e, t) {
if (!(!((o = e.length) > 0) || !((a = (i = e[t[0]]).length) > 0))) {
for (var n = 0, r = 1, i, a, o; r < a; ++r) {
for (var s = 0, c = 0, l = 0; s < o; ++s) {
@@ -44221,53 +44630,53 @@ function $le(e, t) {
}
i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
}
- i[r - 1][1] += i[r - 1][0] = n, kR(e, t);
+ i[r - 1][1] += i[r - 1][0] = n, PR(e, t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
-function jR(e) {
+function IR(e) {
return e === "__proto__";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var eue = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
-function MR(e) {
+var lue = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+function LR(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : eue.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : lue.test(e);
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
-function NR(e) {
+function RR(e) {
return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs
-function PR(e) {
+function zR(e) {
return typeof e == "symbol" || e instanceof Symbol;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function tue(e) {
- return e == null ? "" : FR(e);
+function uue(e) {
+ return e == null ? "" : BR(e);
}
-function FR(e) {
+function BR(e) {
if (typeof e == "string") return e;
- if (Array.isArray(e)) return e.map(FR).join(",");
- if (PR(e)) return e.toString();
+ if (Array.isArray(e)) return e.map(BR).join(",");
+ if (zR(e)) return e.toString();
let t = e + "";
return t === "0" && Object.is(Number(e), -0) ? "-0" : t;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toPath.mjs
-function IR(e) {
- if (Array.isArray(e)) return e.map(NR);
+function VR(e) {
+ if (Array.isArray(e)) return e.map(RR);
if (typeof e == "symbol") return [e];
- e = tue(e);
+ e = uue(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -44295,100 +44704,100 @@ function IR(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
-function LR(e, t, n) {
+function HR(e, t, n) {
if (e == null) return n;
switch (typeof t) {
case "string": {
- if (jR(t)) return n;
+ if (IR(t)) return n;
let r = e[t];
- return r === void 0 ? MR(t) && !Object.hasOwn(e, t) ? LR(e, IR(t), n) : n : r;
+ return r === void 0 ? LR(t) && !Object.hasOwn(e, t) ? HR(e, VR(t), n) : n : r;
}
case "number":
case "symbol": {
- typeof t == "number" && (t = NR(t));
+ typeof t == "number" && (t = RR(t));
let r = e[t];
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return nue(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), jR(t)) return n;
+ if (Array.isArray(t)) return due(e, t, n);
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), IR(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function nue(e, t, n) {
+function due(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
- if (r == null || jR(t[e])) return n;
+ if (r == null || IR(t[e])) return n;
r = r[t[e]];
}
return r === void 0 ? n : r;
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var rue = 4;
-function RR(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : rue), n = Math.round(e * t) / t;
+var fue = 4;
+function UR(e) {
+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : fue), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
-function zR(e) {
+function WR(e) {
var t = [...arguments].slice(1);
return e.reduce((e, n, r) => {
var i = t[r - 1];
- return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + RR(i) + n;
+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + UR(i) + n;
}, "");
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var BR = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, VR = (e) => typeof e == "number" && e != +e, HR = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !VR(e), UR = (e) => Z(e) || typeof e == "string", iue = 0, WR = (e) => {
- var t = ++iue;
+var GR = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, KR = (e) => typeof e == "number" && e != +e, qR = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !KR(e), JR = (e) => Z(e) || typeof e == "string", pue = 0, YR = (e) => {
+ var t = ++pue;
return `${e || ""}${t}`;
-}, GR = function(e, t) {
+}, XR = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, r = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
if (!Z(e) && typeof e != "string") return n;
var i;
- if (HR(e)) {
+ if (qR(e)) {
if (t == null) return n;
var a = e.indexOf("%");
i = t * parseFloat(e.slice(0, a)) / 100;
} else i = +e;
- return VR(i) && (i = n), r && t != null && i > t && (i = t), i;
-}, KR = (e) => {
+ return KR(i) && (i = n), r && t != null && i > t && (i = t), i;
+}, ZR = (e) => {
if (!Array.isArray(e)) return !1;
for (var t = e.length, n = {}, r = 0; r < t; r++) if (!n[String(e[r])]) n[String(e[r])] = !0;
else return !0;
return !1;
};
-function qR(e, t, n) {
- return Z(e) && Z(t) ? RR(e + n * (t - e)) : t;
+function QR(e, t, n) {
+ return Z(e) && Z(t) ? UR(e + n * (t - e)) : t;
}
-function JR(e, t, n) {
- if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : LR(e, t)) === n);
+function $R(e, t, n) {
+ if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : HR(e, t)) === n);
}
-var YR = (e) => e == null, XR = (e) => YR(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
-function ZR(e) {
+var ez = (e) => e == null, tz = (e) => ez(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
+function nz(e) {
return e != null;
}
-function QR() {}
+function rz() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var aue = [
+var mue = [
"type",
"size",
"sizeType"
];
-function $R() {
- return $R = Object.assign ? Object.assign.bind() : function(e) {
+function iz() {
+ return iz = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, $R.apply(null, arguments);
+ }, iz.apply(null, arguments);
}
-function ez(e, t) {
+function az(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -44398,30 +44807,30 @@ function ez(e, t) {
}
return n;
}
-function tz(e) {
+function oz(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? ez(Object(n), !0).forEach(function(t) {
- oue(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ez(Object(n)).forEach(function(t) {
+ t % 2 ? az(Object(n), !0).forEach(function(t) {
+ hue(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : az(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oue(e, t, n) {
- return (t = sue(t)) in e ? Object.defineProperty(e, t, {
+function hue(e, t, n) {
+ return (t = gue(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sue(e) {
- var t = cue(e, "string");
+function gue(e) {
+ var t = _ue(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cue(e, t) {
+function _ue(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -44431,16 +44840,16 @@ function cue(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function lue(e, t) {
+function vue(e, t) {
if (e == null) return {};
- var n, r, i = uue(e, t);
+ var n, r, i = yue(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function uue(e, t) {
+function yue(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -44449,68 +44858,68 @@ function uue(e, t) {
}
return n;
}
-var nz = {
- symbolCircle: oR,
- symbolCross: Ele,
- symbolDiamond: Ole,
- symbolSquare: kle,
- symbolStar: Nle,
- symbolTriangle: Ple,
- symbolWye: Ile
-}, due = Math.PI / 180, fue = (e) => nz[`symbol${XR(e)}`] || oR, pue = (e, t, n) => {
+var sz = {
+ symbolCircle: dR,
+ symbolCross: Fle,
+ symbolDiamond: Lle,
+ symbolSquare: Rle,
+ symbolStar: Hle,
+ symbolTriangle: Ule,
+ symbolWye: Gle
+}, bue = Math.PI / 180, xue = (e) => sz[`symbol${tz(e)}`] || dR, Sue = (e, t, n) => {
if (t === "area") return e;
switch (n) {
case "cross": return 5 * e * e / 9;
case "diamond": return .5 * e * e / Math.sqrt(3);
case "square": return e * e;
case "star":
- var r = 18 * due;
+ var r = 18 * bue;
return 1.25 * e * e * (Math.tan(r) - Math.tan(r * 2) * Math.tan(r) ** 2);
case "triangle": return Math.sqrt(3) * e * e / 4;
case "wye": return (21 - 10 * Math.sqrt(3)) * e * e / 8;
default: return Math.PI * e * e / 4;
}
-}, mue = (e, t) => {
- nz[`symbol${XR(e)}`] = t;
-}, rz = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = tz(tz({}, lue(e, aue)), {}, {
+}, Cue = (e, t) => {
+ sz[`symbol${tz(e)}`] = t;
+}, cz = (e) => {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = oz(oz({}, vue(e, mue)), {}, {
type: t,
size: n,
sizeType: r
}), a = "circle";
typeof t == "string" && (a = t);
var o = () => {
- var e = fue(a), t = Lle().type(e).size(pue(n, r, a))();
+ var e = xue(a), t = Kle().type(e).size(Sue(n, r, a))();
if (t !== null) return t;
- }, { className: s, cx: c, cy: l } = i, u = PL(i);
- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ P.createElement("path", $R({}, u, {
+ }, { className: s, cx: c, cy: l } = i, u = zL(i);
+ return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ P.createElement("path", iz({}, u, {
className: Pm("recharts-symbols", s),
transform: `translate(${c}, ${l})`,
d: o()
})) : null;
};
-rz.registerSymbol = mue;
+cz.registerSymbol = Cue;
//#endregion
//#region node_modules/recharts/es6/util/types.js
-var iz = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, az = (e, t) => {
+var lz = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, uz = (e, t) => {
if (!e || typeof e == "function" || typeof e == "boolean") return null;
var n = e;
if (/*#__PURE__*/ (0, P.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;
var r = {};
return Object.keys(n).forEach((e) => {
- kL(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
+ PL(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, hue = (e, t, n) => (r) => (e(t, n, r), null), oz = (e, t, n) => {
+}, wue = (e, t, n) => (r) => (e(t, n, r), null), dz = (e, t, n) => {
if (e === null || typeof e != "object" && typeof e != "function") return null;
var r = null;
return Object.keys(e).forEach((i) => {
var a = e[i];
- kL(i) && typeof a == "function" && (r ||= {}, r[i] = hue(a, t, n));
+ PL(i) && typeof a == "function" && (r ||= {}, r[i] = wue(a, t, n));
}), r;
};
//#endregion
//#region node_modules/recharts/es6/util/resolveDefaultProps.js
-function sz(e, t) {
+function fz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -44520,30 +44929,30 @@ function sz(e, t) {
}
return n;
}
-function gue(e) {
+function Tue(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? sz(Object(n), !0).forEach(function(t) {
- _ue(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sz(Object(n)).forEach(function(t) {
+ t % 2 ? fz(Object(n), !0).forEach(function(t) {
+ Eue(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function _ue(e, t, n) {
- return (t = vue(t)) in e ? Object.defineProperty(e, t, {
+function Eue(e, t, n) {
+ return (t = Due(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function vue(e) {
- var t = yue(e, "string");
+function Due(e) {
+ var t = Oue(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function yue(e, t) {
+function Oue(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -44553,22 +44962,22 @@ function yue(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function cz(e, t) {
- var n = gue({}, e), r = t;
+function pz(e, t) {
+ var n = Tue({}, e), r = t;
return Object.keys(t).reduce((e, t) => (e[t] === void 0 && r[t] !== void 0 && (e[t] = r[t]), e), n);
}
//#endregion
//#region node_modules/recharts/es6/component/DefaultLegendContent.js
-function lz() {
- return lz = Object.assign ? Object.assign.bind() : function(e) {
+function mz() {
+ return mz = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, lz.apply(null, arguments);
+ }, mz.apply(null, arguments);
}
-function uz(e, t) {
+function hz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -44578,30 +44987,30 @@ function uz(e, t) {
}
return n;
}
-function dz(e) {
+function gz(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? uz(Object(n), !0).forEach(function(t) {
- bue(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uz(Object(n)).forEach(function(t) {
+ t % 2 ? hz(Object(n), !0).forEach(function(t) {
+ kue(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bue(e, t, n) {
- return (t = xue(t)) in e ? Object.defineProperty(e, t, {
+function kue(e, t, n) {
+ return (t = Aue(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xue(e) {
- var t = Sue(e, "string");
+function Aue(e) {
+ var t = jue(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Sue(e, t) {
+function jue(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -44611,7 +45020,7 @@ function Sue(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var fz = 32, Cue = {
+var _z = 32, Mue = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -44619,20 +45028,20 @@ var fz = 32, Cue = {
verticalAlign: "middle",
labelStyle: {}
};
-function wue(e) {
+function Nue(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function Tue(e) {
- var { data: t, iconType: n, inactiveColor: r } = e, i = fz / 2, a = fz / 6, o = fz / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
+function Pue(e) {
+ var { data: t, iconType: n, inactiveColor: r } = e, i = _z / 2, a = _z / 6, o = _z / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ P.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
- strokeDasharray: wue(t.payload),
+ strokeDasharray: Nue(t.payload),
x1: 0,
y1: i,
- x2: fz,
+ x2: _z,
y2: i,
className: "recharts-legend-icon"
});
@@ -44642,35 +45051,35 @@ function Tue(e) {
stroke: s,
d: `M0,${i}h${o}
A${a},${a},0,1,1,${2 * o},${i}
- H${fz}M${2 * o},${i}
+ H${_z}M${2 * o},${i}
A${a},${a},0,1,1,${o},${i}`,
className: "recharts-legend-icon"
});
if (c === "rect") return /*#__PURE__*/ P.createElement("path", {
stroke: "none",
fill: s,
- d: `M0,${fz / 8}h${fz}v${fz * 3 / 4}h${-fz}z`,
+ d: `M0,${_z / 8}h${_z}v${_z * 3 / 4}h${-_z}z`,
className: "recharts-legend-icon"
});
if (/*#__PURE__*/ P.isValidElement(t.legendIcon)) {
- var l = dz({}, t);
+ var l = gz({}, t);
return delete l.legendIcon, /*#__PURE__*/ P.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ P.createElement(rz, {
+ return /*#__PURE__*/ P.createElement(cz, {
fill: s,
cx: i,
cy: i,
- size: fz,
+ size: _z,
sizeType: "diameter",
type: c
});
}
-function Eue(e) {
+function Fue(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
- width: fz,
- height: fz
+ width: _z,
+ height: _z
}, l = {
display: r === "horizontal" ? "inline-block" : "block",
marginRight: 10
@@ -44686,20 +45095,20 @@ function Eue(e) {
inactive: t.inactive
});
if (t.type === "none") return null;
- var p = typeof s == "object" ? dz({}, s) : {};
+ var p = typeof s == "object" ? gz({}, s) : {};
p.color = t.inactive ? a : p.color || t.color;
var m = d ? d(t.value, t, r) : t.value;
- return /*#__PURE__*/ P.createElement("li", lz({
+ return /*#__PURE__*/ P.createElement("li", mz({
className: f,
style: l,
key: `legend-item-${r}`
- }, oz(e, t, r)), /*#__PURE__*/ P.createElement(IL, {
+ }, dz(e, t, r)), /*#__PURE__*/ P.createElement(VL, {
width: n,
height: n,
viewBox: c,
style: u,
"aria-label": `${m} legend icon`
- }, /*#__PURE__*/ P.createElement(Tue, {
+ }, /*#__PURE__*/ P.createElement(Pue, {
data: t,
iconType: o,
inactiveColor: a
@@ -44709,8 +45118,8 @@ function Eue(e) {
}, m));
});
}
-var Due = (e) => {
- var t = cz(e, Cue), { payload: n, layout: r, align: i } = t;
+var Iue = (e) => {
+ var t = pz(e, Mue), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -44720,11 +45129,11 @@ var Due = (e) => {
return /*#__PURE__*/ P.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ P.createElement(Eue, lz({}, t, { payload: n })));
+ }, /*#__PURE__*/ P.createElement(Fue, mz({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function Oue(e, t) {
+function Lue(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -44734,77 +45143,77 @@ function Oue(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function kue(e, t) {
+function Rue(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
}
//#endregion
//#region node_modules/es-toolkit/dist/function/identity.mjs
-function pz(e) {
+function vz(e) {
return e;
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function Aue(e) {
+function zue(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
-function mz(e) {
- return e != null && typeof e != "function" && Aue(e.length);
+function yz(e) {
+ return e != null && typeof e != "function" && zue(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function jue(e) {
+function Bue(e) {
return function(t) {
- return LR(t, e);
+ return HR(t, e);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
-function hz(e) {
+function bz(e) {
return e == null || typeof e != "object" && typeof e != "function";
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function Mue(e) {
+function Vue(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function Nue(e) {
+function Hue(e) {
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
-function gz(e) {
+function xz(e) {
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs
-var Pue = "[object RegExp]", _z = "[object String]", vz = "[object Number]", yz = "[object Boolean]", bz = "[object Arguments]", Fue = "[object Symbol]", Iue = "[object Date]", Lue = "[object Map]", Rue = "[object Set]", zue = "[object Array]", Bue = "[object ArrayBuffer]", Vue = "[object Object]", Hue = "[object DataView]", Uue = "[object Uint8Array]", Wue = "[object Uint8ClampedArray]", Gue = "[object Uint16Array]", Kue = "[object Uint32Array]", que = "[object Int8Array]", Jue = "[object Int16Array]", Yue = "[object Int32Array]", Xue = "[object Float32Array]", Zue = "[object Float64Array]", xz = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var Uue = "[object RegExp]", Sz = "[object String]", Cz = "[object Number]", wz = "[object Boolean]", Tz = "[object Arguments]", Wue = "[object Symbol]", Gue = "[object Date]", Kue = "[object Map]", que = "[object Set]", Jue = "[object Array]", Yue = "[object ArrayBuffer]", Xue = "[object Object]", Zue = "[object DataView]", Que = "[object Uint8Array]", $ue = "[object Uint8ClampedArray]", ede = "[object Uint16Array]", tde = "[object Uint32Array]", nde = "[object Int8Array]", rde = "[object Int16Array]", ide = "[object Int32Array]", ade = "[object Float32Array]", ode = "[object Float64Array]", Ez = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
return this;
})();
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isBuffer.mjs
-function Que(e) {
- return xz.Buffer !== void 0 && xz.Buffer.isBuffer(e);
+function sde(e) {
+ return Ez.Buffer !== void 0 && Ez.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function $ue(e, t) {
- return Sz(e, void 0, e, /* @__PURE__ */ new Map(), t);
+function cde(e, t) {
+ return Dz(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
-function Sz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
+function Dz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let a = i?.(e, t, n, r);
if (a !== void 0) return a;
- if (hz(e)) return e;
+ if (bz(e)) return e;
if (r.has(e)) return r.get(e);
if (Array.isArray(e)) {
let t = Array(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = Sz(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = Dz(e[a], a, n, r, i);
return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
}
if (e instanceof Date) return new Date(e.getTime());
@@ -44815,132 +45224,132 @@ function Sz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
if (e instanceof Map) {
let t = /* @__PURE__ */ new Map();
r.set(e, t);
- for (let [a, o] of e) t.set(a, Sz(o, a, n, r, i));
+ for (let [a, o] of e) t.set(a, Dz(o, a, n, r, i));
return t;
}
if (e instanceof Set) {
let t = /* @__PURE__ */ new Set();
r.set(e, t);
- for (let a of e) t.add(Sz(a, void 0, n, r, i));
+ for (let a of e) t.add(Dz(a, void 0, n, r, i));
return t;
}
- if (Que(e)) return e.subarray();
- if (Mue(e)) {
+ if (sde(e)) return e.subarray();
+ if (Vue(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = Sz(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = Dz(e[a], a, n, r, i);
return t;
}
if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
if (e instanceof DataView) {
let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
- return r.set(e, t), Cz(t, e, n, r, i), t;
+ return r.set(e, t), Oz(t, e, n, r, i), t;
}
if (typeof File < "u" && e instanceof File) {
let t = new File([e], e.name, { type: e.type });
- return r.set(e, t), Cz(t, e, n, r, i), t;
+ return r.set(e, t), Oz(t, e, n, r, i), t;
}
if (typeof Blob < "u" && e instanceof Blob) {
let t = new Blob([e], { type: e.type });
- return r.set(e, t), Cz(t, e, n, r, i), t;
+ return r.set(e, t), Oz(t, e, n, r, i), t;
}
if (e instanceof Error) {
let t = structuredClone(e);
- return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, Cz(t, e, n, r, i), t;
+ return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, Oz(t, e, n, r, i), t;
}
if (e instanceof Boolean) {
let t = new Boolean(e.valueOf());
- return r.set(e, t), Cz(t, e, n, r, i), t;
+ return r.set(e, t), Oz(t, e, n, r, i), t;
}
if (e instanceof Number) {
let t = new Number(e.valueOf());
- return r.set(e, t), Cz(t, e, n, r, i), t;
+ return r.set(e, t), Oz(t, e, n, r, i), t;
}
if (e instanceof String) {
let t = new String(e.valueOf());
- return r.set(e, t), Cz(t, e, n, r, i), t;
+ return r.set(e, t), Oz(t, e, n, r, i), t;
}
- if (typeof e == "object" && ede(e)) {
+ if (typeof e == "object" && lde(e)) {
let t = Object.create(Object.getPrototypeOf(e));
- return r.set(e, t), Cz(t, e, n, r, i), t;
+ return r.set(e, t), Oz(t, e, n, r, i), t;
}
return e;
}
-function Cz(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...Nue(t)];
+function Oz(e, t, n = e, r, i) {
+ let a = [...Object.keys(t), ...Hue(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
- (c == null || c.writable) && (e[s] = Sz(t[s], s, n, r, i));
+ (c == null || c.writable) && (e[s] = Dz(t[s], s, n, r, i));
}
}
-function ede(e) {
- switch (gz(e)) {
- case bz:
- case zue:
- case Bue:
- case Hue:
- case yz:
- case Iue:
- case Xue:
- case Zue:
- case que:
+function lde(e) {
+ switch (xz(e)) {
+ case Tz:
case Jue:
case Yue:
- case Lue:
- case vz:
- case Vue:
- case Pue:
- case Rue:
- case _z:
- case Fue:
+ case Zue:
+ case wz:
+ case Gue:
+ case ade:
+ case ode:
+ case nde:
+ case rde:
+ case ide:
+ case Kue:
+ case Cz:
+ case Xue:
case Uue:
+ case que:
+ case Sz:
case Wue:
- case Gue:
- case Kue: return !0;
+ case Que:
+ case $ue:
+ case ede:
+ case tde: return !0;
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
-function tde(e) {
- return Sz(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
+function ude(e) {
+ return Dz(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/eq.mjs
-function wz(e, t) {
+function kz(e, t) {
return e === t || Number.isNaN(e) && Number.isNaN(t);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
-function Tz(e) {
+function Az(e) {
return e !== null && (typeof e == "object" || typeof e == "function");
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs
-function Ez(e, t, n) {
- return typeof n == "function" ? Dz(e, t, function e(t, r, i, a, o, s) {
+function jz(e, t, n) {
+ return typeof n == "function" ? Mz(e, t, function e(t, r, i, a, o, s) {
let c = n(t, r, i, a, o, s);
- return c === void 0 ? Dz(t, r, e, s, !1) : !!c;
- }, /* @__PURE__ */ new Map(), !0) : Ez(e, t, () => void 0);
+ return c === void 0 ? Mz(t, r, e, s, !1) : !!c;
+ }, /* @__PURE__ */ new Map(), !0) : jz(e, t, () => void 0);
}
-function Dz(e, t, n, r, i = !1) {
+function Mz(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return nde(e, t, n, r, i);
- case "function": return Object.keys(t).length > 0 ? Dz(e, { ...t }, n, r, i) : wz(e, t);
- default: return Tz(e) && i ? typeof t != "string" || t === "" : wz(e, t);
+ case "object": return dde(e, t, n, r, i);
+ case "function": return Object.keys(t).length > 0 ? Mz(e, { ...t }, n, r, i) : kz(e, t);
+ default: return Az(e) && i ? typeof t != "string" || t === "" : kz(e, t);
}
}
-function nde(e, t, n, r, i = !1) {
+function dde(e, t, n, r, i = !1) {
if (t == null) return !0;
- if (Array.isArray(t)) return Oz(e, t, n, r);
- if (t instanceof Map) return rde(e, t, n, r);
- if (t instanceof Set) return ide(e, t, n, r);
+ if (Array.isArray(t)) return Nz(e, t, n, r);
+ if (t instanceof Map) return fde(e, t, n, r);
+ if (t instanceof Set) return pde(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
- if (i) hz(e) && (e = Object(e));
+ if (i) bz(e) && (e = Object(e));
else {
- let t = gz(e);
+ let t = xz(e);
if (t !== "[object Object]" && t !== "[object Arguments]") return !1;
}
if (a.length === 0) return !0;
@@ -44956,13 +45365,13 @@ function nde(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function rde(e, t, n, r) {
+function fde(e, t, n, r) {
if (t.size === 0) return !0;
if (!(e instanceof Map)) return !1;
for (let [i, a] of t.entries()) if (n(e.get(i), a, i, e, t, r) === !1) return !1;
return !0;
}
-function Oz(e, t, n, r) {
+function Nz(e, t, n, r) {
if (t.length === 0) return !0;
if (!Array.isArray(e)) return !1;
let i = /* @__PURE__ */ new Set();
@@ -44980,40 +45389,40 @@ function Oz(e, t, n, r) {
}
return !0;
}
-function ide(e, t, n, r) {
- return t.size === 0 || e instanceof Set && Oz([...e], [...t], n, r);
+function pde(e, t, n, r) {
+ return t.size === 0 || e instanceof Set && Nz([...e], [...t], n, r);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs
-function kz(e, t) {
- return Ez(e, t, () => void 0);
+function Pz(e, t) {
+ return jz(e, t, () => void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function ade(e) {
- return e = tde(e), (t) => kz(t, e);
+function mde(e) {
+ return e = ude(e), (t) => Pz(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function ode(e, t) {
- return $ue(e, (n, r, i, a) => {
+function hde(e, t) {
+ return cde(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
- if (gz(e) === "[object Object]" && typeof e.constructor != "function") {
+ if (xz(e) === "[object Object]" && typeof e.constructor != "function") {
let t = {};
- return a.set(e, t), Cz(t, e, i, a), t;
+ return a.set(e, t), Oz(t, e, i, a), t;
}
switch (Object.prototype.toString.call(e)) {
- case vz:
- case _z:
- case yz: {
+ case Cz:
+ case Sz:
+ case wz: {
let t = new e.constructor(e?.valueOf());
- return Cz(t, e), t;
+ return Oz(t, e), t;
}
- case bz: {
+ case Tz: {
let t = {};
- return Cz(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
+ return Oz(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
}
default: return;
}
@@ -45022,79 +45431,79 @@ function ode(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function sde(e) {
- return ode(e);
+function gde(e) {
+ return hde(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var cde = /^(?:0|[1-9]\d*)$/;
-function Az(e, t = 2 ** 53 - 1) {
+var _de = /^(?:0|[1-9]\d*)$/;
+function Fz(e, t = 2 ** 53 - 1) {
switch (typeof e) {
case "number": return Number.isInteger(e) && e >= 0 && e < t;
case "symbol": return !1;
- case "string": return cde.test(e);
+ case "string": return _de.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function lde(e) {
- return typeof e == "object" && !!e && gz(e) === "[object Arguments]";
+function vde(e) {
+ return typeof e == "object" && !!e && xz(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function ude(e, t) {
+function yde(e, t) {
let n;
- if (n = Array.isArray(t) ? t : typeof t == "string" && MR(t) && !(t in Object(e)) ? IR(t) : [t], n.length === 0) return !1;
+ if (n = Array.isArray(t) ? t : typeof t == "string" && LR(t) && !(t in Object(e)) ? VR(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
- let t = NR(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || lde(r)) && Az(t) && Number(t) < r.length)) return !1;
+ let t = RR(n[e]);
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || vde(r)) && Fz(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function dde(e, t) {
+function bde(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
- case "number": e = NR(e);
+ case "number": e = RR(e);
}
- return t = sde(t), function(n) {
- let r = LR(n, e);
- return r === void 0 ? ude(n, e) : t === void 0 ? r === void 0 : kz(r, t);
+ return t = gde(t), function(n) {
+ let r = HR(n, e);
+ return r === void 0 ? yde(n, e) : t === void 0 ? r === void 0 : Pz(r, t);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs
-function jz(e) {
- if (e == null) return pz;
+function Iz(e) {
+ if (e == null) return vz;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? dde(e[0], e[1]) : ade(e);
- default: return jue(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? bde(e[0], e[1]) : mde(e);
+ default: return Bue(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function fde(e) {
+function xde(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
-function Mz(e, t = pz) {
- return mz(e) ? Oue(Array.from(e), kue(jz(t), 1)).map(fde) : [];
+function Lz(e, t = vz) {
+ return yz(e) ? Lue(Array.from(e), Rue(Iz(t), 1)).map(xde) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
-function Nz(e, t, n) {
- return t === !0 ? Mz(e, n) : typeof t == "function" ? Mz(e, t) : e;
+function Rz(e, t, n) {
+ return t === !0 ? Lz(e, n) : typeof t == "function" ? Lz(e, t) : e;
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var pde = /* @__PURE__ */ T(((e) => {
+var Sde = /* @__PURE__ */ T(((e) => {
var t = j(), n = ch();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -45139,60 +45548,60 @@ var pde = /* @__PURE__ */ T(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), mde = /* @__PURE__ */ T(((e, t) => {
- t.exports = pde();
-})), Pz = /*#__PURE__*/ (0, P.createContext)(null), hde = mde(), gde = (e) => e, Fz = () => {
- var e = (0, P.useContext)(Pz);
- return e ? e.store.dispatch : gde;
-}, Iz = () => {}, _de = () => Iz, vde = (e, t) => e === t;
+})), Cde = /* @__PURE__ */ T(((e, t) => {
+ t.exports = Sde();
+})), zz = /*#__PURE__*/ (0, P.createContext)(null), wde = Cde(), Tde = (e) => e, Bz = () => {
+ var e = (0, P.useContext)(zz);
+ return e ? e.store.dispatch : Tde;
+}, Vz = () => {}, Ede = () => Vz, Dde = (e, t) => e === t;
function Q(e) {
- var t = (0, P.useContext)(Pz), n = (0, P.useMemo)(() => t ? (t) => {
+ var t = (0, P.useContext)(zz), n = (0, P.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
- } : Iz, [t, e]);
- return (0, hde.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : _de, t ? t.store.getState : Iz, t ? t.store.getState : Iz, n, vde);
+ } : Vz, [t, e]);
+ return (0, wde.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : Ede, t ? t.store.getState : Vz, t ? t.store.getState : Vz, n, Dde);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function yde(e, t = `expected a function, instead received ${typeof e}`) {
+function Ode(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function bde(e, t = `expected an object, instead received ${typeof e}`) {
+function kde(e, t = `expected an object, instead received ${typeof e}`) {
if (typeof e != "object") throw TypeError(t);
}
-function xde(e, t = "expected all items to be functions, instead received the following types: ") {
+function Ade(e, t = "expected all items to be functions, instead received the following types: ") {
if (!e.every((e) => typeof e == "function")) {
let n = e.map((e) => typeof e == "function" ? `function ${e.name || "unnamed"}()` : typeof e).join(", ");
throw TypeError(`${t}[${n}]`);
}
}
-var Lz = (e) => Array.isArray(e) ? e : [e];
-function Sde(e) {
+var Hz = (e) => Array.isArray(e) ? e : [e];
+function jde(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return xde(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return Ade(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function Cde(e, t) {
+function Mde(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var wde = class {
+var Nde = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, Tde = typeof WeakRef < "u" ? WeakRef : wde, Ede = 0, Rz = 1;
-function zz() {
+}, Pde = typeof WeakRef < "u" ? WeakRef : Nde, Fde = 0, Uz = 1;
+function Wz() {
return {
- s: Ede,
+ s: Fde,
v: void 0,
o: null,
p: null
};
}
-function Bz(e, t = {}) {
- let n = zz(), { resultEqualityCheck: r } = t, i, a = 0;
+function Gz(e, t = {}) {
+ let n = Wz(), { resultEqualityCheck: r } = t, i, a = 0;
function o() {
let t = n, { length: o } = arguments;
for (let e = 0, n = o; e < n; e++) {
@@ -45201,43 +45610,43 @@ function Bz(e, t = {}) {
let e = t.o;
e === null && (t.o = e = /* @__PURE__ */ new WeakMap());
let r = e.get(n);
- r === void 0 ? (t = zz(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = Wz(), e.set(n, t)) : t = r;
} else {
let e = t.p;
e === null && (t.p = e = /* @__PURE__ */ new Map());
let r = e.get(n);
- r === void 0 ? (t = zz(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = Wz(), e.set(n, t)) : t = r;
}
}
let s = t, c;
- if (t.s === Rz) c = t.v;
+ if (t.s === Uz) c = t.v;
else if (c = e.apply(null, arguments), a++, r) {
let e = i?.deref?.() ?? i;
- e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new Tde(c) : c;
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new Pde(c) : c;
}
- return s.s = Rz, s.v = c, c;
+ return s.s = Uz, s.v = c, c;
}
return o.clearCache = () => {
- n = zz(), o.resetResultsCount();
+ n = Wz(), o.resetResultsCount();
}, o.resultsCount = () => a, o.resetResultsCount = () => {
a = 0;
}, o;
}
-function Dde(e, ...t) {
+function Ide(e, ...t) {
let n = typeof e == "function" ? {
memoize: e,
memoizeOptions: t
} : e, r = (...e) => {
let t = 0, r = 0, i, a = {}, o = e.pop();
- typeof o == "object" && (a = o, o = e.pop()), yde(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
- let { memoize: s, memoizeOptions: c = [], argsMemoize: l = Bz, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
+ typeof o == "object" && (a = o, o = e.pop()), Ode(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
+ let { memoize: s, memoizeOptions: c = [], argsMemoize: l = Gz, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = Lz(c), p = Lz(u), m = Sde(e), h = s(function() {
+ }, f = Hz(c), p = Hz(u), m = jde(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
- let e = Cde(m, arguments);
+ let e = Mde(m, arguments);
return i = h.apply(null, e), i;
}, ...p);
return Object.assign(g, {
@@ -45259,14 +45668,14 @@ function Dde(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ Dde(Bz), Ode = Object.assign((e, t = $) => {
- bde(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
+var $ = /* @__PURE__ */ Ide(Gz), Lde = Object.assign((e, t = $) => {
+ kde(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
let n = Object.keys(e);
return t(n.map((t) => e[t]), (...e) => e.reduce((e, t, r) => (e[n[r]] = t, e), {}));
-}, { withTypes: () => Ode });
+}, { withTypes: () => Lde });
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function kde(e, t = 1) {
+function Rde(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -45277,17 +45686,17 @@ function kde(e, t = 1) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
-function Vz(e, t, n) {
- return Tz(n) && (typeof t == "number" && mz(n) && Az(t) && t < n.length || typeof t == "string" && t in n) ? wz(n[t], e) : !1;
+function Kz(e, t, n) {
+ return Az(n) && (typeof t == "number" && yz(n) && Fz(t) && t < n.length || typeof t == "string" && t in n) ? kz(n[t], e) : !1;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
-function Hz(e) {
+function qz(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var Ade = (e, t, n) => {
+var zde = (e, t, n) => {
if (e !== t) {
- let r = Hz(e), i = Hz(t);
+ let r = qz(e), i = qz(t);
if (r === i && r === 0) {
if (e < t) return n === "desc" ? 1 : -1;
if (e > t) return n === "desc" ? -1 : 1;
@@ -45295,15 +45704,15 @@ var Ade = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, jde = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Mde = /^\w*$/;
-function Nde(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || PR(e) ? !0 : typeof e == "string" && (Mde.test(e) || !jde.test(e)) || t != null && Object.hasOwn(t, e);
+}, Bde = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Vde = /^\w*$/;
+function Hde(e, t) {
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || zR(e) ? !0 : typeof e == "string" && (Vde.test(e) || !Bde.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function Pde(e, t, n, r) {
+function Ude(e, t, n, r) {
if (e == null) return [];
- n = r ? void 0 : n, Array.isArray(e) || (e = mz(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
+ n = r ? void 0 : n, Array.isArray(e) || (e = yz(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
let i = (e, t) => {
let n = e, r = 0;
for (; r < t.length && n != null; ++r) n = n[t[r]];
@@ -45311,16 +45720,16 @@ function Pde(e, t, n, r) {
}, a = (e, t) => {
if (e == null) return t;
if (t != null) return typeof e == "object" && "key" in e ? Object.hasOwn(t, e.key) ? t[e.key] : i(t, e.path) : typeof e == "function" ? e(t) : Array.isArray(e) ? i(t, e) : t[e];
- }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || Nde(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || Hde(e) ? e : {
key: e,
- path: IR(e)
+ path: VR(e)
}));
return e.map((e) => ({
original: e,
criteria: o.map((t) => a(t, e))
})).slice().sort((e, t) => {
for (let r = 0; r < o.length; r++) {
- let i = Ade(e.criteria[r], t.criteria[r], n[r]);
+ let i = zde(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -45328,25 +45737,25 @@ function Pde(e, t, n, r) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
-function Uz(e, ...t) {
+function Jz(e, ...t) {
let n = t.length;
- return n > 1 && Vz(e, t[0], t[1]) ? t = [] : n > 2 && Vz(t[0], t[1], t[2]) && (t = [t[0]]), Pde(e, kde(t), ["asc"]);
+ return n > 1 && Kz(e, t[0], t[1]) ? t = [] : n > 2 && Kz(t[0], t[1], t[2]) && (t = [t[0]]), Ude(e, Rde(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var Wz = (e) => e.legend.settings, Fde = (e) => e.legend.size, Ide = $([(e) => e.legend.payload, Wz], (e, t) => {
+var Yz = (e) => e.legend.settings, Wde = (e) => e.legend.size, Gde = $([(e) => e.legend.payload, Yz], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
- return n ? Uz(r, n) : r;
+ return n ? Jz(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function Lde() {
- return Q(Ide);
+function Kde() {
+ return Q(Gde);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
-var Gz = 1;
-function Kz() {
+var Xz = 1;
+function Zz() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, P.useState)({
height: 0,
left: 0,
@@ -45361,7 +45770,7 @@ function Kz() {
top: r.top,
width: r.width
};
- (Math.abs(i.height - t.height) > Gz || Math.abs(i.left - t.left) > Gz || Math.abs(i.top - t.top) > Gz || Math.abs(i.width - t.width) > Gz) && n({
+ (Math.abs(i.height - t.height) > Xz || Math.abs(i.left - t.left) > Xz || Math.abs(i.top - t.top) > Xz || Math.abs(i.width - t.width) > Xz) && n({
height: i.height,
left: i.left,
top: i.top,
@@ -45378,26 +45787,26 @@ function Kz() {
}
//#endregion
//#region node_modules/redux/dist/redux.mjs
-function qz(e) {
+function Qz(e) {
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
}
-var Jz = typeof Symbol == "function" && Symbol.observable || "@@observable", Yz = () => Math.random().toString(36).substring(7).split("").join("."), Xz = {
- INIT: `@@redux/INIT${/* @__PURE__ */ Yz()}`,
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ Yz()}`,
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${Yz()}`
+var $z = typeof Symbol == "function" && Symbol.observable || "@@observable", eB = () => Math.random().toString(36).substring(7).split("").join("."), tB = {
+ INIT: `@@redux/INIT${/* @__PURE__ */ eB()}`,
+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ eB()}`,
+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${eB()}`
};
-function Zz(e) {
+function nB(e) {
if (typeof e != "object" || !e) return !1;
let t = e;
for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
}
-function Qz(e, t, n) {
- if (typeof e != "function") throw Error(qz(2));
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(qz(0));
+function rB(e, t, n) {
+ if (typeof e != "function") throw Error(Qz(2));
+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(Qz(0));
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
- if (typeof n != "function") throw Error(qz(1));
- return n(Qz)(e, t);
+ if (typeof n != "function") throw Error(Qz(1));
+ return n(rB)(e, t);
}
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
function l() {
@@ -45406,27 +45815,27 @@ function Qz(e, t, n) {
}));
}
function u() {
- if (c) throw Error(qz(3));
+ if (c) throw Error(Qz(3));
return i;
}
function d(e) {
- if (typeof e != "function") throw Error(qz(4));
- if (c) throw Error(qz(5));
+ if (typeof e != "function") throw Error(Qz(4));
+ if (c) throw Error(Qz(5));
let t = !0;
l();
let n = s++;
return o.set(n, e), function() {
if (t) {
- if (c) throw Error(qz(6));
+ if (c) throw Error(Qz(6));
t = !1, l(), o.delete(n), a = null;
}
};
}
function f(e) {
- if (!Zz(e)) throw Error(qz(7));
- if (e.type === void 0) throw Error(qz(8));
- if (typeof e.type != "string") throw Error(qz(17));
- if (c) throw Error(qz(9));
+ if (!nB(e)) throw Error(Qz(7));
+ if (e.type === void 0) throw Error(Qz(8));
+ if (typeof e.type != "string") throw Error(Qz(17));
+ if (c) throw Error(Qz(9));
try {
c = !0, i = r(i, e);
} finally {
@@ -45437,41 +45846,41 @@ function Qz(e, t, n) {
}), e;
}
function p(e) {
- if (typeof e != "function") throw Error(qz(10));
- r = e, f({ type: Xz.REPLACE });
+ if (typeof e != "function") throw Error(Qz(10));
+ r = e, f({ type: tB.REPLACE });
}
function m() {
let e = d;
return {
subscribe(t) {
- if (typeof t != "object" || !t) throw Error(qz(11));
+ if (typeof t != "object" || !t) throw Error(Qz(11));
function n() {
let e = t;
e.next && e.next(u());
}
return n(), { unsubscribe: e(n) };
},
- [Jz]() {
+ [$z]() {
return this;
}
};
}
- return f({ type: Xz.INIT }), {
+ return f({ type: tB.INIT }), {
dispatch: f,
subscribe: d,
getState: u,
replaceReducer: p,
- [Jz]: m
+ [$z]: m
};
}
-function Rde(e) {
+function qde(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
- if (n(void 0, { type: Xz.INIT }) === void 0) throw Error(qz(12));
- if (n(void 0, { type: Xz.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(qz(13));
+ if (n(void 0, { type: tB.INIT }) === void 0) throw Error(Qz(12));
+ if (n(void 0, { type: tB.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(Qz(13));
});
}
-function $z(e) {
+function iB(e) {
let t = Object.keys(e), n = {};
for (let r = 0; r < t.length; r++) {
let i = t[r];
@@ -45479,7 +45888,7 @@ function $z(e) {
}
let r = Object.keys(n), i;
try {
- Rde(n);
+ qde(n);
} catch (e) {
i = e;
}
@@ -45488,124 +45897,124 @@ function $z(e) {
let a = !1, o = {};
for (let i = 0; i < r.length; i++) {
let s = r[i], c = n[s], l = e[s], u = c(l, t);
- if (u === void 0) throw t && t.type, Error(qz(14));
+ if (u === void 0) throw t && t.type, Error(Qz(14));
o[s] = u, a ||= u !== l;
}
return a ||= r.length !== Object.keys(e).length, a ? o : e;
};
}
-function eB(...e) {
+function aB(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function zde(...e) {
+function Jde(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
- throw Error(qz(15));
+ throw Error(Qz(15));
}, o = {
getState: i.getState,
dispatch: (e, ...t) => a(e, ...t)
};
- return a = eB(...e.map((e) => e(o)))(i.dispatch), {
+ return a = aB(...e.map((e) => e(o)))(i.dispatch), {
...i,
dispatch: a
};
};
}
-function tB(e) {
- return Zz(e) && "type" in e && typeof e.type == "string";
+function oB(e) {
+ return nB(e) && "type" in e && typeof e.type == "string";
}
//#endregion
//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs
-var nB = Symbol.for("immer-nothing"), rB = Symbol.for("immer-draftable"), iB = Symbol.for("immer-state");
-function aB(e, ...t) {
+var sB = Symbol.for("immer-nothing"), cB = Symbol.for("immer-draftable"), lB = Symbol.for("immer-state");
+function uB(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var oB = Object, sB = oB.getPrototypeOf, cB = "constructor", lB = "prototype", uB = "configurable", dB = "enumerable", fB = "writable", pB = "value", mB = (e) => !!e && !!e[iB];
-function hB(e) {
- return e ? _B(e) || CB(e) || !!e[rB] || !!e[cB]?.[rB] || wB(e) || TB(e) : !1;
+var dB = Object, fB = dB.getPrototypeOf, pB = "constructor", mB = "prototype", hB = "configurable", gB = "enumerable", _B = "writable", vB = "value", yB = (e) => !!e && !!e[lB];
+function bB(e) {
+ return e ? SB(e) || OB(e) || !!e[cB] || !!e[pB]?.[cB] || kB(e) || AB(e) : !1;
}
-var Bde = oB[lB][cB].toString(), gB = /* @__PURE__ */ new WeakMap();
-function _B(e) {
- if (!e || !EB(e)) return !1;
- let t = sB(e);
- if (t === null || t === oB[lB]) return !0;
- let n = oB.hasOwnProperty.call(t, cB) && t[cB];
+var Yde = dB[mB][pB].toString(), xB = /* @__PURE__ */ new WeakMap();
+function SB(e) {
+ if (!e || !jB(e)) return !1;
+ let t = fB(e);
+ if (t === null || t === dB[mB]) return !0;
+ let n = dB.hasOwnProperty.call(t, pB) && t[pB];
if (n === Object) return !0;
- if (!DB(n)) return !1;
- let r = gB.get(n);
- return r === void 0 && (r = Function.toString.call(n), gB.set(n, r)), r === Bde;
+ if (!MB(n)) return !1;
+ let r = xB.get(n);
+ return r === void 0 && (r = Function.toString.call(n), xB.set(n, r)), r === Yde;
}
-function vB(e, t, n = !0) {
- yB(e) === 0 ? (n ? Reflect.ownKeys(e) : oB.keys(e)).forEach((n) => {
+function CB(e, t, n = !0) {
+ wB(e) === 0 ? (n ? Reflect.ownKeys(e) : dB.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function yB(e) {
- let t = e[iB];
- return t ? t.type_ : CB(e) ? 1 : wB(e) ? 2 : TB(e) ? 3 : 0;
+function wB(e) {
+ let t = e[lB];
+ return t ? t.type_ : OB(e) ? 1 : kB(e) ? 2 : AB(e) ? 3 : 0;
}
-var bB = (e, t, n = yB(e)) => n === 2 ? e.has(t) : oB[lB].hasOwnProperty.call(e, t), xB = (e, t, n = yB(e)) => n === 2 ? e.get(t) : e[t], SB = (e, t, n, r = yB(e)) => {
+var TB = (e, t, n = wB(e)) => n === 2 ? e.has(t) : dB[mB].hasOwnProperty.call(e, t), EB = (e, t, n = wB(e)) => n === 2 ? e.get(t) : e[t], DB = (e, t, n, r = wB(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function Vde(e, t) {
+function Xde(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-var CB = Array.isArray, wB = (e) => e instanceof Map, TB = (e) => e instanceof Set, EB = (e) => typeof e == "object", DB = (e) => typeof e == "function", OB = (e) => typeof e == "boolean";
-function Hde(e) {
+var OB = Array.isArray, kB = (e) => e instanceof Map, AB = (e) => e instanceof Set, jB = (e) => typeof e == "object", MB = (e) => typeof e == "function", NB = (e) => typeof e == "boolean";
+function Zde(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
-var kB = (e) => e.copy_ || e.base_, AB = (e) => e.modified_ ? e.copy_ : e.base_;
-function jB(e, t) {
- if (wB(e)) return new Map(e);
- if (TB(e)) return new Set(e);
- if (CB(e)) return Array[lB].slice.call(e);
- let n = _B(e);
+var PB = (e) => e.copy_ || e.base_, FB = (e) => e.modified_ ? e.copy_ : e.base_;
+function IB(e, t) {
+ if (kB(e)) return new Map(e);
+ if (AB(e)) return new Set(e);
+ if (OB(e)) return Array[mB].slice.call(e);
+ let n = SB(e);
if (t === !0 || t === "class_only" && !n) {
- let t = oB.getOwnPropertyDescriptors(e);
- delete t[iB];
+ let t = dB.getOwnPropertyDescriptors(e);
+ delete t[lB];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
- a[fB] === !1 && (a[fB] = !0, a[uB] = !0), (a.get || a.set) && (t[i] = {
- [uB]: !0,
- [fB]: !0,
- [dB]: a[dB],
- [pB]: e[i]
+ a[_B] === !1 && (a[_B] = !0, a[hB] = !0), (a.get || a.set) && (t[i] = {
+ [hB]: !0,
+ [_B]: !0,
+ [gB]: a[gB],
+ [vB]: e[i]
});
}
- return oB.create(sB(e), t);
+ return dB.create(fB(e), t);
}
{
- let t = sB(e);
+ let t = fB(e);
if (t !== null && n) return { ...e };
- let r = oB.create(t);
- return oB.assign(r, e);
- }
-}
-function MB(e, t = !1) {
- return PB(e) || mB(e) || !hB(e) ? e : (yB(e) > 1 && oB.defineProperties(e, {
- set: NB,
- add: NB,
- clear: NB,
- delete: NB
- }), oB.freeze(e), t && vB(e, (e, t) => {
- MB(t, !0);
+ let r = dB.create(t);
+ return dB.assign(r, e);
+ }
+}
+function LB(e, t = !1) {
+ return zB(e) || yB(e) || !bB(e) ? e : (wB(e) > 1 && dB.defineProperties(e, {
+ set: RB,
+ add: RB,
+ clear: RB,
+ delete: RB
+ }), dB.freeze(e), t && CB(e, (e, t) => {
+ LB(t, !0);
}, !1), e);
}
-function Ude() {
- aB(2);
-}
-var NB = { [pB]: Ude };
-function PB(e) {
- return e === null || !EB(e) || oB.isFrozen(e);
+function Qde() {
+ uB(2);
}
-var FB = "MapSet", IB = "Patches", LB = "ArrayMethods", RB = {};
+var RB = { [vB]: Qde };
function zB(e) {
- let t = RB[e];
- return t || aB(0, e), t;
+ return e === null || !jB(e) || dB.isFrozen(e);
+}
+var BB = "MapSet", VB = "Patches", HB = "ArrayMethods", UB = {};
+function WB(e) {
+ let t = UB[e];
+ return t || uB(0, e), t;
}
-var BB = (e) => !!RB[e], VB, HB = () => VB, Wde = (e, t) => ({
+var GB = (e) => !!UB[e], KB, qB = () => KB, $de = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -45613,114 +46022,114 @@ var BB = (e) => !!RB[e], VB, HB = () => VB, Wde = (e, t) => ({
unfinalizedDrafts_: 0,
handledSet_: /* @__PURE__ */ new Set(),
processedForPatches_: /* @__PURE__ */ new Set(),
- mapSetPlugin_: BB(FB) ? zB(FB) : void 0,
- arrayMethodsPlugin_: BB(LB) ? zB(LB) : void 0
+ mapSetPlugin_: GB(BB) ? WB(BB) : void 0,
+ arrayMethodsPlugin_: GB(HB) ? WB(HB) : void 0
});
-function UB(e, t) {
- t && (e.patchPlugin_ = zB(IB), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function JB(e, t) {
+ t && (e.patchPlugin_ = WB(VB), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
-function WB(e) {
- GB(e), e.drafts_.forEach(Gde), e.drafts_ = null;
+function YB(e) {
+ XB(e), e.drafts_.forEach(efe), e.drafts_ = null;
}
-function GB(e) {
- e === VB && (VB = e.parent_);
+function XB(e) {
+ e === KB && (KB = e.parent_);
}
-var KB = (e) => VB = Wde(VB, e);
-function Gde(e) {
- let t = e[iB];
+var ZB = (e) => KB = $de(KB, e);
+function efe(e) {
+ let t = e[lB];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function qB(e, t) {
+function QB(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
if (e !== void 0 && e !== n) {
- n[iB].modified_ && (WB(t), aB(4)), hB(e) && (e = JB(t, e));
+ n[lB].modified_ && (YB(t), uB(4)), bB(e) && (e = $B(t, e));
let { patchPlugin_: r } = t;
- r && r.generateReplacementPatches_(n[iB].base_, e, t);
- } else e = JB(t, n);
- return Kde(t, e, !0), WB(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === nB ? void 0 : e;
-}
-function JB(e, t) {
- if (PB(t)) return t;
- let n = t[iB];
- if (!n) return $B(t, e.handledSet_, e);
- if (!XB(n, e)) return t;
+ r && r.generateReplacementPatches_(n[lB].base_, e, t);
+ } else e = $B(t, n);
+ return tfe(t, e, !0), YB(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === sB ? void 0 : e;
+}
+function $B(e, t) {
+ if (zB(t)) return t;
+ let n = t[lB];
+ if (!n) return iV(t, e.handledSet_, e);
+ if (!tV(n, e)) return t;
if (!n.modified_) return n.base_;
if (!n.finalized_) {
let { callbacks_: t } = n;
if (t) for (; t.length > 0;) t.pop()(e);
- QB(n, e);
+ rV(n, e);
}
return n.copy_;
}
-function Kde(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && MB(t, n);
+function tfe(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && LB(t, n);
}
-function YB(e) {
+function eV(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var XB = (e, t) => e.scope_ === t, qde = [];
-function ZB(e, t, n, r) {
- let i = kB(e), a = e.type_;
- if (r !== void 0 && xB(i, r, a) === t) {
- SB(i, r, n, a);
+var tV = (e, t) => e.scope_ === t, nfe = [];
+function nV(e, t, n, r) {
+ let i = PB(e), a = e.type_;
+ if (r !== void 0 && EB(i, r, a) === t) {
+ DB(i, r, n, a);
return;
}
if (!e.draftLocations_) {
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
- vB(i, (e, n) => {
- if (mB(n)) {
+ CB(i, (e, n) => {
+ if (yB(n)) {
let r = t.get(n) || [];
r.push(e), t.set(n, r);
}
});
}
- let o = e.draftLocations_.get(t) ?? qde;
- for (let e of o) SB(i, e, n, a);
+ let o = e.draftLocations_.get(t) ?? nfe;
+ for (let e of o) DB(i, e, n, a);
}
-function Jde(e, t, n) {
+function rfe(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
- if (!i || !XB(i, r)) return;
+ if (!i || !tV(i, r)) return;
r.mapSetPlugin_?.fixSetContents(i);
- let a = AB(i);
- ZB(e, i.draft_ ?? i, a, n), QB(i, r);
+ let a = FB(i);
+ nV(e, i.draft_ ?? i, a, n), rV(i, r);
});
}
-function QB(e, t) {
+function rV(e, t) {
if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {
let { patchPlugin_: n } = t;
if (n) {
let r = n.getPath(e);
r && n.generatePatches_(e, r, t);
}
- YB(e);
+ eV(e);
}
}
-function Yde(e, t, n) {
+function ife(e, t, n) {
let { scope_: r } = e;
- if (mB(n)) {
- let i = n[iB];
- XB(i, r) && i.callbacks_.push(function() {
- aV(e), ZB(e, n, AB(i), t);
+ if (yB(n)) {
+ let i = n[lB];
+ tV(i, r) && i.callbacks_.push(function() {
+ uV(e), nV(e, n, FB(i), t);
});
- } else hB(n) && e.callbacks_.push(function() {
- let i = kB(e);
- e.type_ === 3 ? i.has(n) && $B(n, r.handledSet_, r) : xB(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && $B(xB(e.copy_, t, e.type_), r.handledSet_, r);
+ } else bB(n) && e.callbacks_.push(function() {
+ let i = PB(e);
+ e.type_ === 3 ? i.has(n) && iV(n, r.handledSet_, r) : EB(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && iV(EB(e.copy_, t, e.type_), r.handledSet_, r);
});
}
-function $B(e, t, n) {
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || mB(e) || t.has(e) || !hB(e) || PB(e) ? e : (t.add(e), vB(e, (r, i) => {
- if (mB(i)) {
- let t = i[iB];
- XB(t, n) && (SB(e, r, AB(t), e.type_), YB(t));
- } else hB(i) && $B(i, t, n);
+function iV(e, t, n) {
+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || yB(e) || t.has(e) || !bB(e) || zB(e) ? e : (t.add(e), CB(e, (r, i) => {
+ if (yB(i)) {
+ let t = i[lB];
+ tV(t, n) && (DB(e, r, FB(t), e.type_), eV(t));
+ } else bB(i) && iV(i, t, n);
}), e);
}
-function Xde(e, t) {
- let n = CB(e), r = {
+function afe(e, t) {
+ let n = OB(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : HB(),
+ scope_: t ? t.scope_ : qB(),
modified_: !1,
finalized_: !1,
assigned_: void 0,
@@ -45731,108 +46140,108 @@ function Xde(e, t) {
revoke_: null,
isManual_: !1,
callbacks_: void 0
- }, i = r, a = eV;
- n && (i = [r], a = tV);
+ }, i = r, a = aV;
+ n && (i = [r], a = oV);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, [s, r];
}
-var eV = {
+var aV = {
get(e, t) {
- if (t === iB) return e;
+ if (t === lB) return e;
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
- let i = kB(e);
- if (!bB(i, t, e.type_)) return Qde(e, i, t);
+ let i = PB(e);
+ if (!TB(i, t, e.type_)) return sfe(e, i, t);
let a = i[t];
- if (e.finalized_ || !hB(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && Hde(t)) return a;
- if (a === nV(e.base_, t) || Zde(e, t, a)) {
- aV(e);
- let n = e.type_ === 1 ? +t : t, r = oV(e.scope_, a, e, n);
+ if (e.finalized_ || !bB(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && Zde(t)) return a;
+ if (a === sV(e.base_, t) || ofe(e, t, a)) {
+ uV(e);
+ let n = e.type_ === 1 ? +t : t, r = dV(e.scope_, a, e, n);
return e.copy_[n] = r;
}
return a;
},
has(e, t) {
- return t in kB(e);
+ return t in PB(e);
},
ownKeys(e) {
- return Reflect.ownKeys(kB(e));
+ return Reflect.ownKeys(PB(e));
},
set(e, t, n) {
- let r = rV(kB(e), t);
+ let r = cV(PB(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = nV(kB(e), t), i = r?.[iB];
+ let r = sV(PB(e), t), i = r?.[lB];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (Vde(n, r) && (n !== void 0 || bB(e.base_, t, e.type_))) return !0;
- aV(e), iV(e);
+ if (Xde(n, r) && (n !== void 0 || TB(e.base_, t, e.type_))) return !0;
+ uV(e), lV(e);
}
- return e.copy_[t] === n && (n !== void 0 || bB(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), Yde(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || TB(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), ife(e, t, n), !0);
},
deleteProperty(e, t) {
- return aV(e), nV(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), iV(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
+ return uV(e), sV(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), lV(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = kB(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = PB(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
- [fB]: !0,
- [uB]: e.type_ !== 1 || t !== "length",
- [dB]: r[dB],
- [pB]: n[t]
+ [_B]: !0,
+ [hB]: e.type_ !== 1 || t !== "length",
+ [gB]: r[gB],
+ [vB]: n[t]
};
},
defineProperty() {
- aB(11);
+ uB(11);
},
getPrototypeOf(e) {
- return sB(e.base_);
+ return fB(e.base_);
},
setPrototypeOf() {
- aB(12);
+ uB(12);
}
-}, tV = {};
-for (let e in eV) {
- let t = eV[e];
- tV[e] = function() {
+}, oV = {};
+for (let e in aV) {
+ let t = aV[e];
+ oV[e] = function() {
let e = arguments;
return e[0] = e[0][0], t.apply(this, e);
};
}
-tV.deleteProperty = function(e, t) {
- return tV.set.call(this, e, t, void 0);
-}, tV.set = function(e, t, n) {
- return eV.set.call(this, e[0], t, n, e[0]);
+oV.deleteProperty = function(e, t) {
+ return oV.set.call(this, e, t, void 0);
+}, oV.set = function(e, t, n) {
+ return aV.set.call(this, e[0], t, n, e[0]);
};
-function nV(e, t) {
- let n = e[iB];
- return (n ? kB(n) : e)[t];
+function sV(e, t) {
+ let n = e[lB];
+ return (n ? PB(n) : e)[t];
}
-function Zde(e, t, n) {
- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !hB(n) || n[iB] ? !1 : e.baseRefs_.has(n);
+function ofe(e, t, n) {
+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !bB(n) || n[lB] ? !1 : e.baseRefs_.has(n);
}
-function Qde(e, t, n) {
- let r = rV(t, n);
- return r ? pB in r ? r[pB] : r.get?.call(e.draft_) : void 0;
+function sfe(e, t, n) {
+ let r = cV(t, n);
+ return r ? vB in r ? r[vB] : r.get?.call(e.draft_) : void 0;
}
-function rV(e, t) {
+function cV(e, t) {
if (!(t in e)) return;
- let n = sB(e);
+ let n = fB(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = sB(n);
+ n = fB(n);
}
}
-function iV(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && iV(e.parent_));
+function lV(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && lV(e.parent_));
}
-function aV(e) {
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), jB(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+function uV(e) {
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), IB(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
-var $de = class {
+var cfe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
- if (DB(e) && !DB(t)) {
+ if (MB(e) && !MB(t)) {
let n = t;
t = e;
let r = this;
@@ -45840,30 +46249,30 @@ var $de = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- DB(t) || aB(6), n !== void 0 && !DB(n) && aB(7);
+ MB(t) || uB(6), n !== void 0 && !MB(n) && uB(7);
let r;
- if (hB(e)) {
- let i = KB(this), a = oV(i, e, void 0), o = !0;
+ if (bB(e)) {
+ let i = ZB(this), a = dV(i, e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? WB(i) : GB(i);
+ o ? YB(i) : XB(i);
}
- return UB(i, n), qB(r, i);
+ return JB(i, n), QB(r, i);
}
- if (!e || !EB(e)) {
- if (r = t(e), r === void 0 && (r = e), r === nB && (r = void 0), this.autoFreeze_ && MB(r, !0), n) {
+ if (!e || !jB(e)) {
+ if (r = t(e), r === void 0 && (r = e), r === sB && (r = void 0), this.autoFreeze_ && LB(r, !0), n) {
let t = [], i = [];
- zB(IB).generateReplacementPatches_(e, r, {
+ WB(VB).generateReplacementPatches_(e, r, {
patches_: t,
inversePatches_: i
}), n(t, i);
}
return r;
}
- aB(1, e);
+ uB(1, e);
}, this.produceWithPatches = (e, t) => {
- if (DB(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
+ if (MB(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
return [
this.produce(e, t, (e, t) => {
@@ -45872,18 +46281,18 @@ var $de = class {
n,
r
];
- }, OB(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), OB(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), OB(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
+ }, NB(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), NB(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), NB(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- hB(e) || aB(8), mB(e) && (e = sV(e));
- let t = KB(this), n = oV(t, e, void 0);
- return n[iB].isManual_ = !0, GB(t), n;
+ bB(e) || uB(8), yB(e) && (e = fV(e));
+ let t = ZB(this), n = dV(t, e, void 0);
+ return n[lB].isManual_ = !0, XB(t), n;
}
finishDraft(e, t) {
- let n = e && e[iB];
- (!n || !n.isManual_) && aB(9);
+ let n = e && e[lB];
+ (!n || !n.isManual_) && uB(9);
let { scope_: r } = n;
- return UB(r, t), qB(void 0, r);
+ return JB(r, t), QB(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -45907,48 +46316,48 @@ var $de = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = zB(IB).applyPatches_;
- return mB(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = WB(VB).applyPatches_;
+ return yB(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function oV(e, t, n, r) {
- let [i, a] = wB(t) ? zB(FB).proxyMap_(t, n) : TB(t) ? zB(FB).proxySet_(t, n) : Xde(t, n);
- return (n?.scope_ ?? HB()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? Jde(n, a, r) : a.callbacks_.push(function(e) {
+function dV(e, t, n, r) {
+ let [i, a] = kB(t) ? WB(BB).proxyMap_(t, n) : AB(t) ? WB(BB).proxySet_(t, n) : afe(t, n);
+ return (n?.scope_ ?? qB()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? rfe(n, a, r) : a.callbacks_.push(function(e) {
e.mapSetPlugin_?.fixSetContents(a);
let { patchPlugin_: t } = e;
a.modified_ && t && t.generatePatches_(a, [], e);
}), i;
}
-function sV(e) {
- return mB(e) || aB(10, e), cV(e);
+function fV(e) {
+ return yB(e) || uB(10, e), pV(e);
}
-function cV(e) {
- if (!hB(e) || PB(e)) return e;
- let t = e[iB], n, r = !0;
+function pV(e) {
+ if (!bB(e) || zB(e)) return e;
+ let t = e[lB], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = jB(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = jB(e, !0);
- return vB(n, (e, t) => {
- SB(n, e, cV(t));
+ t.finalized_ = !0, n = IB(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = IB(e, !0);
+ return CB(n, (e, t) => {
+ DB(n, e, pV(t));
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var lV = new $de().produce;
+var mV = new cfe().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
-function uV(e) {
+function hV(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var efe = uV(), tfe = uV, nfe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
- if (arguments.length !== 0) return typeof arguments[0] == "object" ? eB : eB.apply(null, arguments);
+var lfe = hV(), ufe = hV, dfe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? aB : aB.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
-function dV(e, t) {
+function gV(e, t) {
function n(...n) {
if (t) {
let r = t(...n);
- if (!r) throw Error(ZV(0));
+ if (!r) throw Error(rH(0));
return {
type: e,
payload: r.payload,
@@ -45961,9 +46370,9 @@ function dV(e, t) {
payload: n[0]
};
}
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => tB(t) && t.type === e, n;
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => oB(t) && t.type === e, n;
}
-var fV = class e extends Array {
+var _V = class e extends Array {
constructor(...t) {
super(...t), Object.setPrototypeOf(this, e.prototype);
}
@@ -45977,29 +46386,29 @@ var fV = class e extends Array {
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
}
};
-function pV(e) {
- return hB(e) ? lV(e, () => {}) : e;
+function vV(e) {
+ return bB(e) ? mV(e, () => {}) : e;
}
-function mV(e, t, n) {
+function yV(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function rfe(e) {
+function ffe(e) {
return typeof e == "boolean";
}
-var ife = () => function(e) {
- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new fV();
- return t && (rfe(t) ? a.push(efe) : a.push(tfe(t.extraArgument))), a;
-}, hV = "RTK_autoBatch", gV = () => (e) => ({
+var pfe = () => function(e) {
+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new _V();
+ return t && (ffe(t) ? a.push(lfe) : a.push(ufe(t.extraArgument))), a;
+}, bV = "RTK_autoBatch", xV = () => (e) => ({
payload: e,
- meta: { [hV]: !0 }
-}), _V = (e) => (t) => {
+ meta: { [bV]: !0 }
+}), SV = (e) => (t) => {
setTimeout(t, e);
-}, afe = (e, t) => (n) => {
+}, mfe = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
-}, vV = (e = { type: "raf" }) => (t) => (...n) => {
- let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? afe(window.requestAnimationFrame, 100) : _V(10) : e.type === "callback" ? e.queueNotification : _V(e.timeout), l = () => {
+}, CV = (e = { type: "raf" }) => (t) => (...n) => {
+ let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? mfe(window.requestAnimationFrame, 100) : SV(10) : e.type === "callback" ? e.queueNotification : SV(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -46011,37 +46420,37 @@ var ife = () => function(e) {
},
dispatch(e) {
try {
- return i = !e?.meta?.[hV], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
+ return i = !e?.meta?.[bV], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
} finally {
i = !0;
}
}
});
-}, ofe = (e) => function(t) {
- let { autoBatch: n = !0 } = t ?? {}, r = new fV(e);
- return n && r.push(vV(typeof n == "object" ? n : void 0)), r;
+}, hfe = (e) => function(t) {
+ let { autoBatch: n = !0 } = t ?? {}, r = new _V(e);
+ return n && r.push(CV(typeof n == "object" ? n : void 0)), r;
};
-function sfe(e) {
- let t = ife(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function gfe(e) {
+ let t = pfe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
if (typeof n == "function") c = n;
- else if (Zz(n)) c = $z(n);
- else throw Error(ZV(1));
+ else if (nB(n)) c = iB(n);
+ else throw Error(rH(1));
let l;
l = typeof r == "function" ? r(t) : t();
- let u = eB;
- i && (u = nfe({
+ let u = aB;
+ i && (u = dfe({
trace: !1,
...typeof i == "object" && i
}));
- let d = ofe(zde(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
- return Qz(c, o, p);
+ let d = hfe(Jde(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ return rB(c, o, p);
}
-function yV(e) {
+function wV(e) {
let t = {}, n = [], r, i = {
addCase(e, n) {
let r = typeof e == "string" ? e : e.type;
- if (!r) throw Error(ZV(28));
- if (r in t) throw Error(ZV(29));
+ if (!r) throw Error(rH(28));
+ if (r in t) throw Error(rH(29));
return t[r] = n, i;
},
addAsyncThunk(e, r) {
@@ -46066,25 +46475,25 @@ function yV(e) {
r
];
}
-function cfe(e) {
+function _fe(e) {
return typeof e == "function";
}
-function lfe(e, t) {
- let [n, r, i] = yV(t), a;
- if (cfe(e)) a = () => pV(e());
+function vfe(e, t) {
+ let [n, r, i] = wV(t), a;
+ if (_fe(e)) a = () => vV(e());
else {
- let t = pV(e);
+ let t = vV(e);
a = () => t;
}
function o(e = a(), t) {
let o = [n[t.type], ...r.filter(({ matcher: e }) => e(t)).map(({ reducer: e }) => e)];
return o.filter((e) => !!e).length === 0 && (o = [i]), o.reduce((e, n) => {
if (n) {
- if (mB(e)) {
+ if (yB(e)) {
let r = n(e, t);
return r === void 0 ? e : r;
}
- if (hB(e)) return lV(e, (e) => n(e, t));
+ if (bB(e)) return mV(e, (e) => n(e, t));
{
let r = n(e, t);
if (r === void 0) {
@@ -46099,20 +46508,20 @@ function lfe(e, t) {
}
return o.getInitialState = a, o;
}
-var ufe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", dfe = (e = 21) => {
+var yfe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", bfe = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += ufe[Math.random() * 64 | 0];
+ for (; n--;) t += yfe[Math.random() * 64 | 0];
return t;
-}, ffe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function pfe(e, t) {
+}, xfe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function Sfe(e, t) {
return `${e}/${t}`;
}
-function mfe({ creators: e } = {}) {
- let t = e?.asyncThunk?.[ffe];
+function Cfe({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[xfe];
return function(e) {
let { name: n, reducerPath: r = n } = e;
- if (!n) throw Error(ZV(11));
- let i = (typeof e.reducers == "function" ? e.reducers(gfe()) : e.reducers) || {}, a = Object.keys(i), o = {
+ if (!n) throw Error(rH(11));
+ let i = (typeof e.reducers == "function" ? e.reducers(Tfe()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -46120,8 +46529,8 @@ function mfe({ creators: e } = {}) {
}, s = {
addCase(e, t) {
let n = typeof e == "string" ? e : e.type;
- if (!n) throw Error(ZV(12));
- if (n in o.sliceCaseReducersByType) throw Error(ZV(13));
+ if (!n) throw Error(rH(12));
+ if (n in o.sliceCaseReducersByType) throw Error(rH(13));
return o.sliceCaseReducersByType[n] = t, s;
},
addMatcher(e, t) {
@@ -46140,17 +46549,17 @@ function mfe({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: pfe(n, r),
+ type: Sfe(n, r),
createNotation: typeof e.reducers == "function"
};
- vfe(a) ? bfe(o, a, s, t) : _fe(o, a, s);
+ Dfe(a) ? kfe(o, a, s, t) : Efe(o, a, s);
});
function c() {
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? yV(e.extraReducers) : [e.extraReducers], i = {
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? wV(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return lfe(e.initialState, (e) => {
+ return vfe(e.initialState, (e) => {
for (let t in i) e.addCase(t, i[t]);
for (let t of o.sliceMatchers) e.addMatcher(t.matcher, t.reducer);
for (let t of n) e.addMatcher(t.matcher, t.reducer);
@@ -46167,12 +46576,12 @@ function mfe({ creators: e } = {}) {
function h(t, n = !1) {
function r(e) {
let i = e[t];
- return i === void 0 && n && (i = mV(d, r, m)), i;
+ return i === void 0 && n && (i = yV(d, r, m)), i;
}
function i(t = l) {
- return mV(mV(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
+ return yV(yV(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = hfe(a, t, () => mV(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = wfe(a, t, () => yV(d, t, m), n);
return r;
});
}
@@ -46206,15 +46615,15 @@ function mfe({ creators: e } = {}) {
return g;
};
}
-function hfe(e, t, n, r) {
+function wfe(e, t, n, r) {
function i(i, ...a) {
let o = t(i);
return o === void 0 && r && (o = n()), e(o, ...a);
}
return i.unwrapped = e, i;
}
-var bV = /* @__PURE__ */ mfe();
-function gfe() {
+var TV = /* @__PURE__ */ Cfe();
+function Tfe() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -46238,57 +46647,57 @@ function gfe() {
asyncThunk: e
};
}
-function _fe({ type: e, reducerName: t, createNotation: n }, r, i) {
+function Efe({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !yfe(r)) throw Error(ZV(17));
+ if (n && !Ofe(r)) throw Error(rH(17));
a = r.reducer, o = r.prepare;
} else a = r;
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? dV(e, o) : dV(e));
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? gV(e, o) : gV(e));
}
-function vfe(e) {
+function Dfe(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function yfe(e) {
+function Ofe(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function bfe({ type: e, reducerName: t }, n, r, i) {
- if (!i) throw Error(ZV(18));
+function kfe({ type: e, reducerName: t }, n, r, i) {
+ if (!i) throw Error(rH(18));
let { payloadCreator: a, fulfilled: o, pending: s, rejected: c, settled: l, options: u } = n, d = i(e, a, u);
r.exposeAction(t, d), o && r.addCase(d.fulfilled, o), s && r.addCase(d.pending, s), c && r.addCase(d.rejected, c), l && r.addMatcher(d.settled, l), r.exposeCaseReducer(t, {
- fulfilled: o || xV,
- pending: s || xV,
- rejected: c || xV,
- settled: l || xV
+ fulfilled: o || EV,
+ pending: s || EV,
+ rejected: c || EV,
+ settled: l || EV
});
}
-function xV() {}
-var xfe = "task", SV = "listener", CV = "completed", wV = "cancelled", Sfe = `task-${wV}`, Cfe = `task-${CV}`, TV = `${SV}-${wV}`, wfe = `${SV}-${CV}`, EV = class {
+function EV() {}
+var Afe = "task", DV = "listener", OV = "completed", kV = "cancelled", jfe = `task-${kV}`, Mfe = `task-${OV}`, AV = `${DV}-${kV}`, Nfe = `${DV}-${OV}`, jV = class {
constructor(e) {
- this.code = e, this.message = `${xfe} ${wV} (reason: ${e})`;
+ this.code = e, this.message = `${Afe} ${kV} (reason: ${e})`;
}
code;
name = "TaskAbortError";
message;
-}, DV = (e, t) => {
- if (typeof e != "function") throw TypeError(ZV(32));
-}, OV = () => {}, kV = (e, t = OV) => (e.catch(t), e), AV = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), jV = (e) => {
- if (e.aborted) throw new EV(e.reason);
+}, MV = (e, t) => {
+ if (typeof e != "function") throw TypeError(rH(32));
+}, NV = () => {}, PV = (e, t = NV) => (e.catch(t), e), FV = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), IV = (e) => {
+ if (e.aborted) throw new jV(e.reason);
};
-function MV(e, t) {
- let n = OV;
+function LV(e, t) {
+ let n = NV;
return new Promise((r, i) => {
- let a = () => i(new EV(e.reason));
+ let a = () => i(new jV(e.reason));
if (e.aborted) {
a();
return;
}
- n = AV(e, a), t.finally(() => n()).then(r, i);
+ n = FV(e, a), t.finally(() => n()).then(r, i);
}).finally(() => {
- n = OV;
+ n = NV;
});
}
-var Tfe = async (e, t) => {
+var RV = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -46296,40 +46705,40 @@ var Tfe = async (e, t) => {
};
} catch (e) {
return {
- status: e instanceof EV ? "cancelled" : "rejected",
+ status: e instanceof jV ? "cancelled" : "rejected",
error: e
};
} finally {
t?.();
}
-}, NV = (e) => (t) => kV(MV(e, t).then((t) => (jV(e), t))), PV = (e) => {
- let t = NV(e);
+}, zV = (e) => (t) => PV(LV(e, t).then((t) => (IV(e), t))), BV = (e) => {
+ let t = zV(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: FV } = Object, IV = {}, LV = "listenerMiddleware", RV = (e, t) => {
- let n = (t) => AV(e, () => t.abort(e.reason));
+}, { assign: VV } = Object, HV = {}, UV = "listenerMiddleware", WV = (e, t) => {
+ let n = (t) => FV(e, () => t.abort(e.reason));
return (r, i) => {
- DV(r, "taskExecutor");
+ MV(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = Tfe(async () => {
- jV(e), jV(a.signal);
+ let o = RV(async () => {
+ IV(e), IV(a.signal);
let t = await r({
- pause: NV(a.signal),
- delay: PV(a.signal),
+ pause: zV(a.signal),
+ delay: BV(a.signal),
signal: a.signal
});
- return jV(a.signal), t;
- }, () => a.abort(Cfe));
- return i?.autoJoin && t.push(o.catch(OV)), {
- result: NV(e)(o),
+ return IV(a.signal), t;
+ }, () => a.abort(Mfe));
+ return i?.autoJoin && t.push(o.catch(NV)), {
+ result: zV(e)(o),
cancel() {
- a.abort(Sfe);
+ a.abort(jfe);
}
};
};
-}, zV = (e, t) => {
+}, GV = (e, t) => {
let n = async (n, r) => {
- jV(t);
+ IV(t);
let i = () => {}, a = [new Promise((t, r) => {
let a = e({
predicate: n,
@@ -46347,47 +46756,47 @@ var Tfe = async (e, t) => {
})];
r != null && a.push(new Promise((e) => setTimeout(e, r, null)));
try {
- let e = await MV(t, Promise.race(a));
- return jV(t), e;
+ let e = await LV(t, Promise.race(a));
+ return IV(t), e;
} finally {
i();
}
};
- return ((e, t) => kV(n(e, t)));
-}, BV = (e) => {
+ return ((e, t) => PV(n(e, t)));
+}, KV = (e) => {
let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;
- if (t) i = dV(t).match;
+ if (t) i = gV(t).match;
else if (n) t = n.type, i = n.match;
else if (r) i = r;
- else if (!i) throw Error(ZV(21));
- return DV(a, "options.listener"), {
+ else if (!i) throw Error(rH(21));
+ return MV(a, "options.listener"), {
predicate: i,
type: t,
effect: a
};
-}, VV = /* @__PURE__ */ FV((e) => {
- let { type: t, predicate: n, effect: r } = BV(e);
+}, qV = /* @__PURE__ */ VV((e) => {
+ let { type: t, predicate: n, effect: r } = KV(e);
return {
- id: dfe(),
+ id: bfe(),
effect: r,
type: t,
predicate: n,
pending: /* @__PURE__ */ new Set(),
unsubscribe: () => {
- throw Error(ZV(22));
+ throw Error(rH(22));
}
};
-}, { withTypes: () => VV }), HV = (e, t) => {
- let { type: n, effect: r, predicate: i } = BV(t);
+}, { withTypes: () => qV }), JV = (e, t) => {
+ let { type: n, effect: r, predicate: i } = KV(t);
return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);
-}, UV = (e) => {
+}, YV = (e) => {
e.pending.forEach((e) => {
- e.abort(TV);
+ e.abort(AV);
});
-}, WV = (e, t) => () => {
- for (let e of t.keys()) UV(e);
+}, XV = (e, t) => () => {
+ for (let e of t.keys()) YV(e);
e.clear();
-}, GV = (e, t, n) => {
+}, ZV = (e, t, n) => {
try {
e(t, n);
} catch (e) {
@@ -46395,74 +46804,74 @@ var Tfe = async (e, t) => {
throw e;
}, 0);
}
-}, KV = /* @__PURE__ */ FV(/* @__PURE__ */ dV(`${LV}/add`), { withTypes: () => KV }), qV = /* @__PURE__ */ dV(`${LV}/removeAll`), JV = /* @__PURE__ */ FV(/* @__PURE__ */ dV(`${LV}/remove`), { withTypes: () => JV }), YV = (...e) => {
- console.error(`${LV}/error`, ...e);
-}, XV = (e = {}) => {
+}, QV = /* @__PURE__ */ VV(/* @__PURE__ */ gV(`${UV}/add`), { withTypes: () => QV }), $V = /* @__PURE__ */ gV(`${UV}/removeAll`), eH = /* @__PURE__ */ VV(/* @__PURE__ */ gV(`${UV}/remove`), { withTypes: () => eH }), tH = (...e) => {
+ console.error(`${UV}/error`, ...e);
+}, nH = (e = {}) => {
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = (e) => {
let t = n.get(e) ?? 0;
n.set(e, t + 1);
}, i = (e) => {
let t = n.get(e) ?? 1;
t === 1 ? n.delete(e) : n.set(e, t - 1);
- }, { extra: a, onError: o = YV } = e;
- DV(o, "onError");
+ }, { extra: a, onError: o = tH } = e;
+ MV(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
- e.unsubscribe(), t?.cancelActive && UV(e);
+ e.unsubscribe(), t?.cancelActive && YV(e);
}), c = ((e) => {
- let n = HV(t, e) ?? VV(e);
+ let n = JV(t, e) ?? qV(e);
return s(n);
});
- FV(c, { withTypes: () => c });
+ VV(c, { withTypes: () => c });
let l = (e) => {
- let n = HV(t, e);
- return n && (n.unsubscribe(), e.cancelActive && UV(n)), !!n;
+ let n = JV(t, e);
+ return n && (n.unsubscribe(), e.cancelActive && YV(n)), !!n;
};
- FV(l, { withTypes: () => l });
+ VV(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = zV(c, u.signal), f = [];
+ let u = new AbortController(), d = GV(c, u.signal), f = [];
try {
- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, FV({}, s, {
+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, VV({}, s, {
getOriginalState: l,
condition: (e, t) => d(e, t).then(Boolean),
take: d,
- delay: PV(u.signal),
- pause: NV(u.signal),
+ delay: BV(u.signal),
+ pause: zV(u.signal),
extra: a,
signal: u.signal,
- fork: RV(u.signal, f),
+ fork: WV(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
},
cancelActiveListeners: () => {
e.pending.forEach((e, t, n) => {
- e !== u && (e.abort(TV), n.delete(e));
+ e !== u && (e.abort(AV), n.delete(e));
});
},
cancel: () => {
- u.abort(TV), e.pending.delete(u);
+ u.abort(AV), e.pending.delete(u);
},
throwIfCancelled: () => {
- jV(u.signal);
+ IV(u.signal);
}
})));
} catch (e) {
- e instanceof EV || GV(o, e, { raisedBy: "effect" });
+ e instanceof jV || ZV(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(wfe), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(Nfe), i(e), e.pending.delete(u);
}
- }, d = WV(t, n);
+ }, d = XV(t, n);
return {
middleware: (e) => (n) => (r) => {
- if (!tB(r)) return n(r);
- if (KV.match(r)) return c(r.payload);
- if (qV.match(r)) {
+ if (!oB(r)) return n(r);
+ if (QV.match(r)) return c(r.payload);
+ if ($V.match(r)) {
d();
return;
}
- if (JV.match(r)) return l(r.payload);
+ if (eH.match(r)) return l(r.payload);
let i = e.getState(), a = () => {
- if (i === IV) throw Error(ZV(23));
+ if (i === HV) throw Error(rH(23));
return i;
}, s;
try {
@@ -46473,13 +46882,13 @@ var Tfe = async (e, t) => {
try {
s = t.predicate(r, n, i);
} catch (e) {
- s = !1, GV(o, e, { raisedBy: "predicate" });
+ s = !1, ZV(o, e, { raisedBy: "predicate" });
}
s && u(t, r, e, a);
}
}
} finally {
- i = IV;
+ i = HV;
}
return s;
},
@@ -46488,12 +46897,12 @@ var Tfe = async (e, t) => {
clearListeners: d
};
};
-function ZV(e) {
+function rH(e) {
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
}
//#endregion
//#region node_modules/recharts/es6/state/layoutSlice.js
-var QV = bV({
+var iH = TV({
name: "chartLayout",
initialState: {
layoutType: "horizontal",
@@ -46521,23 +46930,23 @@ var QV = bV({
e.scale = t.payload;
}
}
-}), { setMargin: $V, setLayout: eH, setChartSize: tH, setScale: nH } = QV.actions, rH = QV.reducer;
+}), { setMargin: aH, setLayout: oH, setChartSize: sH, setScale: cH } = iH.actions, lH = iH.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
-function iH(e, t, n) {
+function uH(e, t, n) {
return Array.isArray(e) && e && t + n !== 0 ? e.slice(t, n + 1) : e;
}
//#endregion
//#region node_modules/recharts/es6/util/isWellBehavedNumber.js
-function aH(e) {
+function dH(e) {
return Number.isFinite(e);
}
-function oH(e) {
+function fH(e) {
return typeof e == "number" && e > 0 && Number.isFinite(e);
}
//#endregion
//#region node_modules/recharts/es6/util/ChartUtils.js
-function sH(e, t) {
+function pH(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -46547,30 +46956,30 @@ function sH(e, t) {
}
return n;
}
-function cH(e) {
+function mH(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? sH(Object(n), !0).forEach(function(t) {
- lH(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sH(Object(n)).forEach(function(t) {
+ t % 2 ? pH(Object(n), !0).forEach(function(t) {
+ hH(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pH(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function lH(e, t, n) {
- return (t = uH(t)) in e ? Object.defineProperty(e, t, {
+function hH(e, t, n) {
+ return (t = gH(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function uH(e) {
- var t = dH(e, "string");
+function gH(e) {
+ var t = _H(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dH(e, t) {
+function _H(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -46580,63 +46989,63 @@ function dH(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function fH(e, t, n) {
- return YR(e) || YR(t) ? n : UR(t) ? LR(e, t, n) : typeof t == "function" ? t(e) : n;
+function vH(e, t, n) {
+ return ez(e) || ez(t) ? n : JR(t) ? HR(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var pH = (e, t, n) => {
+var yH = (e, t, n) => {
if (t && n) {
var { width: r, height: i } = n, { align: a, verticalAlign: o, layout: s } = t;
- if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return cH(cH({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return cH(cH({}, e), {}, { [o]: e[o] + (i || 0) });
+ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return mH(mH({}, e), {}, { [a]: e[a] + (r || 0) });
+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return mH(mH({}, e), {}, { [o]: e[o] + (i || 0) });
}
return e;
-}, mH = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", hH = (e, t, n, r) => {
+}, bH = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", xH = (e, t, n, r) => {
if (r) return e.map((e) => e.coordinate);
var i, a, o = e.map((e) => (e.coordinate === t && (i = !0), e.coordinate === n && (a = !0), e.coordinate));
return i || o.push(t), a || o.push(n), o;
-}, gH = (e, t, n) => {
+}, SH = (e, t, n) => {
if (!e) return null;
var { duplicateDomain: r, type: i, range: a, scale: o, realScaleType: s, isCategorical: c, categoricalDomain: l, tickCount: u, ticks: d, niceTicks: f, axisType: p } = e;
if (!o) return null;
var m = s === "scaleBand" && o.bandwidth ? o.bandwidth() / 2 : 2, h = (t || n) && i === "category" && o.bandwidth ? o.bandwidth() / m : 0;
- return h = p === "angleAxis" && a && a.length >= 2 ? BR(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
+ return h = p === "angleAxis" && a && a.length >= 2 ? GR(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
var n = r ? r.indexOf(e) : e, i = o.map(n);
- return aH(i) ? {
+ return dH(i) ? {
coordinate: i + h,
value: e,
offset: h,
index: t
} : null;
- }).filter(ZR) : c && l ? l.map((e, t) => {
+ }).filter(nz) : c && l ? l.map((e, t) => {
var n = o.map(e);
- return aH(n) ? {
+ return dH(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(ZR) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
+ }).filter(nz) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
- return aH(n) ? {
+ return dH(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(ZR) : o.domain().map((e, t) => {
+ }).filter(nz) : o.domain().map((e, t) => {
var n = o.map(e);
- return aH(n) ? {
+ return dH(n) ? {
coordinate: n + h,
value: r ? r[e] : e,
index: t,
offset: h
} : null;
- }).filter(ZR);
-}, _H = (e, t) => {
+ }).filter(nz);
+}, CH = (e, t) => {
if (!t || t.length !== 2 || !Z(t[0]) || !Z(t[1])) return e;
var n = Math.min(t[0], t[1]), r = Math.max(t[0], t[1]), i = [e[0], e[1]];
return (!Z(e[0]) || e[0] < n) && (i[0] = n), (!Z(e[1]) || e[1] > r) && (i[1] = r), i[0] > r && (i[0] = r), i[1] < n && (i[1] = n), i;
-}, vH = {
+}, wH = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -46644,16 +47053,16 @@ var pH = (e, t, n) => {
if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0, o = 0; o < t; ++o) {
var s = e[o]?.[r];
if (s != null) {
- var c = s[1], l = s[0], u = VR(c) ? l : c;
+ var c = s[1], l = s[0], u = KR(c) ? l : c;
u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);
}
}
}
},
- expand: Zle,
- none: kR,
- silhouette: Qle,
- wiggle: $le,
+ expand: oue,
+ none: PR,
+ silhouette: sue,
+ wiggle: cue,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -46661,70 +47070,70 @@ var pH = (e, t, n) => {
if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0; a < t; ++a) {
var o = e[a]?.[r];
if (o != null) {
- var s = VR(o[1]) ? o[0] : o[1];
+ var s = KR(o[1]) ? o[0] : o[1];
s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);
}
}
}
}
-}, yH = (e, t, n) => {
- var r = vH[n] ?? kR, i = Xle().keys(t).value((e, t) => Number(fH(e, t, 0))).order(AR).offset(r)(e);
+}, TH = (e, t, n) => {
+ var r = wH[n] ?? PR, i = aue().keys(t).value((e, t) => Number(vH(e, t, 0))).order(FR).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
- var a = fH(e[i], t[r], 0);
+ var a = vH(e[i], t[r], 0);
Array.isArray(a) && a.length === 2 && Z(a[0]) && Z(a[1]) && (n[0] = a[0], n[1] = a[1]);
});
}), i;
};
-function bH(e) {
+function EH(e) {
return e == null ? void 0 : String(e);
}
-function xH(e) {
+function DH(e) {
var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;
if (t.type === "category") {
- if (!t.allowDuplicatedCategory && t.dataKey && !YR(i[t.dataKey])) {
- var s = JR(n, "value", i[t.dataKey]);
+ if (!t.allowDuplicatedCategory && t.dataKey && !ez(i[t.dataKey])) {
+ var s = $R(n, "value", i[t.dataKey]);
if (s) return s.coordinate + r / 2;
}
return n != null && n[a] ? n[a].coordinate + r / 2 : null;
}
- var c = fH(i, YR(o) ? t.dataKey : o), l = t.scale.map(c);
+ var c = vH(i, ez(o) ? t.dataKey : o), l = t.scale.map(c);
return Z(l) ? l : null;
}
-var SH = (e) => {
+var OH = (e) => {
var { axis: t, ticks: n, offset: r, bandSize: i, entry: a, index: o } = e;
if (t.type === "category") return n[o] ? n[o].coordinate + r : null;
- var s = fH(a, t.dataKey, t.scale.domain()[o]);
- if (YR(s)) return null;
+ var s = vH(a, t.dataKey, t.scale.domain()[o]);
+ if (ez(s)) return null;
var c = t.scale.map(s);
return Z(c) ? c - i / 2 + r : null;
-}, CH = (e) => {
+}, kH = (e) => {
var { numericAxis: t } = e, n = t.scale.domain();
if (t.type === "number") {
var r = Math.min(n[0], n[1]), i = Math.max(n[0], n[1]);
return r <= 0 && i >= 0 ? 0 : i < 0 ? i : r;
}
return n[0];
-}, wH = (e) => {
+}, AH = (e) => {
var t = e.flat(2).filter(Z);
return [Math.min(...t), Math.max(...t)];
-}, TH = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], EH = (e, t, n) => {
- if (e != null) return TH(Object.keys(e).reduce((r, i) => {
+}, jH = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], MH = (e, t, n) => {
+ if (e != null) return jH(Object.keys(e).reduce((r, i) => {
var a = e[i];
if (!a) return r;
var { stackedData: o } = a, s = o.reduce((e, r) => {
- var i = wH(iH(r, t, n));
- return !aH(i[0]) || !aH(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
+ var i = AH(uH(r, t, n));
+ return !dH(i[0]) || !dH(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
}, [Infinity, -Infinity]);
return [Math.min(s[0], r[0]), Math.max(s[1], r[1])];
}, [Infinity, -Infinity]));
-}, DH = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, OH = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, kH = (e, t, n) => {
+}, NH = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, PH = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, FH = (e, t, n) => {
if (e && e.scale && e.scale.bandwidth) {
var r = e.scale.bandwidth();
if (!n || r > 0) return r;
}
if (e && t && t.length >= 2) {
- for (var i = Uz(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
+ for (var i = Jz(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
var c = i[o], l = i[o - 1];
a = Math.min((c?.coordinate || 0) - (l?.coordinate || 0), a);
}
@@ -46732,26 +47141,26 @@ var SH = (e) => {
}
return n ? void 0 : 0;
};
-function AH(e) {
+function IH(e) {
var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;
- return cH(cH({}, t), {}, {
+ return mH(mH({}, t), {}, {
dataKey: n,
payload: r,
value: i,
name: a
});
}
-function jH(e, t) {
+function LH(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
-var MH = (e, t) => {
+var RH = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, NH = (e, t) => t === "centric" ? e.angle : e.radius, PH = (e) => e.layout.width, FH = (e) => e.layout.height, IH = (e) => e.layout.scale, LH = (e) => e.layout.margin, RH = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), zH = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), BH = "data-recharts-item-index";
+}, zH = (e, t) => t === "centric" ? e.angle : e.radius, BH = (e) => e.layout.width, VH = (e) => e.layout.height, HH = (e) => e.layout.scale, UH = (e) => e.layout.margin, WH = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), GH = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), KH = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
-function VH(e, t) {
+function qH(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -46761,30 +47170,30 @@ function VH(e, t) {
}
return n;
}
-function HH(e) {
+function JH(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? VH(Object(n), !0).forEach(function(t) {
- UH(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : VH(Object(n)).forEach(function(t) {
+ t % 2 ? qH(Object(n), !0).forEach(function(t) {
+ YH(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qH(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function UH(e, t, n) {
- return (t = WH(t)) in e ? Object.defineProperty(e, t, {
+function YH(e, t, n) {
+ return (t = XH(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function WH(e) {
- var t = GH(e, "string");
+function XH(e) {
+ var t = ZH(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function GH(e, t) {
+function ZH(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -46794,58 +47203,58 @@ function GH(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var KH = (e) => e.brush.height;
-function qH(e) {
- return zH(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+var QH = (e) => e.brush.height;
+function $H(e) {
+ return GH(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function JH(e) {
- return zH(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+function eU(e) {
+ return GH(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function YH(e) {
- return RH(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
+function tU(e) {
+ return WH(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-function XH(e) {
- return RH(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
-}
-var ZH = $([
- PH,
- FH,
- LH,
- KH,
- qH,
- JH,
- YH,
- XH,
- Wz,
- Fde
+function nU(e) {
+ return WH(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
+}
+var rU = $([
+ BH,
+ VH,
+ UH,
+ QH,
+ $H,
+ eU,
+ tU,
+ nU,
+ Yz,
+ Wde
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
right: (n.right || 0) + a
- }, d = HH(HH({}, {
+ }, d = JH(JH({}, {
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = pH(d, c, l);
+ d.bottom += r, d = yH(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
- return HH(HH({ brushBottom: f }, d), {}, {
+ return JH(JH({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), QH = $(ZH, (e) => ({
+}), iU = $(rU, (e) => ({
x: e.left,
y: e.top,
width: e.width,
height: e.height
-})), $H = $(PH, FH, (e, t) => ({
+})), aU = $(BH, VH, (e, t) => ({
x: 0,
y: 0,
width: e,
height: t
-})), eU = /*#__PURE__*/ (0, P.createContext)(null), tU = () => (0, P.useContext)(eU) != null, nU = (e) => e.brush, rU = $([
- nU,
- ZH,
- LH
+})), oU = /*#__PURE__*/ (0, P.createContext)(null), sU = () => (0, P.useContext)(oU) != null, cU = (e) => e.brush, lU = $([
+ cU,
+ rU,
+ UH
], (e, t, n) => ({
height: e.height,
x: Z(e.x) ? e.x : t.left,
@@ -46854,7 +47263,7 @@ var ZH = $([
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function iU(e, t, { signal: n, edges: r } = {}) {
+function uU(e, t, { signal: n, edges: r } = {}) {
let i, a = null, o = r != null && r.includes("leading"), s = r == null || r.includes("trailing"), c = () => {
a !== null && (e.apply(i, a), i = void 0, a = null);
}, l = () => {
@@ -46879,11 +47288,11 @@ function iU(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function aU(e, t = 0, n = {}) {
+function dU(e, t = 0, n = {}) {
typeof n != "object" && (n = {});
let { leading: r = !1, trailing: i = !0, maxWait: a } = n, o = [, ,];
r && (o[0] = "leading"), i && (o[1] = "trailing");
- let s, c = null, l = iU(function(...t) {
+ let s, c = null, l = uU(function(...t) {
s = e.apply(this, t), c = null;
}, t, { edges: o }), u = function(...t) {
return a != null && (c === null && (c = Date.now()), Date.now() - c >= a) ? ((r || i) && (s = e.apply(this, t)), c = Date.now(), l.cancel(), l.schedule(), s) : (l.apply(this, t), s);
@@ -46892,9 +47301,9 @@ function aU(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function oU(e, t = 0, n = {}) {
+function fU(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return aU(e, t, {
+ return dU(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -46902,7 +47311,7 @@ function oU(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/recharts/es6/util/LogUtils.js
-var sU = function(e, t) {
+var pU = function(e, t) {
var n = [...arguments].slice(2);
if (typeof console < "u" && console.warn && (t === void 0 && console.warn("LogUtils requires an error message argument"), !e)) {
if (t === void 0) console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
@@ -46911,7 +47320,7 @@ var sU = function(e, t) {
console.warn(t.replace(/%s/g, () => n[r++]));
}
}
-}, cU = {
+}, mU = {
width: "100%",
height: "100%",
debounce: 0,
@@ -46920,45 +47329,45 @@ var sU = function(e, t) {
width: -1,
height: -1
}
-}, lU = (e, t, n) => {
- var { width: r = cU.width, height: i = cU.height, aspect: a, maxHeight: o } = n, s = HR(r) ? e : Number(r), c = HR(i) ? t : Number(i);
+}, hU = (e, t, n) => {
+ var { width: r = mU.width, height: i = mU.height, aspect: a, maxHeight: o } = n, s = qR(r) ? e : Number(r), c = qR(i) ? t : Number(i);
return a && a > 0 && (s ? c = s / a : c && (s = c * a), o && c != null && c > o && (c = o)), {
calculatedWidth: s,
calculatedHeight: c
};
-}, uU = {
+}, gU = {
width: 0,
height: 0,
overflow: "visible"
-}, dU = {
+}, _U = {
width: 0,
overflowX: "visible"
-}, fU = {
+}, vU = {
height: 0,
overflowY: "visible"
-}, pU = {}, mU = (e) => {
- var { width: t, height: n } = e, r = HR(t), i = HR(n);
- return r && i ? uU : r ? dU : i ? fU : pU;
+}, yU = {}, bU = (e) => {
+ var { width: t, height: n } = e, r = qR(t), i = qR(n);
+ return r && i ? gU : r ? _U : i ? vU : yU;
};
-function hU(e) {
+function xU(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = cU.width, a = cU.height) : i === void 0 ? i = r && r > 0 ? void 0 : cU.width : a === void 0 && (a = r && r > 0 ? void 0 : cU.height), {
+ return i === void 0 && a === void 0 ? (i = mU.width, a = mU.height) : i === void 0 ? i = r && r > 0 ? void 0 : mU.width : a === void 0 && (a = r && r > 0 ? void 0 : mU.height), {
width: i,
height: a
};
}
//#endregion
//#region node_modules/recharts/es6/component/ResponsiveContainer.js
-function gU() {
- return gU = Object.assign ? Object.assign.bind() : function(e) {
+function SU() {
+ return SU = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, gU.apply(null, arguments);
+ }, SU.apply(null, arguments);
}
-function _U(e, t) {
+function CU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -46968,30 +47377,30 @@ function _U(e, t) {
}
return n;
}
-function vU(e) {
+function wU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? _U(Object(n), !0).forEach(function(t) {
- yU(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _U(Object(n)).forEach(function(t) {
+ t % 2 ? CU(Object(n), !0).forEach(function(t) {
+ TU(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yU(e, t, n) {
- return (t = bU(t)) in e ? Object.defineProperty(e, t, {
+function TU(e, t, n) {
+ return (t = EU(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bU(e) {
- var t = xU(e, "string");
+function EU(e) {
+ var t = DU(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xU(e, t) {
+function DU(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -47001,19 +47410,19 @@ function xU(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var SU = /*#__PURE__*/ (0, P.createContext)(cU.initialDimension);
-function CU(e) {
- return oH(e.width) && oH(e.height);
+var OU = /*#__PURE__*/ (0, P.createContext)(mU.initialDimension);
+function kU(e) {
+ return fH(e.width) && fH(e.height);
}
-function wU(e) {
+function AU(e) {
var { children: t, width: n, height: r } = e, i = (0, P.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return CU(i) ? /*#__PURE__*/ P.createElement(SU.Provider, { value: i }, t) : null;
+ return kU(i) ? /*#__PURE__*/ P.createElement(OU.Provider, { value: i }, t) : null;
}
-var TU = () => (0, P.useContext)(SU), EU = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var { aspect: n, initialDimension: r = cU.initialDimension, width: i, height: a, minWidth: o = cU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = cU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, P.useRef)(null), g = (0, P.useRef)();
+var jU = () => (0, P.useContext)(OU), MU = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var { aspect: n, initialDimension: r = mU.initialDimension, width: i, height: a, minWidth: o = mU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = mU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, P.useRef)(null), g = (0, P.useRef)();
g.current = p, (0, P.useImperativeHandle)(t, () => h.current);
var [_, v] = (0, P.useState)({
containerWidth: r.width,
@@ -47028,7 +47437,7 @@ var TU = () => (0, P.useContext)(SU), EU = /*#__PURE__*/ (0, P.forwardRef)((e, t
});
}, []);
(0, P.useEffect)(() => {
- if (h.current == null || typeof ResizeObserver > "u") return QR;
+ if (h.current == null || typeof ResizeObserver > "u") return rz;
var e = (e) => {
var t, n = e[0];
if (n != null) {
@@ -47036,7 +47445,7 @@ var TU = () => (0, P.useContext)(SU), EU = /*#__PURE__*/ (0, P.forwardRef)((e, t
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = oU(e, u, {
+ u > 0 && (e = fU(e, u, {
trailing: !0,
leading: !1
}));
@@ -47046,17 +47455,17 @@ var TU = () => (0, P.useContext)(SU), EU = /*#__PURE__*/ (0, P.forwardRef)((e, t
};
}, [y, u]);
var { containerWidth: b, containerHeight: x } = _;
- sU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
- var { calculatedWidth: S, calculatedHeight: C } = lU(b, x, {
+ pU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
+ var { calculatedWidth: S, calculatedHeight: C } = hU(b, x, {
width: i,
height: a,
aspect: n,
maxHeight: c
});
- return sU(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__*/ P.createElement("div", {
+ return pU(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__*/ P.createElement("div", {
id: d ? `${d}` : void 0,
className: Pm("recharts-responsive-container", f),
- style: vU(vU({}, m), {}, {
+ style: wU(wU({}, m), {}, {
width: i,
height: a,
minWidth: o,
@@ -47064,30 +47473,30 @@ var TU = () => (0, P.useContext)(SU), EU = /*#__PURE__*/ (0, P.forwardRef)((e, t
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ P.createElement("div", { style: mU({
+ }, /*#__PURE__*/ P.createElement("div", { style: bU({
width: i,
height: a
- }) }, /*#__PURE__*/ P.createElement(wU, {
+ }) }, /*#__PURE__*/ P.createElement(AU, {
width: S,
height: C
}, l)));
-}), DU = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var n = TU();
- if (oH(n.width) && oH(n.height)) return e.children;
- var { width: r, height: i } = hU({
+}), NU = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var n = jU();
+ if (fH(n.width) && fH(n.height)) return e.children;
+ var { width: r, height: i } = xU({
width: e.width,
height: e.height,
aspect: e.aspect
- }), { calculatedWidth: a, calculatedHeight: o } = lU(void 0, void 0, {
+ }), { calculatedWidth: a, calculatedHeight: o } = hU(void 0, void 0, {
width: r,
height: i,
aspect: e.aspect,
maxHeight: e.maxHeight
});
- return Z(a) && Z(o) ? /*#__PURE__*/ P.createElement(wU, {
+ return Z(a) && Z(o) ? /*#__PURE__*/ P.createElement(AU, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ P.createElement(EU, gU({}, e, {
+ }, e.children) : /*#__PURE__*/ P.createElement(MU, SU({}, e, {
width: r,
height: i,
ref: t
@@ -47095,7 +47504,7 @@ var TU = () => (0, P.useContext)(SU), EU = /*#__PURE__*/ (0, P.forwardRef)((e, t
});
//#endregion
//#region node_modules/recharts/es6/context/chartLayoutContext.js
-function OU(e) {
+function PU(e) {
if (e) return {
x: e.x,
y: e.y,
@@ -47105,15 +47514,15 @@ function OU(e) {
height: e.height
};
}
-var kU = () => {
- var e = tU(), t = Q(QH), n = Q(rU), r = Q(nU)?.padding;
+var FU = () => {
+ var e = sU(), t = Q(iU), n = Q(lU), r = Q(cU)?.padding;
return !e || !n || !r ? t : {
width: n.width - r.left - r.right,
height: n.height - r.top - r.bottom,
x: r.left,
y: r.top
};
-}, AU = {
+}, IU = {
top: 0,
bottom: 0,
left: 0,
@@ -47121,16 +47530,16 @@ var kU = () => {
width: 0,
height: 0,
brushBottom: 0
-}, jU = () => Q(ZH) ?? AU, MU = () => Q(PH), NU = () => Q(FH), PU = () => Q((e) => e.layout.margin), FU = (e) => e.layout.layoutType, IU = () => Q(FU), LU = () => {
- var e = IU();
+}, LU = () => Q(rU) ?? IU, RU = () => Q(BH), zU = () => Q(VH), BU = () => Q((e) => e.layout.margin), VU = (e) => e.layout.layoutType, HU = () => Q(VU), UU = () => {
+ var e = HU();
if (e === "horizontal" || e === "vertical") return e;
-}, RU = (e) => {
+}, WU = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, zU = () => Q(RU), BU = () => IU() !== void 0, VU = (e) => {
- var t = Fz(), n = tU(), { width: r, height: i } = e, a = TU(), o = r, s = i;
+}, GU = () => Q(WU), KU = () => HU() !== void 0, qU = (e) => {
+ var t = Bz(), n = sU(), { width: r, height: i } = e, a = jU(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, P.useEffect)(() => {
- !n && oH(o) && oH(s) && t(tH({
+ !n && fH(o) && fH(s) && t(sH({
width: o,
height: s
}));
@@ -47140,64 +47549,64 @@ var kU = () => {
o,
s
]), null;
-}, HU = Symbol.for("immer-nothing"), UU = Symbol.for("immer-draftable"), WU = Symbol.for("immer-state");
-function GU(e, ...t) {
+}, JU = Symbol.for("immer-nothing"), YU = Symbol.for("immer-draftable"), XU = Symbol.for("immer-state");
+function ZU(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var KU = Object.getPrototypeOf;
-function qU(e) {
- return !!e && !!e[WU];
+var QU = Object.getPrototypeOf;
+function $U(e) {
+ return !!e && !!e[XU];
}
-function JU(e) {
- return e ? ZU(e) || Array.isArray(e) || !!e[UU] || !!e.constructor?.[UU] || rW(e) || iW(e) : !1;
+function eW(e) {
+ return e ? rW(e) || Array.isArray(e) || !!e[YU] || !!e.constructor?.[YU] || lW(e) || uW(e) : !1;
}
-var YU = Object.prototype.constructor.toString(), XU = /* @__PURE__ */ new WeakMap();
-function ZU(e) {
+var tW = Object.prototype.constructor.toString(), nW = /* @__PURE__ */ new WeakMap();
+function rW(e) {
if (!e || typeof e != "object") return !1;
let t = Object.getPrototypeOf(e);
if (t === null || t === Object.prototype) return !0;
let n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
if (n === Object) return !0;
if (typeof n != "function") return !1;
- let r = XU.get(n);
- return r === void 0 && (r = Function.toString.call(n), XU.set(n, r)), r === YU;
+ let r = nW.get(n);
+ return r === void 0 && (r = Function.toString.call(n), nW.set(n, r)), r === tW;
}
-function QU(e, t, n = !0) {
- $U(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
+function iW(e, t, n = !0) {
+ aW(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function $U(e) {
- let t = e[WU];
- return t ? t.type_ : Array.isArray(e) ? 1 : rW(e) ? 2 : iW(e) ? 3 : 0;
+function aW(e) {
+ let t = e[XU];
+ return t ? t.type_ : Array.isArray(e) ? 1 : lW(e) ? 2 : uW(e) ? 3 : 0;
}
-function eW(e, t) {
- return $U(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
+function oW(e, t) {
+ return aW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
}
-function tW(e, t, n) {
- let r = $U(e);
+function sW(e, t, n) {
+ let r = aW(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function nW(e, t) {
+function cW(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function rW(e) {
+function lW(e) {
return e instanceof Map;
}
-function iW(e) {
+function uW(e) {
return e instanceof Set;
}
-function aW(e) {
+function dW(e) {
return e.copy_ || e.base_;
}
-function oW(e, t) {
- if (rW(e)) return new Map(e);
- if (iW(e)) return new Set(e);
+function fW(e, t) {
+ if (lW(e)) return new Map(e);
+ if (uW(e)) return new Set(e);
if (Array.isArray(e)) return Array.prototype.slice.call(e);
- let n = ZU(e);
+ let n = rW(e);
if (t === !0 || t === "class_only" && !n) {
let t = Object.getOwnPropertyDescriptors(e);
- delete t[WU];
+ delete t[XU];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
@@ -47208,40 +47617,40 @@ function oW(e, t) {
value: e[i]
});
}
- return Object.create(KU(e), t);
+ return Object.create(QU(e), t);
}
{
- let t = KU(e);
+ let t = QU(e);
if (t !== null && n) return { ...e };
let r = Object.create(t);
return Object.assign(r, e);
}
}
-function sW(e, t = !1) {
- return uW(e) || qU(e) || !JU(e) ? e : ($U(e) > 1 && Object.defineProperties(e, {
- set: lW,
- add: lW,
- clear: lW,
- delete: lW
- }), Object.freeze(e), t && Object.values(e).forEach((e) => sW(e, !0)), e);
+function pW(e, t = !1) {
+ return gW(e) || $U(e) || !eW(e) ? e : (aW(e) > 1 && Object.defineProperties(e, {
+ set: hW,
+ add: hW,
+ clear: hW,
+ delete: hW
+ }), Object.freeze(e), t && Object.values(e).forEach((e) => pW(e, !0)), e);
}
-function cW() {
- GU(2);
+function mW() {
+ ZU(2);
}
-var lW = { value: cW };
-function uW(e) {
+var hW = { value: mW };
+function gW(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var dW = {};
-function fW(e) {
- let t = dW[e];
- return t || GU(0, e), t;
+var _W = {};
+function vW(e) {
+ let t = _W[e];
+ return t || ZU(0, e), t;
}
-var pW;
-function mW() {
- return pW;
+var yW;
+function bW() {
+ return yW;
}
-function hW(e, t) {
+function xW(e, t) {
return {
drafts_: [],
parent_: e,
@@ -47250,62 +47659,62 @@ function hW(e, t) {
unfinalizedDrafts_: 0
};
}
-function gW(e, t) {
- t && (fW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function SW(e, t) {
+ t && (vW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
-function _W(e) {
- vW(e), e.drafts_.forEach(bW), e.drafts_ = null;
+function CW(e) {
+ wW(e), e.drafts_.forEach(EW), e.drafts_ = null;
}
-function vW(e) {
- e === pW && (pW = e.parent_);
+function wW(e) {
+ e === yW && (yW = e.parent_);
}
-function yW(e) {
- return pW = hW(pW, e);
+function TW(e) {
+ return yW = xW(yW, e);
}
-function bW(e) {
- let t = e[WU];
+function EW(e) {
+ let t = e[XU];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function xW(e, t) {
+function DW(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
- return e !== void 0 && e !== n ? (n[WU].modified_ && (_W(t), GU(4)), JU(e) && (e = SW(t, e), t.parent_ || wW(t, e)), t.patches_ && fW("Patches").generateReplacementPatches_(n[WU].base_, e, t.patches_, t.inversePatches_)) : e = SW(t, n, []), _W(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === HU ? void 0 : e;
+ return e !== void 0 && e !== n ? (n[XU].modified_ && (CW(t), ZU(4)), eW(e) && (e = OW(t, e), t.parent_ || AW(t, e)), t.patches_ && vW("Patches").generateReplacementPatches_(n[XU].base_, e, t.patches_, t.inversePatches_)) : e = OW(t, n, []), CW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === JU ? void 0 : e;
}
-function SW(e, t, n) {
- if (uW(t)) return t;
- let r = e.immer_.shouldUseStrictIteration(), i = t[WU];
- if (!i) return QU(t, (r, a) => CW(e, i, t, r, a, n), r), t;
+function OW(e, t, n) {
+ if (gW(t)) return t;
+ let r = e.immer_.shouldUseStrictIteration(), i = t[XU];
+ if (!i) return iW(t, (r, a) => kW(e, i, t, r, a, n), r), t;
if (i.scope_ !== e) return t;
- if (!i.modified_) return wW(e, i.base_, !0), i.base_;
+ if (!i.modified_) return AW(e, i.base_, !0), i.base_;
if (!i.finalized_) {
i.finalized_ = !0, i.scope_.unfinalizedDrafts_--;
let t = i.copy_, a = t, o = !1;
- i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), QU(a, (r, a) => CW(e, i, t, r, a, n, o), r), wW(e, t, !1), n && e.patches_ && fW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
+ i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), iW(a, (r, a) => kW(e, i, t, r, a, n, o), r), AW(e, t, !1), n && e.patches_ && vW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
}
return i.copy_;
}
-function CW(e, t, n, r, i, a, o) {
+function kW(e, t, n, r, i, a, o) {
if (i == null || typeof i != "object" && !o) return;
- let s = uW(i);
+ let s = gW(i);
if (!(s && !o)) {
- if (qU(i)) {
- let o = SW(e, i, a && t && t.type_ !== 3 && !eW(t.assigned_, r) ? a.concat(r) : void 0);
- if (tW(n, r, o), qU(o)) e.canAutoFreeze_ = !1;
+ if ($U(i)) {
+ let o = OW(e, i, a && t && t.type_ !== 3 && !oW(t.assigned_, r) ? a.concat(r) : void 0);
+ if (sW(n, r, o), $U(o)) e.canAutoFreeze_ = !1;
else return;
} else o && n.add(i);
- if (JU(i) && !s) {
+ if (eW(i) && !s) {
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;
- SW(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (rW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && wW(e, i);
+ OW(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (lW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && AW(e, i);
}
}
}
-function wW(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && sW(t, n);
+function AW(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && pW(t, n);
}
-function TW(e, t) {
+function jW(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : mW(),
+ scope_: t ? t.scope_ : bW(),
modified_: !1,
finalized_: !1,
assigned_: {},
@@ -47315,41 +47724,41 @@ function TW(e, t) {
copy_: null,
revoke_: null,
isManual_: !1
- }, i = r, a = EW;
- n && (i = [r], a = DW);
+ }, i = r, a = MW;
+ n && (i = [r], a = NW);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, s;
}
-var EW = {
+var MW = {
get(e, t) {
- if (t === WU) return e;
- let n = aW(e);
- if (!eW(n, t)) return kW(e, n, t);
+ if (t === XU) return e;
+ let n = dW(e);
+ if (!oW(n, t)) return FW(e, n, t);
let r = n[t];
- return e.finalized_ || !JU(r) ? r : r === OW(e.base_, t) ? (MW(e), e.copy_[t] = PW(r, e)) : r;
+ return e.finalized_ || !eW(r) ? r : r === PW(e.base_, t) ? (RW(e), e.copy_[t] = BW(r, e)) : r;
},
has(e, t) {
- return t in aW(e);
+ return t in dW(e);
},
ownKeys(e) {
- return Reflect.ownKeys(aW(e));
+ return Reflect.ownKeys(dW(e));
},
set(e, t, n) {
- let r = AW(aW(e), t);
+ let r = IW(dW(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = OW(aW(e), t), i = r?.[WU];
+ let r = PW(dW(e), t), i = r?.[XU];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (nW(n, r) && (n !== void 0 || eW(e.base_, t))) return !0;
- MW(e), jW(e);
+ if (cW(n, r) && (n !== void 0 || oW(e.base_, t))) return !0;
+ RW(e), LW(e);
}
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_[t] = !0, !0);
},
deleteProperty(e, t) {
- return OW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, MW(e), jW(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
+ return PW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, RW(e), LW(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = aW(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = dW(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
writable: !0,
configurable: e.type_ !== 1 || t !== "length",
@@ -47358,48 +47767,48 @@ var EW = {
};
},
defineProperty() {
- GU(11);
+ ZU(11);
},
getPrototypeOf(e) {
- return KU(e.base_);
+ return QU(e.base_);
},
setPrototypeOf() {
- GU(12);
+ ZU(12);
}
-}, DW = {};
-QU(EW, (e, t) => {
- DW[e] = function() {
+}, NW = {};
+iW(MW, (e, t) => {
+ NW[e] = function() {
return arguments[0] = arguments[0][0], t.apply(this, arguments);
};
-}), DW.deleteProperty = function(e, t) {
- return DW.set.call(this, e, t, void 0);
-}, DW.set = function(e, t, n) {
- return EW.set.call(this, e[0], t, n, e[0]);
+}), NW.deleteProperty = function(e, t) {
+ return NW.set.call(this, e, t, void 0);
+}, NW.set = function(e, t, n) {
+ return MW.set.call(this, e[0], t, n, e[0]);
};
-function OW(e, t) {
- let n = e[WU];
- return (n ? aW(n) : e)[t];
+function PW(e, t) {
+ let n = e[XU];
+ return (n ? dW(n) : e)[t];
}
-function kW(e, t, n) {
- let r = AW(t, n);
+function FW(e, t, n) {
+ let r = IW(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
-function AW(e, t) {
+function IW(e, t) {
if (!(t in e)) return;
- let n = KU(e);
+ let n = QU(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = KU(n);
+ n = QU(n);
}
}
-function jW(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && jW(e.parent_));
+function LW(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && LW(e.parent_));
}
-function MW(e) {
- e.copy_ ||= oW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
+function RW(e) {
+ e.copy_ ||= fW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var NW = class {
+var zW = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -47410,25 +47819,25 @@ var NW = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- typeof t != "function" && GU(6), n !== void 0 && typeof n != "function" && GU(7);
+ typeof t != "function" && ZU(6), n !== void 0 && typeof n != "function" && ZU(7);
let r;
- if (JU(e)) {
- let i = yW(this), a = PW(e, void 0), o = !0;
+ if (eW(e)) {
+ let i = TW(this), a = BW(e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? _W(i) : vW(i);
+ o ? CW(i) : wW(i);
}
- return gW(i, n), xW(r, i);
+ return SW(i, n), DW(r, i);
}
if (!e || typeof e != "object") {
- if (r = t(e), r === void 0 && (r = e), r === HU && (r = void 0), this.autoFreeze_ && sW(r, !0), n) {
+ if (r = t(e), r === void 0 && (r = e), r === JU && (r = void 0), this.autoFreeze_ && pW(r, !0), n) {
let t = [], i = [];
- fW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
+ vW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
}
return r;
}
- GU(1, e);
+ ZU(1, e);
}, this.produceWithPatches = (e, t) => {
if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
@@ -47442,15 +47851,15 @@ var NW = class {
}, typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof e?.useStrictShallowCopy == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy), typeof e?.useStrictIteration == "boolean" && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- JU(e) || GU(8), qU(e) && (e = FW(e));
- let t = yW(this), n = PW(e, void 0);
- return n[WU].isManual_ = !0, vW(t), n;
+ eW(e) || ZU(8), $U(e) && (e = VW(e));
+ let t = TW(this), n = BW(e, void 0);
+ return n[XU].isManual_ = !0, wW(t), n;
}
finishDraft(e, t) {
- let n = e && e[WU];
- (!n || !n.isManual_) && GU(9);
+ let n = e && e[XU];
+ (!n || !n.isManual_) && ZU(9);
let { scope_: r } = n;
- return gW(r, t), xW(void 0, r);
+ return SW(r, t), DW(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -47474,35 +47883,35 @@ var NW = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = fW("Patches").applyPatches_;
- return qU(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = vW("Patches").applyPatches_;
+ return $U(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function PW(e, t) {
- let n = rW(e) ? fW("MapSet").proxyMap_(e, t) : iW(e) ? fW("MapSet").proxySet_(e, t) : TW(e, t);
- return (t ? t.scope_ : mW()).drafts_.push(n), n;
+function BW(e, t) {
+ let n = lW(e) ? vW("MapSet").proxyMap_(e, t) : uW(e) ? vW("MapSet").proxySet_(e, t) : jW(e, t);
+ return (t ? t.scope_ : bW()).drafts_.push(n), n;
}
-function FW(e) {
- return qU(e) || GU(10, e), IW(e);
+function VW(e) {
+ return $U(e) || ZU(10, e), HW(e);
}
-function IW(e) {
- if (!JU(e) || uW(e)) return e;
- let t = e[WU], n, r = !0;
+function HW(e) {
+ if (!eW(e) || gW(e)) return e;
+ let t = e[XU], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = oW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = oW(e, !0);
- return QU(n, (e, t) => {
- tW(n, e, IW(t));
+ t.finalized_ = !0, n = fW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = fW(e, !0);
+ return iW(n, (e, t) => {
+ sW(n, e, HW(t));
}, r), t && (t.finalized_ = !1), n;
}
-new NW().produce;
-function LW(e) {
+new zW().produce;
+function UW(e) {
return e;
}
//#endregion
//#region node_modules/recharts/es6/state/legendSlice.js
-var RW = bV({
+var WW = TV({
name: "legend",
initialState: {
settings: {
@@ -47526,43 +47935,43 @@ var RW = bV({
},
addLegendPayload: {
reducer(e, t) {
- e.payload.push(LW(t.payload));
+ e.payload.push(UW(t.payload));
},
- prepare: gV()
+ prepare: xV()
},
replaceLegendPayload: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = sV(e).payload.indexOf(LW(n));
- i > -1 && (e.payload[i] = LW(r));
+ var { prev: n, next: r } = t.payload, i = fV(e).payload.indexOf(UW(n));
+ i > -1 && (e.payload[i] = UW(r));
},
- prepare: gV()
+ prepare: xV()
},
removeLegendPayload: {
reducer(e, t) {
- var n = sV(e).payload.indexOf(LW(t.payload));
+ var n = fV(e).payload.indexOf(UW(t.payload));
n > -1 && e.payload.splice(n, 1);
},
- prepare: gV()
+ prepare: xV()
}
}
-}), { setLegendSize: zW, setLegendSettings: BW, addLegendPayload: VW, replaceLegendPayload: HW, removeLegendPayload: UW } = RW.actions, WW = RW.reducer, GW = /* @__PURE__ */ T(((e) => {
+}), { setLegendSize: GW, setLegendSettings: KW, addLegendPayload: qW, replaceLegendPayload: JW, removeLegendPayload: YW } = WW.actions, XW = WW.reducer, ZW = /* @__PURE__ */ T(((e) => {
var t = j();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ T(((e, t) => {
- t.exports = GW();
+ t.exports = ZW();
})))();
-function KW(e) {
+function QW(e) {
e();
}
-function qW() {
+function $W() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- KW(() => {
+ QW(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -47584,12 +47993,12 @@ function qW() {
}
};
}
-var JW = {
+var eG = {
notify() {},
get: () => []
};
-function YW(e, t) {
- let n, r = JW, i = 0, a = !1;
+function tG(e, t) {
+ let n, r = eG, i = 0, a = !1;
function o(e) {
u();
let t = r.subscribe(e), n = !1;
@@ -47607,10 +48016,10 @@ function YW(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = qW());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = $W());
}
function d() {
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = JW);
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = eG);
}
function f() {
a || (a = !0, u());
@@ -47629,44 +48038,44 @@ function YW(e, t) {
};
return m;
}
-var XW = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, ZW = typeof navigator < "u" && navigator.product === "ReactNative", QW = XW || ZW ? P.useLayoutEffect : P.useEffect;
-function $W(e, t) {
+var nG = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, rG = typeof navigator < "u" && navigator.product === "ReactNative", iG = nG || rG ? P.useLayoutEffect : P.useEffect;
+function aG(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function eG(e, t) {
- if ($W(e, t)) return !0;
+function oG(e, t) {
+ if (aG(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
let n = Object.keys(e), r = Object.keys(t);
if (n.length !== r.length) return !1;
- for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !$W(e[n[r]], t[n[r]])) return !1;
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !aG(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var tG = /* @__PURE__ */ Symbol.for("react-redux-context"), nG = typeof globalThis < "u" ? globalThis : {};
-function rG() {
+var sG = /* @__PURE__ */ Symbol.for("react-redux-context"), cG = typeof globalThis < "u" ? globalThis : {};
+function lG() {
if (!P.createContext) return {};
- let e = nG[tG] ??= /* @__PURE__ */ new Map(), t = e.get(P.createContext);
+ let e = cG[sG] ??= /* @__PURE__ */ new Map(), t = e.get(P.createContext);
return t || (t = P.createContext(null), e.set(P.createContext, t)), t;
}
-var iG = /* @__PURE__ */ rG();
-function aG(e) {
+var uG = /* @__PURE__ */ lG();
+function dG(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = P.useMemo(() => {
- let e = YW(i);
+ let e = tG(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = P.useMemo(() => i.getState(), [i]);
- QW(() => {
+ iG(() => {
let { subscription: e } = a;
return e.onStateChange = e.notifyNestedSubs, e.trySubscribe(), o !== i.getState() && e.notifyNestedSubs(), () => {
e.tryUnsubscribe(), e.onStateChange = void 0;
};
}, [a, o]);
- let s = n || iG;
+ let s = n || uG;
return /* @__PURE__ */ P.createElement(s.Provider, { value: a }, t);
}
-var oG = aG, sG = /* @__PURE__ */ new Set([
+var fG = dG, pG = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -47689,29 +48098,29 @@ var oG = aG, sG = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function cG(e, t) {
+function mG(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
-function lG(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (sG.has(n)) {
+function hG(e, t) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (pG.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!eG(e[n], t[n])) return !1;
- } else if (!cG(e[n], t[n])) return !1;
+ if (!oG(e[n], t[n])) return !1;
+ } else if (!mG(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var uG = ["contextPayload"];
-function dG() {
- return dG = Object.assign ? Object.assign.bind() : function(e) {
+var gG = ["contextPayload"];
+function _G() {
+ return _G = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, dG.apply(null, arguments);
+ }, _G.apply(null, arguments);
}
-function fG(e, t) {
+function vG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -47721,30 +48130,30 @@ function fG(e, t) {
}
return n;
}
-function pG(e) {
+function yG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? fG(Object(n), !0).forEach(function(t) {
- mG(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fG(Object(n)).forEach(function(t) {
+ t % 2 ? vG(Object(n), !0).forEach(function(t) {
+ bG(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function mG(e, t, n) {
- return (t = hG(t)) in e ? Object.defineProperty(e, t, {
+function bG(e, t, n) {
+ return (t = xG(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function hG(e) {
- var t = gG(e, "string");
+function xG(e) {
+ var t = SG(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function gG(e, t) {
+function SG(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -47754,16 +48163,16 @@ function gG(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function _G(e, t) {
+function CG(e, t) {
if (e == null) return {};
- var n, r, i = vG(e, t);
+ var n, r, i = wG(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function vG(e, t) {
+function wG(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -47772,36 +48181,36 @@ function vG(e, t) {
}
return n;
}
-function yG(e) {
+function TG(e) {
return e.value;
}
-function bG(e) {
- var { contextPayload: t } = e, n = _G(e, uG), r = Nz(t, e.payloadUniqBy, yG), i = pG(pG({}, n), {}, { payload: r });
- return /*#__PURE__*/ P.isValidElement(e.content) ? /*#__PURE__*/ P.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ P.createElement(e.content, i) : /*#__PURE__*/ P.createElement(Due, i);
+function EG(e) {
+ var { contextPayload: t } = e, n = CG(e, gG), r = Rz(t, e.payloadUniqBy, TG), i = yG(yG({}, n), {}, { payload: r });
+ return /*#__PURE__*/ P.isValidElement(e.content) ? /*#__PURE__*/ P.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ P.createElement(e.content, i) : /*#__PURE__*/ P.createElement(Iue, i);
}
-function xG(e, t, n, r, i, a) {
+function DG(e, t, n, r, i, a) {
var { layout: o, align: s, verticalAlign: c } = t, l, u;
- return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), pG(pG({}, l), u);
+ return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), yG(yG({}, l), u);
}
-function SG(e) {
- var t = Fz();
+function OG(e) {
+ var t = Bz();
return (0, P.useEffect)(() => {
- t(BW(e));
+ t(KW(e));
}, [t, e]), null;
}
-function CG(e) {
- var t = Fz();
- return (0, P.useEffect)(() => (t(zW(e)), () => {
- t(zW({
+function kG(e) {
+ var t = Bz();
+ return (0, P.useEffect)(() => (t(GW(e)), () => {
+ t(GW({
width: 0,
height: 0
}));
}), [t, e]), null;
}
-function wG(e, t, n, r) {
+function AG(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var TG = {
+var jG = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -47809,28 +48218,28 @@ var TG = {
layout: "horizontal",
verticalAlign: "bottom"
};
-function EG(e) {
- var t = cz(e, TG), n = Lde(), r = xle(), i = PU(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = Kz([n]), d = MU(), f = NU();
+function MG(e) {
+ var t = pz(e, jG), n = Kde(), r = Ale(), i = BU(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = Zz([n]), d = RU(), f = zU();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = wG(t.layout, o, a, p), h = c ? s : pG(pG({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = AG(t.layout, o, a, p), h = c ? s : yG(yG({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
- }, xG(s, t, i, d, f, l)), s), g = c ?? r;
+ }, DG(s, t, i, d, f, l)), s), g = c ?? r;
if (g == null || n == null) return null;
var _ = /*#__PURE__*/ P.createElement("div", {
className: "recharts-legend-wrapper",
style: h,
ref: u
- }, /*#__PURE__*/ P.createElement(SG, {
+ }, /*#__PURE__*/ P.createElement(OG, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ P.createElement(CG, {
+ }), !c && /*#__PURE__*/ P.createElement(kG, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ P.createElement(bG, dG({}, t, m, {
+ }), /*#__PURE__*/ P.createElement(EG, _G({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
@@ -47838,20 +48247,20 @@ function EG(e) {
})));
return /*#__PURE__*/ (0, lh.createPortal)(_, g);
}
-var DG = /*#__PURE__*/ P.memo(EG, lG);
-DG.displayName = "Legend";
+var NG = /*#__PURE__*/ P.memo(MG, hG);
+NG.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
-function OG() {
- return OG = Object.assign ? Object.assign.bind() : function(e) {
+function PG() {
+ return PG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, OG.apply(null, arguments);
+ }, PG.apply(null, arguments);
}
-function kG(e, t) {
+function FG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -47861,30 +48270,30 @@ function kG(e, t) {
}
return n;
}
-function AG(e) {
+function IG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? kG(Object(n), !0).forEach(function(t) {
- jG(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kG(Object(n)).forEach(function(t) {
+ t % 2 ? FG(Object(n), !0).forEach(function(t) {
+ LG(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function jG(e, t, n) {
- return (t = MG(t)) in e ? Object.defineProperty(e, t, {
+function LG(e, t, n) {
+ return (t = RG(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function MG(e) {
- var t = NG(e, "string");
+function RG(e) {
+ var t = zG(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function NG(e, t) {
+function zG(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -47894,10 +48303,10 @@ function NG(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function PG(e) {
- return Array.isArray(e) && UR(e[0]) && UR(e[1]) ? e.join(" ~ ") : e;
+function BG(e) {
+ return Array.isArray(e) && JR(e[0]) && JR(e[1]) ? e.join(" ~ ") : e;
}
-var FG = {
+var VG = {
separator: " : ",
contentStyle: {
margin: 0,
@@ -47915,30 +48324,30 @@ var FG = {
labelStyle: {},
accessibilityLayer: !1
};
-function IG(e, t) {
- return t == null ? e : Uz(e, t);
+function HG(e, t) {
+ return t == null ? e : Jz(e, t);
}
-var LG = (e) => {
- var { separator: t = FG.separator, contentStyle: n, itemStyle: r, labelStyle: i = FG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = FG.accessibilityLayer } = e, p = () => {
+var UG = (e) => {
+ var { separator: t = VG.separator, contentStyle: n, itemStyle: r, labelStyle: i = VG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = VG.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = IG(a, s).map((e, n) => {
+ }, n = HG(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || PG, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || BG, { value: s, name: c } = e, l = s, u = c;
if (i) {
var d = i(s, c, e, n, a);
if (Array.isArray(d)) [l, u] = d;
else if (d != null) l = d;
else return null;
}
- var f = AG(AG({}, FG.itemStyle), {}, { color: e.color || FG.itemStyle.color }, r);
+ var f = IG(IG({}, VG.itemStyle), {}, { color: e.color || VG.itemStyle.color }, r);
return /*#__PURE__*/ P.createElement("li", {
className: "recharts-tooltip-item",
key: `tooltip-item-${n}`,
style: f
- }, UR(u) ? /*#__PURE__*/ P.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, UR(u) ? /*#__PURE__*/ P.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ P.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ P.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
+ }, JR(u) ? /*#__PURE__*/ P.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, JR(u) ? /*#__PURE__*/ P.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ P.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ P.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
});
return /*#__PURE__*/ P.createElement("ul", {
className: "recharts-tooltip-item-list",
@@ -47946,30 +48355,30 @@ var LG = (e) => {
}, n);
}
return null;
- }, m = AG(AG({}, FG.contentStyle), n), h = AG({ margin: 0 }, i), g = !YR(u), _ = g ? u : "", v = Pm("recharts-default-tooltip", c), y = Pm("recharts-tooltip-label", l);
+ }, m = IG(IG({}, VG.contentStyle), n), h = IG({ margin: 0 }, i), g = !ez(u), _ = g ? u : "", v = Pm("recharts-default-tooltip", c), y = Pm("recharts-tooltip-label", l);
g && d && a != null && (_ = d(u, a));
var b = f ? {
role: "status",
"aria-live": "assertive"
} : {};
- return /*#__PURE__*/ P.createElement("div", OG({
+ return /*#__PURE__*/ P.createElement("div", PG({
className: v,
style: m
}, b), /*#__PURE__*/ P.createElement("p", {
className: y,
style: h
}, /*#__PURE__*/ P.isValidElement(_) ? _ : `${_}`), p());
-}, RG = "recharts-tooltip-wrapper", zG = { visibility: "hidden" };
-function BG(e) {
+}, WG = "recharts-tooltip-wrapper", GG = { visibility: "hidden" };
+function KG(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
- return Pm(RG, {
- [`${RG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
- [`${RG}-left`]: Z(n) && t && Z(t.x) && n < t.x,
- [`${RG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
- [`${RG}-top`]: Z(r) && t && Z(t.y) && r < t.y
+ return Pm(WG, {
+ [`${WG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
+ [`${WG}-left`]: Z(n) && t && Z(t.x) && n < t.x,
+ [`${WG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
+ [`${WG}-top`]: Z(r) && t && Z(t.y) && r < t.y
});
}
-function VG(e) {
+function qG(e) {
var { allowEscapeViewBox: t, coordinate: n, key: r, offset: i, position: a, reverseDirection: o, tooltipDimension: s, viewBox: c, viewBoxDimension: l } = e;
if (a && Z(a[r])) return a[r];
var u = n[r] - s - (i > 0 ? i : 0), d = n[r] + i;
@@ -47977,13 +48386,13 @@ function VG(e) {
var f = c[r];
return f == null ? 0 : o[r] ? Math.max(u < f ? d : u, f) : l == null ? 0 : d + s > f + l ? Math.max(u, f) : Math.max(d, f);
}
-function HG(e) {
+function JG(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function UG(e) {
+function YG(e) {
var { allowEscapeViewBox: t, coordinate: n, offsetTop: r, offsetLeft: i, position: a, reverseDirection: o, tooltipBox: s, useTranslate3d: c, viewBox: l } = e, u, d, f;
- return s.height > 0 && s.width > 0 && n ? (d = VG({
+ return s.height > 0 && s.width > 0 && n ? (d = qG({
allowEscapeViewBox: t,
coordinate: n,
key: "x",
@@ -47993,7 +48402,7 @@ function UG(e) {
tooltipDimension: s.width,
viewBox: l,
viewBoxDimension: l.width
- }), f = VG({
+ }), f = qG({
allowEscapeViewBox: t,
coordinate: n,
key: "y",
@@ -48003,27 +48412,27 @@ function UG(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = HG({
+ }), u = JG({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = zG, {
+ })) : u = GG, {
cssProperties: u,
- cssClasses: BG({
+ cssClasses: KG({
translateX: d,
translateY: f,
coordinate: n
})
};
}
-var WG = {
+var XG = {
devToolsEnabled: !0,
isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)
};
//#endregion
//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js
-function GG() {
- var [e, t] = (0, P.useState)(() => WG.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
+function ZG() {
+ var [e, t] = (0, P.useState)(() => XG.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
return (0, P.useEffect)(() => {
if (window.matchMedia) {
var e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {
@@ -48037,7 +48446,7 @@ function GG() {
}
//#endregion
//#region node_modules/recharts/es6/component/TooltipBoundingBox.js
-function KG(e, t) {
+function QG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48047,30 +48456,30 @@ function KG(e, t) {
}
return n;
}
-function qG(e) {
+function $G(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? KG(Object(n), !0).forEach(function(t) {
- JG(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : KG(Object(n)).forEach(function(t) {
+ t % 2 ? QG(Object(n), !0).forEach(function(t) {
+ eK(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : QG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function JG(e, t, n) {
- return (t = YG(t)) in e ? Object.defineProperty(e, t, {
+function eK(e, t, n) {
+ return (t = tK(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function YG(e) {
- var t = XG(e, "string");
+function tK(e) {
+ var t = nK(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function XG(e, t) {
+function nK(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48080,11 +48489,11 @@ function XG(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function ZG(e) {
+function rK(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function QG(e) {
- var t = GG(), [n, r] = P.useState(() => ({
+function iK(e) {
+ var t = ZG(), [n, r] = P.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
x: 0,
@@ -48104,8 +48513,8 @@ function QG(e) {
return document.addEventListener("keydown", t), () => {
document.removeEventListener("keydown", t);
};
- }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(qG(qG({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = UG({
+ }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r($G($G({}, n), {}, { dismissed: !1 }));
+ var { cssClasses: i, cssProperties: a } = YG({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -48118,7 +48527,7 @@ function QG(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = qG(qG({}, e.hasPortalFromProps ? {} : qG(qG({ transition: ZG({
+ }), o = $G($G({}, e.hasPortalFromProps ? {} : $G($G({ transition: rK({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -48138,19 +48547,19 @@ function QG(e) {
ref: e.innerRef
}, e.children);
}
-var $G = /*#__PURE__*/ P.memo(QG), eK = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var aK = /*#__PURE__*/ P.memo(iK), oK = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
-function tK() {
- return tK = Object.assign ? Object.assign.bind() : function(e) {
+function sK() {
+ return sK = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, tK.apply(null, arguments);
+ }, sK.apply(null, arguments);
}
-function nK(e, t) {
+function cK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48160,30 +48569,30 @@ function nK(e, t) {
}
return n;
}
-function rK(e) {
+function lK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? nK(Object(n), !0).forEach(function(t) {
- iK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : nK(Object(n)).forEach(function(t) {
+ t % 2 ? cK(Object(n), !0).forEach(function(t) {
+ uK(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : cK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function iK(e, t, n) {
- return (t = aK(t)) in e ? Object.defineProperty(e, t, {
+function uK(e, t, n) {
+ return (t = dK(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function aK(e) {
- var t = oK(e, "string");
+function dK(e) {
+ var t = fK(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oK(e, t) {
+function fK(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48193,40 +48602,40 @@ function oK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var sK = {
- curveBasisClosed: zle,
- curveBasisOpen: Ble,
- curveBasis: Rle,
- curveBumpX: wle,
- curveBumpY: Tle,
- curveLinearClosed: Vle,
- curveLinear: eR,
- curveMonotoneX: Hle,
- curveMonotoneY: Ule,
- curveNatural: Wle,
- curveStep: Gle,
- curveStepAfter: qle,
- curveStepBefore: Kle
-}, cK = (e) => aH(e.x) && aH(e.y), lK = (e) => e.base != null && cK(e.base) && cK(e), uK = (e) => e.x, dK = (e) => e.y, fK = (e, t) => {
+var pK = {
+ curveBasisClosed: Jle,
+ curveBasisOpen: Yle,
+ curveBasis: qle,
+ curveBumpX: Nle,
+ curveBumpY: Ple,
+ curveLinearClosed: Xle,
+ curveLinear: aR,
+ curveMonotoneX: Zle,
+ curveMonotoneY: Qle,
+ curveNatural: $le,
+ curveStep: eue,
+ curveStepAfter: nue,
+ curveStepBefore: tue
+}, mK = (e) => dH(e.x) && dH(e.y), hK = (e) => e.base != null && mK(e.base) && mK(e), gK = (e) => e.x, _K = (e) => e.y, vK = (e, t) => {
if (typeof e == "function") return e;
- var n = `curve${XR(e)}`;
+ var n = `curve${tz(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
- var r = sK[`${n}${t === "vertical" ? "Y" : "X"}`];
+ var r = pK[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return sK[n] || eR;
-}, pK = {
+ return pK[n] || aR;
+}, yK = {
connectNulls: !1,
type: "linear"
-}, mK = (e) => {
- var { type: t = pK.type, points: n = [], baseLine: r, layout: i, connectNulls: a = pK.connectNulls } = e, o = fK(t, i), s = a ? n.filter(cK) : n;
+}, bK = (e) => {
+ var { type: t = yK.type, points: n = [], baseLine: r, layout: i, connectNulls: a = yK.connectNulls } = e, o = vK(t, i), s = a ? n.filter(mK) : n;
if (Array.isArray(r)) {
- var c, l = n.map((e, t) => rK(rK({}, e), {}, { base: r[t] }));
- return c = i === "vertical" ? iR().y(dK).x1(uK).x0((e) => e.base.x) : iR().x(uK).y1(dK).y0((e) => e.base.y), c.defined(lK).curve(o)(a ? l.filter(lK) : l);
+ var c, l = n.map((e, t) => lK(lK({}, e), {}, { base: r[t] }));
+ return c = i === "vertical" ? lR().y(_K).x1(gK).x0((e) => e.base.x) : lR().x(gK).y1(_K).y0((e) => e.base.y), c.defined(hK).curve(o)(a ? l.filter(hK) : l);
}
- return (i === "vertical" && Z(r) ? iR().y(dK).x1(uK).x0(r) : Z(r) ? iR().x(uK).y1(dK).y0(r) : rR().x(uK).y(dK)).defined(cK).curve(o)(s);
-}, hK = (e) => {
- var { className: t, points: n, path: r, pathRef: i } = e, a = IU();
+ return (i === "vertical" && Z(r) ? lR().y(_K).x1(gK).x0(r) : Z(r) ? lR().x(gK).y1(_K).y0(r) : cR().x(gK).y(_K)).defined(mK).curve(o)(s);
+}, xK = (e) => {
+ var { className: t, points: n, path: r, pathRef: i } = e, a = HU();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@ -48234,13 +48643,13 @@ var sK = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? mK(o) : r;
- return /*#__PURE__*/ P.createElement("path", tK({}, ML(e), az(e), {
+ }, s = n && n.length ? bK(o) : r;
+ return /*#__PURE__*/ P.createElement("path", sK({}, LL(e), uz(e), {
className: Pm("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, gK = [
+}, SK = [
"x",
"y",
"top",
@@ -48249,16 +48658,16 @@ var sK = {
"height",
"className"
];
-function _K() {
- return _K = Object.assign ? Object.assign.bind() : function(e) {
+function CK() {
+ return CK = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, _K.apply(null, arguments);
+ }, CK.apply(null, arguments);
}
-function vK(e, t) {
+function wK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48268,30 +48677,30 @@ function vK(e, t) {
}
return n;
}
-function yK(e) {
+function TK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? vK(Object(n), !0).forEach(function(t) {
- bK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vK(Object(n)).forEach(function(t) {
+ t % 2 ? wK(Object(n), !0).forEach(function(t) {
+ EK(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bK(e, t, n) {
- return (t = xK(t)) in e ? Object.defineProperty(e, t, {
+function EK(e, t, n) {
+ return (t = DK(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xK(e) {
- var t = SK(e, "string");
+function DK(e) {
+ var t = OK(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SK(e, t) {
+function OK(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48301,16 +48710,16 @@ function SK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function CK(e, t) {
+function kK(e, t) {
if (e == null) return {};
- var n, r, i = wK(e, t);
+ var n, r, i = AK(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function wK(e, t) {
+function AK(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -48319,8 +48728,8 @@ function wK(e, t) {
}
return n;
}
-var TK = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, EK = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = CK(e, gK), l = yK({
+var jK = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, MK = (e) => {
+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = kK(e, SK), l = TK({
x: t,
y: n,
top: r,
@@ -48328,14 +48737,14 @@ var TK = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, EK = (e) => {
width: a,
height: o
}, c);
- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ P.createElement("path", _K({}, PL(l), {
+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ P.createElement("path", CK({}, zL(l), {
className: Pm("recharts-cross", s),
- d: TK(t, n, a, o, r, i)
+ d: jK(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function DK(e, t, n, r) {
+function NK(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -48348,7 +48757,7 @@ function DK(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/animation/util.js
-function OK(e, t) {
+function PK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48358,30 +48767,30 @@ function OK(e, t) {
}
return n;
}
-function kK(e) {
+function FK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? OK(Object(n), !0).forEach(function(t) {
- AK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : OK(Object(n)).forEach(function(t) {
+ t % 2 ? PK(Object(n), !0).forEach(function(t) {
+ IK(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function AK(e, t, n) {
- return (t = jK(t)) in e ? Object.defineProperty(e, t, {
+function IK(e, t, n) {
+ return (t = LK(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function jK(e) {
- var t = MK(e, "string");
+function LK(e) {
+ var t = RK(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function MK(e, t) {
+function RK(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48391,10 +48800,10 @@ function MK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var NK = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), PK = (e, t, n) => e.map((e) => `${NK(e)} ${t}ms ${n}`).join(","), FK = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), IK = (e, t) => Object.keys(t).reduce((n, r) => kK(kK({}, n), {}, { [r]: e(r, t[r]) }), {});
+var zK = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), BK = (e, t, n) => e.map((e) => `${zK(e)} ${t}ms ${n}`).join(","), VK = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), HK = (e, t) => Object.keys(t).reduce((n, r) => FK(FK({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
-function LK(e, t) {
+function UK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48404,30 +48813,30 @@ function LK(e, t) {
}
return n;
}
-function RK(e) {
+function WK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? LK(Object(n), !0).forEach(function(t) {
- zK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : LK(Object(n)).forEach(function(t) {
+ t % 2 ? UK(Object(n), !0).forEach(function(t) {
+ GK(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zK(e, t, n) {
- return (t = BK(t)) in e ? Object.defineProperty(e, t, {
+function GK(e, t, n) {
+ return (t = KK(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function BK(e) {
- var t = VK(e, "string");
+function KK(e) {
+ var t = qK(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function VK(e, t) {
+function qK(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48437,51 +48846,51 @@ function VK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var HK = (e, t, n) => e + (t - e) * n, UK = (e) => {
+var JK = (e, t, n) => e + (t - e) * n, YK = (e) => {
var { from: t, to: n } = e;
return t !== n;
-}, WK = (e, t, n) => {
- var r = IK((t, n) => {
- if (UK(n)) {
+}, XK = (e, t, n) => {
+ var r = HK((t, n) => {
+ if (YK(n)) {
var [r, i] = e(n.from, n.to, n.velocity);
- return RK(RK({}, n), {}, {
+ return WK(WK({}, n), {}, {
from: r,
velocity: i
});
}
return n;
}, t);
- return n < 1 ? IK((e, t) => UK(t) && r[e] != null ? RK(RK({}, t), {}, {
- velocity: HK(t.velocity, r[e].velocity, n),
- from: HK(t.from, r[e].from, n)
- }) : t, t) : WK(e, r, n - 1);
+ return n < 1 ? HK((e, t) => YK(t) && r[e] != null ? WK(WK({}, t), {}, {
+ velocity: JK(t.velocity, r[e].velocity, n),
+ from: JK(t.from, r[e].from, n)
+ }) : t, t) : XK(e, r, n - 1);
};
-function GK(e, t, n, r, i, a) {
- var o, s = r.reduce((n, r) => RK(RK({}, n), {}, { [r]: {
+function ZK(e, t, n, r, i, a) {
+ var o, s = r.reduce((n, r) => WK(WK({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
to: t[r]
- } }), {}), c = () => IK((e, t) => t.from, s), l = () => !Object.values(s).filter(UK).length, u = null, d = (r) => {
+ } }), {}), c = () => HK((e, t) => t.from, s), l = () => !Object.values(s).filter(YK).length, u = null, d = (r) => {
o ||= r;
var f = (r - o) / n.dt;
- s = WK(n, s, f), i(RK(RK(RK({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
+ s = XK(n, s, f), i(WK(WK(WK({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
};
return () => (u = a.setTimeout(d), () => {
var e;
(e = u) == null || e();
});
}
-function KK(e, t, n, r, i, a, o) {
+function QK(e, t, n, r, i, a, o) {
var s = null, c = i.reduce((n, r) => {
var i = e[r], a = t[r];
- return i == null || a == null ? n : RK(RK({}, n), {}, { [r]: [i, a] });
+ return i == null || a == null ? n : WK(WK({}, n), {}, { [r]: [i, a] });
}, {}), l, u = (i) => {
l ||= i;
- var d = (i - l) / r, f = IK((e, t) => HK(...t, n(d)), c);
- if (a(RK(RK(RK({}, e), t), f)), d < 1) s = o.setTimeout(u);
+ var d = (i - l) / r, f = HK((e, t) => JK(...t, n(d)), c);
+ if (a(WK(WK(WK({}, e), t), f)), d < 1) s = o.setTimeout(u);
else {
- var p = IK((e, t) => HK(...t, n(1)), c);
- a(RK(RK(RK({}, e), t), p));
+ var p = HK((e, t) => JK(...t, n(1)), c);
+ a(WK(WK(WK({}, e), t), p));
}
};
return () => (s = o.setTimeout(u), () => {
@@ -48489,15 +48898,15 @@ function KK(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var qK = (e, t, n, r, i, a) => {
- var o = FK(e, t);
- return n == null ? () => (i(RK(RK({}, e), t)), () => {}) : n.isStepper === !0 ? GK(e, t, n, o, i, a) : KK(e, t, n, r, o, i, a);
-}, JK = (e, t) => [
+var $K = (e, t, n, r, i, a) => {
+ var o = VK(e, t);
+ return n == null ? () => (i(WK(WK({}, e), t)), () => {}) : n.isStepper === !0 ? ZK(e, t, n, o, i, a) : QK(e, t, n, r, o, i, a);
+}, eq = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], YK = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), XK = (e, t) => (n) => YK(JK(e, t), n), ZK = (e, t) => (n) => YK([...JK(e, t).map((e, t) => e * t).slice(1), 0], n), QK = (e) => {
+], tq = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), nq = (e, t) => (n) => tq(eq(e, t), n), rq = (e, t) => (n) => tq([...eq(e, t).map((e, t) => e * t).slice(1), 0], n), iq = (e) => {
var t, n = e.split("(");
if (n.length !== 2 || n[0] !== "cubic-bezier") return null;
var r = (t = n[1]) == null || (t = t.split(")")[0]) == null ? void 0 : t.split(",");
@@ -48509,7 +48918,7 @@ var qK = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, $K = function() {
+}, aq = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -48543,7 +48952,7 @@ var qK = (e, t, n, r, i, a) => {
1
];
default:
- var t = QK(e[0]);
+ var t = iq(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -48552,8 +48961,8 @@ var qK = (e, t, n, r, i, a) => {
1,
1
];
-}, eq = (e, t, n, r) => {
- var i = XK(e, n), a = XK(t, r), o = ZK(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, oq = (e, t, n, r) => {
+ var i = nq(e, n), a = nq(t, r), o = rq(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
for (var t = e > 1 ? 1 : e, n = t, r = 0; r < 8; ++r) {
var c = i(n) - t, l = o(n);
if (Math.abs(c - t) < 1e-4 || l < 1e-4) return a(n);
@@ -48562,29 +48971,29 @@ var qK = (e, t, n, r, i, a) => {
return a(n);
};
return c.isStepper = !1, c;
-}, tq = function() {
- return eq(...$K(...arguments));
-}, nq = function() {
+}, sq = function() {
+ return oq(...aq(...arguments));
+}, cq = function() {
var { stiff: e = 100, damping: t = 8, dt: n = 17 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = (r, i, a) => {
var o = a + (-(r - i) * e - a * t) * n / 1e3, s = a * n / 1e3 + r;
return Math.abs(s - i) < 1e-4 && Math.abs(o) < 1e-4 ? [i, 0] : [s, o];
};
return r.isStepper = !0, r.dt = n, r;
-}, rq = (e) => {
+}, lq = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
- case "linear": return tq(e);
- case "spring": return nq();
- default: if (e.split("(")[0] === "cubic-bezier") return tq(e);
+ case "linear": return sq(e);
+ case "spring": return cq();
+ default: if (e.split("(")[0] === "cubic-bezier") return sq(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function iq(e) {
+function uq(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -48615,7 +49024,7 @@ function iq(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var aq = class {
+var dq = class {
setTimeout(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = performance.now(), r = null, i = (a) => {
a - n >= t ? e(a) : typeof requestAnimationFrame == "function" && (r = requestAnimationFrame(i));
@@ -48627,14 +49036,14 @@ var aq = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function oq() {
- return iq(new aq());
+function fq() {
+ return uq(new dq());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var sq = /*#__PURE__*/ (0, P.createContext)(oq);
-function cq(e, t) {
- var n = (0, P.useContext)(sq);
+var pq = /*#__PURE__*/ (0, P.createContext)(fq);
+function mq(e, t) {
+ var n = (0, P.useContext)(pq);
return (0, P.useMemo)(() => t ?? n(e), [
e,
t,
@@ -48643,7 +49052,7 @@ function cq(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var lq = {
+var hq = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -48651,14 +49060,14 @@ var lq = {
canBegin: !0,
onAnimationEnd: () => {},
onAnimationStart: () => {}
-}, uq = { t: 0 }, dq = { t: 1 };
-function fq(e) {
- var t = cz(e, lq), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = GG(), d = n === "auto" ? !WG.isSsr && !u : n, f = cq(t.animationId, t.animationManager), [p, m] = (0, P.useState)(d ? uq : dq), h = (0, P.useRef)(null);
+}, gq = { t: 0 }, _q = { t: 1 };
+function vq(e) {
+ var t = pz(e, hq), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = ZG(), d = n === "auto" ? !XG.isSsr && !u : n, f = mq(t.animationId, t.animationManager), [p, m] = (0, P.useState)(d ? gq : _q), h = (0, P.useRef)(null);
return (0, P.useEffect)(() => {
- d || m(dq);
+ d || m(_q);
}, [d]), (0, P.useEffect)(() => {
- if (!d || !r) return QR;
- var e = qK(uq, dq, rq(a), i, m, f.getTimeoutController());
+ if (!d || !r) return rz;
+ var e = $K(gq, _q, lq(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -48683,14 +49092,14 @@ function fq(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
-function pq(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, P.useRef)(WR(t)), r = (0, P.useRef)(e);
- return r.current !== e && (n.current = WR(t), r.current = e), n.current;
+function yq(e) {
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, P.useRef)(YR(t)), r = (0, P.useRef)(e);
+ return r.current !== e && (n.current = YR(t), r.current = e), n.current;
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var mq = ["radius"], hq = ["radius"], gq, _q, vq, yq, bq, xq, Sq, Cq, wq, Tq;
-function Eq(e, t) {
+var bq = ["radius"], xq = ["radius"], Sq, Cq, wq, Tq, Eq, Dq, Oq, kq, Aq, jq;
+function Mq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48700,30 +49109,30 @@ function Eq(e, t) {
}
return n;
}
-function Dq(e) {
+function Nq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Eq(Object(n), !0).forEach(function(t) {
- Oq(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Eq(Object(n)).forEach(function(t) {
+ t % 2 ? Mq(Object(n), !0).forEach(function(t) {
+ Pq(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Mq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Oq(e, t, n) {
- return (t = kq(t)) in e ? Object.defineProperty(e, t, {
+function Pq(e, t, n) {
+ return (t = Fq(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function kq(e) {
- var t = Aq(e, "string");
+function Fq(e) {
+ var t = Iq(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Aq(e, t) {
+function Iq(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48733,25 +49142,25 @@ function Aq(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function jq() {
- return jq = Object.assign ? Object.assign.bind() : function(e) {
+function Lq() {
+ return Lq = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, jq.apply(null, arguments);
+ }, Lq.apply(null, arguments);
}
-function Mq(e, t) {
+function Rq(e, t) {
if (e == null) return {};
- var n, r, i = Nq(e, t);
+ var n, r, i = zq(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Nq(e, t) {
+function zq(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -48760,11 +49169,11 @@ function Nq(e, t) {
}
return n;
}
-function Pq(e, t) {
+function Bq(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var Fq = (e, t, n, r, i) => {
- var a = RR(n), o = RR(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
+var Vq = (e, t, n, r, i) => {
+ var a = UR(n), o = UR(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
if (s > 0 && Array.isArray(i)) {
for (var f = [
0,
@@ -48775,44 +49184,44 @@ var Fq = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = zR(gq ||= Pq([
+ d = WR(Sq ||= Bq([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += zR(_q ||= Pq([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += WR(Cq ||= Bq([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += zR(vq ||= Pq([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += WR(wq ||= Bq([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += zR(yq ||= Pq([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += WR(Tq ||= Bq([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += zR(bq ||= Pq([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += WR(Eq ||= Bq([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += zR(xq ||= Pq([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += WR(Dq ||= Bq([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += zR(Sq ||= Pq([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += WR(Oq ||= Bq([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += zR(Cq ||= Pq([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += WR(kq ||= Bq([
"A ",
",",
",0,0,",
@@ -48822,8 +49231,8 @@ var Fq = (e, t, n, r, i) => {
]), f[3], f[3], u, e, t + r - c * f[3])), d += "Z";
} else if (s > 0 && i === +i && i > 0) {
var g = Math.min(s, i);
- d = zR(wq ||= Pq(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
- } else d = zR(Tq ||= Pq([
+ d = WR(Aq ||= Bq(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
+ } else d = WR(jq ||= Bq([
"M ",
",",
" h ",
@@ -48832,7 +49241,7 @@ var Fq = (e, t, n, r, i) => {
" Z"
]), e, t, n, r, -n);
return d;
-}, Iq = {
+}, Hq = {
x: 0,
y: 0,
width: 0,
@@ -48843,15 +49252,15 @@ var Fq = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, Lq = (e) => {
- var t = cz(e, Iq), n = (0, P.useRef)(null), [r, i] = (0, P.useState)(-1);
+}, Uq = (e) => {
+ var t = pz(e, Hq), n = (0, P.useRef)(null), [r, i] = (0, P.useState)(-1);
(0, P.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, P.useRef)(s), _ = (0, P.useRef)(c), v = (0, P.useRef)(a), y = (0, P.useRef)(o), b = pq((0, P.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, P.useRef)(s), _ = (0, P.useRef)(c), v = (0, P.useRef)(a), y = (0, P.useRef)(o), b = yq((0, P.useMemo)(() => ({
x: a,
y: o,
width: s,
@@ -48867,19 +49276,19 @@ var Fq = (e, t, n, r, i) => {
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
var x = Pm("recharts-rectangle", u);
if (!h) {
- var S = PL(t), { radius: C } = S, w = Mq(S, mq);
- return /*#__PURE__*/ P.createElement("path", jq({}, w, {
- x: RR(a),
- y: RR(o),
- width: RR(s),
- height: RR(c),
+ var S = zL(t), { radius: C } = S, w = Rq(S, bq);
+ return /*#__PURE__*/ P.createElement("path", Lq({}, w, {
+ x: UR(a),
+ y: UR(o),
+ width: UR(s),
+ height: UR(c),
radius: typeof l == "number" ? l : void 0,
className: x,
- d: Fq(a, o, s, c, l)
+ d: Vq(a, o, s, c, l)
}));
}
- var T = g.current, E = _.current, D = v.current, O = y.current, k = `0px ${r === -1 ? 1 : r}px`, A = `${r}px ${r}px`, j = PK(["strokeDasharray"], f, typeof d == "string" ? d : Iq.animationEasing);
- return /*#__PURE__*/ P.createElement(fq, {
+ 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 = BK(["strokeDasharray"], f, typeof d == "string" ? d : Hq.animationEasing);
+ return /*#__PURE__*/ P.createElement(vq, {
animationId: b,
key: b,
canBegin: r > 0,
@@ -48888,24 +49297,24 @@ var Fq = (e, t, n, r, i) => {
isActive: h,
begin: p
}, (e) => {
- var r = qR(T, s, e), i = qR(E, c, e), u = qR(D, a, e), d = qR(O, o, e);
+ var r = QR(T, s, e), i = QR(E, c, e), u = QR(D, a, e), d = QR(O, o, e);
n.current && (g.current = r, _.current = i, v.current = u, y.current = d);
var f = m ? e > 0 ? {
transition: j,
strokeDasharray: A
- } : { strokeDasharray: k } : { strokeDasharray: A }, p = PL(t), { radius: h } = p, b = Mq(p, hq);
- return /*#__PURE__*/ P.createElement("path", jq({}, b, {
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = zL(t), { radius: h } = p, b = Rq(p, xq);
+ return /*#__PURE__*/ P.createElement("path", Lq({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
- d: Fq(u, d, r, i, l),
+ d: Vq(u, d, r, i, l),
ref: n,
- style: Dq(Dq({}, f), t.style)
+ style: Nq(Nq({}, f), t.style)
}));
});
};
//#endregion
//#region node_modules/recharts/es6/util/PolarUtils.js
-function Rq(e, t) {
+function Wq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48915,30 +49324,30 @@ function Rq(e, t) {
}
return n;
}
-function zq(e) {
+function Gq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Rq(Object(n), !0).forEach(function(t) {
- Bq(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Rq(Object(n)).forEach(function(t) {
+ t % 2 ? Wq(Object(n), !0).forEach(function(t) {
+ Kq(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Wq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Bq(e, t, n) {
- return (t = Vq(t)) in e ? Object.defineProperty(e, t, {
+function Kq(e, t, n) {
+ return (t = qq(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Vq(e) {
- var t = Hq(e, "string");
+function qq(e) {
+ var t = Jq(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Hq(e, t) {
+function Jq(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48948,10 +49357,10 @@ function Hq(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Uq = Math.PI / 180, Wq = (e) => e * Math.PI / 180, Gq = (e) => e * 180 / Math.PI, Kq = (e, t, n, r) => ({
- x: e + Math.cos(-Uq * r) * n,
- y: t + Math.sin(-Uq * r) * n
-}), qq = function(e, t) {
+var Yq = Math.PI / 180, Xq = (e) => e * Math.PI / 180, Zq = (e) => e * 180 / Math.PI, Qq = (e, t, n, r) => ({
+ x: e + Math.cos(-Yq * r) * n,
+ y: t + Math.sin(-Yq * r) * n
+}), $q = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -48962,11 +49371,11 @@ var Uq = Math.PI / 180, Wq = (e) => e * Math.PI / 180, Gq = (e) => e * 180 / Mat
brushBottom: 0
};
return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;
-}, Jq = (e, t) => {
+}, eJ = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, Yq = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = Jq({
+}, tJ = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = eJ({
x: n,
y: r
}, {
@@ -48980,25 +49389,25 @@ var Uq = Math.PI / 180, Wq = (e) => e * Math.PI / 180, Gq = (e) => e * 180 / Mat
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: Gq(c),
+ angle: Zq(c),
angleInRadian: c
};
-}, Xq = (e) => {
+}, nJ = (e) => {
var { startAngle: t, endAngle: n } = e, r = Math.floor(t / 360), i = Math.floor(n / 360), a = Math.min(r, i);
return {
startAngle: t - a * 360,
endAngle: n - a * 360
};
-}, Zq = (e, t) => {
+}, rJ = (e, t) => {
var { startAngle: n, endAngle: r } = t, i = Math.floor(n / 360), a = Math.floor(r / 360);
return e + Math.min(i, a) * 360;
-}, Qq = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = Yq({
+}, iJ = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = tJ({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = Xq(t), u = a, d;
+ var { startAngle: c, endAngle: l } = nJ(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -49008,17 +49417,17 @@ var Uq = Math.PI / 180, Wq = (e) => e * Math.PI / 180, Gq = (e) => e * 180 / Mat
for (; u < l;) u += 360;
d = u >= l && u <= c;
}
- return d ? zq(zq({}, t), {}, {
+ return d ? Gq(Gq({}, t), {}, {
radius: i,
- angle: Zq(u, t)
+ angle: rJ(u, t)
}) : null;
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js
-function $q(e) {
+function aJ(e) {
var { cx: t, cy: n, radius: r, startAngle: i, endAngle: a } = e;
return {
- points: [Kq(t, n, r, i), Kq(t, n, r, a)],
+ points: [Qq(t, n, r, i), Qq(t, n, r, a)],
cx: t,
cy: n,
radius: r,
@@ -49028,29 +49437,29 @@ function $q(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var eJ, tJ, nJ, rJ, iJ, aJ, oJ;
-function sJ() {
- return sJ = Object.assign ? Object.assign.bind() : function(e) {
+var oJ, sJ, cJ, lJ, uJ, dJ, fJ;
+function pJ() {
+ return pJ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, sJ.apply(null, arguments);
+ }, pJ.apply(null, arguments);
}
-function cJ(e, t) {
+function mJ(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var lJ = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 359.999), uJ = (e) => {
- var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / Uq, d = c ? i : i + a * u, f = Kq(t, n, l, d), p = Kq(t, n, r, d), m = c ? i - a * u : i;
+var hJ = (e, t) => GR(t - e) * Math.min(Math.abs(t - e), 359.999), gJ = (e) => {
+ var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / Yq, d = c ? i : i + a * u, f = Qq(t, n, l, d), p = Qq(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
circleTangency: p,
- lineTangency: Kq(t, n, l * Math.cos(u * Uq), m),
+ lineTangency: Qq(t, n, l * Math.cos(u * Yq), m),
theta: u
};
-}, dJ = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = lJ(a, o), c = a + s, l = Kq(t, n, i, a), u = Kq(t, n, i, c), d = zR(eJ ||= cJ([
+}, _J = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = hJ(a, o), c = a + s, l = Qq(t, n, i, a), u = Qq(t, n, i, c), d = WR(oJ ||= mJ([
"M ",
",",
"\n A ",
@@ -49062,8 +49471,8 @@ var lJ = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 359.999), uJ = (e) => {
"\n "
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
- var f = Kq(t, n, r, a), p = Kq(t, n, r, c);
- d += zR(tJ ||= cJ([
+ var f = Qq(t, n, r, a), p = Qq(t, n, r, c);
+ d += WR(sJ ||= mJ([
"L ",
",",
"\n A ",
@@ -49074,14 +49483,14 @@ var lJ = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 359.999), uJ = (e) => {
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += zR(nJ ||= cJ([
+ } else d += WR(cJ ||= mJ([
"L ",
",",
" Z"
]), t, n);
return d;
-}, fJ = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = BR(l - c), { circleTangency: d, lineTangency: f, theta: p } = uJ({
+}, vJ = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = GR(l - c), { circleTangency: d, lineTangency: f, theta: p } = gJ({
cx: t,
cy: n,
radius: i,
@@ -49089,7 +49498,7 @@ var lJ = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 359.999), uJ = (e) => {
sign: u,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: m, lineTangency: h, theta: g } = uJ({
+ }), { circleTangency: m, lineTangency: h, theta: g } = gJ({
cx: t,
cy: n,
radius: i,
@@ -49098,7 +49507,7 @@ var lJ = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 359.999), uJ = (e) => {
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? zR(rJ ||= cJ([
+ if (_ < 0) return o ? WR(lJ ||= mJ([
"M ",
",",
"\n a",
@@ -49108,7 +49517,7 @@ var lJ = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 359.999), uJ = (e) => {
",",
",0,0,1,",
",0\n "
- ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : dJ({
+ ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : _J({
cx: t,
cy: n,
innerRadius: r,
@@ -49116,7 +49525,7 @@ var lJ = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 359.999), uJ = (e) => {
startAngle: c,
endAngle: l
});
- var v = zR(iJ ||= cJ([
+ var v = WR(uJ ||= mJ([
"M ",
",",
"\n A",
@@ -49138,7 +49547,7 @@ var lJ = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 359.999), uJ = (e) => {
"\n "
]), f.x, f.y, a, a, +(u < 0), d.x, d.y, i, i, +(_ > 180), +(u < 0), m.x, m.y, a, a, +(u < 0), h.x, h.y);
if (r > 0) {
- var { circleTangency: y, lineTangency: b, theta: x } = uJ({
+ var { circleTangency: y, lineTangency: b, theta: x } = gJ({
cx: t,
cy: n,
radius: r,
@@ -49147,7 +49556,7 @@ var lJ = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 359.999), uJ = (e) => {
isExternal: !0,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: S, lineTangency: C, theta: w } = uJ({
+ }), { circleTangency: S, lineTangency: C, theta: w } = gJ({
cx: t,
cy: n,
radius: r,
@@ -49158,7 +49567,7 @@ var lJ = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 359.999), uJ = (e) => {
cornerIsExternal: s
}), T = s ? Math.abs(c - l) : Math.abs(c - l) - x - w;
if (T < 0 && a === 0) return `${v}L${t},${n}Z`;
- v += zR(aJ ||= cJ([
+ v += WR(dJ ||= mJ([
"L",
",",
"\n A",
@@ -49179,13 +49588,13 @@ var lJ = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 359.999), uJ = (e) => {
",",
"Z"
]), C.x, C.y, a, a, +(u < 0), S.x, S.y, r, r, +(T > 180), +(u > 0), y.x, y.y, a, a, +(u < 0), b.x, b.y);
- } else v += zR(oJ ||= cJ([
+ } else v += WR(fJ ||= mJ([
"L",
",",
"Z"
]), t, n);
return v;
-}, pJ = {
+}, yJ = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -49195,10 +49604,10 @@ var lJ = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 359.999), uJ = (e) => {
cornerRadius: 0,
forceCornerRadius: !1,
cornerIsExternal: !1
-}, mJ = (e) => {
- var t = cz(e, pJ), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+}, bJ = (e) => {
+ var t = pz(e, yJ), { 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 = Pm("recharts-sector", d), p = a - i, m = GR(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? fJ({
+ var f = Pm("recharts-sector", d), p = a - i, m = XR(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? vJ({
cx: n,
cy: r,
innerRadius: i,
@@ -49208,7 +49617,7 @@ var lJ = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 359.999), uJ = (e) => {
cornerIsExternal: c,
startAngle: l,
endAngle: u
- }) : dJ({
+ }) : _J({
cx: n,
cy: r,
innerRadius: i,
@@ -49216,14 +49625,14 @@ var lJ = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 359.999), uJ = (e) => {
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ P.createElement("path", sJ({}, PL(t), {
+ return /*#__PURE__*/ P.createElement("path", pJ({}, zL(t), {
className: f,
d: h
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function hJ(e, t, n) {
+function xJ(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -49238,9 +49647,9 @@ function hJ(e, t, n) {
x: n.left + n.width,
y: t.y
}];
- if (iz(t)) {
+ if (lz(t)) {
if (e === "centric") {
- var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = Kq(r, i, a, s), l = Kq(r, i, o, s);
+ var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = Qq(r, i, a, s), l = Qq(r, i, o, s);
return [{
x: c.x,
y: c.y
@@ -49249,30 +49658,30 @@ function hJ(e, t, n) {
y: l.y
}];
}
- return $q(t);
+ return aJ(t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function gJ(e) {
- return PR(e) ? NaN : Number(e);
+function SJ(e) {
+ return zR(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
-function _J(e) {
- return e ? (e = gJ(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+function CJ(e) {
+ return e ? (e = SJ(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/range.mjs
-function vJ(e, t, n) {
- n && typeof n != "number" && Vz(e, t, n) && (t = n = void 0), e = _J(e), t === void 0 ? (t = e, e = 0) : t = _J(t), n = n === void 0 ? e < t ? 1 : -1 : _J(n);
+function wJ(e, t, n) {
+ n && typeof n != "number" && Kz(e, t, n) && (t = n = void 0), e = CJ(e), t === void 0 ? (t = e, e = 0) : t = CJ(t), n = n === void 0 ? e < t ? 1 : -1 : CJ(n);
let r = Math.max(Math.ceil((t - e) / (n || 1)), 0), i = Array(r);
for (let t = 0; t < r; t++) i[t] = e, e += n;
return i;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/dataSelectors.js
-var yJ = (e) => e.chartData, bJ = $([yJ], (e) => {
+var TJ = (e) => e.chartData, EJ = $([TJ], (e) => {
var t = e.chartData == null ? 0 : e.chartData.length - 1;
return {
chartData: e.chartData,
@@ -49280,35 +49689,35 @@ var yJ = (e) => e.chartData, bJ = $([yJ], (e) => {
dataEndIndex: t,
dataStartIndex: 0
};
-}), xJ = (e, t, n, r) => r ? bJ(e) : yJ(e), SJ = (e, t, n) => n ? bJ(e) : yJ(e);
+}), DJ = (e, t, n, r) => r ? EJ(e) : TJ(e), OJ = (e, t, n) => n ? EJ(e) : TJ(e);
//#endregion
//#region node_modules/recharts/es6/util/isDomainSpecifiedByUser.js
-function CJ(e) {
+function kJ(e) {
if (Array.isArray(e) && e.length === 2) {
var [t, n] = e;
- if (aH(t) && aH(n)) return !0;
+ if (dH(t) && dH(n)) return !0;
}
return !1;
}
-function wJ(e, t, n) {
+function AJ(e, t, n) {
return n ? e : [Math.min(e[0], t[0]), Math.max(e[1], t[1])];
}
-function TJ(e, t) {
+function jJ(e, t) {
if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {
var [n, r] = e, i, a;
- if (aH(n)) i = n;
+ if (dH(n)) i = n;
else if (typeof n == "function") return;
- if (aH(r)) a = r;
+ if (dH(r)) a = r;
else if (typeof r == "function") return;
var o = [i, a];
- if (CJ(o)) return o;
+ if (kJ(o)) return o;
}
}
-function EJ(e, t, n) {
+function MJ(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
- if (CJ(r)) return wJ(r, t, n);
+ if (kJ(r)) return AJ(r, t, n);
} catch {}
if (Array.isArray(e) && e.length === 2) {
var [i, a] = e, o, s;
@@ -49317,8 +49726,8 @@ function EJ(e, t, n) {
else if (typeof i == "function") try {
t != null && (o = i(t?.[0]));
} catch {}
- else if (typeof i == "string" && DH.test(i)) {
- var c = DH.exec(i);
+ else if (typeof i == "string" && NH.test(i)) {
+ var c = NH.exec(i);
if (c == null || c[1] == null || t == null) o = void 0;
else {
var l = +c[1];
@@ -49330,8 +49739,8 @@ function EJ(e, t, n) {
else if (typeof a == "function") try {
t != null && (s = a(t?.[1]));
} catch {}
- else if (typeof a == "string" && OH.test(a)) {
- var u = OH.exec(a);
+ else if (typeof a == "string" && PH.test(a)) {
+ var u = PH.exec(a);
if (u == null || u[1] == null || t == null) s = void 0;
else {
var d = +u[1];
@@ -49339,13 +49748,13 @@ function EJ(e, t, n) {
}
} else s = t?.[1];
var f = [o, s];
- if (CJ(f)) return t == null ? f : wJ(f, t, n);
+ if (kJ(f)) return t == null ? f : AJ(f, t, n);
}
}
}
//#endregion
//#region node_modules/recharts/es6/util/scale/util/arithmetic.js
-var DJ = /* @__PURE__ */ O((/* @__PURE__ */ T(((e, t) => {
+var NJ = /* @__PURE__ */ O((/* @__PURE__ */ T(((e, t) => {
(function(e) {
var n = 1e9, r = {
precision: 20,
@@ -49721,75 +50130,75 @@ var DJ = /* @__PURE__ */ O((/* @__PURE__ */ T(((e, t) => {
}) : t !== void 0 && t.exports ? t.exports = r : (e ||= typeof self < "u" && self && self.self == self ? self : Function("return this")(), e.Decimal = r);
})(e);
})))());
-function OJ(e) {
- return e === 0 ? 1 : Math.floor(new DJ.default(e).abs().log(10).toNumber()) + 1;
+function PJ(e) {
+ return e === 0 ? 1 : Math.floor(new NJ.default(e).abs().log(10).toNumber()) + 1;
}
-function kJ(e, t, n) {
- for (var r = new DJ.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
+function FJ(e, t, n) {
+ for (var r = new NJ.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
return a;
}
//#endregion
//#region node_modules/recharts/es6/util/scale/getNiceTickValues.js
-var AJ = (e) => {
+var IJ = (e) => {
var [t, n] = e, [r, i] = [t, n];
return t > n && ([r, i] = [n, t]), [r, i];
-}, jJ = (e, t, n) => {
- if (e.lte(0)) return new DJ.default(0);
- var r = OJ(e.toNumber()), i = new DJ.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new DJ.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
- return t ? new DJ.default(s.toNumber()) : new DJ.default(Math.ceil(s.toNumber()));
-}, MJ = (e, t, n) => {
- if (e.lte(0)) return new DJ.default(0);
+}, LJ = (e, t, n) => {
+ if (e.lte(0)) return new NJ.default(0);
+ var r = PJ(e.toNumber()), i = new NJ.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new NJ.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
+ return t ? new NJ.default(s.toNumber()) : new NJ.default(Math.ceil(s.toNumber()));
+}, RJ = (e, t, n) => {
+ if (e.lte(0)) return new NJ.default(0);
var r = [
1,
2,
2.5,
5
- ], i = e.toNumber(), a = Math.floor(new DJ.default(i).abs().log(10).toNumber()), o = new DJ.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
+ ], i = e.toNumber(), a = Math.floor(new NJ.default(i).abs().log(10).toNumber()), o = new NJ.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
if (c === -1 && (o = o.mul(10), c = 0), c += n, c >= r.length) {
var l = Math.floor(c / r.length);
- c %= r.length, o = o.mul(new DJ.default(10).pow(l));
+ c %= r.length, o = o.mul(new NJ.default(10).pow(l));
}
- var u = r[c] ?? 1, d = new DJ.default(u).mul(o);
- return t ? d : new DJ.default(Math.ceil(d.toNumber()));
-}, NJ = (e, t, n) => {
- var r = new DJ.default(1), i = new DJ.default(e);
+ var u = r[c] ?? 1, d = new NJ.default(u).mul(o);
+ return t ? d : new NJ.default(Math.ceil(d.toNumber()));
+}, zJ = (e, t, n) => {
+ var r = new NJ.default(1), i = new NJ.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
- a < 1 ? (r = new DJ.default(10).pow(OJ(e) - 1), i = new DJ.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new DJ.default(Math.floor(e)));
- } else e === 0 ? i = new DJ.default(Math.floor((t - 1) / 2)) : n || (i = new DJ.default(Math.floor(e)));
- for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new DJ.default(c - o).mul(r)).toNumber());
+ a < 1 ? (r = new NJ.default(10).pow(PJ(e) - 1), i = new NJ.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new NJ.default(Math.floor(e)));
+ } else e === 0 ? i = new NJ.default(Math.floor((t - 1) / 2)) : n || (i = new NJ.default(Math.floor(e)));
+ for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new NJ.default(c - o).mul(r)).toNumber());
return s;
-}, PJ = function(e, t, n, r) {
- var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : jJ;
+}, BJ = function(e, t, n, r) {
+ var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : LJ;
if (!Number.isFinite((t - e) / (n - 1))) return {
- step: new DJ.default(0),
- tickMin: new DJ.default(0),
- tickMax: new DJ.default(0)
+ step: new NJ.default(0),
+ tickMin: new NJ.default(0),
+ tickMax: new NJ.default(0)
};
- var o = a(new DJ.default(t).sub(e).div(n - 1), r, i), s;
- e <= 0 && t >= 0 ? s = new DJ.default(0) : (s = new DJ.default(e).add(t).div(2), s = s.sub(new DJ.default(s).mod(o)));
- var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new DJ.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
- return u > n ? PJ(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
+ var o = a(new NJ.default(t).sub(e).div(n - 1), r, i), s;
+ e <= 0 && t >= 0 ? s = new NJ.default(0) : (s = new NJ.default(e).add(t).div(2), s = s.sub(new NJ.default(s).mod(o)));
+ var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new NJ.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
+ return u > n ? BJ(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
step: o,
- tickMin: s.sub(new DJ.default(c).mul(o)),
- tickMax: s.add(new DJ.default(l).mul(o))
+ tickMin: s.sub(new NJ.default(c).mul(o)),
+ tickMax: s.add(new NJ.default(l).mul(o))
});
-}, FJ = function(e) {
- var [t, n] = e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", o = Math.max(r, 2), [s, c] = AJ([t, n]);
+}, VJ = function(e) {
+ var [t, n] = e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", o = Math.max(r, 2), [s, c] = IJ([t, n]);
if (s === -Infinity || c === Infinity) {
var l = c === Infinity ? [s, ...Array(r - 1).fill(Infinity)] : [...Array(r - 1).fill(-Infinity), c];
return t > n ? l.reverse() : l;
}
- if (s === c) return NJ(s, r, i);
- var { step: u, tickMin: d, tickMax: f } = PJ(s, c, o, i, 0, a === "snap125" ? MJ : jJ), p = kJ(d, f.add(new DJ.default(.1).mul(u)), u);
+ if (s === c) return zJ(s, r, i);
+ var { step: u, tickMin: d, tickMax: f } = BJ(s, c, o, i, 0, a === "snap125" ? RJ : LJ), p = FJ(d, f.add(new NJ.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
-}, IJ = function(e, t) {
- var [n, r] = e, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", [o, s] = AJ([n, r]);
+}, HJ = function(e, t) {
+ var [n, r] = e, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", [o, s] = IJ([n, r]);
if (o === -Infinity || s === Infinity) return [n, r];
if (o === s) return [o];
- var c = a === "snap125" ? MJ : jJ, l = Math.max(t, 2), u = c(new DJ.default(s).sub(o).div(l - 1), i, 0), d = [...kJ(new DJ.default(o), new DJ.default(s), u), s];
+ var c = a === "snap125" ? RJ : LJ, l = Math.max(t, 2), u = c(new NJ.default(s).sub(o).div(l - 1), i, 0), d = [...FJ(new NJ.default(o), new NJ.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, LJ = (e) => e.rootProps.maxBarSize, RJ = (e) => e.rootProps.barGap, zJ = (e) => e.rootProps.barCategoryGap, BJ = (e) => e.rootProps.barSize, VJ = (e) => e.rootProps.stackOffset, HJ = (e) => e.rootProps.reverseStackOrder, UJ = (e) => e.options.chartName, WJ = (e) => e.rootProps.syncId, GJ = (e) => e.rootProps.syncMethod, KJ = (e) => e.options.eventEmitter, qJ = (e) => e.rootProps.baseValue, JJ = {
+}, UJ = (e) => e.rootProps.maxBarSize, WJ = (e) => e.rootProps.barGap, GJ = (e) => e.rootProps.barCategoryGap, KJ = (e) => e.rootProps.barSize, qJ = (e) => e.rootProps.stackOffset, JJ = (e) => e.rootProps.reverseStackOrder, YJ = (e) => e.options.chartName, XJ = (e) => e.rootProps.syncId, ZJ = (e) => e.rootProps.syncMethod, QJ = (e) => e.options.eventEmitter, $J = (e) => e.rootProps.baseValue, eY = {
grid: -100,
barBackground: -50,
area: 100,
@@ -49802,7 +50211,7 @@ var AJ = (e) => {
cursorLine: 1100,
activeDot: 1200,
label: 2e3
-}, YJ = {
+}, tY = {
allowDecimals: !1,
allowDuplicatedCategory: !0,
allowDataOverflow: !1,
@@ -49823,8 +50232,8 @@ var AJ = (e) => {
tickLine: !0,
tickSize: 8,
type: "auto",
- zIndex: JJ.axis
-}, XJ = {
+ zIndex: eY.axis
+}, nY = {
allowDataOverflow: !1,
allowDecimals: !1,
allowDuplicatedCategory: !0,
@@ -49843,19 +50252,19 @@ var AJ = (e) => {
tickCount: 5,
tickLine: !0,
type: "auto",
- zIndex: JJ.axis
-}, ZJ = (e, t) => {
+ zIndex: eY.axis
+}, rY = (e, t) => {
if (!(!e || !t)) return e != null && e.reversed ? [t[1], t[0]] : t;
};
//#endregion
//#region node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js
-function QJ(e, t, n) {
+function iY(e, t, n) {
if (n !== "auto") return n;
- if (e != null) return mH(e, t) ? "category" : "number";
+ if (e != null) return bH(e, t) ? "category" : "number";
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js
-function $J(e, t) {
+function aY(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -49865,30 +50274,30 @@ function $J(e, t) {
}
return n;
}
-function eY(e) {
+function oY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $J(Object(n), !0).forEach(function(t) {
- tY(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $J(Object(n)).forEach(function(t) {
+ t % 2 ? aY(Object(n), !0).forEach(function(t) {
+ sY(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : aY(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function tY(e, t, n) {
- return (t = nY(t)) in e ? Object.defineProperty(e, t, {
+function sY(e, t, n) {
+ return (t = cY(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nY(e) {
- var t = rY(e, "string");
+function cY(e) {
+ var t = lY(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rY(e, t) {
+function lY(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -49898,81 +50307,81 @@ function rY(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var iY = {
- allowDataOverflow: YJ.allowDataOverflow,
- allowDecimals: YJ.allowDecimals,
+var uY = {
+ allowDataOverflow: tY.allowDataOverflow,
+ allowDecimals: tY.allowDecimals,
allowDuplicatedCategory: !1,
dataKey: void 0,
domain: void 0,
- id: YJ.angleAxisId,
+ id: tY.angleAxisId,
includeHidden: !1,
name: void 0,
- reversed: YJ.reversed,
- scale: YJ.scale,
- tick: YJ.tick,
+ reversed: tY.reversed,
+ scale: tY.scale,
+ tick: tY.tick,
tickCount: void 0,
ticks: void 0,
- type: YJ.type,
+ type: tY.type,
unit: void 0,
niceTicks: "auto"
-}, aY = {
- allowDataOverflow: XJ.allowDataOverflow,
- allowDecimals: XJ.allowDecimals,
- allowDuplicatedCategory: XJ.allowDuplicatedCategory,
+}, dY = {
+ allowDataOverflow: nY.allowDataOverflow,
+ allowDecimals: nY.allowDecimals,
+ allowDuplicatedCategory: nY.allowDuplicatedCategory,
dataKey: void 0,
domain: void 0,
- id: XJ.radiusAxisId,
- includeHidden: XJ.includeHidden,
+ id: nY.radiusAxisId,
+ includeHidden: nY.includeHidden,
name: void 0,
- reversed: XJ.reversed,
- scale: XJ.scale,
- tick: XJ.tick,
- tickCount: XJ.tickCount,
+ reversed: nY.reversed,
+ scale: nY.scale,
+ tick: nY.tick,
+ tickCount: nY.tickCount,
ticks: void 0,
- type: XJ.type,
+ type: nY.type,
unit: void 0,
niceTicks: "auto"
-}, oY = $([(e, t) => {
+}, fY = $([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, RU], (e, t) => {
+}, WU], (e, t) => {
if (e != null) return e;
- var n = QJ(t, "angleAxis", iY.type) ?? "category";
- return eY(eY({}, iY), {}, { type: n });
-}), sY = $([(e, t) => e.polarAxis.radiusAxis[t], RU], (e, t) => {
+ var n = iY(t, "angleAxis", uY.type) ?? "category";
+ return oY(oY({}, uY), {}, { type: n });
+}), pY = $([(e, t) => e.polarAxis.radiusAxis[t], WU], (e, t) => {
if (e != null) return e;
- var n = QJ(t, "radiusAxis", aY.type) ?? "category";
- return eY(eY({}, aY), {}, { type: n });
-}), cY = (e) => e.polarOptions, lY = $([
- PH,
- FH,
- ZH
-], qq), uY = $([cY, lY], (e, t) => {
- if (e != null) return GR(e.innerRadius, t, 0);
-}), dY = $([cY, lY], (e, t) => {
- if (e != null) return GR(e.outerRadius, t, t * .8);
-}), fY = $([cY], (e) => {
+ var n = iY(t, "radiusAxis", dY.type) ?? "category";
+ return oY(oY({}, dY), {}, { type: n });
+}), mY = (e) => e.polarOptions, hY = $([
+ BH,
+ VH,
+ rU
+], $q), gY = $([mY, hY], (e, t) => {
+ if (e != null) return XR(e.innerRadius, t, 0);
+}), _Y = $([mY, hY], (e, t) => {
+ if (e != null) return XR(e.outerRadius, t, t * .8);
+}), vY = $([mY], (e) => {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), pY = $([oY, fY], ZJ), mY = $([
- lY,
- uY,
- dY
+}), yY = $([fY, vY], rY), bY = $([
+ hY,
+ gY,
+ _Y
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), hY = $([sY, mY], ZJ), gY = $([
- FU,
- cY,
- uY,
- dY,
- PH,
- FH
+}), xY = $([pY, bY], rY), SY = $([
+ VU,
+ mY,
+ gY,
+ _Y,
+ BH,
+ VH
], (e, t, n, r, i, a) => {
if (!(e !== "centric" && e !== "radial" || t == null || n == null || r == null)) {
var { cx: o, cy: s, startAngle: c, endAngle: l } = t;
return {
- cx: GR(o, i, i / 2),
- cy: GR(s, a, a / 2),
+ cx: XR(o, i, i / 2),
+ cy: XR(s, a, a / 2),
innerRadius: n,
outerRadius: r,
startAngle: c,
@@ -49980,22 +50389,22 @@ var iY = {
clockWise: !1
};
}
-}), _Y = (e, t) => t, vY = (e, t, n) => n;
+}), CY = (e, t) => t, wY = (e, t, n) => n;
//#endregion
//#region node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js
-function yY(e) {
+function TY(e) {
return e?.id;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js
-function bY(e, t, n) {
+function EY(e, t, n) {
var { chartData: r = [] } = t, { allowDuplicatedCategory: i, dataKey: a } = n, o = /* @__PURE__ */ new Map();
return e.forEach((e) => {
var t = e.data ?? r;
if (t != null && t.length !== 0) {
- var n = yY(e);
+ var n = TY(e);
t.forEach((t, r) => {
- var s = a == null || i ? r : String(fH(t, a, null)), c = fH(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
+ var s = a == null || i ? r : String(vH(t, a, null)), c = vH(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
Object.assign(l, { [n]: c }), o.set(s, l);
});
}
@@ -50003,18 +50412,18 @@ function bY(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/state/types/StackedGraphicalItem.js
-function xY(e) {
+function DY(e) {
return "stackId" in e && e.stackId != null && e.dataKey != null;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js
-var SY = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
+var OY = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
//#endregion
//#region node_modules/recharts/es6/state/selectors/arrayEqualityCheck.js
-function CY(e, t) {
+function kY(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function wY(e, t) {
+function AY(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -50023,13 +50432,13 @@ function wY(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js
-var TY = (e) => {
- var t = FU(e);
+var jY = (e) => {
+ var t = VU(e);
return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";
-}, EY = (e) => e.tooltip.settings.axisId;
+}, MY = (e) => e.tooltip.settings.axisId;
//#endregion
//#region node_modules/recharts/es6/util/scale/RechartsScale.js
-function DY(e) {
+function NY(e) {
if (e != null) {
var t = e.ticks, n = e.bandwidth, r = e.range(), i = [Math.min(...r), Math.max(...r)];
return {
@@ -50070,13 +50479,13 @@ function DY(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js
-var OY = (e, t) => {
+var PY = (e, t) => {
if (t != null) switch (e) {
case "linear":
- if (!CJ(t)) {
+ if (!kJ(t)) {
for (var n, r, i = 0; i < t.length; i++) {
var a = t[i];
- aH(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
+ dH(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
}
return n !== void 0 && r !== void 0 ? [n, r] : void 0;
}
@@ -50086,14 +50495,14 @@ var OY = (e, t) => {
};
//#endregion
//#region node_modules/d3-array/src/ascending.js
-function kY(e, t) {
+function FY(e, t) {
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
}
//#endregion
//#region node_modules/d3-array/src/bisector.js
-function AY(e) {
+function IY(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = jY(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = LY(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -50119,15 +50528,15 @@ function AY(e) {
right: i
};
}
-function jY(e) {
- return (t, n) => kY(e(t), n);
+function LY(e) {
+ return (t, n) => FY(e(t), n);
}
//#endregion
//#region node_modules/d3-array/src/number.js
-function MY(e) {
+function RY(e) {
return e === null ? NaN : +e;
}
-function* NY(e, t) {
+function* zY(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -50136,52 +50545,52 @@ function* NY(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/bisect.js
-var PY = AY(kY), FY = PY.right;
-PY.left, AY(MY).center;
+var BY = IY(FY), VY = BY.right;
+BY.left, IY(RY).center;
//#endregion
//#region node_modules/internmap/src/index.js
-var IY = class extends Map {
- constructor(e, t = BY) {
+var HY = class extends Map {
+ constructor(e, t = KY) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
}), e != null) for (let [t, n] of e) this.set(t, n);
}
get(e) {
- return super.get(LY(this, e));
+ return super.get(UY(this, e));
}
has(e) {
- return super.has(LY(this, e));
+ return super.has(UY(this, e));
}
set(e, t) {
- return super.set(RY(this, e), t);
+ return super.set(WY(this, e), t);
}
delete(e) {
- return super.delete(zY(this, e));
+ return super.delete(GY(this, e));
}
};
-function LY({ _intern: e, _key: t }, n) {
+function UY({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function RY({ _intern: e, _key: t }, n) {
+function WY({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function zY({ _intern: e, _key: t }, n) {
+function GY({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function BY(e) {
+function KY(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
//#region node_modules/d3-array/src/ticks.js
-var VY = Math.sqrt(50), HY = Math.sqrt(10), UY = Math.sqrt(2);
-function WY(e, t, n) {
+var qY = Math.sqrt(50), JY = Math.sqrt(10), YY = Math.sqrt(2);
+function XY(e, t, n) {
var r, i = -1, a, o, s;
if (t = +t, e = +e, n = +n, e === t && n > 0) return [e];
- if ((r = t < e) && (a = e, e = t, t = a), (s = GY(e, t, n)) === 0 || !isFinite(s)) return [];
+ if ((r = t < e) && (a = e, e = t, t = a), (s = ZY(e, t, n)) === 0 || !isFinite(s)) return [];
if (s > 0) {
let n = Math.round(e / s), r = Math.round(t / s);
for (n * s < e && ++n, r * s > t && --r, o = Array(a = r - n + 1); ++i < a;) o[i] = (n + i) * s;
@@ -50192,17 +50601,17 @@ function WY(e, t, n) {
}
return r && o.reverse(), o;
}
-function GY(e, t, n) {
+function ZY(e, t, n) {
var r = (t - e) / Math.max(0, n), i = Math.floor(Math.log(r) / Math.LN10), a = r / 10 ** i;
- return i >= 0 ? (a >= VY ? 10 : a >= HY ? 5 : a >= UY ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= VY ? 10 : a >= HY ? 5 : a >= UY ? 2 : 1);
+ return i >= 0 ? (a >= qY ? 10 : a >= JY ? 5 : a >= YY ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= qY ? 10 : a >= JY ? 5 : a >= YY ? 2 : 1);
}
-function KY(e, t, n) {
+function QY(e, t, n) {
var r = Math.abs(t - e) / Math.max(0, n), i = 10 ** Math.floor(Math.log(r) / Math.LN10), a = r / i;
- return a >= VY ? i *= 10 : a >= HY ? i *= 5 : a >= UY && (i *= 2), t < e ? -i : i;
+ return a >= qY ? i *= 10 : a >= JY ? i *= 5 : a >= YY && (i *= 2), t < e ? -i : i;
}
//#endregion
//#region node_modules/d3-array/src/max.js
-function qY(e, t) {
+function $Y(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
else {
@@ -50213,7 +50622,7 @@ function qY(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function JY(e, t) {
+function eX(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
else {
@@ -50224,36 +50633,36 @@ function JY(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/quickselect.js
-function YY(e, t, n = 0, r = e.length - 1, i = kY) {
+function tX(e, t, n = 0, r = e.length - 1, i = FY) {
for (; r > n;) {
if (r - n > 600) {
let a = r - n + 1, o = t - n + 1, s = Math.log(a), c = .5 * Math.exp(2 * s / 3), l = .5 * Math.sqrt(s * c * (a - c) / a) * (o - a / 2 < 0 ? -1 : 1);
- YY(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
+ tX(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
}
let a = e[t], o = n, s = r;
- for (XY(e, n, t), i(e[r], a) > 0 && XY(e, n, r); o < s;) {
- for (XY(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
+ for (nX(e, n, t), i(e[r], a) > 0 && nX(e, n, r); o < s;) {
+ for (nX(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
for (; i(e[s], a) > 0;) --s;
}
- i(e[n], a) === 0 ? XY(e, n, s) : (++s, XY(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
+ i(e[n], a) === 0 ? nX(e, n, s) : (++s, nX(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
}
return e;
}
-function XY(e, t, n) {
+function nX(e, t, n) {
let r = e[t];
e[t] = e[n], e[n] = r;
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function ZY(e, t, n) {
- if (e = Float64Array.from(NY(e, n)), r = e.length) {
- if ((t = +t) <= 0 || r < 2) return JY(e);
- if (t >= 1) return qY(e);
- var r, i = (r - 1) * t, a = Math.floor(i), o = qY(YY(e, a).subarray(0, a + 1));
- return o + (JY(e.subarray(a + 1)) - o) * (i - a);
+function rX(e, t, n) {
+ if (e = Float64Array.from(zY(e, n)), r = e.length) {
+ if ((t = +t) <= 0 || r < 2) return eX(e);
+ if (t >= 1) return $Y(e);
+ var r, i = (r - 1) * t, a = Math.floor(i), o = $Y(tX(e, a).subarray(0, a + 1));
+ return o + (eX(e.subarray(a + 1)) - o) * (i - a);
}
}
-function QY(e, t, n = MY) {
+function iX(e, t, n = RY) {
if (r = e.length) {
if ((t = +t) <= 0 || r < 2) return +n(e[0], 0, e);
if (t >= 1) return +n(e[r - 1], r - 1, e);
@@ -50263,14 +50672,14 @@ function QY(e, t, n = MY) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function $Y(e, t, n) {
+function aX(e, t, n) {
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
return a;
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function eX(e, t) {
+function oX(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -50281,7 +50690,7 @@ function eX(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/init.js
-function tX(e, t) {
+function sX(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -50291,7 +50700,7 @@ function tX(e, t) {
}
return this;
}
-function nX(e, t) {
+function cX(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -50303,20 +50712,20 @@ function nX(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/ordinal.js
-var rX = Symbol("implicit");
-function iX() {
- var e = new IY(), t = [], n = [], r = rX;
+var lX = Symbol("implicit");
+function uX() {
+ var e = new HY(), t = [], n = [], r = lX;
function i(i) {
let a = e.get(i);
if (a === void 0) {
- if (r !== rX) return r;
+ if (r !== lX) return r;
e.set(i, a = t.push(i) - 1);
}
return n[a % n.length];
}
return i.domain = function(n) {
if (!arguments.length) return t.slice();
- t = [], e = new IY();
+ t = [], e = new HY();
for (let r of n) e.has(r) || e.set(r, t.push(r) - 1);
return i;
}, i.range = function(e) {
@@ -50324,18 +50733,18 @@ function iX() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return iX(t, n).unknown(r);
- }, tX.apply(i, arguments), i;
+ return uX(t, n).unknown(r);
+ }, sX.apply(i, arguments), i;
}
//#endregion
//#region node_modules/d3-scale/src/band.js
-function aX() {
- var e = iX().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
+function dX() {
+ var e = uX().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
delete e.unknown;
function d() {
var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;
a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));
- var m = $Y(e).map(function(e) {
+ var m = aX(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -50361,32 +50770,32 @@ function aX() {
}, e.align = function(e) {
return arguments.length ? (u = Math.max(0, Math.min(1, e)), d()) : u;
}, e.copy = function() {
- return aX(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
- }, tX.apply(d(), arguments);
+ return dX(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
+ }, sX.apply(d(), arguments);
}
-function oX(e) {
+function fX(e) {
var t = e.copy;
return e.padding = e.paddingOuter, delete e.paddingInner, delete e.paddingOuter, e.copy = function() {
- return oX(t());
+ return fX(t());
}, e;
}
-function sX() {
- return oX(aX.apply(null, arguments).paddingInner(1));
+function pX() {
+ return fX(dX.apply(null, arguments).paddingInner(1));
}
//#endregion
//#region node_modules/d3-color/src/define.js
-function cX(e, t, n) {
+function mX(e, t, n) {
e.prototype = t.prototype = n, n.constructor = e;
}
-function lX(e, t) {
+function hX(e, t) {
var n = Object.create(e.prototype);
for (var r in t) n[r] = t[r];
return n;
}
//#endregion
//#region node_modules/d3-color/src/color.js
-function uX() {}
-var dX = .7, fX = 1 / dX, pX = "\\s*([+-]?\\d+)\\s*", mX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", hX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", gX = /^#([0-9a-f]{3,8})$/, _X = RegExp(`^rgb\\(${pX},${pX},${pX}\\)$`), vX = RegExp(`^rgb\\(${hX},${hX},${hX}\\)$`), yX = RegExp(`^rgba\\(${pX},${pX},${pX},${mX}\\)$`), bX = RegExp(`^rgba\\(${hX},${hX},${hX},${mX}\\)$`), xX = RegExp(`^hsl\\(${mX},${hX},${hX}\\)$`), SX = RegExp(`^hsla\\(${mX},${hX},${hX},${mX}\\)$`), CX = {
+function gX() {}
+var _X = .7, vX = 1 / _X, yX = "\\s*([+-]?\\d+)\\s*", bX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", xX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", SX = /^#([0-9a-f]{3,8})$/, CX = RegExp(`^rgb\\(${yX},${yX},${yX}\\)$`), wX = RegExp(`^rgb\\(${xX},${xX},${xX}\\)$`), TX = RegExp(`^rgba\\(${yX},${yX},${yX},${bX}\\)$`), EX = RegExp(`^rgba\\(${xX},${xX},${xX},${bX}\\)$`), DX = RegExp(`^hsl\\(${bX},${xX},${xX}\\)$`), OX = RegExp(`^hsla\\(${bX},${xX},${xX},${bX}\\)$`), kX = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -50536,170 +50945,170 @@ var dX = .7, fX = 1 / dX, pX = "\\s*([+-]?\\d+)\\s*", mX = "\\s*([+-]?(?:\\d*\\.
yellow: 16776960,
yellowgreen: 10145074
};
-cX(uX, OX, {
+mX(gX, PX, {
copy(e) {
return Object.assign(new this.constructor(), this, e);
},
displayable() {
return this.rgb().displayable();
},
- hex: wX,
- formatHex: wX,
- formatHex8: TX,
- formatHsl: EX,
- formatRgb: DX,
- toString: DX
+ hex: AX,
+ formatHex: AX,
+ formatHex8: jX,
+ formatHsl: MX,
+ formatRgb: NX,
+ toString: NX
});
-function wX() {
+function AX() {
return this.rgb().formatHex();
}
-function TX() {
+function jX() {
return this.rgb().formatHex8();
}
-function EX() {
- return VX(this).formatHsl();
+function MX() {
+ return qX(this).formatHsl();
}
-function DX() {
+function NX() {
return this.rgb().formatRgb();
}
-function OX(e) {
+function PX(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = gX.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? kX(t) : n === 3 ? new NX(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? AX(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? AX(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = _X.exec(e)) ? new NX(t[1], t[2], t[3], 1) : (t = vX.exec(e)) ? new NX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = yX.exec(e)) ? AX(t[1], t[2], t[3], t[4]) : (t = bX.exec(e)) ? AX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = xX.exec(e)) ? BX(t[1], t[2] / 100, t[3] / 100, 1) : (t = SX.exec(e)) ? BX(t[1], t[2] / 100, t[3] / 100, t[4]) : CX.hasOwnProperty(e) ? kX(CX[e]) : e === "transparent" ? new NX(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = SX.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? FX(t) : n === 3 ? new zX(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? IX(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? IX(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = CX.exec(e)) ? new zX(t[1], t[2], t[3], 1) : (t = wX.exec(e)) ? new zX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = TX.exec(e)) ? IX(t[1], t[2], t[3], t[4]) : (t = EX.exec(e)) ? IX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = DX.exec(e)) ? KX(t[1], t[2] / 100, t[3] / 100, 1) : (t = OX.exec(e)) ? KX(t[1], t[2] / 100, t[3] / 100, t[4]) : kX.hasOwnProperty(e) ? FX(kX[e]) : e === "transparent" ? new zX(NaN, NaN, NaN, 0) : null;
}
-function kX(e) {
- return new NX(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
+function FX(e) {
+ return new zX(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
}
-function AX(e, t, n, r) {
- return r <= 0 && (e = t = n = NaN), new NX(e, t, n, r);
+function IX(e, t, n, r) {
+ return r <= 0 && (e = t = n = NaN), new zX(e, t, n, r);
}
-function jX(e) {
- return e instanceof uX || (e = OX(e)), e ? (e = e.rgb(), new NX(e.r, e.g, e.b, e.opacity)) : new NX();
+function LX(e) {
+ return e instanceof gX || (e = PX(e)), e ? (e = e.rgb(), new zX(e.r, e.g, e.b, e.opacity)) : new zX();
}
-function MX(e, t, n, r) {
- return arguments.length === 1 ? jX(e) : new NX(e, t, n, r ?? 1);
+function RX(e, t, n, r) {
+ return arguments.length === 1 ? LX(e) : new zX(e, t, n, r ?? 1);
}
-function NX(e, t, n, r) {
+function zX(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
}
-cX(NX, MX, lX(uX, {
+mX(zX, RX, hX(gX, {
brighter(e) {
- return e = e == null ? fX : fX ** +e, new NX(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? vX : vX ** +e, new zX(this.r * e, this.g * e, this.b * e, this.opacity);
},
darker(e) {
- return e = e == null ? dX : dX ** +e, new NX(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? _X : _X ** +e, new zX(this.r * e, this.g * e, this.b * e, this.opacity);
},
rgb() {
return this;
},
clamp() {
- return new NX(RX(this.r), RX(this.g), RX(this.b), LX(this.opacity));
+ return new zX(WX(this.r), WX(this.g), WX(this.b), UX(this.opacity));
},
displayable() {
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
},
- hex: PX,
- formatHex: PX,
- formatHex8: FX,
- formatRgb: IX,
- toString: IX
+ hex: BX,
+ formatHex: BX,
+ formatHex8: VX,
+ formatRgb: HX,
+ toString: HX
}));
-function PX() {
- return `#${zX(this.r)}${zX(this.g)}${zX(this.b)}`;
+function BX() {
+ return `#${GX(this.r)}${GX(this.g)}${GX(this.b)}`;
}
-function FX() {
- return `#${zX(this.r)}${zX(this.g)}${zX(this.b)}${zX((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
+function VX() {
+ return `#${GX(this.r)}${GX(this.g)}${GX(this.b)}${GX((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
-function IX() {
- let e = LX(this.opacity);
- return `${e === 1 ? "rgb(" : "rgba("}${RX(this.r)}, ${RX(this.g)}, ${RX(this.b)}${e === 1 ? ")" : `, ${e})`}`;
+function HX() {
+ let e = UX(this.opacity);
+ return `${e === 1 ? "rgb(" : "rgba("}${WX(this.r)}, ${WX(this.g)}, ${WX(this.b)}${e === 1 ? ")" : `, ${e})`}`;
}
-function LX(e) {
+function UX(e) {
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
}
-function RX(e) {
+function WX(e) {
return Math.max(0, Math.min(255, Math.round(e) || 0));
}
-function zX(e) {
- return e = RX(e), (e < 16 ? "0" : "") + e.toString(16);
+function GX(e) {
+ return e = WX(e), (e < 16 ? "0" : "") + e.toString(16);
}
-function BX(e, t, n, r) {
- return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new UX(e, t, n, r);
+function KX(e, t, n, r) {
+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new YX(e, t, n, r);
}
-function VX(e) {
- if (e instanceof UX) return new UX(e.h, e.s, e.l, e.opacity);
- if (e instanceof uX || (e = OX(e)), !e) return new UX();
- if (e instanceof UX) return e;
+function qX(e) {
+ if (e instanceof YX) return new YX(e.h, e.s, e.l, e.opacity);
+ if (e instanceof gX || (e = PX(e)), !e) return new YX();
+ if (e instanceof YX) return e;
e = e.rgb();
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
- return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new UX(o, s, c, e.opacity);
+ return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new YX(o, s, c, e.opacity);
}
-function HX(e, t, n, r) {
- return arguments.length === 1 ? VX(e) : new UX(e, t, n, r ?? 1);
+function JX(e, t, n, r) {
+ return arguments.length === 1 ? qX(e) : new YX(e, t, n, r ?? 1);
}
-function UX(e, t, n, r) {
+function YX(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-cX(UX, HX, lX(uX, {
+mX(YX, JX, hX(gX, {
brighter(e) {
- return e = e == null ? fX : fX ** +e, new UX(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? vX : vX ** +e, new YX(this.h, this.s, this.l * e, this.opacity);
},
darker(e) {
- return e = e == null ? dX : dX ** +e, new UX(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? _X : _X ** +e, new YX(this.h, this.s, this.l * e, this.opacity);
},
rgb() {
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
- return new NX(KX(e >= 240 ? e - 240 : e + 120, i, r), KX(e, i, r), KX(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
+ return new zX(QX(e >= 240 ? e - 240 : e + 120, i, r), QX(e, i, r), QX(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
},
clamp() {
- return new UX(WX(this.h), GX(this.s), GX(this.l), LX(this.opacity));
+ return new YX(XX(this.h), ZX(this.s), ZX(this.l), UX(this.opacity));
},
displayable() {
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
},
formatHsl() {
- let e = LX(this.opacity);
- return `${e === 1 ? "hsl(" : "hsla("}${WX(this.h)}, ${GX(this.s) * 100}%, ${GX(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
+ let e = UX(this.opacity);
+ return `${e === 1 ? "hsl(" : "hsla("}${XX(this.h)}, ${ZX(this.s) * 100}%, ${ZX(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
}
}));
-function WX(e) {
+function XX(e) {
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
}
-function GX(e) {
+function ZX(e) {
return Math.max(0, Math.min(1, e || 0));
}
-function KX(e, t, n) {
+function QX(e, t, n) {
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
}
//#endregion
//#region node_modules/d3-interpolate/src/constant.js
-var qX = (e) => () => e;
+var $X = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function JX(e, t) {
+function eZ(e, t) {
return function(n) {
return e + n * t;
};
}
-function YX(e, t, n) {
+function tZ(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function XX(e) {
- return (e = +e) == 1 ? ZX : function(t, n) {
- return n - t ? YX(t, n, e) : qX(isNaN(t) ? n : t);
+function nZ(e) {
+ return (e = +e) == 1 ? rZ : function(t, n) {
+ return n - t ? tZ(t, n, e) : $X(isNaN(t) ? n : t);
};
}
-function ZX(e, t) {
+function rZ(e, t) {
var n = t - e;
- return n ? JX(e, n) : qX(isNaN(e) ? t : e);
+ return n ? eZ(e, n) : $X(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
-var QX = (function e(t) {
- var n = XX(t);
+var iZ = (function e(t) {
+ var n = nZ(t);
function r(e, t) {
- var r = n((e = MX(e)).r, (t = MX(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = ZX(e.opacity, t.opacity);
+ var r = n((e = RX(e)).r, (t = RX(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = rZ(e.opacity, t.opacity);
return function(t) {
return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
};
@@ -50708,7 +51117,7 @@ var QX = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function $X(e, t) {
+function aZ(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -50716,14 +51125,14 @@ function $X(e, t) {
return r;
};
}
-function eZ(e) {
+function oZ(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function tZ(e, t) {
+function sZ(e, t) {
var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
- for (o = 0; o < r; ++o) i[o] = uZ(e[o], t[o]);
+ for (o = 0; o < r; ++o) i[o] = gZ(e[o], t[o]);
for (; o < n; ++o) a[o] = t[o];
return function(e) {
for (o = 0; o < r; ++o) a[o] = i[o](e);
@@ -50732,7 +51141,7 @@ function tZ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function nZ(e, t) {
+function cZ(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -50740,16 +51149,16 @@ function nZ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/number.js
-function rZ(e, t) {
+function lZ(e, t) {
return e = +e, t = +t, function(n) {
return e * (1 - n) + t * n;
};
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function iZ(e, t) {
+function uZ(e, t) {
var n = {}, r = {}, i;
- for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = uZ(e[i], t[i]) : r[i] = t[i];
+ for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = gZ(e[i], t[i]) : r[i] = t[i];
return function(e) {
for (i in n) r[i] = n[i](e);
return r;
@@ -50757,45 +51166,45 @@ function iZ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/string.js
-var aZ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, oZ = new RegExp(aZ.source, "g");
-function sZ(e) {
+var dZ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, fZ = new RegExp(dZ.source, "g");
+function pZ(e) {
return function() {
return e;
};
}
-function cZ(e) {
+function mZ(e) {
return function(t) {
return e(t) + "";
};
}
-function lZ(e, t) {
- var n = aZ.lastIndex = oZ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
- for (e += "", t += ""; (r = aZ.exec(e)) && (i = oZ.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
+function hZ(e, t) {
+ var n = dZ.lastIndex = fZ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
+ for (e += "", t += ""; (r = dZ.exec(e)) && (i = fZ.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
i: o,
- x: rZ(r, i)
- })), n = oZ.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? cZ(c[0].x) : sZ(t) : (t = c.length, function(e) {
+ x: lZ(r, i)
+ })), n = fZ.lastIndex;
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? mZ(c[0].x) : pZ(t) : (t = c.length, function(e) {
for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
return s.join("");
});
}
//#endregion
//#region node_modules/d3-interpolate/src/value.js
-function uZ(e, t) {
+function gZ(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? qX(t) : (n === "number" ? rZ : n === "string" ? (r = OX(t)) ? (t = r, QX) : lZ : t instanceof OX ? QX : t instanceof Date ? nZ : eZ(t) ? $X : Array.isArray(t) ? tZ : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? iZ : rZ)(e, t);
+ return t == null || n === "boolean" ? $X(t) : (n === "number" ? lZ : n === "string" ? (r = PX(t)) ? (t = r, iZ) : hZ : t instanceof PX ? iZ : t instanceof Date ? cZ : oZ(t) ? aZ : Array.isArray(t) ? sZ : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? uZ : lZ)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
-function dZ(e, t) {
+function _Z(e, t) {
return e = +e, t = +t, function(n) {
return Math.round(e * (1 - n) + t * n);
};
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function fZ(e, t) {
- t === void 0 && (t = e, e = uZ);
+function vZ(e, t) {
+ t === void 0 && (t = e, e = gZ);
for (var n = 0, r = t.length - 1, i = t[0], a = Array(r < 0 ? 0 : r); n < r;) a[n] = e(i, i = t[++n]);
return function(e) {
var t = Math.max(0, Math.min(r - 1, Math.floor(e *= r)));
@@ -50804,69 +51213,69 @@ function fZ(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function pZ(e) {
+function yZ(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-scale/src/number.js
-function mZ(e) {
+function bZ(e) {
return +e;
}
//#endregion
//#region node_modules/d3-scale/src/continuous.js
-var hZ = [0, 1];
-function gZ(e) {
+var xZ = [0, 1];
+function SZ(e) {
return e;
}
-function _Z(e, t) {
+function CZ(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : pZ(isNaN(t) ? NaN : .5);
+ } : yZ(isNaN(t) ? NaN : .5);
}
-function vZ(e, t) {
+function Pfe(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function yZ(e, t, n) {
+function Ffe(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
- return i < r ? (r = _Z(i, r), a = n(o, a)) : (r = _Z(r, i), a = n(a, o)), function(e) {
+ return i < r ? (r = CZ(i, r), a = n(o, a)) : (r = CZ(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function bZ(e, t, n) {
+function Ife(e, t, n) {
var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;
- for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = _Z(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
+ for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = CZ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
- var n = FY(e, t, 1, r) - 1;
+ var n = VY(e, t, 1, r) - 1;
return a[n](i[n](t));
};
}
-function xZ(e, t) {
+function wZ(e, t) {
return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
}
-function SZ() {
- var e = hZ, t = hZ, n = uZ, r, i, a, o = gZ, s, c, l;
+function TZ() {
+ var e = xZ, t = xZ, n = gZ, r, i, a, o = SZ, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== gZ && (o = vZ(e[0], e[n - 1])), s = n > 2 ? bZ : yZ, c = l = null, d;
+ return o !== SZ && (o = Pfe(e[0], e[n - 1])), s = n > 2 ? Ife : Ffe, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
}
return d.invert = function(n) {
- return o(i((l ||= s(t, e.map(r), rZ))(n)));
+ return o(i((l ||= s(t, e.map(r), lZ))(n)));
}, d.domain = function(t) {
- return arguments.length ? (e = Array.from(t, mZ), u()) : e.slice();
+ return arguments.length ? (e = Array.from(t, bZ), u()) : e.slice();
}, d.range = function(e) {
return arguments.length ? (t = Array.from(e), u()) : t.slice();
}, d.rangeRound = function(e) {
- return t = Array.from(e), n = dZ, u();
+ return t = Array.from(e), n = _Z, u();
}, d.clamp = function(e) {
- return arguments.length ? (o = e ? !0 : gZ, u()) : o !== gZ;
+ return arguments.length ? (o = e ? !0 : SZ, u()) : o !== SZ;
}, d.interpolate = function(e) {
return arguments.length ? (n = e, u()) : n;
}, d.unknown = function(e) {
@@ -50875,27 +51284,27 @@ function SZ() {
return r = e, i = t, u();
};
}
-function CZ() {
- return SZ()(gZ, gZ);
+function EZ() {
+ return TZ()(SZ, SZ);
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function wZ(e) {
+function Lfe(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
-function TZ(e, t) {
+function DZ(e, t) {
if (!isFinite(e) || e === 0) return null;
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
}
//#endregion
//#region node_modules/d3-format/src/exponent.js
-function EZ(e) {
- return e = TZ(Math.abs(e)), e ? e[1] : NaN;
+function OZ(e) {
+ return e = DZ(Math.abs(e)), e ? e[1] : NaN;
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function DZ(e, t) {
+function Rfe(e, t) {
return function(n, r) {
for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
return a.reverse().join(t);
@@ -50903,7 +51312,7 @@ function DZ(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function OZ(e) {
+function zfe(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -50912,9 +51321,9 @@ function OZ(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var Efe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+var Bfe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
function kZ(e) {
- if (!(t = Efe.exec(e))) throw Error("invalid format: " + e);
+ if (!(t = Bfe.exec(e))) throw Error("invalid format: " + e);
var t;
return new AZ({
fill: t[1],
@@ -50938,7 +51347,7 @@ AZ.prototype.toString = function() {
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function Dfe(e) {
+function Vfe(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -50955,16 +51364,16 @@ function Dfe(e) {
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
var jZ;
-function Ofe(e, t) {
- var n = TZ(e, t);
+function Hfe(e, t) {
+ var n = DZ(e, t);
if (!n) return jZ = void 0, e.toPrecision(t);
var r = n[0], i = n[1], a = i - (jZ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
- return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + TZ(e, Math.max(0, t + a - 1))[0];
+ return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + DZ(e, Math.max(0, t + a - 1))[0];
}
//#endregion
//#region node_modules/d3-format/src/formatRounded.js
function MZ(e, t) {
- var n = TZ(e, t);
+ var n = DZ(e, t);
if (!n) return e + "";
var r = n[0], i = n[1];
return i < 0 ? "0." + Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + Array(i - r.length + 2).join("0");
@@ -50975,14 +51384,14 @@ var NZ = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: wZ,
+ d: Lfe,
e: (e, t) => e.toExponential(t),
f: (e, t) => e.toFixed(t),
g: (e, t) => e.toPrecision(t),
o: (e) => Math.round(e).toString(8),
p: (e, t) => MZ(e * 100, t),
r: MZ,
- s: Ofe,
+ s: Hfe,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
@@ -51012,8 +51421,8 @@ var FZ = Array.prototype.map, IZ = [
"Z",
"Y"
];
-function kfe(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? PZ : DZ(FZ.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? PZ : OZ(FZ.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
+function Ufe(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? PZ : Rfe(FZ.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? PZ : zfe(FZ.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
function l(e, l) {
e = kZ(e);
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;
@@ -51026,7 +51435,7 @@ function kfe(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = Dfe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && jZ !== void 0 ? IZ[8 + jZ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = Vfe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && jZ !== void 0 ? IZ[8 + jZ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
break;
@@ -51054,7 +51463,7 @@ function kfe(e) {
}, w;
}
function u(e, t) {
- var n = Math.max(-8, Math.min(8, Math.floor(EZ(t) / 3))) * 3, r = 10 ** -n, i = l((e = kZ(e), e.type = "f", e), { suffix: IZ[8 + n / 3] });
+ var n = Math.max(-8, Math.min(8, Math.floor(OZ(t) / 3))) * 3, r = 10 ** -n, i = l((e = kZ(e), e.type = "f", e), { suffix: IZ[8 + n / 3] });
return function(e) {
return i(r * e);
};
@@ -51067,46 +51476,46 @@ function kfe(e) {
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
var LZ, RZ, zZ;
-Afe({
+Wfe({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function Afe(e) {
- return LZ = kfe(e), RZ = LZ.format, zZ = LZ.formatPrefix, LZ;
+function Wfe(e) {
+ return LZ = Ufe(e), RZ = LZ.format, zZ = LZ.formatPrefix, LZ;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function jfe(e) {
- return Math.max(0, -EZ(Math.abs(e)));
+function Gfe(e) {
+ return Math.max(0, -OZ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function Mfe(e, t) {
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(EZ(t) / 3))) * 3 - EZ(Math.abs(e)));
+function Kfe(e, t) {
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(OZ(t) / 3))) * 3 - OZ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function Nfe(e, t) {
- return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, EZ(t) - EZ(e)) + 1;
+function qfe(e, t) {
+ return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, OZ(t) - OZ(e)) + 1;
}
//#endregion
//#region node_modules/d3-scale/src/tickFormat.js
function BZ(e, t, n, r) {
- var i = KY(e, t, n), a;
+ var i = QY(e, t, n), a;
switch (r = kZ(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = Mfe(i, o)) && (r.precision = a), zZ(r, o);
+ return r.precision == null && !isNaN(a = Kfe(i, o)) && (r.precision = a), zZ(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = Nfe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = qfe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = jfe(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = Gfe(i)) && (r.precision = a - (r.type === "%") * 2);
}
return RZ(r);
}
@@ -51116,7 +51525,7 @@ function VZ(e) {
var t = e.domain;
return e.ticks = function(e) {
var n = t();
- return WY(n[0], n[n.length - 1], e ?? 10);
+ return XY(n[0], n[n.length - 1], e ?? 10);
}, e.tickFormat = function(e, n) {
var r = t();
return BZ(r[0], r[r.length - 1], e ?? 10, n);
@@ -51124,7 +51533,7 @@ function VZ(e) {
n ??= 10;
var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, l, u = 10;
for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); u-- > 0;) {
- if (l = GY(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
+ if (l = ZY(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
if (l > 0) o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
else if (l < 0) o = Math.ceil(o * l) / l, s = Math.floor(s * l) / l;
else break;
@@ -51134,10 +51543,10 @@ function VZ(e) {
}, e;
}
function HZ() {
- var e = CZ();
+ var e = EZ();
return e.copy = function() {
- return xZ(e, HZ());
- }, tX.apply(e, arguments), VZ(e);
+ return wZ(e, HZ());
+ }, sX.apply(e, arguments), VZ(e);
}
//#endregion
//#region node_modules/d3-scale/src/identity.js
@@ -51147,12 +51556,12 @@ function UZ(e) {
return e == null || isNaN(e = +e) ? t : e;
}
return n.invert = n, n.domain = n.range = function(t) {
- return arguments.length ? (e = Array.from(t, mZ), n) : e.slice();
+ return arguments.length ? (e = Array.from(t, bZ), n) : e.slice();
}, n.unknown = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.copy = function() {
return UZ(e).unknown(t);
- }, e = arguments.length ? Array.from(e, mZ) : [0, 1], VZ(n);
+ }, e = arguments.length ? Array.from(e, bZ) : [0, 1], VZ(n);
}
//#endregion
//#region node_modules/d3-scale/src/nice.js
@@ -51169,19 +51578,19 @@ function GZ(e) {
function KZ(e) {
return Math.exp(e);
}
-function Pfe(e) {
+function Jfe(e) {
return -Math.log(-e);
}
-function Ffe(e) {
+function Yfe(e) {
return -Math.exp(-e);
}
-function Ife(e) {
+function Xfe(e) {
return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
-function Lfe(e) {
- return e === 10 ? Ife : e === Math.E ? Math.exp : (t) => e ** +t;
+function Zfe(e) {
+ return e === 10 ? Xfe : e === Math.E ? Math.exp : (t) => e ** +t;
}
-function Rfe(e) {
+function Qfe(e) {
return e === Math.E ? Math.log : e === 10 && Math.log10 || e === 2 && Math.log2 || (e = Math.log(e), (t) => Math.log(t) / e);
}
function qZ(e) {
@@ -51190,7 +51599,7 @@ function qZ(e) {
function JZ(e) {
let t = e(GZ, KZ), n = t.domain, r = 10, i, a;
function o() {
- return i = Rfe(r), a = Lfe(r), n()[0] < 0 ? (i = qZ(i), a = qZ(a), e(Pfe, Ffe)) : e(GZ, KZ), t;
+ return i = Qfe(r), a = Zfe(r), n()[0] < 0 ? (i = qZ(i), a = qZ(a), e(Jfe, Yfe)) : e(GZ, KZ), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -51210,8 +51619,8 @@ function JZ(e) {
if (f > s) break;
m.push(f);
}
- m.length * 2 < p && (m = WY(o, s, p));
- } else m = WY(l, u, Math.min(u - l, p)).map(a);
+ m.length * 2 < p && (m = XY(o, s, p));
+ } else m = XY(l, u, Math.min(u - l, p)).map(a);
return c ? m.reverse() : m;
}, t.tickFormat = (e, n) => {
if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = kZ(n)).precision == null && (n.trim = !0), n = RZ(n)), e === Infinity) return n;
@@ -51226,8 +51635,8 @@ function JZ(e) {
})), t;
}
function YZ() {
- let e = JZ(SZ()).domain([1, 10]);
- return e.copy = () => xZ(e, YZ()).base(e.base()), tX.apply(e, arguments), e;
+ let e = JZ(TZ()).domain([1, 10]);
+ return e.copy = () => wZ(e, YZ()).base(e.base()), sX.apply(e, arguments), e;
}
//#endregion
//#region node_modules/d3-scale/src/symlog.js
@@ -51248,10 +51657,10 @@ function QZ(e) {
}, VZ(n);
}
function $Z() {
- var e = QZ(SZ());
+ var e = QZ(TZ());
return e.copy = function() {
- return xZ(e, $Z()).constant(e.constant());
- }, tX.apply(e, arguments);
+ return wZ(e, $Z()).constant(e.constant());
+ }, sX.apply(e, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/pow.js
@@ -51260,28 +51669,28 @@ function eQ(e) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function zfe(e) {
+function $fe(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function Bfe(e) {
+function epe(e) {
return e < 0 ? -e * e : e * e;
}
function tQ(e) {
- var t = e(gZ, gZ), n = 1;
+ var t = e(SZ, SZ), n = 1;
function r() {
- return n === 1 ? e(gZ, gZ) : n === .5 ? e(zfe, Bfe) : e(eQ(n), eQ(1 / n));
+ return n === 1 ? e(SZ, SZ) : n === .5 ? e($fe, epe) : e(eQ(n), eQ(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
}, VZ(t);
}
function nQ() {
- var e = tQ(SZ());
+ var e = tQ(TZ());
return e.copy = function() {
- return xZ(e, nQ()).exponent(e.exponent());
- }, tX.apply(e, arguments), e;
+ return wZ(e, nQ()).exponent(e.exponent());
+ }, sX.apply(e, arguments), e;
}
-function Vfe() {
+function tpe() {
return nQ.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -51289,13 +51698,13 @@ function Vfe() {
function rQ(e) {
return Math.sign(e) * e * e;
}
-function Hfe(e) {
+function npe(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
function iQ() {
- var e = CZ(), t = [0, 1], n = !1, r;
+ var e = EZ(), t = [0, 1], n = !1, r;
function i(t) {
- var i = Hfe(e(t));
+ var i = npe(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
@@ -51303,7 +51712,7 @@ function iQ() {
}, i.domain = function(t) {
return arguments.length ? (e.domain(t), i) : e.domain();
}, i.range = function(n) {
- return arguments.length ? (e.range((t = Array.from(n, mZ)).map(rQ)), i) : t.slice();
+ return arguments.length ? (e.range((t = Array.from(n, bZ)).map(rQ)), i) : t.slice();
}, i.rangeRound = function(e) {
return i.range(e).round(!0);
}, i.round = function(e) {
@@ -51314,7 +51723,7 @@ function iQ() {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
return iQ(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
- }, tX.apply(i, arguments), VZ(i);
+ }, sX.apply(i, arguments), VZ(i);
}
//#endregion
//#region node_modules/d3-scale/src/quantile.js
@@ -51322,11 +51731,11 @@ function aQ() {
var e = [], t = [], n = [], r;
function i() {
var r = 0, i = Math.max(1, t.length);
- for (n = Array(i - 1); ++r < i;) n[r - 1] = QY(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = iX(e, r / i);
return a;
}
function a(e) {
- return e == null || isNaN(e = +e) ? r : t[FY(n, e)];
+ return e == null || isNaN(e = +e) ? r : t[VY(n, e)];
}
return a.invertExtent = function(r) {
var i = t.indexOf(r);
@@ -51335,7 +51744,7 @@ function aQ() {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(kY), i();
+ return e.sort(FY), i();
}, a.range = function(e) {
return arguments.length ? (t = Array.from(e), i()) : t.slice();
}, a.unknown = function(e) {
@@ -51344,14 +51753,14 @@ function aQ() {
return n.slice();
}, a.copy = function() {
return aQ().domain(e).range(t).unknown(r);
- }, tX.apply(a, arguments);
+ }, sX.apply(a, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/quantize.js
function oQ() {
var e = 0, t = 1, n = 1, r = [.5], i = [0, 1], a;
function o(e) {
- return e != null && e <= e ? i[FY(r, e, 0, n)] : a;
+ return e != null && e <= e ? i[VY(r, e, 0, n)] : a;
}
function s() {
var i = -1;
@@ -51371,14 +51780,14 @@ function oQ() {
return r.slice();
}, o.copy = function() {
return oQ().domain([e, t]).range(i).unknown(a);
- }, tX.apply(VZ(o), arguments);
+ }, sX.apply(VZ(o), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/threshold.js
function sQ() {
var e = [.5], t = [0, 1], n, r = 1;
function i(i) {
- return i != null && i <= i ? t[FY(e, i, 0, r)] : n;
+ return i != null && i <= i ? t[VY(e, i, 0, r)] : n;
}
return i.domain = function(n) {
return arguments.length ? (e = Array.from(n), r = Math.min(e.length, t.length - 1), i) : e.slice();
@@ -51391,7 +51800,7 @@ function sQ() {
return arguments.length ? (n = e, i) : n;
}, i.copy = function() {
return sQ().domain(e).range(t).unknown(n);
- }, tX.apply(i, arguments);
+ }, sX.apply(i, arguments);
}
//#endregion
//#region node_modules/d3-time/src/interval.js
@@ -51491,8 +51900,8 @@ function DQ(e) {
e.setDate(e.getDate() + t * 7);
}, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * pQ) / gQ);
}
-var OQ = DQ(0), kQ = DQ(1), Ufe = DQ(2), Wfe = DQ(3), AQ = DQ(4), Gfe = DQ(5), Kfe = DQ(6);
-OQ.range, kQ.range, Ufe.range, Wfe.range, AQ.range, Gfe.range, Kfe.range;
+var OQ = DQ(0), kQ = DQ(1), rpe = DQ(2), ipe = DQ(3), AQ = DQ(4), ape = DQ(5), ope = DQ(6);
+OQ.range, kQ.range, rpe.range, ipe.range, AQ.range, ape.range, ope.range;
function jQ(e) {
return uQ((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
@@ -51500,8 +51909,8 @@ function jQ(e) {
e.setUTCDate(e.getUTCDate() + t * 7);
}, (e, t) => (t - e) / gQ);
}
-var MQ = jQ(0), NQ = jQ(1), qfe = jQ(2), Jfe = jQ(3), PQ = jQ(4), Yfe = jQ(5), Xfe = jQ(6);
-MQ.range, NQ.range, qfe.range, Jfe.range, PQ.range, Yfe.range, Xfe.range;
+var MQ = jQ(0), NQ = jQ(1), spe = jQ(2), cpe = jQ(3), PQ = jQ(4), lpe = jQ(5), upe = jQ(6);
+MQ.range, NQ.range, spe.range, cpe.range, PQ.range, lpe.range, upe.range;
//#endregion
//#region node_modules/d3-time/src/month.js
var FQ = uQ((e) => {
@@ -51640,15 +52049,15 @@ function zQ(e, t, n, r, i, a) {
return r ? a.reverse() : a;
}
function c(t, n, r) {
- let i = Math.abs(n - t) / r, a = AY(([, , e]) => e).right(o, i);
- if (a === o.length) return e.every(KY(t / vQ, n / vQ, r));
- if (a === 0) return dQ.every(Math.max(KY(t, n, r), 1));
+ let i = Math.abs(n - t) / r, a = IY(([, , e]) => e).right(o, i);
+ if (a === o.length) return e.every(QY(t / vQ, n / vQ, r));
+ if (a === 0) return dQ.every(Math.max(QY(t, n, r), 1));
let [s, c] = o[i / o[a - 1][2] < o[a][2] / i ? a - 1 : a];
return s.every(c);
}
return [s, c];
}
-var [Zfe, Qfe] = zQ(RQ, IQ, MQ, EQ, CQ, xQ), [$fe, epe] = zQ(LQ, FQ, OQ, wQ, SQ, bQ);
+var [dpe, fpe] = zQ(RQ, IQ, MQ, EQ, CQ, xQ), [ppe, mpe] = zQ(LQ, FQ, OQ, wQ, SQ, bQ);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
function BQ(e) {
@@ -51676,7 +52085,7 @@ function HQ(e, t, n) {
L: 0
};
}
-function tpe(e) {
+function hpe(e) {
var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = KQ(i), u = qQ(i), d = KQ(a), f = qQ(a), p = KQ(o), m = qQ(o), h = KQ(s), g = qQ(s), _ = KQ(c), v = qQ(c), y = {
a: N,
A: P,
@@ -51685,30 +52094,30 @@ function tpe(e) {
c: null,
d: QQ,
e: QQ,
- f: wpe,
- g: Ppe,
- G: Ipe,
- H: xpe,
- I: Spe,
- j: Cpe,
+ f: Rpe,
+ g: Jpe,
+ G: Xpe,
+ H: Fpe,
+ I: Ipe,
+ j: Lpe,
L: $Q,
- m: Tpe,
- M: Epe,
+ m: zpe,
+ M: Bpe,
p: ee,
q: te,
Q: a$,
s: o$,
- S: Dpe,
- u: Ope,
- U: kpe,
- V: Ape,
- w: jpe,
- W: Mpe,
+ S: Vpe,
+ u: Hpe,
+ U: Upe,
+ V: Wpe,
+ w: Gpe,
+ W: Kpe,
x: null,
X: null,
- y: Npe,
- Y: Fpe,
- Z: Lpe,
+ y: qpe,
+ Y: Ype,
+ Z: Zpe,
"%": i$
}, b = {
a: ne,
@@ -51718,30 +52127,30 @@ function tpe(e) {
c: null,
d: t$,
e: t$,
- f: Vpe,
- g: Zpe,
- G: $pe,
- H: Rpe,
- I: zpe,
- j: Bpe,
+ f: tme,
+ g: dme,
+ G: pme,
+ H: Qpe,
+ I: $pe,
+ j: eme,
L: n$,
- m: Hpe,
- M: Upe,
+ m: nme,
+ M: rme,
p: oe,
q: se,
Q: a$,
s: o$,
- S: Wpe,
- u: Gpe,
- U: Kpe,
- V: qpe,
- w: Jpe,
- W: Ype,
+ S: ime,
+ u: ame,
+ U: ome,
+ V: sme,
+ w: cme,
+ W: lme,
x: null,
X: null,
- y: Xpe,
- Y: Qpe,
- Z: eme,
+ y: ume,
+ Y: fme,
+ Z: mme,
"%": i$
}, x = {
a: E,
@@ -51751,31 +52160,31 @@ function tpe(e) {
c: A,
d: XQ,
e: XQ,
- f: _pe,
+ f: jpe,
g: YQ,
G: JQ,
H: ZQ,
I: ZQ,
- j: ppe,
- L: gpe,
- m: fpe,
- M: mpe,
+ j: Dpe,
+ L: Ape,
+ m: Epe,
+ M: Ope,
p: T,
- q: dpe,
- Q: ype,
- s: bpe,
- S: hpe,
- u: ope,
- U: spe,
- V: cpe,
- w: ape,
- W: lpe,
+ q: Tpe,
+ Q: Npe,
+ s: Ppe,
+ S: kpe,
+ u: bpe,
+ U: xpe,
+ V: Spe,
+ w: ype,
+ W: Cpe,
x: j,
X: M,
y: YQ,
Y: JQ,
- Z: upe,
- "%": vpe
+ Z: wpe,
+ "%": Mpe
};
y.x = S(n, y), y.X = S(r, y), y.c = S(t, y), b.x = S(n, b), b.X = S(r, b), b.c = S(t, b);
function S(e, t) {
@@ -51903,37 +52312,37 @@ var UQ = {
"-": "",
_: " ",
0: "0"
-}, WQ = /^\s*\d+/, npe = /^%/, rpe = /[\\^$*+?|[\]().{}]/g;
+}, WQ = /^\s*\d+/, gpe = /^%/, _pe = /[\\^$*+?|[\]().{}]/g;
function GQ(e, t, n) {
var r = e < 0 ? "-" : "", i = (r ? -e : e) + "", a = i.length;
return r + (a < n ? Array(n - a + 1).join(t) + i : i);
}
-function ipe(e) {
- return e.replace(rpe, "\\$&");
+function vpe(e) {
+ return e.replace(_pe, "\\$&");
}
function KQ(e) {
- return RegExp("^(?:" + e.map(ipe).join("|") + ")", "i");
+ return RegExp("^(?:" + e.map(vpe).join("|") + ")", "i");
}
function qQ(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function ape(e, t, n) {
+function ype(e, t, n) {
var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function ope(e, t, n) {
+function bpe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function spe(e, t, n) {
+function xpe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function cpe(e, t, n) {
+function Spe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function lpe(e, t, n) {
+function Cpe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
@@ -51945,15 +52354,15 @@ function YQ(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function upe(e, t, n) {
+function wpe(e, t, n) {
var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6));
return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
}
-function dpe(e, t, n) {
+function Tpe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function fpe(e, t, n) {
+function Epe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
@@ -51961,7 +52370,7 @@ function XQ(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function ppe(e, t, n) {
+function Dpe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
@@ -51969,159 +52378,159 @@ function ZQ(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function mpe(e, t, n) {
+function Ope(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function hpe(e, t, n) {
+function kpe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function gpe(e, t, n) {
+function Ape(e, t, n) {
var r = WQ.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function _pe(e, t, n) {
+function jpe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function vpe(e, t, n) {
- var r = npe.exec(t.slice(n, n + 1));
+function Mpe(e, t, n) {
+ var r = gpe.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function ype(e, t, n) {
+function Npe(e, t, n) {
var r = WQ.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function bpe(e, t, n) {
+function Ppe(e, t, n) {
var r = WQ.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
function QQ(e, t) {
return GQ(e.getDate(), t, 2);
}
-function xpe(e, t) {
+function Fpe(e, t) {
return GQ(e.getHours(), t, 2);
}
-function Spe(e, t) {
+function Ipe(e, t) {
return GQ(e.getHours() % 12 || 12, t, 2);
}
-function Cpe(e, t) {
+function Lpe(e, t) {
return GQ(1 + wQ.count(LQ(e), e), t, 3);
}
function $Q(e, t) {
return GQ(e.getMilliseconds(), t, 3);
}
-function wpe(e, t) {
+function Rpe(e, t) {
return $Q(e, t) + "000";
}
-function Tpe(e, t) {
+function zpe(e, t) {
return GQ(e.getMonth() + 1, t, 2);
}
-function Epe(e, t) {
+function Bpe(e, t) {
return GQ(e.getMinutes(), t, 2);
}
-function Dpe(e, t) {
+function Vpe(e, t) {
return GQ(e.getSeconds(), t, 2);
}
-function Ope(e) {
+function Hpe(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function kpe(e, t) {
+function Upe(e, t) {
return GQ(OQ.count(LQ(e) - 1, e), t, 2);
}
function e$(e) {
var t = e.getDay();
return t >= 4 || t === 0 ? AQ(e) : AQ.ceil(e);
}
-function Ape(e, t) {
+function Wpe(e, t) {
return e = e$(e), GQ(AQ.count(LQ(e), e) + (LQ(e).getDay() === 4), t, 2);
}
-function jpe(e) {
+function Gpe(e) {
return e.getDay();
}
-function Mpe(e, t) {
+function Kpe(e, t) {
return GQ(kQ.count(LQ(e) - 1, e), t, 2);
}
-function Npe(e, t) {
+function qpe(e, t) {
return GQ(e.getFullYear() % 100, t, 2);
}
-function Ppe(e, t) {
+function Jpe(e, t) {
return e = e$(e), GQ(e.getFullYear() % 100, t, 2);
}
-function Fpe(e, t) {
+function Ype(e, t) {
return GQ(e.getFullYear() % 1e4, t, 4);
}
-function Ipe(e, t) {
+function Xpe(e, t) {
var n = e.getDay();
return e = n >= 4 || n === 0 ? AQ(e) : AQ.ceil(e), GQ(e.getFullYear() % 1e4, t, 4);
}
-function Lpe(e) {
+function Zpe(e) {
var t = e.getTimezoneOffset();
return (t > 0 ? "-" : (t *= -1, "+")) + GQ(t / 60 | 0, "0", 2) + GQ(t % 60, "0", 2);
}
function t$(e, t) {
return GQ(e.getUTCDate(), t, 2);
}
-function Rpe(e, t) {
+function Qpe(e, t) {
return GQ(e.getUTCHours(), t, 2);
}
-function zpe(e, t) {
+function $pe(e, t) {
return GQ(e.getUTCHours() % 12 || 12, t, 2);
}
-function Bpe(e, t) {
+function eme(e, t) {
return GQ(1 + TQ.count(RQ(e), e), t, 3);
}
function n$(e, t) {
return GQ(e.getUTCMilliseconds(), t, 3);
}
-function Vpe(e, t) {
+function tme(e, t) {
return n$(e, t) + "000";
}
-function Hpe(e, t) {
+function nme(e, t) {
return GQ(e.getUTCMonth() + 1, t, 2);
}
-function Upe(e, t) {
+function rme(e, t) {
return GQ(e.getUTCMinutes(), t, 2);
}
-function Wpe(e, t) {
+function ime(e, t) {
return GQ(e.getUTCSeconds(), t, 2);
}
-function Gpe(e) {
+function ame(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function Kpe(e, t) {
+function ome(e, t) {
return GQ(MQ.count(RQ(e) - 1, e), t, 2);
}
function r$(e) {
var t = e.getUTCDay();
return t >= 4 || t === 0 ? PQ(e) : PQ.ceil(e);
}
-function qpe(e, t) {
+function sme(e, t) {
return e = r$(e), GQ(PQ.count(RQ(e), e) + (RQ(e).getUTCDay() === 4), t, 2);
}
-function Jpe(e) {
+function cme(e) {
return e.getUTCDay();
}
-function Ype(e, t) {
+function lme(e, t) {
return GQ(NQ.count(RQ(e) - 1, e), t, 2);
}
-function Xpe(e, t) {
+function ume(e, t) {
return GQ(e.getUTCFullYear() % 100, t, 2);
}
-function Zpe(e, t) {
+function dme(e, t) {
return e = r$(e), GQ(e.getUTCFullYear() % 100, t, 2);
}
-function Qpe(e, t) {
+function fme(e, t) {
return GQ(e.getUTCFullYear() % 1e4, t, 4);
}
-function $pe(e, t) {
+function pme(e, t) {
var n = e.getUTCDay();
return e = n >= 4 || n === 0 ? PQ(e) : PQ.ceil(e), GQ(e.getUTCFullYear() % 1e4, t, 4);
}
-function eme() {
+function mme() {
return "+0000";
}
function i$() {
@@ -52136,7 +52545,7 @@ function o$(e) {
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
var s$, c$, l$;
-tme({
+hme({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -52188,26 +52597,26 @@ tme({
"Dec"
]
});
-function tme(e) {
- return s$ = tpe(e), c$ = s$.format, s$.parse, l$ = s$.utcFormat, s$.utcParse, s$;
+function hme(e) {
+ return s$ = hpe(e), c$ = s$.format, s$.parse, l$ = s$.utcFormat, s$.utcParse, s$;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function nme(e) {
+function gme(e) {
return new Date(e);
}
-function rme(e) {
+function _me(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
function u$(e, t, n, r, i, a, o, s, c, l) {
- var u = CZ(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");
+ var u = EZ(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");
function x(e) {
return (c(e) < e ? p : s(e) < e ? m : o(e) < e ? h : a(e) < e ? g : r(e) < e ? i(e) < e ? _ : v : n(e) < e ? y : b)(e);
}
return u.invert = function(e) {
return new Date(d(e));
}, u.domain = function(e) {
- return arguments.length ? f(Array.from(e, rme)) : f().map(nme);
+ return arguments.length ? f(Array.from(e, _me)) : f().map(gme);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -52217,21 +52626,21 @@ function u$(e, t, n, r, i, a, o, s, c, l) {
var n = f();
return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(WZ(n, e)) : u;
}, u.copy = function() {
- return xZ(u, u$(e, t, n, r, i, a, o, s, c, l));
+ return wZ(u, u$(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function ime() {
- return tX.apply(u$($fe, epe, LQ, FQ, OQ, wQ, SQ, bQ, yQ, c$).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function vme() {
+ return sX.apply(u$(ppe, mpe, LQ, FQ, OQ, wQ, SQ, bQ, yQ, c$).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function ame() {
- return tX.apply(u$(Zfe, Qfe, RQ, IQ, MQ, TQ, CQ, xQ, yQ, l$).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function yme() {
+ return sX.apply(u$(dpe, fpe, RQ, IQ, MQ, TQ, CQ, xQ, yQ, l$).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
function d$() {
- var e = 0, t = 1, n, r, i, a, o = gZ, s = !1, c;
+ var e = 0, t = 1, n, r, i, a, o = SZ, s = !1, c;
function l(e) {
return e == null || isNaN(e = +e) ? c : o(i === 0 ? .5 : (e = (a(e) - n) * i, s ? Math.max(0, Math.min(1, e)) : e));
}
@@ -52248,7 +52657,7 @@ function d$() {
return arguments.length ? ([n, r] = t, o = e(n, r), l) : [o(0), o(1)];
};
}
- return l.range = u(uZ), l.rangeRound = u(dZ), l.unknown = function(e) {
+ return l.range = u(gZ), l.rangeRound = u(_Z), l.unknown = function(e) {
return arguments.length ? (c = e, l) : c;
}, function(o) {
return a = o, n = o(e), r = o(t), i = n === r ? 0 : 1 / (r - n), l;
@@ -52258,58 +52667,58 @@ function f$(e, t) {
return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());
}
function p$() {
- var e = VZ(d$()(gZ));
+ var e = VZ(d$()(SZ));
return e.copy = function() {
return f$(e, p$());
- }, nX.apply(e, arguments);
+ }, cX.apply(e, arguments);
}
function m$() {
var e = JZ(d$()).domain([1, 10]);
return e.copy = function() {
return f$(e, m$()).base(e.base());
- }, nX.apply(e, arguments);
+ }, cX.apply(e, arguments);
}
function h$() {
var e = QZ(d$());
return e.copy = function() {
return f$(e, h$()).constant(e.constant());
- }, nX.apply(e, arguments);
+ }, cX.apply(e, arguments);
}
function g$() {
var e = tQ(d$());
return e.copy = function() {
return f$(e, g$()).exponent(e.exponent());
- }, nX.apply(e, arguments);
+ }, cX.apply(e, arguments);
}
-function ome() {
+function bme() {
return g$.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/sequentialQuantile.js
function _$() {
- var e = [], t = gZ;
+ var e = [], t = SZ;
function n(n) {
- if (n != null && !isNaN(n = +n)) return t((FY(e, n, 1) - 1) / (e.length - 1));
+ if (n != null && !isNaN(n = +n)) return t((VY(e, n, 1) - 1) / (e.length - 1));
}
return n.domain = function(t) {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(kY), n;
+ return e.sort(FY), n;
}, n.interpolator = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.range = function() {
return e.map((n, r) => t(r / (e.length - 1)));
}, n.quantiles = function(t) {
- return Array.from({ length: t + 1 }, (n, r) => ZY(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => rX(e, r / t));
}, n.copy = function() {
return _$(t).domain(e);
- }, nX.apply(n, arguments);
+ }, cX.apply(n, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/diverging.js
function v$() {
- var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = gZ, u, d = !1, f;
+ var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = SZ, u, d = !1, f;
function p(e) {
return isNaN(e = +e) ? f : (e = .5 + ((e = +u(e)) - a) * (r * e < r * a ? s : c), l(d ? Math.max(0, Math.min(1, e)) : e));
}
@@ -52327,7 +52736,7 @@ function v$() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = fZ(e, [
+ return arguments.length ? ([n, r, i] = t, l = vZ(e, [
n,
r,
i
@@ -52338,17 +52747,17 @@ function v$() {
];
};
}
- return p.range = m(uZ), p.rangeRound = m(dZ), p.unknown = function(e) {
+ return p.range = m(gZ), p.rangeRound = m(_Z), p.unknown = function(e) {
return arguments.length ? (f = e, p) : f;
}, function(l) {
return u = l, i = l(e), a = l(t), o = l(n), s = i === a ? 0 : .5 / (a - i), c = a === o ? 0 : .5 / (o - a), r = a < i ? -1 : 1, p;
};
}
function y$() {
- var e = VZ(v$()(gZ));
+ var e = VZ(v$()(SZ));
return e.copy = function() {
return f$(e, y$());
- }, nX.apply(e, arguments);
+ }, cX.apply(e, arguments);
}
function b$() {
var e = JZ(v$()).domain([
@@ -52358,38 +52767,38 @@ function b$() {
]);
return e.copy = function() {
return f$(e, b$()).base(e.base());
- }, nX.apply(e, arguments);
+ }, cX.apply(e, arguments);
}
function x$() {
var e = QZ(v$());
return e.copy = function() {
return f$(e, x$()).constant(e.constant());
- }, nX.apply(e, arguments);
+ }, cX.apply(e, arguments);
}
function S$() {
var e = tQ(v$());
return e.copy = function() {
return f$(e, S$()).exponent(e.exponent());
- }, nX.apply(e, arguments);
+ }, cX.apply(e, arguments);
}
-function sme() {
+function xme() {
return S$.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/victory-vendor/es/d3-scale.js
var C$ = /* @__PURE__ */ E({
- scaleBand: () => aX,
+ scaleBand: () => dX,
scaleDiverging: () => y$,
scaleDivergingLog: () => b$,
scaleDivergingPow: () => S$,
- scaleDivergingSqrt: () => sme,
+ scaleDivergingSqrt: () => xme,
scaleDivergingSymlog: () => x$,
scaleIdentity: () => UZ,
- scaleImplicit: () => rX,
+ scaleImplicit: () => lX,
scaleLinear: () => HZ,
scaleLog: () => YZ,
- scaleOrdinal: () => iX,
- scalePoint: () => sX,
+ scaleOrdinal: () => uX,
+ scalePoint: () => pX,
scalePow: () => nQ,
scaleQuantile: () => aQ,
scaleQuantize: () => oQ,
@@ -52398,26 +52807,26 @@ var C$ = /* @__PURE__ */ E({
scaleSequentialLog: () => m$,
scaleSequentialPow: () => g$,
scaleSequentialQuantile: () => _$,
- scaleSequentialSqrt: () => ome,
+ scaleSequentialSqrt: () => bme,
scaleSequentialSymlog: () => h$,
- scaleSqrt: () => Vfe,
+ scaleSqrt: () => tpe,
scaleSymlog: () => $Z,
scaleThreshold: () => sQ,
- scaleTime: () => ime,
- scaleUtc: () => ame,
+ scaleTime: () => vme,
+ scaleUtc: () => yme,
tickFormat: () => BZ
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function cme(e) {
+function Sme(e) {
if (e in C$) return C$[e]();
- var t = `scale${XR(e)}`;
+ var t = `scale${tz(e)}`;
if (t in C$) return C$[t]();
}
function w$(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = cme(e);
+ var r = Sme(e);
if (r != null) return r.domain(t).range(n), r;
}
}
@@ -52426,22 +52835,22 @@ function T$(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function lme(e) {
- return `scale${XR(e)}`;
+function Cme(e) {
+ return `scale${tz(e)}`;
}
-function ume(e) {
- return lme(e) in C$;
+function wme(e) {
+ return Cme(e) in C$;
}
var E$ = (e, t, n) => {
if (e != null) {
var { scale: r, type: i } = e;
if (r === "auto") return i === "category" && n && (n.indexOf("LineChart") >= 0 || n.indexOf("AreaChart") >= 0 || n.indexOf("ComposedChart") >= 0 && !t) ? "point" : i === "category" ? "band" : "linear";
- if (typeof r == "string") return ume(r) ? r : "point";
+ if (typeof r == "string") return wme(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function dme(e, t) {
+function Tme(e, t) {
for (var n = 0, r = e.length, i = e[0] < e[e.length - 1]; n < r;) {
var a = Math.floor((n + r) / 2);
(i ? e[a] < t : e[a] > t) ? n = a + 1 : r = a;
@@ -52452,7 +52861,7 @@ function D$(e, t) {
if (e) {
var n = t ?? e.domain(), r = n.map((t) => e(t) ?? 0), i = e.range();
if (!(n.length === 0 || i.length < 2)) return (e) => {
- var t = dme(r, e);
+ var t = Tme(r, e);
if (t <= 0) return n[0];
if (t >= n.length) return n[n.length - 1];
var i = r[t - 1] ?? 0, a = r[t] ?? 0;
@@ -52462,7 +52871,7 @@ function D$(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function fme(e) {
+function Eme(e) {
if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : D$(e, void 0);
}
//#endregion
@@ -52481,26 +52890,26 @@ function k$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? O$(Object(n), !0).forEach(function(t) {
- pme(e, t, n[t]);
+ Dme(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function pme(e, t, n) {
- return (t = mme(t)) in e ? Object.defineProperty(e, t, {
+function Dme(e, t, n) {
+ return (t = Ome(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function mme(e) {
- var t = hme(e, "string");
+function Ome(e) {
+ var t = kme(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function hme(e, t) {
+function kme(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52568,7 +52977,7 @@ var A$ = [0, "auto"], j$ = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, F$ = (e, t) => e.cartesianAxis.yAxis[t], I$ = (e, t) => F$(e, t) ?? P$, gme = {
+}, F$ = (e, t) => e.cartesianAxis.yAxis[t], I$ = (e, t) => F$(e, t) ?? P$, Ame = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -52581,16 +52990,16 @@ var A$ = [0, "auto"], j$ = {
scale: "auto",
type: "number",
unit: ""
-}, L$ = (e, t) => e.cartesianAxis.zAxis[t] ?? gme, R$ = (e, t, n) => {
+}, L$ = (e, t) => e.cartesianAxis.zAxis[t] ?? Ame, R$ = (e, t, n) => {
switch (t) {
case "xAxis": return N$(e, n);
case "yAxis": return I$(e, n);
case "zAxis": return L$(e, n);
- case "angleAxis": return oY(e, n);
- case "radiusAxis": return sY(e, n);
+ case "angleAxis": return fY(e, n);
+ case "radiusAxis": return pY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, _me = (e, t, n) => {
+}, jme = (e, t, n) => {
switch (t) {
case "xAxis": return N$(e, n);
case "yAxis": return I$(e, n);
@@ -52600,8 +53009,8 @@ var A$ = [0, "auto"], j$ = {
switch (t) {
case "xAxis": return N$(e, n);
case "yAxis": return I$(e, n);
- case "angleAxis": return oY(e, n);
- case "radiusAxis": return sY(e, n);
+ case "angleAxis": return fY(e, n);
+ case "radiusAxis": return pY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, B$ = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
@@ -52617,40 +53026,40 @@ function V$(e, t) {
}
};
}
-var H$ = (e) => e.graphicalItems.cartesianItems, vme = $([_Y, vY], V$), U$ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), W$ = $([
+var H$ = (e) => e.graphicalItems.cartesianItems, Mme = $([CY, wY], V$), U$ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), W$ = $([
H$,
R$,
- vme
-], U$, { memoizeOptions: { resultEqualityCheck: CY } }), G$ = $([W$], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(xY)), K$ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), yme = $([W$], K$), q$ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), bme = $([W$], q$, { memoizeOptions: { resultEqualityCheck: CY } }), J$ = (e, t) => {
+ Mme
+], U$, { memoizeOptions: { resultEqualityCheck: kY } }), G$ = $([W$], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(DY)), K$ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), Nme = $([W$], K$), q$ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), Pme = $([W$], q$, { memoizeOptions: { resultEqualityCheck: kY } }), J$ = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, Y$ = $([bme, xJ], J$), X$ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: fH(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: fH(e, t.dataKey) })), Z$ = $([
+}, Y$ = $([Pme, DJ], J$), X$ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: vH(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: vH(e, t.dataKey) })), Z$ = $([
Y$,
R$,
W$
], X$);
function Q$(e) {
- if (UR(e) || e instanceof Date) {
+ if (JR(e) || e instanceof Date) {
var t = Number(e);
- if (aH(t)) return t;
+ if (dH(t)) return t;
}
}
function $$(e) {
if (Array.isArray(e)) {
var t = [Q$(e[0]), Q$(e[1])];
- return CJ(t) ? t : void 0;
+ return kJ(t) ? t : void 0;
}
var n = Q$(e);
if (n != null) return [n, n];
}
function e1(e) {
- return e.map(Q$).filter(ZR);
+ return e.map(Q$).filter(nz);
}
-function xme(e, t) {
+function Fme(e, t) {
var n = Q$(e), r = Q$(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var Sme = $([Z$], (e) => e?.map((e) => e.value).sort(xme));
+var Ime = $([Z$], (e) => e?.map((e) => e.value).sort(Fme));
function t1(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
@@ -52658,17 +53067,17 @@ function t1(e, t) {
default: return !1;
}
}
-function Cme(e, t, n) {
- return !n || typeof t != "number" || VR(t) || !n.length ? [] : e1(n.flatMap((n) => {
- var r = fH(e, n.dataKey), i, a;
- if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!aH(i) || !aH(a))) return [t - i, t + a];
+function Lme(e, t, n) {
+ return !n || typeof t != "number" || KR(t) || !n.length ? [] : e1(n.flatMap((n) => {
+ var r = vH(e, n.dataKey), i, a;
+ if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!dH(i) || !dH(a))) return [t - i, t + a];
}));
}
-var n1 = (e) => z$(e, TY(e), EY(e)), r1 = $([n1], (e) => e?.dataKey), wme = $([
+var n1 = (e) => z$(e, jY(e), MY(e)), r1 = $([n1], (e) => e?.dataKey), Rme = $([
G$,
- xJ,
+ DJ,
n1
-], bY), i1 = (e, t, n, r) => {
+], EY), i1 = (e, t, n, r) => {
var i = t.reduce((e, t) => {
if (t.stackId == null) return e;
var n = e[t.stackId];
@@ -52677,22 +53086,22 @@ var n1 = (e) => z$(e, TY(e), EY(e)), r1 = $([n1], (e) => e?.dataKey), wme = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: yH(e, o.map(yY), n),
+ stackedData: TH(e, o.map(TY), n),
graphicalItems: o
}];
}));
}, a1 = $([
- wme,
+ Rme,
G$,
- VJ,
- HJ
+ qJ,
+ JJ
], i1), o1 = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
- var o = EH(e, i, a);
+ var o = MH(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, Tme = $([R$], (e) => e.allowDataOverflow), s1 = (e) => {
+}, zme = $([R$], (e) => e.allowDataOverflow), s1 = (e) => {
if (e == null || !("domain" in e)) return A$;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
@@ -52703,12 +53112,12 @@ var n1 = (e) => z$(e, TY(e), EY(e)), r1 = $([n1], (e) => e?.dataKey), wme = $([
if (e.type === "category") return e.ticks.map(String);
}
return e?.domain ?? A$;
-}, c1 = $([R$], s1), l1 = $([c1, Tme], TJ), Eme = $([
+}, c1 = $([R$], s1), l1 = $([c1, zme], jJ), Bme = $([
a1,
- yJ,
- _Y,
+ TJ,
+ CY,
l1
-], o1, { memoizeOptions: { resultEqualityCheck: SY } }), u1 = (e) => e.errorBars, Dme = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => t1(n, e)), d1 = function() {
+], o1, { memoizeOptions: { resultEqualityCheck: OY } }), u1 = (e) => e.errorBars, Vme = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => t1(n, e)), d1 = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
@@ -52718,7 +53127,7 @@ var n1 = (e) => z$(e, TY(e), EY(e)), r1 = $([n1], (e) => e?.dataKey), wme = $([
var a, o;
if (n.length > 0 && e.forEach((e) => {
n.forEach((n) => {
- var s = r[n.id]?.filter((e) => t1(i, e)), c = fH(e, t.dataKey ?? n.dataKey), l = Cme(e, c, s);
+ var s = r[n.id]?.filter((e) => t1(i, e)), c = vH(e, t.dataKey ?? n.dataKey), l = Lme(e, c, s);
if (l.length >= 2) {
var u = Math.min(...l), d = Math.max(...l);
(a == null || u < a) && (a = u), (o == null || d > o) && (o = d);
@@ -52727,98 +53136,98 @@ var n1 = (e) => z$(e, TY(e), EY(e)), r1 = $([n1], (e) => e?.dataKey), wme = $([
f != null && (a = a == null ? f[0] : Math.min(a, f[0]), o = o == null ? f[1] : Math.max(o, f[1]));
});
}), t?.dataKey != null && e.forEach((e) => {
- var n = $$(fH(e, t.dataKey));
+ var n = $$(vH(e, t.dataKey));
n != null && (a = a == null ? n[0] : Math.min(a, n[0]), o = o == null ? n[1] : Math.max(o, n[1]));
- }), aH(a) && aH(o)) return [a, o];
-}, Ome = $([
+ }), dH(a) && dH(o)) return [a, o];
+}, Hme = $([
Y$,
R$,
- yme,
+ Nme,
u1,
- _Y
-], f1, { memoizeOptions: { resultEqualityCheck: SY } });
-function kme(e) {
+ CY
+], f1, { memoizeOptions: { resultEqualityCheck: OY } });
+function Ume(e) {
var { value: t } = e;
- if (UR(t) || t instanceof Date) return t;
+ if (JR(t) || t instanceof Date) return t;
}
-var Ame = (e, t, n) => {
- var r = e.map(kme).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && KR(r)) ? vJ(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, p1 = (e) => e.referenceElements.dots, m1 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), jme = $([
+var Wme = (e, t, n) => {
+ var r = e.map(Ume).filter((e) => e != null);
+ return n && (t.dataKey == null || t.allowDuplicatedCategory && ZR(r)) ? wJ(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
+}, p1 = (e) => e.referenceElements.dots, m1 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), Gme = $([
p1,
- _Y,
- vY
-], m1), h1 = (e) => e.referenceElements.areas, Mme = $([
+ CY,
+ wY
+], m1), h1 = (e) => e.referenceElements.areas, Kme = $([
h1,
- _Y,
- vY
-], m1), g1 = (e) => e.referenceElements.lines, Nme = $([
+ CY,
+ wY
+], m1), g1 = (e) => e.referenceElements.lines, qme = $([
g1,
- _Y,
- vY
+ CY,
+ wY
], m1), _1 = (e, t) => {
if (e != null) {
var n = e1(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Pme = $(jme, _Y, _1), v1 = (e, t) => {
+}, Jme = $(Gme, CY, _1), v1 = (e, t) => {
if (e != null) {
var n = e1(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Fme = $([Mme, _Y], v1);
-function Ime(e) {
+}, Yme = $([Kme, CY], v1);
+function Xme(e) {
if (e.x != null) return e1([e.x]);
var t = e.segment?.map((e) => e.x);
return t == null || t.length === 0 ? [] : e1(t);
}
-function Lme(e) {
+function Zme(e) {
if (e.y != null) return e1([e.y]);
var t = e.segment?.map((e) => e.y);
return t == null || t.length === 0 ? [] : e1(t);
}
var y1 = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? Ime(e) : Lme(e));
+ var n = e.flatMap((e) => t === "xAxis" ? Xme(e) : Zme(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Rme = $(Pme, $([Nme, _Y], y1), Fme, (e, t, n) => d1(e, n, t)), b1 = (e, t, n, r, i, a, o, s) => n ?? EJ(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? d1(r, a, i) : d1(a, i), e.allowDataOverflow), zme = $([
+}, Qme = $(Jme, $([qme, CY], y1), Yme, (e, t, n) => d1(e, n, t)), b1 = (e, t, n, r, i, a, o, s) => n ?? MJ(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? d1(r, a, i) : d1(a, i), e.allowDataOverflow), $me = $([
R$,
c1,
l1,
- Eme,
- Ome,
- Rme,
- FU,
- _Y
-], b1, { memoizeOptions: { resultEqualityCheck: SY } }), Bme = [0, 1], x1 = (e, t, n, r, i, a, o) => {
+ Bme,
+ Hme,
+ Qme,
+ VU,
+ CY
+], b1, { memoizeOptions: { resultEqualityCheck: OY } }), ehe = [0, 1], x1 = (e, t, n, r, i, a, o) => {
if (e != null && n != null && n.length !== 0 || o !== void 0) {
- var { dataKey: s, type: c } = e, l = mH(t, a);
- return l && s == null ? vJ(0, n?.length ?? 0) : c === "category" ? Ame(r, e, l) : i === "expand" ? Bme : o;
+ var { dataKey: s, type: c } = e, l = bH(t, a);
+ return l && s == null ? wJ(0, n?.length ?? 0) : c === "category" ? Wme(r, e, l) : i === "expand" ? ehe : o;
}
}, S1 = $([
R$,
- FU,
+ VU,
Y$,
Z$,
- VJ,
- _Y,
- zme
+ qJ,
+ CY,
+ $me
], x1), C1 = $([
R$,
B$,
- UJ
+ YJ
], E$), w1 = (e, t, n) => {
var { niceTicks: r } = t;
if (r !== "none") {
var i = s1(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
- if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && CJ(e)) {
- if (a) return FJ(e, t.tickCount, t.allowDecimals, r);
- if (t.type === "number") return IJ(e, t.tickCount, t.allowDecimals, r);
+ if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && kJ(e)) {
+ if (a) return VJ(e, t.tickCount, t.allowDecimals, r);
+ if (t.type === "number") return HJ(e, t.tickCount, t.allowDecimals, r);
}
if (r === "auto" && n === "linear" && t != null && t.tickCount) {
- if (a && CJ(e)) return FJ(e, t.tickCount, t.allowDecimals, "adaptive");
- if (t.type === "number" && CJ(e)) return IJ(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (a && kJ(e)) return VJ(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (t.type === "number" && kJ(e)) return HJ(e, t.tickCount, t.allowDecimals, "adaptive");
}
}
}, T1 = $([
@@ -52826,16 +53235,16 @@ var y1 = (e, t) => {
z$,
C1
], w1), E1 = (e, t, n, r) => {
- if (r !== "angleAxis" && e?.type === "number" && CJ(t) && Array.isArray(n) && n.length > 0) {
+ if (r !== "angleAxis" && e?.type === "number" && kJ(t) && Array.isArray(n) && n.length > 0) {
var i = t[0], a = n[0] ?? 0, o = t[1], s = n[n.length - 1] ?? 0;
return [Math.min(i, a), Math.max(o, s)];
}
return t;
-}, Vme = $([
+}, the = $([
R$,
S1,
T1,
- _Y
+ CY
], E1), D1 = $($(Z$, R$, (e, t) => {
if (!(!t || t.type !== "number")) {
var n = Infinity, r = Array.from(e1(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
@@ -52851,22 +53260,22 @@ var y1 = (e, t) => {
}
return n / o;
}
-}), FU, zJ, ZH, (e, t, n, r, i) => i, (e, t, n, r, i) => {
- if (!aH(e)) return 0;
+}), VU, GJ, rU, (e, t, n, r, i) => i, (e, t, n, r, i) => {
+ if (!dH(e)) return 0;
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
if (i === "no-gap") {
- var o = GR(n, e * a), s = e * a / 2;
+ var o = XR(n, e * a), s = e * a / 2;
return s - o - (s - o) / a * o;
}
return 0;
-}), Hme = (e, t, n) => {
+}), nhe = (e, t, n) => {
var r = N$(e, t);
return r == null || typeof r.padding != "string" ? 0 : D1(e, "xAxis", t, n, r.padding);
-}, Ume = (e, t, n) => {
+}, rhe = (e, t, n) => {
var r = I$(e, t);
return r == null || typeof r.padding != "string" ? 0 : D1(e, "yAxis", t, n, r.padding);
-}, Wme = $(N$, Hme, (e, t) => {
+}, ihe = $(N$, nhe, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -52879,7 +53288,7 @@ var y1 = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), Gme = $(I$, Ume, (e, t) => {
+}), ahe = $(I$, rhe, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -52892,98 +53301,98 @@ var y1 = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), Kme = $([
- ZH,
- Wme,
+}), ohe = $([
rU,
- nU,
+ ihe,
+ lU,
+ cU,
(e, t, n) => n
], (e, t, n, r, i) => {
var { padding: a } = r;
return i ? [a.left, n.width - a.right] : [e.left + t.left, e.left + e.width - t.right];
-}), qme = $([
- ZH,
- FU,
- Gme,
+}), she = $([
rU,
- nU,
+ VU,
+ ahe,
+ lU,
+ cU,
(e, t, n) => n
], (e, t, n, r, i, a) => {
var { padding: o } = i;
return a ? [r.height - o.bottom, o.top] : t === "horizontal" ? [e.top + e.height - n.bottom, e.top + n.top] : [e.top + n.top, e.top + e.height - n.bottom];
}), O1 = (e, t, n, r) => {
switch (t) {
- case "xAxis": return Kme(e, n, r);
- case "yAxis": return qme(e, n, r);
+ case "xAxis": return ohe(e, n, r);
+ case "yAxis": return she(e, n, r);
case "zAxis": return L$(e, n)?.range;
- case "angleAxis": return fY(e);
- case "radiusAxis": return mY(e, n);
+ case "angleAxis": return vY(e);
+ case "radiusAxis": return bY(e, n);
default: return;
}
-}, k1 = $([R$, O1], ZJ), A1 = $([
+}, k1 = $([R$, O1], rY), A1 = $([
R$,
C1,
- $([C1, Vme], OY),
+ $([C1, the], PY),
k1
], T$), j1 = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
- if (mH(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
+ if (bH(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
}, M1 = $([
- FU,
+ VU,
Z$,
z$,
- _Y
-], j1), N1 = $([A1], DY);
-$([A1], fme), $([A1, Sme], D$), $([
+ CY
+], j1), N1 = $([A1], NY);
+$([A1], Eme), $([A1, Ime], D$), $([
W$,
u1,
- _Y
-], Dme);
+ CY
+], Vme);
function P1(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var F1 = (e, t) => t, I1 = (e, t, n) => n, Jme = $(RH, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), Yme = $(zH, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), L1 = (e, t) => ({
+var F1 = (e, t) => t, I1 = (e, t, n) => n, che = $(WH, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), lhe = $(GH, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), L1 = (e, t) => ({
width: e.width,
height: t.height
-}), Xme = (e, t) => ({
+}), uhe = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), R1 = $(ZH, N$, L1), Zme = (e, t, n) => {
+}), R1 = $(rU, N$, L1), dhe = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, Qme = (e, t, n) => {
+}, fhe = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, $me = $(FH, ZH, Jme, F1, I1, (e, t, n, r, i) => {
+}, phe = $(VH, rU, che, F1, I1, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
var s = L1(t, n);
- o ??= Zme(t, r, e);
+ o ??= dhe(t, r, e);
var c = r === "top" && !i || r === "bottom" && i;
a[n.id] = o - Number(c) * s.height, o += (c ? -1 : 1) * s.height;
}), a;
-}), ehe = $(PH, ZH, Yme, F1, I1, (e, t, n, r, i) => {
+}), mhe = $(BH, rU, lhe, F1, I1, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = Xme(t, n);
- o ??= Qme(t, r, e);
+ var s = uhe(t, n);
+ o ??= fhe(t, r, e);
var c = r === "left" && !i || r === "right" && i;
a[n.id] = o - Number(c) * s.width, o += (c ? -1 : 1) * s.width;
}), a;
-}), the = $([
- ZH,
+}), hhe = $([
+ rU,
N$,
(e, t) => {
var n = N$(e, t);
- if (n != null) return $me(e, n.orientation, n.mirror);
+ if (n != null) return phe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -52997,12 +53406,12 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Jme = $(RH, F1, I1, (e, t, n) => e.fi
y: i
};
}
-}), nhe = $([
- ZH,
+}), ghe = $([
+ rU,
I$,
(e, t) => {
var n = I$(e, t);
- if (n != null) return ehe(e, n.orientation, n.mirror);
+ if (n != null) return mhe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -53016,7 +53425,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Jme = $(RH, F1, I1, (e, t, n) => e.fi
y: e.top
};
}
-}), z1 = $(ZH, I$, (e, t) => ({
+}), z1 = $(rU, I$, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
})), B1 = (e, t, n) => {
@@ -53027,27 +53436,27 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Jme = $(RH, F1, I1, (e, t, n) => e.fi
}
}, V1 = (e, t, n, r) => {
if (n != null) {
- var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = mH(e, r), c = t.map((e) => e.value);
- if (o && s && a === "category" && i && KR(c)) return c;
+ var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = bH(e, r), c = t.map((e) => e.value);
+ if (o && s && a === "category" && i && ZR(c)) return c;
}
}, H1 = $([
- FU,
+ VU,
Z$,
R$,
- _Y
+ CY
], V1), U1 = $([
- FU,
- _me,
+ VU,
+ jme,
C1,
N1,
H1,
M1,
O1,
T1,
- _Y
+ CY
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
- var l = mH(e, c);
+ var l = bH(e, c);
return {
angle: t.angle,
interval: t.interval,
@@ -53071,45 +53480,45 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Jme = $(RH, F1, I1, (e, t, n) => e.fi
}
}), W1 = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
- var l = mH(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
- m = c === "angleAxis" && a != null && a.length >= 2 ? BR(a[0] - a[1]) * 2 * m : m;
+ var l = bH(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
+ m = c === "angleAxis" && a != null && a.length >= 2 ? GR(a[0] - a[1]) * 2 * m : m;
var h = d || i;
return h ? h.map((e, t) => {
var n = o ? o.indexOf(e) : e, i = r.map(n);
- return aH(i) ? {
+ return dH(i) ? {
index: t,
coordinate: i + m,
value: e,
offset: m
} : null;
- }).filter(ZR) : l && s ? s.map((e, t) => {
+ }).filter(nz) : l && s ? s.map((e, t) => {
var n = r.map(e);
- return aH(n) ? {
+ return dH(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(ZR) : r.ticks ? r.ticks(f).map((e, t) => {
+ }).filter(nz) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
- return aH(n) ? {
+ return dH(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(ZR) : r.domain().map((e, t) => {
+ }).filter(nz) : r.domain().map((e, t) => {
var n = r.map(e);
- return aH(n) ? {
+ return dH(n) ? {
coordinate: n + m,
value: o ? o[e] : e,
index: t,
offset: m
} : null;
- }).filter(ZR);
+ }).filter(nz);
}
}, G1 = $([
- FU,
+ VU,
z$,
C1,
N1,
@@ -53117,44 +53526,44 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Jme = $(RH, F1, I1, (e, t, n) => e.fi
O1,
H1,
M1,
- _Y
+ CY
], W1), K1 = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
- var s = mH(e, o), { tickCount: c } = t, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? BR(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
+ var s = bH(e, o), { tickCount: c } = t, l = 0;
+ return l = o === "angleAxis" && r?.length >= 2 ? GR(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
var r = n.map(e);
- return aH(r) ? {
+ return dH(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(ZR) : n.ticks ? n.ticks(c).map((e, t) => {
+ }).filter(nz) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
- return aH(r) ? {
+ return dH(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(ZR) : n.domain().map((e, t) => {
+ }).filter(nz) : n.domain().map((e, t) => {
var r = n.map(e);
- return aH(r) ? {
+ return dH(r) ? {
coordinate: r + l,
value: i ? i[e] : e,
index: t,
offset: l
} : null;
- }).filter(ZR);
+ }).filter(nz);
}
}, q1 = $([
- FU,
+ VU,
z$,
N1,
O1,
H1,
M1,
- _Y
+ CY
], K1), J1 = $(R$, N1, (e, t) => {
if (e != null && t != null) return k$(k$({}, e), {}, { scale: t });
});
@@ -53163,13 +53572,13 @@ $((e, t, n) => L$(e, n), $([$([
C1,
S1,
k1
-], T$)], DY), (e, t) => {
+], T$)], NY), (e, t) => {
if (e != null && t != null) return k$(k$({}, e), {}, { scale: t });
});
-var rhe = $([
- FU,
- RH,
- zH
+var _he = $([
+ VU,
+ WH,
+ GH
], (e, t, n) => {
switch (e) {
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
@@ -53200,21 +53609,21 @@ function Z1(e, t, n) {
function Q1(e, t) {
return Z1(t, Y1(e), X1(e));
}
-function ihe(e) {
+function vhe(e) {
return Q((t) => Q1(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
var $1 = (e, t) => {
var n, r = Number(t);
- if (!(VR(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, ahe = (e) => e.tooltip.settings, e0 = {
+ if (!(KR(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
+}, yhe = (e) => e.tooltip.settings, e0 = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, t0 = bV({
+}, t0 = TV({
name: "tooltip",
initialState: {
itemInteraction: {
@@ -53247,23 +53656,23 @@ var $1 = (e, t) => {
reducers: {
addTooltipEntrySettings: {
reducer(e, t) {
- e.tooltipItemPayloads.push(LW(t.payload));
+ e.tooltipItemPayloads.push(UW(t.payload));
},
- prepare: gV()
+ prepare: xV()
},
replaceTooltipEntrySettings: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = sV(e).tooltipItemPayloads.indexOf(LW(n));
- i > -1 && (e.tooltipItemPayloads[i] = LW(r));
+ var { prev: n, next: r } = t.payload, i = fV(e).tooltipItemPayloads.indexOf(UW(n));
+ i > -1 && (e.tooltipItemPayloads[i] = UW(r));
},
- prepare: gV()
+ prepare: xV()
},
removeTooltipEntrySettings: {
reducer(e, t) {
- var n = sV(e).tooltipItemPayloads.indexOf(LW(t.payload));
+ var n = fV(e).tooltipItemPayloads.indexOf(UW(t.payload));
n > -1 && e.tooltipItemPayloads.splice(n, 1);
},
- prepare: gV()
+ prepare: xV()
},
setTooltipSettingsState(e, t) {
e.settings = t.payload;
@@ -53293,7 +53702,7 @@ var $1 = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: ohe, replaceTooltipEntrySettings: she, removeTooltipEntrySettings: che, setTooltipSettingsState: lhe, setActiveMouseOverItemIndex: n0, mouseLeaveItem: uhe, mouseLeaveChart: r0, setActiveClickItemIndex: dhe, setMouseOverAxisIndex: i0, setMouseClickAxisIndex: fhe, setSyncInteraction: a0, setKeyboardInteraction: o0 } = t0.actions, phe = t0.reducer;
+}), { addTooltipEntrySettings: bhe, replaceTooltipEntrySettings: xhe, removeTooltipEntrySettings: She, setTooltipSettingsState: Che, setActiveMouseOverItemIndex: n0, mouseLeaveItem: whe, mouseLeaveChart: r0, setActiveClickItemIndex: The, setMouseOverAxisIndex: i0, setMouseClickAxisIndex: Ehe, setSyncInteraction: a0, setKeyboardInteraction: o0 } = t0.actions, Dhe = t0.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
function s0(e, t) {
@@ -53310,26 +53719,26 @@ function c0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? s0(Object(n), !0).forEach(function(t) {
- mhe(e, t, n[t]);
+ Ohe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function mhe(e, t, n) {
- return (t = hhe(t)) in e ? Object.defineProperty(e, t, {
+function Ohe(e, t, n) {
+ return (t = khe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function hhe(e) {
- var t = ghe(e, "string");
+function khe(e) {
+ var t = Ahe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ghe(e, t) {
+function Ahe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53339,21 +53748,21 @@ function ghe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function _he(e, t, n) {
+function jhe(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function vhe(e) {
+function Mhe(e) {
return e.index != null;
}
var l0 = (e, t, n, r) => {
if (t == null) return e0;
- var i = _he(e, t, n);
+ var i = jhe(e, t, n);
if (i == null) return e0;
if (i.active) return i;
if (e.keyboardInteraction.active) return e.keyboardInteraction;
if (e.syncInteraction.active && e.syncInteraction.index != null) return e.syncInteraction;
var a = e.settings.active === !0;
- if (vhe(i)) {
+ if (Mhe(i)) {
if (a) return c0(c0({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
@@ -53366,7 +53775,7 @@ var l0 = (e, t, n, r) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function yhe(e) {
+function Nhe(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -53375,24 +53784,24 @@ function yhe(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function bhe(e, t) {
- var n = yhe(e), r = t[0], i = t[1];
+function Phe(e, t) {
+ var n = Nhe(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function xhe(e, t, n) {
+function Fhe(e, t, n) {
if (n == null || t == null) return !0;
- var r = fH(e, t);
- return r == null || !CJ(n) || bhe(r, n);
+ var r = vH(e, t);
+ return r == null || !kJ(n) || Phe(r, n);
}
var u0 = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
- if (!aH(a)) return i;
+ if (!dH(a)) return i;
var o = 0, s = Infinity;
t.length > 0 && (s = t.length - 1);
var c = Math.max(o, Math.min(a, s)), l = t[c];
- return l == null || xhe(l, n, r) ? String(c) : null;
+ return l == null || Fhe(l, n, r) ? String(c) : null;
}, d0 = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
@@ -53436,26 +53845,26 @@ function g0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? h0(Object(n), !0).forEach(function(t) {
- She(e, t, n[t]);
+ Ihe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function She(e, t, n) {
- return (t = Che(t)) in e ? Object.defineProperty(e, t, {
+function Ihe(e, t, n) {
+ return (t = Lhe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Che(e) {
- var t = whe(e, "string");
+function Lhe(e) {
+ var t = Rhe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function whe(e, t) {
+function Rhe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53465,126 +53874,126 @@ function whe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function The(e) {
+function zhe(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function Ehe(e) {
+function Bhe(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function Dhe(e) {
+function Vhe(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
function _0(e) {
if (typeof e == "string") return e;
}
-function Ohe(e) {
+function Hhe(e) {
if (!(typeof e != "object" || !e)) return {
- name: "name" in e ? The(e.name) : void 0,
- unit: "unit" in e ? Ehe(e.unit) : void 0,
- dataKey: "dataKey" in e ? Dhe(e.dataKey) : void 0,
+ name: "name" in e ? zhe(e.name) : void 0,
+ unit: "unit" in e ? Bhe(e.unit) : void 0,
+ dataKey: "dataKey" in e ? Vhe(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
color: "color" in e ? _0(e.color) : void 0,
fill: "fill" in e ? _0(e.fill) : void 0
};
}
-function khe(e, t) {
+function Uhe(e, t) {
return e ?? t;
}
var v0 = (e, t, n, r, i, a, o) => {
if (t != null && a != null) {
var { chartData: s, computedData: c, dataStartIndex: l, dataEndIndex: u } = n;
return e.reduce((e, n) => {
- var { dataDefinedOnItem: d, settings: f } = n, p = khe(d, s), m = Array.isArray(p) ? iH(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? JR(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = Uhe(d, s), m = Array.isArray(p) ? uH(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? $R(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = Ohe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = g0(g0({}, f), {}, {
+ var n = Hhe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = g0(g0({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
fill: n?.fill ?? f?.fill
});
- e.push(AH({
+ e.push(IH({
tooltipEntrySettings: o,
dataKey: i,
payload: a,
- value: fH(a, i),
+ value: vH(a, i),
name: r == null ? void 0 : String(r)
}));
- }) : e.push(AH({
+ }) : e.push(IH({
tooltipEntrySettings: f,
dataKey: h,
payload: _,
- value: fH(_, h),
- name: fH(_, g) ?? f?.name
+ value: vH(_, h),
+ name: vH(_, g) ?? f?.name
})), e;
}, []);
}
}, y0 = $([
n1,
B$,
- UJ
+ YJ
], E$), b0 = $([
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
n1,
- $([TY, EY], V$)
-], U$, { memoizeOptions: { resultEqualityCheck: CY } }), Ahe = $([b0], (e) => e.filter(xY)), x0 = $([$([b0], q$, { memoizeOptions: { resultEqualityCheck: CY } }), yJ], J$), jhe = $([
- Ahe,
- yJ,
+ $([jY, MY], V$)
+], U$, { memoizeOptions: { resultEqualityCheck: kY } }), Whe = $([b0], (e) => e.filter(DY)), x0 = $([$([b0], q$, { memoizeOptions: { resultEqualityCheck: kY } }), TJ], J$), Ghe = $([
+ Whe,
+ TJ,
n1
-], bY), S0 = $([
+], EY), S0 = $([
x0,
n1,
b0
-], X$), C0 = $([n1], s1), w0 = $([C0, $([n1], (e) => e.allowDataOverflow)], TJ), Mhe = $([
+], X$), C0 = $([n1], s1), w0 = $([C0, $([n1], (e) => e.allowDataOverflow)], jJ), Khe = $([
$([
- jhe,
- $([b0], (e) => e.filter(xY)),
- VJ,
- HJ
+ Ghe,
+ $([b0], (e) => e.filter(DY)),
+ qJ,
+ JJ
], i1),
- yJ,
- TY,
+ TJ,
+ jY,
w0
-], o1), Nhe = $([
+], o1), qhe = $([
x0,
n1,
$([b0], K$),
u1,
- TY
-], f1, { memoizeOptions: { resultEqualityCheck: SY } }), Phe = $([$([
+ jY
+], f1, { memoizeOptions: { resultEqualityCheck: OY } }), Jhe = $([$([
p1,
- TY,
- EY
-], m1), TY], _1), Fhe = $([$([
+ jY,
+ MY
+], m1), jY], _1), Yhe = $([$([
h1,
- TY,
- EY
-], m1), TY], v1), T0 = $([
+ jY,
+ MY
+], m1), jY], v1), T0 = $([
n1,
- FU,
+ VU,
x0,
S0,
- VJ,
- TY,
+ qJ,
+ jY,
$([
n1,
C0,
w0,
- Mhe,
- Nhe,
+ Khe,
+ qhe,
$([
- Phe,
+ Jhe,
$([$([
g1,
- TY,
- EY
- ], m1), TY], y1),
- Fhe
+ jY,
+ MY
+ ], m1), jY], y1),
+ Yhe
], d1),
- FU,
- TY
+ VU,
+ jY
], b1)
-], x1), Ihe = $([
+], x1), Xhe = $([
n1,
T0,
$([
@@ -53592,59 +54001,59 @@ var v0 = (e, t, n, r, i, a, o) => {
n1,
y0
], w1),
- TY
-], E1), E0 = (e) => O1(e, TY(e), EY(e), !1), D0 = $([n1, E0], ZJ), O0 = $([$([
+ jY
+], E1), E0 = (e) => O1(e, jY(e), MY(e), !1), D0 = $([n1, E0], rY), O0 = $([$([
n1,
y0,
- Ihe,
+ Xhe,
D0
-], T$)], DY), k0 = $([
- FU,
+], T$)], NY), k0 = $([
+ VU,
n1,
y0,
O0,
E0,
$([
- FU,
+ VU,
S0,
n1,
- TY
+ jY
], V1),
$([
- FU,
+ VU,
S0,
n1,
- TY
+ jY
], j1),
- TY
+ jY
], (e, t, n, r, i, a, o, s) => {
if (t) {
- var { type: c } = t, l = mH(e, s);
+ var { type: c } = t, l = bH(e, s);
if (r) {
var u = n === "scaleBand" && r.bandwidth ? r.bandwidth() / 2 : 2, d = c === "category" && r.bandwidth ? r.bandwidth() / u : 0;
- return d = s === "angleAxis" && i != null && i?.length >= 2 ? BR(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? GR(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
- return aH(n) ? {
+ return dH(n) ? {
coordinate: n + d,
value: e,
index: t,
offset: d
} : null;
- }).filter(ZR) : r.domain().map((e, t) => {
+ }).filter(nz) : r.domain().map((e, t) => {
var n = r.map(e);
- return aH(n) ? {
+ return dH(n) ? {
coordinate: n + d,
value: a ? a[e] : e,
index: t,
offset: d
} : null;
- }).filter(ZR);
+ }).filter(nz);
}
}
}), A0 = $([
Y1,
X1,
- ahe
+ yhe
], (e, t, n) => Z1(n.shared, e, t)), j0 = (e) => e.tooltip.settings.trigger, M0 = (e) => e.tooltip.settings.defaultIndex, N0 = $([
m0,
A0,
@@ -53657,25 +54066,25 @@ var v0 = (e, t, n, r, i, a, o) => {
T0
], u0), F0 = $([k0, P0], $1), I0 = $([N0], (e) => {
if (e) return e.dataKey;
-}), Lhe = $([N0], (e) => {
+}), Zhe = $([N0], (e) => {
if (e) return e.graphicalItemId;
}), L0 = $([
m0,
A0,
j0,
M0
-], f0), Rhe = $([N0, $([
- PH,
- FH,
- FU,
- ZH,
+], f0), Qhe = $([N0, $([
+ BH,
+ VH,
+ VU,
+ rU,
k0,
M0,
L0
-], d0)], (e, t) => e != null && e.coordinate ? e.coordinate : t), zhe = $([N0], (e) => e?.active ?? !1), Bhe = $([$([
+], d0)], (e, t) => e != null && e.coordinate ? e.coordinate : t), $he = $([N0], (e) => e?.active ?? !1), ege = $([$([
L0,
P0,
- yJ,
+ TJ,
r1,
F0,
p0,
@@ -53702,26 +54111,26 @@ function z0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? R0(Object(n), !0).forEach(function(t) {
- Vhe(e, t, n[t]);
+ tge(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Vhe(e, t, n) {
- return (t = Hhe(t)) in e ? Object.defineProperty(e, t, {
+function tge(e, t, n) {
+ return (t = nge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Hhe(e) {
- var t = Uhe(e, "string");
+function nge(e) {
+ var t = rge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Uhe(e, t) {
+function rge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53731,9 +54140,9 @@ function Uhe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Whe = () => Q(n1), Ghe = () => {
- var e = Whe(), t = Q(k0), n = Q(O0);
- return kH(!e || !n ? void 0 : z0(z0({}, e), {}, { scale: n }), t);
+var ige = () => Q(n1), age = () => {
+ var e = ige(), t = Q(k0), n = Q(O0);
+ return FH(!e || !n ? void 0 : z0(z0({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
@@ -53751,26 +54160,26 @@ function V0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? B0(Object(n), !0).forEach(function(t) {
- Khe(e, t, n[t]);
+ oge(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Khe(e, t, n) {
- return (t = qhe(t)) in e ? Object.defineProperty(e, t, {
+function oge(e, t, n) {
+ return (t = sge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qhe(e) {
- var t = Jhe(e, "string");
+function sge(e) {
+ var t = cge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Jhe(e, t) {
+function cge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53780,7 +54189,7 @@ function Jhe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Yhe = (e, t, n, r) => {
+var lge = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -53796,18 +54205,18 @@ var Yhe = (e, t, n, r) => {
x: 0,
y: 0
};
-}, Xhe = (e, t, n, r) => {
+}, uge = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "centric") {
var a = i.coordinate, { radius: o } = r;
- return V0(V0(V0({}, r), Kq(r.cx, r.cy, o, a)), {}, {
+ return V0(V0(V0({}, r), Qq(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, { angle: c } = r;
- return V0(V0(V0({}, r), Kq(r.cx, r.cy, s, c)), {}, {
+ return V0(V0(V0({}, r), Qq(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -53826,7 +54235,7 @@ var Yhe = (e, t, n, r) => {
y: 0
};
};
-function Zhe(e, t) {
+function dge(e, t) {
var { relativeX: n, relativeY: r } = e;
return n >= t.left && n <= t.left + t.width && r >= t.top && r <= t.top + t.height;
}
@@ -53836,9 +54245,9 @@ var H0 = (e, t, n, r, i) => {
if (r === "angleAxis" && i != null && Math.abs(Math.abs(i[1] - i[0]) - 360) <= 1e-6) for (var o = 0; o < a; o++) {
var s = o > 0 ? n[o - 1]?.coordinate : n[a - 1]?.coordinate, c = n[o]?.coordinate, l = o >= a - 1 ? n[0]?.coordinate : n[o + 1]?.coordinate, u = void 0;
if (s != null && c != null && l != null) {
- if (BR(c - s) !== BR(l - c)) {
+ if (GR(c - s) !== GR(l - c)) {
var d = [];
- if (BR(l - c) === BR(i[1] - i[0])) {
+ if (GR(l - c) === GR(i[1] - i[0])) {
u = l;
var f = c + i[1] - i[0];
d[0] = Math.min(f, (f + s) / 2), d[1] = Math.max(f, (f + s) / 2);
@@ -53863,7 +54272,7 @@ var H0 = (e, t, n, r, i) => {
}
}
return -1;
-}, U0 = () => Q(UJ), W0 = (e, t) => t, G0 = (e, t, n) => n, K0 = (e, t, n, r) => r, Qhe = $(k0, (e) => Uz(e, (e) => e.coordinate)), q0 = $([
+}, U0 = () => Q(YJ), W0 = (e, t) => t, G0 = (e, t, n) => n, K0 = (e, t, n, r) => r, fge = $(k0, (e) => Jz(e, (e) => e.coordinate)), q0 = $([
m0,
W0,
G0,
@@ -53873,7 +54282,7 @@ var H0 = (e, t, n, r, i) => {
x0,
r1,
T0
-], u0), $he = (e, t, n) => {
+], u0), pge = (e, t, n) => {
if (t != null) {
var r = m0(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
@@ -53884,54 +54293,54 @@ var H0 = (e, t, n, r, i) => {
G0,
K0
], f0), X0 = $([
- PH,
- FH,
- FU,
- ZH,
+ BH,
+ VH,
+ VU,
+ rU,
k0,
K0,
Y0
-], d0), ege = $([q0, X0], (e, t) => e.coordinate ?? t), Z0 = $([k0, J0], $1), tge = $([
+], d0), mge = $([q0, X0], (e, t) => e.coordinate ?? t), Z0 = $([k0, J0], $1), hge = $([
Y0,
J0,
- yJ,
+ TJ,
r1,
Z0,
p0,
W0
-], v0), nge = $([q0, J0], (e, t) => ({
+], v0), gge = $([q0, J0], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), rge = (e, t, n, r, i, a, o) => {
- if (!(!e || !n || !r || !i) && Zhe(e, o)) {
- var s = H0(MH(e, t), a, i, n, r), c = Yhe(t, i, s, e);
+})), _ge = (e, t, n, r, i, a, o) => {
+ if (!(!e || !n || !r || !i) && dge(e, o)) {
+ var s = H0(RH(e, t), a, i, n, r), c = lge(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, ige = (e, t, n, r, i, a, o) => {
+}, vge = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = Qq(e, n);
+ var s = iJ(e, n);
if (s) {
- var c = H0(NH(s, t), o, a, r, i), l = Xhe(t, a, c, s);
+ var c = H0(zH(s, t), o, a, r, i), l = uge(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, age = (e, t, n, r, i, a, o, s) => {
- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? rge(e, t, r, i, a, o, s) : ige(e, t, n, r, i, a, o);
-}, oge = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, yge = (e, t, n, r, i, a, o, s) => {
+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? _ge(e, t, r, i, a, o, s) : vge(e, t, n, r, i, a, o);
+}, bge = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
if (t != null) {
var r = e[t];
if (r != null) return n ? r.panoramaElement : r.element;
}
-}), sge = $((e) => e.zIndex.zIndexMap, (e) => {
- var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(JJ));
+}), xge = $((e) => e.zIndex.zIndexMap, (e) => {
+ var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(eY));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: wY } });
+}, { memoizeOptions: { resultEqualityCheck: AY } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
function Q0(e, t) {
@@ -53948,26 +54357,26 @@ function $0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Q0(Object(n), !0).forEach(function(t) {
- cge(e, t, n[t]);
+ Sge(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function cge(e, t, n) {
- return (t = lge(t)) in e ? Object.defineProperty(e, t, {
+function Sge(e, t, n) {
+ return (t = Cge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function lge(e) {
- var t = uge(e, "string");
+function Cge(e) {
+ var t = wge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function uge(e, t) {
+function wge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53977,17 +54386,17 @@ function uge(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var dge = { zIndexMap: Object.values(JJ).reduce((e, t) => $0($0({}, e), {}, { [t]: {
+var Tge = { zIndexMap: Object.values(eY).reduce((e, t) => $0($0({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, fge = new Set(Object.values(JJ));
-function pge(e) {
- return fge.has(e);
+} }), {}) }, Ege = new Set(Object.values(eY));
+function Dge(e) {
+ return Ege.has(e);
}
-var e2 = bV({
+var e2 = TV({
name: "zIndex",
- initialState: dge,
+ initialState: Tge,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -53998,47 +54407,47 @@ var e2 = bV({
panoramaElement: void 0
};
},
- prepare: gV()
+ prepare: xV()
},
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !pge(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !Dge(n) && delete e.zIndexMap[n]);
},
- prepare: gV()
+ prepare: xV()
},
registerZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n, element: r, isPanorama: i } = t.payload;
- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = LW(r) : e.zIndexMap[n].element = LW(r) : e.zIndexMap[n] = {
+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = UW(r) : e.zIndexMap[n].element = UW(r) : e.zIndexMap[n] = {
consumers: 0,
- element: i ? void 0 : LW(r),
- panoramaElement: i ? LW(r) : void 0
+ element: i ? void 0 : UW(r),
+ panoramaElement: i ? UW(r) : void 0
};
},
- prepare: gV()
+ prepare: xV()
},
unregisterZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
e.zIndexMap[n] && (t.payload.isPanorama ? e.zIndexMap[n].panoramaElement = void 0 : e.zIndexMap[n].element = void 0);
},
- prepare: gV()
+ prepare: xV()
}
}
-}), { registerZIndexPortal: mge, unregisterZIndexPortal: hge, registerZIndexPortalElement: gge, unregisterZIndexPortalElement: _ge } = e2.actions, vge = e2.reducer;
+}), { registerZIndexPortal: Oge, unregisterZIndexPortal: kge, registerZIndexPortalElement: Age, unregisterZIndexPortalElement: jge } = e2.actions, Mge = e2.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
function t2(e) {
- var { zIndex: t, children: n } = e, r = BU() && t !== void 0 && t !== 0, i = tU(), a = Fz();
- (0, P.useLayoutEffect)(() => r ? (a(mge({ zIndex: t })), () => {
- a(hge({ zIndex: t }));
- }) : QR, [
+ var { zIndex: t, children: n } = e, r = KU() && t !== void 0 && t !== 0, i = sU(), a = Bz();
+ (0, P.useLayoutEffect)(() => r ? (a(Oge({ zIndex: t })), () => {
+ a(kge({ zIndex: t }));
+ }) : rz, [
a,
t,
r
]);
- var o = Q((e) => oge(e, t, i));
+ var o = Q((e) => bge(e, t, i));
return r ? o ? /*#__PURE__*/ (0, lh.createPortal)(n, o) : null : n;
}
//#endregion
@@ -54066,26 +54475,26 @@ function i2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? r2(Object(n), !0).forEach(function(t) {
- yge(e, t, n[t]);
+ Nge(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yge(e, t, n) {
- return (t = bge(t)) in e ? Object.defineProperty(e, t, {
+function Nge(e, t, n) {
+ return (t = Pge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bge(e) {
- var t = xge(e, "string");
+function Pge(e) {
+ var t = Fge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xge(e, t) {
+function Fge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54095,18 +54504,18 @@ function xge(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Sge(e) {
+function Ige(e) {
var { cursor: t, cursorComp: n, cursorProps: r } = e;
return /*#__PURE__*/ (0, P.isValidElement)(t) ? /*#__PURE__*/ (0, P.cloneElement)(t, r) : /*#__PURE__*/ (0, P.createElement)(n, r);
}
-function Cge(e) {
+function Lge(e) {
var { coordinate: t, payload: n, index: r, offset: i, tooltipAxisBandSize: a, layout: o, cursor: s, tooltipEventType: c, chartName: l } = e, u = t, d = n, f = r;
if (!s || !u || l !== "ScatterChart" && c !== "axis") return null;
var p, m, h;
- if (l === "ScatterChart") p = u, m = EK, h = JJ.cursorLine;
- else if (l === "BarChart") p = DK(o, u, i, a), m = Lq, h = JJ.cursorRectangle;
- else if (o === "radial" && iz(u)) {
- var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = $q(u);
+ if (l === "ScatterChart") p = u, m = MK, h = eY.cursorLine;
+ else if (l === "BarChart") p = NK(o, u, i, a), m = Uq, h = eY.cursorRectangle;
+ else if (o === "radial" && lz(u)) {
+ var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = aJ(u);
p = {
cx: g,
cy: _,
@@ -54114,25 +54523,25 @@ function Cge(e) {
endAngle: b,
innerRadius: v,
outerRadius: v
- }, m = mJ, h = JJ.cursorLine;
- } else p = { points: hJ(o, u, i) }, m = hK, h = JJ.cursorLine;
+ }, m = bJ, h = eY.cursorLine;
+ } else p = { points: xJ(o, u, i) }, m = xK, h = eY.cursorLine;
var x = typeof s == "object" && "className" in s ? s.className : void 0, S = i2(i2(i2(i2({
stroke: "#ccc",
pointerEvents: "none"
- }, i), p), NL(s)), {}, {
+ }, i), p), RL(s)), {}, {
payload: d,
payloadIndex: f,
className: Pm("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ P.createElement(t2, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ P.createElement(Sge, {
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ P.createElement(Ige, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function wge(e) {
- var t = Ghe(), n = jU(), r = IU(), i = U0();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ P.createElement(Cge, n2({}, e, {
+function Rge(e) {
+ var t = age(), n = LU(), r = HU(), i = U0();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ P.createElement(Lge, n2({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -54141,7 +54550,7 @@ function wge(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var a2 = /*#__PURE__*/ (0, P.createContext)(null), Tge = () => (0, P.useContext)(a2), Ege = (/* @__PURE__ */ O((/* @__PURE__ */ T(((e, t) => {
+var a2 = /*#__PURE__*/ (0, P.createContext)(null), zge = () => (0, P.useContext)(a2), Bge = (/* @__PURE__ */ O((/* @__PURE__ */ T(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -54228,12 +54637,12 @@ var a2 = /*#__PURE__*/ (0, P.createContext)(null), Tge = () => (0, P.useContext)
var t;
return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);
-})))(), 1)).default, o2 = new Ege(), s2 = "recharts.syncEvent.tooltip", c2 = "recharts.syncEvent.brush", l2 = (e, t) => {
+})))(), 1)).default, o2 = new Bge(), s2 = "recharts.syncEvent.tooltip", c2 = "recharts.syncEvent.brush", l2 = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
- if (!VR(n)) return e[n];
+ if (!KR(n)) return e[n];
}
-}, u2 = bV({
+}, u2 = TV({
name: "options",
initialState: {
chartName: "",
@@ -54244,13 +54653,13 @@ var a2 = /*#__PURE__*/ (0, P.createContext)(null), Tge = () => (0, P.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), Dge = u2.reducer, { createEventEmitter: Oge } = u2.actions;
+}), Vge = u2.reducer, { createEventEmitter: Hge } = u2.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function kge(e) {
+function Uge(e) {
return e.tooltip.syncInteraction;
}
-var d2 = bV({
+var d2 = TV({
name: "chartData",
initialState: {
chartData: void 0,
@@ -54260,7 +54669,7 @@ var d2 = bV({
},
reducers: {
setChartData(e, t) {
- if (e.chartData = LW(t.payload), t.payload == null) {
+ if (e.chartData = UW(t.payload), t.payload == null) {
e.dataStartIndex = 0, e.dataEndIndex = 0;
return;
}
@@ -54274,7 +54683,7 @@ var d2 = bV({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: f2, setDataStartEndIndexes: Age, setComputedData: jge } = d2.actions, Mge = d2.reducer, Nge = ["x", "y"];
+}), { setChartData: f2, setDataStartEndIndexes: Wge, setComputedData: Gge } = d2.actions, Kge = d2.reducer, qge = ["x", "y"];
function p2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -54289,26 +54698,26 @@ function m2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? p2(Object(n), !0).forEach(function(t) {
- Pge(e, t, n[t]);
+ Jge(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : p2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Pge(e, t, n) {
- return (t = Fge(t)) in e ? Object.defineProperty(e, t, {
+function Jge(e, t, n) {
+ return (t = Yge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Fge(e) {
- var t = Ige(e, "string");
+function Yge(e) {
+ var t = Xge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Ige(e, t) {
+function Xge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54318,16 +54727,16 @@ function Ige(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Lge(e, t) {
+function Zge(e, t) {
if (e == null) return {};
- var n, r, i = Rge(e, t);
+ var n, r, i = Qge(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Rge(e, t) {
+function Qge(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -54336,16 +54745,16 @@ function Rge(e, t) {
}
return n;
}
-function zge() {
- var e = Q(WJ), t = Q(KJ), n = Fz(), r = Q(GJ), i = Q(k0), a = IU(), o = kU(), s = Q((e) => e.rootProps.className);
+function $ge() {
+ var e = Q(XJ), t = Q(QJ), n = Bz(), r = Q(ZJ), i = Q(k0), a = HU(), o = FU(), s = Q((e) => e.rootProps.className);
(0, P.useEffect)(() => {
- if (e == null) return QR;
+ if (e == null) return rz;
var s = (s, c, l) => {
if (t !== l && e === s) {
if (r === "index") {
var u;
if (o && c != null && (u = c.payload) != null && u.coordinate && c.payload.sourceViewBox) {
- var d = c.payload.coordinate, { x: f, y: p } = d, m = Lge(d, Nge), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = m2(m2({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = Zge(d, qge), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = m2(m2({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
@@ -54406,12 +54815,12 @@ function zge() {
o
]);
}
-function Bge() {
- var e = Q(WJ), t = Q(KJ), n = Fz();
+function e_e() {
+ var e = Q(XJ), t = Q(QJ), n = Bz();
(0, P.useEffect)(() => {
- if (e == null) return QR;
+ if (e == null) return rz;
var r = (r, i, a) => {
- t !== a && e === r && n(Age(i));
+ t !== a && e === r && n(Wge(i));
};
return o2.on(c2, r), () => {
o2.off(c2, r);
@@ -54422,14 +54831,14 @@ function Bge() {
e
]);
}
-function Vge() {
- var e = Fz();
+function t_e() {
+ var e = Bz();
(0, P.useEffect)(() => {
- e(Oge());
- }, [e]), zge(), Bge();
+ e(Hge());
+ }, [e]), $ge(), e_e();
}
-function Hge(e, t, n, r, i, a) {
- var o = Q((n) => $he(n, e, t)), s = Q(Lhe), c = Q(KJ), l = Q(WJ), u = Q(GJ), d = Q(kge)?.active, f = kU();
+function n_e(e, t, n, r, i, a) {
+ var o = Q((n) => pge(n, e, t)), s = Q(Zhe), c = Q(QJ), l = Q(XJ), u = Q(ZJ), d = Q(Uge)?.active, f = FU();
(0, P.useEffect)(() => {
if (!d && l != null && c != null) {
var e = a0({
@@ -54473,26 +54882,26 @@ function g2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? h2(Object(n), !0).forEach(function(t) {
- Uge(e, t, n[t]);
+ r_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Uge(e, t, n) {
- return (t = Wge(t)) in e ? Object.defineProperty(e, t, {
+function r_e(e, t, n) {
+ return (t = i_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Wge(e) {
- var t = Gge(e, "string");
+function i_e(e) {
+ var t = a_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Gge(e, t) {
+function a_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54502,13 +54911,13 @@ function Gge(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Kge(e) {
+function o_e(e) {
return e.dataKey;
}
-function qge(e, t) {
- return /*#__PURE__*/ P.isValidElement(e) ? /*#__PURE__*/ P.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ P.createElement(e, t) : /*#__PURE__*/ P.createElement(LG, t);
+function s_e(e, t) {
+ return /*#__PURE__*/ P.isValidElement(e) ? /*#__PURE__*/ P.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ P.createElement(e, t) : /*#__PURE__*/ P.createElement(UG, t);
}
-var _2 = [], Jge = {
+var _2 = [], c_e = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -54534,10 +54943,10 @@ var _2 = [], Jge = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function Yge(e) {
- var t = cz(e, Jge), { 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 = Fz(), S = typeof v == "number" ? String(v) : v;
+function l_e(e) {
+ var t = pz(e, c_e), { 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 = Bz(), S = typeof v == "number" ? String(v) : v;
(0, P.useEffect)(() => {
- x(lhe({
+ x(Che({
shared: g,
trigger: _,
axisId: b,
@@ -54552,12 +54961,12 @@ function Yge(e) {
n,
S
]);
- var C = kU(), w = eK(), T = ihe(g), { activeIndex: E, isActive: D } = Q((e) => nge(e, T, _, S)) ?? {}, O = Q((e) => tge(e, T, _, S)), k = Q((e) => Z0(e, T, _, S)), A = Q((e) => ege(e, T, _, S)), j = O, M = Tge(), N = n ?? D ?? !1, [F, I] = Kz([j, N]), ee = T === "axis" ? k : void 0;
- Hge(T, _, A, ee, E, N);
+ var C = FU(), w = oK(), T = vhe(g), { activeIndex: E, isActive: D } = Q((e) => gge(e, T, _, S)) ?? {}, O = Q((e) => hge(e, T, _, S)), k = Q((e) => Z0(e, T, _, S)), A = Q((e) => mge(e, T, _, S)), j = O, M = zge(), N = n ?? D ?? !1, [F, I] = Zz([j, N]), ee = T === "axis" ? k : void 0;
+ n_e(T, _, A, ee, E, N);
var te = y ?? M;
if (te == null || C == null || T == null) return null;
var ne = j ?? _2;
- N || (ne = _2), s && ne.length && (ne = Nz(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, Kge));
+ N || (ne = _2), s && ne.length && (ne = Rz(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, o_e));
var re = ne.length > 0, ie = g2(g2({}, t), {}, {
payload: ne,
label: ee,
@@ -54565,7 +54974,7 @@ function Yge(e) {
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), ae = /*#__PURE__*/ P.createElement($G, {
+ }), ae = /*#__PURE__*/ P.createElement(aK, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -54582,8 +54991,8 @@ function Yge(e) {
lastBoundingBox: F,
innerRef: I,
hasPortalFromProps: !!y
- }, qge(o, ie));
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ (0, lh.createPortal)(ae, te), N && /*#__PURE__*/ P.createElement(wge, {
+ }, s_e(o, ie));
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ (0, lh.createPortal)(ae, te), N && /*#__PURE__*/ P.createElement(Rge, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -54597,19 +55006,19 @@ var v2 = (e) => null;
v2.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function Xge(e, t, n) {
- return (t = Zge(t)) in e ? Object.defineProperty(e, t, {
+function u_e(e, t, n) {
+ return (t = d_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Zge(e) {
- var t = Qge(e, "string");
+function d_e(e) {
+ var t = f_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Qge(e, t) {
+function f_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54619,9 +55028,9 @@ function Qge(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var $ge = class {
+var p_e = class {
constructor(e) {
- Xge(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ u_e(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -54654,30 +55063,30 @@ function y2(e, t) {
}
return n;
}
-function e_e(e) {
+function m_e(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? y2(Object(n), !0).forEach(function(t) {
- t_e(e, t, n[t]);
+ h_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function t_e(e, t, n) {
- return (t = n_e(t)) in e ? Object.defineProperty(e, t, {
+function h_e(e, t, n) {
+ return (t = g_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function n_e(e) {
- var t = r_e(e, "string");
+function g_e(e) {
+ var t = __e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function r_e(e, t) {
+function __e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54687,10 +55096,10 @@ function r_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var b2 = e_e({}, {
+var b2 = m_e({}, {
cacheSize: 2e3,
enableCache: !0
-}), x2 = new $ge(b2.cacheSize), i_e = {
+}), x2 = new p_e(b2.cacheSize), v_e = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -54699,13 +55108,13 @@ var b2 = e_e({}, {
border: "none",
whiteSpace: "pre"
}, S2 = "recharts_measurement_span";
-function a_e(e, t) {
+function y_e(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
var C2 = (e, t) => {
try {
var n = document.getElementById(S2);
- n || (n = document.createElement("span"), n.setAttribute("id", S2), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, i_e, t), n.textContent = `${e}`;
+ n || (n = document.createElement("span"), n.setAttribute("id", S2), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, v_e, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -54719,29 +55128,29 @@ var C2 = (e, t) => {
}
}, w2 = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (e == null || WG.isSsr) return {
+ if (e == null || XG.isSsr) return {
width: 0,
height: 0
};
if (!b2.enableCache) return C2(e, t);
- var n = a_e(e, t), r = x2.get(n);
+ var n = y_e(e, t), r = x2.get(n);
if (r) return r;
var i = C2(e, t);
return x2.set(n, i), i;
}, T2;
-function o_e(e, t, n) {
- return (t = s_e(t)) in e ? Object.defineProperty(e, t, {
+function b_e(e, t, n) {
+ return (t = x_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function s_e(e) {
- var t = c_e(e, "string");
+function x_e(e) {
+ var t = S_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function c_e(e, t) {
+function S_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54751,7 +55160,7 @@ function c_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var E2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, l_e = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, u_e = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, d_e = {
+var E2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, C_e = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, w_e = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, T_e = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -54759,7 +55168,7 @@ var E2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, D2 = /(
in: 96,
Q: 96 / 101.6,
px: 1
-}, f_e = [
+}, E_e = [
"cm",
"mm",
"pt",
@@ -54768,20 +55177,20 @@ var E2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, D2 = /(
"Q",
"px"
];
-function p_e(e) {
- return f_e.includes(e);
+function D_e(e) {
+ return E_e.includes(e);
}
var O2 = "NaN";
-function m_e(e, t) {
- return e * d_e[t];
+function O_e(e, t) {
+ return e * T_e[t];
}
var k2 = class e {
static parse(t) {
- var [, n, r] = u_e.exec(t) ?? [];
+ var [, n, r] = w_e.exec(t) ?? [];
return n == null ? e.NaN : new e(parseFloat(n), r ?? "");
}
constructor(e, t) {
- this.num = e, this.unit = t, this.num = e, this.unit = t, VR(e) && (this.unit = ""), t !== "" && !l_e.test(t) && (this.num = NaN, this.unit = ""), p_e(t) && (this.num = m_e(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, KR(e) && (this.unit = ""), t !== "" && !C_e.test(t) && (this.num = NaN, this.unit = ""), D_e(t) && (this.num = O_e(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -54799,10 +55208,10 @@ var k2 = class e {
return `${this.num}${this.unit}`;
}
isNaN() {
- return VR(this.num);
+ return KR(this.num);
}
};
-T2 = k2, o_e(k2, "NaN", new T2(NaN, ""));
+T2 = k2, b_e(k2, "NaN", new T2(NaN, ""));
function A2(e) {
if (e == null || e.includes(O2)) return O2;
for (var t = e; t.includes("*") || t.includes("/");) {
@@ -54818,31 +55227,31 @@ function A2(e) {
return t;
}
var j2 = /\(([^()]*)\)/;
-function h_e(e) {
+function k_e(e) {
for (var t = e, n; (n = j2.exec(t)) != null;) {
var [, r] = n;
t = t.replace(j2, A2(r));
}
return t;
}
-function g_e(e) {
+function A_e(e) {
var t = e.replace(/\s+/g, "");
- return t = h_e(t), t = A2(t), t;
+ return t = k_e(t), t = A2(t), t;
}
-function __e(e) {
+function j_e(e) {
try {
- return g_e(e);
+ return A_e(e);
} catch {
return O2;
}
}
function M2(e) {
- var t = __e(e.slice(5, -1));
+ var t = j_e(e.slice(5, -1));
return t === O2 ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var v_e = [
+var M_e = [
"x",
"y",
"lineHeight",
@@ -54851,7 +55260,7 @@ var v_e = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], y_e = [
+], N_e = [
"dx",
"dy",
"angle",
@@ -54869,14 +55278,14 @@ function N2() {
}
function P2(e, t) {
if (e == null) return {};
- var n, r, i = b_e(e, t);
+ var n, r, i = P_e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function b_e(e, t) {
+function P_e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -54889,7 +55298,7 @@ var F2 = /[ \f\n\r\t\v\u2028\u2029]+/, I2 = (e) => {
var { children: t, breakAll: n, style: r } = e;
try {
var i = [];
- return YR(t) || (i = n ? t.toString().split("") : t.toString().split(F2)), {
+ return ez(t) || (i = n ? t.toString().split("") : t.toString().split(F2)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
width: w2(e, r).width
@@ -54903,8 +55312,8 @@ var F2 = /[ \f\n\r\t\v\u2028\u2029]+/, I2 = (e) => {
function L2(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function x_e(e) {
- return YR(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
+function F_e(e) {
+ return ez(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
var R2 = (e, t, n, r) => e.reduce((e, i) => {
var { word: a, width: o } = i, s = e[e.length - 1];
@@ -54917,16 +55326,16 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), z2 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), S_e = "…", B2 = (e, t, n, r, i, a, o, s) => {
+}, []), z2 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), I_e = "…", B2 = (e, t, n, r, i, a, o, s) => {
var c = I2({
breakAll: n,
style: r,
- children: e.slice(0, t) + S_e
+ children: e.slice(0, t) + I_e
});
if (!c) return [!1, []];
var l = R2(c.wordsWithComputedWidth, a, o, s);
return [l.length > i || z2(l).width > Number(a), l];
-}, C_e = (e, t, n, r, i) => {
+}, L_e = (e, t, n, r, i) => {
var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = R2(t, r, n, i);
if (!l || i || !(d.length > a || z2(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
@@ -54939,11 +55348,11 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {
}
return h || d;
}, V2 = (e) => [{
- words: YR(e) ? [] : e.toString().split(F2),
+ words: ez(e) ? [] : e.toString().split(F2),
width: void 0
-}], w_e = (e) => {
+}], R_e = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
- if ((t || n) && !WG.isSsr) {
+ if ((t || n) && !XG.isSsr) {
var s, c, l = I2({
breakAll: a,
children: r,
@@ -54953,7 +55362,7 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
} else return V2(r);
- return C_e({
+ return L_e({
breakAll: a,
children: r,
maxLines: o,
@@ -54961,7 +55370,7 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {
}, s, c, t, !!n);
}
return V2(r);
-}, H2 = "#808080", T_e = {
+}, H2 = "#808080", z_e = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
@@ -54973,7 +55382,7 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {
x: 0,
y: 0
}, U2 = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var n = cz(e, T_e), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = P2(n, v_e), f = (0, P.useMemo)(() => w_e({
+ var n = pz(e, z_e), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = P2(n, M_e), f = (0, P.useMemo)(() => R_e({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -54987,10 +55396,10 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = P2(d, y_e);
- if (!UR(r) || !UR(i) || f.length === 0) return null;
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = P2(d, N_e);
+ if (!JR(r) || !JR(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
- if (!aH(y) || !aH(b)) return null;
+ if (!dH(y) || !dH(b)) return null;
var x;
switch (u) {
case "start":
@@ -55006,7 +55415,7 @@ var R2 = (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__*/ P.createElement("text", N2({}, PL(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ P.createElement("text", N2({}, zL(v), {
ref: t,
x: y,
y: b,
@@ -55039,26 +55448,26 @@ function G2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? W2(Object(n), !0).forEach(function(t) {
- E_e(e, t, n[t]);
+ B_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function E_e(e, t, n) {
- return (t = D_e(t)) in e ? Object.defineProperty(e, t, {
+function B_e(e, t, n) {
+ return (t = V_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function D_e(e) {
- var t = O_e(e, "string");
+function V_e(e) {
+ var t = H_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function O_e(e, t) {
+function H_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55068,8 +55477,8 @@ function O_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var k_e = (e) => {
- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = OU(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
+var U_e = (e) => {
+ var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = PU(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
if (n === "top") {
var T = {
x: d + l / 2,
@@ -55150,9 +55559,9 @@ var k_e = (e) => {
y: s + c - _,
horizontalAnchor: S,
verticalAnchor: v
- }, k) : n && typeof n == "object" && (Z(n.x) || HR(n.x)) && (Z(n.y) || HR(n.y)) ? G2({
- x: o + GR(n.x, m),
- y: s + GR(n.y, c),
+ }, k) : n && typeof n == "object" && (Z(n.x) || qR(n.x)) && (Z(n.y) || qR(n.y)) ? G2({
+ x: o + XR(n.x, m),
+ y: s + XR(n.y, c),
horizontalAnchor: "end",
verticalAnchor: "end"
}, k) : G2({
@@ -55161,17 +55570,17 @@ var k_e = (e) => {
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
-}, A_e = ["labelRef"], j_e = ["content"];
+}, W_e = ["labelRef"], G_e = ["content"];
function K2(e, t) {
if (e == null) return {};
- var n, r, i = M_e(e, t);
+ var n, r, i = K_e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function M_e(e, t) {
+function K_e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -55194,26 +55603,26 @@ function J2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? q2(Object(n), !0).forEach(function(t) {
- N_e(e, t, n[t]);
+ q_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function N_e(e, t, n) {
- return (t = P_e(t)) in e ? Object.defineProperty(e, t, {
+function q_e(e, t, n) {
+ return (t = J_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function P_e(e) {
- var t = F_e(e, "string");
+function J_e(e) {
+ var t = Y_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function F_e(e, t) {
+function Y_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55250,9 +55659,9 @@ var X2 = /*#__PURE__*/ (0, P.createContext)(null), Z2 = (e) => {
]);
return /*#__PURE__*/ P.createElement(X2.Provider, { value: c }, s);
}, Q2 = () => {
- var e = (0, P.useContext)(X2), t = kU();
- return e || (t ? OU(t) : void 0);
-}, $2 = /*#__PURE__*/ (0, P.createContext)(null), I_e = (e) => {
+ var e = (0, P.useContext)(X2), t = FU();
+ return e || (t ? PU(t) : void 0);
+}, $2 = /*#__PURE__*/ (0, P.createContext)(null), X_e = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, P.useMemo)(() => ({
cx: t,
cy: n,
@@ -55272,13 +55681,13 @@ var X2 = /*#__PURE__*/ (0, P.createContext)(null), Z2 = (e) => {
]);
return /*#__PURE__*/ P.createElement($2.Provider, { value: l }, c);
}, e4 = () => {
- var e = (0, P.useContext)($2), t = Q(gY);
+ var e = (0, P.useContext)($2), t = Q(SY);
return e || t;
-}, L_e = (e) => {
- var { value: t, formatter: n } = e, r = YR(e.children) ? t : e.children;
+}, Z_e = (e) => {
+ var { value: t, formatter: n } = e, r = ez(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, t4 = (e) => e != null && typeof e == "function", R_e = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 360), z_e = (e, t, n, r, i) => {
- var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = R_e(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, t4 = (e) => e != null && typeof e == "function", Q_e = (e, t) => GR(t - e) * Math.min(Math.abs(t - e), 360), $_e = (e, t, n, r, i) => {
+ var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = Q_e(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -55292,9 +55701,9 @@ var X2 = /*#__PURE__*/ (0, P.createContext)(null), Z2 = (e) => {
default: throw Error(`Unsupported position ${t}`);
}
v = h <= 0 ? v : !v;
- var y = Kq(s, c, m, _), b = Kq(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
+ var y = Qq(s, c, m, _), b = Qq(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
- ${b.x},${b.y}`, S = YR(e.id) ? WR("recharts-radial-line-") : e.id;
+ ${b.x},${b.y}`, S = ez(e.id) ? YR("recharts-radial-line-") : e.id;
return /*#__PURE__*/ P.createElement("text", Y2({}, r, {
dominantBaseline: "central",
className: Pm("recharts-radial-bar-label", o)
@@ -55302,10 +55711,10 @@ var X2 = /*#__PURE__*/ (0, P.createContext)(null), Z2 = (e) => {
id: S,
d: x
})), /*#__PURE__*/ P.createElement("textPath", { xlinkHref: `#${S}` }, n));
-}, B_e = (e, t, n) => {
+}, eve = (e, t, n) => {
var { cx: r, cy: i, innerRadius: a, outerRadius: o, startAngle: s, endAngle: c } = e, l = (s + c) / 2;
if (n === "outside") {
- var { x: u, y: d } = Kq(r, i, o + t, l);
+ var { x: u, y: d } = Qq(r, i, o + t, l);
return {
x: u,
y: d,
@@ -55331,21 +55740,21 @@ var X2 = /*#__PURE__*/ (0, P.createContext)(null), Z2 = (e) => {
textAnchor: "middle",
verticalAnchor: "end"
};
- var { x: f, y: p } = Kq(r, i, (a + o) / 2, l);
+ var { x: f, y: p } = Qq(r, i, (a + o) / 2, l);
return {
x: f,
y: p,
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, n4 = (e) => e != null && "cx" in e && Z(e.cx), V_e = {
+}, n4 = (e) => e != null && "cx" in e && Z(e.cx), tve = {
angle: 0,
offset: 5,
- zIndex: JJ.label,
+ zIndex: eY.label,
position: "middle",
textBreakAll: !1
};
-function H_e(e) {
+function nve(e) {
if (!n4(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
@@ -55358,24 +55767,24 @@ function H_e(e) {
};
}
function r4(e) {
- var t = cz(e, V_e), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = e4(), f = Q2(), p = n == null ? i === "center" ? f : d ?? f : n4(n) ? n : OU(n), m, h, g = H_e(p);
- if (!p || YR(a) && YR(o) && !/*#__PURE__*/ (0, P.isValidElement)(s) && typeof s != "function") return null;
+ var t = pz(e, tve), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = e4(), f = Q2(), p = n == null ? i === "center" ? f : d ?? f : n4(n) ? n : PU(n), m, h, g = nve(p);
+ if (!p || ez(a) && ez(o) && !/*#__PURE__*/ (0, P.isValidElement)(s) && typeof s != "function") return null;
var _ = J2(J2({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, P.isValidElement)(s)) {
- var { labelRef: v } = _, y = K2(_, A_e);
+ var { labelRef: v } = _, y = K2(_, W_e);
return /*#__PURE__*/ (0, P.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = K2(_, j_e);
+ var { content: b } = _, x = K2(_, G_e);
if (m = /*#__PURE__*/ (0, P.createElement)(s, x), /*#__PURE__*/ (0, P.isValidElement)(m)) return m;
- } else m = L_e(t);
- var S = PL(t);
+ } else m = Z_e(t);
+ var S = zL(t);
if (n4(p)) {
- if (i === "insideStart" || i === "insideEnd" || i === "end") return z_e(t, i, m, S, p);
- h = B_e(p, t.offset, t.position);
+ if (i === "insideStart" || i === "insideEnd" || i === "end") return $_e(t, i, m, S, p);
+ h = eve(p, t.offset, t.position);
} else {
if (!g) return null;
- var C = k_e({
+ var C = U_e({
viewBox: g,
position: i,
offset: t.offset,
@@ -55404,7 +55813,7 @@ var i4 = (e, t, n) => {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ P.createElement(r4, Y2({ key: "label-implicit" }, r)) : UR(e) ? /*#__PURE__*/ P.createElement(r4, Y2({
+ return e === !0 ? /*#__PURE__*/ P.createElement(r4, Y2({ key: "label-implicit" }, r)) : JR(e) ? /*#__PURE__*/ P.createElement(r4, Y2({
key: "label-implicit",
value: e
}, r)) : /*#__PURE__*/ (0, P.isValidElement)(e) ? e.type === r4 ? /*#__PURE__*/ (0, P.cloneElement)(e, J2({ key: "label-implicit" }, r)) : /*#__PURE__*/ P.createElement(r4, Y2({
@@ -55419,13 +55828,13 @@ function a4(e) {
var { label: t, labelRef: n } = e;
return i4(t, Q2(), n) || null;
}
-function U_e(e) {
+function rve(e) {
var { label: t } = e;
return i4(t, e4()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var W_e = ["valueAccessor"], G_e = [
+var ive = ["valueAccessor"], ave = [
"dataKey",
"clockWise",
"id",
@@ -55443,14 +55852,14 @@ function o4() {
}
function s4(e, t) {
if (e == null) return {};
- var n, r, i = K_e(e, t);
+ var n, r, i = ove(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function K_e(e, t) {
+function ove(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -55459,21 +55868,21 @@ function K_e(e, t) {
}
return n;
}
-var q_e = (e) => {
+var sve = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (x_e(t)) return t;
-}, c4 = /*#__PURE__*/ (0, P.createContext)(void 0), l4 = c4.Provider, u4 = /*#__PURE__*/ (0, P.createContext)(void 0), J_e = u4.Provider;
-function Y_e() {
+ if (F_e(t)) return t;
+}, c4 = /*#__PURE__*/ (0, P.createContext)(void 0), l4 = c4.Provider, u4 = /*#__PURE__*/ (0, P.createContext)(void 0), cve = u4.Provider;
+function lve() {
return (0, P.useContext)(c4);
}
-function X_e() {
+function uve() {
return (0, P.useContext)(u4);
}
function d4(e) {
- var { valueAccessor: t = q_e } = e, n = s4(e, W_e), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = s4(n, G_e), l = Y_e(), u = X_e(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ P.createElement(t2, { zIndex: s ?? JJ.label }, /*#__PURE__*/ P.createElement(RL, { className: "recharts-label-list" }, d.map((e, i) => {
- var s = YR(r) ? t(e, i) : fH(e.payload, r), l = YR(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ P.createElement(r4, o4({ key: `label-${i}` }, PL(e), c, l, {
+ var { valueAccessor: t = sve } = e, n = s4(e, ive), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = s4(n, ave), l = lve(), u = uve(), d = l || u;
+ return !d || !d.length ? null : /*#__PURE__*/ P.createElement(t2, { zIndex: s ?? eY.label }, /*#__PURE__*/ P.createElement(UL, { className: "recharts-label-list" }, d.map((e, i) => {
+ var s = ez(r) ? t(e, i) : vH(e.payload, r), l = ez(a) ? {} : { id: `${a}-${i}` };
+ return /*#__PURE__*/ P.createElement(r4, o4({ key: `label-${i}` }, zL(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -55494,12 +55903,12 @@ function f4(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var Z_e = [
+var dve = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], Q_e;
+], fve;
function p4() {
return p4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -55509,16 +55918,16 @@ function p4() {
return e;
}, p4.apply(null, arguments);
}
-function $_e(e, t) {
+function pve(e, t) {
if (e == null) return {};
- var n, r, i = eve(e, t);
+ var n, r, i = mve(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function eve(e, t) {
+function mve(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -55527,10 +55936,10 @@ function eve(e, t) {
}
return n;
}
-function tve(e, t) {
+function hve(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var m4 = (e) => e != null && e.x === +e.x && e.y === +e.y, nve = function() {
+var m4 = (e) => e != null && e.x === +e.x && e.y === +e.y, gve = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
@@ -55541,9 +55950,9 @@ var m4 = (e) => e != null && e.x === +e.x && e.y === +e.y, nve = function() {
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
}, h4 = (e, t) => {
- var n = nve(e);
+ var n = gve(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => zR(Q_e ||= tve([
+ var r = n.map((e) => e.reduce((e, t, n) => WR(fve ||= hve([
"",
"",
"",
@@ -55551,29 +55960,29 @@ var m4 = (e) => e != null && e.x === +e.x && e.y === +e.y, nve = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, rve = (e, t, n) => {
+}, _ve = (e, t, n) => {
var r = h4(e, n);
return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${h4(Array.from(t).reverse(), n).slice(1)}`;
}, g4 = (e) => {
- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = $_e(e, Z_e);
+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = pve(e, dve);
if (!t || !t.length) return null;
var o = Pm("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = rve(t, r, i);
- return /*#__PURE__*/ P.createElement("g", { className: o }, /*#__PURE__*/ P.createElement("path", p4({}, PL(a), {
+ var s = a.stroke && a.stroke !== "none", c = _ve(t, r, i);
+ return /*#__PURE__*/ P.createElement("g", { className: o }, /*#__PURE__*/ P.createElement("path", p4({}, zL(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ P.createElement("path", p4({}, PL(a), {
+ })), s ? /*#__PURE__*/ P.createElement("path", p4({}, zL(a), {
fill: "none",
d: h4(t, i)
- })) : null, s ? /*#__PURE__*/ P.createElement("path", p4({}, PL(a), {
+ })) : null, s ? /*#__PURE__*/ P.createElement("path", p4({}, zL(a), {
fill: "none",
d: h4(r, i)
})) : null);
}
var l = h4(t, i);
- return /*#__PURE__*/ P.createElement("path", p4({}, PL(a), {
+ return /*#__PURE__*/ P.createElement("path", p4({}, zL(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -55592,7 +56001,7 @@ function _4() {
}
var v4 = (e) => {
var { cx: t, cy: n, r, className: i } = e, a = Pm("recharts-dot", i);
- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ P.createElement("circle", _4({}, ML(e), az(e), {
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ P.createElement("circle", _4({}, LL(e), uz(e), {
className: a,
cx: t,
cy: n,
@@ -55601,8 +56010,8 @@ var v4 = (e) => {
}, y4 = (e) => e.graphicalItems.polarItems, b4 = $([
y4,
R$,
- $([_Y, vY], V$)
-], U$), x4 = $([$([b4], q$), bJ], J$), S4 = $([
+ $([CY, wY], V$)
+], U$), x4 = $([$([b4], q$), EJ], J$), S4 = $([
x4,
R$,
b4
@@ -55612,22 +56021,22 @@ $([
R$,
b4
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
- value: fH(e, t.dataKey ?? n.dataKey),
+ value: vH(e, t.dataKey ?? n.dataKey),
errorDomain: []
}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({
value: e,
errorDomain: []
})) : e.map((e) => ({
- value: fH(e, t.dataKey),
+ value: vH(e, t.dataKey),
errorDomain: []
})));
var C4 = () => void 0, w4 = $([
R$,
- FU,
+ VU,
x4,
S4,
- VJ,
- _Y,
+ qJ,
+ CY,
$([
R$,
c1,
@@ -55638,45 +56047,45 @@ var C4 = () => void 0, w4 = $([
R$,
b4,
u1,
- _Y
+ CY
], f1),
C4,
- FU,
- _Y
+ VU,
+ CY
], b1)
], x1), T4 = $([
w4,
z$,
C1
-], w1), ive = $([C1, $([
+], w1), vve = $([C1, $([
R$,
w4,
T4,
- _Y
-], E1)], OY), E4 = (e, t, n) => {
+ CY
+], E1)], PY), E4 = (e, t, n) => {
switch (t) {
- case "angleAxis": return oY(e, n);
- case "radiusAxis": return sY(e, n);
+ case "angleAxis": return fY(e, n);
+ case "radiusAxis": return pY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, D4 = (e, t, n) => {
switch (t) {
- case "angleAxis": return pY(e, n);
- case "radiusAxis": return hY(e, n);
+ case "angleAxis": return yY(e, n);
+ case "radiusAxis": return xY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, O4 = $([$([
E4,
C1,
- ive,
+ vve,
D4
-], T$)], DY), k4 = $([
- FU,
+], T$)], NY), k4 = $([
+ VU,
S4,
z$,
- _Y
+ CY
], j1), A4 = $([
- FU,
+ VU,
E4,
C1,
O4,
@@ -55684,8 +56093,8 @@ var C4 = () => void 0, w4 = $([
D4,
H1,
k4,
- _Y
-], W1), ave = $([A4], (e) => {
+ CY
+], W1), yve = $([A4], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -55693,19 +56102,19 @@ var C4 = () => void 0, w4 = $([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), ove = $([
- FU,
+}), bve = $([
+ VU,
E4,
O4,
D4,
H1,
k4,
- _Y
-], K1), sve = $([(e, t) => A4(e, "angleAxis", t, !1)], (e) => {
+ CY
+], K1), xve = $([(e, t) => A4(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), cve = $([(e, t) => A4(e, "radiusAxis", t, !1)], (e) => {
+}), Sve = $([(e, t) => A4(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), lve = [
+}), Cve = [
"gridType",
"radialLines",
"angleAxisId",
@@ -55718,16 +56127,16 @@ var C4 = () => void 0, w4 = $([
"polarRadius",
"zIndex"
];
-function uve(e, t) {
+function wve(e, t) {
if (e == null) return {};
- var n, r, i = dve(e, t);
+ var n, r, i = Tve(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function dve(e, t) {
+function Tve(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -55759,26 +56168,26 @@ function N4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? M4(Object(n), !0).forEach(function(t) {
- fve(e, t, n[t]);
+ Eve(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fve(e, t, n) {
- return (t = pve(t)) in e ? Object.defineProperty(e, t, {
+function Eve(e, t, n) {
+ return (t = Dve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pve(e) {
- var t = mve(e, "string");
+function Dve(e) {
+ var t = Ove(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mve(e, t) {
+function Ove(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55788,18 +56197,18 @@ function mve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var hve = (e, t, n, r) => {
+var kve = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
- var o = Kq(t, n, e, r);
+ var o = Qq(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, gve = (e) => {
+}, Ave = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
- var s = N4({ stroke: "#ccc" }, ML(e));
+ var s = N4({ stroke: "#ccc" }, LL(e));
return /*#__PURE__*/ P.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
- var a = Kq(t, n, r, e), o = Kq(t, n, i, e);
+ var a = Qq(t, n, r, e), o = Qq(t, n, i, e);
return /*#__PURE__*/ P.createElement("line", j4({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
@@ -55811,7 +56220,7 @@ var hve = (e, t, n, r) => {
var { cx: t, cy: n, radius: r } = e, i = N4({
stroke: "#ccc",
fill: "none"
- }, ML(e));
+ }, LL(e));
return /*#__PURE__*/ P.createElement("circle", j4({}, i, {
className: Pm("recharts-polar-grid-concentric-circle", e.className),
cx: t,
@@ -55822,12 +56231,12 @@ var hve = (e, t, n, r) => {
var { radius: t } = e, n = N4({
stroke: "#ccc",
fill: "none"
- }, ML(e));
+ }, LL(e));
return /*#__PURE__*/ P.createElement("path", j4({}, n, {
className: Pm("recharts-polar-grid-concentric-polygon", e.className),
- d: hve(t, e.cx, e.cy, e.polarAngles)
+ d: kve(t, e.cx, e.cy, e.polarAngles)
}));
-}, _ve = (e) => {
+}, jve = (e) => {
var { polarRadius: t, gridType: n } = e;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
@@ -55841,14 +56250,14 @@ var hve = (e, t, n, r) => {
radius: t
}));
}));
-}, vve = {
+}, Mve = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
- zIndex: JJ.grid
+ zIndex: eY.grid
}, I4 = (e) => {
- var t = cz(e, vve), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = uve(t, lve), m = Q(gY), h = Q((e) => sve(e, i)), g = Q((e) => cve(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+ var t = pz(e, Mve), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = wve(t, Cve), m = Q(SY), h = Q((e) => xve(e, i)), g = Q((e) => Sve(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
var y = N4({
cx: m?.cx ?? o ?? 0,
@@ -55859,13 +56268,13 @@ var hve = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ P.createElement(t2, { zIndex: y.zIndex }, /*#__PURE__*/ P.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ P.createElement(_ve, j4({
+ return b <= 0 ? null : /*#__PURE__*/ P.createElement(t2, { zIndex: y.zIndex }, /*#__PURE__*/ P.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ P.createElement(jve, j4({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ P.createElement(gve, j4({
+ })), /*#__PURE__*/ P.createElement(Ave, j4({
gridType: n,
radialLines: r
}, y, {
@@ -55881,11 +56290,11 @@ function L4(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function yve(e, t = pz) {
+function Nve(e, t = vz) {
if (e == null) return;
let n = L4(e);
if (n.length === 0) return;
- let r = jz(t), i, a;
+ let r = Iz(t), i, a;
for (let e = 0; e < n.length; e++) {
let t = n[e], o = r(t, e, n);
o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o > a) && (a = o, i = t);
@@ -55894,11 +56303,11 @@ function yve(e, t = pz) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function bve(e, t = pz) {
+function Pve(e, t = vz) {
if (e == null) return;
let n = L4(e);
if (n.length === 0) return;
- let r = jz(t), i, a;
+ let r = Iz(t), i, a;
for (let e = 0; e < n.length; e++) {
let t = n[e], o = r(t, e, n);
o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o < a) && (a = o, i = t);
@@ -55907,7 +56316,7 @@ function bve(e, t = pz) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var R4 = bV({
+var R4 = TV({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -55915,19 +56324,19 @@ var R4 = bV({
},
reducers: {
addRadiusAxis(e, t) {
- e.radiusAxis[t.payload.id] = LW(t.payload);
+ e.radiusAxis[t.payload.id] = UW(t.payload);
},
removeRadiusAxis(e, t) {
delete e.radiusAxis[t.payload.id];
},
addAngleAxis(e, t) {
- e.angleAxis[t.payload.id] = LW(t.payload);
+ e.angleAxis[t.payload.id] = UW(t.payload);
},
removeAngleAxis(e, t) {
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: xve, removeRadiusAxis: Sve, addAngleAxis: Cve, removeAngleAxis: wve } = R4.actions, Tve = R4.reducer;
+}), { addRadiusAxis: Fve, removeRadiusAxis: Ive, addAngleAxis: Lve, removeAngleAxis: Rve } = R4.actions, zve = R4.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
function z4(e) {
@@ -55935,12 +56344,12 @@ function z4(e) {
}
//#endregion
//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js
-var Eve = ["type"], Dve = [
+var Bve = ["type"], Vve = [
"cx",
"cy",
"angle",
"axisLine"
-], Ove = [
+], Hve = [
"angle",
"tickFormatter",
"stroke",
@@ -55969,26 +56378,26 @@ function H4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? V4(Object(n), !0).forEach(function(t) {
- kve(e, t, n[t]);
+ Uve(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function kve(e, t, n) {
- return (t = Ave(t)) in e ? Object.defineProperty(e, t, {
+function Uve(e, t, n) {
+ return (t = Wve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Ave(e) {
- var t = jve(e, "string");
+function Wve(e) {
+ var t = Gve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jve(e, t) {
+function Gve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56000,14 +56409,14 @@ function jve(e, t) {
}
function U4(e, t) {
if (e == null) return {};
- var n, r, i = Mve(e, t);
+ var n, r, i = Kve(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Mve(e, t) {
+function Kve(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56016,20 +56425,20 @@ function Mve(e, t) {
}
return n;
}
-var Nve = "radiusAxis";
-function Pve(e) {
- var t = Fz(), n = zU(), r = (0, P.useMemo)(() => {
- var { type: t } = e, r = U4(e, Eve), i = QJ(n, "radiusAxis", t);
+var qve = "radiusAxis";
+function Jve(e) {
+ var t = Bz(), n = GU(), r = (0, P.useMemo)(() => {
+ var { type: t } = e, r = U4(e, Bve), i = iY(n, "radiusAxis", t);
if (i != null) return H4(H4({}, r), {}, { type: i });
}, [e, n]);
- return (0, P.useEffect)(() => r == null ? QR : (t(xve(r)), () => {
- t(Sve(r));
+ return (0, P.useEffect)(() => r == null ? rz : (t(Fve(r)), () => {
+ t(Ive(r));
}), [t, r]), null;
}
-var Fve = (e, t, n, r) => {
+var Yve = (e, t, n, r) => {
var { coordinate: i } = e;
- return Kq(n, r, i, t);
-}, Ive = (e) => {
+ return Qq(n, r, i, t);
+}, Xve = (e) => {
var t;
switch (e) {
case "left":
@@ -56041,49 +56450,49 @@ var Fve = (e, t, n, r) => {
default: t = "middle";
}
return t;
-}, Lve = (e, t, n, r) => {
- var i = yve(r, (e) => e.coordinate || 0);
+}, Zve = (e, t, n, r) => {
+ var i = Nve(r, (e) => e.coordinate || 0);
return {
cx: t,
cy: n,
startAngle: e,
endAngle: e,
- innerRadius: bve(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ innerRadius: Pve(r, (e) => e.coordinate || 0)?.coordinate || 0,
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, Rve = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = U4(e, Dve), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = Kq(n, r, s[0], i), l = Kq(n, r, s[1], i), u = H4(H4(H4({}, ML(o)), {}, { fill: "none" }, ML(a)), {}, {
+}, Qve = (e, t) => {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = U4(e, Vve), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = Qq(n, r, s[0], i), l = Qq(n, r, s[1], i), u = H4(H4(H4({}, LL(o)), {}, { fill: "none" }, LL(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
return /*#__PURE__*/ P.createElement("line", B4({ className: "recharts-polar-radius-axis-line" }, u));
-}, zve = (e, t, n) => /*#__PURE__*/ P.isValidElement(e) ? /*#__PURE__*/ P.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ P.createElement(U2, B4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), Bve = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = U4(e, Ove), s = Ive(e.orientation), c = ML(o), l = NL(a), u = t.map((t, o) => {
- var u = Fve(t, e.angle, e.cx, e.cy), d = H4(H4(H4(H4({
+}, $ve = (e, t, n) => /*#__PURE__*/ P.isValidElement(e) ? /*#__PURE__*/ P.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ P.createElement(U2, B4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), eye = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = U4(e, Hve), s = Xve(e.orientation), c = LL(o), l = RL(a), u = t.map((t, o) => {
+ var u = Yve(t, e.angle, e.cx, e.cy), d = H4(H4(H4(H4({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ P.createElement(RL, B4({
+ return /*#__PURE__*/ P.createElement(UL, B4({
className: Pm("recharts-polar-radius-axis-tick", z4(a)),
key: `tick-${t.coordinate}`
- }, oz(e, t, o)), zve(a, d, r ? r(t.value, o) : t.value));
+ }, dz(e, t, o)), $ve(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ P.createElement(RL, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, Vve = (e) => {
- var { radiusAxisId: t } = e, n = Q(gY), r = Q((e) => O4(e, "radiusAxis", t)), i = Q((e) => A4(e, "radiusAxis", t, !1));
+ return /*#__PURE__*/ P.createElement(UL, { className: "recharts-polar-radius-axis-ticks" }, u);
+}, tye = (e) => {
+ var { radiusAxisId: t } = e, n = Q(SY), r = Q((e) => O4(e, "radiusAxis", t)), i = Q((e) => A4(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
var a = H4(H4({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ P.createElement(t2, { zIndex: a.zIndex }, /*#__PURE__*/ P.createElement(RL, { className: Pm("recharts-polar-radius-axis", Nve, a.className) }, s && Rve(a, i), o && Bve(a, i), /*#__PURE__*/ P.createElement(I_e, Lve(a.angle, a.cx, a.cy, i), /*#__PURE__*/ P.createElement(U_e, { label: a.label }), a.children)));
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: a.zIndex }, /*#__PURE__*/ P.createElement(UL, { className: Pm("recharts-polar-radius-axis", qve, a.className) }, s && Qve(a, i), o && eye(a, i), /*#__PURE__*/ P.createElement(X_e, Zve(a.angle, a.cx, a.cy, i), /*#__PURE__*/ P.createElement(rve, { label: a.label }), a.children)));
};
function W4(e) {
- var t = cz(e, XJ);
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Pve, {
+ var t = pz(e, nY);
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Jve, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -56100,12 +56509,12 @@ function W4(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ P.createElement(Vve, t));
+ }), /*#__PURE__*/ P.createElement(tye, t));
}
W4.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var Hve = ["children", "type"], Uve = ["ref"];
+var nye = ["children", "type"], rye = ["ref"];
function G4() {
return G4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -56129,26 +56538,26 @@ function q4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? K4(Object(n), !0).forEach(function(t) {
- Wve(e, t, n[t]);
+ iye(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Wve(e, t, n) {
- return (t = Gve(t)) in e ? Object.defineProperty(e, t, {
+function iye(e, t, n) {
+ return (t = aye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Gve(e) {
- var t = Kve(e, "string");
+function aye(e) {
+ var t = oye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Kve(e, t) {
+function oye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56160,14 +56569,14 @@ function Kve(e, t) {
}
function J4(e, t) {
if (e == null) return {};
- var n, r, i = qve(e, t);
+ var n, r, i = sye(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function qve(e, t) {
+function sye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56176,47 +56585,47 @@ function qve(e, t) {
}
return n;
}
-var Y4 = 1e-5, Jve = Math.cos(Wq(45)), Yve = "angleAxis";
-function Xve(e) {
- var t = Fz(), n = zU(), r = (0, P.useMemo)(() => {
- var { children: t, type: r } = e, i = J4(e, Hve), a = QJ(n, "angleAxis", r);
+var Y4 = 1e-5, cye = Math.cos(Xq(45)), lye = "angleAxis";
+function uye(e) {
+ var t = Bz(), n = GU(), r = (0, P.useMemo)(() => {
+ var { children: t, type: r } = e, i = J4(e, nye), a = iY(n, "angleAxis", r);
if (a != null) return q4(q4({}, i), {}, { type: a });
- }, [e, n]), i = r === Q((e) => oY(e, r?.id));
- return (0, P.useEffect)(() => r == null ? QR : (t(Cve(r)), () => {
- t(wve(r));
+ }, [e, n]), i = r === Q((e) => fY(e, r?.id));
+ return (0, P.useEffect)(() => r == null ? rz : (t(Lve(r)), () => {
+ t(Rve(r));
}), [t, r]), i ? e.children : null;
}
-var Zve = (e, t) => {
- var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = Kq(n, r, i, e.coordinate), l = Kq(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
+var dye = (e, t) => {
+ var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = Qq(n, r, i, e.coordinate), l = Qq(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
};
-}, Qve = (e, t) => {
- var n = Math.cos(Wq(-e.coordinate));
+}, fye = (e, t) => {
+ var n = Math.cos(Xq(-e.coordinate));
return n > Y4 ? t === "outer" ? "start" : "end" : n < -Y4 ? t === "outer" ? "end" : "start" : "middle";
-}, $ve = (e) => {
- var t = Math.cos(Wq(-e.coordinate)), n = Math.sin(Wq(-e.coordinate));
- return Math.abs(t) <= Jve ? n > 0 ? "start" : "end" : "middle";
-}, eye = (e) => {
+}, pye = (e) => {
+ var t = Math.cos(Xq(-e.coordinate)), n = Math.sin(Xq(-e.coordinate));
+ return Math.abs(t) <= cye ? n > 0 ? "start" : "end" : "middle";
+}, mye = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
- var s = q4(q4({}, ML(e)), {}, { fill: "none" }, ML(a));
+ var s = q4(q4({}, LL(e)), {}, { fill: "none" }, LL(a));
if (i === "circle") return /*#__PURE__*/ P.createElement(v4, G4({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
- var c = o.map((e) => Kq(t, n, r, e.coordinate));
+ var c = o.map((e) => Qq(t, n, r, e.coordinate));
return /*#__PURE__*/ P.createElement(g4, G4({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, tye = (e) => {
+}, hye = (e) => {
var { tick: t, tickProps: n, value: r } = e;
return t ? /*#__PURE__*/ P.isValidElement(t) ? /*#__PURE__*/ P.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ P.createElement(U2, G4({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
-}, nye = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = ML(e), { ref: s } = o, c = J4(o, Uve), l = NL(t), u = q4(q4({}, c), {}, { fill: "none" }, ML(n)), d = a.map((a, o) => {
- var s = Zve(a, e), d = Qve(a, e.orientation), f = $ve(a), p = q4(q4(q4({}, c), {}, {
+}, gye = (e) => {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = LL(e), { ref: s } = o, c = J4(o, rye), l = RL(t), u = q4(q4({}, c), {}, { fill: "none" }, LL(n)), d = a.map((a, o) => {
+ var s = dye(a, e), d = fye(a, e.orientation), f = pye(a), p = q4(q4(q4({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -56227,28 +56636,28 @@ var Zve = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ P.createElement(RL, G4({
+ return /*#__PURE__*/ P.createElement(UL, G4({
className: Pm("recharts-polar-angle-axis-tick", z4(t)),
key: `tick-${a.coordinate}`
- }, oz(e, a, o)), n && /*#__PURE__*/ P.createElement("line", G4({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ P.createElement(tye, {
+ }, dz(e, a, o)), n && /*#__PURE__*/ P.createElement("line", G4({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ P.createElement(hye, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ P.createElement(RL, { className: "recharts-polar-angle-axis-ticks" }, d);
-}, rye = (e) => {
- var { angleAxisId: t } = e, n = Q(gY), r = Q((e) => O4(e, "angleAxis", t)), i = tU(), a = Q((e) => ave(e, "angleAxis", t, i));
+ return /*#__PURE__*/ P.createElement(UL, { className: "recharts-polar-angle-axis-ticks" }, d);
+}, _ye = (e) => {
+ var { angleAxisId: t } = e, n = Q(SY), r = Q((e) => O4(e, "angleAxis", t)), i = sU(), a = Q((e) => yve(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
var o = q4(q4(q4({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ P.createElement(t2, { zIndex: o.zIndex }, /*#__PURE__*/ P.createElement(RL, { className: Pm("recharts-polar-angle-axis", Yve, o.className) }, /*#__PURE__*/ P.createElement(eye, o), /*#__PURE__*/ P.createElement(nye, o)));
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: o.zIndex }, /*#__PURE__*/ P.createElement(UL, { className: Pm("recharts-polar-angle-axis", lye, o.className) }, /*#__PURE__*/ P.createElement(mye, o), /*#__PURE__*/ P.createElement(gye, o)));
};
function X4(e) {
- var t = cz(e, YJ);
- return /*#__PURE__*/ P.createElement(Xve, {
+ var t = pz(e, tY);
+ return /*#__PURE__*/ P.createElement(uye, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -56265,12 +56674,12 @@ function X4(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ P.createElement(rye, t));
+ }, /*#__PURE__*/ P.createElement(_ye, t));
}
X4.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var iye = /* @__PURE__ */ T(((e) => {
+var vye = /* @__PURE__ */ T(((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) {
@@ -56299,26 +56708,26 @@ var iye = /* @__PURE__ */ T(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), aye = (/* @__PURE__ */ T(((e, t) => {
- t.exports = iye();
+})), yye = (/* @__PURE__ */ T(((e, t) => {
+ t.exports = vye();
})))(), Z4 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", Q4 = null, $4 = null, e3 = (e) => {
if (e === Q4 && Array.isArray($4)) return $4;
var t = [];
return P.Children.forEach(e, (e) => {
- YR(e) || ((0, aye.isFragment)(e) ? t = t.concat(e3(e.props.children)) : t.push(e));
+ ez(e) || ((0, yye.isFragment)(e) ? t = t.concat(e3(e.props.children)) : t.push(e));
}), $4 = t, Q4 = e, t;
};
function t3(e, t) {
var n = [], r = [];
return r = Array.isArray(t) ? t.map((e) => Z4(e)) : [Z4(t)], e3(e).forEach((e) => {
- var t = LR(e, "type.displayName") || LR(e, "type.name");
+ var t = HR(e, "type.displayName") || HR(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
var n3 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
-function oye(e) {
+function bye(e) {
if (typeof e != "object" || !e) return !1;
if (Object.getPrototypeOf(e) === null) return !0;
if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -56331,7 +56740,7 @@ function oye(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
-var sye, cye, lye, uye, dye;
+var xye, Sye, Cye, wye, Tye;
function r3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -56346,26 +56755,26 @@ function i3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? r3(Object(n), !0).forEach(function(t) {
- fye(e, t, n[t]);
+ Eye(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fye(e, t, n) {
- return (t = pye(t)) in e ? Object.defineProperty(e, t, {
+function Eye(e, t, n) {
+ return (t = Dye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pye(e) {
- var t = mye(e, "string");
+function Dye(e) {
+ var t = Oye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mye(e, t) {
+function Oye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56388,29 +56797,29 @@ function o3(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
var s3 = (e, t, n, r, i) => {
- var a = n - r, o = zR(sye ||= o3([
+ var a = n - r, o = WR(xye ||= o3([
"M ",
",",
""
]), e, t);
- return o += zR(cye ||= o3([
+ return o += WR(Sye ||= o3([
"L ",
",",
""
- ]), e + n, t), o += zR(lye ||= o3([
+ ]), e + n, t), o += WR(Cye ||= o3([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += zR(uye ||= o3([
+ ]), e + n - a / 2, t + i), o += WR(wye ||= o3([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += zR(dye ||= o3([
+ ]), e + n - a / 2 - r, t + i), o += WR(Tye ||= o3([
"L ",
",",
" Z"
]), e, t), o;
-}, hye = {
+}, kye = {
x: 0,
y: 0,
upperWidth: 0,
@@ -56420,8 +56829,8 @@ var s3 = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, gye = (e) => {
- var t = cz(e, hye), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, P.useRef)(null), [p, m] = (0, P.useState)(-1), h = (0, P.useRef)(i), g = (0, P.useRef)(a), _ = (0, P.useRef)(o), v = (0, P.useRef)(n), y = (0, P.useRef)(r), b = pq(e, "trapezoid-");
+}, Aye = (e) => {
+ var t = pz(e, kye), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, P.useRef)(null), [p, m] = (0, P.useState)(-1), h = (0, P.useRef)(i), g = (0, P.useRef)(a), _ = (0, P.useRef)(o), v = (0, P.useRef)(n), y = (0, P.useRef)(r), b = yq(e, "trapezoid-");
if ((0, P.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
@@ -56429,12 +56838,12 @@ var s3 = (e, t, n, r, i) => {
} catch {}
}, []), n !== +n || r !== +r || i !== +i || a !== +a || o !== +o || i === 0 && a === 0 || o === 0) return null;
var x = Pm("recharts-trapezoid", s);
- if (!d) return /*#__PURE__*/ P.createElement("g", null, /*#__PURE__*/ P.createElement("path", a3({}, PL(t), {
+ if (!d) return /*#__PURE__*/ P.createElement("g", null, /*#__PURE__*/ P.createElement("path", a3({}, zL(t), {
className: x,
d: s3(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 = PK(["strokeDasharray"], l, c);
- return /*#__PURE__*/ P.createElement(fq, {
+ 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 = BK(["strokeDasharray"], l, c);
+ return /*#__PURE__*/ P.createElement(vq, {
animationId: b,
key: b,
canBegin: p > 0,
@@ -56443,35 +56852,35 @@ var s3 = (e, t, n, r, i) => {
isActive: d,
begin: u
}, (e) => {
- var s = qR(S, i, e), c = qR(C, a, e), l = qR(w, o, e), u = qR(T, n, e), d = qR(E, r, e);
+ var s = QR(S, i, e), c = QR(C, a, e), l = QR(w, o, e), u = QR(T, n, e), d = QR(E, r, e);
f.current && (h.current = s, g.current = c, _.current = l, v.current = u, y.current = d);
var p = e > 0 ? {
transition: k,
strokeDasharray: O
} : { strokeDasharray: D };
- return /*#__PURE__*/ P.createElement("path", a3({}, PL(t), {
+ return /*#__PURE__*/ P.createElement("path", a3({}, zL(t), {
className: x,
d: s3(u, d, s, c, l),
ref: f,
style: i3(i3({}, p), t.style)
}));
});
-}, _ye = [
+}, jye = [
"option",
"shapeType",
"activeClassName",
"inActiveClassName"
];
-function vye(e, t) {
+function Mye(e, t) {
if (e == null) return {};
- var n, r, i = yye(e, t);
+ var n, r, i = Nye(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function yye(e, t) {
+function Nye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56494,26 +56903,26 @@ function l3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? c3(Object(n), !0).forEach(function(t) {
- bye(e, t, n[t]);
+ Pye(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bye(e, t, n) {
- return (t = xye(t)) in e ? Object.defineProperty(e, t, {
+function Pye(e, t, n) {
+ return (t = Fye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xye(e) {
- var t = Sye(e, "string");
+function Fye(e) {
+ var t = Iye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Sye(e, t) {
+function Iye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56523,34 +56932,34 @@ function Sye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Cye(e, t) {
+function Lye(e, t) {
return l3(l3({}, t), e);
}
-function wye(e, t) {
+function Rye(e, t) {
return e === "symbols";
}
function u3(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
- case "rectangle": return /*#__PURE__*/ P.createElement(Lq, n);
- case "trapezoid": return /*#__PURE__*/ P.createElement(gye, n);
- case "sector": return /*#__PURE__*/ P.createElement(mJ, n);
+ case "rectangle": return /*#__PURE__*/ P.createElement(Uq, n);
+ case "trapezoid": return /*#__PURE__*/ P.createElement(Aye, n);
+ case "sector": return /*#__PURE__*/ P.createElement(bJ, n);
case "symbols":
- if (wye(t, n)) return /*#__PURE__*/ P.createElement(rz, n);
+ if (Rye(t, n)) return /*#__PURE__*/ P.createElement(cz, n);
break;
- case "curve": return /*#__PURE__*/ P.createElement(hK, n);
+ case "curve": return /*#__PURE__*/ P.createElement(xK, n);
default: return null;
}
}
-function Tye(e) {
+function zye(e) {
return /*#__PURE__*/ (0, P.isValidElement)(e) ? e.props : e;
}
function d3(e) {
- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = vye(e, _ye), o;
- if (/*#__PURE__*/ (0, P.isValidElement)(t)) o = /*#__PURE__*/ (0, P.cloneElement)(t, l3(l3({}, a), Tye(t)));
+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = Mye(e, jye), o;
+ if (/*#__PURE__*/ (0, P.isValidElement)(t)) o = /*#__PURE__*/ (0, P.cloneElement)(t, l3(l3({}, a), zye(t)));
else if (typeof t == "function") o = t(a, a.index);
- else if (oye(t) && typeof t != "boolean") {
- var s = Cye(t, a);
+ else if (bye(t) && typeof t != "boolean") {
+ var s = Lye(t, a);
o = /*#__PURE__*/ P.createElement(u3, {
shapeType: n,
elementProps: s
@@ -56562,12 +56971,12 @@ function d3(e) {
elementProps: c
});
}
- return a.isActive ? /*#__PURE__*/ P.createElement(RL, { className: r }, o) : /*#__PURE__*/ P.createElement(RL, { className: i }, o);
+ return a.isActive ? /*#__PURE__*/ P.createElement(UL, { className: r }, o) : /*#__PURE__*/ P.createElement(UL, { className: i }, o);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
var f3 = (e, t, n) => {
- var r = Fz();
+ var r = Bz();
return (i, a) => (o) => {
e?.(i, a, o), r(n0({
activeIndex: String(a),
@@ -56577,14 +56986,14 @@ var f3 = (e, t, n) => {
}));
};
}, p3 = (e) => {
- var t = Fz();
+ var t = Bz();
return (n, r) => (i) => {
- e?.(n, r, i), t(uhe());
+ e?.(n, r, i), t(whe());
};
}, m3 = (e, t, n) => {
- var r = Fz();
+ var r = Bz();
return (i, a) => (o) => {
- e?.(i, a, o), r(dhe({
+ e?.(i, a, o), r(The({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -56595,9 +57004,9 @@ var f3 = (e, t, n) => {
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
function h3(e) {
- var { tooltipEntrySettings: t } = e, n = Fz(), r = tU(), i = (0, P.useRef)(null);
+ var { tooltipEntrySettings: t } = e, n = Bz(), r = sU(), i = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
- r || (i.current === null ? n(ohe(t)) : i.current !== t && n(she({
+ r || (i.current === null ? n(bhe(t)) : i.current !== t && n(xhe({
prev: i.current,
next: t
})), i.current = t);
@@ -56606,15 +57015,15 @@ function h3(e) {
n,
r
]), (0, P.useLayoutEffect)(() => () => {
- i.current &&= (n(che(i.current)), null);
+ i.current &&= (n(She(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
function g3(e) {
- var { legendPayload: t } = e, n = Fz(), r = tU(), i = (0, P.useRef)(null);
+ var { legendPayload: t } = e, n = Bz(), r = sU(), i = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
- r || (i.current === null ? n(VW(t)) : i.current !== t && n(HW({
+ r || (i.current === null ? n(qW(t)) : i.current !== t && n(JW({
prev: i.current,
next: t
})), i.current = t);
@@ -56623,13 +57032,13 @@ function g3(e) {
r,
t
]), (0, P.useLayoutEffect)(() => () => {
- i.current &&= (n(UW(i.current)), null);
+ i.current &&= (n(YW(i.current)), null);
}, [n]), null;
}
function _3(e) {
- var { legendPayload: t } = e, n = Fz(), r = Q(FU), i = (0, P.useRef)(null);
+ var { legendPayload: t } = e, n = Bz(), r = Q(VU), i = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
- (r === "centric" || r === "radial") && (i.current === null ? n(VW(t)) : i.current !== t && n(HW({
+ (r === "centric" || r === "radial") && (i.current === null ? n(qW(t)) : i.current !== t && n(JW({
prev: i.current,
next: t
})), i.current = t);
@@ -56638,27 +57047,27 @@ function _3(e) {
r,
t
]), (0, P.useLayoutEffect)(() => () => {
- i.current &&= (n(UW(i.current)), null);
+ i.current &&= (n(YW(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var Eye = P.useId ?? (() => {
- var [e] = P.useState(() => WR("uid-"));
+var Bye = P.useId ?? (() => {
+ var [e] = P.useState(() => YR("uid-"));
return e;
});
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function Dye(e, t) {
- var n = Eye();
+function Vye(e, t) {
+ var n = Bye();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var Oye = /*#__PURE__*/ (0, P.createContext)(void 0), v3 = (e) => {
- var { id: t, type: n, children: r } = e, i = Dye(`recharts-${n}`, t);
- return /*#__PURE__*/ P.createElement(Oye.Provider, { value: i }, r(i));
-}, y3 = bV({
+var Hye = /*#__PURE__*/ (0, P.createContext)(void 0), v3 = (e) => {
+ var { id: t, type: n, children: r } = e, i = Vye(`recharts-${n}`, t);
+ return /*#__PURE__*/ P.createElement(Hye.Provider, { value: i }, r(i));
+}, y3 = TV({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -56667,79 +57076,79 @@ var Oye = /*#__PURE__*/ (0, P.createContext)(void 0), v3 = (e) => {
reducers: {
addCartesianGraphicalItem: {
reducer(e, t) {
- e.cartesianItems.push(LW(t.payload));
+ e.cartesianItems.push(UW(t.payload));
},
- prepare: gV()
+ prepare: xV()
},
replaceCartesianGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = sV(e).cartesianItems.indexOf(LW(n));
- i > -1 && (e.cartesianItems[i] = LW(r));
+ var { prev: n, next: r } = t.payload, i = fV(e).cartesianItems.indexOf(UW(n));
+ i > -1 && (e.cartesianItems[i] = UW(r));
},
- prepare: gV()
+ prepare: xV()
},
removeCartesianGraphicalItem: {
reducer(e, t) {
- var n = sV(e).cartesianItems.indexOf(LW(t.payload));
+ var n = fV(e).cartesianItems.indexOf(UW(t.payload));
n > -1 && e.cartesianItems.splice(n, 1);
},
- prepare: gV()
+ prepare: xV()
},
addPolarGraphicalItem: {
reducer(e, t) {
- e.polarItems.push(LW(t.payload));
+ e.polarItems.push(UW(t.payload));
},
- prepare: gV()
+ prepare: xV()
},
removePolarGraphicalItem: {
reducer(e, t) {
- var n = sV(e).polarItems.indexOf(LW(t.payload));
+ var n = fV(e).polarItems.indexOf(UW(t.payload));
n > -1 && e.polarItems.splice(n, 1);
},
- prepare: gV()
+ prepare: xV()
},
replacePolarGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = sV(e).polarItems.indexOf(LW(n));
- i > -1 && (e.polarItems[i] = LW(r));
+ var { prev: n, next: r } = t.payload, i = fV(e).polarItems.indexOf(UW(n));
+ i > -1 && (e.polarItems[i] = UW(r));
},
- prepare: gV()
+ prepare: xV()
}
}
-}), { addCartesianGraphicalItem: kye, replaceCartesianGraphicalItem: Aye, removeCartesianGraphicalItem: jye, addPolarGraphicalItem: Mye, removePolarGraphicalItem: Nye, replacePolarGraphicalItem: Pye } = y3.actions, Fye = y3.reducer, b3 = /*#__PURE__*/ (0, P.memo)((e) => {
- var t = Fz(), n = (0, P.useRef)(null);
+}), { addCartesianGraphicalItem: Uye, replaceCartesianGraphicalItem: Wye, removeCartesianGraphicalItem: Gye, addPolarGraphicalItem: Kye, removePolarGraphicalItem: qye, replacePolarGraphicalItem: Jye } = y3.actions, Yye = y3.reducer, b3 = /*#__PURE__*/ (0, P.memo)((e) => {
+ var t = Bz(), n = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
- n.current === null ? t(kye(e)) : n.current !== e && t(Aye({
+ n.current === null ? t(Uye(e)) : n.current !== e && t(Wye({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, P.useLayoutEffect)(() => () => {
- n.current &&= (t(jye(n.current)), null);
+ n.current &&= (t(Gye(n.current)), null);
}, [t]), null;
}), x3 = /*#__PURE__*/ (0, P.memo)((e) => {
- var t = Fz(), n = (0, P.useRef)(null);
+ var t = Bz(), n = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
- n.current === null ? t(Mye(e)) : n.current !== e && t(Pye({
+ n.current === null ? t(Kye(e)) : n.current !== e && t(Jye({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, P.useLayoutEffect)(() => () => {
- n.current &&= (t(Nye(n.current)), null);
+ n.current &&= (t(qye(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function Iye(e) {
+function Xye(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function Lye(e) {
- if (!(!mz(e) || e.length === 0)) return Iye(L4(e));
+function Zye(e) {
+ if (!(!yz(e) || e.length === 0)) return Xye(L4(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var Rye = ["points"];
+var Qye = ["points"];
function S3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -56754,26 +57163,26 @@ function C3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? S3(Object(n), !0).forEach(function(t) {
- zye(e, t, n[t]);
+ $ye(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zye(e, t, n) {
- return (t = Bye(t)) in e ? Object.defineProperty(e, t, {
+function $ye(e, t, n) {
+ return (t = ebe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Bye(e) {
- var t = Vye(e, "string");
+function ebe(e) {
+ var t = tbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Vye(e, t) {
+function tbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56792,16 +57201,16 @@ function w3() {
return e;
}, w3.apply(null, arguments);
}
-function Hye(e, t) {
+function nbe(e, t) {
if (e == null) return {};
- var n, r, i = Uye(e, t);
+ var n, r, i = rbe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Uye(e, t) {
+function rbe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56810,20 +57219,20 @@ function Uye(e, t) {
}
return n;
}
-function Wye(e) {
+function ibe(e) {
var { option: t, dotProps: n, className: r } = e;
if (/*#__PURE__*/ (0, P.isValidElement)(t)) return /*#__PURE__*/ (0, P.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = Pm(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = Hye(a, Rye);
+ var i = Pm(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = nbe(a, Qye);
return /*#__PURE__*/ P.createElement(v4, w3({}, s, { className: i }));
}
-function Gye(e, t) {
+function abe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
function T3(e) {
- var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = JJ.scatter } = e;
- if (!Gye(t, n)) return null;
- var u = n3(n), d = mle(n), f = t.map((e, r) => {
+ var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = eY.scatter } = e;
+ if (!abe(t, n)) return null;
+ var u = n3(n), d = Cle(n), f = t.map((e, r) => {
var s = C3(C3(C3({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
@@ -56833,14 +57242,14 @@ function T3(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ P.createElement(Wye, {
+ return /*#__PURE__*/ P.createElement(ibe, {
key: `dot-${r}`,
option: n,
dotProps: s,
className: i
});
}), p = {};
- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ P.createElement(t2, { zIndex: l }, /*#__PURE__*/ P.createElement(RL, w3({ className: r }, p), f));
+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ P.createElement(t2, { zIndex: l }, /*#__PURE__*/ P.createElement(UL, w3({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
@@ -56858,26 +57267,26 @@ function D3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? E3(Object(n), !0).forEach(function(t) {
- Kye(e, t, n[t]);
+ obe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Kye(e, t, n) {
- return (t = qye(t)) in e ? Object.defineProperty(e, t, {
+function obe(e, t, n) {
+ return (t = sbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qye(e) {
- var t = Jye(e, "string");
+function sbe(e) {
+ var t = cbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Jye(e, t) {
+function cbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56887,7 +57296,7 @@ function Jye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var O3 = bV({
+var O3 = TV({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -56897,60 +57306,60 @@ var O3 = bV({
reducers: {
addXAxis: {
reducer(e, t) {
- e.xAxis[t.payload.id] = LW(t.payload);
+ e.xAxis[t.payload.id] = UW(t.payload);
},
- prepare: gV()
+ prepare: xV()
},
replaceXAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = LW(r));
+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = UW(r));
},
- prepare: gV()
+ prepare: xV()
},
removeXAxis: {
reducer(e, t) {
delete e.xAxis[t.payload.id];
},
- prepare: gV()
+ prepare: xV()
},
addYAxis: {
reducer(e, t) {
- e.yAxis[t.payload.id] = LW(t.payload);
+ e.yAxis[t.payload.id] = UW(t.payload);
},
- prepare: gV()
+ prepare: xV()
},
replaceYAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = LW(r));
+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = UW(r));
},
- prepare: gV()
+ prepare: xV()
},
removeYAxis: {
reducer(e, t) {
delete e.yAxis[t.payload.id];
},
- prepare: gV()
+ prepare: xV()
},
addZAxis: {
reducer(e, t) {
- e.zAxis[t.payload.id] = LW(t.payload);
+ e.zAxis[t.payload.id] = UW(t.payload);
},
- prepare: gV()
+ prepare: xV()
},
replaceZAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = LW(r));
+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = UW(r));
},
- prepare: gV()
+ prepare: xV()
},
removeZAxis: {
reducer(e, t) {
delete e.zAxis[t.payload.id];
},
- prepare: gV()
+ prepare: xV()
},
updateYAxisWidth(e, t) {
var { id: n, width: r } = t.payload, i = e.yAxis[n];
@@ -56965,15 +57374,15 @@ var O3 = bV({
}
}
}
-}), { addXAxis: Yye, replaceXAxis: Xye, removeXAxis: Zye, addYAxis: Qye, replaceYAxis: $ye, removeYAxis: ebe, addZAxis: tbe, replaceZAxis: nbe, removeZAxis: rbe, updateYAxisWidth: ibe } = O3.actions, abe = O3.reducer, obe = $([
- $([ZH], (e) => ({
+}), { addXAxis: lbe, replaceXAxis: ube, removeXAxis: dbe, addYAxis: fbe, replaceYAxis: pbe, removeYAxis: mbe, addZAxis: hbe, replaceZAxis: gbe, removeZAxis: _be, updateYAxisWidth: vbe } = O3.actions, ybe = O3.reducer, bbe = $([
+ $([rU], (e) => ({
top: e.top,
bottom: e.bottom,
left: e.left,
right: e.right
})),
- PH,
- FH
+ BH,
+ VH
], (e, t, n) => {
if (!(!e || t == null || n == null)) return {
x: e.left,
@@ -56981,7 +57390,7 @@ var O3 = bV({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), k3 = () => Q(obe), sbe = () => Q(Bhe);
+}), k3 = () => Q(bbe), xbe = () => Q(ege);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
function A3(e, t) {
@@ -56998,26 +57407,26 @@ function j3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? A3(Object(n), !0).forEach(function(t) {
- cbe(e, t, n[t]);
+ Sbe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function cbe(e, t, n) {
- return (t = lbe(t)) in e ? Object.defineProperty(e, t, {
+function Sbe(e, t, n) {
+ return (t = Cbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function lbe(e) {
- var t = ube(e, "string");
+function Cbe(e) {
+ var t = wbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ube(e, t) {
+function wbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57027,7 +57436,7 @@ function ube(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var dbe = (e) => {
+var Tbe = (e) => {
var { point: t, childIndex: n, mainColor: r, activeDot: i, dataKey: a, clipPath: o } = e;
if (i === !1 || t.x == null || t.y == null) return null;
var s = j3(j3(j3({}, {
@@ -57041,17 +57450,17 @@ var dbe = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), NL(i)), az(i)), c = /*#__PURE__*/ (0, P.isValidElement)(i) ? /*#__PURE__*/ (0, P.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ P.createElement(v4, s);
- return /*#__PURE__*/ P.createElement(RL, {
+ }), RL(i)), uz(i)), c = /*#__PURE__*/ (0, P.isValidElement)(i) ? /*#__PURE__*/ (0, P.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ P.createElement(v4, s);
+ return /*#__PURE__*/ P.createElement(UL, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
function M3(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = JJ.activeDot } = e, s = Q(P0), c = sbe();
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = eY.activeDot } = e, s = Q(P0), c = xbe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return YR(l) ? null : /*#__PURE__*/ P.createElement(t2, { zIndex: o }, /*#__PURE__*/ P.createElement(dbe, {
+ return ez(l) ? null : /*#__PURE__*/ P.createElement(t2, { zIndex: o }, /*#__PURE__*/ P.createElement(Tbe, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -57076,26 +57485,26 @@ function P3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? N3(Object(n), !0).forEach(function(t) {
- fbe(e, t, n[t]);
+ Ebe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fbe(e, t, n) {
- return (t = pbe(t)) in e ? Object.defineProperty(e, t, {
+function Ebe(e, t, n) {
+ return (t = Dbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pbe(e) {
- var t = mbe(e, "string");
+function Dbe(e) {
+ var t = Obe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mbe(e, t) {
+function Obe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57105,16 +57514,16 @@ function mbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var F3 = (e, t) => O4(e, "radiusAxis", t), hbe = $([F3], (e) => {
+var F3 = (e, t) => O4(e, "radiusAxis", t), kbe = $([F3], (e) => {
if (e != null) return { scale: e };
-}), gbe = $([sY, F3], (e, t) => {
+}), Abe = $([pY, F3], (e, t) => {
if (e != null && t != null) return P3(P3({}, e), {}, { scale: t });
-}), _be = (e, t, n, r) => A4(e, "radiusAxis", t, r), I3 = (e, t, n) => oY(e, n), L3 = (e, t, n) => O4(e, "angleAxis", n), vbe = $([I3, L3], (e, t) => {
+}), jbe = (e, t, n, r) => A4(e, "radiusAxis", t, r), I3 = (e, t, n) => fY(e, n), L3 = (e, t, n) => O4(e, "angleAxis", n), Mbe = $([I3, L3], (e, t) => {
if (e != null && t != null) return P3(P3({}, e), {}, { scale: t });
-}), ybe = (e, t, n, r) => A4(e, "angleAxis", n, r), bbe = $([
+}), Nbe = (e, t, n, r) => A4(e, "angleAxis", n, r), Pbe = $([
I3,
L3,
- gY
+ SY
], (e, t, n) => {
if (n != null && t != null) return {
scale: t,
@@ -57123,30 +57532,30 @@ var F3 = (e, t) => O4(e, "radiusAxis", t), hbe = $([F3], (e) => {
cx: n.cx,
cy: n.cy
};
-}), xbe = (e, t, n, r, i) => i, Sbe = $([
- FU,
- gbe,
- _be,
- vbe,
- ybe
-], (e, t, n, r, i) => mH(e, "radiusAxis") ? kH(t, n, !1) : kH(r, i, !1)), Cbe = $([
- hbe,
- bbe,
- bJ,
- $([y4, xbe], (e, t) => {
+}), Fbe = (e, t, n, r, i) => i, Ibe = $([
+ VU,
+ Abe,
+ jbe,
+ Mbe,
+ Nbe
+], (e, t, n, r, i) => bH(e, "radiusAxis") ? FH(t, n, !1) : FH(r, i, !1)), Lbe = $([
+ kbe,
+ Pbe,
+ EJ,
+ $([y4, Fbe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- Sbe
+ Ibe
], (e, t, n, r, i) => {
var { chartData: a, dataStartIndex: o, dataEndIndex: s } = n;
- if (e != null && t != null && a != null && i != null && r != null) return Nbe({
+ if (e != null && t != null && a != null && i != null && r != null) return qbe({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), wbe = ["id"];
+}), Rbe = ["id"];
function R3() {
return R3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -57170,26 +57579,26 @@ function B3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? z3(Object(n), !0).forEach(function(t) {
- Tbe(e, t, n[t]);
+ zbe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Tbe(e, t, n) {
- return (t = Ebe(t)) in e ? Object.defineProperty(e, t, {
+function zbe(e, t, n) {
+ return (t = Bbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Ebe(e) {
- var t = Dbe(e, "string");
+function Bbe(e) {
+ var t = Vbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Dbe(e, t) {
+function Vbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57199,16 +57608,16 @@ function Dbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Obe(e, t) {
+function Hbe(e, t) {
if (e == null) return {};
- var n, r, i = kbe(e, t);
+ var n, r, i = Ube(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function kbe(e, t) {
+function Ube(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57220,27 +57629,27 @@ function kbe(e, t) {
function V3(e, t) {
return e && e !== "none" ? e : t;
}
-var Abe = (e) => {
+var Wbe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
color: V3(r, i),
- value: jH(n, t),
+ value: LH(n, t),
payload: e
}];
-}, jbe = /*#__PURE__*/ P.memo((e) => {
+}, Gbe = /*#__PURE__*/ P.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: QR,
+ getPosition: rz,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
nameKey: void 0,
dataKey: t,
- name: jH(a, t),
+ name: LH(a, t),
hide: o,
type: s,
color: V3(n, i),
@@ -57250,8 +57659,8 @@ var Abe = (e) => {
};
return /*#__PURE__*/ P.createElement(h3, { tooltipEntrySettings: l });
});
-function Mbe(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = ML(Obe(n, wbe));
+function Kbe(e) {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = LL(Hbe(n, Rbe));
return /*#__PURE__*/ P.createElement(T3, {
points: t,
dot: r,
@@ -57261,11 +57670,11 @@ function Mbe(e) {
baseProps: o
});
}
-function Nbe(e) {
+function qbe(e) {
var { radiusAxis: t, angleAxis: n, displayedData: r, dataKey: i, bandSize: a } = e, { cx: o, cy: s } = n, c = !1, l = [], u = n.type === "number" ? 0 : a ?? 0;
r.forEach((e, r) => {
- var a = fH(e, n.dataKey, r), d = fH(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? Lye(d) : d, m = YR(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(B3(B3({}, Kq(o, s, m, f)), {}, {
+ var a = vH(e, n.dataKey, r), d = vH(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? Zye(d) : d, m = ez(p) ? 0 : t.scale.map(p) ?? 0;
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(B3(B3({}, Qq(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@ -57278,8 +57687,8 @@ function Nbe(e) {
var d = [];
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
- var n = e.value[0], r = YR(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(B3(B3({}, e), {}, { radius: r }, Kq(o, s, r, e.angle)));
+ var n = e.value[0], r = ez(n) ? 0 : t.scale.map(n) ?? 0;
+ d.push(B3(B3({}, e), {}, { radius: r }, Qq(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@ -57287,7 +57696,7 @@ function Nbe(e) {
baseLinePoints: d
};
}
-function Pbe(e) {
+function Jbe(e) {
var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {
var t = {
x: e.x,
@@ -57307,10 +57716,10 @@ function Pbe(e) {
});
return /*#__PURE__*/ P.createElement(l4, { value: t ? i : void 0 }, r);
}
-function Fbe(e) {
+function Ybe(e) {
var { points: t, baseLinePoints: n, props: r } = e;
if (t == null) return null;
- var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ P.isValidElement(i) ? /*#__PURE__*/ P.cloneElement(i, B3(B3({}, r), {}, { points: t })) : typeof i == "function" ? i(B3(B3({}, r), {}, { points: t })) : /*#__PURE__*/ P.createElement(g4, R3({}, PL(r), {
+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ P.isValidElement(i) ? /*#__PURE__*/ P.cloneElement(i, B3(B3({}, r), {}, { points: t })) : typeof i == "function" ? i(B3(B3({}, r), {}, { points: t })) : /*#__PURE__*/ P.createElement(g4, R3({}, zL(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -57323,7 +57732,7 @@ function Fbe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ P.createElement(RL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ P.createElement(Mbe, {
+ return /*#__PURE__*/ P.createElement(UL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ P.createElement(Kbe, {
props: r,
points: t
}));
@@ -57331,23 +57740,23 @@ function Fbe(e) {
var H3 = (e, t, n) => (r, i) => {
var a = e && e[Math.floor(i * t)];
return a ? B3(B3({}, r), {}, {
- x: qR(a.x, r.x, n),
- y: qR(a.y, r.y, n)
+ x: QR(a.x, r.x, n),
+ y: QR(a.y, r.y, n)
}) : B3(B3({}, r), {}, {
- x: qR(r.cx, r.x, n),
- y: qR(r.cy, r.y, n)
+ x: QR(r.cx, r.x, n),
+ y: QR(r.cy, r.y, n)
});
};
-function Ibe(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 = pq(t, "recharts-radar-"), [_, v] = (0, P.useState)(!1), y = !_, b = (0, P.useCallback)(() => {
+function Xbe(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 = yq(t, "recharts-radar-"), [_, v] = (0, P.useState)(!1), y = !_, b = (0, P.useCallback)(() => {
typeof u == "function" && u(), v(!1);
}, [u]), x = (0, P.useCallback)(() => {
typeof d == "function" && d(), v(!0);
}, [d]);
- return /*#__PURE__*/ P.createElement(Pbe, {
+ return /*#__PURE__*/ P.createElement(Jbe, {
showLabels: y,
points: i
- }, /*#__PURE__*/ P.createElement(fq, {
+ }, /*#__PURE__*/ P.createElement(vq, {
animationId: g,
begin: s,
duration: c,
@@ -57358,22 +57767,22 @@ function Ibe(e) {
onAnimationStart: x
}, (e) => {
var o = e === 1 ? i : i.map(H3(f, m, e)), s = e === 1 ? a : a?.map(H3(p, h, e));
- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ P.createElement(Fbe, {
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ P.createElement(Ybe, {
points: o,
baseLinePoints: s,
props: t
});
}), /*#__PURE__*/ P.createElement(f4, { label: t.label }), t.children);
}
-function Lbe(e) {
+function Zbe(e) {
var t = (0, P.useRef)(void 0), n = (0, P.useRef)(void 0);
- return /*#__PURE__*/ P.createElement(Ibe, {
+ return /*#__PURE__*/ P.createElement(Xbe, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var Rbe = {
+var Qbe = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
@@ -57385,29 +57794,29 @@ var Rbe = {
label: !1,
legendType: "rect",
radiusAxisId: 0,
- zIndex: JJ.area
+ zIndex: eY.area
};
-function zbe(e) {
+function $be(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
var i = Pm("recharts-radar", n);
- return /*#__PURE__*/ P.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ P.createElement(RL, { className: i }, /*#__PURE__*/ P.createElement(Lbe, e)), /*#__PURE__*/ P.createElement(M3, {
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ P.createElement(UL, { className: i }, /*#__PURE__*/ P.createElement(Zbe, e)), /*#__PURE__*/ P.createElement(M3, {
points: r,
mainColor: V3(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function Bbe(e) {
- var t = tU(), n = Q((n) => Cbe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ P.createElement(zbe, R3({}, e, {
+function exe(e) {
+ var t = sU(), n = Q((n) => Lbe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ P.createElement($be, R3({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
function U3(e) {
- var t = cz(e, Rbe);
+ var t = pz(e, Qbe);
return /*#__PURE__*/ P.createElement(v3, {
id: t.id,
type: "radar"
@@ -57419,7 +57828,7 @@ function U3(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ P.createElement(_3, { legendPayload: Abe(t) }), /*#__PURE__*/ P.createElement(jbe, {
+ }), /*#__PURE__*/ P.createElement(_3, { legendPayload: Wbe(t) }), /*#__PURE__*/ P.createElement(Gbe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -57428,7 +57837,7 @@ function U3(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ P.createElement(Bbe, R3({}, t, { id: e }))));
+ }), /*#__PURE__*/ P.createElement(exe, R3({}, t, { id: e }))));
}
U3.displayName = "Radar";
//#endregion
@@ -57452,9 +57861,9 @@ function K3(e) {
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
var q3 = (e, t, n) => {
var r = n ?? e;
- if (!YR(r)) return GR(r, t, 0);
+ if (!ez(r)) return XR(r, t, 0);
}, J3 = (e, t, n) => {
- var r = {}, i = e.filter(xY), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
+ var r = {}, i = e.filter(DY), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
var n = e[t.stackId];
return n ??= [], n.push(t), e[t.stackId] = n, e;
}, r), s = Object.entries(o).map((e) => {
@@ -57487,26 +57896,26 @@ function X3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Y3(Object(n), !0).forEach(function(t) {
- Vbe(e, t, n[t]);
+ txe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Vbe(e, t, n) {
- return (t = Hbe(t)) in e ? Object.defineProperty(e, t, {
+function txe(e, t, n) {
+ return (t = nxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Hbe(e) {
- var t = Ube(e, "string");
+function nxe(e) {
+ var t = rxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Ube(e, t) {
+function rxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57516,11 +57925,11 @@ function Ube(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Wbe(e, t, n, r, i) {
+function ixe(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
- var o = GR(e, n, 0, !0), s, c = [];
- if (aH(r[0]?.barSize)) {
+ var o = XR(e, n, 0, !0), s, c = [];
+ if (dH(r[0]?.barSize)) {
var l = !1, u = n / a, d = r.reduce((e, t) => e + (t.barSize || 0), 0);
d += (a - 1) * o, d >= n && (d -= (a - 1) * o, o = 0), d >= n && u > 0 && (l = !0, u *= .9, d = a * u);
var f = {
@@ -57539,11 +57948,11 @@ function Wbe(e, t, n, r, i) {
return f = n.position, r;
}, c);
} else {
- var p = GR(t, n, 0, !0);
+ var p = XR(t, n, 0, !0);
n - 2 * p - (a - 1) * o <= 0 && (o = 0);
var m = (n - 2 * p - (a - 1) * o) / a;
m > 1 && (m >>= 0);
- var h = aH(i) ? Math.min(m, i) : m;
+ var h = dH(i) ? Math.min(m, i) : m;
s = r.reduce((e, t, n) => [...e, {
stackId: t.stackId,
dataKeys: t.dataKeys,
@@ -57557,10 +57966,10 @@ function Wbe(e, t, n, r, i) {
}
}
var Z3 = (e, t, n, r, i, a, o) => {
- var s = YR(o) ? t : o, c = Wbe(n, r, i === a ? a : i, e, s);
+ var s = ez(o) ? t : o, c = ixe(n, r, i === a ? a : i, e, s);
return i !== a && c != null && (c = c.map((e) => X3(X3({}, e), {}, { position: X3(X3({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
}, Q3 = (e, t) => {
- var n = yY(t);
+ var n = TY(t);
if (!(!e || n == null || t == null)) {
var { stackId: r } = t;
if (r != null) {
@@ -57593,26 +58002,26 @@ function t6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? e6(Object(n), !0).forEach(function(t) {
- Gbe(e, t, n[t]);
+ axe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : e6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Gbe(e, t, n) {
- return (t = Kbe(t)) in e ? Object.defineProperty(e, t, {
+function axe(e, t, n) {
+ return (t = oxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Kbe(e) {
- var t = qbe(e, "string");
+function oxe(e) {
+ var t = sxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function qbe(e, t) {
+function sxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57622,81 +58031,81 @@ function qbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var n6 = $([(e, t) => sY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {
+var n6 = $([(e, t) => pY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {
if (e != null && t != null) return t6(t6({}, e), {}, { scale: t });
-}), r6 = (e, t) => ove(e, "radiusAxis", t, !1), i6 = $([(e, t, n) => oY(e, n), (e, t, n) => O4(e, "angleAxis", n)], (e, t) => {
+}), r6 = (e, t) => bve(e, "radiusAxis", t, !1), i6 = $([(e, t, n) => fY(e, n), (e, t, n) => O4(e, "angleAxis", n)], (e, t) => {
if (e != null && t != null) return t6(t6({}, e), {}, { scale: t });
}), a6 = (e, t, n) => A4(e, "angleAxis", n, !1), o6 = $([y4, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
}), s6 = $([
- FU,
+ VU,
n6,
r6,
i6,
a6
-], (e, t, n, r, i) => mH(e, "radiusAxis") ? kH(t, n, !1) : kH(r, i, !1)), Jbe = $([
+], (e, t, n, r, i) => bH(e, "radiusAxis") ? FH(t, n, !1) : FH(r, i, !1)), cxe = $([
i6,
n6,
- FU
+ VU
], (e, t, n) => {
var r = n === "radial" ? e : t;
- if (r != null && r.scale != null) return CH({ numericAxis: r });
-}), Ybe = (e, t, n, r, i) => i, Xbe = (e, t, n, r, i) => n, Zbe = (e, t, n, r, i) => t, c6 = (e, t, n, r, i) => r.maxBarSize, l6 = (e) => e.type === "radialBar", Qbe = $([$([
+ if (r != null && r.scale != null) return kH({ numericAxis: r });
+}), lxe = (e, t, n, r, i) => i, uxe = (e, t, n, r, i) => n, dxe = (e, t, n, r, i) => t, c6 = (e, t, n, r, i) => r.maxBarSize, l6 = (e) => e.type === "radialBar", fxe = $([$([
$([
$([
- FU,
+ VU,
y4,
- Xbe,
- Zbe
+ uxe,
+ dxe
], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(l6)),
- BJ,
+ KJ,
() => void 0
], J3),
- LJ,
- RJ,
- zJ,
+ UJ,
+ WJ,
+ GJ,
$([
- FU,
- LJ,
+ VU,
+ UJ,
i6,
a6,
n6,
r6,
c6
], (e, t, n, r, i, a, o) => {
- var s = YR(o) ? t : o;
- return e === "centric" ? kH(n, r, !0) ?? s ?? 0 : kH(i, a, !0) ?? s ?? 0;
+ var s = ez(o) ? t : o;
+ return e === "centric" ? FH(n, r, !0) ?? s ?? 0 : FH(i, a, !0) ?? s ?? 0;
}),
s6,
c6
-], Z3), o6], $3), u6 = $([b4], (e) => e.filter(l6).filter(xY)), d6 = $([
+], Z3), o6], $3), u6 = $([b4], (e) => e.filter(l6).filter(DY)), d6 = $([
$([
u6,
- bJ,
+ EJ,
n1
- ], bY),
+ ], EY),
u6,
- VJ,
- HJ
-], i1), $be = $([
+ qJ,
+ JJ
+], i1), pxe = $([
i6,
a6,
n6,
r6,
- yJ,
+ TJ,
o6,
s6,
- FU,
- Jbe,
- gY,
- Ybe,
- Qbe,
- $([(e, t, n) => FU(e) === "centric" ? d6(e, "radiusAxis", t) : d6(e, "angleAxis", n), o6], Q3)
+ VU,
+ cxe,
+ SY,
+ lxe,
+ fxe,
+ $([(e, t, n) => VU(e) === "centric" ? d6(e, "radiusAxis", t) : d6(e, "angleAxis", n), o6], Q3)
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = i;
if (a == null || n == null || e == null || p == null || o == null || d == null || s !== "centric" && s !== "radial" || r == null || l == null) return [];
var { dataKey: g, minPointSize: _ } = a, { cx: v, cy: y, startAngle: b, endAngle: x } = l;
- return gxe({
+ return Axe({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -57717,7 +58126,7 @@ var n6 = $([(e, t) => sY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), exe = $([bJ, (e, t) => t], (e, t) => {
+}), mxe = $([EJ, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -57731,20 +58140,20 @@ var n6 = $([(e, t) => sY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
function f6(e, t) {
- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && aH(e.zIndex) ? e.zIndex : t;
+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && dH(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var txe = [
+var hxe = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], nxe = [
+], gxe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], rxe = ["value", "background"];
+], _xe = ["value", "background"];
function p6() {
return p6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -57768,26 +58177,26 @@ function h6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? m6(Object(n), !0).forEach(function(t) {
- ixe(e, t, n[t]);
+ vxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ixe(e, t, n) {
- return (t = axe(t)) in e ? Object.defineProperty(e, t, {
+function vxe(e, t, n) {
+ return (t = yxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function axe(e) {
- var t = oxe(e, "string");
+function yxe(e) {
+ var t = bxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oxe(e, t) {
+function bxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57799,14 +58208,14 @@ function oxe(e, t) {
}
function g6(e, t) {
if (e == null) return {};
- var n, r, i = sxe(e, t);
+ var n, r, i = xxe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function sxe(e, t) {
+function xxe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57816,7 +58225,7 @@ function sxe(e, t) {
return n;
}
var _6 = [];
-function cxe(e) {
+function Sxe(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -57833,15 +58242,15 @@ function cxe(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ P.createElement(J_e, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ P.createElement(cve, { value: t ? i : void 0 }, r);
}
-function lxe(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = g6(n, txe), l = ML(c), u = Q(P0), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = g6(n, nxe), h = f3(d, n.dataKey, s), g = p3(p), _ = m3(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ P.createElement(cxe, {
+function Cxe(e) {
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = g6(n, hxe), l = LL(c), u = Q(P0), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = g6(n, gxe), h = f3(d, n.dataKey, s), g = p3(p), _ = m3(f, n.dataKey, s);
+ return t == null ? null : /*#__PURE__*/ P.createElement(Sxe, {
showLabels: r,
sectors: t
}, t.map((e, t) => {
- var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = h6(h6(h6(h6({}, l), {}, { cornerRadius: G3(o) }, e), oz(m, e, t)), {}, {
+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = h6(h6(h6(h6({}, l), {}, { cornerRadius: G3(o) }, e), dz(m, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: s,
onClick: d,
@@ -57853,18 +58262,18 @@ function lxe(e) {
index: t
});
return n ? /*#__PURE__*/ P.createElement(t2, {
- zIndex: JJ.activeBar,
+ zIndex: eY.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
}, /*#__PURE__*/ P.createElement(K3, f)) : /*#__PURE__*/ P.createElement(K3, p6({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
}), /*#__PURE__*/ P.createElement(f4, { label: n.label }), n.children);
}
-function uxe(e) {
- var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = pq(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, P.useState)(!1), m = (0, P.useCallback)(() => {
+function wxe(e) {
+ var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = yq(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, P.useState)(!1), m = (0, P.useCallback)(() => {
typeof c == "function" && c(), p(!1);
}, [c]), h = (0, P.useCallback)(() => {
typeof l == "function" && l(), p(!0);
}, [l]);
- return /*#__PURE__*/ P.createElement(fq, {
+ return /*#__PURE__*/ P.createElement(vq, {
animationId: u,
begin: a,
duration: o,
@@ -57877,34 +58286,34 @@ function uxe(e) {
var i = e === 1 ? r : (r ?? _6).map((t, n) => {
var r = d && d[n];
if (r) return h6(h6({}, t), {}, {
- startAngle: qR(r.startAngle, t.startAngle, e),
- endAngle: qR(r.endAngle, t.endAngle, e)
+ startAngle: QR(r.startAngle, t.startAngle, e),
+ endAngle: QR(r.endAngle, t.endAngle, e)
});
var { endAngle: i, startAngle: a } = t;
- return h6(h6({}, t), {}, { endAngle: qR(a, i, e) });
+ return h6(h6({}, t), {}, { endAngle: QR(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ P.createElement(lxe, {
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ P.createElement(Cxe, {
sectors: i ?? _6,
allOtherRadialBarProps: t,
showLabels: !f
});
});
}
-function dxe(e) {
+function Txe(e) {
var t = (0, P.useRef)(null);
- return /*#__PURE__*/ P.createElement(uxe, {
+ return /*#__PURE__*/ P.createElement(wxe, {
props: e,
previousSectorsRef: t
});
}
-function fxe(e) {
- var t = Q((t) => exe(t, e.legendType));
+function Exe(e) {
+ var t = Q((t) => mxe(t, e.legendType));
return /*#__PURE__*/ P.createElement(_3, { legendPayload: t ?? [] });
}
-var pxe = /*#__PURE__*/ P.memo((e) => {
+var Dxe = /*#__PURE__*/ P.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: QR,
+ getPosition: rz,
settings: {
graphicalItemId: l,
stroke: r,
@@ -57912,7 +58321,7 @@ var pxe = /*#__PURE__*/ P.memo((e) => {
fill: s,
nameKey: void 0,
dataKey: t,
- name: jH(a, t),
+ name: LH(a, t),
hide: o,
type: c,
color: s,
@@ -57920,14 +58329,14 @@ var pxe = /*#__PURE__*/ P.memo((e) => {
}
};
return /*#__PURE__*/ P.createElement(h3, { tooltipEntrySettings: u });
-}), mxe = class extends P.PureComponent {
+}), Oxe = class extends P.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var { cornerRadius: t } = this.props, n = NL(this.props.background);
- return /*#__PURE__*/ P.createElement(t2, { zIndex: f6(this.props.background, JJ.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = g6(e, rxe);
+ var { cornerRadius: t } = this.props, n = RL(this.props.background);
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: f6(this.props.background, eY.barBackground) }, e.map((e, r) => {
+ var { value: i, background: a } = e, o = g6(e, _xe);
if (!a) return null;
- var s = h6(h6(h6(h6(h6({ cornerRadius: G3(t) }, o), {}, { fill: "#eee" }, a), n), oz(this.props, e, r)), {}, {
+ var s = h6(h6(h6(h6(h6({ cornerRadius: G3(t) }, o), {}, { fill: "#eee" }, a), n), dz(this.props, e, r)), {}, {
index: r,
className: Pm("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
@@ -57940,17 +58349,17 @@ var pxe = /*#__PURE__*/ P.memo((e) => {
var { hide: e, sectors: t, className: n, background: r } = this.props;
if (e) return null;
var i = Pm("recharts-area", n);
- return /*#__PURE__*/ P.createElement(t2, { zIndex: this.props.zIndex }, /*#__PURE__*/ P.createElement(RL, { className: i }, r && /*#__PURE__*/ P.createElement(RL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ P.createElement(RL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ P.createElement(dxe, this.props))));
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: this.props.zIndex }, /*#__PURE__*/ P.createElement(UL, { className: i }, r && /*#__PURE__*/ P.createElement(UL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ P.createElement(UL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ P.createElement(Txe, this.props))));
}
};
-function hxe(e) {
+function kxe(e) {
var t = P.useMemo(() => t3(e.children, v2), [e.children]), n = P.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
dataKey: e.dataKey,
minPointSize: e.minPointSize,
- stackId: bH(e.stackId),
+ stackId: EH(e.stackId),
maxBarSize: e.maxBarSize,
barSize: e.barSize,
type: "radialBar",
@@ -57965,8 +58374,8 @@ function hxe(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => $be(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? _6;
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(pxe, {
+ ]), r = Q((r) => pxe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? _6;
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Dxe, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -57976,7 +58385,7 @@ function hxe(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ P.createElement(mxe, p6({}, e, { sectors: r })));
+ }), /*#__PURE__*/ P.createElement(Oxe, p6({}, e, { sectors: r })));
}
var v6 = {
angleAxisId: 0,
@@ -57993,14 +58402,14 @@ var v6 = {
legendType: "rect",
minPointSize: 0,
radiusAxisId: 0,
- zIndex: JJ.bar
+ zIndex: eY.bar
};
-function gxe(e) {
+function Axe(e) {
var { displayedData: t, stackedData: n, dataStartIndex: r, stackedDomain: i, dataKey: a, baseValue: o, layout: s, radiusAxis: c, radiusAxisTicks: l, bandSize: u, pos: d, angleAxis: f, minPointSize: p, cx: m, cy: h, angleAxisTicks: g, cells: _, startAngle: v, endAngle: y } = e;
return g == null || l == null ? _6 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
- if (n ? b = _H(n[r + t], i) : (b = fH(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {
- if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = SH({
+ if (n ? b = CH(n[r + t], i) : (b = vH(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {
+ if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = OH({
axis: c,
ticks: l,
bandSize: u,
@@ -58011,7 +58420,7 @@ function gxe(e) {
S = x + d.size;
var E = w - C;
if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {
- var D = BR(E || p) * (Math.abs(p) - Math.abs(E));
+ var D = GR(E || p) * (Math.abs(p) - Math.abs(E));
w += D;
}
T = { background: {
@@ -58023,7 +58432,7 @@ function gxe(e) {
endAngle: y
} };
}
- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = SH({
+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = OH({
axis: f,
ticks: g,
bandSize: u,
@@ -58034,7 +58443,7 @@ function gxe(e) {
w = C + d.size;
var O = S - x;
if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {
- var k = BR(O || p) * (Math.abs(p) - Math.abs(O));
+ var k = GR(O || p) * (Math.abs(p) - Math.abs(O));
S += k;
}
}
@@ -58051,7 +58460,7 @@ function gxe(e) {
});
}
function y6(e) {
- var t = cz(e, v6);
+ var t = pz(e, v6);
return /*#__PURE__*/ P.createElement(v3, {
id: t.id,
type: "radialBar"
@@ -58063,17 +58472,17 @@ function y6(e) {
hide: t.hide ?? v6.hide,
angleAxisId: t.angleAxisId ?? v6.angleAxisId,
radiusAxisId: t.radiusAxisId ?? v6.radiusAxisId,
- stackId: bH(t.stackId),
+ stackId: EH(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ P.createElement(fxe, t), /*#__PURE__*/ P.createElement(hxe, p6({}, t, { id: e }))));
+ }), /*#__PURE__*/ P.createElement(Exe, t), /*#__PURE__*/ P.createElement(kxe, p6({}, t, { id: e }))));
}
y6.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
var b6 = (e) => {
- var { chartData: t } = e, n = Fz(), r = tU();
+ var { chartData: t } = e, n = Bz(), r = sU();
return (0, P.useEffect)(() => r ? () => {} : (n(f2(t)), () => {
n(f2(void 0));
}), [
@@ -58092,13 +58501,13 @@ var b6 = (e) => {
bottom: 0,
left: 0
}
-}, S6 = bV({
+}, S6 = TV({
name: "brush",
initialState: x6,
reducers: { setBrushSettings(e, t) {
return t.payload == null ? x6 : t.payload;
} }
-}), { setBrushSettings: _xe } = S6.actions, vxe = S6.reducer, yxe = (e, t) => {
+}), { setBrushSettings: jxe } = S6.actions, Mxe = S6.reducer, Nxe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -58106,9 +58515,9 @@ var b6 = (e) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, bxe = (e) => {
+}, Pxe = (e) => {
var { x1: t, y1: n, x2: r, y2: i } = e;
- return yxe({
+ return Nxe({
x: t,
y: n
}, {
@@ -58116,13 +58525,13 @@ var b6 = (e) => {
y: i
});
};
-function xxe(e) {
+function Fxe(e) {
return (e % 180 + 180) % 180;
}
-var Sxe = function(e) {
- var { width: t, height: n } = e, r = xxe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
+var Ixe = function(e) {
+ var { width: t, height: n } = e, r = Fxe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
return Math.abs(a);
-}, C6 = bV({
+}, C6 = TV({
name: "referenceElements",
initialState: {
dots: [],
@@ -58134,26 +58543,26 @@ var Sxe = function(e) {
e.dots.push(t.payload);
},
removeDot: (e, t) => {
- var n = sV(e).dots.findIndex((e) => e === t.payload);
+ var n = fV(e).dots.findIndex((e) => e === t.payload);
n !== -1 && e.dots.splice(n, 1);
},
addArea: (e, t) => {
e.areas.push(t.payload);
},
removeArea: (e, t) => {
- var n = sV(e).areas.findIndex((e) => e === t.payload);
+ var n = fV(e).areas.findIndex((e) => e === t.payload);
n !== -1 && e.areas.splice(n, 1);
},
addLine: (e, t) => {
- e.lines.push(LW(t.payload));
+ e.lines.push(UW(t.payload));
},
removeLine: (e, t) => {
- var n = sV(e).lines.findIndex((e) => e === t.payload);
+ var n = fV(e).lines.findIndex((e) => e === t.payload);
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: Cxe, removeDot: wxe, addArea: Txe, removeArea: Exe, addLine: Dxe, removeLine: Oxe } = C6.actions, kxe = C6.reducer, w6 = /*#__PURE__*/ (0, P.createContext)(void 0), Axe = (e) => {
- var { children: t } = e, [n] = (0, P.useState)(`${WR("recharts")}-clip`), r = k3();
+}), { addDot: Lxe, removeDot: Rxe, addArea: zxe, removeArea: Bxe, addLine: Vxe, removeLine: Hxe } = C6.actions, Uxe = C6.reducer, w6 = /*#__PURE__*/ (0, P.createContext)(void 0), Wxe = (e) => {
+ var { children: t } = e, [n] = (0, P.useState)(`${YR("recharts")}-clip`), r = k3();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
return /*#__PURE__*/ P.createElement(w6.Provider, { value: n }, /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement("clipPath", { id: n }, /*#__PURE__*/ P.createElement("rect", {
@@ -58162,7 +58571,7 @@ var Sxe = function(e) {
height: s,
width: o
}))), t);
-}, jxe = () => (0, P.useContext)(w6), Mxe = class {
+}, Gxe = () => (0, P.useContext)(w6), Kxe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -58202,26 +58611,26 @@ function E6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? T6(Object(n), !0).forEach(function(t) {
- Nxe(e, t, n[t]);
+ qxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : T6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Nxe(e, t, n) {
- return (t = Pxe(t)) in e ? Object.defineProperty(e, t, {
+function qxe(e, t, n) {
+ return (t = Jxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Pxe(e) {
- var t = Fxe(e, "string");
+function Jxe(e) {
+ var t = Yxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Fxe(e, t) {
+function Yxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58240,18 +58649,18 @@ function D6() {
return e;
}, D6.apply(null, arguments);
}
-var Ixe = (e, t) => {
+var Xxe = (e, t) => {
var n;
if (/*#__PURE__*/ P.isValidElement(e)) n = /*#__PURE__*/ P.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
- if (!aH(t.x1) || !aH(t.y1) || !aH(t.x2) || !aH(t.y2)) return null;
+ if (!dH(t.x1) || !dH(t.y1) || !dH(t.x2) || !dH(t.y2)) return null;
n = /*#__PURE__*/ P.createElement("line", D6({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, Lxe = (e, t, n, r, i, a) => {
+}, Zxe = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
- if (!aH(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!dH(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: o + s,
y: c
@@ -58260,9 +58669,9 @@ var Ixe = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, Rxe = (e, t, n, r, i, a) => {
+}, Qxe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
- if (!aH(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!dH(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: c,
y: o + s
@@ -58271,7 +58680,7 @@ var Ixe = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, zxe = (e, t, n, r) => {
+}, $xe = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -58280,43 +58689,43 @@ var Ixe = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, Bxe = (e, t, n, r, i, a, o) => {
- var { x: s, y: c, segment: l, ifOverflow: u } = o, d = UR(s);
- return UR(c) ? Lxe(c, u, r, a, t, n) : d ? Rxe(s, u, r, i, e, n) : l != null && l.length === 2 ? zxe(l, u, r, new Mxe({
+}, eSe = (e, t, n, r, i, a, o) => {
+ var { x: s, y: c, segment: l, ifOverflow: u } = o, d = JR(s);
+ return JR(c) ? Zxe(c, u, r, a, t, n) : d ? Qxe(s, u, r, i, e, n) : l != null && l.length === 2 ? $xe(l, u, r, new Kxe({
x: e,
y: t
})) : null;
};
-function Vxe(e) {
- var t = Fz();
- return (0, P.useEffect)(() => (t(Dxe(e)), () => {
- t(Oxe(e));
+function tSe(e) {
+ var t = Bz();
+ return (0, P.useEffect)(() => (t(Vxe(e)), () => {
+ t(Hxe(e));
})), null;
}
-function Hxe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = tU(), s = jxe(), c = Q((e) => N$(e, t)), l = Q((e) => I$(e, n)), u = Q((e) => N1(e, "xAxis", t, o)), d = Q((e) => N1(e, "yAxis", n, o)), f = kU();
+function nSe(e) {
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = sU(), s = Gxe(), c = Q((e) => N$(e, t)), l = Q((e) => I$(e, n)), u = Q((e) => N1(e, "xAxis", t, o)), d = Q((e) => N1(e, "yAxis", n, o)), f = FU();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = Bxe(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = eSe(u, d, f, e.position, c.orientation, l.orientation, e);
if (!p) return null;
var m = p[0], h = p[1];
if (m == null || h == null) return null;
- var { x: g, y: _ } = m, { x: v, y } = h, b = E6(E6({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, PL(e)), {}, {
+ var { x: g, y: _ } = m, { x: v, y } = h, b = E6(E6({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, zL(e)), {}, {
x1: g,
y1: _,
x2: v,
y2: y
- }), x = bxe({
+ }), x = Pxe({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ P.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ P.createElement(RL, { className: Pm("recharts-reference-line", i) }, Ixe(r, b), /*#__PURE__*/ P.createElement(Z2, D6({}, x, {
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ P.createElement(UL, { className: Pm("recharts-reference-line", i) }, Xxe(r, b), /*#__PURE__*/ P.createElement(Z2, D6({}, x, {
lowerWidth: x.width,
upperWidth: x.width
}), /*#__PURE__*/ P.createElement(a4, { label: e.label }), e.children)));
}
-var Uxe = {
+var rSe = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -58326,18 +58735,18 @@ var Uxe = {
fillOpacity: 1,
strokeWidth: 1,
position: "middle",
- zIndex: JJ.line
+ zIndex: eY.line
};
function O6(e) {
- var t = cz(e, Uxe);
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Vxe, {
+ var t = pz(e, rSe);
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(tSe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ P.createElement(Hxe, t));
+ }), /*#__PURE__*/ P.createElement(nSe, t));
}
O6.displayName = "ReferenceLine";
//#endregion
@@ -58353,13 +58762,13 @@ function k6(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function Wxe(e, t, n) {
- return Sxe({
+function iSe(e, t, n) {
+ return Ixe({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function Gxe(e, t, n) {
+function aSe(e, t, n) {
var r = n === "width", { x: i, y: a, width: o, height: s } = e;
return t === 1 ? {
start: r ? i : a,
@@ -58374,12 +58783,12 @@ function A6(e, t, n, r, i) {
var a = n();
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
}
-function Kxe(e, t) {
+function oSe(e, t) {
return k6(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function qxe(e, t, n, r, i) {
+function sSe(e, t, n, r, i) {
for (var a = (r || []).slice(), { start: o, end: s } = t, c = 0, l = 1, u = o, d = function() {
var t = r?.[c];
if (t === void 0) return { v: k6(r, l) };
@@ -58388,7 +58797,7 @@ function qxe(e, t, n, r, i) {
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
}
-function Jxe(e, t, n, r, i) {
+function cSe(e, t, n, r, i) {
var a = (r || []).slice().length;
if (a === 0) return [];
for (var { start: o, end: s } = t, c = 1; c <= a; c++) {
@@ -58425,26 +58834,26 @@ function M6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? j6(Object(n), !0).forEach(function(t) {
- Yxe(e, t, n[t]);
+ lSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : j6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Yxe(e, t, n) {
- return (t = Xxe(t)) in e ? Object.defineProperty(e, t, {
+function lSe(e, t, n) {
+ return (t = uSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Xxe(e) {
- var t = Zxe(e, "string");
+function uSe(e) {
+ var t = dSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Zxe(e, t) {
+function dSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58454,7 +58863,7 @@ function Zxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Qxe(e, t, n, r, i) {
+function fSe(e, t, n, r, i) {
for (var a = (r || []).slice(), o = a.length, { start: s } = t, { end: c } = t, l = function(t) {
var r = a[t];
if (r == null) return 1;
@@ -58467,7 +58876,7 @@ function Qxe(e, t, n, r, i) {
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function $xe(e, t, n, r, i, a) {
+function pSe(e, t, n, r, i, a) {
var o = (r || []).slice(), s = o.length, { start: c, end: l } = t;
if (a) {
var u = r[s - 1];
@@ -58491,7 +58900,7 @@ function $xe(e, t, n, r, i, a) {
function N6(e, t, n) {
var { tick: r, ticks: i, viewBox: a, minTickGap: o, orientation: s, interval: c, tickFormatter: l, unit: u, angle: d } = e;
if (!i || !i.length || !r) return [];
- if (Z(c) || WG.isSsr) return Kxe(i, Z(c) ? c : 0) ?? [];
+ if (Z(c) || XG.isSsr) return oSe(i, Z(c) ? c : 0) ?? [];
var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? w2(u, {
fontSize: t,
letterSpacing: n
@@ -58500,19 +58909,19 @@ function N6(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? Wxe(w2(i, {
+ return p === "width" ? iSe(w2(i, {
fontSize: t,
letterSpacing: n
}), m, d) : w2(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? BR(_.coordinate - g.coordinate) : 1, y = Gxe(a, v, p);
- return c === "equidistantPreserveStart" ? qxe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? Jxe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? $xe(v, y, h, i, o, c === "preserveStartEnd") : Qxe(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? GR(_.coordinate - g.coordinate) : 1, y = aSe(a, v, p);
+ return c === "equidistantPreserveStart" ? sSe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? cSe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? pSe(v, y, h, i, o, c === "preserveStartEnd") : fSe(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var eSe = (e) => {
+var mSe = (e) => {
var { ticks: t, label: n, labelGapWithTick: r = 5, tickSize: i = 0, tickMargin: a = 0 } = e, o = 0;
if (t) {
Array.from(t).forEach((e) => {
@@ -58525,7 +58934,7 @@ var eSe = (e) => {
return Math.round(l);
}
return 0;
-}, P6 = bV({
+}, P6 = TV({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -58534,14 +58943,14 @@ var eSe = (e) => {
reducers: {
setRenderedTicks: (e, t) => {
var { axisType: n, axisId: r, ticks: i } = t.payload;
- e[n][r] = LW(i);
+ e[n][r] = UW(i);
},
removeRenderedTicks: (e, t) => {
var { axisType: n, axisId: r } = t.payload;
delete e[n][r];
}
}
-}), { setRenderedTicks: tSe, removeRenderedTicks: nSe } = P6.actions, rSe = P6.reducer, iSe = [
+}), { setRenderedTicks: hSe, removeRenderedTicks: gSe } = P6.actions, _Se = P6.reducer, vSe = [
"axisLine",
"width",
"height",
@@ -58551,16 +58960,16 @@ var eSe = (e) => {
"axisType",
"axisId"
];
-function aSe(e, t) {
+function ySe(e, t) {
if (e == null) return {};
- var n, r, i = oSe(e, t);
+ var n, r, i = bSe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function oSe(e, t) {
+function bSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58592,26 +59001,26 @@ function L6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? I6(Object(n), !0).forEach(function(t) {
- sSe(e, t, n[t]);
+ xSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function sSe(e, t, n) {
- return (t = cSe(t)) in e ? Object.defineProperty(e, t, {
+function xSe(e, t, n) {
+ return (t = SSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function cSe(e) {
- var t = lSe(e, "string");
+function SSe(e) {
+ var t = CSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lSe(e, t) {
+function CSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58643,12 +59052,12 @@ var R6 = {
tickSize: 6,
tickMargin: 2,
interval: "preserveEnd",
- zIndex: JJ.axis
+ zIndex: eY.axis
};
-function uSe(e) {
+function wSe(e) {
var { x: t, y: n, width: r, height: i, orientation: a, mirror: o, axisLine: s, otherSvgProps: c } = e;
if (!s) return null;
- var l = L6(L6(L6({}, c), ML(s)), {}, { fill: "none" });
+ var l = L6(L6(L6({}, c), LL(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
l = L6(L6({}, l), {}, {
@@ -58666,9 +59075,9 @@ function uSe(e) {
y2: n + i
});
}
- return /*#__PURE__*/ P.createElement("line", F6({}, l, { className: Pm("recharts-cartesian-axis-line", LR(s, "className")) }));
+ return /*#__PURE__*/ P.createElement("line", F6({}, l, { className: Pm("recharts-cartesian-axis-line", HR(s, "className")) }));
}
-function dSe(e, t, n, r, i, a, o, s, c) {
+function TSe(e, t, n, r, i, a, o, s, c) {
var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = Z(e.tickCoord) ? e.tickCoord : e.coordinate;
switch (a) {
case "top":
@@ -58695,14 +59104,14 @@ function dSe(e, t, n, r, i, a, o, s, c) {
}
};
}
-function fSe(e, t) {
+function ESe(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function pSe(e, t) {
+function DSe(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -58710,7 +59119,7 @@ function pSe(e, t) {
default: return t ? "end" : "start";
}
}
-function mSe(e) {
+function OSe(e) {
var { option: t, tickProps: n, value: r } = e, i, a = Pm(n.className, "recharts-cartesian-axis-tick-value");
if (/*#__PURE__*/ P.isValidElement(t)) i = /*#__PURE__*/ P.cloneElement(t, L6(L6({}, n), {}, { className: a }));
else if (typeof t == "function") i = t(L6(L6({}, n), {}, { className: a }));
@@ -58720,9 +59129,9 @@ function mSe(e) {
}
return i;
}
-function hSe(e) {
- var { ticks: t, axisType: n, axisId: r } = e, i = Fz();
- return (0, P.useEffect)(() => r == null || n == null ? QR : (i(tSe({
+function kSe(e) {
+ var { ticks: t, axisType: n, axisId: r } = e, i = Bz();
+ return (0, P.useEffect)(() => r == null || n == null ? rz : (i(hSe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -58732,7 +59141,7 @@ function hSe(e) {
axisId: r,
axisType: n
})), () => {
- i(nSe({
+ i(gSe({
axisId: r,
axisType: n
}));
@@ -58743,15 +59152,15 @@ function hSe(e) {
n
]), null;
}
-var gSe = /*#__PURE__*/ (0, P.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 = N6(L6(L6({}, b), {}, { ticks: n }), v, y), T = ML(b), E = NL(r), D = L2(T.textAnchor) ? T.textAnchor : fSe(u, d), O = pSe(u, d), k = {};
+var ASe = /*#__PURE__*/ (0, P.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 = N6(L6(L6({}, b), {}, { ticks: n }), v, y), T = LL(b), E = RL(r), D = L2(T.textAnchor) ? T.textAnchor : ESe(u, d), O = DSe(u, d), k = {};
typeof i == "object" && (k = i);
- var A = L6(L6({}, T), {}, { fill: "none" }, k), j = w.map((e) => L6({ entry: e }, dSe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = L6(L6({}, T), {}, { fill: "none" }, k), j = w.map((e) => L6({ entry: e }, TSe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
- return /*#__PURE__*/ P.createElement(RL, {
+ return /*#__PURE__*/ P.createElement(UL, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, i && /*#__PURE__*/ P.createElement("line", F6({}, A, n, { className: Pm("recharts-cartesian-axis-tick-line", LR(i, "className")) })));
+ }, i && /*#__PURE__*/ P.createElement("line", F6({}, A, n, { className: Pm("recharts-cartesian-axis-tick-line", HR(i, "className")) })));
}), N = j.map((e, t) => {
var { entry: n, tick: i } = e, u = L6(L6({}, L6(L6(L6(L6({ verticalAnchor: O }, T), {}, {
textAnchor: D,
@@ -58764,26 +59173,26 @@ var gSe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ P.createElement(RL, F6({
+ return /*#__PURE__*/ P.createElement(UL, F6({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, oz(x, n, t)), r && /*#__PURE__*/ P.createElement(mSe, {
+ }, dz(x, n, t)), r && /*#__PURE__*/ P.createElement(OSe, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
}));
});
- return /*#__PURE__*/ P.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ P.createElement(hSe, {
+ return /*#__PURE__*/ P.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ P.createElement(kSe, {
ticks: w,
axisId: C,
axisType: S
- }), N.length > 0 && /*#__PURE__*/ P.createElement(t2, { zIndex: JJ.label }, /*#__PURE__*/ P.createElement("g", {
+ }), N.length > 0 && /*#__PURE__*/ P.createElement(t2, { zIndex: eY.label }, /*#__PURE__*/ P.createElement("g", {
className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,
ref: t
}, N)), M.length > 0 && /*#__PURE__*/ P.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
-}), _Se = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = aSe(e, iSe), [d, f] = (0, P.useState)(""), [p, m] = (0, P.useState)(""), h = (0, P.useRef)(null);
- (0, P.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => eSe({
+}), jSe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = ySe(e, vSe), [d, f] = (0, P.useState)(""), [p, m] = (0, P.useState)(""), h = (0, P.useRef)(null);
+ (0, P.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => mSe({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -58801,7 +59210,7 @@ var gSe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ P.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ P.createElement(RL, { className: Pm("recharts-cartesian-axis", a) }, /*#__PURE__*/ P.createElement(uSe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ P.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ P.createElement(UL, { className: Pm("recharts-cartesian-axis", a) }, /*#__PURE__*/ P.createElement(wSe, {
x: e.x,
y: e.y,
width: r,
@@ -58809,8 +59218,8 @@ var gSe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: ML(e)
- }), /*#__PURE__*/ P.createElement(gSe, {
+ otherSvgProps: LL(e)
+ }), /*#__PURE__*/ P.createElement(ASe, {
ref: g,
axisType: c,
events: u,
@@ -58846,19 +59255,19 @@ var gSe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
labelRef: e.labelRef
}), e.children)));
}), z6 = /*#__PURE__*/ P.forwardRef((e, t) => {
- var n = cz(e, R6);
- return /*#__PURE__*/ P.createElement(_Se, F6({}, n, { ref: t }));
+ var n = pz(e, R6);
+ return /*#__PURE__*/ P.createElement(jSe, F6({}, n, { ref: t }));
});
z6.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
-var vSe = [
+var MSe = [
"x1",
"y1",
"x2",
"y2",
"key"
-], ySe = ["offset"], bSe = ["xAxisId", "yAxisId"], xSe = ["xAxisId", "yAxisId"];
+], NSe = ["offset"], PSe = ["xAxisId", "yAxisId"], FSe = ["xAxisId", "yAxisId"];
function B6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -58873,26 +59282,26 @@ function V6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? B6(Object(n), !0).forEach(function(t) {
- SSe(e, t, n[t]);
+ ISe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function SSe(e, t, n) {
- return (t = CSe(t)) in e ? Object.defineProperty(e, t, {
+function ISe(e, t, n) {
+ return (t = LSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function CSe(e) {
- var t = wSe(e, "string");
+function LSe(e) {
+ var t = RSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wSe(e, t) {
+function RSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58913,14 +59322,14 @@ function H6() {
}
function U6(e, t) {
if (e == null) return {};
- var n, r, i = TSe(e, t);
+ var n, r, i = zSe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function TSe(e, t) {
+function zSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58929,7 +59338,7 @@ function TSe(e, t) {
}
return n;
}
-var ESe = (e) => {
+var BSe = (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;
@@ -58950,7 +59359,7 @@ function W6(e) {
if (/*#__PURE__*/ P.isValidElement(t)) r = /*#__PURE__*/ P.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 = ML(U6(n, vSe)) ?? {}, { offset: u } = l, d = U6(l, ySe);
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = LL(U6(n, MSe)) ?? {}, { offset: u } = l, d = U6(l, NSe);
r = /*#__PURE__*/ P.createElement("line", H6({}, d, {
x1: i,
y1: a,
@@ -58962,10 +59371,10 @@ function W6(e) {
}
return r;
}
-function DSe(e) {
+function VSe(e) {
var { x: t, width: n, horizontal: r = !0, horizontalPoints: i } = e;
if (!r || !i || !i.length) return null;
- var { xAxisId: a, yAxisId: o } = e, s = U6(e, bSe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = U6(e, PSe), c = i.map((e, i) => {
var a = V6(V6({}, s), {}, {
x1: t,
y1: e,
@@ -58982,10 +59391,10 @@ function DSe(e) {
});
return /*#__PURE__*/ P.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
-function OSe(e) {
+function HSe(e) {
var { y: t, height: n, vertical: r = !0, verticalPoints: i } = e;
if (!r || !i || !i.length) return null;
- var { xAxisId: a, yAxisId: o } = e, s = U6(e, xSe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = U6(e, FSe), c = i.map((e, i) => {
var a = V6(V6({}, s), {}, {
x1: e,
y1: t,
@@ -59002,7 +59411,7 @@ function OSe(e) {
});
return /*#__PURE__*/ P.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
-function kSe(e) {
+function USe(e) {
var { horizontalFill: t, fillOpacity: n, x: r, y: i, width: a, height: o, horizontalPoints: s, horizontal: c = !0 } = e;
if (!c || !t || !t.length || s == null) return null;
var l = s.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -59025,7 +59434,7 @@ function kSe(e) {
});
return /*#__PURE__*/ P.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function ASe(e) {
+function WSe(e) {
var { vertical: t = !0, verticalFill: n, fillOpacity: r, x: i, y: a, width: o, height: s, verticalPoints: c } = e;
if (!t || !n || !n.length) return null;
var l = c.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -59048,10 +59457,10 @@ function ASe(e) {
});
return /*#__PURE__*/ P.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
-var jSe = (e, t) => {
+var GSe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return hH(N6(V6(V6(V6({}, R6), n), {}, {
- ticks: gH(n, !0),
+ return xH(N6(V6(V6(V6({}, R6), n), {}, {
+ ticks: SH(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -59059,10 +59468,10 @@ var jSe = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, MSe = (e, t) => {
+}, KSe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return hH(N6(V6(V6(V6({}, R6), n), {}, {
- ticks: gH(n, !0),
+ return xH(N6(V6(V6(V6({}, R6), n), {}, {
+ ticks: SH(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -59070,7 +59479,7 @@ var jSe = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, NSe = {
+}, qSe = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -59082,17 +59491,17 @@ var jSe = (e, t) => {
xAxisId: 0,
yAxisId: 0,
syncWithTicks: !1,
- zIndex: JJ.grid
+ zIndex: eY.grid
};
function G6(e) {
- var t = MU(), n = NU(), r = jU(), i = V6(V6({}, cz(e, NSe)), {}, {
+ var t = RU(), n = zU(), r = LU(), i = V6(V6({}, pz(e, qSe)), {}, {
x: Z(e.x) ? e.x : r.left,
y: Z(e.y) ? e.y : r.top,
width: Z(e.width) ? e.width : r.width,
height: Z(e.height) ? e.height : r.height
- }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = tU(), h = Q((e) => U1(e, "xAxis", a, m)), g = Q((e) => U1(e, "yAxis", o, m));
- if (!oH(l) || !oH(u) || !Z(s) || !Z(c)) return null;
- var _ = i.verticalCoordinatesGenerator || jSe, v = i.horizontalCoordinatesGenerator || MSe, { horizontalPoints: y, verticalPoints: b } = i;
+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = sU(), h = Q((e) => U1(e, "xAxis", a, m)), g = Q((e) => U1(e, "yAxis", o, m));
+ if (!fH(l) || !fH(u) || !Z(s) || !Z(c)) return null;
+ var _ = i.verticalCoordinatesGenerator || GSe, v = i.horizontalCoordinatesGenerator || KSe, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
yAxis: g ? V6(V6({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
@@ -59100,7 +59509,7 @@ function G6(e) {
height: n ?? u,
offset: r
}, x ? !0 : d);
- sU(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
+ pU(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
}
if ((!b || !b.length) && typeof _ == "function") {
var C = p && p.length, w = _({
@@ -59109,9 +59518,9 @@ function G6(e) {
height: n ?? u,
offset: r
}, C ? !0 : d);
- sU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
+ pU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ P.createElement(t2, { zIndex: i.zIndex }, /*#__PURE__*/ P.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ P.createElement(ESe, {
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: i.zIndex }, /*#__PURE__*/ P.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ P.createElement(BSe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -59119,12 +59528,12 @@ function G6(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ P.createElement(kSe, H6({}, i, { horizontalPoints: y })), /*#__PURE__*/ P.createElement(ASe, H6({}, i, { verticalPoints: b })), /*#__PURE__*/ P.createElement(DSe, H6({}, i, {
+ }), /*#__PURE__*/ P.createElement(USe, H6({}, i, { horizontalPoints: y })), /*#__PURE__*/ P.createElement(WSe, H6({}, i, { verticalPoints: b })), /*#__PURE__*/ P.createElement(VSe, H6({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ P.createElement(OSe, H6({}, i, {
+ })), /*#__PURE__*/ P.createElement(HSe, H6({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
@@ -59134,7 +59543,7 @@ function G6(e) {
G6.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var K6 = bV({
+var K6 = TV({
name: "errorBars",
initialState: {},
reducers: {
@@ -59151,17 +59560,17 @@ var K6 = bV({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: PSe, replaceErrorBar: FSe, removeErrorBar: ISe } = K6.actions, LSe = K6.reducer, RSe = ["children"];
-function zSe(e, t) {
+}), { addErrorBar: JSe, replaceErrorBar: YSe, removeErrorBar: XSe } = K6.actions, ZSe = K6.reducer, QSe = ["children"];
+function $Se(e, t) {
if (e == null) return {};
- var n, r, i = BSe(e, t);
+ var n, r, i = eCe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function BSe(e, t) {
+function eCe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59170,7 +59579,7 @@ function BSe(e, t) {
}
return n;
}
-var VSe = /*#__PURE__*/ (0, P.createContext)({
+var tCe = /*#__PURE__*/ (0, P.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -59182,8 +59591,8 @@ var VSe = /*#__PURE__*/ (0, P.createContext)({
errorBarOffset: 0
});
function q6(e) {
- var { children: t } = e, n = zSe(e, RSe);
- return /*#__PURE__*/ P.createElement(VSe.Provider, { value: n }, t);
+ var { children: t } = e, n = $Se(e, QSe);
+ return /*#__PURE__*/ P.createElement(tCe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
@@ -59208,30 +59617,30 @@ function Y6(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var X6 = (e, t, n, r) => J1(e, "xAxis", t, r), Z6 = (e, t, n, r) => q1(e, "xAxis", t, r), Q6 = (e, t, n, r) => J1(e, "yAxis", n, r), $6 = (e, t, n, r) => q1(e, "yAxis", n, r), HSe = $([
- FU,
+var X6 = (e, t, n, r) => J1(e, "xAxis", t, r), Z6 = (e, t, n, r) => q1(e, "xAxis", t, r), Q6 = (e, t, n, r) => J1(e, "yAxis", n, r), $6 = (e, t, n, r) => q1(e, "yAxis", n, r), nCe = $([
+ VU,
X6,
Q6,
Z6,
$6
-], (e, t, n, r, i) => mH(e, "xAxis") ? kH(t, r, !1) : kH(n, i, !1)), USe = (e, t, n, r, i) => i;
-function WSe(e) {
+], (e, t, n, r, i) => bH(e, "xAxis") ? FH(t, r, !1) : FH(n, i, !1)), rCe = (e, t, n, r, i) => i;
+function iCe(e) {
return e.type === "line";
}
-var GSe = $([
- FU,
+var aCe = $([
+ VU,
X6,
Q6,
Z6,
$6,
- $([H$, USe], (e, t) => e.filter(WSe).find((e) => e.id === t)),
- HSe,
- xJ
+ $([H$, rCe], (e, t) => e.filter(iCe).find((e) => e.id === t)),
+ nCe,
+ DJ
], (e, t, n, r, i, a, o, s) => {
var { chartData: c, dataStartIndex: l, dataEndIndex: u } = s;
if (!(a == null || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || o == null || e !== "horizontal" && e !== "vertical")) {
var { dataKey: d, data: f } = a, p = f != null && f.length > 0 ? f : c?.slice(l, u + 1);
- if (p != null) return dCe({
+ if (p != null) return TCe({
layout: e,
xAxis: t,
yAxis: n,
@@ -59246,7 +59655,7 @@ var GSe = $([
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
function e8(e) {
- var t = NL(e), n = 3, r = 2;
+ var t = RL(e), n = 3, r = 2;
if (t != null) {
var { r: i, strokeWidth: a } = t, o = Number(i), s = Number(a);
return (Number.isNaN(o) || o < 0) && (o = n), (Number.isNaN(s) || s < 0) && (s = r), {
@@ -59261,13 +59670,13 @@ function e8(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var KSe = ["id"], qSe = [
+var oCe = ["id"], sCe = [
"type",
"layout",
"connectNulls",
"needClip",
"shape"
-], JSe = [
+], cCe = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -59306,26 +59715,26 @@ function r8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? n8(Object(n), !0).forEach(function(t) {
- YSe(e, t, n[t]);
+ lCe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : n8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function YSe(e, t, n) {
- return (t = XSe(t)) in e ? Object.defineProperty(e, t, {
+function lCe(e, t, n) {
+ return (t = uCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function XSe(e) {
- var t = ZSe(e, "string");
+function uCe(e) {
+ var t = dCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ZSe(e, t) {
+function dCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59337,14 +59746,14 @@ function ZSe(e, t) {
}
function i8(e, t) {
if (e == null) return {};
- var n, r, i = QSe(e, t);
+ var n, r, i = fCe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function QSe(e, t) {
+function fCe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59353,27 +59762,27 @@ function QSe(e, t) {
}
return n;
}
-var $Se = (e) => {
+var pCe = (e) => {
var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: jH(n, t),
+ value: LH(n, t),
payload: e
}];
-}, eCe = /*#__PURE__*/ P.memo((e) => {
+}, mCe = /*#__PURE__*/ P.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: QR,
+ getPosition: rz,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: jH(o, t),
+ name: LH(o, t),
hide: s,
type: l,
color: r,
@@ -59383,11 +59792,11 @@ var $Se = (e) => {
};
return /*#__PURE__*/ P.createElement(h3, { tooltipEntrySettings: d });
}), a8 = (e, t) => `${t}px ${e}px`;
-function tCe(e, t) {
+function hCe(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
-var nCe = (e, t, n) => {
+var gCe = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
if (!r) return a8(t, e);
for (var i = Math.floor(e / r), a = e % r, o = [], s = 0, c = 0; s < n.length; c += (l = n[s]) ?? 0, ++s) {
@@ -59399,13 +59808,13 @@ var nCe = (e, t, n) => {
}
var d = o.length % 2 == 0 ? [0, t] : [t];
return [
- ...tCe(n, i),
+ ...hCe(n, i),
...o,
...d
].map((e) => `${e}px`).join(", ");
};
-function rCe(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = ML(i8(r, KSe));
+function _Ce(e) {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = LL(i8(r, oCe));
return /*#__PURE__*/ P.createElement(T3, {
points: n,
dot: i,
@@ -59417,7 +59826,7 @@ function rCe(e) {
clipPathId: t
});
}
-function iCe(e) {
+function vCe(e) {
var { showLabels: t, children: n, points: r } = e, i = (0, P.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -59438,7 +59847,7 @@ function iCe(e) {
return /*#__PURE__*/ P.createElement(l4, { value: t ? i : void 0 }, n);
}
function o8(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 = r8(r8({}, PL(i8(a, qSe))), {}, {
+ var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = r8(r8({}, zL(i8(a, sCe))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -59451,31 +59860,31 @@ function o8(e) {
return /*#__PURE__*/ P.createElement(P.Fragment, null, r?.length > 1 && /*#__PURE__*/ P.createElement(d3, t8({
shapeType: "curve",
option: u
- }, d, { pathRef: n })), /*#__PURE__*/ P.createElement(rCe, {
+ }, d, { pathRef: n })), /*#__PURE__*/ P.createElement(_Ce, {
points: r,
clipPathId: t,
props: a
}));
}
-function aCe(e) {
+function yCe(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function oCe(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 = pq(o, "recharts-line-"), y = (0, P.useRef)(v), [b, x] = (0, P.useState)(!1), S = !b, C = (0, P.useCallback)(() => {
+function bCe(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 = yq(o, "recharts-line-"), y = (0, P.useRef)(v), [b, x] = (0, P.useState)(!1), S = !b, C = (0, P.useCallback)(() => {
typeof h == "function" && h(), x(!1);
}, [h]), w = (0, P.useCallback)(() => {
typeof g == "function" && g(), x(!0);
- }, [g]), T = aCe(r.current), E = (0, P.useRef)(0);
+ }, [g]), T = yCe(r.current), E = (0, P.useRef)(0);
y.current !== v && (E.current = a.current, y.current = v);
var D = E.current;
- return /*#__PURE__*/ P.createElement(iCe, {
+ return /*#__PURE__*/ P.createElement(vCe, {
points: o,
showLabels: S
- }, n.children, /*#__PURE__*/ P.createElement(fq, {
+ }, n.children, /*#__PURE__*/ P.createElement(vq, {
animationId: v,
begin: l,
duration: u,
@@ -59485,20 +59894,20 @@ function oCe(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = qR(D, T + D, e), u = Math.min(l, T), d = c ? s ? nCe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : a8(T, u) : s == null ? void 0 : String(s);
+ var l = QR(D, T + D, e), u = Math.min(l, T), d = c ? s ? gCe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : a8(T, u) : s == null ? void 0 : String(s);
if (e > 0 && T > 0 && (i.current = o, a.current = Math.max(a.current, u)), _) {
var h = _.length / o.length, g = e === 1 ? o : o.map((t, n) => {
var r = Math.floor(n * h);
if (_[r]) {
var i = _[r];
return r8(r8({}, t), {}, {
- x: qR(i.x, t.x, e),
- y: qR(i.y, t.y, e)
+ x: QR(i.x, t.x, e),
+ y: QR(i.y, t.y, e)
});
}
return f ? r8(r8({}, t), {}, {
- x: qR(p * 2, t.x, e),
- y: qR(m / 2, t.y, e)
+ x: QR(p * 2, t.x, e),
+ y: QR(m / 2, t.y, e)
}) : r8(r8({}, t), {}, {
x: t.x,
y: t.y
@@ -59521,9 +59930,9 @@ function oCe(e) {
});
}), /*#__PURE__*/ P.createElement(f4, { label: n.label }));
}
-function sCe(e) {
+function xCe(e) {
var { clipPathId: t, props: n } = e, r = (0, P.useRef)(null), i = (0, P.useRef)(0), a = (0, P.useRef)(null);
- return /*#__PURE__*/ P.createElement(oCe, {
+ return /*#__PURE__*/ P.createElement(bCe, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -59531,17 +59940,17 @@ function sCe(e) {
pathRef: a
});
}
-var cCe = (e, t) => ({
+var SCe = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
- errorVal: fH(e.payload, t)
-}), lCe = class extends P.Component {
+ errorVal: vH(e.payload, t)
+}), CCe = class extends P.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 = Pm("recharts-line", r), m = u, { r: h, strokeWidth: g } = e8(t), _ = n3(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
- return /*#__PURE__*/ P.createElement(t2, { zIndex: f }, /*#__PURE__*/ P.createElement(RL, { className: p }, d && /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement(Y6, {
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: f }, /*#__PURE__*/ P.createElement(UL, { className: p }, d && /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement(Y6, {
clipPathId: m,
xAxisId: i,
yAxisId: a
@@ -59554,9 +59963,9 @@ var cCe = (e, t) => ({
xAxisId: i,
yAxisId: a,
data: n,
- dataPointFormatter: cCe,
+ dataPointFormatter: SCe,
errorBarOffset: 0
- }, /*#__PURE__*/ P.createElement(sCe, {
+ }, /*#__PURE__*/ P.createElement(xCe, {
props: this.props,
clipPathId: m
}))), /*#__PURE__*/ P.createElement(M3, {
@@ -59584,14 +59993,14 @@ var cCe = (e, t) => ({
strokeWidth: 1,
xAxisId: 0,
yAxisId: 0,
- zIndex: JJ.line,
+ zIndex: eY.line,
type: "linear"
};
-function uCe(e) {
- var t = cz(e, s8), { 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 = i8(t, JSe), { needClip: _ } = J6(p, m), v = k3(), y = IU(), b = tU(), x = Q((e) => GSe(e, p, m, b, h));
+function wCe(e) {
+ var t = pz(e, s8), { 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 = i8(t, cCe), { needClip: _ } = J6(p, m), v = k3(), y = HU(), b = sU(), x = Q((e) => aCe(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__*/ P.createElement(lCe, t8({}, g, {
+ return /*#__PURE__*/ P.createElement(CCe, t8({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -59615,23 +60024,23 @@ function uCe(e) {
needClip: _
}));
}
-function dCe(e) {
+function TCe(e) {
var { layout: t, xAxis: n, yAxis: r, xAxisTicks: i, yAxisTicks: a, dataKey: o, bandSize: s, displayedData: c } = e;
return c.map((e, c) => {
- var l = fH(e, o);
+ var l = vH(e, o);
if (t === "horizontal") return {
- x: xH({
+ x: DH({
axis: n,
ticks: i,
bandSize: s,
entry: e,
index: c
}),
- y: (YR(l) ? null : r.scale.map(l)) ?? null,
+ y: (ez(l) ? null : r.scale.map(l)) ?? null,
value: l,
payload: e
};
- var u = YR(l) ? null : n.scale.map(l), d = xH({
+ var u = ez(l) ? null : n.scale.map(l), d = DH({
axis: r,
ticks: a,
bandSize: s,
@@ -59646,12 +60055,12 @@ function dCe(e) {
};
}).filter(Boolean);
}
-function fCe(e) {
- var t = cz(e, s8), n = tU();
+function ECe(e) {
+ var t = pz(e, s8), n = sU();
return /*#__PURE__*/ P.createElement(v3, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(g3, { legendPayload: $Se(t) }), /*#__PURE__*/ P.createElement(eCe, {
+ }, (e) => /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(g3, { legendPayload: pCe(t) }), /*#__PURE__*/ P.createElement(mCe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -59672,9 +60081,9 @@ function fCe(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ P.createElement(uCe, t8({}, t, { id: e }))));
+ }), /*#__PURE__*/ P.createElement(wCe, t8({}, t, { id: e }))));
}
-var c8 = /*#__PURE__*/ P.memo(fCe, lG);
+var c8 = /*#__PURE__*/ P.memo(ECe, hG);
c8.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
@@ -59686,36 +60095,36 @@ function u8(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var d8 = (e, t, n) => J1(e, "xAxis", l8(e, t), n), f8 = (e, t, n) => q1(e, "xAxis", l8(e, t), n), p8 = (e, t, n) => J1(e, "yAxis", u8(e, t), n), m8 = (e, t, n) => q1(e, "yAxis", u8(e, t), n), pCe = $([
- FU,
+var d8 = (e, t, n) => J1(e, "xAxis", l8(e, t), n), f8 = (e, t, n) => q1(e, "xAxis", l8(e, t), n), p8 = (e, t, n) => J1(e, "yAxis", u8(e, t), n), m8 = (e, t, n) => q1(e, "yAxis", u8(e, t), n), DCe = $([
+ VU,
d8,
p8,
f8,
m8
-], (e, t, n, r, i) => mH(e, "xAxis") ? kH(t, r, !1) : kH(n, i, !1)), h8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), g8 = (e) => mH(FU(e), "xAxis") ? "yAxis" : "xAxis", mCe = (e, t) => g8(e) === "yAxis" ? u8(e, t) : l8(e, t), hCe = $([
- FU,
+], (e, t, n, r, i) => bH(e, "xAxis") ? FH(t, r, !1) : FH(n, i, !1)), h8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), g8 = (e) => bH(VU(e), "xAxis") ? "yAxis" : "xAxis", OCe = (e, t) => g8(e) === "yAxis" ? u8(e, t) : l8(e, t), kCe = $([
+ VU,
d8,
p8,
f8,
m8,
- $([h8, (e, t, n) => a1(e, g8(e), mCe(e, t), n)], (e, t) => {
+ $([h8, (e, t, n) => a1(e, g8(e), OCe(e, t), n)], (e, t) => {
if (e != null && t != null) {
- var { stackId: n } = e, r = yY(e);
+ var { stackId: n } = e, r = TY(e);
if (n != null && r != null) {
var i = (t[n]?.stackedData)?.find((e) => e.key === r);
if (i != null) return i.map((e) => [e[0], e[1]]);
}
}
}),
- SJ,
- pCe,
+ OJ,
+ DCe,
h8,
- qJ
+ $J
], (e, t, n, r, i, a, o, s, c, l) => {
var { chartData: u, dataStartIndex: d, dataEndIndex: f } = o;
if (!(c == null || e !== "horizontal" && e !== "vertical" || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || s == null)) {
var { data: p } = c, m = p && p.length > 0 ? p : u?.slice(d, f + 1);
- if (m != null) return FCe({
+ if (m != null) return YCe({
layout: e,
xAxis: t,
yAxis: n,
@@ -59729,7 +60138,7 @@ var d8 = (e, t, n) => J1(e, "xAxis", l8(e, t), n), f8 = (e, t, n) => q1(e, "xAxi
bandSize: s
});
}
-}), gCe = ["id"], _Ce = [
+}), ACe = ["id"], jCe = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -59756,14 +60165,14 @@ function _8() {
}
function v8(e, t) {
if (e == null) return {};
- var n, r, i = vCe(e, t);
+ var n, r, i = MCe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function vCe(e, t) {
+function MCe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59786,26 +60195,26 @@ function b8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? y8(Object(n), !0).forEach(function(t) {
- yCe(e, t, n[t]);
+ NCe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yCe(e, t, n) {
- return (t = bCe(t)) in e ? Object.defineProperty(e, t, {
+function NCe(e, t, n) {
+ return (t = PCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bCe(e) {
- var t = xCe(e, "string");
+function PCe(e) {
+ var t = FCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xCe(e, t) {
+function FCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59818,27 +60227,27 @@ function xCe(e, t) {
function x8(e, t) {
return e && e !== "none" ? e : t;
}
-var SCe = (e) => {
+var ICe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
color: x8(r, i),
- value: jH(n, t),
+ value: LH(n, t),
payload: e
}];
-}, CCe = /*#__PURE__*/ P.memo((e) => {
+}, LCe = /*#__PURE__*/ P.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: QR,
+ getPosition: rz,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: jH(o, t),
+ name: LH(o, t),
hide: s,
type: l,
color: x8(r, a),
@@ -59848,8 +60257,8 @@ var SCe = (e) => {
};
return /*#__PURE__*/ P.createElement(h3, { tooltipEntrySettings: d });
});
-function wCe(e) {
- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = ML(r);
+function RCe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = LL(r);
return /*#__PURE__*/ P.createElement(T3, {
points: n,
dot: a,
@@ -59861,7 +60270,7 @@ function wCe(e) {
clipPathId: t
});
}
-function TCe(e) {
+function zCe(e) {
var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {
var t = {
x: e.x ?? 0,
@@ -59882,8 +60291,8 @@ function TCe(e) {
return /*#__PURE__*/ P.createElement(l4, { value: t ? i : void 0 }, n);
}
function S8(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 = v8(a, gCe), p = ML(f), m = PL(f);
- return /*#__PURE__*/ P.createElement(P.Fragment, null, t?.length > 1 && /*#__PURE__*/ P.createElement(RL, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ P.createElement(hK, _8({}, m, {
+ 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 = v8(a, ACe), p = LL(f), m = zL(f);
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, t?.length > 1 && /*#__PURE__*/ P.createElement(UL, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ P.createElement(xK, _8({}, m, {
id: d,
points: t,
connectNulls: l,
@@ -59892,29 +60301,29 @@ function S8(e) {
layout: o,
stroke: "none",
className: "recharts-area-area"
- })), c !== "none" && /*#__PURE__*/ P.createElement(hK, _8({}, p, {
+ })), c !== "none" && /*#__PURE__*/ P.createElement(xK, _8({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: t
- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ P.createElement(hK, _8({}, p, {
+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ P.createElement(xK, _8({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ P.createElement(wCe, {
+ }))), /*#__PURE__*/ P.createElement(RCe, {
points: t,
props: f,
clipPathId: i
}));
}
-function ECe(e) {
+function BCe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
- if (!aH(a) || !aH(o)) return null;
+ if (!dH(a) || !dH(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__*/ P.createElement("rect", {
x: 0,
@@ -59923,9 +60332,9 @@ function ECe(e) {
height: Math.floor(s)
}) : null;
}
-function DCe(e) {
+function VCe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
- if (!aH(a) || !aH(o)) return null;
+ if (!dH(a) || !dH(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__*/ P.createElement("rect", {
x: a < o ? a : a - s,
@@ -59934,35 +60343,35 @@ function DCe(e) {
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function OCe(e) {
+function HCe(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ P.createElement(ECe, {
+ return n === "vertical" ? /*#__PURE__*/ P.createElement(BCe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ P.createElement(DCe, {
+ }) : /*#__PURE__*/ P.createElement(VCe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function kCe(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 = pq((0, P.useMemo)(() => ({
+function UCe(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 = yq((0, P.useMemo)(() => ({
points: o,
baseLine: s
- }), [o, s]), "recharts-area-"), h = LU(), [g, _] = (0, P.useState)(!1), v = !g, y = (0, P.useCallback)(() => {
+ }), [o, s]), "recharts-area-"), h = UU(), [g, _] = (0, P.useState)(!1), v = !g, y = (0, P.useCallback)(() => {
typeof p == "function" && p(), _(!1);
}, [p]), b = (0, P.useCallback)(() => {
typeof f == "function" && f(), _(!0);
}, [f]);
if (h == null) return null;
var x = i.current, S = a.current;
- return /*#__PURE__*/ P.createElement(TCe, {
+ return /*#__PURE__*/ P.createElement(zCe, {
showLabels: v,
points: o
- }, r.children, /*#__PURE__*/ P.createElement(fq, {
+ }, r.children, /*#__PURE__*/ P.createElement(vq, {
animationId: m,
begin: l,
duration: u,
@@ -59978,18 +60387,18 @@ function kCe(e) {
if (x[r]) {
var i = x[r];
return b8(b8({}, t), {}, {
- x: qR(i.x, t.x, e),
- y: qR(i.y, t.y, e)
+ x: QR(i.x, t.x, e),
+ y: QR(i.y, t.y, e)
});
}
return t;
- }), d = Z(s) ? qR(S, s, e) : YR(s) || VR(s) ? qR(S, 0, e) : s.map((t, n) => {
+ }), d = Z(s) ? QR(S, s, e) : ez(s) || KR(s) ? QR(S, 0, e) : s.map((t, n) => {
var r = Math.floor(n * l);
if (Array.isArray(S) && S[r]) {
var i = S[r];
return b8(b8({}, t), {}, {
- x: qR(i.x, t.x, e),
- y: qR(i.y, t.y, e)
+ x: QR(i.x, t.x, e),
+ y: QR(i.y, t.y, e)
});
}
return t;
@@ -60002,13 +60411,13 @@ function kCe(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ P.createElement(RL, null, c && /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ P.createElement(OCe, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ P.createElement(UL, null, c && /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ P.createElement(HCe, {
alpha: e,
points: o,
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ P.createElement(RL, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ P.createElement(S8, {
+ }))), /*#__PURE__*/ P.createElement(UL, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ P.createElement(S8, {
points: o,
baseLine: s,
needClip: t,
@@ -60017,9 +60426,9 @@ function kCe(e) {
})));
}), /*#__PURE__*/ P.createElement(f4, { label: r.label }));
}
-function ACe(e) {
+function WCe(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, P.useRef)(null), a = (0, P.useRef)();
- return /*#__PURE__*/ P.createElement(kCe, {
+ return /*#__PURE__*/ P.createElement(UCe, {
needClip: t,
clipPathId: n,
props: r,
@@ -60027,12 +60436,12 @@ function ACe(e) {
previousBaselineRef: a
});
}
-var jCe = class extends P.PureComponent {
+var GCe = class extends P.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 = Pm("recharts-area", r), h = d, { r: g, strokeWidth: _ } = e8(t), v = n3(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ P.createElement(t2, { zIndex: p }, /*#__PURE__*/ P.createElement(RL, { className: m }, o && /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement(Y6, {
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: p }, /*#__PURE__*/ P.createElement(UL, { className: m }, o && /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement(Y6, {
clipPathId: h,
xAxisId: s,
yAxisId: c
@@ -60041,7 +60450,7 @@ var jCe = class extends P.PureComponent {
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ P.createElement(ACe, {
+ }))), /*#__PURE__*/ P.createElement(WCe, {
needClip: o,
clipPathId: h,
props: this.props
@@ -60059,7 +60468,7 @@ var jCe = class extends P.PureComponent {
clipPath: b
}));
}
-}, MCe = {
+}, KCe = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
@@ -60077,13 +60486,13 @@ var jCe = class extends P.PureComponent {
label: !1,
xAxisId: 0,
yAxisId: 0,
- zIndex: JJ.area
+ zIndex: eY.area
};
-function NCe(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 = v8(e, _Ce), g = IU(), _ = U0(), { needClip: v } = J6(p, m), y = tU(), { points: b, isRange: x, baseLine: S } = Q((t) => hCe(t, e.id, y)) ?? {}, C = k3();
+function qCe(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 = v8(e, jCe), g = HU(), _ = U0(), { needClip: v } = J6(p, m), y = sU(), { points: b, isRange: x, baseLine: S } = Q((t) => kCe(t, e.id, y)) ?? {}, C = k3();
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__*/ P.createElement(jCe, _8({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ P.createElement(GCe, _8({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -60109,7 +60518,7 @@ function NCe(e) {
yAxisId: m
}));
}
-var PCe = (e, t, n, r, i) => {
+var JCe = (e, t, n, r, i) => {
var a = n ?? t;
if (Z(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
@@ -60119,17 +60528,17 @@ var PCe = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function FCe(e) {
- var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = PCe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
+function YCe(e) {
+ var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = JCe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
var a;
if (m) a = i[u + n];
else {
- var o = fH(e, r);
+ var o = vH(e, r);
Array.isArray(o) ? (a = o, _ = !0) : a = [h, o];
}
- var l = a?.[1] ?? null, v = l == null || m && !t && fH(e, r) == null;
+ var l = a?.[1] ?? null, v = l == null || m && !t && vH(e, r) == null;
return g ? {
- x: xH({
+ x: DH({
axis: s,
ticks: d,
bandSize: p,
@@ -60141,7 +60550,7 @@ function FCe(e) {
payload: e
} : {
x: v ? null : s.scale.map(l) ?? null,
- y: xH({
+ y: DH({
axis: c,
ticks: f,
bandSize: p,
@@ -60169,12 +60578,12 @@ function FCe(e) {
isRange: _
};
}
-function ICe(e) {
- var t = cz(e, MCe), n = tU();
+function XCe(e) {
+ var t = pz(e, KCe), n = sU();
return /*#__PURE__*/ P.createElement(v3, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(g3, { legendPayload: SCe(t) }), /*#__PURE__*/ P.createElement(CCe, {
+ }, (e) => /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(g3, { legendPayload: ICe(t) }), /*#__PURE__*/ P.createElement(LCe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -60193,21 +60602,21 @@ function ICe(e) {
xAxisId: t.xAxisId,
yAxisId: t.yAxisId,
zAxisId: 0,
- stackId: bH(t.stackId),
+ stackId: EH(t.stackId),
hide: t.hide,
barSize: void 0,
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ P.createElement(NCe, _8({}, t, { id: e }))));
+ }), /*#__PURE__*/ P.createElement(qCe, _8({}, t, { id: e }))));
}
-var C8 = /*#__PURE__*/ P.memo(ICe, lG);
+var C8 = /*#__PURE__*/ P.memo(XCe, hG);
C8.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var LCe = "Invariant failed";
-function RCe(e, t) {
- if (!e) throw Error(LCe);
+var ZCe = "Invariant failed";
+function QCe(e, t) {
+ if (!e) throw Error(ZCe);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
@@ -60227,45 +60636,45 @@ function T8(e) {
inActiveClassName: "recharts-inactive-bar"
}, e));
}
-var zCe = function(e) {
+var $Ce = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
return (n, r) => {
if (Z(e)) return e;
- var i = Z(n) || YR(n);
- return i ? e(n, r) : (!i && RCe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
+ var i = Z(n) || ez(n);
+ return i ? e(n, r) : (!i && QCe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, BCe = (e, t, n) => n, E8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), VCe = $([E8], (e) => e?.maxBarSize), HCe = (e, t, n, r) => r, UCe = $([
- FU,
+}, ewe = (e, t, n) => n, E8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), twe = $([E8], (e) => e?.maxBarSize), nwe = (e, t, n, r) => r, rwe = $([
+ VU,
H$,
l8,
u8,
- BCe
-], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), WCe = (e, t, n) => {
- var r = FU(e), i = l8(e, t), a = u8(e, t);
+ ewe
+], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), iwe = (e, t, n) => {
+ var r = VU(e), i = l8(e, t), a = u8(e, t);
if (i != null && a != null) return r === "horizontal" ? a1(e, "yAxis", a, n) : a1(e, "xAxis", i, n);
-}, GCe = $([
- UCe,
- BJ,
+}, awe = $([
+ rwe,
+ KJ,
(e, t) => {
- var n = FU(e), r = l8(e, t), i = u8(e, t);
+ var n = VU(e), r = l8(e, t), i = u8(e, t);
if (r != null && i != null) return n === "horizontal" ? B1(e, "xAxis", r) : B1(e, "yAxis", i);
}
-], J3), KCe = (e, t, n) => {
+], J3), owe = (e, t, n) => {
var r = E8(e, t);
if (r == null) return 0;
var i = l8(e, t), a = u8(e, t);
if (i == null || a == null) return 0;
- var o = FU(e), s = LJ(e), { maxBarSize: c } = r, l = YR(c) ? s : c, u, d;
- return o === "horizontal" ? (u = J1(e, "xAxis", i, n), d = q1(e, "xAxis", i, n)) : (u = J1(e, "yAxis", a, n), d = q1(e, "yAxis", a, n)), kH(u, d, !0) ?? l ?? 0;
+ var o = VU(e), s = UJ(e), { maxBarSize: c } = r, l = ez(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = J1(e, "xAxis", i, n), d = q1(e, "xAxis", i, n)) : (u = J1(e, "yAxis", a, n), d = q1(e, "yAxis", a, n)), FH(u, d, !0) ?? l ?? 0;
}, D8 = (e, t, n) => {
- var r = FU(e), i = l8(e, t), a = u8(e, t);
+ var r = VU(e), i = l8(e, t), a = u8(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = J1(e, "xAxis", i, n), s = q1(e, "xAxis", i, n)) : (o = J1(e, "yAxis", a, n), s = q1(e, "yAxis", a, n)), kH(o, s);
+ return r === "horizontal" ? (o = J1(e, "xAxis", i, n), s = q1(e, "xAxis", i, n)) : (o = J1(e, "yAxis", a, n), s = q1(e, "yAxis", a, n)), FH(o, s);
}
-}, qCe = $([
- ZH,
- $H,
+}, swe = $([
+ rU,
+ aU,
(e, t, n) => {
var r = l8(e, t);
if (r != null) return J1(e, "xAxis", r, n);
@@ -60283,25 +60692,25 @@ var zCe = function(e) {
if (r != null) return q1(e, "yAxis", r, n);
},
$([$([
- GCe,
- LJ,
- RJ,
- zJ,
- KCe,
+ awe,
+ UJ,
+ WJ,
+ GJ,
+ owe,
D8,
- VCe
+ twe
], Z3), E8], $3),
- FU,
- SJ,
+ VU,
+ OJ,
D8,
- $([WCe, E8], Q3),
+ $([iwe, E8], Q3),
E8,
- HCe
+ nwe
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = c;
if (!(d == null || o == null || t == null || s !== "horizontal" && s !== "vertical" || n == null || r == null || i == null || a == null || l == null)) {
var { data: g } = d, _ = g != null && g.length > 0 ? g : p?.slice(m, h + 1);
- if (_ != null) return xwe({
+ if (_ != null) return Fwe({
layout: s,
barSettings: d,
pos: o,
@@ -60318,7 +60727,7 @@ var zCe = function(e) {
dataStartIndex: m
});
}
-}), JCe = ["index"];
+}), cwe = ["index"];
function O8() {
return O8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -60328,16 +60737,16 @@ function O8() {
return e;
}, O8.apply(null, arguments);
}
-function YCe(e, t) {
+function lwe(e, t) {
if (e == null) return {};
- var n, r, i = XCe(e, t);
+ var n, r, i = uwe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function XCe(e, t) {
+function uwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60346,31 +60755,31 @@ function XCe(e, t) {
}
return n;
}
-var k8 = /*#__PURE__*/ (0, P.createContext)(void 0), ZCe = (e) => {
+var k8 = /*#__PURE__*/ (0, P.createContext)(void 0), dwe = (e) => {
var t = (0, P.useContext)(k8);
if (t != null) return t.stackId;
- if (e != null) return bH(e);
-}, QCe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, $Ce = (e) => {
+ if (e != null) return EH(e);
+}, fwe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, pwe = (e) => {
var t = (0, P.useContext)(k8);
if (t != null) {
var { stackId: n } = t;
- return `url(#${QCe(n, e)})`;
+ return `url(#${fwe(n, e)})`;
}
}, A8 = (e) => {
- var { index: t } = e, n = YCe(e, JCe), r = $Ce(t);
- return /*#__PURE__*/ P.createElement(RL, O8({
+ var { index: t } = e, n = lwe(e, cwe), r = pwe(t);
+ return /*#__PURE__*/ P.createElement(UL, O8({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, ewe = [
+}, mwe = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], twe = [
+], hwe = [
"value",
"background",
"tooltipPosition"
-], nwe = ["id"], rwe = [
+], gwe = ["id"], _we = [
"onMouseEnter",
"onClick",
"onMouseLeave"
@@ -60398,26 +60807,26 @@ function N8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? M8(Object(n), !0).forEach(function(t) {
- iwe(e, t, n[t]);
+ vwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function iwe(e, t, n) {
- return (t = awe(t)) in e ? Object.defineProperty(e, t, {
+function vwe(e, t, n) {
+ return (t = ywe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function awe(e) {
- var t = owe(e, "string");
+function ywe(e) {
+ var t = bwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function owe(e, t) {
+function bwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60429,14 +60838,14 @@ function owe(e, t) {
}
function P8(e, t) {
if (e == null) return {};
- var n, r, i = swe(e, t);
+ var n, r, i = xwe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function swe(e, t) {
+function xwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60445,27 +60854,27 @@ function swe(e, t) {
}
return n;
}
-var cwe = (e) => {
+var Swe = (e) => {
var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: jH(n, t),
+ value: LH(n, t),
payload: e
}];
-}, lwe = /*#__PURE__*/ P.memo((e) => {
+}, Cwe = /*#__PURE__*/ P.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: QR,
+ getPosition: rz,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
dataKey: t,
nameKey: void 0,
- name: jH(a, t),
+ name: LH(a, t),
hide: o,
type: c,
color: i,
@@ -60475,17 +60884,17 @@ var cwe = (e) => {
};
return /*#__PURE__*/ P.createElement(h3, { tooltipEntrySettings: u });
});
-function uwe(e) {
- var t = Q(P0), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = P8(a, ewe), u = f3(o, r, a.id), d = p3(s), f = m3(c, r, a.id);
+function wwe(e) {
+ var t = Q(P0), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = P8(a, mwe), u = f3(o, r, a.id), d = p3(s), f = m3(c, r, a.id);
if (!i || n == null) return null;
- var p = NL(i);
- return /*#__PURE__*/ P.createElement(t2, { zIndex: f6(i, JJ.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = P8(e, twe);
+ var p = RL(i);
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: f6(i, eY.barBackground) }, n.map((e, n) => {
+ var { value: a, background: o, tooltipPosition: s } = e, c = P8(e, hwe);
if (!o) return null;
var m = u(e, n), h = d(e, n), g = f(e, n), _ = N8(N8(N8(N8(N8({
option: i,
isActive: String(n) === t
- }, c), {}, { fill: "#eee" }, o), p), oz(l, e, n)), {}, {
+ }, c), {}, { fill: "#eee" }, o), p), dz(l, e, n)), {}, {
onMouseEnter: m,
onMouseLeave: h,
onClick: g,
@@ -60496,7 +60905,7 @@ function uwe(e) {
return /*#__PURE__*/ P.createElement(T8, j8({ key: `background-bar-${n}` }, _));
}));
}
-function dwe(e) {
+function Twe(e) {
var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {
var t = {
x: e.x,
@@ -60516,7 +60925,7 @@ function dwe(e) {
});
return /*#__PURE__*/ P.createElement(l4, { value: t ? i : void 0 }, n);
}
-function fwe(e) {
+function Ewe(e) {
var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(P0), c = Q(I0), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, P.useState)(!1), [f, p] = (0, P.useState)(!1);
(0, P.useEffect)(() => {
var e;
@@ -60535,9 +60944,9 @@ function fwe(e) {
dataKey: o,
onTransitionEnd: m
}));
- return g ? /*#__PURE__*/ P.createElement(t2, { zIndex: JJ.activeBar }, /*#__PURE__*/ P.createElement(A8, { index: i.originalDataIndex }, v)) : v;
+ return g ? /*#__PURE__*/ P.createElement(t2, { zIndex: eY.activeBar }, /*#__PURE__*/ P.createElement(A8, { index: i.originalDataIndex }, v)) : v;
}
-function pwe(e) {
+function Dwe(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
return /*#__PURE__*/ P.createElement(T8, j8({}, n, { name: String(n.name) }, r, {
isActive: !1,
@@ -60546,24 +60955,24 @@ function pwe(e) {
dataKey: a
}));
}
-function mwe(e) {
- var { data: t, props: n } = e, r = ML(n) ?? {}, { id: i } = r, a = P8(r, nwe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = P8(n, rwe), p = f3(l, s, i), m = p3(d), h = m3(u, s, i);
+function Owe(e) {
+ var { data: t, props: n } = e, r = LL(n) ?? {}, { id: i } = r, a = P8(r, gwe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = P8(n, _we), p = f3(l, s, i), m = p3(d), h = m3(u, s, i);
return t ? /*#__PURE__*/ P.createElement(P.Fragment, null, t.map((e, t) => /*#__PURE__*/ P.createElement(A8, j8({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
- }, oz(f, e, t), {
+ }, dz(f, e, t), {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ P.createElement(fwe, {
+ }), c ? /*#__PURE__*/ P.createElement(Ewe, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ P.createElement(pwe, {
+ }) : /*#__PURE__*/ P.createElement(Dwe, {
shape: o,
baseProps: a,
entry: e,
@@ -60571,16 +60980,16 @@ function mwe(e) {
dataKey: s
})))) : null;
}
-function hwe(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 = pq(t, "recharts-bar-"), [p, m] = (0, P.useState)(!1), h = !p, g = (0, P.useCallback)(() => {
+function kwe(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 = yq(t, "recharts-bar-"), [p, m] = (0, P.useState)(!1), h = !p, g = (0, P.useCallback)(() => {
typeof l == "function" && l(), m(!1);
}, [l]), _ = (0, P.useCallback)(() => {
typeof u == "function" && u(), m(!0);
}, [u]);
- return /*#__PURE__*/ P.createElement(dwe, {
+ return /*#__PURE__*/ P.createElement(Twe, {
showLabels: h,
rects: r
- }, /*#__PURE__*/ P.createElement(fq, {
+ }, /*#__PURE__*/ P.createElement(vq, {
animationId: f,
begin: o,
duration: s,
@@ -60593,68 +61002,68 @@ function hwe(e) {
var a = e === 1 ? r : r?.map((t, n) => {
var r = d && d[n];
if (r) return N8(N8({}, t), {}, {
- x: qR(r.x, t.x, e),
- y: qR(r.y, t.y, e),
- width: qR(r.width, t.width, e),
- height: qR(r.height, t.height, e)
+ x: QR(r.x, t.x, e),
+ y: QR(r.y, t.y, e),
+ width: QR(r.width, t.width, e),
+ height: QR(r.height, t.height, e)
});
if (i === "horizontal") {
- var a = qR(0, t.height, e), o = qR(t.stackedBarStart, t.y, e);
+ var a = QR(0, t.height, e), o = QR(t.stackedBarStart, t.y, e);
return N8(N8({}, t), {}, {
y: o,
height: a
});
}
- var s = qR(0, t.width, e), c = qR(t.stackedBarStart, t.x, e);
+ var s = QR(0, t.width, e), c = QR(t.stackedBarStart, t.x, e);
return N8(N8({}, t), {}, {
width: s,
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ P.createElement(RL, null, /*#__PURE__*/ P.createElement(mwe, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ P.createElement(UL, null, /*#__PURE__*/ P.createElement(Owe, {
props: t,
data: a
}));
}), /*#__PURE__*/ P.createElement(f4, { label: t.label }), t.children);
}
-function gwe(e) {
+function Awe(e) {
var t = (0, P.useRef)(null);
- return /*#__PURE__*/ P.createElement(hwe, {
+ return /*#__PURE__*/ P.createElement(kwe, {
previousRectanglesRef: t,
props: e
});
}
-var F8 = 0, _we = (e, t) => {
+var F8 = 0, jwe = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
y: e.y,
value: n,
- errorVal: fH(e, t)
+ errorVal: vH(e, t)
};
-}, vwe = class extends P.PureComponent {
+}, Mwe = class extends P.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 = Pm("recharts-bar", r), u = c;
- return /*#__PURE__*/ P.createElement(RL, {
+ return /*#__PURE__*/ P.createElement(UL, {
className: l,
id: c
}, o && /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement(Y6, {
clipPathId: u,
xAxisId: i,
yAxisId: a
- })), /*#__PURE__*/ P.createElement(RL, {
+ })), /*#__PURE__*/ P.createElement(UL, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ P.createElement(uwe, {
+ }, /*#__PURE__*/ P.createElement(wwe, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ P.createElement(gwe, this.props)));
+ }), /*#__PURE__*/ P.createElement(Awe, this.props)));
}
-}, ywe = {
+}, Nwe = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
@@ -60667,19 +61076,19 @@ var F8 = 0, _we = (e, t) => {
minPointSize: F8,
xAxisId: 0,
yAxisId: 0,
- zIndex: JJ.bar
+ zIndex: eY.bar
};
-function bwe(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 } = J6(t, n), f = IU(), p = tU(), m = t3(e.children, v2), h = Q((t) => qCe(t, e.id, p, m));
+function Pwe(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 } = J6(t, n), f = HU(), p = sU(), m = t3(e.children, v2), h = Q((t) => swe(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__*/ P.createElement(q6, {
xAxisId: t,
yAxisId: n,
data: h,
- dataPointFormatter: _we,
+ dataPointFormatter: jwe,
errorBarOffset: g
- }, /*#__PURE__*/ P.createElement(vwe, j8({}, e, {
+ }, /*#__PURE__*/ P.createElement(Mwe, j8({}, e, {
layout: f,
needClip: d,
data: h,
@@ -60695,20 +61104,20 @@ function bwe(e) {
isAnimationActive: u
})));
}
-function xwe(e) {
- var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = CH({ numericAxis: _ }), b = _.scale.map(y);
+function Fwe(e) {
+ var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = kH({ numericAxis: _ }), b = _.scale.map(y);
return f.map((e, f) => {
var _, x, S, C, w, T;
if (d) {
var E = d[f + g];
if (E == null) return null;
- _ = _H(E, v);
- } else _ = fH(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = zCe(r, F8)(_[1], f);
+ _ = CH(E, v);
+ } else _ = vH(e, n), Array.isArray(_) || (_ = [y, _]);
+ var D = $Ce(r, F8)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
- x = SH({
+ x = OH({
axis: s,
ticks: l,
bandSize: o,
@@ -60717,19 +61126,19 @@ function xwe(e) {
index: f
}), S = k ?? O ?? void 0, C = a.size;
var A = O - k;
- if (w = VR(A) ? 0 : A, T = {
+ if (w = KR(A) ? 0 : A, T = {
x,
y: p.top,
width: C,
height: p.height
}, Math.abs(D) > 0 && Math.abs(w) < Math.abs(D)) {
- var j = BR(w || D) * (Math.abs(D) - Math.abs(w));
+ var j = GR(w || D) * (Math.abs(D) - Math.abs(w));
S -= j, w += j;
}
} else {
var M = s.scale.map(_[0]), N = s.scale.map(_[1]);
if (M == null || N == null) return null;
- if (x = M, S = SH({
+ if (x = M, S = OH({
axis: c,
ticks: u,
bandSize: o,
@@ -60742,7 +61151,7 @@ function xwe(e) {
width: p.width,
height: w
}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {
- var P = BR(C || D) * (Math.abs(D) - Math.abs(C));
+ var P = GR(C || D) * (Math.abs(D) - Math.abs(C));
C += P;
}
}
@@ -60764,12 +61173,12 @@ function xwe(e) {
}, m && m[f] && m[f].props);
}).filter(Boolean);
}
-function Swe(e) {
- var t = cz(e, ywe), n = ZCe(t.stackId), r = tU();
+function Iwe(e) {
+ var t = pz(e, Nwe), n = dwe(t.stackId), r = sU();
return /*#__PURE__*/ P.createElement(v3, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(g3, { legendPayload: cwe(t) }), /*#__PURE__*/ P.createElement(lwe, {
+ }, (e) => /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(g3, { legendPayload: Swe(t) }), /*#__PURE__*/ P.createElement(Cwe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -60794,23 +61203,23 @@ function Swe(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ P.createElement(t2, { zIndex: t.zIndex }, /*#__PURE__*/ P.createElement(bwe, j8({}, t, { id: e })))));
+ }), /*#__PURE__*/ P.createElement(t2, { zIndex: t.zIndex }, /*#__PURE__*/ P.createElement(Pwe, j8({}, t, { id: e })))));
}
-var I8 = /*#__PURE__*/ P.memo(Swe, lG);
+var I8 = /*#__PURE__*/ P.memo(Iwe, hG);
I8.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var Cwe = ["domain", "range"], wwe = ["domain", "range"];
+var Lwe = ["domain", "range"], Rwe = ["domain", "range"];
function L8(e, t) {
if (e == null) return {};
- var n, r, i = Twe(e, t);
+ var n, r, i = zwe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Twe(e, t) {
+function zwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60824,16 +61233,16 @@ function R8(e, t) {
}
function z8(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = L8(e, Cwe), { domain: a, range: o } = t, s = L8(t, wwe);
- return !R8(n, a) || !R8(r, o) ? !1 : lG(i, s);
+ var { domain: n, range: r } = e, i = L8(e, Lwe), { domain: a, range: o } = t, s = L8(t, Rwe);
+ return !R8(n, a) || !R8(r, o) ? !1 : hG(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var Ewe = ["type"], Dwe = [
+var Bwe = ["type"], Vwe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], Owe = ["id", "scale"];
+], Hwe = ["id", "scale"];
function B8() {
return B8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -60857,26 +61266,26 @@ function H8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? V8(Object(n), !0).forEach(function(t) {
- kwe(e, t, n[t]);
+ Uwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function kwe(e, t, n) {
- return (t = Awe(t)) in e ? Object.defineProperty(e, t, {
+function Uwe(e, t, n) {
+ return (t = Wwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Awe(e) {
- var t = jwe(e, "string");
+function Wwe(e) {
+ var t = Gwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jwe(e, t) {
+function Gwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60888,14 +61297,14 @@ function jwe(e, t) {
}
function U8(e, t) {
if (e == null) return {};
- var n, r, i = Mwe(e, t);
+ var n, r, i = Kwe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Mwe(e, t) {
+function Kwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60904,23 +61313,23 @@ function Mwe(e, t) {
}
return n;
}
-function Nwe(e) {
- var t = Fz(), n = (0, P.useRef)(null), r = LU(), { type: i } = e, a = U8(e, Ewe), o = QJ(r, "xAxis", i), s = (0, P.useMemo)(() => {
+function qwe(e) {
+ var t = Bz(), n = (0, P.useRef)(null), r = UU(), { type: i } = e, a = U8(e, Bwe), o = iY(r, "xAxis", i), s = (0, P.useMemo)(() => {
if (o != null) return H8(H8({}, a), {}, { type: o });
}, [a, o]);
return (0, P.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(Yye(s)) : n.current !== s && t(Xye({
+ s != null && (n.current === null ? t(lbe(s)) : n.current !== s && t(ube({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, P.useLayoutEffect)(() => () => {
- n.current &&= (t(Zye(n.current)), null);
+ n.current &&= (t(dbe(n.current)), null);
}, [t]), null;
}
-var Pwe = (e) => {
- var { xAxisId: t, className: n } = e, r = Q($H), i = tU(), a = "xAxis", o = Q((e) => G1(e, a, t, i)), s = Q((e) => R1(e, t)), c = Q((e) => the(e, t)), l = Q((e) => M$(e, t));
+var Jwe = (e) => {
+ var { xAxisId: t, className: n } = e, r = Q(aU), i = sU(), a = "xAxis", o = Q((e) => G1(e, a, t, i)), s = Q((e) => R1(e, t)), c = Q((e) => hhe(e, t)), l = Q((e) => M$(e, t));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = U8(e, Dwe), { id: m, scale: h } = l, g = U8(l, Owe);
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = U8(e, Vwe), { id: m, scale: h } = l, g = U8(l, Hwe);
return /*#__PURE__*/ P.createElement(z6, B8({}, p, g, {
x: c.x,
y: c.y,
@@ -60932,7 +61341,7 @@ var Pwe = (e) => {
axisType: a,
axisId: t
}));
-}, Fwe = {
+}, Ywe = {
allowDataOverflow: j$.allowDataOverflow,
allowDecimals: j$.allowDecimals,
allowDuplicatedCategory: j$.allowDuplicatedCategory,
@@ -60957,8 +61366,8 @@ var Pwe = (e) => {
niceTicks: j$.niceTicks,
xAxisId: 0
}, W8 = /*#__PURE__*/ P.memo((e) => {
- var t = cz(e, Fwe);
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Nwe, {
+ var t = pz(e, Ywe);
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(qwe, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -60984,16 +61393,16 @@ var Pwe = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ P.createElement(Pwe, t));
+ }), /*#__PURE__*/ P.createElement(Jwe, t));
}, z8);
W8.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var Iwe = ["type"], Lwe = [
+var Xwe = ["type"], Zwe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], Rwe = ["id", "scale"];
+], Qwe = ["id", "scale"];
function G8() {
return G8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -61017,26 +61426,26 @@ function q8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? K8(Object(n), !0).forEach(function(t) {
- zwe(e, t, n[t]);
+ $we(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zwe(e, t, n) {
- return (t = Bwe(t)) in e ? Object.defineProperty(e, t, {
+function $we(e, t, n) {
+ return (t = eTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Bwe(e) {
- var t = Vwe(e, "string");
+function eTe(e) {
+ var t = tTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Vwe(e, t) {
+function tTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61048,14 +61457,14 @@ function Vwe(e, t) {
}
function J8(e, t) {
if (e == null) return {};
- var n, r, i = Hwe(e, t);
+ var n, r, i = nTe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Hwe(e, t) {
+function nTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61064,27 +61473,27 @@ function Hwe(e, t) {
}
return n;
}
-function Uwe(e) {
- var t = Fz(), n = (0, P.useRef)(null), r = LU(), { type: i } = e, a = J8(e, Iwe), o = QJ(r, "yAxis", i), s = (0, P.useMemo)(() => {
+function rTe(e) {
+ var t = Bz(), n = (0, P.useRef)(null), r = UU(), { type: i } = e, a = J8(e, Xwe), o = iY(r, "yAxis", i), s = (0, P.useMemo)(() => {
if (o != null) return q8(q8({}, a), {}, { type: o });
}, [o, a]);
return (0, P.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(Qye(s)) : n.current !== s && t($ye({
+ s != null && (n.current === null ? t(fbe(s)) : n.current !== s && t(pbe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, P.useLayoutEffect)(() => () => {
- n.current &&= (t(ebe(n.current)), null);
+ n.current &&= (t(mbe(n.current)), null);
}, [t]), null;
}
-function Wwe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = Q($H), c = tU(), l = Fz(), u = "yAxis", d = Q((e) => z1(e, t)), f = Q((e) => nhe(e, t)), p = Q((e) => G1(e, u, t, c)), m = Q((e) => F$(e, t));
+function iTe(e) {
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = Q(aU), c = sU(), l = Bz(), u = "yAxis", d = Q((e) => z1(e, t)), f = Q((e) => ghe(e, t)), p = Q((e) => G1(e, u, t, c)), m = Q((e) => F$(e, t));
if ((0, P.useLayoutEffect)(() => {
if (!(r !== "auto" || !d || t4(i) || /*#__PURE__*/ (0, P.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
- Math.round(d.width) !== Math.round(n) && l(ibe({
+ Math.round(d.width) !== Math.round(n) && l(vbe({
id: t,
width: n
}));
@@ -61099,7 +61508,7 @@ function Wwe(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = J8(e, Lwe), { id: y, scale: b } = m, x = J8(m, Rwe);
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = J8(e, Zwe), { id: y, scale: b } = m, x = J8(m, Qwe);
return /*#__PURE__*/ P.createElement(z6, G8({}, v, x, {
ref: a,
labelRef: o,
@@ -61115,7 +61524,7 @@ function Wwe(e) {
axisId: t
}));
}
-var Gwe = {
+var aTe = {
allowDataOverflow: P$.allowDataOverflow,
allowDecimals: P$.allowDecimals,
allowDuplicatedCategory: P$.allowDuplicatedCategory,
@@ -61140,8 +61549,8 @@ var Gwe = {
width: P$.width,
yAxisId: 0
}, Y8 = /*#__PURE__*/ P.memo((e) => {
- var t = cz(e, Gwe);
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Uwe, {
+ var t = pz(e, aTe);
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(rTe, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -61167,27 +61576,27 @@ var Gwe = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ P.createElement(Wwe, t));
+ }), /*#__PURE__*/ P.createElement(iTe, t));
}, z8);
Y8.displayName = "YAxis";
var X8 = $([
(e, t) => t,
- FU,
- gY,
- TY,
+ VU,
+ SY,
+ jY,
D0,
k0,
- Qhe,
- ZH
-], age);
+ fge,
+ rU
+], yge);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function Kwe(e) {
+function oTe(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
function Z8(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if (Kwe(e)) {
+ if (oTe(e)) {
var i = e.currentTarget.getBBox();
n = i.width > 0 ? t.width / i.width : 1, r = i.height > 0 ? t.height / i.height : 1;
} else {
@@ -61202,19 +61611,19 @@ function Z8(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var Q8 = dV("mouseClick"), $8 = XV();
+var Q8 = gV("mouseClick"), $8 = nH();
$8.startListening({
actionCreator: Q8,
effect: (e, t) => {
var n = e.payload, r = X8(t.getState(), Z8(n));
- r?.activeIndex != null && t.dispatch(fhe({
+ r?.activeIndex != null && t.dispatch(Ehe({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
});
-var e5 = dV("mouseMove"), t5 = XV(), n5 = null, r5 = null, i5 = null;
+var e5 = gV("mouseMove"), t5 = nH(), n5 = null, r5 = null, i5 = null;
t5.startListening({
actionCreator: e5,
effect: (e, t) => {
@@ -61245,7 +61654,7 @@ t5.startListening({
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function qwe(e, t) {
+function sTe(e, t) {
return t instanceof HTMLElement ? `HTMLElement <${t.tagName} class="${t.className}">` : t === window ? "global.window" : e === "children" && typeof t == "object" && t ? "<<CHILDREN>>" : t;
}
//#endregion
@@ -61262,17 +61671,17 @@ var a5 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, o5 = bV({
+}, o5 = TV({
name: "rootProps",
initialState: a5,
reducers: { updateOptions: (e, t) => {
e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? a5.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;
} }
-}), Jwe = o5.reducer, { updateOptions: Ywe } = o5.actions, s5 = bV({
+}), cTe = o5.reducer, { updateOptions: lTe } = o5.actions, s5 = TV({
name: "polarOptions",
initialState: null,
reducers: { updatePolarOptions: (e, t) => e === null ? t.payload : (e.startAngle = t.payload.startAngle, e.endAngle = t.payload.endAngle, e.cx = t.payload.cx, e.cy = t.payload.cy, e.innerRadius = t.payload.innerRadius, e.outerRadius = t.payload.outerRadius, e) }
-}), { updatePolarOptions: Xwe } = s5.actions, Zwe = s5.reducer, c5 = dV("keyDown"), l5 = dV("focus"), u5 = dV("blur"), d5 = XV(), f5 = null, p5 = null, m5 = null;
+}), { updatePolarOptions: uTe } = s5.actions, dTe = s5.reducer, c5 = gV("keyDown"), l5 = gV("focus"), u5 = gV("blur"), d5 = nH(), f5 = null, p5 = null, m5 = null;
d5.startListening({
actionCreator: c5,
effect: (e, t) => {
@@ -61297,7 +61706,7 @@ d5.startListening({
}));
return;
}
- var c = rhe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
+ var c = _he(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
if (o == null || l >= o.length || l < 0) return;
var u = X0(e, "axis", "hover", String(l));
t.dispatch(o0({
@@ -61360,7 +61769,7 @@ function h5(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var g5 = dV("externalEvent"), _5 = XV(), v5 = /* @__PURE__ */ new Map(), y5 = /* @__PURE__ */ new Map(), b5 = /* @__PURE__ */ new Map();
+var g5 = gV("externalEvent"), _5 = nH(), v5 = /* @__PURE__ */ new Map(), y5 = /* @__PURE__ */ new Map(), b5 = /* @__PURE__ */ new Map();
_5.startListening({
actionCreator: g5,
effect: (e, t) => {
@@ -61380,12 +61789,12 @@ _5.startListening({
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
- activeCoordinate: Rhe(a),
+ activeCoordinate: Qhe(a),
activeDataKey: I0(a),
activeIndex: P0(a),
activeLabel: F0(a),
activeTooltipIndex: P0(a),
- isTooltipActive: zhe(a)
+ isTooltipActive: $he(a)
};
n && n(o, r);
} finally {
@@ -61409,7 +61818,7 @@ _5.startListening({
}
}
});
-var Qwe = $([
+var fTe = $([
$([m0], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
@@ -61421,7 +61830,7 @@ var Qwe = $([
if (i != null) return i(t);
}
}
-}), x5 = dV("touchMove"), S5 = XV(), C5 = null, w5 = null, T5 = null, E5 = null;
+}), x5 = gV("touchMove"), S5 = nH(), C5 = null, w5 = null, T5 = null, E5 = null;
S5.startListening({
actionCreator: x5,
effect: (e, t) => {
@@ -61454,9 +61863,9 @@ S5.startListening({
if (document.elementFromPoint == null || a == null) return;
var o = document.elementFromPoint(a.clientX, a.clientY);
if (!o || !o.getAttribute) return;
- var s = o.getAttribute(BH), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = b0(e).find((e) => e.id === c);
+ var s = o.getAttribute(KH), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = b0(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
- var { dataKey: u } = l, d = Qwe(e, s, c);
+ var { dataKey: u } = l, d = fTe(e, s, c);
t.dispatch(n0({
activeDataKey: u,
activeIndex: s,
@@ -61488,33 +61897,33 @@ var D5 = {
"scroll",
"wheel"
]
-}, O5 = bV({
+}, O5 = TV({
name: "eventSettings",
initialState: D5,
reducers: { setEventSettings: (e, t) => {
- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = LW(t.payload.throttledEvents));
+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = UW(t.payload.throttledEvents));
} }
-}), { setEventSettings: $we } = O5.actions, eTe = O5.reducer, tTe = $z({
- brush: vxe,
- cartesianAxis: abe,
- chartData: Mge,
- errorBars: LSe,
- eventSettings: eTe,
- graphicalItems: Fye,
- layout: rH,
- legend: WW,
- options: Dge,
- polarAxis: Tve,
- polarOptions: Zwe,
- referenceElements: kxe,
- renderedTicks: rSe,
- rootProps: Jwe,
- tooltip: phe,
- zIndex: vge
-}), nTe = function(e) {
+}), { setEventSettings: pTe } = O5.actions, mTe = O5.reducer, hTe = iB({
+ brush: Mxe,
+ cartesianAxis: ybe,
+ chartData: Kge,
+ errorBars: ZSe,
+ eventSettings: mTe,
+ graphicalItems: Yye,
+ layout: lH,
+ legend: XW,
+ options: Vge,
+ polarAxis: zve,
+ polarOptions: dTe,
+ referenceElements: Uxe,
+ renderedTicks: _Se,
+ rootProps: cTe,
+ tooltip: Dhe,
+ zIndex: Mge
+}), gTe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return sfe({
- reducer: tTe,
+ return gfe({
+ reducer: hTe,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -61532,10 +61941,10 @@ var D5 = {
]),
enhancers: (e) => {
var t = e;
- return typeof e == "function" && (t = e()), t.concat(vV({ type: "raf" }));
+ return typeof e == "function" && (t = e()), t.concat(CV({ type: "raf" }));
},
- devTools: WG.devToolsEnabled && {
- serialize: { replacer: qwe },
+ devTools: XG.devToolsEnabled && {
+ serialize: { replacer: sTe },
name: `recharts-${t}`
}
});
@@ -61543,21 +61952,21 @@ var D5 = {
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
function k5(e) {
- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = tU(), a = (0, P.useRef)(null);
+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = sU(), a = (0, P.useRef)(null);
if (i) return n;
- a.current ??= nTe(t, r);
- var o = Pz;
- return /*#__PURE__*/ P.createElement(oG, {
+ a.current ??= gTe(t, r);
+ var o = zz;
+ return /*#__PURE__*/ P.createElement(fG, {
context: o,
store: a.current
}, n);
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function rTe(e) {
- var { layout: t, margin: n } = e, r = Fz(), i = tU();
+function _Te(e) {
+ var { layout: t, margin: n } = e, r = Bz(), i = sU();
return (0, P.useEffect)(() => {
- i || (r(eH(t)), r($V(n)));
+ i || (r(oH(t)), r(aH(n)));
}, [
r,
i,
@@ -61565,31 +61974,31 @@ function rTe(e) {
n
]), null;
}
-var A5 = /*#__PURE__*/ (0, P.memo)(rTe, lG);
+var A5 = /*#__PURE__*/ (0, P.memo)(_Te, hG);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
function j5(e) {
- var t = Fz();
+ var t = Bz();
return (0, P.useEffect)(() => {
- t(Ywe(e));
+ t(lTe(e));
}, [t, e]), null;
}
var M5 = /*#__PURE__*/ (0, P.memo)((e) => {
- var t = Fz();
+ var t = Bz();
return (0, P.useEffect)(() => {
- t($we(e));
+ t(pTe(e));
}, [t, e]), null;
-}, lG);
+}, hG);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
function N5(e) {
- var { zIndex: t, isPanorama: n } = e, r = (0, P.useRef)(null), i = Fz();
- return (0, P.useLayoutEffect)(() => (r.current && i(gge({
+ var { zIndex: t, isPanorama: n } = e, r = (0, P.useRef)(null), i = Bz();
+ return (0, P.useLayoutEffect)(() => (r.current && i(Age({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(_ge({
+ i(jge({
zIndex: t,
isPanorama: n
}));
@@ -61604,7 +62013,7 @@ function N5(e) {
});
}
function P5(e) {
- var { children: t, isPanorama: n } = e, r = Q(sge);
+ var { children: t, isPanorama: n } = e, r = Q(xge);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
return /*#__PURE__*/ P.createElement(P.Fragment, null, i.map((e) => /*#__PURE__*/ P.createElement(N5, {
@@ -61619,17 +62028,17 @@ function P5(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var iTe = ["children"];
-function aTe(e, t) {
+var vTe = ["children"];
+function yTe(e, t) {
if (e == null) return {};
- var n, r, i = oTe(e, t);
+ var n, r, i = bTe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function oTe(e, t) {
+function bTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61647,46 +62056,46 @@ function F5() {
return e;
}, F5.apply(null, arguments);
}
-var sTe = {
+var xTe = {
width: "100%",
height: "100%",
display: "block"
-}, cTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var n = MU(), r = NU(), i = eK();
- if (!oH(n) || !oH(r)) return null;
+}, STe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var n = RU(), r = zU(), i = oK();
+ if (!fH(n) || !fH(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__*/ P.createElement(IL, F5({}, 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__*/ P.createElement(VL, F5({}, o, {
title: s,
desc: c,
role: u,
tabIndex: l,
width: n,
height: r,
- style: sTe,
+ style: xTe,
ref: t
}), a);
-}), lTe = (e) => {
- var { children: t } = e, n = Q(rU);
+}), CTe = (e) => {
+ var { children: t } = e, n = Q(lU);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
- return /*#__PURE__*/ P.createElement(IL, {
+ return /*#__PURE__*/ P.createElement(VL, {
width: r,
height: i,
x: o,
y: a
}, t);
}, I5 = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var { children: n } = e, r = aTe(e, iTe);
- return tU() ? /*#__PURE__*/ P.createElement(lTe, null, /*#__PURE__*/ P.createElement(P5, { isPanorama: !0 }, n)) : /*#__PURE__*/ P.createElement(cTe, F5({ ref: t }, r), /*#__PURE__*/ P.createElement(P5, { isPanorama: !1 }, n));
+ var { children: n } = e, r = yTe(e, vTe);
+ return sU() ? /*#__PURE__*/ P.createElement(CTe, null, /*#__PURE__*/ P.createElement(P5, { isPanorama: !0 }, n)) : /*#__PURE__*/ P.createElement(STe, F5({ ref: t }, r), /*#__PURE__*/ P.createElement(P5, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function uTe() {
- var e = Fz(), [t, n] = (0, P.useState)(null), r = Q(IH);
+function wTe() {
+ var e = Bz(), [t, n] = (0, P.useState)(null), r = Q(HH);
return (0, P.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- aH(n) && n !== r && e(nH(n));
+ dH(n) && n !== r && e(cH(n));
}
}, [
t,
@@ -61706,30 +62115,30 @@ function L5(e, t) {
}
return n;
}
-function dTe(e) {
+function TTe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? L5(Object(n), !0).forEach(function(t) {
- fTe(e, t, n[t]);
+ ETe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fTe(e, t, n) {
- return (t = pTe(t)) in e ? Object.defineProperty(e, t, {
+function ETe(e, t, n) {
+ return (t = DTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pTe(e) {
- var t = mTe(e, "string");
+function DTe(e) {
+ var t = OTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mTe(e, t) {
+function OTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61748,7 +62157,7 @@ function R5() {
return e;
}, R5.apply(null, arguments);
}
-var hTe = () => (Vge(), null);
+var kTe = () => (t_e(), null);
function z5(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
@@ -61757,7 +62166,7 @@ function z5(e) {
}
return 0;
}
-var gTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+var ATe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
var n = (0, P.useRef)(null), [r, i] = (0, P.useState)({
containerWidth: z5(e.style?.width),
containerHeight: z5(e.style?.height)
@@ -61785,11 +62194,11 @@ var gTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
}, [t, a]);
return (0, P.useEffect)(() => () => {
n.current?.disconnect();
- }, [a]), /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(VU, {
+ }, [a]), /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(qU, {
width: r.containerWidth,
height: r.containerHeight
}), /*#__PURE__*/ P.createElement("div", R5({ ref: o }, e)));
-}), _Te = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+}), jTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, P.useState)({
containerWidth: z5(n),
containerHeight: z5(r)
@@ -61807,32 +62216,32 @@ var gTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
o(n, r);
}
}, [t, o]);
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(VU, {
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(qU, {
width: i.containerWidth,
height: i.containerHeight
}), /*#__PURE__*/ P.createElement("div", R5({ ref: s }, e)));
-}), vTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+}), MTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(VU, {
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(qU, {
width: n,
height: r
}), /*#__PURE__*/ P.createElement("div", R5({ ref: t }, e)));
-}), yTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+}), NTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ P.createElement(_Te, R5({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ P.createElement(vTe, R5({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ P.createElement(jTe, R5({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ P.createElement(MTe, R5({}, e, {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(VU, {
+ })) : /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(qU, {
width: n,
height: r
}), /*#__PURE__*/ P.createElement("div", R5({ ref: t }, e)));
});
-function bTe(e) {
- return e ? gTe : yTe;
+function PTe(e) {
+ return e ? ATe : NTe;
}
-var xTe = /*#__PURE__*/ (0, P.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, P.useRef)(null), x = Fz(), [S, C] = (0, P.useState)(null), [w, T] = (0, P.useState)(null), E = uTe(), D = TU(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, P.useCallback)((e) => {
+var FTe = /*#__PURE__*/ (0, P.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, P.useRef)(null), x = Bz(), [S, C] = (0, P.useState)(null), [w, T] = (0, P.useState)(null), E = wTe(), D = jU(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, P.useCallback)((e) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
@@ -61904,12 +62313,12 @@ var xTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
handler: p,
reactEvent: e
}));
- }, [x, p]), le = bTe(v);
- return /*#__PURE__*/ P.createElement(a2.Provider, { value: S }, /*#__PURE__*/ P.createElement(zL.Provider, { value: w }, /*#__PURE__*/ P.createElement(le, {
+ }, [x, p]), le = PTe(v);
+ return /*#__PURE__*/ P.createElement(a2.Provider, { value: S }, /*#__PURE__*/ P.createElement(WL.Provider, { value: w }, /*#__PURE__*/ P.createElement(le, {
width: O ?? g?.width,
height: k ?? g?.height,
className: Pm("recharts-wrapper", r),
- style: dTe({
+ style: TTe({
position: "relative",
cursor: "default",
width: O,
@@ -61930,8 +62339,8 @@ var xTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
onTouchMove: se,
onTouchStart: oe,
ref: A
- }, /*#__PURE__*/ P.createElement(hTe, null), n)));
-}), STe = [
+ }, /*#__PURE__*/ P.createElement(kTe, null), n)));
+}), ITe = [
"width",
"height",
"responsive",
@@ -61942,16 +62351,16 @@ var xTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
"title",
"desc"
];
-function CTe(e, t) {
+function LTe(e, t) {
if (e == null) return {};
- var n, r, i = wTe(e, t);
+ var n, r, i = RTe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function wTe(e, t) {
+function RTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61961,15 +62370,15 @@ function wTe(e, t) {
return n;
}
var B5 = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = ML(CTe(e, STe));
- return c ? /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(VU, {
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = LL(LTe(e, ITe));
+ return c ? /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(qU, {
width: n,
height: r
}), /*#__PURE__*/ P.createElement(I5, {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ P.createElement(xTe, {
+ }, a)) : /*#__PURE__*/ P.createElement(FTe, {
className: o,
style: s,
width: n,
@@ -61991,7 +62400,7 @@ var B5 = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ P.createElement(Axe, null, a)));
+ }, /*#__PURE__*/ P.createElement(Wxe, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
@@ -62014,30 +62423,30 @@ function H5(e, t) {
}
return n;
}
-function TTe(e) {
+function zTe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? H5(Object(n), !0).forEach(function(t) {
- ETe(e, t, n[t]);
+ BTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ETe(e, t, n) {
- return (t = DTe(t)) in e ? Object.defineProperty(e, t, {
+function BTe(e, t, n) {
+ return (t = VTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function DTe(e) {
- var t = OTe(e, "string");
+function VTe(e) {
+ var t = HTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function OTe(e, t) {
+function HTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62047,7 +62456,7 @@ function OTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var kTe = TTe({
+var UTe = zTe({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -62063,7 +62472,7 @@ var kTe = TTe({
stackOffset: "none",
syncMethod: "index"
}, D5), U5 = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- var n = cz(e.categoricalChartProps, kTe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+ var n = pz(e.categoricalChartProps, UTe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
@@ -62092,32 +62501,32 @@ var kTe = TTe({
className: n.className,
reverseStackOrder: n.reverseStackOrder
}), /*#__PURE__*/ P.createElement(B5, V5({}, n, { ref: t })));
-}), ATe = ["axis"], jTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => /*#__PURE__*/ P.createElement(U5, {
+}), WTe = ["axis"], GTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => /*#__PURE__*/ P.createElement(U5, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: ATe,
+ validateTooltipEventTypes: WTe,
tooltipPayloadSearcher: l2,
categoricalChartProps: e,
ref: t
-})), MTe = ["axis", "item"], W5 = /*#__PURE__*/ (0, P.forwardRef)((e, t) => /*#__PURE__*/ P.createElement(U5, {
+})), KTe = ["axis", "item"], W5 = /*#__PURE__*/ (0, P.forwardRef)((e, t) => /*#__PURE__*/ P.createElement(U5, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: MTe,
+ validateTooltipEventTypes: KTe,
tooltipPayloadSearcher: l2,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function NTe(e) {
- var t = Fz();
+function qTe(e) {
+ var t = Bz();
return (0, P.useEffect)(() => {
- t(Xwe(e));
+ t(uTe(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var PTe = ["layout"];
+var JTe = ["layout"];
function G5() {
return G5 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -62127,16 +62536,16 @@ function G5() {
return e;
}, G5.apply(null, arguments);
}
-function FTe(e, t) {
+function YTe(e, t) {
if (e == null) return {};
- var n, r, i = ITe(e, t);
+ var n, r, i = XTe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function ITe(e, t) {
+function XTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62155,30 +62564,30 @@ function K5(e, t) {
}
return n;
}
-function LTe(e) {
+function ZTe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? K5(Object(n), !0).forEach(function(t) {
- RTe(e, t, n[t]);
+ QTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function RTe(e, t, n) {
- return (t = zTe(t)) in e ? Object.defineProperty(e, t, {
+function QTe(e, t, n) {
+ return (t = $Te(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function zTe(e) {
- var t = BTe(e, "string");
+function $Te(e) {
+ var t = eEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function BTe(e, t) {
+function eEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62188,7 +62597,7 @@ function BTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var q5 = LTe({
+var q5 = ZTe({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -62208,7 +62617,7 @@ var q5 = LTe({
innerRadius: 0,
outerRadius: "80%"
}, D5), J5 = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- var n = cz(e.categoricalChartProps, q5), { layout: r } = n, i = FTe(n, PTe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+ var n = pz(e.categoricalChartProps, q5), { layout: r } = n, i = YTe(n, JTe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
@@ -62236,7 +62645,7 @@ var q5 = LTe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ P.createElement(NTe, {
+ }), /*#__PURE__*/ P.createElement(qTe, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
@@ -62261,26 +62670,26 @@ function X5(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Y5(Object(n), !0).forEach(function(t) {
- VTe(e, t, n[t]);
+ tEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function VTe(e, t, n) {
- return (t = HTe(t)) in e ? Object.defineProperty(e, t, {
+function tEe(e, t, n) {
+ return (t = nEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function HTe(e) {
- var t = UTe(e, "string");
+function nEe(e) {
+ var t = rEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function UTe(e, t) {
+function rEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62290,24 +62699,24 @@ function UTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var WTe = ["axis"], GTe = X5(X5({}, q5), {}, {
+var iEe = ["axis"], aEe = X5(X5({}, q5), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), KTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var n = cz(e, GTe);
+}), oEe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var n = pz(e, aEe);
return /*#__PURE__*/ P.createElement(J5, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: WTe,
+ validateTooltipEventTypes: iEe,
tooltipPayloadSearcher: l2,
categoricalChartProps: n,
ref: t
});
-}), qTe = ["axis"], JTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => /*#__PURE__*/ P.createElement(U5, {
+}), sEe = ["axis"], cEe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => /*#__PURE__*/ P.createElement(U5, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: qTe,
+ validateTooltipEventTypes: sEe,
tooltipPayloadSearcher: l2,
categoricalChartProps: e,
ref: t
@@ -62328,26 +62737,26 @@ function Q5(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Z5(Object(n), !0).forEach(function(t) {
- YTe(e, t, n[t]);
+ lEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function YTe(e, t, n) {
- return (t = XTe(t)) in e ? Object.defineProperty(e, t, {
+function lEe(e, t, n) {
+ return (t = uEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function XTe(e) {
- var t = ZTe(e, "string");
+function uEe(e) {
+ var t = dEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ZTe(e, t) {
+function dEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62357,16 +62766,16 @@ function ZTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var QTe = ["axis", "item"], $Te = Q5(Q5({}, q5), {}, {
+var fEe = ["axis", "item"], pEe = Q5(Q5({}, q5), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), eEe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var n = cz(e, $Te);
+}), mEe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var n = pz(e, pEe);
return /*#__PURE__*/ P.createElement(J5, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: QTe,
+ validateTooltipEventTypes: fEe,
tooltipPayloadSearcher: l2,
categoricalChartProps: n,
ref: t
@@ -62383,7 +62792,7 @@ var e7 = {
light: "",
dark: ".dark"
}, t7 = Object.keys(e7);
-function tEe(e) {
+function hEe(e) {
for (let [t, n] of Object.entries(e)) if (n.colors && !t7.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${t7.join(", ")}). Received empty object or invalid keys.`);
}
var n7 = P.createContext(null);
@@ -62397,7 +62806,7 @@ function i7({ id: e, config: t, initialDimension: n = {
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = P.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return tEe(t), /* @__PURE__ */ (0, F.jsx)(n7.Provider, {
+ return hEe(t), /* @__PURE__ */ (0, F.jsx)(n7.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-slot": "chart",
@@ -62409,7 +62818,7 @@ function i7({ id: e, config: t, initialDimension: n = {
id: c,
config: t
}),
- /* @__PURE__ */ (0, F.jsx)(DU, {
+ /* @__PURE__ */ (0, F.jsx)(NU, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -62428,7 +62837,7 @@ function a7({ isLoading: e }) {
})
}) : null;
}
-function nEe(e, t) {
+function gEe(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -62443,7 +62852,7 @@ var o7 = ({ id: e, config: t }) => {
if (!n.length) return null;
let r = (e) => n.flatMap(([t, n]) => {
let r = n.colors?.[e];
- return !r || !Array.isArray(r) || r.length === 0 ? [] : nEe(r, c7(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : gEe(r, c7(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
}).filter(Boolean).join("\n"), i = Object.entries(e7).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, F.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
@@ -62457,15 +62866,15 @@ function c7(e) {
let t = t7.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var rEe = (e = 10, t = 0, n = 70) => {
+var _Ee = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, iEe = {
+}, vEe = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, aEe = {
+}, yEe = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
@@ -62492,7 +62901,7 @@ function l7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, F.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, F.jsxs)("div", {
- className: $5("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", iEe[p], aEe[m], n),
+ className: $5("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", vEe[p], yEe[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, F.jsx)("div", {
className: "grid gap-1.5",
children: t.filter((e) => e.type !== "none").map((e, t) => {
@@ -62506,7 +62915,7 @@ function l7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
"w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",
"my-0.5": _ && r === "dashed"
}),
- style: oEe(n, o)
+ style: bEe(n, o)
}), /* @__PURE__ */ (0, F.jsxs)("div", {
className: $5("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
@@ -62525,10 +62934,10 @@ function l7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function oEe(e, t) {
+function bEe(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 u7 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, F.jsx)(Yge, {
+var u7 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, F.jsx)(l_e, {
animationDuration: e,
...t
});
@@ -62545,7 +62954,7 @@ function d7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
onClick: () => {
c && s?.(o === r ? null : r);
},
- children: [i?.icon && !t ? /* @__PURE__ */ (0, F.jsx)(i.icon, {}) : /* @__PURE__ */ (0, F.jsx)(sEe, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, F.jsx)(i.icon, {}) : /* @__PURE__ */ (0, F.jsx)(xEe, {
variant: l,
dataKey: r,
colorsCount: d
@@ -62554,8 +62963,8 @@ function d7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function sEe({ variant: e, dataKey: t, colorsCount: n }) {
- let r = cEe(t, n), i = lEe(t, n);
+function xEe({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = SEe(t, n), i = CEe(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, F.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -62587,10 +62996,10 @@ function sEe({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function cEe(e, t) {
+function SEe(e, t) {
return t <= 1 ? { backgroundColor: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-function lEe(e, t) {
+function CEe(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -62605,12 +63014,12 @@ function lEe(e, t) {
...n
};
}
-var f7 = DG, p7 = () => null, m7 = {
+var f7 = NG, p7 = () => null, m7 = {
stiffness: 300,
damping: 35,
mass: .8
};
-function uEe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function wEe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
let i = P.useRef(null), [a, o] = P.useState(!1), s = (0, P.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, P.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
@@ -62656,7 +63065,7 @@ function uEe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function dEe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
+function TEe({ 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 = P.useRef(null), S = P.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = P.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = P.useState(() => ({
startIndex: Math.max(0, Math.min(p, C - 1)),
endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))
@@ -62690,7 +63099,7 @@ function dEe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [C, v]), { isDragging: A, bind: j } = uEe({
+ }, [C, v]), { isDragging: A, bind: j } = wEe({
range: E,
totalPoints: C,
containerRef: x,
@@ -62746,7 +63155,7 @@ function dEe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
}),
/* @__PURE__ */ (0, F.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, F.jsx)(fEe, {
+ children: /* @__PURE__ */ (0, F.jsx)(EEe, {
data: e,
keys: S,
chartConfig: t,
@@ -62815,7 +63224,7 @@ function h7({ side: e, position: t, label: n, bind: r }) {
})]
});
}
-function fEe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function EEe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = P.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
colorsCount: c7(t)
@@ -62872,10 +63281,10 @@ function fEe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, F.jsx)(DU, {
+ if (r === "line") return /* @__PURE__ */ (0, F.jsx)(NU, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, F.jsxs)(jTe, {
+ children: /* @__PURE__ */ (0, F.jsxs)(GTe, {
data: e,
margin: {
top: 4,
@@ -62899,7 +63308,7 @@ function fEe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, F.jsx)(DU, {
+ return /* @__PURE__ */ (0, F.jsx)(NU, {
width: "100%",
height: "100%",
children: /* @__PURE__ */ (0, F.jsxs)(W5, {
@@ -62928,10 +63337,10 @@ function fEe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, F.jsx)(DU, {
+ return /* @__PURE__ */ (0, F.jsx)(NU, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, F.jsxs)(JTe, {
+ children: /* @__PURE__ */ (0, F.jsxs)(cEe, {
data: e,
margin: {
top: 4,
@@ -62957,7 +63366,7 @@ function fEe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function pEe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function DEe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = P.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -62981,7 +63390,7 @@ function pEe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var mEe = {
+var OEe = {
dots: ({ id: e }) => /* @__PURE__ */ (0, F.jsx)("pattern", {
id: e,
x: "0",
@@ -63154,7 +63563,7 @@ var mEe = {
})
};
function g7({ variant: e }) {
- let t = (0, P.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = mEe[e];
+ let t = (0, P.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = OEe[e];
return /* @__PURE__ */ (0, F.jsxs)(t2, {
zIndex: -1,
children: [/* @__PURE__ */ (0, F.jsxs)("defs", { children: [
@@ -63185,7 +63594,7 @@ function g7({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var _7 = 2, hEe = "loading", gEe = 2e3, _Ee = "evil-stacked", vEe = .5, yEe = .05, bEe = [
+var _7 = 2, kEe = "loading", AEe = 2e3, jEe = "evil-stacked", MEe = .5, NEe = .05, PEe = [
0,
.7,
.5,
@@ -63197,7 +63606,7 @@ function y7() {
return e;
}
function b7({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = _7, 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, P.useId)().replace(/:/g, ""), [v] = (0, P.useState)(() => Date.now()), [y, b] = (0, P.useState)(f), [x, S] = (0, P.useState)(!1), { loadingData: C, onShimmerExit: w } = zEe(m, h), { visibleData: T, brushProps: E } = pEe({ data: t }), D = (0, P.useMemo)(() => {
+ let _ = (0, P.useId)().replace(/:/g, ""), [v] = (0, P.useState)(() => Date.now()), [y, b] = (0, P.useState)(f), [x, S] = (0, P.useState)(!1), { loadingData: C, onShimmerExit: w } = $Ee(m, h), { visibleData: T, brushProps: E } = DEe({ data: t }), D = (0, P.useMemo)(() => {
let e = P.Children.toArray(n), t = e.find((e) => (0, P.isValidElement)(e) && e.type === p7), r = (0, P.isValidElement)(t) ? t.props : {};
return {
slot: {
@@ -63240,7 +63649,7 @@ function b7({ config: e, data: t, children: n, className: r, chartProps: i, stac
children: /* @__PURE__ */ (0, F.jsxs)(i7, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, F.jsx)(dEe, {
+ footer: O && !m && /* @__PURE__ */ (0, F.jsx)(TEe, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -63271,7 +63680,7 @@ function b7({ config: e, data: t, children: n, className: r, chartProps: i, stac
d && /* @__PURE__ */ (0, F.jsx)(g7, { variant: d }),
/* @__PURE__ */ (0, F.jsx)(O6, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, F.jsx)(BEe, {
+ m && /* @__PURE__ */ (0, F.jsx)(eDe, {
chartId: _,
onShimmerExit: w
})
@@ -63280,7 +63689,7 @@ function b7({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function xEe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
+function FEe({ 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 } = y7(), b = (0, P.useId)().replace(/:/g, ""), x = bf();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
@@ -63303,7 +63712,7 @@ function xEe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
};
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(I8, {
dataKey: e,
- stackId: u ? _Ee : void 0,
+ stackId: u ? jEe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
@@ -63320,44 +63729,44 @@ function xEe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
}),
...c
}), /* @__PURE__ */ (0, F.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, F.jsx)(AEe, {
+ /* @__PURE__ */ (0, F.jsx)(WEe, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, F.jsx)(jEe, {
+ t === "hatched" && /* @__PURE__ */ (0, F.jsx)(GEe, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, F.jsx)(NEe, {
+ t === "duotone" && /* @__PURE__ */ (0, F.jsx)(qEe, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, F.jsx)(PEe, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, F.jsx)(JEe, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, F.jsx)(FEe, {
+ t === "gradient" && /* @__PURE__ */ (0, F.jsx)(YEe, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, F.jsx)(IEe, {
+ t === "stripped" && /* @__PURE__ */ (0, F.jsx)(XEe, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, F.jsx)(MEe, {
+ s && /* @__PURE__ */ (0, F.jsx)(KEe, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, F.jsx)(LEe, {
+ o && /* @__PURE__ */ (0, F.jsx)(ZEe, {
id: b,
dataKey: e
})
] })] });
}
-function SEe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+function IEe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
let { isLoading: o, isHorizontal: s } = y7();
return o ? null : /* @__PURE__ */ (0, F.jsx)(W8, {
tickLine: e,
@@ -63368,7 +63777,7 @@ function SEe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function CEe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+function LEe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
let { isLoading: s, isHorizontal: c } = y7();
return s ? null : /* @__PURE__ */ (0, F.jsx)(Y8, {
tickLine: e,
@@ -63380,7 +63789,7 @@ function CEe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function wEe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+function REe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
let { isHorizontal: i } = y7();
return /* @__PURE__ */ (0, F.jsx)(G6, {
strokeDasharray: e,
@@ -63389,7 +63798,7 @@ function wEe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
...r
});
}
-function TEe({ variant: e, roundness: t, defaultIndex: n }) {
+function zEe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = y7();
return r ? null : /* @__PURE__ */ (0, F.jsx)(u7, {
cursor: !1,
@@ -63401,7 +63810,7 @@ function TEe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function EEe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+function BEe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
let { selectedDataKey: i, selectDataKey: a } = y7();
return /* @__PURE__ */ (0, F.jsx)(f7, {
verticalAlign: n,
@@ -63415,7 +63824,7 @@ function EEe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
});
}
var x7 = (e) => {
- let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = DEe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : OEe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = kEe({
+ let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = VEe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : HEe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = UEe({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -63427,7 +63836,7 @@ var x7 = (e) => {
c,
0,
0
- ] : c, A = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(Lq, {
+ ] : c, A = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(Uq, {
x: t,
y: n,
width: r,
@@ -63438,7 +63847,7 @@ var x7 = (e) => {
filter: E,
stroke: S ? `url(#${a}-colors-${o})` : void 0,
strokeWidth: S ? 1 : void 0
- }), C && /* @__PURE__ */ (0, F.jsx)(Lq, {
+ }), C && /* @__PURE__ */ (0, F.jsx)(Uq, {
x: t,
y: n - 4,
width: r,
@@ -63449,7 +63858,7 @@ var x7 = (e) => {
return /* @__PURE__ */ (0, F.jsxs)("g", {
style: O,
onClick: b,
- children: [/* @__PURE__ */ (0, F.jsx)(Lq, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Uq, {
...e,
fill: "transparent"
}), w ? /* @__PURE__ */ (0, F.jsx)(xf.g, {
@@ -63460,7 +63869,7 @@ var x7 = (e) => {
children: A
}) : A]
});
-}, DEe = (e, t, n, r, i) => {
+}, VEe = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -63475,11 +63884,11 @@ var x7 = (e) => {
break;
default: s = t;
}
- let c = s * yEe * 1e3, l = vEe * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * NEe * 1e3, l = MEe * 1e3, u = c + l, d = Date.now() - i;
if (d >= u) return null;
let f = d <= c ? 0 : (d - c) / l, p = {
duration: (u - Math.max(d, c)) / 1e3,
- ease: bEe,
+ ease: PEe,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -63493,7 +63902,7 @@ var x7 = (e) => {
transition: p,
style: { originY: 1 }
};
-}, OEe = (e, t, n) => {
+}, HEe = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -63502,10 +63911,10 @@ var x7 = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, kEe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, UEe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
let o = e && t !== null ? t === null || t === n ? 1 : .15 : 1;
return r && i ? a ? o : o * .3 : o;
-}, AEe = ({ id: e, dataKey: t, config: n }) => {
+}, WEe = ({ id: e, dataKey: t, config: n }) => {
let r = c7(n[t] ?? {});
return /* @__PURE__ */ (0, F.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -63527,7 +63936,7 @@ var x7 = (e) => {
}, i);
})
});
-}, jEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+}, GEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -63568,7 +63977,7 @@ var x7 = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), MEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+] }), KEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -63609,7 +64018,7 @@ var x7 = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), NEe = ({ id: e, dataKey: t, config: n }) => {
+] }), qEe = ({ id: e, dataKey: t, config: n }) => {
let r = c7(n[t] ?? {});
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsxs)("linearGradient", {
@@ -63677,7 +64086,7 @@ var x7 = (e) => {
})
})
] });
-}, PEe = ({ id: e, dataKey: t, config: n }) => {
+}, JEe = ({ id: e, dataKey: t, config: n }) => {
let r = c7(n[t] ?? {});
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsxs)("linearGradient", {
@@ -63745,7 +64154,7 @@ var x7 = (e) => {
})
})
] });
-}, FEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+}, YEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -63782,7 +64191,7 @@ var x7 = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), IEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+] }), XEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -63819,7 +64228,7 @@ var x7 = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), LEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)("filter", {
+] }), ZEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -63839,35 +64248,35 @@ var x7 = (e) => {
}),
/* @__PURE__ */ (0, F.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, F.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, F.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), REe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), QEe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
let a = i / (e - 1), o = t + Math.sin(a * Math.PI) ** 2 * (n - t);
return {
offset: `${(a * 100).toFixed(0)}%`,
opacity: Number(o.toFixed(3))
};
});
-function zEe(e, t = 12) {
+function $Ee(e, t = 12) {
let [n, r] = (0, P.useState)(!1), i = (0, P.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, P.useMemo)(() => rEe(t, 20, 80), [t, n]),
+ loadingData: (0, P.useMemo)(() => _Ee(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var BEe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(I8, {
- dataKey: hEe,
+var eDe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(I8, {
+ dataKey: kEe,
fill: "currentColor",
fillOpacity: .15,
radius: _7,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, F.jsx)("defs", { children: /* @__PURE__ */ (0, F.jsx)(VEe, {
+}), /* @__PURE__ */ (0, F.jsx)("defs", { children: /* @__PURE__ */ (0, F.jsx)(tDe, {
chartId: e,
onShimmerExit: t
-}) })] }), VEe = ({ chartId: e, onShimmerExit: t }) => {
- let n = REe(), r = (0, P.useRef)(-1);
+}) })] }), tDe = ({ chartId: e, onShimmerExit: t }) => {
+ let n = QEe(), r = (0, P.useRef)(-1);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -63898,7 +64307,7 @@ var BEe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: gEe / 1e3,
+ duration: AEe / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -63920,7 +64329,7 @@ var BEe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fr
})
] });
};
-b7.Bar = xEe, b7.XAxis = SEe, b7.YAxis = CEe, b7.Grid = wEe, b7.Tooltip = TEe, b7.Legend = EEe, b7.Brush = p7;
+b7.Bar = FEe, b7.XAxis = IEe, b7.YAxis = LEe, b7.Grid = REe, b7.Tooltip = zEe, b7.Legend = BEe, b7.Brush = p7;
//#endregion
//#region src/react/charts/chart-card.tsx
var S7 = `${qC({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
@@ -63950,7 +64359,7 @@ var w7 = [
"var(--color-chart-5)",
"var(--color-chart-6)"
], T7 = (e) => ({ light: [e] }), E7 = (e) => `s${e}`;
-function HEe(e) {
+function nDe(e) {
return Object.fromEntries(e.map((e, t) => [E7(t), {
label: e,
colors: T7(w7[t % w7.length])
@@ -63975,7 +64384,7 @@ function O7({ swatch: e, name: t, value: n }) {
});
}
var k7 = "size-2.5 shrink-0 rounded-xs";
-function UEe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+function rDe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
let { config: o } = r7(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, F.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
@@ -64000,7 +64409,7 @@ function UEe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLab
function A7({ nameKey: e, valueKey: t, hideLabel: n }) {
return /* @__PURE__ */ (0, F.jsx)(u7, {
cursor: !1,
- content: /* @__PURE__ */ (0, F.jsx)(UEe, {
+ content: /* @__PURE__ */ (0, F.jsx)(rDe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -64077,7 +64486,7 @@ var P7 = [
"周六",
"周日"
], F7 = (e, t) => e ? Math.max(.12, e / t) : 0;
-function WEe(e) {
+function iDe(e) {
let t = Array.from({ length: 7 }, () => Array(24).fill(0));
for (let n of e?.hours || []) {
let { weekday: e, hour: r, count: i } = n;
@@ -64094,7 +64503,7 @@ function WEe(e) {
total: n.reduce((e, t) => e + t, 0)
};
}
-function GEe(e) {
+function aDe(e) {
let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {
cells: [],
total: 0,
@@ -64133,19 +64542,19 @@ var I7 = 14, L7 = 17, R7 = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, KEe = {
+}, oDe = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function qEe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function sDe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${D7} ${KEe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${D7} ${oDe[a]}`,
children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
@@ -64203,7 +64612,7 @@ function z7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, F.jsx)(qEe, {
+ }), g && _ ? /* @__PURE__ */ (0, F.jsx)(sDe, {
cell: g,
series: t.series,
tone: c,
@@ -64219,7 +64628,7 @@ function z7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var JEe = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [P7.map((e, t) => /* @__PURE__ */ (0, F.jsx)("text", {
+var cDe = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [P7.map((e, t) => /* @__PURE__ */ (0, F.jsx)("text", {
x: 0,
y: 18 + t * L7 + 7,
dominantBaseline: "middle",
@@ -64233,7 +64642,7 @@ var JEe = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [P7.map((e, t) =>
children: t
}, t))] });
function B7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = WEe(e), s = GEe(e);
+ let o = iDe(e), s = aDe(e);
return s.cells.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
children: [/* @__PURE__ */ (0, F.jsx)(z7, {
@@ -64244,7 +64653,7 @@ function B7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: JEe,
+ axis: cDe,
footer: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, F.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
}), /* @__PURE__ */ (0, F.jsx)(z7, {
title: n,
@@ -64310,20 +64719,20 @@ function V7({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, F.jsx)(dS, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, F.jsx)(uS, { "aria-hidden": !0 })
}) : null]
});
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var YEe = "30%", XEe = "100%", H7 = 5, U7 = 14, ZEe = 5, W7 = 1500, G7 = (0, P.createContext)(null);
+var lDe = "30%", uDe = "100%", H7 = 5, U7 = 14, dDe = 5, W7 = 1500, G7 = (0, P.createContext)(null);
function K7() {
let e = (0, P.use)(G7);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function q7({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = YEe, outerRadius: l = XEe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, P.useId)().replace(/:/g, ""), [h, g] = (0, P.useState)(u), _ = iDe(f), v = tDe(o), y = (0, P.useCallback)((e, t) => {
+function q7({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = lDe, outerRadius: l = uDe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+ let m = (0, P.useId)().replace(/:/g, ""), [h, g] = (0, P.useState)(u), _ = vDe(f), v = hDe(o), y = (0, P.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -64355,7 +64764,7 @@ function q7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
children: /* @__PURE__ */ (0, F.jsxs)(i7, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, F.jsx)(a7, { isLoading: f }), /* @__PURE__ */ (0, F.jsxs)(eEe, {
+ children: [/* @__PURE__ */ (0, F.jsx)(a7, { isLoading: f }), /* @__PURE__ */ (0, F.jsxs)(mEe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -64374,8 +64783,8 @@ function q7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
}),
p && /* @__PURE__ */ (0, F.jsx)(g7, { variant: p }),
r,
- f && /* @__PURE__ */ (0, F.jsx)(aDe, {}),
- /* @__PURE__ */ (0, F.jsx)("defs", { children: /* @__PURE__ */ (0, F.jsx)(nDe, {
+ f && /* @__PURE__ */ (0, F.jsx)(yDe, {}),
+ /* @__PURE__ */ (0, F.jsx)("defs", { children: /* @__PURE__ */ (0, F.jsx)(gDe, {
config: e,
chartId: m
}) })
@@ -64384,7 +64793,7 @@ function q7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function QEe({ dataKey: e, cornerRadius: t = H7, barSize: n = U7, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+function fDe({ dataKey: e, cornerRadius: t = H7, barSize: n = U7, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = K7();
return s ? null : /* @__PURE__ */ (0, F.jsx)(y6, {
dataKey: e,
@@ -64400,7 +64809,7 @@ function QEe({ dataKey: e, cornerRadius: t = H7, barSize: n = U7, showBackground
},
shape: (e) => {
let t = e[o], n = c === null || c === t;
- return /* @__PURE__ */ (0, F.jsx)(mJ, {
+ return /* @__PURE__ */ (0, F.jsx)(bJ, {
...e,
opacity: i && !n ? .15 : 1,
className: "transition-opacity duration-200"
@@ -64409,7 +64818,7 @@ function QEe({ dataKey: e, cornerRadius: t = H7, barSize: n = U7, showBackground
...a
});
}
-function $Ee({ variant: e, roundness: t, defaultIndex: n }) {
+function pDe({ variant: e, roundness: t, defaultIndex: n }) {
let { nameKey: r, isLoading: i } = K7();
return i ? null : /* @__PURE__ */ (0, F.jsx)(u7, {
defaultIndex: n,
@@ -64422,7 +64831,7 @@ function $Ee({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function eDe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+function mDe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = K7();
return a ? null : /* @__PURE__ */ (0, F.jsx)(f7, {
verticalAlign: n,
@@ -64436,7 +64845,7 @@ function eDe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function tDe(e) {
+function hDe(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -64452,7 +64861,7 @@ function tDe(e) {
};
}
}
-var nDe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, F.jsx)(F.Fragment, { children: Object.entries(e).map(([e, n]) => {
+var gDe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, F.jsx)(F.Fragment, { children: Object.entries(e).map(([e, n]) => {
let r = c7(n);
return /* @__PURE__ */ (0, F.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
@@ -64475,13 +64884,13 @@ var nDe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, F.jsx)(F.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function rDe() {
- return Array.from({ length: ZEe }, (e, t) => ({
+function _De() {
+ return Array.from({ length: dDe }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function iDe(e) {
+function vDe(e) {
let [t, n] = (0, P.useState)(0);
return (0, P.useEffect)(() => {
if (!e) return;
@@ -64489,9 +64898,9 @@ function iDe(e) {
n((e) => e + 1);
}, W7);
return () => clearInterval(t);
- }, [e]), (0, P.useMemo)(() => rDe(), [t]);
+ }, [e]), (0, P.useMemo)(() => _De(), [t]);
}
-var aDe = () => /* @__PURE__ */ (0, F.jsx)(y6, {
+var yDe = () => /* @__PURE__ */ (0, F.jsx)(y6, {
dataKey: "value",
cornerRadius: H7,
barSize: U7,
@@ -64499,23 +64908,23 @@ var aDe = () => /* @__PURE__ */ (0, F.jsx)(y6, {
isAnimationActive: !0,
animationDuration: W7,
animationEasing: "ease-in-out",
- shape: (e) => /* @__PURE__ */ (0, F.jsx)(mJ, {
+ shape: (e) => /* @__PURE__ */ (0, F.jsx)(bJ, {
...e,
fill: "currentColor",
fillOpacity: .25
})
});
-q7.RadialBar = QEe, q7.Tooltip = $Ee, q7.Legend = eDe;
+q7.RadialBar = fDe, q7.Tooltip = pDe, q7.Legend = mDe;
//#endregion
//#region src/react/stats/radial-card.tsx
-var oDe = [
+var bDe = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], sDe = [
+], xDe = [
"aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1",
"aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2",
"aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",
@@ -64556,15 +64965,15 @@ function J7({ title: e, rows: t, unit: n = "个视频" }) {
children: /* @__PURE__ */ (0, F.jsxs)(q7, {
data: f,
nameKey: "slice",
- config: HEe(s.map((e) => e.name)),
- max: ile(s.map((e) => e.value)),
+ config: nDe(s.map((e) => e.name)),
+ max: ple(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
children: [/* @__PURE__ */ (0, F.jsx)(q7.RadialBar, {
dataKey: "value",
- barSize: ale(s.length),
+ barSize: mle(s.length),
radialBarProps: {
- shape: (e) => /* @__PURE__ */ (0, F.jsx)(mJ, {
+ shape: (e) => /* @__PURE__ */ (0, F.jsx)(bJ, {
...e,
opacity: c >= 0 && c !== e.index ? .3 : 1,
className: "cursor-pointer transition-opacity duration-200"
@@ -64588,13 +64997,13 @@ function J7({ title: e, rows: t, unit: n = "个视频" }) {
onPointerLeave: () => o(-1),
onFocus: () => o(t),
onBlur: () => o(-1),
- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${sDe[t % 6]}`,
+ className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${xDe[t % 6]}`,
children: [
/* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, F.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${oDe[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${bDe[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, F.jsx)("b", {
@@ -64613,7 +65022,7 @@ function J7({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var cDe = 10, Y7 = w7[5], lDe = w7[4], uDe = `${qC()} flex flex-col gap-4`, dDe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", fDe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", pDe = "开始播放后,这里会显示最近的真实观看证据。", mDe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", hDe = "添加媒体文件夹后,这里会显示存储空间。";
+var SDe = 10, Y7 = w7[5], CDe = w7[4], wDe = `${qC()} flex flex-col gap-4`, TDe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", EDe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", DDe = "开始播放后,这里会显示最近的真实观看证据。", ODe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", kDe = "添加媒体文件夹后,这里会显示存储空间。";
function X7({ term: e, value: t }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
@@ -64635,10 +65044,10 @@ function Z7({ term: e, value: t, total: n }) {
className: "tabular-nums",
children: [t.toLocaleString(), /* @__PURE__ */ (0, F.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [TL(t, n), "%"]
+ children: [AL(t, n), "%"]
})]
})]
- }), /* @__PURE__ */ (0, F.jsx)(ew, {
+ }), /* @__PURE__ */ (0, F.jsx)($C, {
label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
value: t,
max: Math.max(n, 1)
@@ -64666,14 +65075,14 @@ function Q7({ term: e, figure: t, unit: n }) {
}
function $7({ headline: e, children: t }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
- className: `${uDe} md:flex-row md:gap-6`,
+ className: `${wDe} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, F.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function gDe({ data: t, configurable: n, openMediaSettings: i }) {
+function ADe({ data: t, configurable: n, openMediaSettings: i }) {
return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
@@ -64701,14 +65110,14 @@ function gDe({ data: t, configurable: n, openMediaSettings: i }) {
unit: "个视频",
series: "视频",
color: Y7,
- rows: lle(t.by_length)
+ rows: vle(t.by_length)
}),
/* @__PURE__ */ (0, F.jsx)(N7, {
title: "画质",
unit: "个视频",
series: "视频",
color: Y7,
- rows: OL(t.by_quality)
+ rows: NL(t.by_quality)
}),
/* @__PURE__ */ (0, F.jsx)(N7, {
title: "文件类型",
@@ -64716,13 +65125,13 @@ function gDe({ data: t, configurable: n, openMediaSettings: i }) {
series: "条目",
color: Y7,
layout: "horizontal",
- rows: sle(t.by_medium)
+ rows: gle(t.by_medium)
})
]
})]
- }) : /* @__PURE__ */ (0, F.jsx)(YC, {
+ }) : /* @__PURE__ */ (0, F.jsx)(JC, {
shell: "plain",
- icon: Ute,
+ icon: jS,
title: "还没有视频",
actions: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [n ? /* @__PURE__ */ (0, F.jsx)(G, {
size: "small",
@@ -64733,10 +65142,10 @@ function gDe({ data: t, configurable: n, openMediaSettings: i }) {
size: "small",
children: "添加关注"
})] }),
- children: dDe
+ children: TDe
});
}
-function _De({ data: e }) {
+function jDe({ data: e }) {
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(B7, {
activity: e.play_activity,
title: "播放时间",
@@ -64751,11 +65160,11 @@ function _De({ data: e }) {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: lDe,
- rows: dle(e.replays)
+ color: CDe,
+ rows: ble(e.replays)
})] });
}
-function vDe({ attribution: e }) {
+function MDe({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col",
@@ -64788,7 +65197,7 @@ function vDe({ attribution: e }) {
]
});
}
-function yDe({ volume: e }) {
+function NDe({ volume: e }) {
let t = e.total, n = e.used ?? 0;
return /* @__PURE__ */ (0, F.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -64805,11 +65214,11 @@ function yDe({ volume: e }) {
className: "whitespace-nowrap tabular-nums",
children: [r(n), /* @__PURE__ */ (0, F.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [TL(n, t), "%"]
+ children: [AL(n, t), "%"]
})]
})]
}),
- t == null ? null : /* @__PURE__ */ (0, F.jsx)(ew, {
+ t == null ? null : /* @__PURE__ */ (0, F.jsx)($C, {
label: `${e.label}空间使用率`,
value: n,
max: Math.max(t, 1)
@@ -64827,25 +65236,25 @@ function yDe({ volume: e }) {
]
});
}
-function bDe({ volumes: e, configurable: t, openMediaSettings: n }) {
+function PDe({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, F.jsx)(yDe, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, F.jsx)(YC, {
+ children: e.map((e) => /* @__PURE__ */ (0, F.jsx)(NDe, { volume: e }, `${e.kind}:${e.label}`))
+ }) : /* @__PURE__ */ (0, F.jsx)(JC, {
shell: "plain",
- icon: SS,
+ icon: xS,
title: "还没有存储来源",
actions: t ? /* @__PURE__ */ (0, F.jsx)(G, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: hDe
+ children: kDe
});
}
-function xDe({ tags: e, tagLabel: t, onTag: n }) {
+function FDe({ tags: e, tagLabel: t, onTag: n }) {
return e.length ? /* @__PURE__ */ (0, F.jsx)(V7, {
- previewCount: cDe,
+ previewCount: SDe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, F.jsx)("li", {
className: "min-w-0",
@@ -64869,23 +65278,23 @@ function xDe({ tags: e, tagLabel: t, onTag: n }) {
]
})
}, e.k))
- }) : /* @__PURE__ */ (0, F.jsx)(YC, {
+ }) : /* @__PURE__ */ (0, F.jsx)(JC, {
shell: "plain",
- icon: wS,
+ icon: CS,
title: "还没有内容标签",
actions: /* @__PURE__ */ (0, F.jsx)(NA, {
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: fDe
+ children: EDe
});
}
-function SDe({ rows: e }) {
+function IDe({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = EL(e);
+ let t = jL(e);
return /* @__PURE__ */ (0, F.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
@@ -64893,40 +65302,40 @@ function SDe({ rows: e }) {
children: [/* @__PURE__ */ (0, F.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, F.jsx)("a", {
- href: rle(e),
+ href: fle(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
}), /* @__PURE__ */ (0, F.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, F.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, F.jsx)("span", { children: nle(e) })]
+ children: [/* @__PURE__ */ (0, F.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, F.jsx)("span", { children: dle(e) })]
})]
}), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, F.jsx)(ew, {
+ children: [/* @__PURE__ */ (0, F.jsx)($C, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
}), /* @__PURE__ */ (0, F.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${DL(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${ML(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, F.jsx)(YC, {
+ }) : /* @__PURE__ */ (0, F.jsx)(JC, {
shell: "plain",
- icon: CS,
+ icon: SS,
title: "还没有观看记录",
actions: /* @__PURE__ */ (0, F.jsx)(NA, {
href: "/",
size: "small",
children: "浏览馆藏"
}),
- children: pDe
+ children: DDe
});
}
-function CDe({ sources: e, videos: t }) {
+function LDe({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)("article", {
@@ -64945,7 +65354,7 @@ function CDe({ sources: e, videos: t }) {
})]
})]
}),
- /* @__PURE__ */ (0, F.jsx)(ew, {
+ /* @__PURE__ */ (0, F.jsx)($C, {
label: `${e.k} 覆盖视频`,
value: e.assets,
max: Math.max(t, 1)
@@ -64956,16 +65365,16 @@ function CDe({ sources: e, videos: t }) {
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, F.jsx)(YC, {
+ }) : /* @__PURE__ */ (0, F.jsx)(JC, {
shell: "plain",
- icon: wS,
+ icon: CS,
title: "还没有标签来源",
actions: /* @__PURE__ */ (0, F.jsx)(NA, {
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: mDe
+ children: ODe
});
}
function e9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
@@ -64984,18 +65393,18 @@ function e9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function wDe(e) {
+function RDe(e) {
let t = St({
- queryKey: CL,
- queryFn: ({ signal: e }) => wL(e)
+ queryKey: OL,
+ queryFn: ({ signal: e }) => kL(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, F.jsx)(ZC, { children: /* @__PURE__ */ (0, F.jsx)(J, {
+ if (!n) return /* @__PURE__ */ (0, F.jsx)(XC, { children: /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "读取失败",
children: t.error ? K(t.error) : "读取统计失败"
}) });
- let i = n.consumption, a = n.storage_summary, o = n.by_loc.reduce((e, t) => e + t.videos, 0), s = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = TL(n.tag_cov, n.attribution.videos);
- return /* @__PURE__ */ (0, F.jsxs)(ZC, { children: [
+ let i = n.consumption, a = n.storage_summary, o = n.by_loc.reduce((e, t) => e + t.videos, 0), s = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = AL(n.tag_cov, n.attribution.videos);
+ return /* @__PURE__ */ (0, F.jsxs)(XC, { children: [
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${o.toLocaleString()} 个视频 · ${r(s)}`
@@ -65010,7 +65419,7 @@ function wDe(e) {
/* @__PURE__ */ (0, F.jsx)(e9, {
id: "inventory",
label: "馆藏视频",
- icon: vS,
+ icon: _S,
accent: 0,
figure: o.toLocaleString(),
detail: r(s)
@@ -65018,15 +65427,15 @@ function wDe(e) {
/* @__PURE__ */ (0, F.jsx)(e9, {
id: "viewing",
label: "看过",
- icon: xS,
+ icon: bS,
accent: 1,
figure: i.played.toLocaleString(),
- detail: tle(i.play_seconds)
+ detail: ule(i.play_seconds)
}),
/* @__PURE__ */ (0, F.jsx)(e9, {
id: "coverage",
label: "内容标签",
- icon: wS,
+ icon: CS,
accent: 2,
figure: `${c}%`,
detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
@@ -65034,7 +65443,7 @@ function wDe(e) {
/* @__PURE__ */ (0, F.jsx)(e9, {
id: "storage",
label: "使用空间",
- icon: SS,
+ icon: xS,
accent: 3,
figure: `${a.online} 个卷`,
detail: a.measured ? `已用 ${r(a.used)}` : "容量未取得"
@@ -65043,7 +65452,7 @@ function wDe(e) {
}),
/* @__PURE__ */ (0, F.jsx)(rD, {
id: "inventory",
- children: /* @__PURE__ */ (0, F.jsx)(gDe, {
+ children: /* @__PURE__ */ (0, F.jsx)(ADe, {
data: n,
...e
})
@@ -65094,7 +65503,7 @@ function wDe(e) {
})
]
})
- }), /* @__PURE__ */ (0, F.jsx)(_De, { data: n })]
+ }), /* @__PURE__ */ (0, F.jsx)(jDe, { data: n })]
}),
/* @__PURE__ */ (0, F.jsx)(rD, {
id: "coverage",
@@ -65104,7 +65513,7 @@ function wDe(e) {
figure: `${c}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, F.jsx)(vDe, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, F.jsx)(MDe, { attribution: n.attribution })
})
}),
/* @__PURE__ */ (0, F.jsx)(rD, {
@@ -65115,7 +65524,7 @@ function wDe(e) {
figure: String(a.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, F.jsx)(bDe, {
+ children: /* @__PURE__ */ (0, F.jsx)(PDe, {
volumes: n.storage_volumes,
...e
})
@@ -65130,21 +65539,21 @@ function wDe(e) {
className: "px-4 pt-3",
children: /* @__PURE__ */ (0, F.jsxs)(tD, {
"aria-label": "统计维度",
- className: BN,
+ className: UN,
children: [
/* @__PURE__ */ (0, F.jsx)(nD, {
id: "tags",
- className: VN,
+ className: WN,
children: "内容标签"
}),
/* @__PURE__ */ (0, F.jsx)(nD, {
id: "recent",
- className: VN,
+ className: WN,
children: "最近看过"
}),
/* @__PURE__ */ (0, F.jsx)(nD, {
id: "sources",
- className: VN,
+ className: WN,
children: "标签来源"
})
]
@@ -65153,7 +65562,7 @@ function wDe(e) {
/* @__PURE__ */ (0, F.jsx)(rD, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, F.jsx)(xDe, {
+ children: /* @__PURE__ */ (0, F.jsx)(FDe, {
tags: n.top_tags,
...e
})
@@ -65161,12 +65570,12 @@ function wDe(e) {
/* @__PURE__ */ (0, F.jsx)(rD, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, F.jsx)(SDe, { rows: n.recent })
+ children: /* @__PURE__ */ (0, F.jsx)(IDe, { rows: n.recent })
}),
/* @__PURE__ */ (0, F.jsx)(rD, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, F.jsx)(CDe, {
+ children: /* @__PURE__ */ (0, F.jsx)(LDe, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -65177,7 +65586,7 @@ function wDe(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function TDe(e, t) {
+function zDe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
@@ -65201,13 +65610,13 @@ function i9(e, t) {
function a9(e) {
return e.value;
}
-function EDe(e) {
+function BDe(e) {
return e.index;
}
-function DDe(e) {
+function VDe(e) {
return e.nodes;
}
-function ODe(e) {
+function HDe(e) {
return e.links;
}
function o9(e, t) {
@@ -65222,8 +65631,8 @@ function s9({ nodes: e }) {
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function kDe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = EDe, c = TDe, l, u, d = DDe, f = ODe, p = 6;
+function UDe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = BDe, c = zDe, l, u, d = VDe, f = HDe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
@@ -65267,7 +65676,7 @@ function kDe() {
if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
}
function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(eX(t.sourceLinks, a9), eX(t.targetLinks, a9)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(oX(t.sourceLinks, a9), oX(t.targetLinks, a9)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -65292,7 +65701,7 @@ function kDe() {
}
}
function y({ nodes: t }) {
- let r = qY(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = $Y(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
for (let n of t) {
let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
@@ -65301,7 +65710,7 @@ function kDe() {
return o;
}
function b(e) {
- let n = JY(e, (e) => (r - t - (e.length - 1) * o) / eX(e, a9));
+ let n = eX(e, (e) => (r - t - (e.length - 1) * o) / oX(e, a9));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -65318,7 +65727,7 @@ function kDe() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (qY(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / ($Y(n, (e) => e.length) - 1)), b(n);
for (let e = 0; e < p; ++e) {
let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
C(n, t, r), S(n, t, r);
@@ -65409,7 +65818,7 @@ function kDe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var c9 = Math.PI, l9 = 2 * c9, u9 = 1e-6, ADe = l9 - u9;
+var c9 = Math.PI, l9 = 2 * c9, u9 = 1e-6, WDe = l9 - u9;
function d9() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
@@ -65450,7 +65859,7 @@ d9.prototype = f9.prototype = {
e = +e, t = +t, n = +n, a = !!a;
var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
if (n < 0) throw Error("negative radius: " + n);
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > u9 || Math.abs(this._y1 - l) > u9) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % l9 + l9), d > ADe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > u9 && (this._ += "A" + n + "," + n + ",0," + +(d >= c9) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > u9 || Math.abs(this._y1 - l) > u9) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % l9 + l9), d > WDe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > u9 && (this._ += "A" + n + "," + n + ",0," + +(d >= c9) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
},
rect: function(e, t, n, r) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";
@@ -65468,27 +65877,27 @@ function p9(e) {
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function jDe(e) {
+function GDe(e) {
return e[0];
}
-function MDe(e) {
+function KDe(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var NDe = Array.prototype.slice;
+var qDe = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function PDe(e) {
+function JDe(e) {
return e.source;
}
-function FDe(e) {
+function YDe(e) {
return e.target;
}
-function IDe(e) {
- var t = PDe, n = FDe, r = jDe, i = MDe, a = null;
+function XDe(e) {
+ var t = JDe, n = YDe, r = GDe, i = KDe, a = null;
function o() {
- var o, s = NDe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ var o, s = qDe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
if (a ||= o = f9(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
@@ -65503,48 +65912,48 @@ function IDe(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function LDe(e, t, n, r, i) {
+function ZDe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function RDe() {
- return IDe(LDe);
+function QDe() {
+ return XDe(ZDe);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function zDe(e) {
+function $De(e) {
return [e.source.x1, e.y0];
}
-function BDe(e) {
+function eOe(e) {
return [e.target.x0, e.y1];
}
-function VDe() {
- return RDe().source(zDe).target(BDe);
+function tOe() {
+ return QDe().source($De).target(eOe);
}
//#endregion
//#region src/react/taste/taste.ts
-var HDe = "/api/taste", m9 = "/api/taste/refresh", UDe = "/api/taste/import", WDe = "/api/taste/source", h9 = (e) => ["taste", e], GDe = ["taste", "refresh"], KDe = [
+var nOe = "/api/taste", m9 = "/api/taste/refresh", rOe = "/api/taste/import", iOe = "/api/taste/source", h9 = (e) => ["taste", e], aOe = ["taste", "refresh"], oOe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], g9 = (e, t) => KC(`${HDe}?window=${e}`, t), qDe = (e) => KC(m9, e);
-async function JDe(e, t) {
+], g9 = (e, t) => KC(`${nOe}?window=${e}`, t), sOe = (e) => KC(m9, e);
+async function cOe(e, t) {
await X.fetchQuery({
queryKey: h9(e),
queryFn: () => g9(e, t)
});
}
-var YDe = (e) => q(m9, {
+var lOe = (e) => q(m9, {
window: e,
background: !0
-}), XDe = (e, t) => q(WDe, {
+}), uOe = (e, t) => q(iOe, {
operation: "remove",
source_key: e,
window: t
});
-async function ZDe(e) {
- let t = await fetch(UDe, {
+async function dOe(e) {
+ let t = await fetch(rOe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -65562,21 +65971,21 @@ async function ZDe(e) {
}
return n;
}
-var QDe = 1e4, _9 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", $De = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, eOe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function tOe(e) {
+var fOe = 1e4, _9 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", pOe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, mOe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function hOe(e) {
if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
let t = [];
return e.web_visits && t.push(`浏览 ${e.web_visits}`), e.peach_items && t.push(`Peach ${e.peach_items}`), t.join(" · ");
}
-function nOe(e) {
- let t = e.map(eOe), n = Math.max(1, ...t);
+function gOe(e) {
+ let t = e.map(mOe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
var v9 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
name: e.name,
value: Number(e.score)
})).sort((e, t) => t.value - e.value).slice(0, t);
-function rOe(e) {
+function _Oe(e) {
let t = v9(e, 6);
return t.length < 3 ? [] : t;
}
@@ -65587,10 +65996,10 @@ var y9 = {
source: 145,
target: 545
};
-function iOe(e = []) {
+function vOe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = kDe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = UDe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -65605,7 +66014,7 @@ function iOe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = VDe();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = tOe();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -65635,7 +66044,7 @@ function iOe(e = []) {
total: a
};
}
-var aOe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, x9 = P.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var yOe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, x9 = P.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = P.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;
if (e === void 0 || t === void 0) return null;
switch (o) {
@@ -65758,14 +66167,14 @@ var w9 = P.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
w9.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var oOe = 1, sOe = .3, cOe = 6, T9 = 1500, E9 = "value", D9 = (0, P.createContext)(null);
+var bOe = 1, xOe = .3, SOe = 6, T9 = 1500, E9 = "value", D9 = (0, P.createContext)(null);
function O9() {
let e = (0, P.use)(D9);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
function k9({ 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, P.useId)().replace(/:/g, ""), [d, f] = (0, P.useState)(o), p = xOe(c, l), m = (0, P.useCallback)((e) => {
+ let u = (0, P.useId)().replace(/:/g, ""), [d, f] = (0, P.useState)(o), p = FOe(c, l), m = (0, P.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, P.useMemo)(() => ({
config: e,
@@ -65783,32 +66192,32 @@ function k9({ config: e, data: t, children: n, className: r, chartProps: i, back
children: /* @__PURE__ */ (0, F.jsxs)(i7, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, F.jsx)(a7, { isLoading: c }), /* @__PURE__ */ (0, F.jsxs)(KTe, {
+ children: [/* @__PURE__ */ (0, F.jsx)(a7, { isLoading: c }), /* @__PURE__ */ (0, F.jsxs)(oEe, {
id: u,
data: c ? p : t,
...i,
children: [
a && /* @__PURE__ */ (0, F.jsx)(g7, { variant: a }),
n,
- c && /* @__PURE__ */ (0, F.jsx)(SOe, {})
+ c && /* @__PURE__ */ (0, F.jsx)(IOe, {})
]
})]
})
});
}
-function lOe({ dataKey: e, variant: t = "filled", fillOpacity: n = sOe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
+function COe({ dataKey: e, variant: t = "filled", fillOpacity: n = xOe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = O9(), d = (0, P.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 } = hOe(a, d, e, p.dot);
+ }, m = t === "filled", { dot: h, activeDot: g } = kOe(a, d, e, p.dot);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(U3, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
- strokeWidth: oOe,
+ strokeWidth: bOe,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -65821,29 +66230,29 @@ function lOe({ dataKey: e, variant: t = "filled", fillOpacity: n = sOe, isGlowin
},
...o
}), /* @__PURE__ */ (0, F.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, F.jsx)(gOe, {
+ /* @__PURE__ */ (0, F.jsx)(AOe, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, F.jsx)(_Oe, {
+ /* @__PURE__ */ (0, F.jsx)(jOe, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, F.jsx)(vOe, {
+ m && /* @__PURE__ */ (0, F.jsx)(MOe, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, F.jsx)(yOe, {
+ r && /* @__PURE__ */ (0, F.jsx)(NOe, {
id: d,
dataKey: e
})
] })] });
}
var A9 = () => null, j9 = () => null;
-function uOe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+function wOe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
return /* @__PURE__ */ (0, F.jsx)(I4, {
gridType: e,
stroke: t,
@@ -65852,7 +66261,7 @@ function uOe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function dOe({ tick: e = {
+function TOe({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
@@ -65863,7 +66272,7 @@ function dOe({ tick: e = {
...n
});
}
-function fOe({ tick: e = {
+function EOe({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
@@ -65875,7 +66284,7 @@ function fOe({ tick: e = {
...r
});
}
-function pOe({ variant: e, roundness: t, defaultIndex: n }) {
+function DOe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = O9();
return r ? null : /* @__PURE__ */ (0, F.jsx)(u7, {
defaultIndex: n,
@@ -65887,7 +66296,7 @@ function pOe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function mOe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+function OOe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { isLoading: i, selectedDataKey: a, selectDataKey: o } = O9();
return i ? null : /* @__PURE__ */ (0, F.jsx)(f7, {
verticalAlign: n,
@@ -65900,7 +66309,7 @@ function mOe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var hOe = (e, t, n, r) => {
+var kOe = (e, t, n, r) => {
let i = !1, a = !1;
return P.Children.forEach(e, (e) => {
if ((0, P.isValidElement)(e)) {
@@ -65942,7 +66351,7 @@ var hOe = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), gOe = ({ id: e, dataKey: t, config: n }) => {
+}) }), AOe = ({ id: e, dataKey: t, config: n }) => {
let r = c7(n[t] ?? {});
return /* @__PURE__ */ (0, F.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -65955,7 +66364,7 @@ var hOe = (e, t, n, r) => {
colorsCount: r
})
});
-}, _Oe = ({ id: e, dataKey: t, config: n }) => {
+}, jOe = ({ id: e, dataKey: t, config: n }) => {
let r = c7(n[t] ?? {});
return /* @__PURE__ */ (0, F.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
@@ -65968,7 +66377,7 @@ var hOe = (e, t, n, r) => {
colorsCount: r
})
});
-}, vOe = ({ id: e, dataKey: t, config: n }) => {
+}, MOe = ({ id: e, dataKey: t, config: n }) => {
let r = c7(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, F.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
@@ -65981,7 +66390,7 @@ var hOe = (e, t, n, r) => {
opacities: i
})
});
-}, yOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)("filter", {
+}, NOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -66001,7 +66410,7 @@ var hOe = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, F.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, F.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, F.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), bOe = (e) => [
+}), POe = (e) => [
"A",
"B",
"C",
@@ -66012,7 +66421,7 @@ var hOe = (e, t, n, r) => {
skill: e,
[E9]: 30 + Math.random() * 70
}));
-function xOe(e, t = cOe) {
+function FOe(e, t = SOe) {
let [n, r] = (0, P.useState)(0);
return (0, P.useEffect)(() => {
if (!e) return;
@@ -66020,9 +66429,9 @@ function xOe(e, t = cOe) {
r((e) => e + 1);
}, T9);
return () => clearInterval(t);
- }, [e]), (0, P.useMemo)(() => bOe(t), [t, n]);
+ }, [e]), (0, P.useMemo)(() => POe(t), [t, n]);
}
-var SOe = () => /* @__PURE__ */ (0, F.jsx)(U3, {
+var IOe = () => /* @__PURE__ */ (0, F.jsx)(U3, {
dataKey: E9,
stroke: "currentColor",
strokeOpacity: .3,
@@ -66034,17 +66443,17 @@ var SOe = () => /* @__PURE__ */ (0, F.jsx)(U3, {
animationDuration: T9,
animationEasing: "ease-in-out"
});
-k9.Radar = lOe, k9.Dot = A9, k9.ActiveDot = j9, k9.PolarGrid = uOe, k9.PolarAngleAxis = dOe, k9.PolarRadiusAxis = fOe, k9.Tooltip = pOe, k9.Legend = mOe;
+k9.Radar = COe, k9.Dot = A9, k9.ActiveDot = j9, k9.PolarGrid = wOe, k9.PolarAngleAxis = TOe, k9.PolarRadiusAxis = EOe, k9.Tooltip = DOe, k9.Legend = OOe;
//#endregion
//#region src/react/taste/charts.tsx
-var COe = [
+var LOe = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], wOe = [
+], ROe = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
@@ -66054,7 +66463,7 @@ var COe = [
], N9 = { value: {
label: "标签命中",
colors: T7(w7[3])
-} }, TOe = [
+} }, zOe = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -66064,20 +66473,20 @@ var COe = [
"min-h-52",
"min-h-60",
"min-h-64"
-], EOe = 26, DOe = { radius: N9.value }, OOe = (e, t) => Math.sqrt(e / t);
-function kOe({ rows: e, label: t }) {
- let n = rOe(e);
+], BOe = 26, VOe = { radius: N9.value }, HOe = (e, t) => Math.sqrt(e / t);
+function UOe({ rows: e, label: t }) {
+ let n = _Oe(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: OOe(e.value, r)
+ radius: HOe(e.value, r)
}));
return /* @__PURE__ */ (0, F.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
children: /* @__PURE__ */ (0, F.jsxs)(k9, {
data: i,
- config: DOe,
+ config: VOe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
@@ -66094,17 +66503,17 @@ function kOe({ rows: e, label: t }) {
})
});
}
-function AOe({ rows: e, label: t }) {
+function WOe({ rows: e, label: t }) {
let n = v9(e, 8);
return n.length ? /* @__PURE__ */ (0, F.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${TOe[n.length]}`,
+ className: `flex grow flex-col ${zOe[n.length]}`,
children: /* @__PURE__ */ (0, F.jsxs)(b7, {
data: n,
config: N9,
layout: "horizontal",
barRadius: 4,
- chartProps: { maxBarSize: EOe },
+ chartProps: { maxBarSize: BOe },
className: "aspect-auto text-text-secondary",
children: [
/* @__PURE__ */ (0, F.jsx)(b7.YAxis, {
@@ -66128,8 +66537,8 @@ function AOe({ rows: e, label: t }) {
})
}) : null;
}
-function jOe({ flows: e }) {
- let [t, n] = (0, P.useState)(null), r = iOe(e);
+function GOe({ flows: e }) {
+ let [t, n] = (0, P.useState)(null), r = vOe(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, F.jsxs)("section", {
@@ -66157,7 +66566,7 @@ function jOe({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${COe[e.color]}`,
+ className: `outline-none transition-opacity ${LOe[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -66191,14 +66600,14 @@ function jOe({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? wOe[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? ROe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, F.jsxs)("text", {
x: b9[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: [aOe(e.name), /* @__PURE__ */ (0, F.jsx)("tspan", {
+ children: [yOe(e.name), /* @__PURE__ */ (0, F.jsx)("tspan", {
x: b9[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
@@ -66216,7 +66625,7 @@ function jOe({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var MOe = 10, P9 = RC(FA, IA, "text-body-2-medium"), F9 = `${qC()} flex flex-col gap-4`, I9 = "rounded-xl bg-background-primary-default p-3", NOe = "读取运行 Peach 的这台电脑上的浏览记录", POe = "导入或读取浏览记录后,这里会列出已采集设备。", FOe = "馆藏里暂时没有对得上浏览信号的标签。", IOe = "采集浏览记录后,这里会显示聚合后的口味证据。", LOe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", ROe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", zOe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", BOe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", VOe = "这个数据源将不再用于口味分析。原始导出文件保留。", L9 = "peach-taste-guide-dismissed";
+var KOe = 10, P9 = RC(FA, IA, "text-body-2-medium"), F9 = `${qC()} flex flex-col gap-4`, I9 = "rounded-xl bg-background-primary-default p-3", qOe = "读取运行 Peach 的这台电脑上的浏览记录", JOe = "导入或读取浏览记录后,这里会列出已采集设备。", YOe = "馆藏里暂时没有对得上浏览信号的标签。", XOe = "采集浏览记录后,这里会显示聚合后的口味证据。", ZOe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", QOe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", $Oe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", eke = "需要刷新时再次读取或导入;数据源可在页面底部移除。", tke = "这个数据源将不再用于口味分析。原始导出文件保留。", L9 = "peach-taste-guide-dismissed";
function R9({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
className: DA(),
@@ -66243,22 +66652,22 @@ function z9({ name: e, domain: t }) {
})]
});
}
-function HOe({ html: e }) {
+function nke({ html: e }) {
return /* @__PURE__ */ (0, F.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 ${$I}`,
+ 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 ${iL}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function UOe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
- if (!e.length) return /* @__PURE__ */ (0, F.jsx)(YC, {
+function rke({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
+ if (!e.length) return /* @__PURE__ */ (0, F.jsx)(JC, {
shell: "plain",
- icon: DS,
+ icon: ES,
title: "暂无足够证据",
children: r
});
- let o = nOe(e);
+ let o = gOe(e);
return /* @__PURE__ */ (0, F.jsx)(V7, {
- previewCount: MOe,
+ previewCount: KOe,
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, F.jsxs)(F.Fragment, { children: [
@@ -66285,7 +66694,7 @@ function UOe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
name: e.name,
domain: c
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, F.jsx)(HOe, { html: a(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, F.jsx)(nke, { html: a(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
avatar_focus: e.avatar_focus
@@ -66297,10 +66706,10 @@ function UOe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
children: e.name
}), /* @__PURE__ */ (0, F.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: tOe(e)
+ children: hOe(e)
})]
}),
- s ? /* @__PURE__ */ (0, F.jsx)(pS, {
+ s ? /* @__PURE__ */ (0, F.jsx)(fS, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
@@ -66327,17 +66736,17 @@ function B9({ label: e, panels: t, onSignal: n, avatarInner: r }) {
className: "px-4 pt-3",
children: /* @__PURE__ */ (0, F.jsx)(tD, {
"aria-label": e,
- className: BN,
+ className: UN,
children: t.map((e) => /* @__PURE__ */ (0, F.jsx)(nD, {
id: e.id,
- className: VN,
+ className: WN,
children: e.name
}, e.id))
})
}), t.map((e) => /* @__PURE__ */ (0, F.jsx)(rD, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, F.jsx)(UOe, {
+ children: /* @__PURE__ */ (0, F.jsx)(rke, {
...e.props,
onSignal: n,
avatarInner: r
@@ -66345,7 +66754,7 @@ function B9({ label: e, panels: t, onSignal: n, avatarInner: r }) {
}, e.id))]
});
}
-function WOe({ data: e, onSignal: t, navigate: n }) {
+function ike({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -66411,21 +66820,21 @@ function WOe({ data: e, onSignal: t, navigate: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, F.jsx)(pS, {
+ }), /* @__PURE__ */ (0, F.jsx)(fS, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, F.jsx)(YC, {
+ }) : /* @__PURE__ */ (0, F.jsx)(JC, {
shell: "plain",
- icon: DS,
+ icon: ES,
title: "还没有可探索的入口",
- children: FOe
+ children: YOe
})
]
});
}
-function GOe({ onboarding: e, done: t }) {
+function ake({ onboarding: e, done: t }) {
let [n, r] = (0, P.useState)(() => {
try {
return localStorage.getItem(L9) === "1";
@@ -66438,17 +66847,17 @@ function GOe({ onboarding: e, done: t }) {
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, F.jsxs)(nj, {
+ children: /* @__PURE__ */ (0, F.jsxs)(tj, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: ROe
+ children: QOe
}),
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: zOe
+ children: $Oe
}),
/* @__PURE__ */ (0, F.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -66478,7 +66887,7 @@ function GOe({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: BOe
+ children: eke
}),
/* @__PURE__ */ (0, F.jsx)("span", {
className: "self-start",
@@ -66498,7 +66907,7 @@ function GOe({ onboarding: e, done: t }) {
})
});
}
-function KOe({ busy: e, onRefresh: t, onImport: n }) {
+function oke({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, P.useRef)(null), [i, a] = (0, P.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -66507,15 +66916,15 @@ function KOe({ busy: e, onRefresh: t, onImport: n }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, F.jsx)(G, {
- leadingIcon: _S,
- title: NOe,
+ leadingIcon: gS,
+ title: qOe,
onClick: t,
...Y(e),
children: "读取浏览器历史"
}), /* @__PURE__ */ (0, F.jsx)(G, {
ref: r,
iconOnly: !0,
- leadingIcon: dS,
+ leadingIcon: uS,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
@@ -66535,7 +66944,7 @@ function KOe({ busy: e, onRefresh: t, onImport: n }) {
type: "button",
className: P9,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, F.jsx)(_S, {
+ children: [/* @__PURE__ */ (0, F.jsx)(gS, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
@@ -66543,7 +66952,7 @@ function KOe({ busy: e, onRefresh: t, onImport: n }) {
type: "button",
className: P9,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, F.jsx)(AS, {
+ children: [/* @__PURE__ */ (0, F.jsx)(kS, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@ -66551,9 +66960,9 @@ function KOe({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function qOe({ sources: e, window: t, toast: n }) {
+function ske({ sources: e, window: t, toast: n }) {
let r = Ct({
- mutationFn: (e) => XDe(e, t),
+ mutationFn: (e) => uOe(e, t),
onSuccess: (e) => {
X.setQueryData(h9(t), e.dashboard), n("已移除口味数据源");
}
@@ -66577,10 +66986,10 @@ function qOe({ sources: e, window: t, toast: n }) {
children: [
/* @__PURE__ */ (0, F.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, F.jsx)(AS, {
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, F.jsx)(kS, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, F.jsx)(vS, {
+ }) : /* @__PURE__ */ (0, F.jsx)(_S, {
"aria-hidden": !0,
className: "size-4"
})
@@ -66600,12 +67009,12 @@ function qOe({ sources: e, window: t, toast: n }) {
size: "small",
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
- leadingIcon: yS,
+ leadingIcon: vS,
...Y(r.isPending),
onClick: () => {
r.isPending || l({
title: "移除口味数据源",
- body: VOe,
+ body: tke,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -66613,30 +67022,30 @@ function qOe({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, F.jsx)(YC, {
+ }) : /* @__PURE__ */ (0, F.jsx)(JC, {
shell: "plain",
- icon: vS,
+ icon: _S,
title: "还没有数据源",
- children: POe
+ children: JOe
})
]
});
}
-function JOe(e) {
+function V9(e) {
let { onSignal: t, navigate: n, toast: i, avatarInner: a, onboarding: o } = e, [s, c] = (0, P.useState)("all"), [l, u] = (0, P.useState)("browser"), d = (0, P.useRef)(null), f = St({
queryKey: h9(s),
queryFn: ({ signal: e }) => g9(s, e),
placeholderData: xe
- }), { job: p, running: m, outcome: h, start: g } = uj({
- queryKey: GDe,
- queryFn: ({ signal: e }) => qDe(e),
- start: () => YDe(s),
- idlePollMs: QDe,
+ }), { job: p, running: m, outcome: h, start: g } = lj({
+ queryKey: aOe,
+ queryFn: ({ signal: e }) => sOe(e),
+ start: () => lOe(s),
+ idlePollMs: fOe,
onFinish: (e) => {
e.status !== "failed" && (X.invalidateQueries({ queryKey: ["taste"] }), i("已更新口味分析"));
}
}), _ = Ct({
- mutationFn: (e) => ZDe(e),
+ mutationFn: (e) => dOe(e),
onSuccess: (e) => {
X.setQueryData(h9("all"), e.dashboard), c("all"), i("已导入口味数据");
}
@@ -66646,13 +67055,13 @@ function JOe(e) {
}, y = () => {
m || g.isPending || (g.reset(), g.mutate());
}, b = f.data;
- if (!b) return /* @__PURE__ */ (0, F.jsx)(ZC, { children: /* @__PURE__ */ (0, F.jsx)(J, {
+ if (!b) return /* @__PURE__ */ (0, F.jsx)(XC, { children: /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "读取失败",
children: f.error ? K(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 ? K(g.error) : _.error ? K(_.error) : h?.status === "failed" ? h.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, F.jsxs)(ZC, { children: [
+ return /* @__PURE__ */ (0, F.jsxs)(XC, { children: [
/* @__PURE__ */ (0, F.jsxs)(eD, {
selectedKey: l,
onSelectionChange: (e) => u(String(e)),
@@ -66662,31 +67071,31 @@ function JOe(e) {
className: "flex flex-wrap items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, F.jsxs)(tD, {
"aria-label": "口味证据来源",
- className: BN,
+ className: UN,
children: [/* @__PURE__ */ (0, F.jsx)(nD, {
id: "browser",
- className: VN,
+ className: WN,
children: "浏览器记录"
}), /* @__PURE__ */ (0, F.jsx)(nD, {
id: "peach",
- className: VN,
+ className: WN,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(sj, {
+ /* @__PURE__ */ (0, F.jsx)(oj, {
"aria-label": "分析范围",
selectedKey: s,
onSelectionChange: (e) => {
e !== null && c(String(e));
},
- children: KDe.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(cj, {
+ children: oOe.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(sj, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, F.jsx)(KOe, {
+ /* @__PURE__ */ (0, F.jsx)(oke, {
busy: m || g.isPending || _.isPending,
onRefresh: y,
onImport: () => d.current?.click()
@@ -66702,7 +67111,7 @@ function JOe(e) {
]
})]
}),
- /* @__PURE__ */ (0, F.jsx)(GOe, {
+ /* @__PURE__ */ (0, F.jsx)(ake, {
onboarding: o,
done: !!(x.history_sources || b.updated_at)
}),
@@ -66712,7 +67121,7 @@ function JOe(e) {
children: [
m ? p?.total ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, F.jsx)(ew, {
+ children: [/* @__PURE__ */ (0, F.jsx)($C, {
label: p.message || "正在读取浏览记录",
value: p.checked || 0,
max: p.total
@@ -66720,8 +67129,8 @@ function JOe(e) {
className: "text-caption-1-regular text-text-secondary",
children: `${p.message || "正在读取浏览记录"} · ${p.checked || 0} / ${p.total}`
})]
- }) : /* @__PURE__ */ (0, F.jsx)(XC, { label: p?.message || "正在读取浏览记录并更新口味分析" }) : null,
- _.isPending ? /* @__PURE__ */ (0, F.jsx)(XC, { label: "正在导入历史文件" }) : null,
+ }) : /* @__PURE__ */ (0, F.jsx)(YC, { label: p?.message || "正在读取浏览记录并更新口味分析" }) : null,
+ _.isPending ? /* @__PURE__ */ (0, F.jsx)(YC, { label: "正在导入历史文件" }) : null,
k ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
children: k
@@ -66737,27 +67146,27 @@ function JOe(e) {
children: [
/* @__PURE__ */ (0, F.jsx)(R9, {
accent: 0,
- icon: CS,
+ icon: SS,
term: "浏览记录",
figure: Number(x.history_visits || 0).toLocaleString(),
detail: `${x.history_sources || 0} 个数据源 · ${_9(x.range_start)}—${_9(x.range_end)}`
}),
/* @__PURE__ */ (0, F.jsx)(R9, {
accent: 1,
- icon: wS,
+ icon: CS,
term: "口味维度",
figure: T.length.toLocaleString(),
detail: T[0]?.name || "尚无主维度"
}),
/* @__PURE__ */ (0, F.jsx)(R9, {
accent: 2,
- icon: DS,
+ icon: ES,
term: "浏览候选",
figure: E.length.toLocaleString()
}),
/* @__PURE__ */ (0, F.jsx)(R9, {
accent: 3,
- icon: vS,
+ icon: _S,
term: "私有导出",
figure: Number(w.exports || 0).toLocaleString(),
detail: r(w.bytes || 0)
@@ -66774,7 +67183,7 @@ function JOe(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, F.jsx)(kOe, {
+ /* @__PURE__ */ (0, F.jsx)(UOe, {
rows: T,
label: "主要口味维度"
}),
@@ -66785,14 +67194,14 @@ function JOe(e) {
]
}), /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: T.length ? /* @__PURE__ */ (0, F.jsx)(AOe, {
+ children: T.length ? /* @__PURE__ */ (0, F.jsx)(WOe, {
rows: T,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, F.jsx)(YC, {
+ }) : /* @__PURE__ */ (0, F.jsx)(JC, {
shell: "plain",
- icon: DS,
+ icon: ES,
title: "暂无口味维度",
- children: IOe
+ children: XOe
})
})]
}),
@@ -66808,7 +67217,7 @@ function JOe(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, F.jsx)(jOe, { flows: b.creator_flows }),
+ /* @__PURE__ */ (0, F.jsx)(GOe, { flows: b.creator_flows }),
/* @__PURE__ */ (0, F.jsx)(B9, {
label: "浏览器口味维度",
onSignal: t,
@@ -66851,7 +67260,7 @@ function JOe(e) {
rows: E,
kind: "",
visual: "none",
- empty: LOe
+ empty: ZOe
}
}
]
@@ -66867,26 +67276,26 @@ function JOe(e) {
children: [
/* @__PURE__ */ (0, F.jsx)(R9, {
accent: 0,
- icon: xS,
+ icon: bS,
term: "Peach 看过",
figure: Number(x.peach_items || 0).toLocaleString(),
- detail: $De(x.peach_seconds || 0)
+ detail: pOe(x.peach_seconds || 0)
}),
/* @__PURE__ */ (0, F.jsx)(R9, {
accent: 1,
- icon: kS,
+ icon: OS,
term: "喜欢",
figure: Number(x.liked || 0).toLocaleString()
}),
/* @__PURE__ */ (0, F.jsx)(R9, {
accent: 2,
- icon: Hte,
+ icon: DS,
term: "不合口味",
figure: Number(x.disliked || 0).toLocaleString()
}),
/* @__PURE__ */ (0, F.jsx)(R9, {
accent: 3,
- icon: wS,
+ icon: CS,
term: "有标签",
figure: D.toLocaleString()
})
@@ -66913,11 +67322,11 @@ function JOe(e) {
]
}), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 grow flex-col",
- children: [/* @__PURE__ */ (0, F.jsx)(V9, {
+ children: [/* @__PURE__ */ (0, F.jsx)(H9, {
term: "有标签",
value: D,
rest: S.untagged || 0
- }), /* @__PURE__ */ (0, F.jsx)(V9, {
+ }), /* @__PURE__ */ (0, F.jsx)(H9, {
term: "有身份",
value: O,
rest: S.unidentified || 0
@@ -66965,19 +67374,19 @@ function JOe(e) {
})
]
}),
- /* @__PURE__ */ (0, F.jsx)(WOe, {
+ /* @__PURE__ */ (0, F.jsx)(ike, {
data: b,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, F.jsx)(qOe, {
+ /* @__PURE__ */ (0, F.jsx)(ske, {
sources: b.sources || [],
window: s,
toast: i
})
] });
}
-function V9({ term: e, value: t, rest: n }) {
+function H9({ term: e, value: t, rest: n }) {
let r = Math.max(t + n, 1);
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -66990,7 +67399,7 @@ function V9({ term: e, value: t, rest: n }) {
children: `${n} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, F.jsx)(ew, {
+ }), /* @__PURE__ */ (0, F.jsx)($C, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -66999,26 +67408,26 @@ function V9({ term: e, value: t, rest: n }) {
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function YOe(e) {
+function cke(e) {
if (!e || typeof document > "u") return;
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
}
-var XOe = (e) => {
+var lke = (e) => {
switch (e) {
- case "success": return QOe;
- case "info": return eke;
- case "warning": return $Oe;
- case "error": return tke;
+ case "success": return fke;
+ case "info": return mke;
+ case "warning": return pke;
+ case "error": return hke;
default: return null;
}
-}, H9 = Array(12).fill(0), ZOe = ({ visible: e, className: t }) => /*#__PURE__*/ P.createElement("div", {
+}, uke = Array(12).fill(0), dke = ({ visible: e, className: t }) => /*#__PURE__*/ P.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ P.createElement("div", { className: "sonner-spinner" }, H9.map((e, t) => /*#__PURE__*/ P.createElement("div", {
+}, /*#__PURE__*/ P.createElement("div", { className: "sonner-spinner" }, uke.map((e, t) => /*#__PURE__*/ P.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), QOe = /*#__PURE__*/ P.createElement("svg", {
+})))), fke = /*#__PURE__*/ P.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -67029,7 +67438,7 @@ var XOe = (e) => {
fillRule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
clipRule: "evenodd"
-})), $Oe = /*#__PURE__*/ P.createElement("svg", {
+})), pke = /*#__PURE__*/ P.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -67040,7 +67449,7 @@ var XOe = (e) => {
fillRule: "evenodd",
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
clipRule: "evenodd"
-})), eke = /*#__PURE__*/ P.createElement("svg", {
+})), mke = /*#__PURE__*/ P.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -67051,7 +67460,7 @@ var XOe = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
clipRule: "evenodd"
-})), tke = /*#__PURE__*/ P.createElement("svg", {
+})), hke = /*#__PURE__*/ P.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -67062,7 +67471,7 @@ var XOe = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
clipRule: "evenodd"
-})), nke = /*#__PURE__*/ P.createElement("svg", {
+})), gke = /*#__PURE__*/ P.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -67083,7 +67492,7 @@ var XOe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), rke = () => {
+})), _ke = () => {
let [e, t] = P.useState(document.hidden);
return P.useEffect(() => {
let e = () => {
@@ -67091,7 +67500,7 @@ var XOe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, ike = 1, ake = 100, U9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : ike++, W9 = new class {
+}, vke = 1, yke = 100, U9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : vke++, W9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -67101,7 +67510,7 @@ var XOe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - ake;
+ let e = this.toasts.length - yke;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
let { message: t, ...n } = e, r = U9(e), i = this.pendingDismissals.get(r);
@@ -67179,7 +67588,7 @@ var XOe = (e) => {
type: "default",
message: e
});
- else if (ske(e) && !e.ok) {
+ else if (xke(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" && !P.isValidElement(r) ? r : { message: r };
this.create({
@@ -67232,7 +67641,7 @@ var XOe = (e) => {
}), n;
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();
}
-}(), oke = (e, t) => W9.message(e, t), ske = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", G9 = Object.assign(oke, {
+}(), bke = (e, t) => W9.message(e, t), xke = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", G9 = Object.assign(bke, {
success: W9.success,
info: W9.info,
warning: W9.warning,
@@ -67246,20 +67655,20 @@ var XOe = (e) => {
getHistory: () => W9.toasts,
getToasts: () => W9.getActiveToasts()
});
-YOe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
+cke("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
function K9(e) {
return e.label !== void 0;
}
-var cke = 3, lke = "24px", uke = "16px", q9 = 4e3, dke = 356, fke = 14, pke = 45, mke = 200;
+var Ske = 3, Cke = "24px", wke = "16px", q9 = 4e3, Tke = 356, Eke = 14, Dke = 45, Oke = 200;
function J9(...e) {
return e.filter(Boolean).join(" ");
}
-function hke(e) {
+function kke(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var gke = (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] = P.useState(null), [O, k] = P.useState(null), [A, j] = P.useState(!1), [M, N] = P.useState(!1), [F, I] = P.useState(!1), [ee, te] = P.useState(!1), [ne, re] = P.useState(!1), [ie, ae] = P.useState(0), [oe, se] = P.useState(0), ce = P.useRef(n.duration || y || q9), le = P.useRef(null), L = P.useRef(null), ue = c === 0, R = c + 1 <= o, z = n.type, de = z ?? "default", fe = n.dismissible !== !1, pe = n.className || "", me = n.descriptionClassName || "", he = P.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = P.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = P.useMemo(() => n.duration || y || q9, [n.duration, y]), ve = P.useRef(0), ye = P.useRef(0), be = P.useRef(0), xe = P.useRef(null), [Se, Ce] = b.split("-"), we = P.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = rke(), Ee = P.useMemo(() => e.swipeDirections ?? hke(b), [e.swipeDirections, b]), De = n.invert || t, Oe = z === "loading";
+var Ake = (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] = P.useState(null), [O, k] = P.useState(null), [A, j] = P.useState(!1), [M, N] = P.useState(!1), [F, I] = P.useState(!1), [ee, te] = P.useState(!1), [ne, re] = P.useState(!1), [ie, ae] = P.useState(0), [oe, se] = P.useState(0), ce = P.useRef(n.duration || y || q9), le = P.useRef(null), L = P.useRef(null), ue = c === 0, R = c + 1 <= o, z = n.type, de = z ?? "default", fe = n.dismissible !== !1, pe = n.className || "", me = n.descriptionClassName || "", he = P.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = P.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = P.useMemo(() => n.duration || y || q9, [n.duration, y]), ve = P.useRef(0), ye = P.useRef(0), be = P.useRef(0), xe = P.useRef(null), [Se, Ce] = b.split("-"), we = P.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = _ke(), Ee = P.useMemo(() => e.swipeDirections ?? kke(b), [e.swipeDirections, b]), De = n.invert || t, Oe = z === "loading";
ye.current = P.useMemo(() => he * x + we, [he, we]), P.useEffect(() => {
ce.current = _e;
}, [_e]), P.useEffect(() => {
@@ -67300,7 +67709,7 @@ var gke = (e) => {
let ke = P.useCallback(() => {
N(!0), ae(ye.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, mke);
+ }, Oke);
}, [
n,
d,
@@ -67333,12 +67742,12 @@ var gke = (e) => {
return w?.loading ? /*#__PURE__*/ P.createElement("div", {
className: J9(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": z === "loading"
- }, w.loading) : /*#__PURE__*/ P.createElement(ZOe, {
+ }, w.loading) : /*#__PURE__*/ P.createElement(dke, {
className: J9(C?.loader, n?.classNames?.loader),
visible: z === "loading"
});
}
- let je = n.icon || w?.[z] || XOe(z);
+ let je = n.icon || w?.[z] || lke(z);
return /*#__PURE__*/ P.createElement("li", {
tabIndex: 0,
ref: L,
@@ -67385,7 +67794,7 @@ var gke = (e) => {
if (ee || !fe) return;
xe.current = null;
let e = Number(L.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(L.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" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= pke || a > .11)) {
+ if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= Dke || a > .11)) {
ae(ye.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), ke(), te(!0);
return;
}
@@ -67426,7 +67835,7 @@ var gke = (e) => {
ke(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: J9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? nke) : null, (z || n.icon || n.promise) && n.icon !== null && (w?.[z] !== null || n.icon) ? /*#__PURE__*/ P.createElement("div", {
+ }, w?.close ?? gke) : null, (z || n.icon || n.promise) && n.icon !== null && (w?.[z] !== null || n.icon) ? /*#__PURE__*/ P.createElement("div", {
"data-icon": "",
className: J9(C?.icon, n?.classNames?.icon)
}, z === "loading" ? n.icon || Ae() : n.promise ? Ae() : null, z === "loading" ? null : je) : null, /*#__PURE__*/ P.createElement("div", {
@@ -67461,10 +67870,10 @@ function Y9() {
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function _ke(e, t) {
+function jke(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? uke : lke;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? wke : Cke;
function o(e) {
[
"top",
@@ -67485,8 +67894,8 @@ function _ke(e, t) {
}) : o(a);
}), n;
}
-var vke = /*#__PURE__*/ P.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 = cke, toastOptions: g, dir: _ = Y9(), gap: v = fke, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = P.useState([]), w = P.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = P.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = P.useState([]), [O, k] = P.useState(!1), [A, j] = P.useState(!1), [M, N] = P.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), F = P.useRef(null), I = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ee = P.useRef(null), te = P.useRef(!1), ne = P.useCallback((e) => {
+var Mke = /*#__PURE__*/ P.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 = Ske, toastOptions: g, dir: _ = Y9(), gap: v = Eke, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = P.useState([]), w = P.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = P.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = P.useState([]), [O, k] = P.useState(!1), [A, j] = P.useState(!1), [M, N] = P.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), F = P.useRef(null), I = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ee = P.useRef(null), te = P.useRef(!1), ne = P.useCallback((e) => {
C((t) => (t.find((t) => t.id === e.id)?.delete || W9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
return P.useEffect(() => W9.subscribe((e) => {
@@ -67572,10 +67981,10 @@ var vke = /*#__PURE__*/ P.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${dke}px`,
+ "--width": `${Tke}px`,
"--gap": `${v}px`,
...m,
- ..._ke(l, u)
+ ...jke(l, u)
},
onBlur: (e) => {
te.current && !e.currentTarget.contains(e.relatedTarget) && (te.current = !1, ee.current &&= (ee.current.focus({ preventScroll: !0 }), null));
@@ -67593,7 +68002,7 @@ var vke = /*#__PURE__*/ P.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__*/ P.createElement(gke, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ P.createElement(Ake, {
key: n.id,
icons: y,
index: i,
@@ -67627,8 +68036,8 @@ var vke = /*#__PURE__*/ P.forwardRef(function(e, t) {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), Z9 = !1, yke = (e, t) => {
- Z9 || (Z9 = !0, (0, uS.createRoot)(e).render(/* @__PURE__ */ (0, F.jsx)(vke, {
+}), Z9 = !1, Nke = (e, t) => {
+ Z9 || (Z9 = !0, (0, lS.createRoot)(e).render(/* @__PURE__ */ (0, F.jsx)(Mke, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -67649,7 +68058,7 @@ var vke = /*#__PURE__*/ P.forwardRef(function(e, t) {
error: X9(t.error, !1)
}
})));
-}, bke = (e, t) => {
+}, Pke = (e, t) => {
let n = t.alert ? G9.error : G9.success, r = t.action;
n(/* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
@@ -67662,17 +68071,17 @@ var vke = /*#__PURE__*/ P.forwardRef(function(e, t) {
} : void 0
});
}, Q9 = null;
-function xke() {
+function Fke() {
return Q9?.isConnected || (Q9 = document.createElement("div"), Q9.className = "peach-react", Q9.dataset.reactOverlays = "", document.body.append(Q9)), Q9;
}
function $9(e) {
return (t, n) => {
- let r = (0, uS.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, F.jsx)(te, {
+ let r = (0, lS.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, F.jsx)(te, {
client: X,
children: /* @__PURE__ */ (0, F.jsx)(Du, {
reducedMotion: "user",
children: /* @__PURE__ */ (0, F.jsx)(ey, {
- getContainer: xke,
+ getContainer: Fke,
children: /* @__PURE__ */ (0, F.jsx)(e, { ...t })
})
})
@@ -67683,9 +68092,9 @@ function $9(e) {
};
};
}
-var Ske = {
+var Ike = {
activity: {
- prefetch: (e, t) => uw(t),
+ prefetch: (e, t) => lw(t),
mount: $9(Dne)
},
"avatar-picker": {
@@ -67701,12 +68110,12 @@ var Ske = {
mount: $9(xie)
},
configuration: {
- prefetch: (e, t) => hL(t),
- mount: $9(Xce)
+ prefetch: (e, t) => bL(t),
+ mount: $9(ale)
},
"configuration-summary": {
- prefetch: (e, t) => hL(t),
- mount: $9(Qce)
+ prefetch: (e, t) => bL(t),
+ mount: $9(sle)
},
"data-cleanup": {
prefetch: (e, t) => Yae(t),
@@ -67717,45 +68126,45 @@ var Ske = {
mount: $9(mM)
},
"follow-manage": {
- prefetch: (e, t) => ON(t, e.tab),
- mount: $9(oI)
+ prefetch: (e, t) => jN(t, e.tab),
+ mount: $9(vI)
},
index: {
- prefetch: (e, t) => Doe(e, t),
- mount: $9(Xoe)
+ prefetch: (e, t) => Ioe(e, t),
+ mount: $9(ase)
},
"junk-queue": {
prefetch: async () => {},
- mount: $9(pse)
+ mount: $9(Sse)
},
"library-processing": {
prefetch: (e, t) => bk(t),
- mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, F.jsx)(yse, { ...e }) : /* @__PURE__ */ (0, F.jsx)(aj, { ...e }))
+ mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, F.jsx)(Ose, { ...e }) : /* @__PURE__ */ (0, F.jsx)(ij, { ...e }))
},
playlists: {
- prefetch: (e, t) => xse(t),
- mount: $9(Nse)
+ prefetch: (e, t) => Ase(t),
+ mount: $9(Hse)
},
"quality-goals": {
prefetch: (e, t) => Kie(t),
- mount: $9(Fse)
+ mount: $9(Wse)
},
review: {
prefetch: (e, t) => pae(t),
- mount: $9(Zse)
+ mount: $9(oce)
},
scraping: {
- prefetch: (e, t) => ice(t),
- mount: $9(dce)
+ prefetch: (e, t) => pce(t),
+ mount: $9(bce)
},
stats: {
- prefetch: (e, t) => ele(t),
- mount: $9(wDe)
+ prefetch: (e, t) => lle(t),
+ mount: $9(RDe)
},
taste: {
- prefetch: (e, t) => JDe("all", t),
- mount: $9(JOe)
+ prefetch: (e, t) => cOe("all", t),
+ mount: $9(V9)
}
};
//#endregion
-export { yke as mountToaster, Ske as pages, bke as showToast };
+export { Nke as mountToaster, Ike as pages, Pke as showToast };