Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(web): JAV 订阅源只给有多条源的人写页名

longmeidaob4ecf002df42
diff --git a/docs/SOURCING.md b/docs/SOURCING.md
index 7ab61cf66..5b5b07075 100644
--- a/docs/SOURCING.md
+++ b/docs/SOURCING.md
@@ -1278,7 +1278,8 @@ Feed 只回答一个问题:**最近出了哪些番号**。它不下载、不
- 限流照库内采集:主机间隔 3 秒、403 就整源停下,冷却判据在 `scraping_access`,见「javdb、AVBase 与 JavBus 的限流与封禁」。
不要因为 Feed 是后台任务就另开一套。
- **加 `?sort_type=4` 拿到的页面一条作品都解不出**,同一轮里不带参数的请求仍是完整页。所以演员页伪 Feed 一律用不带查询串的地址。
- - 标题栏 `<span class="actor-section-name">` 是这一页挂的名字,另一个 `section-meta` 写着「N 部影片」。一位女优常有两页,
+ - 标题栏 `<span class="actor-section-name">` 是这一页挂的名字,常把几种写法用逗号连成一串(`涼森玲夢, 涼森れむ`);
+ 另一个 `section-meta` 写着「N 部影片」。一位女优常有两页,
旧艺名那页可能常年是空的(`/actors/MmbDR` 白石アイリ,2026-09-28 实测「0 部影片」「暂无内容」)。页面自报 0 部才算安静源;
计数不为 0 却一条都解不出,仍按拉取失败报。
diff --git a/frontend/src/react/follow-manage/feed-sources.tsx b/frontend/src/react/follow-manage/feed-sources.tsx
index 57d614345..537dad776 100644
--- a/frontend/src/react/follow-manage/feed-sources.tsx
+++ b/frontend/src/react/follow-manage/feed-sources.tsx
@@ -95,13 +95,28 @@ function FeedAvatar({ source, avatarInner }: { source: FeedSource; avatarInner:
}
/** 这一页在站上挂的另一个名字。一个人常有两页,本名页和旧艺名页在表里同名,
- * 只有这一段说得出哪一行是哪一页;和统称一样时不重复。 */
-const pageAlias = (source: FeedSource) =>
- (source.page_name && source.page_name !== source.name ? source.page_name : '');
+ * 只有这一段说得出哪一行是哪一页。只在这位不止一行时写:站上的标题栏常把几种写法
+ * 连成一串(「涼森玲夢, 涼森れむ」),只有一行的人再摆一遍只是噪音;和统称一样时也不重复。 */
+const pageAlias = (source: FeedSource, shared: ReadonlySet<number>) =>
+ (source.entity_id !== null && shared.has(source.entity_id)
+ && source.page_name && source.page_name !== source.name ? source.page_name : '');
+
+/** 挂着不止一条源的人。 */
+function sharedEntities(sources: FeedSource[]): ReadonlySet<number> {
+ const seen = new Set<number>();
+ const shared = new Set<number>();
+ for (const { entity_id: id } of sources) {
+ if (id === null) continue;
+ if (seen.has(id)) shared.add(id); else seen.add(id);
+ }
+ return shared;
+}
interface RowHandlers {
readOnly: boolean;
avatarInner: AvatarInner;
+ /** 挂着不止一条源的人,名字旁的页名只给他们写。 */
+ shared: ReadonlySet<number>;
/** 正在跑的那个动作的键(`useAction` 的 `busy`),行尾的拉取键按它挂忙态。 */
busy: string | null;
toggle(source: FeedSource, enabled: boolean): void;
@@ -164,12 +179,14 @@ export function FeedSources({ readOnly, toast, avatarInner }: {
});
/* 列定义只建一次,行里的控件到点击那一刻再从这里取最新的处理器与只读态。 */
+ const shared = useMemo(() => sharedEntities(sources), [sources]);
const handlers = useRef<RowHandlers>({
- readOnly, avatarInner, busy: null, toggle: () => {}, fetch: () => {}, remove: () => {},
+ readOnly, avatarInner, shared, busy: null, toggle: () => {}, fetch: () => {}, remove: () => {},
});
handlers.current = {
readOnly,
avatarInner,
+ shared,
busy: action.busy,
toggle: (source, enabled) => void action.run(`enabled-${source.id}`,
(signal) => setFeedEnabled(source.id, enabled, signal), () => void reload()),
@@ -204,7 +221,7 @@ export function FeedSources({ readOnly, toast, avatarInner }: {
/* 名字、频率与时间都不换行:窄屏上这张表靠 Table 自带的容器横着滚,让格子换行只会
把「三上悠亜」竖着摆成四行,滚动反而没了用处。 */
cell: (context) => {
- const alias = pageAlias(context.row.original);
+ const alias = pageAlias(context.row.original, handlers.current.shared);
return (
<span className="flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary">
<FeedAvatar source={context.row.original} avatarInner={handlers.current.avatarInner} />
diff --git a/frontend/test/react/follow-manage.test.tsx b/frontend/test/react/follow-manage.test.tsx
index e4b5fb0c1..40b3eaf7d 100644
--- a/frontend/test/react/follow-manage.test.tsx
+++ b/frontend/test/react/follow-manage.test.tsx
@@ -672,17 +672,19 @@ it('地址栏指着订阅源时首屏就带着清单,开关、移除与立即
});
it('同一个人的两页各一行,旧艺名那页在名字旁写出站上的名字;顶上按人数计订阅', async () => {
- const page = (id: number, pageName: string) => ({
- id, kind: 'javdb-actor', kind_label: 'JAV 订阅', name: '森日向子', page_name: pageName,
- url: `https://javdb.com/actors/${id}`, entity_id: 8112, entity_name: '森日向子', has_image: true,
+ const page = (id: number, pageName: string, name = '森日向子', entity = 8112) => ({
+ id, kind: 'javdb-actor', kind_label: 'JAV 订阅', name, page_name: pageName,
+ url: `https://javdb.com/actors/${id}`, entity_id: entity, entity_name: name, has_image: true,
enabled: true, interval_minutes: 360, last_fetched_at: null, last_error: null, last_new_count: 0, seen: 0,
});
- const { host } = await open(
- { feeds: { unread: 81, sources: [page(3, '白石アイリ'), page(4, '森日向子')] } }, { tab: 'feeds' });
+ const { host } = await open({ feeds: { unread: 81, sources: [
+ page(3, '白石アイリ'), page(4, '森日向子'), page(2, '涼森玲夢, 涼森れむ', '凉森玲梦', 7746),
+ ] } }, { tab: 'feeds' });
const names = [...host.querySelectorAll('[role="rowheader"]')].map(shown);
- expect(names).toEqual(['森日向子白石アイリ', '森日向子']);
+ // 只有一行的人不写页名:站上标题栏那串写法摆出来只是噪音。
+ expect(names).toEqual(['森日向子白石アイリ', '森日向子', '凉森玲梦']);
const readings = [...host.querySelector('[aria-label="关注概览"]')!.children].map((card) => card.textContent);
- expect(readings.slice(-2)).toEqual(['JAV 订阅1 位', '未看新作81 条']);
+ expect(readings.slice(-2)).toEqual(['JAV 订阅2 位', '未看新作81 条']);
});
it('订阅源表里点一行的空白处就是选这一行,选中了底部浮出批量操作,暂停逐条写到订阅源接口', async () => {
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index fa1433ade..014b49bd7 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -34873,14 +34873,14 @@ function oM({ toast: t, failure: n }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var sM = ET("git-compare"), cM = ET("rotate-cw"), doe = "暂时无法读取进度,正在重新连接…", lM = "清理失效条目", uM = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", dM = (e) => Number(e || 0).toLocaleString();
-function foe({ scan: e }) {
+var sM = ET("git-compare"), doe = ET("rotate-cw"), foe = "暂时无法读取进度,正在重新连接…", cM = "清理失效条目", lM = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", uM = (e) => Number(e || 0).toLocaleString();
+function poe({ scan: e }) {
let t = e.cache ?? {
files: 0,
bytes: 0
};
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {
- className: uM,
+ className: lM,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, L.jsx)("article", {
className: MA(),
children: /* @__PURE__ */ (0, L.jsx)(NA, {
@@ -34890,19 +34890,19 @@ function foe({ scan: e }) {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
- figure: e.online ? `${dM(e.missing)} 项` : "—",
+ figure: e.online ? `${uM(e.missing)} 项` : "—",
meta: Bae(e),
wrapMeta: !0
})
}, e.location))
}), /* @__PURE__ */ (0, L.jsxs)("div", {
- className: uM,
+ className: lM,
children: [
/* @__PURE__ */ (0, L.jsx)("article", {
className: MA(),
children: /* @__PURE__ */ (0, L.jsx)(NA, {
label: "待永久删除",
- figure: `${dM(e.missing)} 项`,
+ figure: `${uM(e.missing)} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
@@ -34910,7 +34910,7 @@ function foe({ scan: e }) {
className: MA(),
children: /* @__PURE__ */ (0, L.jsx)(NA, {
label: "空文件夹",
- figure: `${dM(e.empty)} 个`,
+ figure: `${uM(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
@@ -34918,14 +34918,14 @@ function foe({ scan: e }) {
className: MA(),
children: /* @__PURE__ */ (0, L.jsx)(NA, {
label: "可清理的缓存",
- figure: `${dM(t.files)} 个`,
+ figure: `${uM(t.files)} 个`,
meta: t.files ? a(t.bytes) : ""
})
})
]
})] });
}
-function poe({ toast: e }) {
+function moe({ toast: e }) {
let t = Dj({
queryKey: gA,
queryFn: ({ signal: e }) => vA(e),
@@ -34939,7 +34939,7 @@ function poe({ toast: e }) {
exact: !0
}), t.status !== "complete") return;
let { done: n, left: r } = xA(t);
- r ? e(`已完成 ${dM(n)} 项,${dM(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
+ r ? e(`已完成 ${uM(n)} 项,${uM(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
}), n = Dj({
queryKey: hA,
@@ -34947,9 +34947,9 @@ function poe({ toast: e }) {
start: Mae,
onStarted: () => t.dismiss()
}), r = n.job, i = n.running || n.start.isPending, o = t.running || t.start.isPending, s = r?.status === "complete" || r?.status === "failed", c = i ? "扫描中" : s ? "重新扫描" : "检查文件", l = (e) => void h({
- title: lM,
+ title: cM,
body: zae(e),
- confirmLabel: lM,
+ confirmLabel: cM,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), u = t.outcome, d = (e) => {
@@ -34975,7 +34975,7 @@ function poe({ toast: e }) {
else if (n.query.isError && r) f = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
title: "任务状态",
- children: doe
+ children: foe
});
else if (r?.status === "running") {
let e = Lae(r);
@@ -35003,7 +35003,7 @@ function poe({ toast: e }) {
else if (r?.status === "complete") {
let e = Fae(r);
f = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
- /* @__PURE__ */ (0, L.jsx)(foe, { scan: r }),
+ /* @__PURE__ */ (0, L.jsx)(poe, { scan: r }),
e ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
title: "清理内容",
@@ -35015,7 +35015,7 @@ function poe({ toast: e }) {
variant: "danger",
...Y(o),
onClick: () => l(r),
- children: o ? "正在复核并清理…" : lM
+ children: o ? "正在复核并清理…" : cM
}) : /* @__PURE__ */ (0, L.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@ -35041,7 +35041,7 @@ function poe({ toast: e }) {
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, L.jsx)(G, {
"data-resource-scan": !0,
- leadingIcon: s && !i ? cM : sM,
+ leadingIcon: s && !i ? doe : sM,
...Y(i),
onClick: () => {
i || n.start.mutate();
@@ -35067,10 +35067,10 @@ function poe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
-function fM(e, t) {
+function dM(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
-function pM({ section: e, label: t, icon: n, value: r, open: i }) {
+function fM({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
className: MA({ interactive: !0 }),
@@ -35084,17 +35084,17 @@ function pM({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var moe = ET("square-check-big"), hoe = ET("sparkles"), goe = ET("file-stack"), _oe = ET("file-archive"), voe = ET("trash"), yoe = [
+var hoe = ET("square-check-big"), goe = ET("sparkles"), _oe = ET("file-stack"), voe = ET("file-archive"), yoe = ET("trash"), boe = [
SA,
fk,
FO
-], boe = () => {
- for (let e of yoe) X.invalidateQueries({
+], xoe = () => {
+ for (let e of boe) X.invalidateQueries({
queryKey: e,
exact: !0
});
};
-function xoe({ toast: e, failure: t, open: n }) {
+function Soe({ toast: e, failure: t, open: n }) {
let r = kt({
queryKey: SA,
queryFn: ({ signal: e }) => EA(e)
@@ -35118,46 +35118,46 @@ function xoe({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, L.jsxs)("div", {
className: Qae,
children: [
- /* @__PURE__ */ (0, L.jsx)(pM, {
+ /* @__PURE__ */ (0, L.jsx)(fM, {
section: "review",
label: "人工复核",
- icon: moe,
+ icon: hoe,
open: n,
- value: fM(r, Gae)
+ value: dM(r, Gae)
}),
- /* @__PURE__ */ (0, L.jsx)(pM, {
+ /* @__PURE__ */ (0, L.jsx)(fM, {
section: "quality",
label: "高清版",
- icon: hoe,
+ icon: goe,
open: n,
- value: fM(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
+ value: dM(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, L.jsx)(pM, {
+ /* @__PURE__ */ (0, L.jsx)(fM, {
section: "duplicates",
label: "重复文件",
- icon: goe,
+ icon: _oe,
open: n,
- value: fM(o, (e) => Number(e.total || 0) ? {
+ value: dM(o, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
meta: `可回收 ${a(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, L.jsx)(pM, {
+ /* @__PURE__ */ (0, L.jsx)(fM, {
section: "ads",
label: "垃圾文件",
- icon: _oe,
+ icon: voe,
open: n,
- value: fM(s, (e) => ({
+ value: dM(s, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
meta: Kae(e)
}))
}),
- /* @__PURE__ */ (0, L.jsx)(pM, {
+ /* @__PURE__ */ (0, L.jsx)(fM, {
section: "trash",
label: "回收站",
- icon: voe,
+ icon: yoe,
open: n,
- value: fM(c, (e) => ({
+ value: dM(c, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
meta: e.total ? `占用 ${a(e.bytes || 0)}` : ""
}))
@@ -35173,7 +35173,7 @@ function xoe({ toast: e, failure: t, open: n }) {
children: /* @__PURE__ */ (0, L.jsx)(gj, {
toast: u,
monitor: !0,
- onComplete: boe
+ onComplete: xoe
})
}),
/* @__PURE__ */ (0, L.jsx)("div", {
@@ -35187,12 +35187,12 @@ function xoe({ toast: e, failure: t, open: n }) {
]
}),
/* @__PURE__ */ (0, L.jsx)(Jj, {}),
- yA(l.data) ? /* @__PURE__ */ (0, L.jsx)(poe, { toast: e }) : null
+ yA(l.data) ? /* @__PURE__ */ (0, L.jsx)(moe, { toast: e }) : null
] });
}
//#endregion
//#region src/react/components/collection-summary.tsx
-function mM({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function pM({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-collection-summary": "",
className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
@@ -35219,7 +35219,7 @@ function mM({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/components/use-stuck.ts
-function hM(e) {
+function mM(e) {
(0, I.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -35237,9 +35237,9 @@ function hM(e) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-function Soe({ title: e, children: t }) {
+function Coe({ title: e, children: t }) {
let n = (0, I.useRef)(null);
- return hM(n), /* @__PURE__ */ (0, L.jsxs)("div", {
+ return mM(n), /* @__PURE__ */ (0, L.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -35252,9 +35252,9 @@ function Soe({ title: e, children: t }) {
}), t]
});
}
-function gM({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+function hM({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
let d = (0, I.useRef)(null);
- return hM(d), /* @__PURE__ */ (0, L.jsxs)("div", {
+ return mM(d), /* @__PURE__ */ (0, L.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
@@ -35281,22 +35281,22 @@ function gM({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
]
});
}
-var Coe = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-function _M({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var woe = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+function gM({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: Sw(Coe, r),
+ className: Sw(woe, r),
onClick: n,
children: e
});
}
-var woe = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none hover:border-(--glass-rim) hover:bg-(--glass-pick-fill) focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function vM({ children: e, onPress: t, busy: n = !1 }) {
+var Toe = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none hover:border-(--glass-rim) hover:bg-(--glass-pick-fill) focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function _M({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
- className: woe,
+ className: Toe,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -35307,11 +35307,11 @@ function vM({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var Toe = ET("play"), Eoe = ET("file-stack"), Doe = Rw({
+var Eoe = ET("play"), Doe = ET("file-stack"), Ooe = Rw({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), yM = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", bM = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", xM = "font-mono text-caption-1-regular leading-5 text-text-secondary", SM = () => {
+}), vM = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", yM = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", bM = "font-mono text-caption-1-regular leading-5 text-text-secondary", xM = () => {
X.invalidateQueries({
queryKey: FO,
exact: !0
@@ -35320,16 +35320,16 @@ var Toe = ET("play"), Eoe = ET("file-stack"), Doe = Rw({
exact: !0
});
};
-function Ooe(e) {
+function koe(e) {
return e.identical ? /* @__PURE__ */ (0, L.jsx)("span", {
- className: `${bM} text-(--keep)`,
+ className: `${yM} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, L.jsx)("span", {
- className: `${bM} text-text-secondary`,
+ className: `${yM} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function koe({ file: t, openItem: n }) {
+function Aoe({ file: t, openItem: n }) {
let r = () => n(t.id);
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
@@ -35339,7 +35339,7 @@ function koe({ file: t, openItem: n }) {
onClick: r,
"aria-label": `预览 ${t.name}`,
className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",
- children: [/* @__PURE__ */ (0, L.jsx)(Toe, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Eoe, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, L.jsx)("img", {
@@ -35363,39 +35363,39 @@ function koe({ file: t, openItem: n }) {
}), t.is_largest || t.is_longest ? /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex flex-none gap-1",
children: [t.is_largest ? /* @__PURE__ */ (0, L.jsx)("i", {
- className: `${yM} not-italic bg-background-primary-hover text-text-secondary`,
+ className: `${vM} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, t.is_longest ? /* @__PURE__ */ (0, L.jsx)("i", {
- className: `${yM} not-italic bg-(--keep)/22 text-(--keep)`,
+ className: `${vM} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, L.jsxs)("span", {
- className: `${xM} flex min-w-0 items-center gap-1.5`,
+ className: `${bM} flex min-w-0 items-center gap-1.5`,
children: [/* @__PURE__ */ (0, L.jsx)(sj, { mark: p[t.location] || "database" }), /* @__PURE__ */ (0, L.jsx)("span", {
className: "whitespace-nowrap",
children: e[t.location] || t.location || t.drive
})]
}),
/* @__PURE__ */ (0, L.jsx)("span", {
- className: xM,
+ className: bM,
children: a(t.size || 0)
}),
/* @__PURE__ */ (0, L.jsx)("span", {
- className: xM,
+ className: bM,
children: i(t.duration)
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-middle-truncate": !0,
title: t.path ?? "",
- className: `${xM} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
+ className: `${bM} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
children: t.path ?? ""
})
]
});
}
-function Aoe({ openItem: t, toast: n, failure: r }) {
+function joe({ openItem: t, toast: n, failure: r }) {
let i = kt({
queryKey: FO,
queryFn: ({ signal: e }) => IO(e)
@@ -35405,13 +35405,13 @@ function Aoe({ openItem: t, toast: n, failure: r }) {
}), [s, c] = (0, I.useState)(""), l = At({
mutationFn: (e) => UO(e, "dispose"),
onSuccess: (e, t) => {
- SM(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
+ xM(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
try {
await UO(t, "restore");
} catch (e) {
r("撤销移入回收站", e);
} finally {
- SM();
+ xM();
}
} });
},
@@ -35438,15 +35438,15 @@ function Aoe({ openItem: t, toast: n, failure: r }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, L.jsx)(mM, {
+ /* @__PURE__ */ (0, L.jsx)(pM, {
label: "重复内容",
figure: `${Number(u.total || 0).toLocaleString()} 组`,
detail: `${u.files} 个文件 · 可回收 ${a(u.reclaimable)}`
}),
- d.length ? /* @__PURE__ */ (0, L.jsxs)(Soe, {
+ d.length ? /* @__PURE__ */ (0, L.jsxs)(Coe, {
title: "批量保留",
children: [
- /* @__PURE__ */ (0, L.jsx)(vM, {
+ /* @__PURE__ */ (0, L.jsx)(_M, {
busy: s === "all:largest",
onPress: () => p({
groups: d,
@@ -35455,7 +35455,7 @@ function Aoe({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最大"
}),
- /* @__PURE__ */ (0, L.jsx)(vM, {
+ /* @__PURE__ */ (0, L.jsx)(_M, {
busy: s === "all:longest",
onPress: () => p({
groups: d,
@@ -35464,7 +35464,7 @@ function Aoe({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最长"
}),
- BO(d, f).map((t) => /* @__PURE__ */ (0, L.jsx)(vM, {
+ BO(d, f).map((t) => /* @__PURE__ */ (0, L.jsx)(_M, {
busy: s === `all:${t}`,
onPress: () => p({
groups: d,
@@ -35487,7 +35487,7 @@ function Aoe({ openItem: t, toast: n, failure: r }) {
let i = [n], o = (e) => `${r}:${e}`;
return /* @__PURE__ */ (0, L.jsxs)("section", {
"aria-label": n.code,
- className: Doe,
+ className: Ooe,
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",
children: [
@@ -35499,9 +35499,9 @@ function Aoe({ openItem: t, toast: n, failure: r }) {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${n.count} 个 · 可回收 ${a(n.reclaimable)}`
}),
- Ooe(n),
+ koe(n),
n.cross_drive ? /* @__PURE__ */ (0, L.jsx)("span", {
- className: `${bM} text-text-secondary`,
+ className: `${yM} text-text-secondary`,
children: `跨盘 ${n.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, L.jsxs)("span", {
@@ -35554,13 +35554,13 @@ function Aoe({ openItem: t, toast: n, failure: r }) {
]
})
]
- }), /* @__PURE__ */ (0, L.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, L.jsx)(koe, {
+ }), /* @__PURE__ */ (0, L.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, L.jsx)(Aoe, {
file: e,
openItem: t
}, e.id)) })]
}, `${n.code}-${r}`);
}) : /* @__PURE__ */ (0, L.jsx)(Bw, {
- icon: Eoe,
+ icon: Doe,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
})
@@ -35569,10 +35569,10 @@ function Aoe({ openItem: t, toast: n, failure: r }) {
}
//#endregion
//#region src/react/components/segmented.tsx
-var CM = "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", wM = "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", joe = "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", TM = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", EM = "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)";
+var SM = "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", CM = "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", Moe = "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", wM = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", TM = "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/components/use-view-glide.ts
-function Moe(e, t) {
+function Noe(e, t) {
if (!t.contains(e)) return null;
let n = 0, r = 0;
for (let i = e; i && i !== t; i = i.offsetParent) n += i.offsetLeft, r += i.offsetTop;
@@ -35588,11 +35588,11 @@ function Moe(e, t) {
h: e.offsetHeight
};
}
-function DM(e, t, n, r) {
+function EM(e, t, n, r) {
let i = (0, I.useRef)(null), a = (0, I.useCallback)((r, a) => {
let o = e.current, s = t.current, c = o?.parentElement;
if (!o) return;
- let l = s && s.offsetWidth ? r ?? s.querySelector(n) : null, u = l && c ? Moe(l, c) : null;
+ let l = s && s.offsetWidth ? r ?? s.querySelector(n) : null, u = l && c ? Noe(l, c) : null;
if (!u || !u.w) {
o.hidden = !0;
return;
@@ -35630,19 +35630,19 @@ function DM(e, t, n, r) {
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var Noe = (e) => e === "videos", OM = () => /* @__PURE__ */ (0, L.jsx)("span", {
+var Poe = (e) => e === "videos", DM = () => /* @__PURE__ */ (0, L.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
-function Poe(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Noe(t), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = (0, I.useRef)(null), g = (0, I.useRef)(null), _ = DM(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = DM(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
+function Foe(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Poe(t), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = (0, I.useRef)(null), g = (0, I.useRef)(null), _ = EM(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = EM(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
return (0, I.useEffect)(() => {
c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);
- }, [c]), /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Ioe, {
+ }, [c]), /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Loe, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, L.jsx)(gM, {
+ }), /* @__PURE__ */ (0, L.jsx)(hM, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -35662,13 +35662,13 @@ function Poe(e) {
"data-view-glide": "round",
"aria-hidden": "true"
})] }),
- top: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Foe, {
+ top: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Ioe, {
keys: n,
view: t,
row: p,
glide: v,
onView: s.setView
- }), l ? /* @__PURE__ */ (0, L.jsx)(OM, {}) : null] }) : null, /* @__PURE__ */ (0, L.jsxs)("div", {
+ }), l ? /* @__PURE__ */ (0, L.jsx)(DM, {}) : null] }) : null, /* @__PURE__ */ (0, L.jsxs)("div", {
ref: m,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -35688,11 +35688,11 @@ function Poe(e) {
r !== e.k && s.setState(e.k);
},
children: e.label
- }, e.k)), /* @__PURE__ */ (0, L.jsx)(OM, {})]
+ }, e.k)), /* @__PURE__ */ (0, L.jsx)(DM, {})]
}), /* @__PURE__ */ (0, L.jsx)("div", {
ref: h,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, L.jsxs)(_M, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, L.jsxs)(gM, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -35704,10 +35704,10 @@ function Poe(e) {
}, e.k)) : null
})]
})] }),
- bottom: /* @__PURE__ */ (0, L.jsx)(Loe, { ...e })
+ bottom: /* @__PURE__ */ (0, L.jsx)(Roe, { ...e })
})] });
}
-function Foe({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Ioe({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -35749,7 +35749,7 @@ function Foe({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function Ioe({ items: e, hidden: t, actions: n }) {
+function Loe({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -35769,7 +35769,7 @@ function Ioe({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Loe(e) {
+function Roe(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: c } = e;
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, L.jsxs)("button", {
@@ -35781,22 +35781,22 @@ function Loe(e) {
dangerouslySetInnerHTML: { __html: s("chevron-left") }
}), /* @__PURE__ */ (0, L.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, L.jsx)(Roe, {
+ /* @__PURE__ */ (0, L.jsx)(zoe, {
text: n,
busy: r
}),
- t === "videos" && i ? /* @__PURE__ */ (0, L.jsx)(zoe, {
+ t === "videos" && i ? /* @__PURE__ */ (0, L.jsx)(Boe, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, L.jsx)(Boe, {
+ t === "photos" && a ? /* @__PURE__ */ (0, L.jsx)(Voe, {
head: a,
actions: o,
helpers: c
}) : null
] });
}
-function Roe({ text: e, busy: t }) {
+function zoe({ text: e, busy: t }) {
return /* @__PURE__ */ (0, L.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, L.jsx)("span", {
@@ -35806,21 +35806,21 @@ function Roe({ text: e, busy: t }) {
}) : e
});
}
-function kM({ label: e, value: t, options: n, onChange: r }) {
+function OM({ label: e, value: t, options: n, onChange: r }) {
return /* @__PURE__ */ (0, L.jsx)(FD, {
"aria-label": e,
orientation: "horizontal",
value: t,
onChange: r,
"data-entity-layout": "",
- className: TM,
+ className: wM,
children: n.map(([e, t, n]) => {
let r = ET(n);
return /* @__PURE__ */ (0, L.jsx)(ID, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: EM,
+ className: TM,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: t,
className: "contents",
@@ -35830,7 +35830,7 @@ function kM({ label: e, value: t, options: n, onChange: r }) {
})
});
}
-function AM({ onPress: e, busy: t = !1 }) {
+function kM({ onPress: e, busy: t = !1 }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
"data-entity-batch": "",
@@ -35844,12 +35844,12 @@ function AM({ onPress: e, busy: t = !1 }) {
dangerouslySetInnerHTML: { __html: t ? w("正在换一批") : s("shuffle") }
});
}
-function zoe({ head: e, actions: t }) {
+function Boe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, L.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, L.jsx)(AM, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, L.jsx)(kM, {
+ /* @__PURE__ */ (0, L.jsx)(kM, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, L.jsx)(OM, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
@@ -35870,20 +35870,20 @@ function zoe({ head: e, actions: t }) {
]
});
}
-function Boe({ head: e, actions: t, helpers: n }) {
+function Voe({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, I.useState)(!1), a = (0, I.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, I.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, L.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, L.jsx)(AM, {
+ e.shuffle ? /* @__PURE__ */ (0, L.jsx)(kM, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, L.jsx)(kM, {
+ /* @__PURE__ */ (0, L.jsx)(OM, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -35899,29 +35899,29 @@ function Boe({ head: e, actions: t, helpers: n }) {
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var Voe = "/api/avatar-choices", jM = "/api/avatar-pick", Hoe = "/api/avatar-code-cover", Uoe = "/avatar-choice", MM = (e, t) => [
+var Hoe = "/api/avatar-choices", AM = "/api/avatar-pick", Uoe = "/api/avatar-code-cover", Woe = "/avatar-choice", jM = (e, t) => [
"avatar-choices",
e,
t
-], NM = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, PM = (e, t, n) => `${Uoe}${NM(e, t)}&ref=${encodeURIComponent(n)}`, Woe = (e, t, n) => Aw(Voe + NM(e, t), n), Goe = (e) => q(Hoe, { code: e });
-function FM(e, t, n) {
+], MM = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, NM = (e, t, n) => `${Woe}${MM(e, t)}&ref=${encodeURIComponent(n)}`, Goe = (e, t, n) => Aw(Hoe + MM(e, t), n), Koe = (e) => q(Uoe, { code: e });
+function PM(e, t, n) {
let r = t.width === e.width && t.height === e.height;
return e.focus && r ? Uie(e.focus, t, n) : bO(t, n);
}
-var Koe = (e) => e.crop && yO({
+var qoe = (e) => e.crop && yO({
width: e.width,
height: e.height
});
-async function qoe(e, t, n) {
+async function Joe(e, t, n) {
if (!("file" in n)) {
- await q(jM, {
+ await q(AM, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${jM}${NM(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${AM}${MM(e, t)}&name=${encodeURIComponent(r.name)}`, {
method: "POST",
credentials: "same-origin",
body: r
@@ -35930,30 +35930,30 @@ async function qoe(e, t, n) {
let a = await i.json().catch(() => null);
throw new Ow(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function Joe(e, t) {
+function Yoe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
return n.length ? `${e}:图库里按「${n.join("」「")}」找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:图库里没有这个名字,用下面两种方式换。`;
}
-var Yoe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function Xoe(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Yoe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var Xoe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function Zoe(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Xoe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var IM = (e) => e.cast > 1, Zoe = (e) => IM(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Qoe = {
+var FM = (e) => e.cast > 1, Qoe = (e) => FM(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, $oe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
code: "番号封面"
};
-function $oe(e) {
+function ese(e) {
if (e.startsWith("cover:")) return "封面";
let t = e.split(":")[2] || "";
if (t === "cover") return "封面";
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var ese = (e) => `${Qoe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (IM(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), tse = 8, nse = 3 / 4;
-function rse({ kind: e, entityId: t, name: n, onPicked: r }) {
+var tse = (e) => `${$oe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (FM(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), nse = 8, rse = 3 / 4;
+function ise({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, I.useState)(!1);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -35973,7 +35973,7 @@ function rse({ kind: e, entityId: t, name: n, onPicked: r }) {
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, L.jsx)(ise, {
+ children: /* @__PURE__ */ (0, L.jsx)(ase, {
kind: e,
entityId: t,
name: n,
@@ -35982,29 +35982,29 @@ function rse({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function ise({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, I.useRef)(null), o = DO(), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(null), h = MM(e, t), g = (0, I.useRef)(!1), _ = kt({
+function ase({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, I.useRef)(null), o = DO(), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(null), h = jM(e, t), g = (0, I.useRef)(!1), _ = kt({
queryKey: h,
- queryFn: ({ signal: n }) => Woe(e, t, n),
+ queryFn: ({ signal: n }) => Goe(e, t, n),
retryOnMount: !0
});
(0, I.useEffect)(() => () => {
- g.current && X.removeQueries({ queryKey: MM(e, t) });
+ g.current && X.removeQueries({ queryKey: jM(e, t) });
}, [e, t]);
let v = At({
- mutationFn: (n) => qoe(e, t, n),
+ mutationFn: (n) => Joe(e, t, n),
onSuccess: () => {
g.current = !0, i(), r();
}
}), y = At({
- mutationFn: (e) => Goe(e),
+ mutationFn: (e) => Koe(e),
onSuccess: (e) => m(e)
});
function b(e) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", f(""), n && v.mutate({ file: n });
}
- let x = _.data, S = x?.choices ?? [], C = d || (v.error ? K(v.error) : "") || (!p && y.error ? K(y.error) : "") || (_.error ? K(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : Xoe(x);
+ let x = _.data, S = x?.choices ?? [], C = d || (v.error ? K(v.error) : "") || (!p && y.error ? K(y.error) : "") || (_.error ? K(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : Zoe(x);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
@@ -36025,7 +36025,7 @@ function ise({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: p ? Zoe(p) : Joe(n, x)
+ children: p ? Qoe(p) : Yoe(n, x)
}),
T ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
@@ -36044,7 +36044,7 @@ function ise({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
onClick: i
})
]
- }), p ? /* @__PURE__ */ (0, L.jsx)(ose, {
+ }), p ? /* @__PURE__ */ (0, L.jsx)(sse, {
kind: e,
entityId: t,
choice: p,
@@ -36067,7 +36067,7 @@ function ise({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"aria-busy": _.isPending || void 0,
"data-skeleton": _.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: _.isPending ? Array.from({ length: tse }, (e, t) => /* @__PURE__ */ (0, L.jsxs)("span", {
+ children: _.isPending ? Array.from({ length: nse }, (e, t) => /* @__PURE__ */ (0, L.jsxs)("span", {
"aria-hidden": !0,
"data-avatar-skeleton": !0,
className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",
@@ -36080,15 +36080,15 @@ function ise({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: ese(n),
+ title: tse(n),
...Y(w),
onClick: () => {
w || (n.crop ? m(n) : v.mutate({ ref: n.ref }));
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, L.jsx)(ase, {
- src: PM(e, t, n.ref),
+ /* @__PURE__ */ (0, L.jsx)(ose, {
+ src: NM(e, t, n.ref),
choice: n
}),
/* @__PURE__ */ (0, L.jsx)("span", {
@@ -36103,7 +36103,7 @@ function ise({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
children: "在用"
})
}) : null,
- IM(n) ? /* @__PURE__ */ (0, L.jsx)("span", {
+ FM(n) ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "absolute top-1 right-1",
children: /* @__PURE__ */ (0, L.jsxs)(Tw, {
variant: "caption",
@@ -36179,7 +36179,7 @@ function ise({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function ase({ src: e, choice: t }) {
+function ose({ src: e, choice: t }) {
let n = (0, I.useRef)(null), [r, i] = (0, I.useState)(!1);
(0, I.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -36187,7 +36187,7 @@ function ase({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = Koe(t) ? qie(FM(t, a, nse), a) : null, s = r ? !0 : void 0;
+ }, o = qoe(t) ? qie(PM(t, a, rse), a) : null, s = r ? !0 : void 0;
return /* @__PURE__ */ (0, L.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
children: [/* @__PURE__ */ (0, L.jsx)("img", {
@@ -36212,8 +36212,8 @@ function ase({ src: e, choice: t }) {
})]
});
}
-function ose({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, I.useState)(o[0]), [l, u] = (0, I.useState)(null), [d, f] = (0, I.useState)(null), p = PM(e, t, s), m = DO();
+function sse({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, I.useState)(o[0]), [l, u] = (0, I.useState)(null), [d, f] = (0, I.useState)(null), p = NM(e, t, s), m = DO();
function h(e) {
c(e), u(null), f(null);
}
@@ -36228,7 +36228,7 @@ function ose({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), yO(e) && f(s === n.ref ? FM(n, e, 1) : bO(e, 1));
+ u(e), yO(e) && f(s === n.ref ? PM(n, e, 1) : bO(e, 1));
},
onBox: f
}), o.length > 1 ? /* @__PURE__ */ (0, L.jsx)("div", {
@@ -36242,7 +36242,7 @@ function ose({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
"data-crop-base": !0,
onClick: () => h(e),
className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",
- children: $oe(e)
+ children: ese(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -36276,12 +36276,12 @@ function ose({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
-var sse = {
+var cse = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function LM({ name: e }) {
- let t = sse[e];
+function IM({ name: e }) {
+ let t = cse[e];
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
"aria-hidden": "true",
@@ -36291,19 +36291,19 @@ function LM({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function RM(e, t) {
+function LM(e, t) {
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
t.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left))}px`;
let i = n.bottom + 8;
t.style.top = `${i + r.height <= innerHeight - 8 ? i : Math.max(8, n.top - r.height - 8)}px`;
}
-var zM = (e) => !!e?.isConnected && e.matches(":popover-open");
-function BM(e, t, n, r) {
+var RM = (e) => !!e?.isConnected && e.matches(":popover-open");
+function zM(e, t, n, r) {
let i = (0, I.useRef)(r);
i.current = r, (0, I.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && zM(n.current) ? RM(t.current, n.current) : i.current();
+ t.current && RM(n.current) ? LM(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -36317,17 +36317,17 @@ function BM(e, t, n, r) {
n
]);
}
-function VM({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function BM({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, I.useRef)(null), s = (0, I.useRef)(null), [c, l] = (0, I.useState)(!1), u = (0, I.useRef)(!1), d = (0, I.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, zM(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, RM(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), !(!s.current || !o.current || zM(s.current)) && (s.current.showPopover(), RM(o.current, s.current), l(!0));
+ clearTimeout(d.current), !(!s.current || !o.current || RM(s.current)) && (s.current.showPopover(), LM(o.current, s.current), l(!0));
}, m = () => {
clearTimeout(d.current), d.current = window.setTimeout(() => {
!u.current && !o.current?.matches(":hover,:focus-visible") && !s.current?.matches(":hover") && f();
}, 150);
};
- return BM(c, o, s, f), (0, I.useEffect)(() => {
+ return zM(c, o, s, f), (0, I.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -36353,7 +36353,7 @@ function VM({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && zM(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && RM(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -36371,16 +36371,16 @@ function VM({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function cse({ following: e, busy: t, onToggle: n, tip: r }) {
+function lse({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, I.useRef)(null), a = (0, I.useRef)(null), o = (0, I.useRef)(null), [s, c] = (0, I.useState)(!1), l = (0, I.useRef)(!1), u = () => {
- zM(o.current) && o.current.hidePopover(), c(!1);
+ RM(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- l.current || !o.current || !i.current || zM(o.current) || (o.current.showPopover(), RM(i.current, o.current), c(!0));
+ l.current || !o.current || !i.current || RM(o.current) || (o.current.showPopover(), LM(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return BM(s, i, o, () => c(!1)), (0, I.useEffect)(() => {
- i.current && zM(o.current) && RM(i.current, o.current);
+ return zM(s, i, o, () => c(!1)), (0, I.useEffect)(() => {
+ i.current && RM(o.current) && LM(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, L.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -36389,7 +36389,7 @@ function cse({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, L.jsx)(LM, { name: "rss" }),
+ /* @__PURE__ */ (0, L.jsx)(IM, { name: "rss" }),
/* @__PURE__ */ (0, L.jsx)("input", {
ref: a,
type: "checkbox",
@@ -36424,7 +36424,7 @@ function cse({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function lse({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function use({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, I.useState)(!1), o = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
@@ -36435,7 +36435,7 @@ function lse({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, L.jsx)(LM, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, L.jsx)(IM, { name: "chevron-down" })
}), /* @__PURE__ */ (0, L.jsx)(_D, {
placement: "bottom start",
offset: 8,
@@ -36458,7 +36458,7 @@ function lse({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, L.jsx)(LM, { name: "check" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, L.jsx)(IM, { name: "check" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e })]
}, e))
}),
/* @__PURE__ */ (0, L.jsx)(fre, { "data-namepick-rule": "" }),
@@ -36467,18 +36467,18 @@ function lse({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, L.jsx)(LM, { name: "plus" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, L.jsx)(IM, { name: "plus" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var use = (e) => e === "studio" || e === "agency", dse = (e) => e === "performer" || e === "creator", fse = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
-function pse(e) {
+var dse = (e) => e === "studio" || e === "agency", fse = (e) => e === "performer" || e === "creator", pse = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
+function mse(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
-function HM(e) {
+function VM(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0
@@ -36489,13 +36489,13 @@ function HM(e) {
linked: !1
} : null;
}
-function UM(e, t) {
+function HM(e, t) {
let n = u(e, "performer"), r = o(t);
return r && [e.label, n].map(o).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var WM = (e) => ({ site: c(e) });
-function mse(e, n) {
- let r = HM(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var UM = (e) => ({ site: c(e) });
+function hse(e, n) {
+ let r = VM(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -36505,7 +36505,7 @@ function mse(e, n) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${UM(e, r)} · ${t}`
+ title: `${HM(e, r)} · ${t}`
};
}
let i = e.url || "";
@@ -36516,8 +36516,8 @@ function mse(e, n) {
if (n === "performer" && e.link_kind !== "social") return {
type: "icon",
url: i,
- title: UM(e, r),
- mark: WM(e)
+ title: HM(e, r),
+ mark: UM(e)
};
if (e.link_kind === "social") {
let n = t(i);
@@ -36525,7 +36525,7 @@ function mse(e, n) {
type: "icon",
url: i,
title: e.label || "",
- mark: n ? { brand: n } : WM(e)
+ mark: n ? { brand: n } : UM(e)
};
}
return {
@@ -36533,13 +36533,13 @@ function mse(e, n) {
url: i,
title: e.label || "",
text: u(e, n, a),
- mark: WM(e)
+ mark: UM(e)
};
});
return [...i, ...o];
}
-var GM = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function hse(e) {
+var WM = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function gse(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -36596,14 +36596,14 @@ function hse(e) {
tags: e.tags
}), t;
}
-function gse(e) {
+function _se(e) {
let t = e.length > 5 ? 4 : e.length;
return {
shown: e.slice(0, t),
rest: e.length - t
};
}
-function _se(e) {
+function vse(e) {
if (!e) return null;
let t = e.shown || [], n = [e.reading || "", ...t].filter(Boolean), r = (e.total || 0) - t.length;
return n.length || r > 0 ? {
@@ -36614,8 +36614,8 @@ function _se(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function vse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o, helpers: s }) {
- let c = dse(e), l = use(e), u = e === "performer" ? hse(n.profile) : [], d = mse(n, e), f = GM(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, I.useRef)(null), h = (0, I.useRef)(null);
+function yse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o, helpers: s }) {
+ let c = fse(e), l = dse(e), u = e === "performer" ? gse(n.profile) : [], d = hse(n, e), f = WM(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, I.useRef)(null), h = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
s.wireScroller(m.current);
}, [s, d.length]), (0, I.useEffect)(() => {
@@ -36628,7 +36628,7 @@ function vse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, L.jsx)(yse, {
+ children: [/* @__PURE__ */ (0, L.jsx)(bse, {
kind: e,
name: t,
helpers: s,
@@ -36636,7 +36636,7 @@ function vse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,
company: l
}), c && n.id ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, L.jsx)(rse, {
+ children: /* @__PURE__ */ (0, L.jsx)(ise, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -36649,14 +36649,14 @@ function vse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
"data-entity-title": "",
- children: [/* @__PURE__ */ (0, L.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, L.jsx)(lse, {
+ children: [/* @__PURE__ */ (0, L.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, L.jsx)(use, {
current: n.canonical_name,
- choices: pse(n),
+ choices: mse(n),
onChoose: o.chooseName,
onAddAlias: o.addAlias
})]
}),
- /* @__PURE__ */ (0, L.jsx)(bse, {
+ /* @__PURE__ */ (0, L.jsx)(xse, {
kind: e,
entity: n,
actions: o
@@ -36664,9 +36664,9 @@ function vse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,
d.length ? /* @__PURE__ */ (0, L.jsx)("div", {
ref: m,
"data-entity-links": "",
- children: d.map((e, t) => /* @__PURE__ */ (0, L.jsx)(wse, { link: e }, t))
+ children: d.map((e, t) => /* @__PURE__ */ (0, L.jsx)(Tse, { link: e }, t))
}) : null,
- f.length || n.feed ? /* @__PURE__ */ (0, L.jsx)(Tse, {
+ f.length || n.feed ? /* @__PURE__ */ (0, L.jsx)(Ese, {
entity: n,
actions: o,
helpers: s
@@ -36675,11 +36675,11 @@ function vse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,
}),
u.length ? /* @__PURE__ */ (0, L.jsx)("dl", {
"data-entity-facts": "",
- children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(Sse, {
+ children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(Cse, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, L.jsx)(Cse, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, L.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, L.jsx)(wse, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, L.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -36706,14 +36706,14 @@ function vse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,
}, e.k))
})
}) : null]
- }), a ? (0, yh.createPortal)(/* @__PURE__ */ (0, L.jsx)(Ese, {
+ }), a ? (0, yh.createPortal)(/* @__PURE__ */ (0, L.jsx)(Dse, {
feedNew: i,
host: a,
actions: o,
helpers: s
}), a) : null] });
}
-function yse({ kind: e, name: t, helpers: n, people: i, company: a }) {
+function bse({ kind: e, name: t, helpers: n, people: i, company: a }) {
let [o] = (0, I.useState)(() => `${n.portraitImg()}<span>${r(t.slice(0, 1))}</span>`);
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-entity-portrait": i ? "round" : "square",
@@ -36722,8 +36722,8 @@ function yse({ kind: e, name: t, helpers: n, people: i, company: a }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function bse({ kind: e, entity: t, actions: r }) {
- let i = HM(t), a = (e, t) => (n) => {
+function xse({ kind: e, entity: t, actions: r }) {
+ let i = VM(t), a = (e, t) => (n) => {
n.preventDefault(), r.openEntity(e, t);
}, o = i ? i.linked ? /* @__PURE__ */ (0, L.jsx)("a", {
href: n("agency", i.name),
@@ -36732,36 +36732,36 @@ function bse({ kind: e, entity: t, actions: r }) {
children: i.name
}) : i.name : null, s = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer") {
- let e = _se(t.name_groups);
+ let e = vse(t.name_groups);
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-entity-alias": "meta",
children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, L.jsx)(LM, { name: "film" }), /* @__PURE__ */ (0, L.jsx)("span", { children: s })]
+ children: [/* @__PURE__ */ (0, L.jsx)(IM, { name: "film" }), /* @__PURE__ */ (0, L.jsx)("span", { children: s })]
}),
o ? /* @__PURE__ */ (0, L.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, L.jsx)(LM, { name: "briefcase" }), /* @__PURE__ */ (0, L.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, L.jsx)(IM, { name: "briefcase" }), /* @__PURE__ */ (0, L.jsx)("span", { children: o })]
}) : null,
e ? /* @__PURE__ */ (0, L.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, L.jsx)(LM, { name: "id-card" }),
+ /* @__PURE__ */ (0, L.jsx)(IM, { name: "id-card" }),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, L.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, L.jsx)(VM, {
+ e.rest > 0 ? /* @__PURE__ */ (0, L.jsx)(BM, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
label: `另外 ${e.rest} 个别名`,
heading: `${e.total} 个别名`,
- children: /* @__PURE__ */ (0, L.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, L.jsx)(xse, {
+ children: /* @__PURE__ */ (0, L.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, L.jsx)(Sse, {
label: e.label,
names: e.names
}, t)) })
@@ -36796,25 +36796,25 @@ function bse({ kind: e, entity: t, actions: r }) {
]
});
}
-function xse({ label: e, names: t }) {
+function Sse({ label: e, names: t }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [e ? /* @__PURE__ */ (0, L.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, L.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, L.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, L.jsx)("small", { children: e.reading }) : null] }, t))
})] });
}
-function Sse({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("dt", { children: [/* @__PURE__ */ (0, L.jsx)(LM, { name: e }), t] }), /* @__PURE__ */ (0, L.jsx)("dd", {
+function Cse({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("dt", { children: [/* @__PURE__ */ (0, L.jsx)(IM, { name: e }), t] }), /* @__PURE__ */ (0, L.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function Cse({ tags: e }) {
- let { shown: t, rest: n } = gse(e);
+function wse({ tags: e }) {
+ let { shown: t, rest: n } = _se(e);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, L.jsx)("span", {
"data-fact-tag": "",
children: e
- }, e)), n ? /* @__PURE__ */ (0, L.jsx)(VM, {
+ }, e)), n ? /* @__PURE__ */ (0, L.jsx)(BM, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -36829,10 +36829,10 @@ function Cse({ tags: e }) {
})
}) : null] });
}
-function KM({ mark: e }) {
+function GM({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, L.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, L.jsx)(LM, { name: e.brand })
+ children: /* @__PURE__ */ (0, L.jsx)(IM, { name: e.brand })
});
let t = s("globe") + ("site" in e ? `<img src="${r(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, L.jsx)("span", {
@@ -36840,7 +36840,7 @@ function KM({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function wse({ link: e }) {
+function Tse({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, L.jsx)("a", {
"data-link": "icon",
@@ -36849,19 +36849,19 @@ function wse({ link: e }) {
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, L.jsx)(KM, { mark: e.mark })
+ children: /* @__PURE__ */ (0, L.jsx)(GM, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, L.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, L.jsx)(KM, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, L.jsx)(GM, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, L.jsxs)("span", {
"data-link": "private",
title: "私人馆藏来源记录,不直接打开下载页",
- children: [/* @__PURE__ */ (0, L.jsx)(KM, { mark: { globe: !0 } }), /* @__PURE__ */ (0, L.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(GM, { mark: { globe: !0 } }), /* @__PURE__ */ (0, L.jsxs)("span", {
"data-link-label": "",
children: ["来源 · ", e.label]
})]
@@ -36872,14 +36872,14 @@ function wse({ link: e }) {
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, L.jsx)(KM, { mark: e.mark }), /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(GM, { mark: e.mark }), /* @__PURE__ */ (0, L.jsx)("span", {
"data-link-label": "",
children: e.text
})]
});
}
}
-function Tse({ entity: e, actions: t, helpers: n }) {
+function Ese({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, I.useState)(!!e.feed?.following), [a, o] = (0, I.useState)(!1), s = (0, I.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -36897,31 +36897,31 @@ function Tse({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-entry-marks": "",
- children: [GM(e).map((e, t) => /* @__PURE__ */ (0, L.jsxs)("a", {
+ children: [WM(e).map((e, t) => /* @__PURE__ */ (0, L.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, L.jsx)(LM, { name: e.mark }) : /* @__PURE__ */ (0, L.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, L.jsx)(IM, { name: e.mark }) : /* @__PURE__ */ (0, L.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, L.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, L.jsx)(cse, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, L.jsx)(lse, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: fse(r)
+ tip: pse(r)
}) : null]
});
}
-function Ese({ feedNew: e, host: t, actions: n, helpers: r }) {
+function Dse({ feedNew: e, host: t, actions: n, helpers: r }) {
let i = (0, I.useRef)(null), a = e?.items.length ? e.html : "";
(0, I.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !a;
@@ -36945,7 +36945,7 @@ function Ese({ feedNew: e, host: t, actions: n, helpers: r }) {
}
//#endregion
//#region src/follow-sort.ts
-var qM = [
+var KM = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -36953,7 +36953,7 @@ var qM = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], Dse = "checked", JM = {
+], Ose = "checked", qM = {
checked: "desc",
added: "desc",
name: "asc",
@@ -36961,32 +36961,32 @@ var qM = [
source: "asc",
provider: "asc",
status: "asc"
-}, Ose = (e) => qM.some(([t]) => t === e);
-function YM(e, t) {
- let n = Ose(e) ? e : Dse;
+}, kse = (e) => KM.some(([t]) => t === e);
+function JM(e, t) {
+ let n = kse(e) ? e : Ose;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : JM[n]
+ dir: t === "asc" || t === "desc" ? t : qM[n]
};
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var XM = "/api/follow", kse = "/api/follow/credentials", ZM = "/api/follow/check", QM = "/api/follow/source", $M = "/api/follow/resolve", Ase = "/api/follow/suggest", eN = "/api/follow/author-alias", jse = "/api/follow/credential", Mse = "/api/follow/status", Nse = "/api/feeds", tN = "/api/feeds/source", Pse = "/api/feeds/check", Fse = "/api/feeds/lookup", nN = ["follow-manage"], rN = ["follow-manage", "credentials"], Ise = ["follow-manage", "check"], Lse = ["follow-manage", "resolve"], iN = ["follow-manage", "feeds"], Rse = (e) => [
+var YM = "/api/follow", Ase = "/api/follow/credentials", XM = "/api/follow/check", ZM = "/api/follow/source", QM = "/api/follow/resolve", jse = "/api/follow/suggest", $M = "/api/follow/author-alias", Mse = "/api/follow/credential", Nse = "/api/follow/status", Pse = "/api/feeds", eN = "/api/feeds/source", Fse = "/api/feeds/check", Ise = "/api/feeds/lookup", tN = ["follow-manage"], nN = ["follow-manage", "credentials"], Lse = ["follow-manage", "check"], Rse = ["follow-manage", "resolve"], rN = ["follow-manage", "feeds"], zse = (e) => [
"follow-manage",
"suggest",
e
-], aN = [["default", "默认视图"], ["table", "表格视图"]], oN = [
+], iN = [["default", "默认视图"], ["table", "表格视图"]], aN = [
10,
20,
50,
100
-], zse = Object.fromEntries(qM), sN = {
+], Bse = Object.fromEntries(KM), oN = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, Bse = (e) => aN.some(([t]) => t === e), Vse = (e) => oN.includes(Number(e)) ? Number(e) : 20, Hse = {
+}, Vse = (e) => iN.some(([t]) => t === e), Hse = (e) => aN.includes(Number(e)) ? Number(e) : 20, Use = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -36994,25 +36994,25 @@ var XM = "/api/follow", kse = "/api/follow/credentials", ZM = "/api/follow/check
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, Use = (e, t) => `按${zse[e]}${Hse[e][t === "asc" ? 0 : 1]}排序`;
-function cN(e) {
+}, Wse = (e, t) => `按${Bse[e]}${Use[e][t === "asc" ? 0 : 1]}排序`;
+function sN(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function Wse(e) {
+function Gse(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var lN = (e) => e.last_status === "error" || e.last_status === "unauthorized", uN = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), dN = {
- source: uN,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || uN(e, t),
- status: (e, t) => cN(e) - cN(t) || uN(e, t)
-}, fN = (e) => Date.parse(e || "") || 0, pN = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function mN(e, t = []) {
+var cN = (e) => e.last_status === "error" || e.last_status === "unauthorized", lN = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), uN = {
+ source: lN,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || lN(e, t),
+ status: (e, t) => sN(e) - sN(t) || lN(e, t)
+}, dN = (e) => Date.parse(e || "") || 0, fN = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function pN(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || pN(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || fN(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 pN(i.canonical_name);
+ if (i) return fN(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);
@@ -37020,18 +37020,18 @@ function mN(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 Gse(e) {
+function Kse(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function Kse(e) {
+function qse(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 hN(e) {
+function mN(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -37039,31 +37039,31 @@ function hN(e) {
}
return t.map((e) => n.get(e));
}
-function qse(e, t, n, r = []) {
- let i = hN(e), a = n === JM[t] ? 1 : -1, o = (e) => mN(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = dN[t];
+function Jse(e, t, n, r = []) {
+ let i = mN(e), a = n === qM[t] ? 1 : -1, o = (e) => pN(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = uN[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) => fN(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => fN(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => dN(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => dN(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 Jse(e, t, n, r = []) {
+function Yse(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = mN(e, r);
+ let t = pN(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = dN[t];
+ }), a = uN[t];
if (a) {
- let e = n === JM[t] ? 1 : -1;
+ let e = n === qM[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function Yse(e, t, n) {
+function Xse(e, t, n) {
let r = _k(e, t), i = vk(n, r), a = (i - 1) * t;
return {
page: i,
@@ -37073,91 +37073,91 @@ function Yse(e, t, n) {
end: Math.min(a + t, e)
};
}
-function Xse(e, t) {
+function Zse(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function gN(e, t) {
+function hN(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 _N(e, t, n) {
+function gN(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var vN = (e) => Aw(`${XM}?summary=1`, e), yN = (e) => Aw(kse, e), Zse = (e) => Aw(ZM, e), Qse = (e) => Aw($M, e), $se = (e, t) => Aw(`${Ase}?q=${encodeURIComponent(e)}`, t), bN = (e) => q(ZM, {
+var _N = (e) => Aw(`${YM}?summary=1`, e), vN = (e) => Aw(Ase, e), Qse = (e) => Aw(XM, e), $se = (e) => Aw(QM, e), ece = (e, t) => Aw(`${jse}?q=${encodeURIComponent(e)}`, t), yN = (e) => q(XM, {
...e?.length ? { sources: e } : {},
background: !0
-}), ece = (e) => q($M, {
+}), tce = (e) => q(QM, {
lines: e,
background: !0
-}), xN = (e, t) => q(QM, {
+}), bN = (e, t) => q(ZM, {
action: "enabled",
id: e,
enabled: t
-}), SN = (e) => q(QM, {
+}), xN = (e) => q(ZM, {
action: "remove",
id: e
-}), tce = (e) => q(QM, {
+}), nce = (e) => q(ZM, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), CN = (e, t) => q(eN, {
+}), SN = (e, t) => q($M, {
action: "add",
canonical: e,
alias: t
-}), nce = (e) => q(eN, {
+}), rce = (e) => q($M, {
action: "remove",
alias: e
-}), rce = (e, t) => q(jse, {
+}), ice = (e, t) => q(Mse, {
provider: e,
values: t
-}), ice = (e, t) => q(Mse, {
+}), ace = (e, t) => q(Nse, {
item: e,
to: t
-}), ace = () => Aw(`${XM}?status=new&limit=1000`);
-async function wN(e) {
- let t = await Aw(Nse, e);
+}), oce = () => Aw(`${YM}?status=new&limit=1000`);
+async function CN(e) {
+ let t = await Aw(Pse, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var TN = (e, t, n) => q(tN, {
+var wN = (e, t, n) => q(eN, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), EN = (e, t) => q(tN, {
+}, "POST", n), TN = (e, t) => q(eN, {
action: "remove",
id: e
-}, "POST", t), DN = (e, t) => q(Pse, t?.length ? { sources: t } : { all: !0 }, "POST", e), oce = (e, t) => Aw(`${Fse}?q=${encodeURIComponent(e)}`, t), sce = (e, t, n) => q(tN, {
+}, "POST", t), EN = (e, t) => q(Fse, t?.length ? { sources: t } : { all: !0 }, "POST", e), sce = (e, t) => Aw(`${Ise}?q=${encodeURIComponent(e)}`, t), cce = (e, t, n) => q(eN, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
-async function cce(e, t = "") {
+async function lce(e, t = "") {
await Promise.all([
X.fetchQuery({
- queryKey: nN,
- queryFn: () => vN(e)
+ queryKey: tN,
+ queryFn: () => _N(e)
}),
X.fetchQuery({
- queryKey: rN,
- queryFn: () => yN(e)
+ queryKey: nN,
+ queryFn: () => vN(e)
}),
t === "feeds" ? X.fetchQuery({
- queryKey: iN,
- queryFn: () => wN(e)
+ queryKey: rN,
+ queryFn: () => CN(e)
}) : null
]);
}
-function ON(e, t) {
- X.setQueryData(nN, (n) => n && {
+function DN(e, t) {
+ X.setQueryData(tN, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -37165,24 +37165,24 @@ function ON(e, t) {
} : n)
});
}
-function kN(e) {
+function ON(e) {
let t = new Set(e);
- X.setQueryData(nN, (e) => e && {
+ X.setQueryData(tN, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var AN = () => X.invalidateQueries({
- queryKey: nN,
+var kN = () => X.invalidateQueries({
+ queryKey: tN,
exact: !0
});
-function lce(e) {
+function uce(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 uce = (e) => (e?.results || []).filter((e) => !e.ok), dce = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", jN = (e) => e.last_checked_at ? bk(e.last_checked_at) : "未检查", fce = /* @__PURE__ */ new Set([
+var dce = (e) => (e?.results || []).filter((e) => !e.ok), fce = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", AN = (e) => e.last_checked_at ? bk(e.last_checked_at) : "未检查", pce = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -37195,7 +37195,7 @@ var uce = (e) => (e?.results || []).filter((e) => !e.ok), dce = (e) => (e?.resul
"gofile",
"f95zone",
"simpcity"
-]), pce = (e) => fce.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", MN = {
+]), jN = (e) => pce.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", MN = {
required: "需要",
optional: "可选",
none: "不需要",
@@ -37204,7 +37204,7 @@ var uce = (e) => (e?.results || []).filter((e) => !e.ok), dce = (e) => (e?.resul
//#endregion
//#region src/react/follow-manage/source-view.tsx
function PN({ provider: e, label: t }) {
- let n = pce(e), [r, i] = (0, I.useState)(!1);
+ let n = jN(e), [r, i] = (0, I.useState)(!1);
return !n || r ? t ? /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: t }) : null : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("img", {
src: n,
alt: "",
@@ -37216,7 +37216,7 @@ function PN({ provider: e, label: t }) {
}), t ? /* @__PURE__ */ (0, L.jsx)(G_, { children: t }) : null] });
}
function FN({ group: e, name: t }) {
- let { src: n, fallback: r } = Kse(e), [i, a] = (0, I.useState)(0), o = [n, r].filter(Boolean)[i];
+ let { src: n, fallback: r } = qse(e), [i, a] = (0, I.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, L.jsx)("img", {
src: o,
alt: "",
@@ -37229,15 +37229,15 @@ function FN({ group: e, name: t }) {
}) : /* @__PURE__ */ (0, L.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: Gse(t)
+ children: Kse(t)
});
}
function IN({ source: e }) {
- let t = lN(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+ let t = cN(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
return /* @__PURE__ */ (0, L.jsx)(Tw, {
variant: "caption",
color: t,
- children: Wse(e)
+ children: Gse(e)
});
}
function LN({ source: e }) {
@@ -37429,8 +37429,8 @@ function qN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
return () => clearTimeout(t);
}, [a]);
let D = kt({
- queryKey: Rse(l),
- queryFn: ({ signal: e }) => $se(l, e),
+ queryKey: zse(l),
+ queryFn: ({ signal: e }) => ece(l, e),
enabled: l.length > 0 && d
}), O = (0, I.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({
value: t.value,
@@ -37438,9 +37438,9 @@ function qN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
n: t.n || 0,
group: e.label
}))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = Dj({
- queryKey: Lse,
- queryFn: ({ signal: e }) => Qse(e),
- start: (e) => ece([e]),
+ queryKey: Rse,
+ queryFn: ({ signal: e }) => $se(e),
+ start: (e) => tce([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
onError: (e) => w(K(e)),
onFinish: (e) => {
@@ -37481,7 +37481,7 @@ function qN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
E(0);
for (let r of e) {
try {
- let e = await tce(r.candidate);
+ let e = await nce(r.candidate);
n.push(e.source);
} catch (e) {
t.push(`${r.candidate.label}:${K(e)}`);
@@ -37489,7 +37489,7 @@ function qN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
E((e) => e + 1);
}
if (n.length) try {
- await bN(n);
+ await yN(n);
} catch (e) {
t.push(K(e));
}
@@ -37499,7 +37499,7 @@ function qN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
};
},
onSuccess: (e) => {
- if (AN(), e.failures.length) {
+ if (kN(), e.failures.length) {
w(e.failures.join(";"));
return;
}
@@ -37656,9 +37656,9 @@ function QN({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
let t = 0;
for (let n of e) {
try {
- await CN(n.canonical, n.alias);
+ await SN(n.canonical, n.alias);
} catch (n) {
- throw t && AN(), Error(`${K(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && kN(), Error(`${K(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -37668,19 +37668,19 @@ function QN({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- c(""), o(/* @__PURE__ */ new Set()), AN(), i(`已合并 ${e.done} 组创作者别名`);
+ c(""), o(/* @__PURE__ */ new Set()), kN(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => c(K(e))
}), m = At({
- mutationFn: (e) => CN(e.canonical, e.alias),
+ mutationFn: (e) => SN(e.canonical, e.alias),
onSuccess: () => {
- c(""), u(""), f(""), AN(), i("已保存创作者别名");
+ c(""), u(""), f(""), kN(), i("已保存创作者别名");
},
onError: (e) => c(K(e))
}), g = At({
- mutationFn: (e) => nce(e),
+ mutationFn: (e) => rce(e),
onSuccess: () => {
- c(""), AN(), i("已移除创作者别名");
+ c(""), kN(), i("已移除创作者别名");
},
onError: (e) => c(K(e))
}), _ = (e, t) => {
@@ -37908,14 +37908,14 @@ function iP({ row: e }) {
}
function aP({ row: e, readOnly: t, toast: n }) {
let [r, i] = (0, I.useState)({}), [a, o] = (0, I.useState)(""), s = NN(e), c = At({
- mutationFn: (t) => rce(e.provider, t),
+ mutationFn: (t) => ice(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
return;
}
o(""), i({}), X.invalidateQueries({
- queryKey: rN,
+ queryKey: nN,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -39563,7 +39563,7 @@ function LF({ card: e, picked: t, onPick: n }) {
function RF({ readOnly: e, toast: t, onAdded: n }) {
let [r, i] = (0, I.useState)(""), [a, o] = (0, I.useState)(null), [s, c] = (0, I.useState)(/* @__PURE__ */ new Set()), l = Kw(), u = () => {
let t = r.trim();
- !t || e || l.run("lookup", (e) => oce(t, e), (e) => {
+ !t || e || l.run("lookup", (e) => sce(t, e), (e) => {
o(e), c(new Set(e.suggested));
});
}, d = (e) => {
@@ -39571,7 +39571,7 @@ function RF({ readOnly: e, toast: t, onAdded: n }) {
}, f = () => {
o(null), c(/* @__PURE__ */ new Set()), l.setError("");
}, p = () => {
- a && l.run("follow", (e) => sce(a.q, [...s], e), (e) => {
+ a && l.run("follow", (e) => cce(a.q, [...s], e), (e) => {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
}, m = a ? IF(a, s) : null;
@@ -39661,7 +39661,7 @@ var zF = {
fresh: "上次新增",
actions: "操作"
}, BF = /* @__PURE__ */ new Set(["select", "actions"]), VF = () => X.invalidateQueries({
- queryKey: iN,
+ queryKey: rN,
exact: !0
}), HF = (e) => e.name || e.url, UF = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
function WF(e) {
@@ -39698,8 +39698,13 @@ function KF({ source: e, avatarInner: t }) {
dangerouslySetInnerHTML: { __html: t(HF(e), n, null, "performer") }
});
}
-var qF = (e) => e.page_name && e.page_name !== e.name ? e.page_name : "";
-function JF(e, t) {
+var qF = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
+function JF(e) {
+ let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
+ for (let { entity_id: r } of e) r !== null && (t.has(r) ? n.add(r) : t.add(r));
+ return n;
+}
+function YF(e, t) {
let n = e.length === 1 ? e[0] : null;
return h({
title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
@@ -39709,10 +39714,10 @@ function JF(e, t) {
onConfirm: t
});
}
-function YF({ readOnly: e, toast: t, avatarInner: n }) {
+function XF({ readOnly: e, toast: t, avatarInner: n }) {
let r = kt({
- queryKey: iN,
- queryFn: ({ signal: e }) => wN(e)
+ queryKey: rN,
+ queryFn: ({ signal: e }) => CN(e)
}), i = Kw(), a = r.data, o = (0, I.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, I.useState)(/* @__PURE__ */ new Set());
(0, I.useEffect)(() => {
c((e) => {
@@ -39723,7 +39728,7 @@ function YF({ readOnly: e, toast: t, avatarInner: n }) {
let u = At({
mutationFn: async (e) => {
let t = await l(e.ids, 4, async (t) => {
- e.action === "remove" ? await EN(t) : await TN(t, e.action === "enabled");
+ e.action === "remove" ? await TN(t) : await wN(t, e.action === "enabled");
});
return {
...e,
@@ -39738,25 +39743,27 @@ function YF({ readOnly: e, toast: t, avatarInner: n }) {
}
},
onError: (e) => i.setError(K(e))
- }), d = (0, I.useRef)({
+ }), d = (0, I.useMemo)(() => JF(o), [o]), f = (0, I.useRef)({
readOnly: e,
avatarInner: n,
+ shared: d,
busy: null,
toggle: () => {},
fetch: () => {},
remove: () => {}
});
- d.current = {
+ f.current = {
readOnly: e,
avatarInner: n,
+ shared: d,
busy: i.busy,
- toggle: (e, t) => void i.run(`enabled-${e.id}`, (n) => TN(e.id, t, n), () => void VF()),
- fetch: (e) => void i.run(`check-${e.id}`, (t) => DN(t, [e.id]), () => void VF()),
- remove: (e) => void JF([e], async () => {
- await EN(e.id), t(`已移除订阅源「${HF(e)}」`), VF();
+ toggle: (e, t) => void i.run(`enabled-${e.id}`, (n) => wN(e.id, t, n), () => void VF()),
+ fetch: (e) => void i.run(`check-${e.id}`, (t) => EN(t, [e.id]), () => void VF()),
+ remove: (e) => void YF([e], async () => {
+ await TN(e.id), t(`已移除订阅源「${HF(e)}」`), VF();
})
};
- let f = (0, I.useMemo)(() => {
+ let p = (0, I.useMemo)(() => {
let e = cP(), t = (e) => () => zF[e] || e;
return [
e.display({
@@ -39773,13 +39780,13 @@ function YF({ readOnly: e, toast: t, avatarInner: n }) {
id: "name",
header: t("name"),
cell: (e) => {
- let t = qF(e.row.original);
+ let t = qF(e.row.original, f.current.shared);
return /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
children: [
/* @__PURE__ */ (0, L.jsx)(KF, {
source: e.row.original,
- avatarInner: d.current.avatarInner
+ avatarInner: f.current.avatarInner
}),
e.getValue(),
t ? /* @__PURE__ */ (0, L.jsx)("span", {
@@ -39849,8 +39856,8 @@ function YF({ readOnly: e, toast: t, avatarInner: n }) {
/* @__PURE__ */ (0, L.jsx)(gO, {
"aria-label": `启用 ${HF(e.row.original)}`,
isSelected: e.row.original.enabled,
- isDisabled: d.current.readOnly,
- onChange: (t) => d.current.toggle(e.row.original, t)
+ isDisabled: f.current.readOnly,
+ onChange: (t) => f.current.toggle(e.row.original, t)
}),
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
@@ -39858,9 +39865,9 @@ function YF({ readOnly: e, toast: t, avatarInner: n }) {
iconOnly: !0,
leadingIcon: MS,
"aria-label": `拉取 ${HF(e.row.original)}`,
- disabled: d.current.readOnly,
- ...Y(d.current.busy === `check-${e.row.original.id}`),
- onClick: () => d.current.fetch(e.row.original)
+ disabled: f.current.readOnly,
+ ...Y(f.current.busy === `check-${e.row.original.id}`),
+ onClick: () => f.current.fetch(e.row.original)
}),
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
@@ -39868,21 +39875,21 @@ function YF({ readOnly: e, toast: t, avatarInner: n }) {
iconOnly: !0,
leadingIcon: bS,
"aria-label": `移除 ${HF(e.row.original)}`,
- disabled: d.current.readOnly,
- onClick: () => d.current.remove(e.row.original)
+ disabled: f.current.readOnly,
+ onClick: () => f.current.remove(e.row.original)
})
]
})
})
];
- }, []), p = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), m = MF({
+ }, []), m = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), h = MF({
data: o,
- columns: f,
+ columns: p,
getRowId: (e) => String(e.id),
- state: { rowSelection: p },
+ state: { rowSelection: m },
enableRowSelection: !0,
onRowSelectionChange: (e) => {
- let t = typeof e == "function" ? e(p) : e;
+ let t = typeof e == "function" ? e(m) : e;
c(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
},
getCoreRowModel: TF()
@@ -39892,10 +39899,10 @@ function YF({ readOnly: e, toast: t, avatarInner: n }) {
title: "打不开订阅源",
children: K(r.error)
}) : /* @__PURE__ */ (0, L.jsx)($A, { children: "正在读订阅源。" });
- let h = () => void i.run("check", (e) => DN(e), () => void VF()), g = (e) => c((t) => {
+ let g = () => void i.run("check", (e) => EN(e), () => void VF()), _ = (e) => c((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
- }), _ = o.filter((e) => s.has(e.id)), v = o.filter((e) => e.last_error);
+ }), v = o.filter((e) => s.has(e.id)), y = o.filter((e) => e.last_error);
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
@@ -39910,23 +39917,23 @@ function YF({ readOnly: e, toast: t, avatarInner: n }) {
role: "status",
children: a.unread ? `有 ${a.unread} 条新作还没看` : "新作都看过了"
}), /* @__PURE__ */ (0, L.jsx)(G, {
- onClick: h,
+ onClick: g,
disabled: e,
...Y(i.busy === "check"),
children: "立即拉取"
})]
}),
- v.length || i.error ? /* @__PURE__ */ (0, L.jsxs)("div", {
+ y.length || i.error ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [v.map((e) => /* @__PURE__ */ (0, L.jsx)(J, {
+ children: [y.map((e) => /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: `${HF(e)} 拉取失败`,
children: e.last_error
}, e.id)), i.error ? /* @__PURE__ */ (0, L.jsx)(ej, { children: i.error }) : null]
}) : null,
- _.length ? /* @__PURE__ */ (0, L.jsxs)(PF, {
+ v.length ? /* @__PURE__ */ (0, L.jsxs)(PF, {
label: "订阅源批量操作",
- count: `已选 ${_.length} 条订阅源`,
+ count: `已选 ${v.length} 条订阅源`,
children: [
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
@@ -39934,7 +39941,7 @@ function YF({ readOnly: e, toast: t, avatarInner: n }) {
disabled: e,
...Y(u.isPending),
onClick: () => u.mutate({
- ids: _.map((e) => e.id),
+ ids: v.map((e) => e.id),
action: "enabled"
}),
children: "启用"
@@ -39945,7 +39952,7 @@ function YF({ readOnly: e, toast: t, avatarInner: n }) {
disabled: e,
...Y(u.isPending),
onClick: () => u.mutate({
- ids: _.map((e) => e.id),
+ ids: v.map((e) => e.id),
action: "paused"
}),
children: "暂停"
@@ -39955,8 +39962,8 @@ function YF({ readOnly: e, toast: t, avatarInner: n }) {
size: "small",
disabled: e,
...Y(u.isPending),
- onClick: () => void JF(_, () => u.mutateAsync({
- ids: _.map((e) => e.id),
+ onClick: () => void YF(v, () => u.mutateAsync({
+ ids: v.map((e) => e.id),
action: "remove"
})),
children: "移除"
@@ -39970,18 +39977,18 @@ function YF({ readOnly: e, toast: t, avatarInner: n }) {
]
}) : null,
o.length ? /* @__PURE__ */ (0, L.jsx)(Lj, {
- onRowClick: (e) => g(Number(e)),
+ onRowClick: (e) => _(Number(e)),
children: /* @__PURE__ */ (0, L.jsxs)(Pj, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsx)(QD, { children: m.getHeaderGroups()[0].headers.map((e) => {
+ children: [/* @__PURE__ */ (0, L.jsx)(QD, { children: h.getHeaderGroups()[0].headers.map((e) => {
let t = OF(e.column.columnDef.header, e.getContext());
return /* @__PURE__ */ (0, L.jsx)($D, {
id: e.id,
isRowHeader: e.column.id === "name",
children: BF.has(e.column.id) ? /* @__PURE__ */ (0, L.jsx)(G_, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, L.jsx)(tO, { children: m.getRowModel().rows.map((e) => /* @__PURE__ */ (0, L.jsx)(iO, {
+ }) }), /* @__PURE__ */ (0, L.jsx)(tO, { children: h.getRowModel().rows.map((e) => /* @__PURE__ */ (0, L.jsx)(iO, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)(oO, { children: OF(e.column.columnDef.cell, e.getContext()) }, e.id))
@@ -39998,19 +40005,19 @@ function YF({ readOnly: e, toast: t, avatarInner: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var XF = Object.fromEntries(Object.entries(sN).map(([e, t]) => [t, e])), ZF = 740;
-function QF() {
+var ZF = Object.fromEntries(Object.entries(oN).map(([e, t]) => [t, e])), QF = 740;
+function $F() {
let [e, t] = (0, I.useState)(!1), n = (0, I.useRef)(null), r = (0, I.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < ZF));
- r.observe(e), n.current = r, t(e.clientWidth < ZF);
+ let r = new ResizeObserver(() => t(e.clientWidth < QF));
+ r.observe(e), n.current = r, t(e.clientWidth < QF);
}, []);
return (0, I.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var $F = {
+var eI = {
select: "选择",
author: "创作者",
source: "来源",
@@ -40019,7 +40026,7 @@ var $F = {
checked: "上次检查",
actions: "操作"
};
-function eI({ page: e, pages: t, onPage: n }) {
+function tI({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, L.jsxs)("nav", {
"aria-label": "关注列表分页",
className: "flex flex-wrap items-center justify-center gap-2",
@@ -40056,7 +40063,7 @@ function eI({ page: e, pages: t, onPage: n }) {
]
});
}
-function tI({ source: e, selected: t, onToggle: n, handlers: r }) {
+function nI({ source: e, selected: t, onToggle: n, handlers: r }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
@@ -40087,7 +40094,7 @@ function tI({ source: e, selected: t, onToggle: n, handlers: r }) {
/* @__PURE__ */ (0, L.jsx)(IN, { source: e }),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: jN(e)
+ children: AN(e)
}),
/* @__PURE__ */ (0, L.jsx)(gO, {
"aria-label": `启用 ${e.label}`,
@@ -40119,8 +40126,8 @@ function tI({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function nI({ 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(lN).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = gN(r, c);
+function rI({ 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(cN).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = hN(r, c);
return /* @__PURE__ */ (0, L.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
className: Rw({
@@ -40184,7 +40191,7 @@ function nI({ 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, L.jsx)(tI, {
+ children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(nI, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -40193,37 +40200,37 @@ function nI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
})]
});
}
-function rI(e) {
- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: u, onPage: d, onLayout: f, onPageSize: p, onSelected: m, toast: g, openFollow: _ } = e, v = t.sources, y = (0, I.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, I.useState)(/* @__PURE__ */ new Set()), [C, w] = QF(), [T, E] = (0, I.useState)(""), D = (0, I.useMemo)(() => qse(v, n, r, y), [
+function iI(e) {
+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: u, onPage: d, onLayout: f, onPageSize: p, onSelected: m, toast: g, openFollow: _ } = e, v = t.sources, y = (0, I.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, I.useState)(/* @__PURE__ */ new Set()), [C, w] = $F(), [T, E] = (0, I.useState)(""), D = (0, I.useMemo)(() => Jse(v, n, r, y), [
v,
n,
r,
y
- ]), O = (0, I.useMemo)(() => Jse(D, n, r, y), [
+ ]), O = (0, I.useMemo)(() => Yse(D, n, r, y), [
D,
n,
r,
y
]), { job: k, running: A, outcome: j, start: M } = Dj({
- queryKey: Ise,
- queryFn: ({ signal: e }) => Zse(e),
- start: (e) => bN(e),
+ queryKey: Lse,
+ queryFn: ({ signal: e }) => Qse(e),
+ start: (e) => yN(e),
onError: (e) => E(K(e)),
onFinish: (e) => {
- AN(), g(e.status === "failed" ? e.error || "检查失败" : lce(e));
+ kN(), g(e.status === "failed" ? e.error || "检查失败" : uce(e));
}
}), N = (e) => {
A || M.isPending || (E(""), M.mutate(e));
- }, ee = (e, t) => m(_N(s, [e], t)), te = (e, t) => m(_N(s, e, t)), P = At({
- mutationFn: (e) => SN(e),
+ }, ee = (e, t) => m(gN(s, [e], t)), te = (e, t) => m(gN(s, e, t)), P = At({
+ mutationFn: (e) => xN(e),
onSuccess: (e, t) => {
- kN([t]), m(_N(s, [t], !1)), g("已取消关注来源");
+ ON([t]), m(gN(s, [t], !1)), g("已取消关注来源");
},
onError: (e) => E(K(e))
}), F = At({
- mutationFn: (e) => xN(e.id, e.enabled),
+ mutationFn: (e) => bN(e.id, e.enabled),
onSuccess: (e, t) => {
- ON(t.id, { enabled: t.enabled }), E("");
+ DN(t.id, { enabled: t.enabled }), E("");
},
onError: (e) => E(K(e))
}), ne = (e) => void h({
@@ -40235,7 +40242,7 @@ function rI(e) {
}), re = At({
mutationFn: async (e) => {
let t = await l(e.ids, 4, async (t) => {
- e.action === "remove" ? await SN(t) : await xN(t, e.action === "enabled");
+ e.action === "remove" ? await xN(t) : await bN(t, e.action === "enabled");
});
return {
...e,
@@ -40244,9 +40251,9 @@ function rI(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") kN(e.done);
- else for (let t of e.done) ON(t, { enabled: e.action === "enabled" });
- m(_N(s, e.done, !1));
+ if (e.action === "remove") ON(e.done);
+ else for (let t of e.done) DN(t, { enabled: e.action === "enabled" });
+ m(gN(s, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
E(`${t.length}/${e.ids.length} 个来源未更新:${K(t[0]?.error)}`);
@@ -40259,18 +40266,18 @@ function rI(e) {
onError: (e) => E(K(e))
}), ie = At({
mutationFn: async (e) => {
- let t = ((await ace()).groups || []).flatMap((e) => [
+ let t = ((await oce()).groups || []).flatMap((e) => [
e.primary,
...e.variants,
...e.duplicates
]).filter((e) => e.status === "new").map((e) => e.id);
return {
ids: t,
- failed: (await l(t, 6, (t) => ice(t, e))).filter((e) => !e.ok)
+ failed: (await l(t, 6, (t) => ace(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
- if (AN(), e.failed.length) {
+ if (kN(), e.failed.length) {
E(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
@@ -40295,7 +40302,7 @@ function rI(e) {
readOnly: c
};
let se = oe.current, ce = (0, I.useMemo)(() => {
- let e = cP(), t = (e) => () => $F[e] || e;
+ let e = cP(), t = (e) => () => eI[e] || e;
return [
e.display({
id: "select",
@@ -40348,7 +40355,7 @@ function rI(e) {
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => jN(e.row.original.source)
+ cell: (e) => AN(e.row.original.source)
}),
e.display({
id: "actions",
@@ -40386,12 +40393,12 @@ function rI(e) {
})
];
}, [se]), le = (0, I.useMemo)(() => {
- let e = XF[n];
+ let e = ZF[n];
return e ? [{
id: e,
desc: r === "desc"
}] : [];
- }, [n, r]), ue = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), R = a === "table", z = Yse(R ? O.length : D.length, o, i), de = MF({
+ }, [n, r]), ue = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), R = a === "table", z = Xse(R ? O.length : D.length, o, i), de = MF({
data: O,
columns: ce,
getRowId: (e) => String(e.source.id),
@@ -40408,7 +40415,7 @@ function rI(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(le) : e)[0];
if (!t) return;
- let n = sN[t.id];
+ let n = oN[t.id];
n && u(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -40424,7 +40431,7 @@ function rI(e) {
},
getCoreRowModel: TF(),
getPaginationRowModel: DF()
- }), fe = de.getRowModel().rows, pe = R ? fe.map((e) => e.original.source.id) : D.slice(z.start, z.end).flatMap((e) => e.map((e) => e.id)), me = gN(s, pe), he = [...s], ge = uce(j), _e = dce(j), ve = D.length > 0 && x.size >= D.length;
+ }), fe = de.getRowModel().rows, pe = R ? fe.map((e) => e.original.source.id) : D.slice(z.start, z.end).flatMap((e) => e.map((e) => e.id)), me = hN(s, pe), he = [...s], ge = dce(j), _e = fce(j), ve = D.length > 0 && x.size >= D.length;
return v.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: Rw({
padding: "none",
@@ -40461,14 +40468,14 @@ function rI(e) {
variant: "ghost",
iconOnly: !0,
leadingIcon: kS,
- "aria-label": aN[0][1],
+ "aria-label": iN[0][1],
"aria-pressed": !R,
onClick: () => f("default")
}), /* @__PURE__ */ (0, L.jsx)(G, {
variant: "ghost",
iconOnly: !0,
leadingIcon: FS,
- "aria-label": aN[1][1],
+ "aria-label": iN[1][1],
"aria-pressed": R,
onClick: () => f("table")
})]
@@ -40479,9 +40486,9 @@ function rI(e) {
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- u(t, JM[t]);
+ u(t, qM[t]);
},
- children: qM.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Cj, {
+ children: KM.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Cj, {
id: e,
children: t
}, e))
@@ -40490,7 +40497,7 @@ function rI(e) {
variant: "secondary",
iconOnly: !0,
leadingIcon: r === "asc" ? Kte : Gte,
- "aria-label": Use(n, r),
+ "aria-label": Wse(n, r),
onClick: () => u(n, r === "asc" ? "desc" : "asc")
}),
R ? null : /* @__PURE__ */ (0, L.jsx)(G, {
@@ -40606,7 +40613,7 @@ function rI(e) {
desc: e.direction === "descending"
}]),
children: [/* @__PURE__ */ (0, L.jsx)(QD, { children: de.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in sN, n = OF(e.column.columnDef.header, e.getContext());
+ let t = e.column.id in oN, n = OF(e.column.columnDef.header, e.getContext());
return /* @__PURE__ */ (0, L.jsx)($D, {
id: e.id,
allowsSorting: t,
@@ -40639,9 +40646,9 @@ function rI(e) {
className: "flex flex-col gap-3",
children: D.slice(z.start, z.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, L.jsx)(nI, {
+ return /* @__PURE__ */ (0, L.jsx)(rI, {
group: e,
- name: mN(e, y),
+ name: pN(e, y),
handlers: se,
selected: s,
open: !x.has(t),
@@ -40668,12 +40675,12 @@ function rI(e) {
onSelectionChange: (e) => {
e !== null && de.setPageSize(Number(e));
},
- children: oN.map((e) => /* @__PURE__ */ (0, L.jsx)(Cj, {
+ children: aN.map((e) => /* @__PURE__ */ (0, L.jsx)(Cj, {
id: String(e),
children: `每页 ${e} ${R ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(eI, {
+ /* @__PURE__ */ (0, L.jsx)(tI, {
page: z.page,
pages: z.pages,
onPage: (e) => de.setPageIndex(e - 1)
@@ -40737,13 +40744,13 @@ function rI(e) {
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var iI = [
+var aI = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"],
["source", "来源和凭证"]
-], aI = (e) => iI.some(([t]) => t === e);
-function oI({ term: e, figure: t, unit: n }) {
+], oI = (e) => aI.some(([t]) => t === e);
+function sI({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: Rw({
padding: "none",
@@ -40761,23 +40768,23 @@ function oI({ term: e, figure: t, unit: n }) {
})]
});
}
-function sI(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, I.useState)(aI(e.tab) ? e.tab : "list"), [u, d] = (0, I.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, I.useState)(() => YM(e.sort, e.dir).sort), [m, h] = (0, I.useState)(() => YM(e.sort, e.dir).dir), [g, _] = (0, I.useState)(Bse(e.layout) ? e.layout : "default"), [v, y] = (0, I.useState)(Vse(e.pageSize)), [b, x] = (0, I.useState)(/* @__PURE__ */ new Set()), S = kt({
+function cI(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, I.useState)(oI(e.tab) ? e.tab : "list"), [u, d] = (0, I.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, I.useState)(() => JM(e.sort, e.dir).sort), [m, h] = (0, I.useState)(() => JM(e.sort, e.dir).dir), [g, _] = (0, I.useState)(Vse(e.layout) ? e.layout : "default"), [v, y] = (0, I.useState)(Hse(e.pageSize)), [b, x] = (0, I.useState)(/* @__PURE__ */ new Set()), S = kt({
+ queryKey: tN,
+ queryFn: ({ signal: e }) => _N(e)
+ }), C = kt({
queryKey: nN,
queryFn: ({ signal: e }) => vN(e)
- }), C = kt({
- queryKey: rN,
- queryFn: ({ signal: e }) => yN(e)
}), w = kt({
- queryKey: iN,
- queryFn: ({ signal: e }) => wN(e)
+ queryKey: rN,
+ queryFn: ({ signal: e }) => CN(e)
}), T = S.data || { sources: [] }, E = C.data || {
root: "",
providers: []
}, D = T.sources;
(0, I.useEffect)(() => {
x((e) => {
- let t = Xse(e, D);
+ let t = Zse(e, D);
return t.size === e.size ? e : t;
});
}, [D]);
@@ -40787,9 +40794,9 @@ function sI(e) {
tab: e.tab ?? c,
page: e.page ?? u,
sort: n === "checked" ? "" : n,
- dir: r === JM[n] ? "" : r
+ dir: r === qM[n] ? "" : r
});
- }, k = hN(D), A = D.filter(lN).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !NN(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
+ }, k = mN(D), A = D.filter(cN).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !NN(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
return /* @__PURE__ */ (0, L.jsxs)(Hw, { children: [
a ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "warning",
@@ -40808,32 +40815,32 @@ function sI(e) {
className: Zae,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, L.jsx)(oI, {
+ /* @__PURE__ */ (0, L.jsx)(sI, {
term: "关注创作者",
figure: k.length,
unit: "位"
}),
- /* @__PURE__ */ (0, L.jsx)(oI, {
+ /* @__PURE__ */ (0, L.jsx)(sI, {
term: "启用来源",
figure: j,
unit: `/ ${D.length}`
}),
- /* @__PURE__ */ (0, L.jsx)(oI, {
+ /* @__PURE__ */ (0, L.jsx)(sI, {
term: "检查失败",
figure: A,
unit: "个来源"
}),
- /* @__PURE__ */ (0, L.jsx)(oI, {
+ /* @__PURE__ */ (0, L.jsx)(sI, {
term: "未看更新",
figure: T.counts?.new || 0,
unit: "条"
}),
- /* @__PURE__ */ (0, L.jsx)(oI, {
+ /* @__PURE__ */ (0, L.jsx)(sI, {
term: "JAV 订阅",
figure: N,
unit: "位"
}),
- /* @__PURE__ */ (0, L.jsx)(oI, {
+ /* @__PURE__ */ (0, L.jsx)(sI, {
term: "未看新作",
figure: w.data?.unread || 0,
unit: "条"
@@ -40844,23 +40851,23 @@ function sI(e) {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
- aI(t) && (l(t), O({ tab: t }));
+ oI(t) && (l(t), O({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
/* @__PURE__ */ (0, L.jsx)(dO, {
"aria-label": "关注管理区域",
- className: CM,
- children: iI.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(fO, {
+ className: SM,
+ children: aI.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(fO, {
id: e,
- className: wM,
+ className: CM,
children: e === "source" && M ? `${t}(${M})` : t
}, e))
}),
/* @__PURE__ */ (0, L.jsx)(pO, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, L.jsx)(rI, {
+ children: /* @__PURE__ */ (0, L.jsx)(iI, {
data: T,
sort: f,
dir: m,
@@ -40912,7 +40919,7 @@ function sI(e) {
/* @__PURE__ */ (0, L.jsx)(pO, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, L.jsx)(YF, {
+ children: /* @__PURE__ */ (0, L.jsx)(XF, {
readOnly: a,
toast: r,
avatarInner: e.avatarInner
@@ -40933,43 +40940,43 @@ function sI(e) {
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var cI = "/api/follow/authors", lI = "/api/follow/tags", uI = (e) => [
+var lI = "/api/follow/authors", uI = "/api/follow/tags", dI = (e) => [
"follow",
"authors",
e
-], dI = (e, t) => [
+], fI = (e, t) => [
"follow",
"tags",
e,
t
];
-function fI(e, t, n) {
+function pI(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${cI}?${r}`;
+ return e && r.set("q", e), `${lI}?${r}`;
}
-function pI(e, t, n, r) {
+function mI(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), `${lI}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${uI}?${i}`;
}
-var mI = (e, t, n, r) => Aw(fI(e, t, n), r), hI = (e, t, n, r, i) => Aw(pI(e, t, n, r), i), gI = "/api/index", _I = {
+var hI = (e, t, n, r) => Aw(pI(e, t, n), r), gI = (e, t, n, r, i) => Aw(mI(e, t, n, r), i), _I = "/api/index", vI = {
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, vI = {
+}, yI = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, yI = [
+}, bI = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -40979,26 +40986,26 @@ var mI = (e, t, n, r) => Aw(fI(e, t, n), r), hI = (e, t, n, r, i) => Aw(pI(e, t,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], bI = [
+], xI = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], xI = {
+], SI = {
people: 120,
tags: 180
-}, SI = (e) => e !== "tags", CI = (e) => e === "studios" || e === "agencies";
-function wI(e) {
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? bI : yI).some(([t]) => t === e.category);
+}, CI = (e) => e !== "tags", wI = (e) => e === "studios" || e === "agencies";
+function TI(e) {
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? xI : bI).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: e.kind === "tags" && n ? e.category : "all"
};
}
-function TI(e) {
+function EI(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -41017,50 +41024,50 @@ function TI(e) {
q: n
};
}
-var EI = (e, t, n = "all") => [
+var DI = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" ? [n] : []
];
-function DI(e, t, n, r, i) {
+function OI(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), `${gI}?${a}`;
+ return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${_I}?${a}`;
}
-function OI(e) {
- let t = e.what === "people" || e.what === "online-authors" ? xI.people : xI.tags, n = {
+function kI(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? SI.people : SI.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: EI(e.kind, e.q),
- queryFn: ({ pageParam: n, signal: r }) => Aw(DI(e.kind, e.q, "all", t, n), r)
+ queryKey: DI(e.kind, e.q),
+ queryFn: ({ pageParam: n, signal: r }) => Aw(OI(e.kind, e.q, "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: EI("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => Aw(DI("tags", e.q, e.category, t, n), r)
+ queryKey: DI("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => Aw(OI("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
- queryKey: uI(e.q),
- queryFn: ({ pageParam: n, signal: r }) => mI(e.q, t, n, r)
+ queryKey: dI(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => hI(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: dI(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => hI(e.q, e.category, t, n, r)
+ queryKey: fI(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => gI(e.q, e.category, t, n, r)
};
}
}
-async function kI(e, t) {
- let n = OI(TI(wI(e)));
+async function AI(e, t) {
+ let n = kI(EI(TI(e)));
X.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -41074,13 +41081,13 @@ async function kI(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var AI = (e) => e ? e.pages.flatMap((e) => e.items) : [], jI = (e, t) => `${e}${t ? "+" : ""} 项`, MI = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", NI = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), PI = {
+var jI = (e) => e ? e.pages.flatMap((e) => e.items) : [], MI = (e, t) => `${e}${t ? "+" : ""} 项`, NI = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", PI = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), FI = {
numeric: !0,
sensitivity: "base"
};
-function FI(e, t) {
+function II(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", PI))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", FI))) {
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]);
}
@@ -41088,15 +41095,15 @@ function FI(e, t) {
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function II({ value: e }) {
+function LI({ value: e }) {
return /* @__PURE__ */ (0, L.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 LI = "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 RI({ tabs: e, value: t, label: n, onChange: r }) {
+var RI = "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 zI({ tabs: e, value: t, label: n, onChange: r }) {
let i = (0, I.useRef)(null), a = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
let e = i.current;
@@ -41131,7 +41138,7 @@ function RI({ tabs: e, value: t, label: n, onChange: r }) {
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: LI,
+ className: RI,
onClick: () => {
i || r(e.value);
},
@@ -41147,7 +41154,7 @@ function RI({ tabs: e, value: t, label: n, onChange: r }) {
}
//#endregion
//#region src/react/index/index-people.tsx
-function zI({ html: e, face: t, company: n, big: r }) {
+function BI({ html: e, face: t, company: n, big: r }) {
let i = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -41159,8 +41166,8 @@ function zI({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var BI = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
-function VI({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
+var VI = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
+function HI({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
return /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
...a,
@@ -41170,7 +41177,7 @@ function VI({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
radius: "plain",
padding: "none",
interactive: !0,
- className: `${BI} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${VI} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -41187,8 +41194,8 @@ function VI({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
]
});
}
-function HI({ kind: e, items: t, layout: n, props: r }) {
- let i = vI[e], a = CI(e), o = n === "big";
+function UI({ kind: e, items: t, layout: n, props: r }) {
+ let i = yI[e], a = wI(e), o = n === "big";
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
@@ -41196,14 +41203,14 @@ function HI({ 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, L.jsx)(VI, {
+ return /* @__PURE__ */ (0, L.jsx)(HI, {
"data-k": t.k,
"data-kind": i,
name: t.k,
- readout: NI(e, t),
+ readout: PI(e, t),
big: o,
onPress: () => r.openEntity(i, t.k),
- children: /* @__PURE__ */ (0, L.jsx)(zI, {
+ children: /* @__PURE__ */ (0, L.jsx)(BI, {
html: n.html,
face: n.face,
company: a,
@@ -41213,21 +41220,21 @@ function HI({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function UI({ items: e, layout: t, props: n }) {
+function WI({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(VI, {
+ children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(HI, {
"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, L.jsx)(zI, {
+ children: /* @__PURE__ */ (0, L.jsx)(BI, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -41237,23 +41244,23 @@ function UI({ items: e, layout: t, props: n }) {
}
//#endregion
//#region src/react/index/index-tags.tsx
-var WI = () => /* @__PURE__ */ (0, L.jsx)("span", {
+var GI = () => /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
-function GI({ tag: e, actions: t }) {
+function mce({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": MI(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, L.jsx)(WI, {}),
+ /* @__PURE__ */ (0, L.jsx)(GI, {}),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -41265,7 +41272,7 @@ function GI({ tag: e, actions: t }) {
]
});
}
-function mce({ groups: e, actions: t }) {
+function hce({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
@@ -41278,10 +41285,10 @@ function mce({ groups: e, actions: t }) {
}),
children: [/* @__PURE__ */ (0, L.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, L.jsx)(II, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, L.jsx)(LI, { value: n.length })]
}), /* @__PURE__ */ (0, L.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, L.jsx)(GI, {
+ children: n.map((e) => /* @__PURE__ */ (0, L.jsx)(mce, {
tag: e,
actions: t
}, e.k))
@@ -41289,8 +41296,8 @@ function mce({ groups: e, actions: t }) {
}, e))
});
}
-var hce = "\xA0";
-function gce({ tags: e, actions: t }) {
+var gce = "\xA0";
+function _ce({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
@@ -41298,11 +41305,11 @@ function gce({ tags: e, actions: t }) {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": MI(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 + hce, /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [e.label + gce, /* @__PURE__ */ (0, L.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
@@ -41310,7 +41317,7 @@ function gce({ tags: e, actions: t }) {
}, e.k))
});
}
-var _ce = [[
+var vce = [[
"cloud",
"标签云",
"tags"
@@ -41319,16 +41326,16 @@ var _ce = [[
"字母表",
"text-aa"
]];
-function vce({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
- return /* @__PURE__ */ (0, L.jsx)(gM, {
+function yce({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
+ return /* @__PURE__ */ (0, L.jsx)(hM, {
label: "标签筛选",
topLabel: "标签类型",
- top: e.map(([e, r]) => /* @__PURE__ */ (0, L.jsxs)(_M, {
+ top: e.map(([e, r]) => /* @__PURE__ */ (0, L.jsxs)(gM, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : MI(n, e),
+ "data-tag-cat": e === "all" ? "all" : NI(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, L.jsx)(WI, {}), r]
+ children: [/* @__PURE__ */ (0, L.jsx)(GI, {}), r]
}, e)),
bottom: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsx)("span", {
@@ -41352,14 +41359,14 @@ function vce({ categories: e, category: t, online: n, readout: r, letters: i, vi
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${TM}`,
- children: _ce.map(([e, t, n]) => {
+ className: `ml-auto ${wM}`,
+ children: vce.map(([e, t, n]) => {
let r = ET(n);
return /* @__PURE__ */ (0, L.jsx)(ID, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: EM,
+ className: TM,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: t,
className: "contents",
@@ -41371,7 +41378,7 @@ function vce({ categories: e, category: t, online: n, readout: r, letters: i, vi
] })
});
}
-function yce({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+function bce({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
return /* @__PURE__ */ (0, L.jsxs)(PF, {
label: "所选标签操作",
count: `已选 ${e} 个标签`,
@@ -41408,7 +41415,7 @@ function yce({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/index/index-page.tsx
-var bce = [{
+var xce = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -41424,7 +41431,7 @@ var bce = [{
value: "online",
label: "在线",
symbol: "rss"
-}], xce = {
+}], Sce = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -41444,20 +41451,20 @@ var bce = [{
"layout-grid"
]]
};
-function Sce({ kind: e, layout: t, onChange: n }) {
+function Cce({ kind: e, layout: t, onChange: n }) {
return /* @__PURE__ */ (0, L.jsx)(FD, {
- "aria-label": `${_I[e]}索引版式`,
+ "aria-label": `${vI[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${CM}`,
- children: xce[CI(e) ? "company" : "people"].map(([e, t, n]) => {
+ className: `flex-none max-board-narrow:order-3 ${SM}`,
+ children: Sce[wI(e) ? "company" : "people"].map(([e, t, n]) => {
let r = ET(n);
return /* @__PURE__ */ (0, L.jsx)(ID, {
value: e,
"aria-label": t,
- className: joe,
+ className: Moe,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: t,
className: "contents",
@@ -41467,8 +41474,8 @@ function Sce({ kind: e, layout: t, onChange: n }) {
})
});
}
-var Cce = ET("search");
-function wce({ label: e, value: t, onQuery: n }) {
+var wce = ET("search");
+function Tce({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, I.useState)(t), a = (0, I.useRef)(!1), o = (0, I.useRef)(void 0);
(0, I.useEffect)(() => () => clearTimeout(o.current), []);
let s = (e) => {
@@ -41491,7 +41498,7 @@ function wce({ label: e, value: t, onQuery: n }) {
},
children: /* @__PURE__ */ (0, L.jsx)(eM, {
type: "search",
- leadingIcon: Cce,
+ leadingIcon: wce,
spellCheck: !1,
autoComplete: "off",
onKeyDown: (e) => {
@@ -41501,14 +41508,14 @@ function wce({ label: e, value: t, onQuery: n }) {
})
});
}
-function Tce(e) {
- let [t, n] = (0, I.useState)(() => wI({
+function Ece(e) {
+ let [t, n] = (0, I.useState)(() => TI({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [r, i] = (0, I.useState)(e.layout), [a, o] = (0, I.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, I.useState)("any"), l = (0, I.useRef)(null), { kind: u, q: f, scope: p, view: m, category: h } = t, g = _I[u], v = u === "tags" && p === "online", y = u === "performers" && p === "online";
+ })), [r, i] = (0, I.useState)(e.layout), [a, o] = (0, I.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, I.useState)("any"), l = (0, I.useRef)(null), { kind: u, q: f, scope: p, view: m, category: h } = t, g = vI[u], v = u === "tags" && p === "online", y = u === "performers" && p === "online";
(0, I.useEffect)(() => {
e.selectMode || o(/* @__PURE__ */ new Set());
}, [e.selectMode]);
@@ -41518,7 +41525,7 @@ function Tce(e) {
...r
};
x(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, C = OI(TI(t)), w = jt({
+ }, C = kI(EI(t)), w = jt({
queryKey: C.queryKey,
queryFn: ({ pageParam: e, signal: t }) => C.queryFn({
pageParam: e,
@@ -41527,20 +41534,20 @@ function Tce(e) {
initialPageParam: 0,
getNextPageParam: C.getNextPageParam,
placeholderData: b ? Oe : void 0
- }), T = AI(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = jI(T.length, !!w.hasNextPage);
+ }), T = jI(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = MI(T.length, !!w.hasNextPage);
(0, I.useEffect)(() => {
l.current && e.refitImages(l.current);
}, [r]);
let O = (0, I.useMemo)(() => u === "tags" ? T.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [T, u]), k = (0, I.useMemo)(() => u === "tags" && m === "alphabet" ? FI(O, (t) => e.tagLabel(t)) : [], [
+ })) : [], [T, u]), k = (0, I.useMemo)(() => u === "tags" && m === "alphabet" ? II(O, (t) => e.tagLabel(t)) : [], [
O,
m,
u
]), A = (t) => {
i(t), e.savePreference({ layout: t });
- }, j = u === "tags" ? /* @__PURE__ */ (0, L.jsx)(RI, {
+ }, j = u === "tags" ? /* @__PURE__ */ (0, L.jsx)(zI, {
tabs: KI,
value: p,
label: "词表",
@@ -41551,15 +41558,15 @@ function Tce(e) {
view: e === "online" ? "alphabet" : m
});
}
- }) : u === "performers" ? /* @__PURE__ */ (0, L.jsx)(RI, {
+ }) : u === "performers" ? /* @__PURE__ */ (0, L.jsx)(zI, {
tabs: KI,
value: p,
label: "名册",
onChange: (t) => {
t === "online" && e.exitSelectMode(), S({ scope: t });
}
- }) : CI(u) ? /* @__PURE__ */ (0, L.jsx)(RI, {
- tabs: bce,
+ }) : wI(u) ? /* @__PURE__ */ (0, L.jsx)(zI, {
+ tabs: xce,
value: u,
label: "公司类型",
onChange: (e) => S({ kind: e })
@@ -41576,7 +41583,7 @@ function Tce(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
});
- }, N = (v ? bI : yI).filter(([e]) => e === "all" || Number(w.data?.pages[0]?.categories?.[e] || 0) > 0);
+ }, N = (v ? xI : bI).filter(([e]) => e === "all" || Number(w.data?.pages[0]?.categories?.[e] || 0) > 0);
return /* @__PURE__ */ (0, L.jsxs)("div", {
ref: l,
"data-index-page": u,
@@ -41591,12 +41598,12 @@ function Tce(e) {
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: g
}),
- SI(u) ? /* @__PURE__ */ (0, L.jsx)("span", {
+ CI(u) ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: w.isPending ? "" : D
}) : null,
- SI(u) ? /* @__PURE__ */ (0, L.jsx)(Sce, {
+ CI(u) ? /* @__PURE__ */ (0, L.jsx)(Cce, {
kind: u,
layout: r,
onChange: A
@@ -41605,7 +41612,7 @@ function Tce(e) {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, L.jsx)(wce, {
+ /* @__PURE__ */ (0, L.jsx)(Tce, {
label: `过滤${g}`,
value: f,
onQuery: (e) => {
@@ -41615,7 +41622,7 @@ function Tce(e) {
]
}),
j,
- u === "tags" ? /* @__PURE__ */ (0, L.jsx)(vce, {
+ u === "tags" ? /* @__PURE__ */ (0, L.jsx)(yce, {
categories: N,
category: h,
online: v,
@@ -41650,18 +41657,18 @@ function Tce(e) {
}),
children: d(w.error)
});
- if (!T.length) return /* @__PURE__ */ (0, L.jsx)(Dce, {
+ if (!T.length) return /* @__PURE__ */ (0, L.jsx)(Oce, {
kind: u,
filtered: !!f || u === "tags" && h !== "all",
online: v || y,
configurable: e.configurable
});
- if (y) return /* @__PURE__ */ (0, L.jsx)(UI, {
+ if (y) return /* @__PURE__ */ (0, L.jsx)(WI, {
items: T,
layout: r,
props: e
});
- if (SI(u)) return /* @__PURE__ */ (0, L.jsx)(HI, {
+ if (CI(u)) return /* @__PURE__ */ (0, L.jsx)(UI, {
kind: u,
items: T,
layout: r,
@@ -41672,10 +41679,10 @@ function Tce(e) {
picked: a,
press: M
};
- return m === "alphabet" ? /* @__PURE__ */ (0, L.jsx)(mce, {
+ return m === "alphabet" ? /* @__PURE__ */ (0, L.jsx)(hce, {
groups: k,
actions: t
- }) : /* @__PURE__ */ (0, L.jsx)(gce, {
+ }) : /* @__PURE__ */ (0, L.jsx)(_ce, {
tags: O,
actions: t
});
@@ -41696,7 +41703,7 @@ function Tce(e) {
}) : "载入更多"
})
}) : null,
- u === "tags" && !v && e.selectMode && a.size ? /* @__PURE__ */ (0, L.jsx)(yce, {
+ u === "tags" && !v && e.selectMode && a.size ? /* @__PURE__ */ (0, L.jsx)(bce, {
count: a.size,
match: s,
onMatch: c,
@@ -41709,14 +41716,14 @@ function Tce(e) {
]
});
}
-var Ece = {
+var Dce = {
tags: "标签",
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所"
};
-function Dce({ kind: e, filtered: t, online: n, configurable: r }) {
+function Oce({ kind: e, filtered: t, online: n, configurable: r }) {
if (t) return /* @__PURE__ */ (0, L.jsx)(Bw, {
icon: ET("search"),
title: "没有符合条件的内容",
@@ -41727,7 +41734,7 @@ function Dce({ kind: e, filtered: t, online: n, configurable: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : Ece[e], a = /* @__PURE__ */ (0, L.jsx)(Dw, {
+ let i = n && e === "performers" ? "创作者" : Dce[e], a = /* @__PURE__ */ (0, L.jsx)(Dw, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
@@ -41750,8 +41757,8 @@ var qI = {
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, Oce = (e) => qI[e.junk_kind || "other"] || qI.other;
-function kce(e) {
+}, kce = (e) => qI[e.junk_kind || "other"] || qI.other;
+function Ace(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -41762,21 +41769,21 @@ function kce(e) {
glyph: "check"
};
}
-var Ace = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), jce = (e, t) => [
+var jce = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Mce = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function Mce({ kind: e, view: t }) {
+function Nce({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function Nce(e, t) {
- let n = await Aw(`/api/ads?${Mce(e)}`, t);
+async function Pce(e, t) {
+ let n = await Aw(`/api/ads?${Nce(e)}`, t);
return {
...n,
items: n.items || []
@@ -41792,8 +41799,8 @@ function JI({ name: e }) {
});
}
var YI = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function Pce({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions: s }) {
- let c = (0, I.useRef)(null), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), p = e.junk_kind || "other", [m, h] = Oce(e), g = String(e.name || ""), _ = kce(t), v = p === "video" ? `/thumb?id=${e.id}&c=4` : p === "image" ? `/photo-thumb?id=${e.id}` : "", y = p === "video" || p === "image", b = (t) => {
+function Fce({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions: s }) {
+ let c = (0, I.useRef)(null), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), p = e.junk_kind || "other", [m, h] = kce(e), g = String(e.name || ""), _ = Ace(t), v = p === "video" ? `/thumb?id=${e.id}&c=4` : p === "image" ? `/photo-thumb?id=${e.id}` : "", y = p === "video" || p === "image", b = (t) => {
t.target.closest("[data-junk-actions]") || YI(i, t) && (t.preventDefault(), s.toggleSelection(e.id, t.shiftKey));
}, x = (t) => {
if (t.stopPropagation(), YI(i, t)) {
@@ -41926,7 +41933,7 @@ function Pce({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
]
});
}
-var Fce = (0, I.memo)(Pce), Ice = [
+var Ice = (0, I.memo)(Fce), Lce = [
[
"",
"全部",
@@ -41969,7 +41976,7 @@ function XI(e = "", t = "pending") {
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function Lce(e) {
+function Rce(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
@@ -41982,7 +41989,7 @@ function Lce(e) {
href: XI("", "dismissed")
};
}
-var Rce = (e) => e === "dismissed" ? "已排除" : "待判断";
+var zce = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
//#region src/react/junk-queue/junk-count.tsx
function ZI({ name: e }) {
@@ -41998,8 +42005,8 @@ function QI({ scope: e, count: t }) {
children: t.toLocaleString()
})] }) : null;
}
-function zce({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = DO(), { kind: a, view: o } = e, s = Lce(o), c = (e) => {
+function Bce({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = DO(), { kind: a, view: o } = e, s = Rce(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") || XI()));
}, l = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
@@ -42008,8 +42015,8 @@ function zce({ route: e, page: t, failed: n, onNavigate: r }) {
children: [/* @__PURE__ */ (0, L.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, L.jsx)(mM, {
- label: Rce(o),
+ children: /* @__PURE__ */ (0, L.jsx)(pM, {
+ label: zce(o),
figure: l,
pending: !t && !n,
flush: !0
@@ -42022,7 +42029,7 @@ function zce({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-label": "垃圾文件分类",
onClick: c,
children: [
- Ice.map(([e, n, r]) => /* @__PURE__ */ (0, L.jsxs)("a", {
+ Lce.map(([e, n, r]) => /* @__PURE__ */ (0, L.jsxs)("a", {
href: XI(e, o),
"data-junk-kind-link": e,
"aria-current": e === a ? "page" : void 0,
@@ -42031,7 +42038,7 @@ function zce({ route: e, page: t, failed: n, onNavigate: r }) {
n,
/* @__PURE__ */ (0, L.jsx)(QI, {
scope: e,
- count: t ? Ace(t, e) : 0
+ count: t ? jce(t, e) : 0
})
]
}, e || "all")),
@@ -42059,38 +42066,38 @@ function zce({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var Bce = ET("check"), Vce = (e, t) => e[1] === t.view && e[2] === t.kind;
-function Hce(e) {
+var Vce = ET("check"), Hce = (e, t) => e[1] === t.view && e[2] === t.kind;
+function Uce(e) {
let t = {
kind: e.kind,
view: e.view
}, n = (0, I.useRef)(e.cache);
n.current = e.cache;
let r = kt({
- queryKey: jce(t, e.revision),
+ queryKey: Mce(t, e.revision),
queryFn: async ({ signal: e }) => {
- let r = await Nce(t, e);
+ let r = await Pce(t, e);
return n.current(r.items), r;
},
- placeholderData: (e, n) => n && Vce(n.queryKey, t) ? e : void 0
+ placeholderData: (e, n) => n && Hce(n.queryKey, t) ? e : void 0
});
(0, I.useEffect)(() => {
r.isFetching || e.settled?.(e.revision);
}, [r.isFetching, e.revision]);
- let i = Uce(e.countRow), a = r.isPending;
+ let i = Wce(e.countRow), a = r.isPending;
(0, I.useLayoutEffect)(() => {
let t = e.countRow;
t && (a ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, a]), (0, I.useLayoutEffect)(() => {
i && r.data && x(i, "junk");
}, [i, r.data]);
- let { navigate: o } = e.actions, s = i ? (0, yh.createPortal)(/* @__PURE__ */ (0, L.jsx)(zce, {
+ let { navigate: o } = e.actions, s = i ? (0, yh.createPortal)(/* @__PURE__ */ (0, L.jsx)(Bce, {
route: t,
page: r.data,
failed: r.isError && !r.data,
onNavigate: o
}), i) : null;
- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [s, /* @__PURE__ */ (0, L.jsx)(Wce, {
+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [s, /* @__PURE__ */ (0, L.jsx)(Gce, {
props: e,
data: r.data,
pending: a,
@@ -42098,7 +42105,7 @@ function Hce(e) {
retry: () => void r.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function Uce(e) {
+function Wce(e) {
let [t, n] = (0, I.useState)(null);
return (0, I.useLayoutEffect)(() => {
if (!e) return;
@@ -42108,7 +42115,7 @@ function Uce(e) {
};
}, [e]), t;
}
-function Wce({ props: e, data: t, pending: n, error: r, retry: i }) {
+function Gce({ props: e, data: t, pending: n, error: r, retry: i }) {
let a = _T(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, I.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: f } = e, p = (0, I.useCallback)(() => {
f?.() !== !1 && c((e) => e + 1);
}, [f]);
@@ -42124,7 +42131,7 @@ function Wce({ props: e, data: t, pending: n, error: r, retry: i }) {
if (!l.length) {
let t = e.view === "dismissed";
return /* @__PURE__ */ (0, L.jsx)(Bw, {
- icon: Bce,
+ icon: Vce,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
});
@@ -42133,7 +42140,7 @@ function Wce({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, L.jsx)(Fce, {
+ children: u.map((t) => /* @__PURE__ */ (0, L.jsx)(Ice, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -42141,11 +42148,11 @@ function Wce({ props: e, data: t, pending: n, error: r, retry: i }) {
helpers: e.helpers,
actions: e.actions
}, t.id))
- }), u.length < l.length ? /* @__PURE__ */ (0, L.jsx)(Gce, { onMore: p }, s) : null] });
+ }), u.length < l.length ? /* @__PURE__ */ (0, L.jsx)(Kce, { onMore: p }, s) : null] });
})()]
});
}
-function Gce({ onMore: e }) {
+function Kce({ onMore: e }) {
let t = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
let n = t.current;
@@ -42163,12 +42170,12 @@ function Gce({ onMore: e }) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var $I = "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", Kce = {
+var $I = "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", qce = {
gray: `${$I} border-separator-border bg-background-secondary-default text-text-secondary`,
warning: `${$I} border-current/35 bg-status-yellow-background text-status-yellow-text`,
error: `${$I} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
-function qce({ value: e, max: t }) {
+function Jce({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, L.jsxs)("svg", {
role: "progressbar",
@@ -42196,16 +42203,16 @@ function qce({ value: e, max: t }) {
})]
});
}
-function Jce(e) {
+function Yce(e) {
let { job: t } = cj(e), n = t.data, r = t.isError ? n ? XO : 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 ? "扫描与资料采集未完成" : ek(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? DS : Jte;
return /* @__PURE__ */ (0, L.jsxs)("aside", {
role: a ? "alert" : "status",
- className: Kce[s],
+ className: qce[s],
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, L.jsx)(qce, {
+ children: [o && l ? /* @__PURE__ */ (0, L.jsx)(Jce, {
value: c,
max: l
}) : /* @__PURE__ */ (0, L.jsx)(d, {
@@ -42225,8 +42232,8 @@ function Jce(e) {
}
//#endregion
//#region src/react/playlists/playlists.ts
-var Yce = "/api/playlists", eL = "/api/playlist", tL = ["playlists"], nL = (e) => Aw(Yce, e);
-async function Xce(e) {
+var Xce = "/api/playlists", eL = "/api/playlist", tL = ["playlists"], nL = (e) => Aw(Xce, e);
+async function Zce(e) {
await X.fetchQuery({
queryKey: tL,
queryFn: () => nL(e),
@@ -42236,7 +42243,7 @@ async function Xce(e) {
var rL = () => X.invalidateQueries({
queryKey: tL,
exact: !0
-}), Zce = (e) => e.current_asset_id || e.preview_asset_id || null, iL = (e) => `/poster?id=${e}&c=4`, Qce = (e) => q(eL, {
+}), Qce = (e) => e.current_asset_id || e.preview_asset_id || null, iL = (e) => `/poster?id=${e}&c=4`, $ce = (e) => q(eL, {
action: "create",
name: e,
asset_ids: []
@@ -42247,8 +42254,8 @@ var rL = () => X.invalidateQueries({
}), oL = (e) => q(eL, {
action: "delete",
id: e
-}), $ce = (e) => Aw(`${eL}?id=${e}`).catch(() => null);
-function ele(e) {
+}), ele = (e) => Aw(`${eL}?id=${e}`).catch(() => null);
+function tle(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
return q(eL, {
action: "create",
@@ -42260,16 +42267,16 @@ function ele(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var tle = ET("ellipsis"), nle = ET("pencil"), rle = ET("trash"), ile = ET("playlist"), sL = Sw(RA, zA, "text-body-2-medium"), cL = "播放列表名称不能为空", lL = (e) => async () => {
+var nle = ET("ellipsis"), rle = ET("pencil"), ile = ET("trash"), ale = ET("playlist"), sL = Sw(RA, zA, "text-body-2-medium"), cL = "播放列表名称不能为空", lL = (e) => async () => {
try {
await e();
} finally {
rL();
}
};
-function ale({ toast: e }) {
+function ole({ toast: e }) {
let [t, n] = (0, I.useState)(""), [r, i] = (0, I.useState)(""), a = At({
- mutationFn: (e) => Qce(e),
+ mutationFn: (e) => $ce(e),
onSuccess: (t) => {
n(""), i(""), rL(), e("已新建播放列表", { undo: lL(() => oL(t.playlist.id)) });
},
@@ -42309,7 +42316,7 @@ function ale({ toast: e }) {
})]
});
}
-function ole({ target: e, close: t, toast: n }) {
+function sle({ target: e, close: t, toast: n }) {
let [r, i] = (0, I.useState)(""), [a, o] = (0, I.useState)(""), s = (0, I.useRef)(null);
(0, I.useEffect)(() => {
if (!e) return;
@@ -42381,7 +42388,7 @@ function ole({ target: e, close: t, toast: n }) {
})
});
}
-function sle({ name: e, onRename: t, onDelete: n }) {
+function cle({ name: e, onRename: t, onDelete: n }) {
let r = (0, I.useRef)(null), [i, a] = (0, I.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -42395,7 +42402,7 @@ function sle({ 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, L.jsx)(tle, {
+ children: /* @__PURE__ */ (0, L.jsx)(nle, {
"aria-hidden": !0,
className: "size-4.5"
})
@@ -42413,7 +42420,7 @@ function sle({ name: e, onRename: t, onDelete: n }) {
type: "button",
className: sL,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, L.jsx)(nle, {
+ children: [/* @__PURE__ */ (0, L.jsx)(rle, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "编辑名称"]
@@ -42421,7 +42428,7 @@ function sle({ name: e, onRename: t, onDelete: n }) {
type: "button",
className: sL,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, L.jsx)(rle, {
+ children: [/* @__PURE__ */ (0, L.jsx)(ile, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "删除播放列表"]
@@ -42429,7 +42436,7 @@ function sle({ name: e, onRename: t, onDelete: n }) {
})
})] });
}
-function cle({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
+function lle({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
let o = kt({
queryKey: tL,
queryFn: ({ signal: e }) => nL(e)
@@ -42453,8 +42460,8 @@ function cle({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
confirmLabel: "删除播放列表",
danger: !0,
onConfirm: async () => {
- let t = await $ce(e.id);
- await oL(e.id), rL(), i("已删除播放列表", t ? { undo: lL(() => ele(t)) } : void 0);
+ let t = await ele(e.id);
+ await oL(e.id), rL(), i("已删除播放列表", t ? { undo: lL(() => tle(t)) } : void 0);
}
});
};
@@ -42469,13 +42476,13 @@ function cle({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}), /* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "保存 Mix,按自己的顺序继续播放。"
- })] }), /* @__PURE__ */ (0, L.jsx)(ale, { toast: i })]
+ })] }), /* @__PURE__ */ (0, L.jsx)(ole, { toast: i })]
}),
d.length ? /* @__PURE__ */ (0, L.jsx)("div", {
"data-playlist-grid": "",
className: "card-grid-cover gap-4.5",
children: d.map((i) => {
- let a = Zce(i);
+ let a = Qce(i);
return /* @__PURE__ */ (0, L.jsx)(kT, {
"data-playlist-card": String(i.id),
name: i.name,
@@ -42489,7 +42496,7 @@ function cle({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
onOpenEntity: t,
...a ? { onOpen: () => e(i.id, a) } : {},
openLabel: `打开播放列表 ${i.name}`,
- menu: /* @__PURE__ */ (0, L.jsx)(sle, {
+ menu: /* @__PURE__ */ (0, L.jsx)(cle, {
name: i.name,
onRename: () => c(i),
onDelete: () => f(i)
@@ -42497,11 +42504,11 @@ function cle({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}, i.id);
})
}) : /* @__PURE__ */ (0, L.jsx)(Bw, {
- icon: ile,
+ icon: ale,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
}),
- /* @__PURE__ */ (0, L.jsx)(ole, {
+ /* @__PURE__ */ (0, L.jsx)(sle, {
target: s,
close: () => c(null),
toast: i
@@ -42511,7 +42518,7 @@ function cle({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function lle({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadge: s }) {
+function ule({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadge: s }) {
let c = () => n(t.id);
return /* @__PURE__ */ (0, L.jsxs)("li", {
"data-goal-id": t.id,
@@ -42579,7 +42586,7 @@ function lle({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadg
})]
});
}
-function ule(e) {
+function dle(e) {
let t = kt({
queryKey: fk,
queryFn: ({ signal: e }) => pk(e)
@@ -42604,7 +42611,7 @@ function ule(e) {
})]
}), /* @__PURE__ */ (0, L.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, L.jsx)(lle, {
+ children: r.map((t) => /* @__PURE__ */ (0, L.jsx)(ule, {
item: t,
...e
}, t.id))
@@ -42617,7 +42624,7 @@ function ule(e) {
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-function dle(e) {
+function fle(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 = Sae(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
role: "group",
@@ -42718,7 +42725,7 @@ function dle(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var fle = {
+var ple = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -42729,7 +42736,7 @@ var fle = {
screenshot_urls: "截图",
trailer_url: "预告片"
}, uL = "reviewgenretags";
-function ple({ tags: e }) {
+function mle({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("datalist", {
id: uL,
children: e.map((e) => /* @__PURE__ */ (0, L.jsx)("option", { value: e }, e))
@@ -42772,7 +42779,7 @@ function dL({ candidate: e, selectable: t = !1 }) {
children: [
/* @__PURE__ */ (0, L.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: fle[e] || e
+ children: ple[e] || e
}),
/* @__PURE__ */ (0, L.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
@@ -42787,7 +42794,7 @@ function dL({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function mle({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function hle({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
@@ -42808,7 +42815,7 @@ function mle({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
}, e.candidate_key))
}) : null;
}
-function hle({ genre: e, tags: t, locked: n, toast: r }) {
+function gle({ genre: e, tags: t, locked: n, toast: r }) {
let [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), c = At({
mutationFn: (t) => Aae(e, t),
onSuccess: async (t, n) => {
@@ -42876,7 +42883,7 @@ function hle({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function gle({ row: e, tags: t, locked: n, toast: r }) {
+function _le({ row: e, tags: t, locked: n, toast: r }) {
let i = Dae(e);
return i.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
role: "group",
@@ -42885,7 +42892,7 @@ function gle({ row: e, tags: t, locked: n, toast: r }) {
children: [/* @__PURE__ */ (0, L.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, L.jsx)(hle, {
+ }), i.map((e) => /* @__PURE__ */ (0, L.jsx)(gle, {
genre: e,
tags: t,
locked: n,
@@ -42895,9 +42902,9 @@ function gle({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var fL = (e = "") => /^https?:\/\//i.test(e) ? e : "", _le = (e = "") => fL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+var fL = (e = "") => /^https?:\/\//i.test(e) ? e : "", vle = (e = "") => fL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
function pL({ url: e }) {
- let t = _le(e || ""), [n, r] = (0, I.useState)(!1);
+ let t = vle(e || ""), [n, r] = (0, I.useState)(!1);
return /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
children: t && !n ? /* @__PURE__ */ (0, L.jsx)("img", {
@@ -42945,7 +42952,7 @@ function mL({ asset: e, openItem: t }) {
})]
});
}
-function vle({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+function yle({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, L.jsx)("button", {
@@ -42968,7 +42975,7 @@ function vle({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
})]
});
}
-function yle({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
+function ble({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
let o = fL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, L.jsxs)("section", {
className: "flex flex-col gap-3",
@@ -43037,7 +43044,7 @@ function yle({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
]
});
}
-function ble({ assets: e, picked: t, onPicked: n, locked: r }) {
+function xle({ assets: e, picked: t, onPicked: n, locked: r }) {
let [i, a] = (0, I.useState)(null), o = new Set(t), s = (t, s) => {
if (r) return;
let c = new Set(o);
@@ -43113,19 +43120,19 @@ function ble({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var xle = Rw({
+var Sle = Rw({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), hL = "flex min-h-6 min-w-0 items-center", Sle = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function Cle(e) {
+}), hL = "flex min-h-6 min-w-0 items-center", Cle = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+function wle(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, I.useRef)(!1), m = DO(), h = DO(), g = t === "metadata_fields", _ = vae[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = wae(t, n), x = Dk(t, n), S = Ek(t, n), C = Tae(n), w = Eae(n), T = Tk(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-3",
children: E.map((e) => /* @__PURE__ */ (0, L.jsx)(mL, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : y ? /* @__PURE__ */ (0, L.jsx)(vle, {
+ }) : y ? /* @__PURE__ */ (0, L.jsx)(yle, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -43142,7 +43149,7 @@ function Cle(e) {
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, A = g ? /* @__PURE__ */ (0, L.jsx)(mle, {
+ }) : null, A = g ? /* @__PURE__ */ (0, L.jsx)(hle, {
row: n,
fieldName: x,
value: r.candidateKey,
@@ -43151,7 +43158,7 @@ function Cle(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, L.jsx)(ble, {
+ }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, L.jsx)(xle, {
assets: D,
picked: r.assets,
locked: s,
@@ -43164,7 +43171,7 @@ function Cle(e) {
icon: TS,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, L.jsx)(yle, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, L.jsx)(ble, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
@@ -43193,7 +43200,7 @@ function Cle(e) {
return /* @__PURE__ */ (0, L.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
- className: `${xle} ${Sle(t)} overflow-hidden`,
+ className: `${Sle} ${Cle(t)} overflow-hidden`,
children: [
/* @__PURE__ */ (0, L.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
@@ -43250,7 +43257,7 @@ function Cle(e) {
})
}) : null,
A,
- /* @__PURE__ */ (0, L.jsx)(gle, {
+ /* @__PURE__ */ (0, L.jsx)(_le, {
row: n,
tags: u,
locked: s,
@@ -43312,8 +43319,8 @@ function Cle(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var wle = "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 Tle({ page: e, pages: t, onPage: n }) {
+var Tle = "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 Ele({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, L.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
@@ -43350,7 +43357,7 @@ function Tle({ page: e, pages: t, onPage: n }) {
]
});
}
-function Ele(e) {
+function Dle(e) {
let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, I.useState)(Ck(e.category) ? e.category : _ae), [f, p] = (0, I.useState)("candidates"), [m, h] = (0, I.useState)(""), [g, _] = (0, I.useState)(1), [v, y] = (0, I.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, I.useState)(/* @__PURE__ */ new Map()), [S, C] = (0, I.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, I.useState)(""), E = (0, I.useRef)(null), [D, O] = (0, I.useState)(0), [k, A] = (0, I.useState)(""), j = (0, I.useRef)(!0);
(0, I.useEffect)(() => () => {
j.current = !1;
@@ -43455,7 +43462,7 @@ function Ele(e) {
}) : void 0,
children: ge
}) : null,
- /* @__PURE__ */ (0, L.jsx)(ple, { tags: _e }),
+ /* @__PURE__ */ (0, L.jsx)(mle, { tags: _e }),
/* @__PURE__ */ (0, L.jsxs)(uO, {
selectedKey: u,
onSelectionChange: (e) => {
@@ -43476,7 +43483,7 @@ function Ele(e) {
let t = Number(M.counts[e] || 0);
return /* @__PURE__ */ (0, L.jsxs)(fO, {
id: e,
- className: wle,
+ className: Tle,
children: [Sk[e], t ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
@@ -43488,7 +43495,7 @@ function Ele(e) {
id: u,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- N.length && !te ? /* @__PURE__ */ (0, L.jsx)(dle, {
+ N.length && !te ? /* @__PURE__ */ (0, L.jsx)(fle, {
groupOptions: P,
groupBy: F,
onGroupBy: (e) => {
@@ -43529,7 +43536,7 @@ function Ele(e) {
})]
}) : null, /* @__PURE__ */ (0, L.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, L.jsx)(Cle, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, L.jsx)(wle, {
category: u,
row: e,
choice: ce(e),
@@ -43557,7 +43564,7 @@ function Ele(e) {
title: "暂无候选",
children: "该分类当前没有待人工复核的项目。"
}),
- /* @__PURE__ */ (0, L.jsx)(Tle, {
+ /* @__PURE__ */ (0, L.jsx)(Ele, {
page: ie.page,
pages: ie.pages,
onPage: _
@@ -43570,8 +43577,8 @@ function Ele(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var Dle = "/api/scraping", Ole = "/api/scraping/settings", kle = "/api/scraping/check", gL = "/api/scraping/cover", Ale = "/api/scraping/amane-bridge", jle = "/api/scraping/amane-bridge/check", Mle = "/api/scraping/amane-bridge/rebuild", _L = ["scraping"], vL = ["scraping", "cover"], yL = ["scraping", "amane-bridge"], bL = (e) => Aw(Dle, e), xL = (e) => Aw(gL, e), SL = (e) => Aw(Ale, e);
-async function Nle(e) {
+var Ole = "/api/scraping", kle = "/api/scraping/settings", Ale = "/api/scraping/check", gL = "/api/scraping/cover", jle = "/api/scraping/amane-bridge", Mle = "/api/scraping/amane-bridge/check", Nle = "/api/scraping/amane-bridge/rebuild", _L = ["scraping"], vL = ["scraping", "cover"], yL = ["scraping", "amane-bridge"], bL = (e) => Aw(Ole, e), xL = (e) => Aw(gL, e), SL = (e) => Aw(jle, e);
+async function Ple(e) {
await Promise.all([
X.fetchQuery({
queryKey: _L,
@@ -43587,13 +43594,13 @@ async function Nle(e) {
})
]);
}
-function Ple(e, t) {
+function Fle(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 Fle = [["peach", "Peach 代理"], ["direct", "直接连接"]], CL = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function Ile({ source: e }) {
+var Ile = [["peach", "Peach 代理"], ["direct", "直接连接"]], CL = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function Lle({ source: e }) {
return /* @__PURE__ */ (0, L.jsx)("img", {
src: f({ source: e }),
alt: "",
@@ -43604,13 +43611,13 @@ function Ile({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function Lle({ source: e, toast: t }) {
+function Rle({ source: e, toast: t }) {
let [n, r] = (0, I.useState)(e.network), [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), [c, l] = (0, I.useState)(CL[0][0]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), m = (0, I.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
let g = At({
- mutationFn: (t) => q(Ole, {
+ mutationFn: (t) => q(kle, {
source: e.source,
network: n,
cookie: i,
@@ -43623,7 +43630,7 @@ function Lle({ source: e, toast: t }) {
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = At({ mutationFn: () => q(kle, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = At({ mutationFn: () => q(Ale, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -43653,7 +43660,7 @@ function Lle({ source: e, toast: t }) {
onSubmit: y,
aside: /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, L.jsx)(Ile, { source: e.source }), /* @__PURE__ */ (0, L.jsx)(nj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Lle, { source: e.source }), /* @__PURE__ */ (0, L.jsx)(nj, {
href: e.login,
children: e.login
})]
@@ -43667,7 +43674,7 @@ function Lle({ source: e, toast: t }) {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: Fle.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Cj, {
+ children: Ile.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Cj, {
id: e,
children: t
}, e))
@@ -43700,10 +43707,10 @@ function Lle({ source: e, toast: t }) {
onChange: (e) => {
l(e), h();
},
- className: CM,
+ className: SM,
children: CL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ID, {
value: e,
- className: wM,
+ className: CM,
children: t
}, e))
}),
@@ -43745,7 +43752,7 @@ function Lle({ source: e, toast: t }) {
C ? /* @__PURE__ */ (0, L.jsx)(ej, { children: C }) : null,
w.map((t) => /* @__PURE__ */ (0, L.jsx)(J, {
tone: t.ok ? "success" : "error",
- children: Ple(t, e.label)
+ children: Fle(t, e.label)
}, t.label))
]
}) : null,
@@ -43771,7 +43778,7 @@ function Lle({ source: e, toast: t }) {
]
});
}
-function Rle({ toast: e }) {
+function zle({ toast: e }) {
let [t, n] = (0, I.useState)(""), { running: r, outcome: i, start: a } = Dj({
queryKey: vL,
queryFn: ({ signal: e }) => xL(e),
@@ -43817,11 +43824,11 @@ function Rle({ toast: e }) {
] })
});
}
-function zle({ toast: e }) {
+function Ble({ toast: e }) {
let { query: t, running: n, outcome: r, start: i } = Dj({
queryKey: yL,
queryFn: ({ signal: e }) => SL(e),
- start: () => q(Mle, {}),
+ start: () => q(Nle, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -43830,7 +43837,7 @@ function zle({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = At({ mutationFn: () => q(jle, {}) }), o = t.data;
+ }), a = At({ mutationFn: () => q(Mle, {}) }), o = t.data;
if (!o) return t.error ? /* @__PURE__ */ (0, L.jsx)(YA, {
title: "amane 桥",
children: /* @__PURE__ */ (0, L.jsx)(ZA, { children: /* @__PURE__ */ (0, L.jsx)(J, {
@@ -43900,7 +43907,7 @@ function zle({ toast: e }) {
]
});
}
-function Ble({ toast: e }) {
+function Vle({ toast: e }) {
let t = kt({
queryKey: _L,
queryFn: ({ signal: e }) => bL(e)
@@ -43910,12 +43917,12 @@ function Ble({ toast: e }) {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, L.jsx)(Rle, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, L.jsx)(Lle, {
+ /* @__PURE__ */ (0, L.jsx)(zle, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, L.jsx)(Rle, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, L.jsx)(zle, { toast: e })
+ /* @__PURE__ */ (0, L.jsx)(Ble, { toast: e })
] }) : /* @__PURE__ */ (0, L.jsx)(Hw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "读取失败",
@@ -43924,7 +43931,7 @@ function Ble({ toast: e }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var wL = "/api/configuration", Vle = "/api/pick-folder", TL = ["configuration"], EL = (e) => Aw(wL, e);
+var wL = "/api/configuration", Hle = "/api/pick-folder", TL = ["configuration"], EL = (e) => Aw(wL, e);
async function DL(e) {
await X.fetchQuery({
queryKey: TL,
@@ -43933,7 +43940,7 @@ async function DL(e) {
}
//#endregion
//#region src/react/settings/entry-links-settings.tsx
-function Hle({ initial: e, receipt: t }) {
+function Ule({ initial: e, receipt: t }) {
let [n, r] = (0, I.useState)(e.sites), i = Kw(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
@@ -43970,19 +43977,19 @@ function Hle({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function Ule({ data: e, receipt: t }) {
+function Wle({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.startup ? /* @__PURE__ */ (0, L.jsx)(Wle, {
+ children: [e.startup ? /* @__PURE__ */ (0, L.jsx)(Gle, {
startup: e.startup,
receipt: t
- }) : null, e.entry_links ? /* @__PURE__ */ (0, L.jsx)(Hle, {
+ }) : null, e.entry_links ? /* @__PURE__ */ (0, L.jsx)(Ule, {
initial: e.entry_links,
receipt: t
}) : null]
});
}
-function Wle({ startup: e, receipt: t }) {
+function Gle({ startup: e, receipt: t }) {
let [n, r] = (0, I.useState)(e.enabled), [i, a] = (0, I.useState)(e.silent), [o, s] = (0, I.useState)(e.desktop), c = Kw(), l = e.available && !e.desktop_message;
return /* @__PURE__ */ (0, L.jsxs)(YA, {
title: "开机自启",
@@ -44047,12 +44054,12 @@ var OL = /* @__PURE__ */ new Set([
"preparing",
"restarting",
"installing"
-]), Gle = [
+]), Kle = [
65,
67,
90
], kL = 120;
-function Kle({ initial: e, initialJob: t }) {
+function qle({ initial: e, initialJob: t }) {
let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(t || {
state: "idle",
progress: 0
@@ -44143,7 +44150,7 @@ function Kle({ initial: e, initialJob: t }) {
/* @__PURE__ */ (0, L.jsx)(Gw, {
label: "更新准备进度",
value: i.progress,
- stops: Gle
+ stops: Kle
}),
/* @__PURE__ */ (0, L.jsxs)($A, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
/* @__PURE__ */ (0, L.jsx)($A, { children: v })
@@ -44179,36 +44186,36 @@ function Kle({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var qle = [
+var Jle = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function Jle({ data: e, receipt: t, reopenTutorial: n }) {
+function Yle({ data: e, receipt: t, reopenTutorial: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, L.jsx)(Xle, {
+ e.automatic_updates ? /* @__PURE__ */ (0, L.jsx)(Zle, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, L.jsx)(Kle, {
+ e.updates ? /* @__PURE__ */ (0, L.jsx)(qle, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, L.jsx)(Zle, { facts: e.facts }),
- /* @__PURE__ */ (0, L.jsx)(Yle, {
+ /* @__PURE__ */ (0, L.jsx)(Qle, { facts: e.facts }),
+ /* @__PURE__ */ (0, L.jsx)(Xle, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, L.jsx)(Qle, {
+ e.uninstall ? /* @__PURE__ */ (0, L.jsx)($le, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function Yle({ receipt: e, reopenTutorial: t }) {
+function Xle({ receipt: e, reopenTutorial: t }) {
let n = Kw();
return /* @__PURE__ */ (0, L.jsxs)(YA, {
title: "安装教程",
@@ -44219,7 +44226,7 @@ function Yle({ receipt: e, reopenTutorial: t }) {
}) })]
});
}
-function Xle({ initial: e, receipt: t }) {
+function Zle({ initial: e, receipt: t }) {
let [n, r] = (0, I.useState)(e.mode), [i, a] = (0, I.useState)(e.interval_hours), o = Kw(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => q("/api/configuration/automatic-updates", {
mode: n,
@@ -44259,7 +44266,7 @@ function Xle({ initial: e, receipt: t }) {
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: qle.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Cj, {
+ children: Jle.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Cj, {
id: e,
children: t
}, e))
@@ -44279,7 +44286,7 @@ function Xle({ initial: e, receipt: t }) {
]
});
}
-function Zle({ facts: e }) {
+function Qle({ facts: e }) {
return /* @__PURE__ */ (0, L.jsx)(YA, {
title: "运行信息",
children: /* @__PURE__ */ (0, L.jsx)(rj, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(ij, {
@@ -44291,7 +44298,7 @@ function Zle({ facts: e }) {
}, e.term)) })
});
}
-function Qle({ uninstall: e, receipt: t }) {
+function $le({ uninstall: e, receipt: t }) {
let [n, r] = (0, I.useState)(!1), [i, a] = (0, I.useState)(""), o = () => void h({
title: "卸载 Peach",
danger: !0,
@@ -44340,7 +44347,7 @@ function Qle({ uninstall: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/clouddrive-guide.tsx
-var $le = [
+var eue = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -44359,12 +44366,12 @@ var $le = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], eue = [
+], tue = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function tue() {
+function nue() {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "@container flex flex-col gap-3",
children: [/* @__PURE__ */ (0, L.jsxs)($A, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, L.jsx)(nj, {
@@ -44377,14 +44384,14 @@ function tue() {
/* @__PURE__ */ (0, L.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: $le.map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {
+ children: eue.map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, L.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: eue.map(([t, n]) => /* @__PURE__ */ (0, L.jsxs)("div", {
+ children: tue.map(([t, n]) => /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, L.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -44463,13 +44470,13 @@ var AL = [
["star", "收藏"],
["tags", "主题"]
];
-function nue(e) {
+function rue(e) {
let t = e === "local" ? "" : p[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
var jL = "auto";
-function rue({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, I.useRef)(null), [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(e), [l, u] = nue(n);
+function iue({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, I.useRef)(null), [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(e), [l, u] = rue(n);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
ref: i,
variant: "secondary",
@@ -44533,8 +44540,8 @@ function rue({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var iue = "/api/configuration/push-discovery", aue = "/api/configuration/push-discovery/secret";
-function oue({ initial: e, receipt: t }) {
+var aue = "/api/configuration/push-discovery", oue = "/api/configuration/push-discovery/secret";
+function sue({ initial: e, receipt: t }) {
let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.prefixes), [o, s] = (0, I.useState)(""), c = Kw(), l = DO(), u = n.media_roots, [d, f] = (0, I.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 ? {
@@ -44551,7 +44558,7 @@ function oue({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => q(iue, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(K(e)));
+ c.run("save", (e) => q(aue, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(K(e)));
},
children: [
/* @__PURE__ */ (0, L.jsxs)(XA, { children: [
@@ -44694,7 +44701,7 @@ function oue({ initial: e, receipt: t }) {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, L.jsx)(G, {
onClick: () => {
- c.run("secret", (e) => q(aue, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(K(e)));
+ c.run("secret", (e) => q(oue, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(K(e)));
},
disabled: !n.available,
...Y(c.busy === "secret"),
@@ -44711,8 +44718,8 @@ function oue({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var sue = 8e3;
-function cue({ className: e }) {
+var cue = 8e3;
+function lue({ className: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -44729,14 +44736,14 @@ var ML = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], lue = (e) => ML.find(([t]) => t === e)?.[1] ?? e, NL = (e) => p[e] || "database", PL = (e = "") => ({
+], uue = (e) => ML.find(([t]) => t === e)?.[1] ?? e, NL = (e) => p[e] || "database", PL = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function uue(e) {
+function due(e) {
let t = e.media_sources?.filter((e) => ML.some(([t]) => t === e.location));
return t?.length ? t.map((e) => ({
path: e.path,
@@ -44746,12 +44753,12 @@ function uue(e) {
library_icon: e.library_icon || ""
})) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => PL(e));
}
-var due = (e) => !(e instanceof Ow) || e.status !== 400 ? null : e.body?.errors ?? null;
-function fue({ data: e, receipt: t }) {
+var fue = (e) => !(e instanceof Ow) || e.status !== 400 ? null : e.body?.errors ?? null;
+function pue({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.editable ? /* @__PURE__ */ (0, L.jsx)(pue, {
+ e.editable ? /* @__PURE__ */ (0, L.jsx)(mue, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, L.jsx)(J, {
@@ -44759,21 +44766,21 @@ function fue({ data: e, receipt: t }) {
title: "只读",
children: e.notice
}),
- /* @__PURE__ */ (0, L.jsx)(hue, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, L.jsx)(oue, {
+ /* @__PURE__ */ (0, L.jsx)(gue, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, L.jsx)(sue, {
initial: e.push_discovery,
receipt: t
}) : null
]
});
}
-function pue({ data: e, receipt: t }) {
- let [n, r] = (0, I.useState)(() => uue(e)), [i, a] = (0, I.useState)(String(e.port)), [o, s] = (0, I.useState)(!1), [c, l] = (0, I.useState)([]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), [m, h] = (0, I.useState)(null), [g, _] = (0, I.useState)(null), [v, y] = (0, I.useState)(null), b = (0, I.useRef)(!1), x = (0, I.useRef)(e.revision), S = (0, I.useRef)([]), C = Kw();
+function mue({ data: e, receipt: t }) {
+ let [n, r] = (0, I.useState)(() => due(e)), [i, a] = (0, I.useState)(String(e.port)), [o, s] = (0, I.useState)(!1), [c, l] = (0, I.useState)([]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), [m, h] = (0, I.useState)(null), [g, _] = (0, I.useState)(null), [v, y] = (0, I.useState)(null), b = (0, I.useRef)(!1), x = (0, I.useRef)(e.revision), S = (0, I.useRef)([]), C = Kw();
(0, I.useLayoutEffect)(() => {
g !== null && (S.current[g]?.focus(), _(null));
}, [g]), (0, I.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), sue);
+ let e = setTimeout(() => location.assign(m.url), cue);
return () => clearTimeout(e);
}, [m]);
let w = (e, t) => r((n) => n.map((n, r) => r === e ? {
@@ -44791,7 +44798,7 @@ function pue({ data: e, receipt: t }) {
if (!b.current) {
b.current = !0, y(e);
try {
- let { path: t } = await q(Vle, { initial: n[e]?.path ?? "" });
+ let { path: t } = await q(Hle, { initial: n[e]?.path ?? "" });
t && (w(e, { path: t }), T(e, ""));
} catch (t) {
T(e, K(t));
@@ -44809,7 +44816,7 @@ function pue({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = due(e);
+ let t = fue(e);
l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(K(e));
});
};
@@ -44862,7 +44869,7 @@ function pue({ data: e, receipt: t }) {
hint: c[r] || void 0
}),
/* @__PURE__ */ (0, L.jsx)(hO, {
- icon: cue,
+ icon: lue,
"aria-label": "选择文件夹",
onClick: () => void O(r),
...Y(v === r)
@@ -44885,7 +44892,7 @@ function pue({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(tj, { children: "媒体库图标" }), /* @__PURE__ */ (0, L.jsx)(rue, {
+ children: [/* @__PURE__ */ (0, L.jsx)(tj, { children: "媒体库图标" }), /* @__PURE__ */ (0, L.jsx)(iue, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
@@ -44924,7 +44931,7 @@ function pue({ data: e, receipt: t }) {
})
]
}),
- A ? /* @__PURE__ */ (0, L.jsx)(tue, {}) : null,
+ A ? /* @__PURE__ */ (0, L.jsx)(nue, {}) : null,
j.map((e) => /* @__PURE__ */ (0, L.jsxs)($A, { children: [
"未检测到 ",
e.name,
@@ -44965,7 +44972,7 @@ function pue({ data: e, receipt: t }) {
})]
});
}
-function mue({ online: e }) {
+function hue({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, L.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -44989,14 +44996,14 @@ function mue({ online: e }) {
}), "未检测"]
});
}
-function hue({ data: e }) {
+function gue({ data: e }) {
let t = e.media_sources, n = Kw();
return t ? /* @__PURE__ */ (0, L.jsxs)(YA, {
title: "挂载状态",
children: [
/* @__PURE__ */ (0, L.jsx)(rj, { children: t.map((e, t) => /* @__PURE__ */ (0, L.jsxs)(ij, {
- term: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(sj, { mark: NL(e.location) }), lue(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, L.jsx)(mue, { online: e.online })]
+ term: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(sj, { mark: NL(e.location) }), uue(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, L.jsx)(hue, { online: e.online })]
}, t)) }),
n.error ? /* @__PURE__ */ (0, L.jsx)(ZA, {
divided: !0,
@@ -45012,12 +45019,12 @@ function hue({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var gue = {
+var _ue = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function _ue({ initial: e, receipt: t }) {
+function vue({ initial: e, receipt: t }) {
let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), [c, l] = (0, I.useState)(""), [u, d] = (0, I.useState)(!1), [f, p] = (0, I.useState)({}), m = (0, I.useRef)(null), h = Kw(), g = (e) => {
e.preventDefault();
let f = {};
@@ -45038,7 +45045,7 @@ function _ue({ initial: e, receipt: t }) {
let t = e instanceof Ow ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(K(e));
});
- }, _ = gue[n.mode], v = n.mode !== "locked";
+ }, _ = _ue[n.mode], v = n.mode !== "locked";
return /* @__PURE__ */ (0, L.jsxs)(YA, {
title: "访问密码",
onSubmit: g,
@@ -45115,11 +45122,11 @@ function _ue({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var vue = 2e3, yue = [["quick", "临时链接"], ["named", "命名隧道"]], bue = {
+var yue = 2e3, bue = [["quick", "临时链接"], ["named", "命名隧道"]], xue = {
quick: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。",
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
-function xue({ revision: e, initial: t, receipt: n }) {
+function Sue({ revision: e, initial: t, receipt: n }) {
let [r, i] = (0, I.useState)(t), [a, o] = (0, I.useState)(e), [s, c] = (0, I.useState)(t.mode), [l, u] = (0, I.useState)(t.hostname), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)({}), h = Kw(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, I.useEffect)(() => {
if (r.state !== "starting") return;
@@ -45127,7 +45134,7 @@ function xue({ revision: e, initial: t, receipt: n }) {
EL(e.signal).then((t) => {
e.signal.aborted || !t.tunnel || (X.setQueryData(TL, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, vue);
+ }, yue);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -45157,14 +45164,14 @@ function xue({ revision: e, initial: t, receipt: n }) {
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: CM,
- children: yue.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ID, {
+ className: SM,
+ children: bue.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ID, {
value: e,
- className: wM,
+ className: CM,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, L.jsx)($A, { children: bue[_ ? "named" : "quick"] }),
+ /* @__PURE__ */ (0, L.jsx)($A, { children: xue[_ ? "named" : "quick"] }),
_ ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(tM, {
id: "tunnel-hostname",
label: "公开主机名",
@@ -45224,24 +45231,24 @@ function xue({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var Sue = [
+var Cue = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function Cue({ data: e, receipt: t }) {
+function wue({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, L.jsx)(wue, {
+ e.peach_proxy ? /* @__PURE__ */ (0, L.jsx)(Tue, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, L.jsx)(_ue, {
+ e.access ? /* @__PURE__ */ (0, L.jsx)(vue, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, L.jsx)(xue, {
+ e.tunnel ? /* @__PURE__ */ (0, L.jsx)(Sue, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -45249,7 +45256,7 @@ function Cue({ data: e, receipt: t }) {
]
});
}
-function wue({ initial: e, receipt: t }) {
+function Tue({ initial: e, receipt: t }) {
let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.mode), [o, s] = (0, I.useState)(""), c = Kw();
return /* @__PURE__ */ (0, L.jsxs)(YA, {
id: "peachProxy",
@@ -45272,7 +45279,7 @@ function wue({ initial: e, receipt: t }) {
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: Sue.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Cj, {
+ children: Cue.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Cj, {
id: e,
children: t
}, e))
@@ -45308,7 +45315,7 @@ function wue({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function Tue({ receipt: e, reopenTutorial: t }) {
+function Eue({ receipt: e, reopenTutorial: t }) {
let n = kt({
queryKey: TL,
queryFn: ({ signal: e }) => EL(e)
@@ -45332,22 +45339,22 @@ function Tue({ receipt: e, reopenTutorial: t }) {
className: "configgroup",
children: "通用"
}) : null,
- a ? /* @__PURE__ */ (0, L.jsx)(Ule, { ...i }) : null,
+ a ? /* @__PURE__ */ (0, L.jsx)(Wle, { ...i }) : null,
/* @__PURE__ */ (0, L.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, L.jsx)(fue, { ...i }),
+ /* @__PURE__ */ (0, L.jsx)(pue, { ...i }),
o ? /* @__PURE__ */ (0, L.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- o ? /* @__PURE__ */ (0, L.jsx)(Cue, { ...i }) : null,
+ o ? /* @__PURE__ */ (0, L.jsx)(wue, { ...i }) : null,
/* @__PURE__ */ (0, L.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ (0, L.jsx)(Jle, {
+ /* @__PURE__ */ (0, L.jsx)(Yle, {
...i,
reopenTutorial: t
})
@@ -45356,11 +45363,11 @@ function Tue({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/react/settings/configuration-summary.tsx
-var Eue = (e) => {
+var Due = (e) => {
let t = e.updates;
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
-function Due({ openConfiguration: e }) {
+function Oue({ openConfiguration: e }) {
let t = kt({
queryKey: TL,
queryFn: ({ signal: e }) => EL(e)
@@ -45378,7 +45385,7 @@ function Due({ openConfiguration: e }) {
}),
/* @__PURE__ */ (0, L.jsx)(ij, {
term: "更新",
- children: Eue(n)
+ children: Due(n)
})
] }) : /* @__PURE__ */ (0, L.jsx)(ZA, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -45395,14 +45402,14 @@ function Due({ openConfiguration: e }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var Oue = "/api/stats", FL = ["stats"], IL = (e) => Aw(Oue, e);
-async function kue(e) {
+var kue = "/api/stats", FL = ["stats"], IL = (e) => Aw(kue, e);
+async function Aue(e) {
await X.fetchQuery({
queryKey: FL,
queryFn: () => IL(e)
});
}
-var LL = (e, t) => t ? Math.round(e / t * 100) : 0, Aue = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, RL = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, zL = (e) => (e.max_reached || 0) * 100, jue = (e) => e.kind === "online" ? "在线直接观看" : RL(e) < zL(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Mue = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, Nue = (e) => Math.max(1, ...e) * 1.1, Pue = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), Fue = {
+var LL = (e, t) => t ? Math.round(e / t * 100) : 0, jue = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, RL = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, zL = (e) => (e.max_reached || 0) * 100, Mue = (e) => e.kind === "online" ? "在线直接观看" : RL(e) < zL(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Nue = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, Pue = (e) => Math.max(1, ...e) * 1.1, Fue = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), Iue = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -45410,10 +45417,10 @@ var LL = (e, t) => t ? Math.round(e / t * 100) : 0, Aue = (e) => e >= 3600 ? `${
audio: "音频",
account: "账号",
other: "其它文件"
-}, Iue = (e) => e.map((e) => ({
- name: Fue[e.k] ?? e.k,
+}, Lue = (e) => e.map((e) => ({
+ name: Iue[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), Lue = {
+})).sort((e, t) => t.value - e.value), Rue = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
@@ -45421,7 +45428,7 @@ var LL = (e, t) => t ? Math.round(e / t * 100) : 0, Aue = (e) => e >= 3600 ? `${
}, BL = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), Rue = (e) => BL(e, Lue), zue = [
+})), zue = (e) => BL(e, Rue), Bue = [
[
1,
1,
@@ -45457,18 +45464,18 @@ var LL = (e, t) => t ? Math.round(e / t * 100) : 0, Aue = (e) => e >= 3600 ? `${
Infinity,
"≥10 次"
]
-], Bue = (e) => zue.map(([t, n, r]) => ({
+], Vue = (e) => Bue.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), Vue = /* @__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(".");
+})), Hue = /* @__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 VL(e) {
- return typeof e == "string" && Vue.includes(e);
+ return typeof e == "string" && Hue.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
-var Hue = /* @__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("."));
+var Uue = /* @__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 HL(e) {
- return typeof e == "string" && Hue.has(e);
+ return typeof e == "string" && Uue.has(e);
}
function UL(e) {
return typeof e == "string" && e.startsWith("data-");
@@ -45494,12 +45501,12 @@ function KL(e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (HL(n) || UL(n) || VL(n)) && (t[n] = e[n]);
return t;
}
-function Uue(e) {
+function Wue(e) {
return e == null ? null : /*#__PURE__*/ (0, I.isValidElement)(e) ? KL(e.props) : typeof e == "object" && !Array.isArray(e) ? KL(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var Wue = [
+var Gue = [
"children",
"width",
"height",
@@ -45518,16 +45525,16 @@ function qL() {
return e;
}, qL.apply(null, arguments);
}
-function Gue(e, t) {
+function Kue(e, t) {
if (e == null) return {};
- var n, r, i = Kue(e, t);
+ var n, r, i = que(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 Kue(e, t) {
+function que(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -45537,7 +45544,7 @@ function Kue(e, t) {
return n;
}
var JL = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = Gue(e, Wue), d = a || {
+ var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = Kue(e, Gue), d = a || {
width: r,
height: i,
x: 0,
@@ -45551,7 +45558,7 @@ var JL = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,
ref: t
}), /*#__PURE__*/ I.createElement("title", null, c), /*#__PURE__*/ I.createElement("desc", null, l), n);
-}), que = ["children", "className"];
+}), Jue = ["children", "className"];
function YL() {
return YL = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -45561,16 +45568,16 @@ function YL() {
return e;
}, YL.apply(null, arguments);
}
-function Jue(e, t) {
+function Yue(e, t) {
if (e == null) return {};
- var n, r, i = Yue(e, t);
+ var n, r, i = Xue(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 Yue(e, t) {
+function Xue(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -45580,9 +45587,9 @@ function Yue(e, t) {
return n;
}
var XL = /*#__PURE__*/ I.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = Jue(e, que), a = Wm("recharts-layer", r);
+ var { children: n, className: r } = e, i = Yue(e, Jue), a = Wm("recharts-layer", r);
return /*#__PURE__*/ I.createElement("g", YL({ className: a }, KL(i), { ref: t }), n);
-}), ZL = /*#__PURE__*/ (0, I.createContext)(null), Xue = () => (0, I.useContext)(ZL);
+}), ZL = /*#__PURE__*/ (0, I.createContext)(null), Zue = () => (0, I.useContext)(ZL);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
function QL(e) {
@@ -45594,12 +45601,12 @@ function QL(e) {
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
var $L = Math.cos, eR = Math.sin, tR = Math.sqrt, nR = Math.PI;
nR / 2;
-var rR = 2 * nR, iR = Math.PI, aR = 2 * iR, oR = 1e-6, Zue = aR - oR;
+var rR = 2 * nR, iR = Math.PI, aR = 2 * iR, oR = 1e-6, Que = aR - oR;
function sR(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function Que(e) {
+function $ue(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
if (t > 15) return sR;
@@ -45611,7 +45618,7 @@ function Que(e) {
}
var cR = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? sR : Que(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? sR : $ue(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -45643,7 +45650,7 @@ var cR = class {
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) > oR || Math.abs(this._y1 - l) > oR) && this._append`L${c},${l}`, n && (d < 0 && (d = d % aR + aR), d > Zue ? 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 > oR && this._append`A${n},${n},0,${+(d >= iR)},${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) > oR || Math.abs(this._y1 - l) > oR) && this._append`L${c},${l}`, n && (d < 0 && (d = d % aR + aR), d > Que ? 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 > oR && this._append`A${n},${n},0,${+(d >= iR)},${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`;
@@ -45810,10 +45817,10 @@ var _R = class {
this._x0 = e, this._y0 = t;
}
};
-function $ue(e) {
+function ede(e) {
return new _R(e, !0);
}
-function ede(e) {
+function tde(e) {
return new _R(e, !1);
}
//#endregion
@@ -45821,33 +45828,33 @@ function ede(e) {
var vR = { draw(e, t) {
let n = tR(t / nR);
e.moveTo(n, 0), e.arc(0, 0, n, 0, rR);
-} }, tde = { draw(e, t) {
+} }, nde = { draw(e, t) {
let n = tR(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();
-} }, yR = tR(1 / 3), nde = yR * 2, rde = { draw(e, t) {
- let n = tR(t / nde), r = n * yR;
+} }, yR = tR(1 / 3), rde = yR * 2, ide = { draw(e, t) {
+ let n = tR(t / rde), r = n * yR;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, ide = { draw(e, t) {
+} }, ade = { draw(e, t) {
let n = tR(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, ade = .8908130915292852, bR = eR(nR / 10) / eR(7 * nR / 10), ode = eR(rR / 10) * bR, sde = -$L(rR / 10) * bR, cde = { draw(e, t) {
- let n = tR(t * ade), r = ode * n, i = sde * n;
+} }, ode = .8908130915292852, bR = eR(nR / 10) / eR(7 * nR / 10), sde = eR(rR / 10) * bR, cde = -$L(rR / 10) * bR, lde = { draw(e, t) {
+ let n = tR(t * ode), r = sde * n, i = cde * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
let a = rR * t / 5, o = $L(a), s = eR(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, xR = tR(3), lde = { draw(e, t) {
+} }, xR = tR(3), ude = { draw(e, t) {
let n = -tR(t / (xR * 3));
e.moveTo(0, n * 2), e.lineTo(-xR * n, -n), e.lineTo(xR * n, -n), e.closePath();
-} }, SR = -.5, CR = tR(3) / 2, wR = 1 / tR(12), ude = (wR / 2 + 1) * 3, dde = { draw(e, t) {
- let n = tR(t / ude), r = n / 2, i = n * wR, a = r, o = n * wR + n, s = -a, c = o;
+} }, SR = -.5, CR = tR(3) / 2, wR = 1 / tR(12), dde = (wR / 2 + 1) * 3, fde = { draw(e, t) {
+ let n = tR(t / dde), r = n / 2, i = n * wR, a = r, o = n * wR + n, s = -a, c = o;
e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(SR * r - CR * i, CR * r + SR * i), e.lineTo(SR * a - CR * o, CR * a + SR * o), e.lineTo(SR * s - CR * c, CR * s + SR * c), e.lineTo(SR * r + CR * i, SR * i - CR * r), e.lineTo(SR * a + CR * o, SR * o - CR * a), e.lineTo(SR * s + CR * c, SR * c - CR * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function fde(e, t) {
+function pde(e, t) {
let n = null, r = lR(i);
e = typeof e == "function" ? e : QL(e || vR), t = typeof t == "function" ? t : QL(t === void 0 ? 64 : +t);
function i() {
@@ -45904,7 +45911,7 @@ DR.prototype = {
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function pde(e) {
+function mde(e) {
return new DR(e);
}
//#endregion
@@ -45945,7 +45952,7 @@ OR.prototype = {
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function mde(e) {
+function hde(e) {
return new OR(e);
}
//#endregion
@@ -45985,7 +45992,7 @@ kR.prototype = {
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function hde(e) {
+function gde(e) {
return new kR(e);
}
//#endregion
@@ -46006,7 +46013,7 @@ AR.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function gde(e) {
+function _de(e) {
return new AR(e);
}
//#endregion
@@ -46090,10 +46097,10 @@ LR.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function _de(e) {
+function vde(e) {
return new FR(e);
}
-function vde(e) {
+function yde(e) {
return new IR(e);
}
//#endregion
@@ -46131,7 +46138,7 @@ function zR(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 yde(e) {
+function bde(e) {
return new RR(e);
}
//#endregion
@@ -46167,13 +46174,13 @@ BR.prototype = {
this._x = e, this._y = t;
}
};
-function bde(e) {
+function xde(e) {
return new BR(e, .5);
}
-function xde(e) {
+function Sde(e) {
return new BR(e, 0);
}
-function Sde(e) {
+function Cde(e) {
return new BR(e, 1);
}
//#endregion
@@ -46189,17 +46196,17 @@ function HR(e) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js
-function Cde(e, t) {
+function wde(e, t) {
return e[t];
}
-function wde(e) {
+function Tde(e) {
let t = [];
return t.key = e, t;
}
-function Tde() {
- var e = QL([]), t = HR, n = VR, r = Cde;
+function Ede() {
+ var e = QL([]), t = HR, n = VR, r = wde;
function i(i) {
- var a = Array.from(e.apply(this, arguments), wde), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), Tde), 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 = uR(t(a)); o < s; ++o) a[l[o]].index = o;
return n(a, l), a;
@@ -46216,7 +46223,7 @@ function Tde() {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function Ede(e, t) {
+function Dde(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;
@@ -46227,7 +46234,7 @@ function Ede(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function Dde(e, t) {
+function Ode(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;
@@ -46238,7 +46245,7 @@ function Dde(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function Ode(e, t) {
+function kde(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) {
@@ -46260,12 +46267,12 @@ function UR(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var kde = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+var Ade = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
function WR(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : kde.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : Ade.test(e);
default: return !1;
}
}
@@ -46281,7 +46288,7 @@ function KR(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function Ade(e) {
+function jde(e) {
return e == null ? "" : qR(e);
}
function qR(e) {
@@ -46296,7 +46303,7 @@ function qR(e) {
function JR(e) {
if (Array.isArray(e)) return e.map(GR);
if (typeof e == "symbol") return [e];
- e = Ade(e);
+ e = jde(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -46339,14 +46346,14 @@ function YR(e, t, n) {
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return jde(e, t, n);
+ if (Array.isArray(t)) return Mde(e, t, n);
if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), UR(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function jde(e, t, n) {
+function Mde(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
@@ -46357,9 +46364,9 @@ function jde(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var Mde = 4;
+var Nde = 4;
function XR(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Mde), n = Math.round(e * t) / t;
+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Nde), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
function ZR(e) {
@@ -46371,8 +46378,8 @@ function ZR(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var QR = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, $R = (e) => typeof e == "number" && e != +e, ez = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !$R(e), tz = (e) => Z(e) || typeof e == "string", Nde = 0, nz = (e) => {
- var t = ++Nde;
+var QR = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, $R = (e) => typeof e == "number" && e != +e, ez = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !$R(e), tz = (e) => Z(e) || typeof e == "string", Pde = 0, nz = (e) => {
+ var t = ++Pde;
return `${e || ""}${t}`;
}, rz = 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];
@@ -46403,7 +46410,7 @@ function lz(e) {
function uz() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var Pde = [
+var Fde = [
"type",
"size",
"sizeType"
@@ -46431,26 +46438,26 @@ function pz(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? fz(Object(n), !0).forEach(function(t) {
- Fde(e, t, n[t]);
+ Ide(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 Fde(e, t, n) {
- return (t = Ide(t)) in e ? Object.defineProperty(e, t, {
+function Ide(e, t, n) {
+ return (t = Lde(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Ide(e) {
- var t = Lde(e, "string");
+function Lde(e) {
+ var t = Rde(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Lde(e, t) {
+function Rde(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -46460,16 +46467,16 @@ function Lde(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Rde(e, t) {
+function zde(e, t) {
if (e == null) return {};
- var n, r, i = zde(e, t);
+ var n, r, i = Bde(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 zde(e, t) {
+function Bde(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -46480,36 +46487,36 @@ function zde(e, t) {
}
var mz = {
symbolCircle: vR,
- symbolCross: tde,
- symbolDiamond: rde,
- symbolSquare: ide,
- symbolStar: cde,
- symbolTriangle: lde,
- symbolWye: dde
-}, Bde = Math.PI / 180, Vde = (e) => mz[`symbol${cz(e)}`] || vR, Hde = (e, t, n) => {
+ symbolCross: nde,
+ symbolDiamond: ide,
+ symbolSquare: ade,
+ symbolStar: lde,
+ symbolTriangle: ude,
+ symbolWye: fde
+}, Vde = Math.PI / 180, Hde = (e) => mz[`symbol${cz(e)}`] || vR, Ude = (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 * Bde;
+ var r = 18 * Vde;
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;
}
-}, Ude = (e, t) => {
+}, Wde = (e, t) => {
mz[`symbol${cz(e)}`] = t;
}, hz = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = pz(pz({}, Rde(e, Pde)), {}, {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = pz(pz({}, zde(e, Fde)), {}, {
type: t,
size: n,
sizeType: r
}), a = "circle";
typeof t == "string" && (a = t);
var o = () => {
- var e = Vde(a), t = fde().type(e).size(Hde(n, r, a))();
+ var e = Hde(a), t = pde().type(e).size(Ude(n, r, a))();
if (t !== null) return t;
}, { className: s, cx: c, cy: l } = i, u = KL(i);
return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ I.createElement("path", dz({}, u, {
@@ -46518,7 +46525,7 @@ var mz = {
d: o()
})) : null;
};
-hz.registerSymbol = Ude;
+hz.registerSymbol = Wde;
//#endregion
//#region node_modules/recharts/es6/util/types.js
var gz = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, _z = (e, t) => {
@@ -46529,12 +46536,12 @@ var gz = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, _z = (e,
return Object.keys(n).forEach((e) => {
VL(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, Wde = (e, t, n) => (r) => (e(t, n, r), null), vz = (e, t, n) => {
+}, Gde = (e, t, n) => (r) => (e(t, n, r), null), vz = (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];
- VL(i) && typeof a == "function" && (r ||= {}, r[i] = Wde(a, t, n));
+ VL(i) && typeof a == "function" && (r ||= {}, r[i] = Gde(a, t, n));
}), r;
};
//#endregion
@@ -46549,30 +46556,30 @@ function yz(e, t) {
}
return n;
}
-function Gde(e) {
+function Kde(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? yz(Object(n), !0).forEach(function(t) {
- Kde(e, t, n[t]);
+ qde(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Kde(e, t, n) {
- return (t = qde(t)) in e ? Object.defineProperty(e, t, {
+function qde(e, t, n) {
+ return (t = Jde(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qde(e) {
- var t = Jde(e, "string");
+function Jde(e) {
+ var t = Yde(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Jde(e, t) {
+function Yde(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -46583,7 +46590,7 @@ function Jde(e, t) {
return (t === "string" ? String : Number)(e);
}
function bz(e, t) {
- var n = Gde({}, e), r = t;
+ var n = Kde({}, 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
@@ -46611,26 +46618,26 @@ function Cz(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) {
- Yde(e, t, n[t]);
+ Xde(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Sz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Yde(e, t, n) {
- return (t = Xde(t)) in e ? Object.defineProperty(e, t, {
+function Xde(e, t, n) {
+ return (t = Zde(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Xde(e) {
- var t = Zde(e, "string");
+function Zde(e) {
+ var t = Qde(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Zde(e, t) {
+function Qde(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -46640,7 +46647,7 @@ function Zde(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var wz = 32, Qde = {
+var wz = 32, $de = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -46648,17 +46655,17 @@ var wz = 32, Qde = {
verticalAlign: "middle",
labelStyle: {}
};
-function $de(e) {
+function efe(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function efe(e) {
+function tfe(e) {
var { data: t, iconType: n, inactiveColor: r } = e, i = wz / 2, a = wz / 6, o = wz / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ I.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
- strokeDasharray: $de(t.payload),
+ strokeDasharray: efe(t.payload),
x1: 0,
y1: i,
x2: wz,
@@ -46694,7 +46701,7 @@ function efe(e) {
type: c
});
}
-function tfe(e) {
+function nfe(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
@@ -46728,7 +46735,7 @@ function tfe(e) {
viewBox: c,
style: u,
"aria-label": `${m} legend icon`
- }, /*#__PURE__*/ I.createElement(efe, {
+ }, /*#__PURE__*/ I.createElement(tfe, {
data: t,
iconType: o,
inactiveColor: a
@@ -46738,8 +46745,8 @@ function tfe(e) {
}, m));
});
}
-var nfe = (e) => {
- var t = bz(e, Qde), { payload: n, layout: r, align: i } = t;
+var rfe = (e) => {
+ var t = bz(e, $de), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -46749,11 +46756,11 @@ var nfe = (e) => {
return /*#__PURE__*/ I.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ I.createElement(tfe, xz({}, t, { payload: n })));
+ }, /*#__PURE__*/ I.createElement(nfe, xz({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function rfe(e, t) {
+function ife(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -46763,7 +46770,7 @@ function rfe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function ife(e, t) {
+function afe(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
@@ -46775,17 +46782,17 @@ function Tz(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function afe(e) {
+function ofe(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
function Ez(e) {
- return e != null && typeof e != "function" && afe(e.length);
+ return e != null && typeof e != "function" && ofe(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function ofe(e) {
+function sfe(e) {
return function(t) {
return YR(t, e);
};
@@ -46797,12 +46804,12 @@ function Dz(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function sfe(e) {
+function cfe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function cfe(e) {
+function lfe(e) {
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
//#endregion
@@ -46812,17 +46819,17 @@ function Oz(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs
-var lfe = "[object RegExp]", kz = "[object String]", Az = "[object Number]", jz = "[object Boolean]", Mz = "[object Arguments]", ufe = "[object Symbol]", dfe = "[object Date]", ffe = "[object Map]", pfe = "[object Set]", mfe = "[object Array]", hfe = "[object ArrayBuffer]", gfe = "[object Object]", _fe = "[object DataView]", vfe = "[object Uint8Array]", yfe = "[object Uint8ClampedArray]", bfe = "[object Uint16Array]", xfe = "[object Uint32Array]", Sfe = "[object Int8Array]", Cfe = "[object Int16Array]", wfe = "[object Int32Array]", Tfe = "[object Float32Array]", Efe = "[object Float64Array]", Nz = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var ufe = "[object RegExp]", kz = "[object String]", Az = "[object Number]", jz = "[object Boolean]", Mz = "[object Arguments]", dfe = "[object Symbol]", ffe = "[object Date]", pfe = "[object Map]", mfe = "[object Set]", hfe = "[object Array]", gfe = "[object ArrayBuffer]", _fe = "[object Object]", vfe = "[object DataView]", yfe = "[object Uint8Array]", bfe = "[object Uint8ClampedArray]", xfe = "[object Uint16Array]", Sfe = "[object Uint32Array]", Cfe = "[object Int8Array]", wfe = "[object Int16Array]", Tfe = "[object Int32Array]", Efe = "[object Float32Array]", Dfe = "[object Float64Array]", Nz = 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 Dfe(e) {
+function Ofe(e) {
return Nz.Buffer !== void 0 && Nz.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function Ofe(e, t) {
+function kfe(e, t) {
return Pz(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
function Pz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
@@ -46853,8 +46860,8 @@ function Pz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
for (let a of e) t.add(Pz(a, void 0, n, r, i));
return t;
}
- if (Dfe(e)) return e.subarray();
- if (sfe(e)) {
+ if (Ofe(e)) return e.subarray();
+ if (cfe(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
for (let a = 0; a < e.length; a++) t[a] = Pz(e[a], a, n, r, i);
@@ -46889,49 +46896,49 @@ function Pz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let t = new String(e.valueOf());
return r.set(e, t), Fz(t, e, n, r, i), t;
}
- if (typeof e == "object" && kfe(e)) {
+ if (typeof e == "object" && Afe(e)) {
let t = Object.create(Object.getPrototypeOf(e));
return r.set(e, t), Fz(t, e, n, r, i), t;
}
return e;
}
function Fz(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...cfe(t)];
+ let a = [...Object.keys(t), ...lfe(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
(c == null || c.writable) && (e[s] = Pz(t[s], s, n, r, i));
}
}
-function kfe(e) {
+function Afe(e) {
switch (Oz(e)) {
case Mz:
- case mfe:
case hfe:
- case _fe:
+ case gfe:
+ case vfe:
case jz:
- case dfe:
- case Tfe:
+ case ffe:
case Efe:
- case Sfe:
+ case Dfe:
case Cfe:
case wfe:
- case ffe:
- case Az:
- case gfe:
- case lfe:
+ case Tfe:
case pfe:
- case kz:
+ case Az:
+ case _fe:
case ufe:
- case vfe:
+ case mfe:
+ case kz:
+ case dfe:
case yfe:
case bfe:
- case xfe: return !0;
+ case xfe:
+ case Sfe: return !0;
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
-function Afe(e) {
+function jfe(e) {
return Pz(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
@@ -46955,16 +46962,16 @@ function Rz(e, t, n) {
function zz(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return jfe(e, t, n, r, i);
+ case "object": return Mfe(e, t, n, r, i);
case "function": return Object.keys(t).length > 0 ? zz(e, { ...t }, n, r, i) : Iz(e, t);
default: return Lz(e) && i ? typeof t != "string" || t === "" : Iz(e, t);
}
}
-function jfe(e, t, n, r, i = !1) {
+function Mfe(e, t, n, r, i = !1) {
if (t == null) return !0;
if (Array.isArray(t)) return Bz(e, t, n, r);
- if (t instanceof Map) return Mfe(e, t, n, r);
- if (t instanceof Set) return Nfe(e, t, n, r);
+ if (t instanceof Map) return Nfe(e, t, n, r);
+ if (t instanceof Set) return Pfe(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
if (i) Dz(e) && (e = Object(e));
@@ -46985,7 +46992,7 @@ function jfe(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function Mfe(e, t, n, r) {
+function Nfe(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;
@@ -47009,7 +47016,7 @@ function Bz(e, t, n, r) {
}
return !0;
}
-function Nfe(e, t, n, r) {
+function Pfe(e, t, n, r) {
return t.size === 0 || e instanceof Set && Bz([...e], [...t], n, r);
}
//#endregion
@@ -47019,13 +47026,13 @@ function Vz(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function Pfe(e) {
- return e = Afe(e), (t) => Vz(t, e);
+function Ffe(e) {
+ return e = jfe(e), (t) => Vz(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function Ffe(e, t) {
- return Ofe(e, (n, r, i, a) => {
+function Ife(e, t) {
+ return kfe(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
@@ -47051,49 +47058,49 @@ function Ffe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function Ife(e) {
- return Ffe(e);
+function Lfe(e) {
+ return Ife(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var Lfe = /^(?:0|[1-9]\d*)$/;
+var Rfe = /^(?:0|[1-9]\d*)$/;
function Hz(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 Lfe.test(e);
+ case "string": return Rfe.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function Rfe(e) {
+function zfe(e) {
return typeof e == "object" && !!e && Oz(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function zfe(e, t) {
+function Bfe(e, t) {
let n;
if (n = Array.isArray(t) ? t : typeof t == "string" && WR(t) && !(t in Object(e)) ? JR(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
let t = GR(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || Rfe(r)) && Hz(t) && Number(t) < r.length)) return !1;
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || zfe(r)) && Hz(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function Bfe(e, t) {
+function Vfe(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
case "number": e = GR(e);
}
- return t = Ife(t), function(n) {
+ return t = Lfe(t), function(n) {
let r = YR(n, e);
- return r === void 0 ? zfe(n, e) : t === void 0 ? r === void 0 : Vz(r, t);
+ return r === void 0 ? Bfe(n, e) : t === void 0 ? r === void 0 : Vz(r, t);
};
}
//#endregion
@@ -47102,19 +47109,19 @@ function Uz(e) {
if (e == null) return Tz;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? Bfe(e[0], e[1]) : Pfe(e);
- default: return ofe(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? Vfe(e[0], e[1]) : Ffe(e);
+ default: return sfe(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function Vfe(e) {
+function Hfe(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
function Wz(e, t = Tz) {
- return Ez(e) ? rfe(Array.from(e), ife(Uz(t), 1)).map(Vfe) : [];
+ return Ez(e) ? ife(Array.from(e), afe(Uz(t), 1)).map(Hfe) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
@@ -47123,7 +47130,7 @@ function Gz(e, t, n) {
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var Hfe = /* @__PURE__ */ M(((e) => {
+var Ufe = /* @__PURE__ */ M(((e) => {
var t = ne(), n = vh();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -47168,53 +47175,53 @@ var Hfe = /* @__PURE__ */ M(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), Ufe = /* @__PURE__ */ M(((e, t) => {
- t.exports = Hfe();
-})), Kz = /*#__PURE__*/ (0, I.createContext)(null), Wfe = Ufe(), Gfe = (e) => e, qz = () => {
+})), Wfe = /* @__PURE__ */ M(((e, t) => {
+ t.exports = Ufe();
+})), Kz = /*#__PURE__*/ (0, I.createContext)(null), Gfe = Wfe(), Kfe = (e) => e, qz = () => {
var e = (0, I.useContext)(Kz);
- return e ? e.store.dispatch : Gfe;
-}, Jz = () => {}, Kfe = () => Jz, qfe = (e, t) => e === t;
+ return e ? e.store.dispatch : Kfe;
+}, Jz = () => {}, qfe = () => Jz, Jfe = (e, t) => e === t;
function Q(e) {
var t = (0, I.useContext)(Kz), n = (0, I.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
} : Jz, [t, e]);
- return (0, Wfe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : Kfe, t ? t.store.getState : Jz, t ? t.store.getState : Jz, n, qfe);
+ return (0, Gfe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : qfe, t ? t.store.getState : Jz, t ? t.store.getState : Jz, n, Jfe);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function Jfe(e, t = `expected a function, instead received ${typeof e}`) {
+function Yfe(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function Yfe(e, t = `expected an object, instead received ${typeof e}`) {
+function Xfe(e, t = `expected an object, instead received ${typeof e}`) {
if (typeof e != "object") throw TypeError(t);
}
-function Xfe(e, t = "expected all items to be functions, instead received the following types: ") {
+function Zfe(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 Yz = (e) => Array.isArray(e) ? e : [e];
-function Zfe(e) {
+function Qfe(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return Xfe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return Zfe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function Qfe(e, t) {
+function $fe(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var $fe = class {
+var epe = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, epe = typeof WeakRef < "u" ? WeakRef : $fe, tpe = 0, Xz = 1;
+}, tpe = typeof WeakRef < "u" ? WeakRef : epe, npe = 0, Xz = 1;
function Zz() {
return {
- s: tpe,
+ s: npe,
v: void 0,
o: null,
p: null
@@ -47242,7 +47249,7 @@ function Qz(e, t = {}) {
if (t.s === Xz) 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 epe(c) : c;
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new tpe(c) : c;
}
return s.s = Xz, s.v = c, c;
}
@@ -47252,21 +47259,21 @@ function Qz(e, t = {}) {
a = 0;
}, o;
}
-function npe(e, ...t) {
+function rpe(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()), Jfe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
+ typeof o == "object" && (a = o, o = e.pop()), Yfe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
let { memoize: s, memoizeOptions: c = [], argsMemoize: l = Qz, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = Yz(c), p = Yz(u), m = Zfe(e), h = s(function() {
+ }, f = Yz(c), p = Yz(u), m = Qfe(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
- let e = Qfe(m, arguments);
+ let e = $fe(m, arguments);
return i = h.apply(null, e), i;
}, ...p);
return Object.assign(g, {
@@ -47288,14 +47295,14 @@ function npe(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ npe(Qz), rpe = Object.assign((e, t = $) => {
- Yfe(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
+var $ = /* @__PURE__ */ rpe(Qz), ipe = Object.assign((e, t = $) => {
+ Xfe(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: () => rpe });
+}, { withTypes: () => ipe });
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function ipe(e, t = 1) {
+function ape(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -47314,7 +47321,7 @@ function $z(e, t, n) {
function eB(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var ape = (e, t, n) => {
+var ope = (e, t, n) => {
if (e !== t) {
let r = eB(e), i = eB(t);
if (r === i && r === 0) {
@@ -47324,13 +47331,13 @@ var ape = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, ope = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, spe = /^\w*$/;
-function cpe(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || KR(e) ? !0 : typeof e == "string" && (spe.test(e) || !ope.test(e)) || t != null && Object.hasOwn(t, e);
+}, spe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, cpe = /^\w*$/;
+function lpe(e, t) {
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || KR(e) ? !0 : typeof e == "string" && (cpe.test(e) || !spe.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function lpe(e, t, n, r) {
+function upe(e, t, n, r) {
if (e == null) return [];
n = r ? void 0 : n, Array.isArray(e) || (e = Ez(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) => {
@@ -47340,7 +47347,7 @@ function lpe(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) || cpe(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || lpe(e) ? e : {
key: e,
path: JR(e)
}));
@@ -47349,7 +47356,7 @@ function lpe(e, t, n, r) {
criteria: o.map((t) => a(t, e))
})).slice().sort((e, t) => {
for (let r = 0; r < o.length; r++) {
- let i = ape(e.criteria[r], t.criteria[r], n[r]);
+ let i = ope(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -47359,18 +47366,18 @@ function lpe(e, t, n, r) {
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
function tB(e, ...t) {
let n = t.length;
- return n > 1 && $z(e, t[0], t[1]) ? t = [] : n > 2 && $z(t[0], t[1], t[2]) && (t = [t[0]]), lpe(e, ipe(t), ["asc"]);
+ return n > 1 && $z(e, t[0], t[1]) ? t = [] : n > 2 && $z(t[0], t[1], t[2]) && (t = [t[0]]), upe(e, ape(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var nB = (e) => e.legend.settings, upe = (e) => e.legend.size, dpe = $([(e) => e.legend.payload, nB], (e, t) => {
+var nB = (e) => e.legend.settings, dpe = (e) => e.legend.size, fpe = $([(e) => e.legend.payload, nB], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
return n ? tB(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function fpe() {
- return Q(dpe);
+function ppe() {
+ return Q(fpe);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
@@ -47493,7 +47500,7 @@ function uB(e, t, n) {
[oB]: m
};
}
-function ppe(e) {
+function mpe(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
if (n(void 0, { type: cB.INIT }) === void 0) throw Error(aB(12));
@@ -47508,7 +47515,7 @@ function dB(e) {
}
let r = Object.keys(n), i;
try {
- ppe(n);
+ mpe(n);
} catch (e) {
i = e;
}
@@ -47526,7 +47533,7 @@ function dB(e) {
function fB(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function mpe(...e) {
+function hpe(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
throw Error(aB(15));
@@ -47553,7 +47560,7 @@ var vB = Object, yB = vB.getPrototypeOf, bB = "constructor", xB = "prototype", S
function DB(e) {
return e ? kB(e) || FB(e) || !!e[hB] || !!e[bB]?.[hB] || IB(e) || LB(e) : !1;
}
-var hpe = vB[xB][bB].toString(), OB = /* @__PURE__ */ new WeakMap();
+var gpe = vB[xB][bB].toString(), OB = /* @__PURE__ */ new WeakMap();
function kB(e) {
if (!e || !RB(e)) return !1;
let t = yB(e);
@@ -47562,7 +47569,7 @@ function kB(e) {
if (n === Object) return !0;
if (!zB(n)) return !1;
let r = OB.get(n);
- return r === void 0 && (r = Function.toString.call(n), OB.set(n, r)), r === hpe;
+ return r === void 0 && (r = Function.toString.call(n), OB.set(n, r)), r === gpe;
}
function AB(e, t, n = !0) {
jB(e) === 0 ? (n ? Reflect.ownKeys(e) : vB.keys(e)).forEach((n) => {
@@ -47576,11 +47583,11 @@ function jB(e) {
var MB = (e, t, n = jB(e)) => n === 2 ? e.has(t) : vB[xB].hasOwnProperty.call(e, t), NB = (e, t, n = jB(e)) => n === 2 ? e.get(t) : e[t], PB = (e, t, n, r = jB(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function gpe(e, t) {
+function _pe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
var FB = Array.isArray, IB = (e) => e instanceof Map, LB = (e) => e instanceof Set, RB = (e) => typeof e == "object", zB = (e) => typeof e == "function", BB = (e) => typeof e == "boolean";
-function _pe(e) {
+function vpe(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
@@ -47622,10 +47629,10 @@ function WB(e, t = !1) {
WB(t, !0);
}, !1), e);
}
-function vpe() {
+function ype() {
_B(2);
}
-var GB = { [TB]: vpe };
+var GB = { [TB]: ype };
function KB(e) {
return e === null || !RB(e) || vB.isFrozen(e);
}
@@ -47634,7 +47641,7 @@ function ZB(e) {
let t = XB[e];
return t || _B(0, e), t;
}
-var QB = (e) => !!XB[e], $B, eV = () => $B, ype = (e, t) => ({
+var QB = (e) => !!XB[e], $B, eV = () => $B, bpe = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -47649,13 +47656,13 @@ function tV(e, t) {
t && (e.patchPlugin_ = ZB(JB), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function nV(e) {
- rV(e), e.drafts_.forEach(bpe), e.drafts_ = null;
+ rV(e), e.drafts_.forEach(xpe), e.drafts_ = null;
}
function rV(e) {
e === $B && ($B = e.parent_);
}
-var iV = (e) => $B = ype($B, e);
-function bpe(e) {
+var iV = (e) => $B = bpe($B, e);
+function xpe(e) {
let t = e[gB];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
@@ -47667,7 +47674,7 @@ function aV(e, t) {
let { patchPlugin_: r } = t;
r && r.generateReplacementPatches_(n[gB].base_, e, t);
} else e = oV(t, n);
- return xpe(t, e, !0), nV(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === mB ? void 0 : e;
+ return Spe(t, e, !0), nV(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === mB ? void 0 : e;
}
function oV(e, t) {
if (KB(t)) return t;
@@ -47682,13 +47689,13 @@ function oV(e, t) {
}
return n.copy_;
}
-function xpe(e, t, n = !1) {
+function Spe(e, t, n = !1) {
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && WB(t, n);
}
function sV(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var cV = (e, t) => e.scope_ === t, Spe = [];
+var cV = (e, t) => e.scope_ === t, Cpe = [];
function lV(e, t, n, r) {
let i = VB(e), a = e.type_;
if (r !== void 0 && NB(i, r, a) === t) {
@@ -47704,10 +47711,10 @@ function lV(e, t, n, r) {
}
});
}
- let o = e.draftLocations_.get(t) ?? Spe;
+ let o = e.draftLocations_.get(t) ?? Cpe;
for (let e of o) PB(i, e, n, a);
}
-function Cpe(e, t, n) {
+function wpe(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
if (!i || !cV(i, r)) return;
@@ -47726,7 +47733,7 @@ function uV(e, t) {
sV(e);
}
}
-function wpe(e, t, n) {
+function Tpe(e, t, n) {
let { scope_: r } = e;
if (EB(n)) {
let i = n[gB];
@@ -47746,7 +47753,7 @@ function dV(e, t, n) {
} else DB(i) && dV(i, t, n);
}), e);
}
-function Tpe(e, t) {
+function Epe(e, t) {
let n = FB(e), r = {
type_: +!!n,
scope_: t ? t.scope_ : eV(),
@@ -47771,10 +47778,10 @@ var fV = {
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
let i = VB(e);
- if (!MB(i, t, e.type_)) return Dpe(e, i, t);
+ if (!MB(i, t, e.type_)) return Ope(e, i, t);
let a = i[t];
- if (e.finalized_ || !DB(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && _pe(t)) return a;
- if (a === mV(e.base_, t) || Epe(e, t, a)) {
+ if (e.finalized_ || !DB(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && vpe(t)) return a;
+ if (a === mV(e.base_, t) || Dpe(e, t, a)) {
_V(e);
let n = e.type_ === 1 ? +t : t, r = vV(e.scope_, a, e, n);
return e.copy_[n] = r;
@@ -47793,10 +47800,10 @@ var fV = {
if (!e.modified_) {
let r = mV(VB(e), t), i = r?.[gB];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (gpe(n, r) && (n !== void 0 || MB(e.base_, t, e.type_))) return !0;
+ if (_pe(n, r) && (n !== void 0 || MB(e.base_, t, e.type_))) return !0;
_V(e), gV(e);
}
- return e.copy_[t] === n && (n !== void 0 || MB(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), wpe(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || MB(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), Tpe(e, t, n), !0);
},
deleteProperty(e, t) {
return _V(e), mV(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), gV(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
@@ -47836,10 +47843,10 @@ function mV(e, t) {
let n = e[gB];
return (n ? VB(n) : e)[t];
}
-function Epe(e, t, n) {
+function Dpe(e, t, n) {
return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !DB(n) || n[gB] ? !1 : e.baseRefs_.has(n);
}
-function Dpe(e, t, n) {
+function Ope(e, t, n) {
let r = hV(t, n);
return r ? TB in r ? r[TB] : r.get?.call(e.draft_) : void 0;
}
@@ -47858,7 +47865,7 @@ function gV(e) {
function _V(e) {
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), UB(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
-var Ope = class {
+var kpe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
if (zB(e) && !zB(t)) {
@@ -47941,8 +47948,8 @@ var Ope = class {
}
};
function vV(e, t, n, r) {
- let [i, a] = IB(t) ? ZB(qB).proxyMap_(t, n) : LB(t) ? ZB(qB).proxySet_(t, n) : Tpe(t, n);
- return (n?.scope_ ?? eV()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? Cpe(n, a, r) : a.callbacks_.push(function(e) {
+ let [i, a] = IB(t) ? ZB(qB).proxyMap_(t, n) : LB(t) ? ZB(qB).proxySet_(t, n) : Epe(t, n);
+ return (n?.scope_ ?? eV()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? wpe(n, a, r) : a.callbacks_.push(function(e) {
e.mapSetPlugin_?.fixSetContents(a);
let { patchPlugin_: t } = e;
a.modified_ && t && t.generatePatches_(a, [], e);
@@ -47963,13 +47970,13 @@ function bV(e) {
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var xV = new Ope().produce;
+var xV = new kpe().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
function SV(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var kpe = SV(), Ape = SV, jpe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+var Ape = SV(), jpe = SV, Mpe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
if (arguments.length !== 0) return typeof arguments[0] == "object" ? fB : fB.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
@@ -48017,7 +48024,7 @@ function DV(e) {
}
var OV = () => function(e) {
let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new wV();
- return t && (DV(t) ? a.push(kpe) : a.push(Ape(t.extraArgument))), a;
+ return t && (DV(t) ? a.push(Ape) : a.push(jpe(t.extraArgument))), a;
}, kV = "RTK_autoBatch", AV = () => (e) => ({
payload: e,
meta: { [kV]: !0 }
@@ -48058,11 +48065,11 @@ function FV(e) {
let l;
l = typeof r == "function" ? r(t) : t();
let u = fB;
- i && (u = jpe({
+ i && (u = Mpe({
trace: !1,
...typeof i == "object" && i
}));
- let d = PV(mpe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ let d = PV(hpe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
return uB(c, o, p);
}
function IV(e) {
@@ -48679,10 +48686,10 @@ var JH = (e, t, n) => {
}
}
},
- expand: Ede,
+ expand: Dde,
none: VR,
- silhouette: Dde,
- wiggle: Ode,
+ silhouette: Ode,
+ wiggle: kde,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -48697,7 +48704,7 @@ var JH = (e, t, n) => {
}
}
}, eU = (e, t, n) => {
- var r = $H[n] ?? VR, i = Tde().keys(t).value((e, t) => Number(qH(e, t, 0))).order(HR).offset(r)(e);
+ var r = $H[n] ?? VR, i = Ede().keys(t).value((e, t) => Number(qH(e, t, 0))).order(HR).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
var a = qH(e[i], t[r], 0);
@@ -48846,7 +48853,7 @@ var MU = $([
AU,
jU,
nB,
- upe
+ dpe
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
@@ -49806,7 +49813,7 @@ function eK(e) {
}
function tK(e) {
var { contextPayload: t } = e, n = QG(e, GG), r = Gz(t, e.payloadUniqBy, eK), i = JG(JG({}, n), {}, { payload: r });
- return /*#__PURE__*/ I.isValidElement(e.content) ? /*#__PURE__*/ I.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ I.createElement(e.content, i) : /*#__PURE__*/ I.createElement(nfe, i);
+ return /*#__PURE__*/ I.isValidElement(e.content) ? /*#__PURE__*/ I.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ I.createElement(e.content, i) : /*#__PURE__*/ I.createElement(rfe, i);
}
function nK(e, t, n, r, i, a) {
var { layout: o, align: s, verticalAlign: c } = t, l, u;
@@ -49839,7 +49846,7 @@ var oK = {
verticalAlign: "bottom"
};
function sK(e) {
- var t = bz(e, oK), n = fpe(), r = Xue(), i = hW(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = iB([n]), d = pW(), f = mW();
+ var t = bz(e, oK), n = ppe(), r = Zue(), i = hW(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = iB([n]), d = pW(), f = mW();
if (d == null || f == null) return null;
var p = d - (i?.left || 0) - (i?.right || 0), m = aK(t.layout, o, a, p), h = c ? s : JG(JG({
position: "absolute",
@@ -50223,19 +50230,19 @@ function VK(e, t) {
return (t === "string" ? String : Number)(e);
}
var HK = {
- curveBasisClosed: mde,
- curveBasisOpen: hde,
- curveBasis: pde,
- curveBumpX: $ue,
- curveBumpY: ede,
- curveLinearClosed: gde,
+ curveBasisClosed: hde,
+ curveBasisOpen: gde,
+ curveBasis: mde,
+ curveBumpX: ede,
+ curveBumpY: tde,
+ curveLinearClosed: _de,
curveLinear: fR,
- curveMonotoneX: _de,
- curveMonotoneY: vde,
- curveNatural: yde,
- curveStep: bde,
- curveStepAfter: Sde,
- curveStepBefore: xde
+ curveMonotoneX: vde,
+ curveMonotoneY: yde,
+ curveNatural: bde,
+ curveStep: xde,
+ curveStepAfter: Cde,
+ curveStepBefore: Sde
}, UK = (e) => BH(e.x) && BH(e.y), WK = (e) => e.base != null && UK(e.base) && UK(e), GK = (e) => e.x, KK = (e) => e.y, qK = (e, t) => {
if (typeof e == "function") return e;
var n = `curve${cz(e)}`;
@@ -52274,7 +52281,7 @@ function jX(e, t, n) {
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function Mpe(e, t, n) {
+function Npe(e, t, n) {
if (e = Float64Array.from(mX(e, n)), r = e.length) {
if ((t = +t) <= 0 || r < 2) return kX(e);
if (t >= 1) return OX(e);
@@ -52282,7 +52289,7 @@ function Mpe(e, t, n) {
return o + (kX(e.subarray(a + 1)) - o) * (i - a);
}
}
-function Npe(e, t, n = pX) {
+function Ppe(e, t, n = pX) {
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);
@@ -52292,7 +52299,7 @@ function Npe(e, t, n = pX) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function Ppe(e, t, n) {
+function Fpe(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;
@@ -52364,7 +52371,7 @@ function LX() {
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 = Ppe(e).map(function(e) {
+ var m = Fpe(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -52399,7 +52406,7 @@ function RX(e) {
return RX(t());
}, e;
}
-function Fpe() {
+function Ipe() {
return RX(LX.apply(null, arguments).paddingInner(1));
}
//#endregion
@@ -52415,7 +52422,7 @@ function BX(e, t) {
//#endregion
//#region node_modules/d3-color/src/color.js
function VX() {}
-var HX = .7, UX = 1 / HX, WX = "\\s*([+-]?\\d+)\\s*", GX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", KX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Ipe = /^#([0-9a-f]{3,8})$/, Lpe = RegExp(`^rgb\\(${WX},${WX},${WX}\\)$`), Rpe = RegExp(`^rgb\\(${KX},${KX},${KX}\\)$`), zpe = RegExp(`^rgba\\(${WX},${WX},${WX},${GX}\\)$`), Bpe = RegExp(`^rgba\\(${KX},${KX},${KX},${GX}\\)$`), Vpe = RegExp(`^hsl\\(${GX},${KX},${KX}\\)$`), Hpe = RegExp(`^hsla\\(${GX},${KX},${KX},${GX}\\)$`), qX = {
+var HX = .7, UX = 1 / HX, WX = "\\s*([+-]?\\d+)\\s*", GX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", KX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Lpe = /^#([0-9a-f]{3,8})$/, Rpe = RegExp(`^rgb\\(${WX},${WX},${WX}\\)$`), zpe = RegExp(`^rgb\\(${KX},${KX},${KX}\\)$`), Bpe = RegExp(`^rgba\\(${WX},${WX},${WX},${GX}\\)$`), Vpe = RegExp(`^rgba\\(${KX},${KX},${KX},${GX}\\)$`), Hpe = RegExp(`^hsl\\(${GX},${KX},${KX}\\)$`), Upe = RegExp(`^hsla\\(${GX},${KX},${KX},${GX}\\)$`), qX = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -52574,18 +52581,18 @@ zX(VX, XX, {
},
hex: JX,
formatHex: JX,
- formatHex8: Upe,
- formatHsl: Wpe,
+ formatHex8: Wpe,
+ formatHsl: Gpe,
formatRgb: YX,
toString: YX
});
function JX() {
return this.rgb().formatHex();
}
-function Upe() {
+function Wpe() {
return this.rgb().formatHex8();
}
-function Wpe() {
+function Gpe() {
return sZ(this).formatHsl();
}
function YX() {
@@ -52593,7 +52600,7 @@ function YX() {
}
function XX(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = Ipe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? ZX(t) : n === 3 ? new eZ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? QX(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? QX(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 = Lpe.exec(e)) ? new eZ(t[1], t[2], t[3], 1) : (t = Rpe.exec(e)) ? new eZ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = zpe.exec(e)) ? QX(t[1], t[2], t[3], t[4]) : (t = Bpe.exec(e)) ? QX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Vpe.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, 1) : (t = Hpe.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, t[4]) : qX.hasOwnProperty(e) ? ZX(qX[e]) : e === "transparent" ? new eZ(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = Lpe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? ZX(t) : n === 3 ? new eZ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? QX(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? QX(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 = Rpe.exec(e)) ? new eZ(t[1], t[2], t[3], 1) : (t = zpe.exec(e)) ? new eZ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Bpe.exec(e)) ? QX(t[1], t[2], t[3], t[4]) : (t = Vpe.exec(e)) ? QX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Hpe.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, 1) : (t = Upe.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, t[4]) : qX.hasOwnProperty(e) ? ZX(qX[e]) : e === "transparent" ? new eZ(NaN, NaN, NaN, 0) : null;
}
function ZX(e) {
return new eZ(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
@@ -52601,11 +52608,11 @@ function ZX(e) {
function QX(e, t, n, r) {
return r <= 0 && (e = t = n = NaN), new eZ(e, t, n, r);
}
-function Gpe(e) {
+function Kpe(e) {
return e instanceof VX || (e = XX(e)), e ? (e = e.rgb(), new eZ(e.r, e.g, e.b, e.opacity)) : new eZ();
}
function $X(e, t, n, r) {
- return arguments.length === 1 ? Gpe(e) : new eZ(e, t, n, r ?? 1);
+ return arguments.length === 1 ? Kpe(e) : new eZ(e, t, n, r ?? 1);
}
function eZ(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
@@ -52628,14 +52635,14 @@ zX(eZ, $X, BX(VX, {
},
hex: tZ,
formatHex: tZ,
- formatHex8: Kpe,
+ formatHex8: qpe,
formatRgb: nZ,
toString: nZ
}));
function tZ() {
return `#${aZ(this.r)}${aZ(this.g)}${aZ(this.b)}`;
}
-function Kpe() {
+function qpe() {
return `#${aZ(this.r)}${aZ(this.g)}${aZ(this.b)}${aZ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
function nZ() {
@@ -52662,13 +52669,13 @@ function sZ(e) {
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 cZ(o, s, c, e.opacity);
}
-function qpe(e, t, n, r) {
+function Jpe(e, t, n, r) {
return arguments.length === 1 ? sZ(e) : new cZ(e, t, n, r ?? 1);
}
function cZ(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-zX(cZ, qpe, BX(VX, {
+zX(cZ, Jpe, BX(VX, {
brighter(e) {
return e = e == null ? UX : UX ** +e, new cZ(this.h, this.s, this.l * e, this.opacity);
},
@@ -52704,29 +52711,29 @@ function dZ(e, t, n) {
var fZ = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function Jpe(e, t) {
+function Ype(e, t) {
return function(n) {
return e + n * t;
};
}
-function Ype(e, t, n) {
+function Xpe(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function Xpe(e) {
+function Zpe(e) {
return (e = +e) == 1 ? pZ : function(t, n) {
- return n - t ? Ype(t, n, e) : fZ(isNaN(t) ? n : t);
+ return n - t ? Xpe(t, n, e) : fZ(isNaN(t) ? n : t);
};
}
function pZ(e, t) {
var n = t - e;
- return n ? Jpe(e, n) : fZ(isNaN(e) ? t : e);
+ return n ? Ype(e, n) : fZ(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
var mZ = (function e(t) {
- var n = Xpe(t);
+ var n = Zpe(t);
function r(e, t) {
var r = n((e = $X(e)).r, (t = $X(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = pZ(e.opacity, t.opacity);
return function(t) {
@@ -52737,7 +52744,7 @@ var mZ = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function Zpe(e, t) {
+function Qpe(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -52745,12 +52752,12 @@ function Zpe(e, t) {
return r;
};
}
-function Qpe(e) {
+function $pe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function $pe(e, t) {
+function eme(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] = vZ(e[o], t[o]);
for (; o < n; ++o) a[o] = t[o];
@@ -52761,7 +52768,7 @@ function $pe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function eme(e, t) {
+function tme(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -52776,7 +52783,7 @@ function hZ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function tme(e, t) {
+function nme(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] = vZ(e[i], t[i]) : r[i] = t[i];
return function(e) {
@@ -52787,23 +52794,23 @@ function tme(e, t) {
//#endregion
//#region node_modules/d3-interpolate/src/string.js
var gZ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, _Z = new RegExp(gZ.source, "g");
-function nme(e) {
+function rme(e) {
return function() {
return e;
};
}
-function rme(e) {
+function ime(e) {
return function(t) {
return e(t) + "";
};
}
-function ime(e, t) {
+function ame(e, t) {
var n = gZ.lastIndex = _Z.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
for (e += "", t += ""; (r = gZ.exec(e)) && (i = _Z.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: hZ(r, i)
})), n = _Z.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? rme(c[0].x) : nme(t) : (t = c.length, function(e) {
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? ime(c[0].x) : rme(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("");
});
@@ -52812,7 +52819,7 @@ function ime(e, t) {
//#region node_modules/d3-interpolate/src/value.js
function vZ(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? fZ(t) : (n === "number" ? hZ : n === "string" ? (r = XX(t)) ? (t = r, mZ) : ime : t instanceof XX ? mZ : t instanceof Date ? eme : Qpe(t) ? Zpe : Array.isArray(t) ? $pe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? tme : hZ)(e, t);
+ return t == null || n === "boolean" ? fZ(t) : (n === "number" ? hZ : n === "string" ? (r = XX(t)) ? (t = r, mZ) : ame : t instanceof XX ? mZ : t instanceof Date ? tme : $pe(t) ? Qpe : Array.isArray(t) ? eme : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? nme : hZ)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
@@ -52823,7 +52830,7 @@ function yZ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function ame(e, t) {
+function ome(e, t) {
t === void 0 && (t = e, e = vZ);
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) {
@@ -52833,7 +52840,7 @@ function ame(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function ome(e) {
+function sme(e) {
return function() {
return e;
};
@@ -52852,21 +52859,21 @@ function SZ(e) {
function CZ(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : ome(isNaN(t) ? NaN : .5);
+ } : sme(isNaN(t) ? NaN : .5);
}
-function sme(e, t) {
+function cme(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function cme(e, t, n) {
+function lme(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
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 lme(e, t, n) {
+function ume(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] = CZ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
@@ -52881,7 +52888,7 @@ function TZ() {
var e = xZ, t = xZ, n = vZ, r, i, a, o = SZ, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== SZ && (o = sme(e[0], e[n - 1])), s = n > 2 ? lme : cme, c = l = null, d;
+ return o !== SZ && (o = cme(e[0], e[n - 1])), s = n > 2 ? ume : lme, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
@@ -52909,7 +52916,7 @@ function EZ() {
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function ume(e) {
+function dme(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
function DZ(e, t) {
@@ -52924,7 +52931,7 @@ function OZ(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function dme(e, t) {
+function fme(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);
@@ -52932,7 +52939,7 @@ function dme(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function fme(e) {
+function pme(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -52941,9 +52948,9 @@ function fme(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var pme = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+var mme = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
function kZ(e) {
- if (!(t = pme.exec(e))) throw Error("invalid format: " + e);
+ if (!(t = mme.exec(e))) throw Error("invalid format: " + e);
var t;
return new AZ({
fill: t[1],
@@ -52967,7 +52974,7 @@ AZ.prototype.toString = function() {
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function mme(e) {
+function hme(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -52984,7 +52991,7 @@ function mme(e) {
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
var jZ;
-function hme(e, t) {
+function gme(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;
@@ -53004,14 +53011,14 @@ var NZ = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: ume,
+ d: dme,
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: hme,
+ s: gme,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
@@ -53041,8 +53048,8 @@ var FZ = Array.prototype.map, IZ = [
"Z",
"Y"
];
-function gme(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? PZ : dme(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 : fme(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 _me(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? PZ : fme(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 : pme(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;
@@ -53055,7 +53062,7 @@ function gme(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = mme(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 = hme(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;
@@ -53096,27 +53103,27 @@ function gme(e) {
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
var LZ, RZ, zZ;
-_me({
+vme({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function _me(e) {
- return LZ = gme(e), RZ = LZ.format, zZ = LZ.formatPrefix, LZ;
+function vme(e) {
+ return LZ = _me(e), RZ = LZ.format, zZ = LZ.formatPrefix, LZ;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function vme(e) {
+function yme(e) {
return Math.max(0, -OZ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function yme(e, t) {
+function bme(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 bme(e, t) {
+function xme(e, t) {
return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, OZ(t) - OZ(e)) + 1;
}
//#endregion
@@ -53126,16 +53133,16 @@ function BZ(e, t, n, r) {
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 = yme(i, o)) && (r.precision = a), zZ(r, o);
+ return r.precision == null && !isNaN(a = bme(i, o)) && (r.precision = a), zZ(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = bme(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = xme(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = vme(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = yme(i)) && (r.precision = a - (r.type === "%") * 2);
}
return RZ(r);
}
@@ -53198,19 +53205,19 @@ function GZ(e) {
function KZ(e) {
return Math.exp(e);
}
-function xme(e) {
- return -Math.log(-e);
-}
function Sme(e) {
- return -Math.exp(-e);
+ return -Math.log(-e);
}
function Cme(e) {
- return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
+ return -Math.exp(-e);
}
function wme(e) {
- return e === 10 ? Cme : e === Math.E ? Math.exp : (t) => e ** +t;
+ return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
function Tme(e) {
+ return e === 10 ? wme : e === Math.E ? Math.exp : (t) => e ** +t;
+}
+function Eme(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) {
@@ -53219,7 +53226,7 @@ function qZ(e) {
function JZ(e) {
let t = e(GZ, KZ), n = t.domain, r = 10, i, a;
function o() {
- return i = Tme(r), a = wme(r), n()[0] < 0 ? (i = qZ(i), a = qZ(a), e(xme, Sme)) : e(GZ, KZ), t;
+ return i = Eme(r), a = Tme(r), n()[0] < 0 ? (i = qZ(i), a = qZ(a), e(Sme, Cme)) : e(GZ, KZ), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -53289,16 +53296,16 @@ function eQ(e) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function Eme(e) {
+function Dme(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function Dme(e) {
+function Ome(e) {
return e < 0 ? -e * e : e * e;
}
function tQ(e) {
var t = e(SZ, SZ), n = 1;
function r() {
- return n === 1 ? e(SZ, SZ) : n === .5 ? e(Eme, Dme) : e(eQ(n), eQ(1 / n));
+ return n === 1 ? e(SZ, SZ) : n === .5 ? e(Dme, Ome) : e(eQ(n), eQ(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
@@ -53310,7 +53317,7 @@ function nQ() {
return wZ(e, nQ()).exponent(e.exponent());
}, NX.apply(e, arguments), e;
}
-function Ome() {
+function kme() {
return nQ.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -53318,13 +53325,13 @@ function Ome() {
function rQ(e) {
return Math.sign(e) * e * e;
}
-function kme(e) {
+function Ame(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
function iQ() {
var e = EZ(), t = [0, 1], n = !1, r;
function i(t) {
- var i = kme(e(t));
+ var i = Ame(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
@@ -53351,7 +53358,7 @@ 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] = Npe(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = Ppe(e, r / i);
return a;
}
function a(e) {
@@ -53520,8 +53527,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), Ame = DQ(2), jme = DQ(3), AQ = DQ(4), Mme = DQ(5), Nme = DQ(6);
-OQ.range, kQ.range, Ame.range, jme.range, AQ.range, Mme.range, Nme.range;
+var OQ = DQ(0), kQ = DQ(1), jme = DQ(2), Mme = DQ(3), AQ = DQ(4), Nme = DQ(5), Pme = DQ(6);
+OQ.range, kQ.range, jme.range, Mme.range, AQ.range, Nme.range, Pme.range;
function jQ(e) {
return uQ((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
@@ -53529,8 +53536,8 @@ function jQ(e) {
e.setUTCDate(e.getUTCDate() + t * 7);
}, (e, t) => (t - e) / gQ);
}
-var MQ = jQ(0), NQ = jQ(1), Pme = jQ(2), Fme = jQ(3), PQ = jQ(4), Ime = jQ(5), Lme = jQ(6);
-MQ.range, NQ.range, Pme.range, Fme.range, PQ.range, Ime.range, Lme.range;
+var MQ = jQ(0), NQ = jQ(1), Fme = jQ(2), Ime = jQ(3), PQ = jQ(4), Lme = jQ(5), Rme = jQ(6);
+MQ.range, NQ.range, Fme.range, Ime.range, PQ.range, Lme.range, Rme.range;
//#endregion
//#region node_modules/d3-time/src/month.js
var FQ = uQ((e) => {
@@ -53677,7 +53684,7 @@ function zQ(e, t, n, r, i, a) {
}
return [s, c];
}
-var [Rme, zme] = zQ(RQ, IQ, MQ, EQ, CQ, xQ), [Bme, Vme] = zQ(LQ, FQ, OQ, wQ, SQ, bQ);
+var [zme, Bme] = zQ(RQ, IQ, MQ, EQ, CQ, xQ), [Vme, Hme] = zQ(LQ, FQ, OQ, wQ, SQ, bQ);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
function BQ(e) {
@@ -53705,7 +53712,7 @@ function HQ(e, t, n) {
L: 0
};
}
-function Hme(e) {
+function Ume(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: ee,
@@ -53714,30 +53721,30 @@ function Hme(e) {
c: null,
d: QQ,
e: QQ,
- f: dhe,
- g: xhe,
- G: Che,
- H: che,
- I: lhe,
- j: uhe,
+ f: fhe,
+ g: She,
+ G: whe,
+ H: lhe,
+ I: uhe,
+ j: dhe,
L: $Q,
- m: fhe,
- M: phe,
+ m: phe,
+ M: mhe,
p: F,
q: ne,
Q: a$,
s: o$,
- S: mhe,
- u: hhe,
- U: ghe,
- V: _he,
- w: vhe,
- W: yhe,
+ S: hhe,
+ u: ghe,
+ U: _he,
+ V: vhe,
+ w: yhe,
+ W: bhe,
x: null,
X: null,
- y: bhe,
- Y: She,
- Z: whe,
+ y: xhe,
+ Y: Che,
+ Z: The,
"%": i$
}, b = {
a: re,
@@ -53747,30 +53754,30 @@ function Hme(e) {
c: null,
d: t$,
e: t$,
- f: Ohe,
- g: Rhe,
- G: Bhe,
- H: The,
- I: Ehe,
- j: Dhe,
+ f: khe,
+ g: zhe,
+ G: Vhe,
+ H: Ehe,
+ I: Dhe,
+ j: Ohe,
L: n$,
- m: khe,
- M: Ahe,
+ m: Ahe,
+ M: jhe,
p: ae,
q: oe,
Q: a$,
s: o$,
- S: jhe,
- u: Mhe,
- U: Nhe,
- V: Phe,
- w: Fhe,
- W: Ihe,
+ S: Mhe,
+ u: Nhe,
+ U: Phe,
+ V: Fhe,
+ w: Ihe,
+ W: Lhe,
x: null,
X: null,
- y: Lhe,
- Y: zhe,
- Z: Vhe,
+ y: Rhe,
+ Y: Bhe,
+ Z: Hhe,
"%": i$
}, x = {
a: E,
@@ -53780,31 +53787,31 @@ function Hme(e) {
c: A,
d: XQ,
e: XQ,
- f: ihe,
+ f: ahe,
g: YQ,
G: JQ,
H: ZQ,
I: ZQ,
- j: ehe,
- L: rhe,
- m: $me,
- M: the,
+ j: the,
+ L: ihe,
+ m: ehe,
+ M: nhe,
p: T,
- q: Qme,
- Q: ohe,
- s: she,
- S: nhe,
- u: qme,
- U: Jme,
- V: Yme,
- w: Kme,
- W: Xme,
+ q: $me,
+ Q: she,
+ s: che,
+ S: rhe,
+ u: Jme,
+ U: Yme,
+ V: Xme,
+ w: qme,
+ W: Zme,
x: j,
X: M,
y: YQ,
Y: JQ,
- Z: Zme,
- "%": ahe
+ Z: Qme,
+ "%": ohe
};
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) {
@@ -53932,37 +53939,37 @@ var UQ = {
"-": "",
_: " ",
0: "0"
-}, WQ = /^\s*\d+/, Ume = /^%/, Wme = /[\\^$*+?|[\]().{}]/g;
+}, WQ = /^\s*\d+/, Wme = /^%/, Gme = /[\\^$*+?|[\]().{}]/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 Gme(e) {
- return e.replace(Wme, "\\$&");
+function Kme(e) {
+ return e.replace(Gme, "\\$&");
}
function KQ(e) {
- return RegExp("^(?:" + e.map(Gme).join("|") + ")", "i");
+ return RegExp("^(?:" + e.map(Kme).join("|") + ")", "i");
}
function qQ(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function Kme(e, t, n) {
+function qme(e, t, n) {
var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function qme(e, t, n) {
+function Jme(e, t, n) {
var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function Jme(e, t, n) {
+function Yme(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function Yme(e, t, n) {
+function Xme(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function Xme(e, t, n) {
+function Zme(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
@@ -53974,15 +53981,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 Zme(e, t, n) {
+function Qme(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 Qme(e, t, n) {
+function $me(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 $me(e, t, n) {
+function ehe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
@@ -53990,7 +53997,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 ehe(e, t, n) {
+function the(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;
}
@@ -53998,159 +54005,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 the(e, t, n) {
+function nhe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function nhe(e, t, n) {
+function rhe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function rhe(e, t, n) {
+function ihe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function ihe(e, t, n) {
+function ahe(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 ahe(e, t, n) {
- var r = Ume.exec(t.slice(n, n + 1));
+function ohe(e, t, n) {
+ var r = Wme.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function ohe(e, t, n) {
+function she(e, t, n) {
var r = WQ.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function she(e, t, n) {
+function che(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 che(e, t) {
+function lhe(e, t) {
return GQ(e.getHours(), t, 2);
}
-function lhe(e, t) {
+function uhe(e, t) {
return GQ(e.getHours() % 12 || 12, t, 2);
}
-function uhe(e, t) {
+function dhe(e, t) {
return GQ(1 + wQ.count(LQ(e), e), t, 3);
}
function $Q(e, t) {
return GQ(e.getMilliseconds(), t, 3);
}
-function dhe(e, t) {
+function fhe(e, t) {
return $Q(e, t) + "000";
}
-function fhe(e, t) {
+function phe(e, t) {
return GQ(e.getMonth() + 1, t, 2);
}
-function phe(e, t) {
+function mhe(e, t) {
return GQ(e.getMinutes(), t, 2);
}
-function mhe(e, t) {
+function hhe(e, t) {
return GQ(e.getSeconds(), t, 2);
}
-function hhe(e) {
+function ghe(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function ghe(e, t) {
+function _he(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 _he(e, t) {
+function vhe(e, t) {
return e = e$(e), GQ(AQ.count(LQ(e), e) + (LQ(e).getDay() === 4), t, 2);
}
-function vhe(e) {
+function yhe(e) {
return e.getDay();
}
-function yhe(e, t) {
+function bhe(e, t) {
return GQ(kQ.count(LQ(e) - 1, e), t, 2);
}
-function bhe(e, t) {
+function xhe(e, t) {
return GQ(e.getFullYear() % 100, t, 2);
}
-function xhe(e, t) {
+function She(e, t) {
return e = e$(e), GQ(e.getFullYear() % 100, t, 2);
}
-function She(e, t) {
+function Che(e, t) {
return GQ(e.getFullYear() % 1e4, t, 4);
}
-function Che(e, t) {
+function whe(e, t) {
var n = e.getDay();
return e = n >= 4 || n === 0 ? AQ(e) : AQ.ceil(e), GQ(e.getFullYear() % 1e4, t, 4);
}
-function whe(e) {
+function The(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 The(e, t) {
+function Ehe(e, t) {
return GQ(e.getUTCHours(), t, 2);
}
-function Ehe(e, t) {
+function Dhe(e, t) {
return GQ(e.getUTCHours() % 12 || 12, t, 2);
}
-function Dhe(e, t) {
+function Ohe(e, t) {
return GQ(1 + TQ.count(RQ(e), e), t, 3);
}
function n$(e, t) {
return GQ(e.getUTCMilliseconds(), t, 3);
}
-function Ohe(e, t) {
+function khe(e, t) {
return n$(e, t) + "000";
}
-function khe(e, t) {
+function Ahe(e, t) {
return GQ(e.getUTCMonth() + 1, t, 2);
}
-function Ahe(e, t) {
+function jhe(e, t) {
return GQ(e.getUTCMinutes(), t, 2);
}
-function jhe(e, t) {
+function Mhe(e, t) {
return GQ(e.getUTCSeconds(), t, 2);
}
-function Mhe(e) {
+function Nhe(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function Nhe(e, t) {
+function Phe(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 Phe(e, t) {
+function Fhe(e, t) {
return e = r$(e), GQ(PQ.count(RQ(e), e) + (RQ(e).getUTCDay() === 4), t, 2);
}
-function Fhe(e) {
+function Ihe(e) {
return e.getUTCDay();
}
-function Ihe(e, t) {
+function Lhe(e, t) {
return GQ(NQ.count(RQ(e) - 1, e), t, 2);
}
-function Lhe(e, t) {
+function Rhe(e, t) {
return GQ(e.getUTCFullYear() % 100, t, 2);
}
-function Rhe(e, t) {
+function zhe(e, t) {
return e = r$(e), GQ(e.getUTCFullYear() % 100, t, 2);
}
-function zhe(e, t) {
+function Bhe(e, t) {
return GQ(e.getUTCFullYear() % 1e4, t, 4);
}
-function Bhe(e, t) {
+function Vhe(e, t) {
var n = e.getUTCDay();
return e = n >= 4 || n === 0 ? PQ(e) : PQ.ceil(e), GQ(e.getUTCFullYear() % 1e4, t, 4);
}
-function Vhe() {
+function Hhe() {
return "+0000";
}
function i$() {
@@ -54165,7 +54172,7 @@ function o$(e) {
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
var s$, c$, l$;
-Hhe({
+Uhe({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -54217,15 +54224,15 @@ Hhe({
"Dec"
]
});
-function Hhe(e) {
- return s$ = Hme(e), c$ = s$.format, s$.parse, l$ = s$.utcFormat, s$.utcParse, s$;
+function Uhe(e) {
+ return s$ = Ume(e), c$ = s$.format, s$.parse, l$ = s$.utcFormat, s$.utcParse, s$;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function Uhe(e) {
+function Whe(e) {
return new Date(e);
}
-function Whe(e) {
+function Ghe(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
function u$(e, t, n, r, i, a, o, s, c, l) {
@@ -54236,7 +54243,7 @@ function u$(e, t, n, r, i, a, o, s, c, l) {
return u.invert = function(e) {
return new Date(d(e));
}, u.domain = function(e) {
- return arguments.length ? f(Array.from(e, Whe)) : f().map(Uhe);
+ return arguments.length ? f(Array.from(e, Ghe)) : f().map(Whe);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -54249,13 +54256,13 @@ function 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 Ghe() {
- return NX.apply(u$(Bme, Vme, LQ, FQ, OQ, wQ, SQ, bQ, yQ, c$).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function Khe() {
+ return NX.apply(u$(Vme, Hme, 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 Khe() {
- return NX.apply(u$(Rme, zme, RQ, IQ, MQ, TQ, CQ, xQ, yQ, l$).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function qhe() {
+ return NX.apply(u$(zme, Bme, 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
@@ -54310,7 +54317,7 @@ function g$() {
return f$(e, g$()).exponent(e.exponent());
}, PX.apply(e, arguments);
}
-function qhe() {
+function Jhe() {
return g$.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -54330,7 +54337,7 @@ function _$() {
}, 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) => Mpe(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => Npe(e, r / t));
}, n.copy = function() {
return _$(t).domain(e);
}, PX.apply(n, arguments);
@@ -54356,7 +54363,7 @@ function v$() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = ame(e, [
+ return arguments.length ? ([n, r, i] = t, l = ome(e, [
n,
r,
i
@@ -54401,7 +54408,7 @@ function S$() {
return f$(e, S$()).exponent(e.exponent());
}, PX.apply(e, arguments);
}
-function Jhe() {
+function Yhe() {
return S$.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -54411,14 +54418,14 @@ var C$ = /* @__PURE__ */ N({
scaleDiverging: () => y$,
scaleDivergingLog: () => b$,
scaleDivergingPow: () => S$,
- scaleDivergingSqrt: () => Jhe,
+ scaleDivergingSqrt: () => Yhe,
scaleDivergingSymlog: () => x$,
scaleIdentity: () => UZ,
scaleImplicit: () => FX,
scaleLinear: () => HZ,
scaleLog: () => YZ,
scaleOrdinal: () => IX,
- scalePoint: () => Fpe,
+ scalePoint: () => Ipe,
scalePow: () => nQ,
scaleQuantile: () => aQ,
scaleQuantize: () => oQ,
@@ -54427,18 +54434,18 @@ var C$ = /* @__PURE__ */ N({
scaleSequentialLog: () => m$,
scaleSequentialPow: () => g$,
scaleSequentialQuantile: () => _$,
- scaleSequentialSqrt: () => qhe,
+ scaleSequentialSqrt: () => Jhe,
scaleSequentialSymlog: () => h$,
- scaleSqrt: () => Ome,
+ scaleSqrt: () => kme,
scaleSymlog: () => $Z,
scaleThreshold: () => sQ,
- scaleTime: () => Ghe,
- scaleUtc: () => Khe,
+ scaleTime: () => Khe,
+ scaleUtc: () => qhe,
tickFormat: () => BZ
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function Yhe(e) {
+function Xhe(e) {
if (e in C$) return C$[e]();
var t = `scale${cz(e)}`;
if (t in C$) return C$[t]();
@@ -54446,7 +54453,7 @@ function Yhe(e) {
function w$(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = Yhe(e);
+ var r = Xhe(e);
if (r != null) return r.domain(t).range(n), r;
}
}
@@ -54455,22 +54462,22 @@ function T$(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function Xhe(e) {
+function Zhe(e) {
return `scale${cz(e)}`;
}
-function Zhe(e) {
- return Xhe(e) in C$;
+function Qhe(e) {
+ return Zhe(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 Zhe(r) ? r : "point";
+ if (typeof r == "string") return Qhe(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function Qhe(e, t) {
+function $he(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;
@@ -54481,7 +54488,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 = Qhe(r, e);
+ var t = $he(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;
@@ -54491,7 +54498,7 @@ function D$(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function $he(e) {
+function ege(e) {
if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : D$(e, void 0);
}
//#endregion
@@ -54510,26 +54517,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) {
- ege(e, t, n[t]);
+ tge(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 ege(e, t, n) {
- return (t = tge(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 tge(e) {
- var t = nge(e, "string");
+function nge(e) {
+ var t = rge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nge(e, t) {
+function rge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54597,7 +54604,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$, rge = {
+}, F$ = (e, t) => e.cartesianAxis.yAxis[t], I$ = (e, t) => F$(e, t) ?? P$, ige = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -54610,7 +54617,7 @@ var A$ = [0, "auto"], j$ = {
scale: "auto",
type: "number",
unit: ""
-}, L$ = (e, t) => e.cartesianAxis.zAxis[t] ?? rge, R$ = (e, t, n) => {
+}, L$ = (e, t) => e.cartesianAxis.zAxis[t] ?? ige, R$ = (e, t, n) => {
switch (t) {
case "xAxis": return N$(e, n);
case "yAxis": return I$(e, n);
@@ -54619,7 +54626,7 @@ var A$ = [0, "auto"], j$ = {
case "radiusAxis": return HY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, ige = (e, t, n) => {
+}, age = (e, t, n) => {
switch (t) {
case "xAxis": return N$(e, n);
case "yAxis": return I$(e, n);
@@ -54646,14 +54653,14 @@ function V$(e, t) {
}
};
}
-var H$ = (e) => e.graphicalItems.cartesianItems, age = $([QY, $Y], V$), U$ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), W$ = $([
+var H$ = (e) => e.graphicalItems.cartesianItems, oge = $([QY, $Y], V$), U$ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), W$ = $([
H$,
R$,
- age
-], U$, { memoizeOptions: { resultEqualityCheck: iX } }), G$ = $([W$], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(nX)), K$ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), oge = $([W$], K$), q$ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), sge = $([W$], q$, { memoizeOptions: { resultEqualityCheck: iX } }), J$ = (e, t) => {
+ oge
+], U$, { memoizeOptions: { resultEqualityCheck: iX } }), G$ = $([W$], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(nX)), K$ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), sge = $([W$], K$), q$ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), cge = $([W$], q$, { memoizeOptions: { resultEqualityCheck: iX } }), J$ = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, Y$ = $([sge, nY], J$), X$ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: qH(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: qH(e, t.dataKey) })), Z$ = $([
+}, Y$ = $([cge, nY], J$), X$ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: qH(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: qH(e, t.dataKey) })), Z$ = $([
Y$,
R$,
W$
@@ -54675,11 +54682,11 @@ function $$(e) {
function e1(e) {
return e.map(Q$).filter(lz);
}
-function cge(e, t) {
+function lge(e, t) {
var n = Q$(e), r = Q$(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var lge = $([Z$], (e) => e?.map((e) => e.value).sort(cge));
+var uge = $([Z$], (e) => e?.map((e) => e.value).sort(lge));
function t1(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
@@ -54687,13 +54694,13 @@ function t1(e, t) {
default: return !1;
}
}
-function uge(e, t, n) {
+function dge(e, t, n) {
return !n || typeof t != "number" || $R(t) || !n.length ? [] : e1(n.flatMap((n) => {
var r = qH(e, n.dataKey), i, a;
if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!BH(i) || !BH(a))) return [t - i, t + a];
}));
}
-var n1 = (e) => z$(e, oX(e), sX(e)), r1 = $([n1], (e) => e?.dataKey), dge = $([
+var n1 = (e) => z$(e, oX(e), sX(e)), r1 = $([n1], (e) => e?.dataKey), fge = $([
G$,
nY,
n1
@@ -54711,7 +54718,7 @@ var n1 = (e) => z$(e, oX(e), sX(e)), r1 = $([n1], (e) => e?.dataKey), dge = $([
}];
}));
}, a1 = $([
- dge,
+ fge,
G$,
SY,
CY
@@ -54721,7 +54728,7 @@ var n1 = (e) => z$(e, oX(e), sX(e)), r1 = $([n1], (e) => e?.dataKey), dge = $([
var o = sU(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, fge = $([R$], (e) => e.allowDataOverflow), s1 = (e) => {
+}, pge = $([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) {
@@ -54732,12 +54739,12 @@ var n1 = (e) => z$(e, oX(e), sX(e)), r1 = $([n1], (e) => e?.dataKey), dge = $([
if (e.type === "category") return e.ticks.map(String);
}
return e?.domain ?? A$;
-}, c1 = $([R$], s1), l1 = $([c1, fge], oY), pge = $([
+}, c1 = $([R$], s1), l1 = $([c1, pge], oY), mge = $([
a1,
eY,
QY,
l1
-], o1, { memoizeOptions: { resultEqualityCheck: rX } }), u1 = (e) => e.errorBars, mge = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => t1(n, e)), d1 = function() {
+], o1, { memoizeOptions: { resultEqualityCheck: rX } }), u1 = (e) => e.errorBars, hge = (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();
@@ -54747,7 +54754,7 @@ var n1 = (e) => z$(e, oX(e), sX(e)), r1 = $([n1], (e) => e?.dataKey), dge = $([
var a, o;
if (n.length > 0 && e.forEach((e) => {
n.forEach((n) => {
- var s = r[n.id]?.filter((e) => t1(i, e)), c = qH(e, t.dataKey ?? n.dataKey), l = uge(e, c, s);
+ var s = r[n.id]?.filter((e) => t1(i, e)), c = qH(e, t.dataKey ?? n.dataKey), l = dge(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);
@@ -54759,29 +54766,29 @@ var n1 = (e) => z$(e, oX(e), sX(e)), r1 = $([n1], (e) => e?.dataKey), dge = $([
var n = $$(qH(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]));
}), BH(a) && BH(o)) return [a, o];
-}, hge = $([
+}, gge = $([
Y$,
R$,
- oge,
+ sge,
u1,
QY
], f1, { memoizeOptions: { resultEqualityCheck: rX } });
-function gge(e) {
+function _ge(e) {
var { value: t } = e;
if (tz(t) || t instanceof Date) return t;
}
-var _ge = (e, t, n) => {
- var r = e.map(gge).filter((e) => e != null);
+var vge = (e, t, n) => {
+ var r = e.map(_ge).filter((e) => e != null);
return n && (t.dataKey == null || t.allowDuplicatedCategory && iz(r)) ? $J(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), vge = $([
+}, 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), yge = $([
p1,
QY,
$Y
-], m1), h1 = (e) => e.referenceElements.areas, yge = $([
+], m1), h1 = (e) => e.referenceElements.areas, bge = $([
h1,
QY,
$Y
-], m1), g1 = (e) => e.referenceElements.lines, bge = $([
+], m1), g1 = (e) => e.referenceElements.lines, xge = $([
g1,
QY,
$Y
@@ -54790,40 +54797,40 @@ var _ge = (e, t, n) => {
var n = e1(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, xge = $(vge, QY, _1), v1 = (e, t) => {
+}, Sge = $(yge, QY, _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)];
}
-}, Sge = $([yge, QY], v1);
-function Cge(e) {
+}, Cge = $([bge, QY], v1);
+function wge(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 wge(e) {
+function Tge(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" ? Cge(e) : wge(e));
+ var n = e.flatMap((e) => t === "xAxis" ? wge(e) : Tge(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Tge = $(xge, $([bge, QY], y1), Sge, (e, t, n) => d1(e, n, t)), b1 = (e, t, n, r, i, a, o, s) => n ?? sY(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? d1(r, a, i) : d1(a, i), e.allowDataOverflow), Ege = $([
+}, Ege = $(Sge, $([xge, QY], y1), Cge, (e, t, n) => d1(e, n, t)), b1 = (e, t, n, r, i, a, o, s) => n ?? sY(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? d1(r, a, i) : d1(a, i), e.allowDataOverflow), Dge = $([
R$,
c1,
l1,
- pge,
- hge,
- Tge,
+ mge,
+ gge,
+ Ege,
gW,
QY
-], b1, { memoizeOptions: { resultEqualityCheck: rX } }), Dge = [0, 1], x1 = (e, t, n, r, i, a, o) => {
+], b1, { memoizeOptions: { resultEqualityCheck: rX } }), Oge = [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 = YH(t, a);
- return l && s == null ? $J(0, n?.length ?? 0) : c === "category" ? _ge(r, e, l) : i === "expand" ? Dge : o;
+ return l && s == null ? $J(0, n?.length ?? 0) : c === "category" ? vge(r, e, l) : i === "expand" ? Oge : o;
}
}, S1 = $([
R$,
@@ -54832,7 +54839,7 @@ var y1 = (e, t) => {
Z$,
SY,
QY,
- Ege
+ Dge
], x1), C1 = $([
R$,
B$,
@@ -54860,7 +54867,7 @@ var y1 = (e, t) => {
return [Math.min(i, a), Math.max(o, s)];
}
return t;
-}, Oge = $([
+}, kge = $([
R$,
S1,
T1,
@@ -54889,13 +54896,13 @@ var y1 = (e, t) => {
return s - o - (s - o) / a * o;
}
return 0;
-}), kge = (e, t, n) => {
+}), Age = (e, t, n) => {
var r = N$(e, t);
return r == null || typeof r.padding != "string" ? 0 : D1(e, "xAxis", t, n, r.padding);
-}, Age = (e, t, n) => {
+}, jge = (e, t, n) => {
var r = I$(e, t);
return r == null || typeof r.padding != "string" ? 0 : D1(e, "yAxis", t, n, r.padding);
-}, jge = $(N$, kge, (e, t) => {
+}, Mge = $(N$, Age, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -54908,7 +54915,7 @@ var y1 = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), Mge = $(I$, Age, (e, t) => {
+}), Nge = $(I$, jge, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -54921,19 +54928,19 @@ var y1 = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), Nge = $([
+}), Pge = $([
MU,
- jge,
+ Mge,
RU,
LU,
(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];
-}), Pge = $([
+}), Fge = $([
MU,
gW,
- Mge,
+ Nge,
RU,
LU,
(e, t, n) => n
@@ -54942,8 +54949,8 @@ var y1 = (e, t) => {
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 Nge(e, n, r);
- case "yAxis": return Pge(e, n, r);
+ case "xAxis": return Pge(e, n, r);
+ case "yAxis": return Fge(e, n, r);
case "zAxis": return L$(e, n)?.range;
case "angleAxis": return qY(e);
case "radiusAxis": return YY(e, n);
@@ -54952,7 +54959,7 @@ var y1 = (e, t) => {
}, k1 = $([R$, O1], MY), A1 = $([
R$,
C1,
- $([C1, Oge], lX),
+ $([C1, kge], lX),
k1
], T$), j1 = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
@@ -54965,45 +54972,45 @@ var y1 = (e, t) => {
z$,
QY
], j1), N1 = $([A1], cX);
-$([A1], $he), $([A1, lge], D$), $([
+$([A1], ege), $([A1, uge], D$), $([
W$,
u1,
QY
-], mge);
+], hge);
function P1(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var F1 = (e, t) => t, I1 = (e, t, n) => n, Fge = $(yU, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), Ige = $(bU, 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, Ige = $(yU, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), Lge = $(bU, 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
-}), Lge = (e, t) => ({
+}), Rge = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), R1 = $(MU, N$, L1), Rge = (e, t, n) => {
+}), R1 = $(MU, N$, L1), zge = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, zge = (e, t, n) => {
+}, Bge = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, Bge = $(gU, MU, Fge, F1, I1, (e, t, n, r, i) => {
+}, z1 = $(gU, MU, Ige, F1, I1, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
var s = L1(t, n);
- o ??= Rge(t, r, e);
+ o ??= zge(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;
-}), Vge = $(hU, MU, Ige, F1, I1, (e, t, n, r, i) => {
+}), Vge = $(hU, MU, Lge, F1, I1, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = Lge(t, n);
- o ??= zge(t, r, e);
+ var s = Rge(t, n);
+ o ??= Bge(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;
@@ -55012,7 +55019,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Fge = $(yU, F1, I1, (e, t, n) => e.fi
N$,
(e, t) => {
var n = N$(e, t);
- if (n != null) return Bge(e, n.orientation, n.mirror);
+ if (n != null) return z1(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -55045,31 +55052,31 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Fge = $(yU, F1, I1, (e, t, n) => e.fi
y: e.top
};
}
-}), z1 = $(MU, I$, (e, t) => ({
+}), B1 = $(MU, I$, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-})), B1 = (e, t, n) => {
+})), V1 = (e, t, n) => {
switch (t) {
case "xAxis": return R1(e, n).width;
- case "yAxis": return z1(e, n).height;
+ case "yAxis": return B1(e, n).height;
default: return;
}
-}, V1 = (e, t, n, r) => {
+}, H1 = (e, t, n, r) => {
if (n != null) {
var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = YH(e, r), c = t.map((e) => e.value);
if (o && s && a === "category" && i && iz(c)) return c;
}
-}, H1 = $([
+}, U1 = $([
gW,
Z$,
R$,
QY
-], V1), U1 = $([
+], H1), W1 = $([
gW,
- ige,
+ age,
C1,
N1,
- H1,
+ U1,
M1,
O1,
T1,
@@ -55098,7 +55105,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Fge = $(yU, F1, I1, (e, t, n) => e.fi
scale: r
};
}
-}), W1 = (e, t, n, r, i, a, o, s, c) => {
+}), G1 = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
var l = YH(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 ? QR(a[0] - a[1]) * 2 * m : m;
@@ -55137,17 +55144,17 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Fge = $(yU, F1, I1, (e, t, n) => e.fi
} : null;
}).filter(lz);
}
-}, G1 = $([
+}, K1 = $([
gW,
z$,
C1,
N1,
T1,
O1,
- H1,
+ U1,
M1,
QY
-], W1), K1 = (e, t, n, r, i, a, o) => {
+], G1), q1 = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
var s = YH(e, o), { tickCount: c } = t, l = 0;
return l = o === "angleAxis" && r?.length >= 2 ? QR(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
@@ -55176,15 +55183,15 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Fge = $(yU, F1, I1, (e, t, n) => e.fi
} : null;
}).filter(lz);
}
-}, q1 = $([
+}, J1 = $([
gW,
z$,
N1,
O1,
- H1,
+ U1,
M1,
QY
-], K1), J1 = $(R$, N1, (e, t) => {
+], q1), Y1 = $(R$, N1, (e, t) => {
if (e != null && t != null) return k$(k$({}, e), {}, { scale: t });
});
$((e, t, n) => L$(e, n), $([$([
@@ -55220,24 +55227,24 @@ $([(e, t, n) => e.renderedTicks[t]?.[n]], (e) => {
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipEventType.js
-var Y1 = (e) => e.options.defaultTooltipEventType, X1 = (e) => e.options.validateTooltipEventTypes;
-function Z1(e, t, n) {
+var X1 = (e) => e.options.defaultTooltipEventType, Z1 = (e) => e.options.validateTooltipEventTypes;
+function Q1(e, t, n) {
if (e == null) return t;
var r = e ? "axis" : "item";
return n == null ? t : n.includes(r) ? r : t;
}
-function Q1(e, t) {
- return Z1(t, Y1(e), X1(e));
+function $1(e, t) {
+ return Q1(t, X1(e), Z1(e));
}
-function $1(e) {
- return Q((t) => Q1(t, e));
+function Gge(e) {
+ return Q((t) => $1(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
var e0 = (e, t) => {
var n, r = Number(t);
if (!($R(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, Gge = (e) => e.tooltip.settings, t0 = {
+}, Kge = (e) => e.tooltip.settings, t0 = {
active: !1,
index: null,
dataKey: void 0,
@@ -55322,7 +55329,7 @@ var e0 = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: Kge, replaceTooltipEntrySettings: qge, removeTooltipEntrySettings: Jge, setTooltipSettingsState: Yge, setActiveMouseOverItemIndex: r0, mouseLeaveItem: Xge, mouseLeaveChart: i0, setActiveClickItemIndex: Zge, setMouseOverAxisIndex: a0, setMouseClickAxisIndex: Qge, setSyncInteraction: o0, setKeyboardInteraction: s0 } = n0.actions, $ge = n0.reducer;
+}), { addTooltipEntrySettings: qge, replaceTooltipEntrySettings: Jge, removeTooltipEntrySettings: Yge, setTooltipSettingsState: Xge, setActiveMouseOverItemIndex: r0, mouseLeaveItem: Zge, mouseLeaveChart: i0, setActiveClickItemIndex: Qge, setMouseOverAxisIndex: a0, setMouseClickAxisIndex: $ge, setSyncInteraction: o0, setKeyboardInteraction: s0 } = n0.actions, e_e = n0.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
function c0(e, t) {
@@ -55339,26 +55346,26 @@ function l0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? c0(Object(n), !0).forEach(function(t) {
- e_e(e, t, n[t]);
+ t_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function e_e(e, t, n) {
- return (t = t_e(t)) in e ? Object.defineProperty(e, t, {
+function t_e(e, t, n) {
+ return (t = n_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function t_e(e) {
- var t = n_e(e, "string");
+function n_e(e) {
+ var t = r_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function n_e(e, t) {
+function r_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55368,21 +55375,21 @@ function n_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function r_e(e, t, n) {
+function i_e(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function i_e(e) {
+function a_e(e) {
return e.index != null;
}
var u0 = (e, t, n, r) => {
if (t == null) return t0;
- var i = r_e(e, t, n);
+ var i = i_e(e, t, n);
if (i == null) return t0;
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 (i_e(i)) {
+ if (a_e(i)) {
if (a) return l0(l0({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
@@ -55395,7 +55402,7 @@ var u0 = (e, t, n, r) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function a_e(e) {
+function o_e(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -55404,14 +55411,14 @@ function a_e(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function o_e(e, t) {
- var n = a_e(e), r = t[0], i = t[1];
+function s_e(e, t) {
+ var n = o_e(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function s_e(e, t, n) {
+function c_e(e, t, n) {
if (n == null || t == null) return !0;
var r = qH(e, t);
- return r == null || !iY(n) || o_e(r, n);
+ return r == null || !iY(n) || s_e(r, n);
}
var d0 = (e, t, n, r) => {
var i = e?.index;
@@ -55421,7 +55428,7 @@ var d0 = (e, t, n, r) => {
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 || s_e(l, n, r) ? String(c) : null;
+ return l == null || c_e(l, n, r) ? String(c) : null;
}, f0 = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
@@ -55465,26 +55472,26 @@ function _0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? g0(Object(n), !0).forEach(function(t) {
- c_e(e, t, n[t]);
+ l_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function c_e(e, t, n) {
- return (t = l_e(t)) in e ? Object.defineProperty(e, t, {
+function l_e(e, t, n) {
+ return (t = u_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function l_e(e) {
- var t = u_e(e, "string");
+function u_e(e) {
+ var t = d_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function u_e(e, t) {
+function d_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55494,39 +55501,39 @@ function u_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function d_e(e) {
+function f_e(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function f_e(e) {
+function p_e(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function p_e(e) {
+function m_e(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
function v0(e) {
if (typeof e == "string") return e;
}
-function m_e(e) {
+function h_e(e) {
if (!(typeof e != "object" || !e)) return {
- name: "name" in e ? d_e(e.name) : void 0,
- unit: "unit" in e ? f_e(e.unit) : void 0,
- dataKey: "dataKey" in e ? p_e(e.dataKey) : void 0,
+ name: "name" in e ? f_e(e.name) : void 0,
+ unit: "unit" in e ? p_e(e.unit) : void 0,
+ dataKey: "dataKey" in e ? m_e(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
color: "color" in e ? v0(e.color) : void 0,
fill: "fill" in e ? v0(e.fill) : void 0
};
}
-function h_e(e, t) {
+function g_e(e, t) {
return e ?? t;
}
var y0 = (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 = h_e(d, s), m = Array.isArray(p) ? zH(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? oz(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = g_e(d, s), m = Array.isArray(p) ? zH(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? oz(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = m_e(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = _0(_0({}, f), {}, {
+ var n = h_e(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = _0(_0({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
@@ -55556,17 +55563,17 @@ var y0 = (e, t, n, r, i, a, o) => {
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
n1,
$([oX, sX], V$)
-], U$, { memoizeOptions: { resultEqualityCheck: iX } }), g_e = $([x0], (e) => e.filter(nX)), S0 = $([$([x0], q$, { memoizeOptions: { resultEqualityCheck: iX } }), eY], J$), __e = $([
- g_e,
+], U$, { memoizeOptions: { resultEqualityCheck: iX } }), __e = $([x0], (e) => e.filter(nX)), S0 = $([$([x0], q$, { memoizeOptions: { resultEqualityCheck: iX } }), eY], J$), v_e = $([
+ __e,
eY,
n1
], tX), C0 = $([
S0,
n1,
x0
-], X$), w0 = $([n1], s1), T0 = $([w0, $([n1], (e) => e.allowDataOverflow)], oY), v_e = $([
+], X$), w0 = $([n1], s1), T0 = $([w0, $([n1], (e) => e.allowDataOverflow)], oY), y_e = $([
$([
- __e,
+ v_e,
$([x0], (e) => e.filter(nX)),
SY,
CY
@@ -55574,17 +55581,17 @@ var y0 = (e, t, n, r, i, a, o) => {
eY,
oX,
T0
-], o1), y_e = $([
+], o1), b_e = $([
S0,
n1,
$([x0], K$),
u1,
oX
-], f1, { memoizeOptions: { resultEqualityCheck: rX } }), b_e = $([$([
+], f1, { memoizeOptions: { resultEqualityCheck: rX } }), x_e = $([$([
p1,
oX,
sX
-], m1), oX], _1), x_e = $([$([
+], m1), oX], _1), S_e = $([$([
h1,
oX,
sX
@@ -55599,21 +55606,21 @@ var y0 = (e, t, n, r, i, a, o) => {
n1,
w0,
T0,
- v_e,
y_e,
+ b_e,
$([
- b_e,
+ x_e,
$([$([
g1,
oX,
sX
], m1), oX], y1),
- x_e
+ S_e
], d1),
gW,
oX
], b1)
-], x1), S_e = $([
+], x1), C_e = $([
n1,
E0,
$([
@@ -55625,7 +55632,7 @@ var y0 = (e, t, n, r, i, a, o) => {
], E1), D0 = (e) => O1(e, oX(e), sX(e), !1), O0 = $([n1, D0], MY), k0 = $([$([
n1,
b0,
- S_e,
+ C_e,
O0
], T$)], cX), A0 = $([
gW,
@@ -55638,7 +55645,7 @@ var y0 = (e, t, n, r, i, a, o) => {
C0,
n1,
oX
- ], V1),
+ ], H1),
$([
gW,
C0,
@@ -55671,10 +55678,10 @@ var y0 = (e, t, n, r, i, a, o) => {
}
}
}), j0 = $([
- Y1,
X1,
- Gge
-], (e, t, n) => Z1(n.shared, e, t)), M0 = (e) => e.tooltip.settings.trigger, N0 = (e) => e.tooltip.settings.defaultIndex, P0 = $([
+ Z1,
+ Kge
+], (e, t, n) => Q1(n.shared, e, t)), M0 = (e) => e.tooltip.settings.trigger, N0 = (e) => e.tooltip.settings.defaultIndex, P0 = $([
h0,
j0,
M0,
@@ -55686,14 +55693,14 @@ var y0 = (e, t, n, r, i, a, o) => {
E0
], d0), I0 = $([A0, F0], e0), L0 = $([P0], (e) => {
if (e) return e.dataKey;
-}), C_e = $([P0], (e) => {
+}), w_e = $([P0], (e) => {
if (e) return e.graphicalItemId;
}), R0 = $([
h0,
j0,
M0,
N0
-], p0), w_e = $([P0, $([
+], p0), T_e = $([P0, $([
hU,
gU,
gW,
@@ -55701,7 +55708,7 @@ var y0 = (e, t, n, r, i, a, o) => {
A0,
N0,
R0
-], f0)], (e, t) => e != null && e.coordinate ? e.coordinate : t), T_e = $([P0], (e) => e?.active ?? !1), E_e = $([$([
+], f0)], (e, t) => e != null && e.coordinate ? e.coordinate : t), E_e = $([P0], (e) => e?.active ?? !1), D_e = $([$([
R0,
F0,
eY,
@@ -55731,26 +55738,26 @@ function B0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? z0(Object(n), !0).forEach(function(t) {
- D_e(e, t, n[t]);
+ O_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function D_e(e, t, n) {
- return (t = O_e(t)) in e ? Object.defineProperty(e, t, {
+function O_e(e, t, n) {
+ return (t = k_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function O_e(e) {
- var t = k_e(e, "string");
+function k_e(e) {
+ var t = A_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function k_e(e, t) {
+function A_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55760,8 +55767,8 @@ function k_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var A_e = () => Q(n1), j_e = () => {
- var e = A_e(), t = Q(A0), n = Q(k0);
+var j_e = () => Q(n1), M_e = () => {
+ var e = j_e(), t = Q(A0), n = Q(k0);
return uU(!e || !n ? void 0 : B0(B0({}, e), {}, { scale: n }), t);
};
//#endregion
@@ -55780,26 +55787,26 @@ function H0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? V0(Object(n), !0).forEach(function(t) {
- M_e(e, t, n[t]);
+ N_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function M_e(e, t, n) {
- return (t = N_e(t)) in e ? Object.defineProperty(e, t, {
+function N_e(e, t, n) {
+ return (t = P_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 = P_e(e, "string");
+function P_e(e) {
+ var t = F_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function P_e(e, t) {
+function F_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55809,7 +55816,7 @@ function P_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var F_e = (e, t, n, r) => {
+var I_e = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -55825,7 +55832,7 @@ var F_e = (e, t, n, r) => {
x: 0,
y: 0
};
-}, I_e = (e, t, n, r) => {
+}, L_e = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "centric") {
@@ -55855,7 +55862,7 @@ var F_e = (e, t, n, r) => {
y: 0
};
};
-function L_e(e, t) {
+function R_e(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;
}
@@ -55892,7 +55899,7 @@ var U0 = (e, t, n, r, i) => {
}
}
return -1;
-}, W0 = () => Q(wY), G0 = (e, t) => t, K0 = (e, t, n) => n, q0 = (e, t, n, r) => r, R_e = $(A0, (e) => tB(e, (e) => e.coordinate)), J0 = $([
+}, W0 = () => Q(wY), G0 = (e, t) => t, K0 = (e, t, n) => n, q0 = (e, t, n, r) => r, z_e = $(A0, (e) => tB(e, (e) => e.coordinate)), J0 = $([
h0,
G0,
K0,
@@ -55902,7 +55909,7 @@ var U0 = (e, t, n, r, i) => {
S0,
r1,
E0
-], d0), z_e = (e, t, n) => {
+], d0), B_e = (e, t, n) => {
if (t != null) {
var r = h0(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
@@ -55920,7 +55927,7 @@ var U0 = (e, t, n, r, i) => {
A0,
q0,
X0
-], f0), B_e = $([J0, Z0], (e, t) => e.coordinate ?? t), Q0 = $([A0, Y0], e0), V_e = $([
+], f0), V_e = $([J0, Z0], (e, t) => e.coordinate ?? t), Q0 = $([A0, Y0], e0), H_e = $([
X0,
Y0,
eY,
@@ -55928,36 +55935,36 @@ var U0 = (e, t, n, r, i) => {
Q0,
m0,
G0
-], y0), H_e = $([J0, Y0], (e, t) => ({
+], y0), U_e = $([J0, Y0], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), U_e = (e, t, n, r, i, a, o) => {
- if (!(!e || !n || !r || !i) && L_e(e, o)) {
- var s = U0(pU(e, t), a, i, n, r), c = F_e(t, i, s, e);
+})), W_e = (e, t, n, r, i, a, o) => {
+ if (!(!e || !n || !r || !i) && R_e(e, o)) {
+ var s = U0(pU(e, t), a, i, n, r), c = I_e(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, W_e = (e, t, n, r, i, a, o) => {
+}, G_e = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
var s = NJ(e, n);
if (s) {
- var c = U0(mU(s, t), o, a, r, i), l = I_e(t, a, c, s);
+ var c = U0(mU(s, t), o, a, r, i), l = L_e(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, G_e = (e, t, n, r, i, a, o, s) => {
- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? U_e(e, t, r, i, a, o, s) : W_e(e, t, n, r, i, a, o);
-}, K_e = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, K_e = (e, t, n, r, i, a, o, s) => {
+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? W_e(e, t, r, i, a, o, s) : G_e(e, t, n, r, i, a, o);
+}, q_e = $((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;
}
-}), q_e = $((e) => e.zIndex.zIndexMap, (e) => {
+}), J_e = $((e) => e.zIndex.zIndexMap, (e) => {
var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(kY));
return Array.from(new Set(t)).sort((e, t) => e - t);
}, { memoizeOptions: { resultEqualityCheck: aX } });
@@ -55977,26 +55984,26 @@ function e2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? $0(Object(n), !0).forEach(function(t) {
- J_e(e, t, n[t]);
+ Y_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function J_e(e, t, n) {
- return (t = Y_e(t)) in e ? Object.defineProperty(e, t, {
+function Y_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 Y_e(e) {
- var t = X_e(e, "string");
+function X_e(e) {
+ var t = Z_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function X_e(e, t) {
+function Z_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56006,17 +56013,17 @@ function X_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Z_e = { zIndexMap: Object.values(kY).reduce((e, t) => e2(e2({}, e), {}, { [t]: {
+var Q_e = { zIndexMap: Object.values(kY).reduce((e, t) => e2(e2({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, Q_e = new Set(Object.values(kY));
-function $_e(e) {
- return Q_e.has(e);
+} }), {}) }, $_e = new Set(Object.values(kY));
+function eve(e) {
+ return $_e.has(e);
}
var t2 = GV({
name: "zIndex",
- initialState: Z_e,
+ initialState: Q_e,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -56032,7 +56039,7 @@ var t2 = GV({
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !$_e(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !eve(n) && delete e.zIndexMap[n]);
},
prepare: AV()
},
@@ -56055,19 +56062,19 @@ var t2 = GV({
prepare: AV()
}
}
-}), { registerZIndexPortal: eve, unregisterZIndexPortal: tve, registerZIndexPortalElement: nve, unregisterZIndexPortalElement: rve } = t2.actions, ive = t2.reducer;
+}), { registerZIndexPortal: tve, unregisterZIndexPortal: nve, registerZIndexPortalElement: rve, unregisterZIndexPortalElement: ive } = t2.actions, ave = t2.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
function n2(e) {
var { zIndex: t, children: n } = e, r = xW() && t !== void 0 && t !== 0, i = IU(), a = qz();
- (0, I.useLayoutEffect)(() => r ? (a(eve({ zIndex: t })), () => {
- a(tve({ zIndex: t }));
+ (0, I.useLayoutEffect)(() => r ? (a(tve({ zIndex: t })), () => {
+ a(nve({ zIndex: t }));
}) : uz, [
a,
t,
r
]);
- var o = Q((e) => K_e(e, t, i));
+ var o = Q((e) => q_e(e, t, i));
return r ? o ? /*#__PURE__*/ (0, yh.createPortal)(n, o) : null : n;
}
//#endregion
@@ -56095,26 +56102,26 @@ function a2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? i2(Object(n), !0).forEach(function(t) {
- ave(e, t, n[t]);
+ ove(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ave(e, t, n) {
- return (t = ove(t)) in e ? Object.defineProperty(e, t, {
+function ove(e, t, n) {
+ return (t = sve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ove(e) {
- var t = sve(e, "string");
+function sve(e) {
+ var t = cve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function sve(e, t) {
+function cve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56124,11 +56131,11 @@ function sve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function cve(e) {
+function lve(e) {
var { cursor: t, cursorComp: n, cursorProps: r } = e;
return /*#__PURE__*/ (0, I.isValidElement)(t) ? /*#__PURE__*/ (0, I.cloneElement)(t, r) : /*#__PURE__*/ (0, I.createElement)(n, r);
}
-function lve(e) {
+function uve(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;
@@ -56153,15 +56160,15 @@ function lve(e) {
payloadIndex: f,
className: Wm("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ I.createElement(cve, {
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ I.createElement(lve, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function uve(e) {
- var t = j_e(), n = fW(), r = _W(), i = W0();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ I.createElement(lve, r2({}, e, {
+function dve(e) {
+ var t = M_e(), n = fW(), r = _W(), i = W0();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ I.createElement(uve, r2({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -56170,7 +56177,7 @@ function uve(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var o2 = /*#__PURE__*/ (0, I.createContext)(null), dve = () => (0, I.useContext)(o2), fve = (/* @__PURE__ */ te((/* @__PURE__ */ M(((e, t) => {
+var o2 = /*#__PURE__*/ (0, I.createContext)(null), fve = () => (0, I.useContext)(o2), pve = (/* @__PURE__ */ te((/* @__PURE__ */ M(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -56257,7 +56264,7 @@ var o2 = /*#__PURE__*/ (0, I.createContext)(null), dve = () => (0, I.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, s2 = new fve(), c2 = "recharts.syncEvent.tooltip", l2 = "recharts.syncEvent.brush", u2 = (e, t) => {
+})))(), 1)).default, s2 = new pve(), c2 = "recharts.syncEvent.tooltip", l2 = "recharts.syncEvent.brush", u2 = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
if (!$R(n)) return e[n];
@@ -56273,10 +56280,10 @@ var o2 = /*#__PURE__*/ (0, I.createContext)(null), dve = () => (0, I.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), pve = d2.reducer, { createEventEmitter: mve } = d2.actions;
+}), mve = d2.reducer, { createEventEmitter: hve } = d2.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function hve(e) {
+function gve(e) {
return e.tooltip.syncInteraction;
}
var f2 = GV({
@@ -56303,7 +56310,7 @@ var f2 = GV({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: p2, setDataStartEndIndexes: gve, setComputedData: _ve } = f2.actions, vve = f2.reducer, yve = ["x", "y"];
+}), { setChartData: p2, setDataStartEndIndexes: _ve, setComputedData: vve } = f2.actions, yve = f2.reducer, bve = ["x", "y"];
function m2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -56318,26 +56325,26 @@ function h2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? m2(Object(n), !0).forEach(function(t) {
- bve(e, t, n[t]);
+ xve(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bve(e, t, n) {
- return (t = xve(t)) in e ? Object.defineProperty(e, t, {
+function xve(e, t, n) {
+ return (t = Sve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xve(e) {
- var t = Sve(e, "string");
+function Sve(e) {
+ var t = Cve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Sve(e, t) {
+function Cve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56347,16 +56354,16 @@ function Sve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Cve(e, t) {
+function wve(e, t) {
if (e == null) return {};
- var n, r, i = wve(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 wve(e, t) {
+function Tve(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56365,7 +56372,7 @@ function wve(e, t) {
}
return n;
}
-function Tve() {
+function Eve() {
var e = Q(TY), t = Q(DY), n = qz(), r = Q(EY), i = Q(A0), a = _W(), o = uW(), s = Q((e) => e.rootProps.className);
(0, I.useEffect)(() => {
if (e == null) return uz;
@@ -56374,7 +56381,7 @@ function Tve() {
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 = Cve(d, yve), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = h2(h2({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = wve(d, bve), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = h2(h2({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
@@ -56435,12 +56442,12 @@ function Tve() {
o
]);
}
-function Eve() {
+function Dve() {
var e = Q(TY), t = Q(DY), n = qz();
(0, I.useEffect)(() => {
if (e == null) return uz;
var r = (r, i, a) => {
- t !== a && e === r && n(gve(i));
+ t !== a && e === r && n(_ve(i));
};
return s2.on(l2, r), () => {
s2.off(l2, r);
@@ -56451,14 +56458,14 @@ function Eve() {
e
]);
}
-function Dve() {
+function Ove() {
var e = qz();
(0, I.useEffect)(() => {
- e(mve());
- }, [e]), Tve(), Eve();
+ e(hve());
+ }, [e]), Eve(), Dve();
}
-function Ove(e, t, n, r, i, a) {
- var o = Q((n) => z_e(n, e, t)), s = Q(C_e), c = Q(DY), l = Q(TY), u = Q(EY), d = Q(hve)?.active, f = uW();
+function kve(e, t, n, r, i, a) {
+ var o = Q((n) => B_e(n, e, t)), s = Q(w_e), c = Q(DY), l = Q(TY), u = Q(EY), d = Q(gve)?.active, f = uW();
(0, I.useEffect)(() => {
if (!d && l != null && c != null) {
var e = o0({
@@ -56502,26 +56509,26 @@ function _2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? g2(Object(n), !0).forEach(function(t) {
- kve(e, t, n[t]);
+ Ave(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g2(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 Ave(e, t, n) {
+ return (t = jve(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 jve(e) {
+ var t = Mve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jve(e, t) {
+function Mve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56531,13 +56538,13 @@ function jve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Mve(e) {
+function Nve(e) {
return e.dataKey;
}
-function Nve(e, t) {
+function Pve(e, t) {
return /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ I.createElement(e, t) : /*#__PURE__*/ I.createElement(vK, t);
}
-var v2 = [], Pve = {
+var v2 = [], Fve = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -56563,10 +56570,10 @@ var v2 = [], Pve = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function Fve(e) {
- var t = bz(e, Pve), { 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 = qz(), S = typeof v == "number" ? String(v) : v;
+function Ive(e) {
+ var t = bz(e, Fve), { 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 = qz(), S = typeof v == "number" ? String(v) : v;
(0, I.useEffect)(() => {
- x(Yge({
+ x(Xge({
shared: g,
trigger: _,
axisId: b,
@@ -56581,12 +56588,12 @@ function Fve(e) {
n,
S
]);
- var C = uW(), w = FK(), T = $1(g), { activeIndex: E, isActive: D } = Q((e) => H_e(e, T, _, S)) ?? {}, O = Q((e) => V_e(e, T, _, S)), k = Q((e) => Q0(e, T, _, S)), A = Q((e) => B_e(e, T, _, S)), j = O, M = dve(), N = n ?? D ?? !1, [ee, te] = iB([j, N]), P = T === "axis" ? k : void 0;
- Ove(T, _, A, P, E, N);
+ var C = uW(), w = FK(), T = Gge(g), { activeIndex: E, isActive: D } = Q((e) => U_e(e, T, _, S)) ?? {}, O = Q((e) => H_e(e, T, _, S)), k = Q((e) => Q0(e, T, _, S)), A = Q((e) => V_e(e, T, _, S)), j = O, M = fve(), N = n ?? D ?? !1, [ee, te] = iB([j, N]), P = T === "axis" ? k : void 0;
+ kve(T, _, A, P, E, N);
var F = y ?? M;
if (F == null || C == null || T == null) return null;
var ne = j ?? v2;
- N || (ne = v2), s && ne.length && (ne = Gz(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, Mve));
+ N || (ne = v2), s && ne.length && (ne = Gz(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, Nve));
var re = ne.length > 0, ie = _2(_2({}, t), {}, {
payload: ne,
label: P,
@@ -56611,8 +56618,8 @@ function Fve(e) {
lastBoundingBox: ee,
innerRef: te,
hasPortalFromProps: !!y
- }, Nve(o, ie));
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ (0, yh.createPortal)(L, F), N && /*#__PURE__*/ I.createElement(uve, {
+ }, Pve(o, ie));
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ (0, yh.createPortal)(L, F), N && /*#__PURE__*/ I.createElement(dve, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -56626,19 +56633,19 @@ var y2 = (e) => null;
y2.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function Ive(e, t, n) {
- return (t = Lve(t)) in e ? Object.defineProperty(e, t, {
+function Lve(e, t, n) {
+ return (t = Rve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Lve(e) {
- var t = Rve(e, "string");
+function Rve(e) {
+ var t = zve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Rve(e, t) {
+function zve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56648,9 +56655,9 @@ function Rve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var zve = class {
+var Bve = class {
constructor(e) {
- Ive(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ Lve(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -56683,30 +56690,30 @@ function b2(e, t) {
}
return n;
}
-function Bve(e) {
+function Vve(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? b2(Object(n), !0).forEach(function(t) {
- Vve(e, t, n[t]);
+ Hve(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Vve(e, t, n) {
- return (t = Hve(t)) in e ? Object.defineProperty(e, t, {
+function Hve(e, t, n) {
+ return (t = Uve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Hve(e) {
- var t = Uve(e, "string");
+function Uve(e) {
+ var t = Wve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Uve(e, t) {
+function Wve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56716,10 +56723,10 @@ function Uve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var x2 = Bve({}, {
+var x2 = Vve({}, {
cacheSize: 2e3,
enableCache: !0
-}), S2 = new zve(x2.cacheSize), Wve = {
+}), S2 = new Bve(x2.cacheSize), Gve = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -56728,13 +56735,13 @@ var x2 = Bve({}, {
border: "none",
whiteSpace: "pre"
}, C2 = "recharts_measurement_span";
-function Gve(e, t) {
+function Kve(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
var w2 = (e, t) => {
try {
var n = document.getElementById(C2);
- n || (n = document.createElement("span"), n.setAttribute("id", C2), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, Wve, t), n.textContent = `${e}`;
+ n || (n = document.createElement("span"), n.setAttribute("id", C2), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, Gve, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -56753,24 +56760,24 @@ var w2 = (e, t) => {
height: 0
};
if (!x2.enableCache) return w2(e, t);
- var n = Gve(e, t), r = S2.get(n);
+ var n = Kve(e, t), r = S2.get(n);
if (r) return r;
var i = w2(e, t);
return S2.set(n, i), i;
}, E2;
-function Kve(e, t, n) {
- return (t = qve(t)) in e ? Object.defineProperty(e, t, {
+function qve(e, t, n) {
+ return (t = Jve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qve(e) {
- var t = Jve(e, "string");
+function Jve(e) {
+ var t = Yve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Jve(e, t) {
+function Yve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56780,7 +56787,7 @@ function Jve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, O2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, Yve = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, Xve = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, Zve = {
+var D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, O2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, Xve = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, Zve = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, Qve = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -56788,7 +56795,7 @@ var D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, O2 = /(
in: 96,
Q: 96 / 101.6,
px: 1
-}, Qve = [
+}, $ve = [
"cm",
"mm",
"pt",
@@ -56797,20 +56804,20 @@ var D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, O2 = /(
"Q",
"px"
];
-function $ve(e) {
- return Qve.includes(e);
+function eye(e) {
+ return $ve.includes(e);
}
var k2 = "NaN";
-function eye(e, t) {
- return e * Zve[t];
+function tye(e, t) {
+ return e * Qve[t];
}
var A2 = class e {
static parse(t) {
- var [, n, r] = Xve.exec(t) ?? [];
+ var [, n, r] = Zve.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, $R(e) && (this.unit = ""), t !== "" && !Yve.test(t) && (this.num = NaN, this.unit = ""), $ve(t) && (this.num = eye(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, $R(e) && (this.unit = ""), t !== "" && !Xve.test(t) && (this.num = NaN, this.unit = ""), eye(t) && (this.num = tye(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -56831,7 +56838,7 @@ var A2 = class e {
return $R(this.num);
}
};
-E2 = A2, Kve(A2, "NaN", new E2(NaN, ""));
+E2 = A2, qve(A2, "NaN", new E2(NaN, ""));
function j2(e) {
if (e == null || e.includes(k2)) return k2;
for (var t = e; t.includes("*") || t.includes("/");) {
@@ -56847,31 +56854,31 @@ function j2(e) {
return t;
}
var M2 = /\(([^()]*)\)/;
-function tye(e) {
+function nye(e) {
for (var t = e, n; (n = M2.exec(t)) != null;) {
var [, r] = n;
t = t.replace(M2, j2(r));
}
return t;
}
-function nye(e) {
+function rye(e) {
var t = e.replace(/\s+/g, "");
- return t = tye(t), t = j2(t), t;
+ return t = nye(t), t = j2(t), t;
}
-function rye(e) {
+function iye(e) {
try {
- return nye(e);
+ return rye(e);
} catch {
return k2;
}
}
function N2(e) {
- var t = rye(e.slice(5, -1));
+ var t = iye(e.slice(5, -1));
return t === k2 ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var iye = [
+var aye = [
"x",
"y",
"lineHeight",
@@ -56880,7 +56887,7 @@ var iye = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], aye = [
+], oye = [
"dx",
"dy",
"angle",
@@ -56898,14 +56905,14 @@ function P2() {
}
function F2(e, t) {
if (e == null) return {};
- var n, r, i = oye(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 oye(e, t) {
+function sye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56932,7 +56939,7 @@ var I2 = /[ \f\n\r\t\v\u2028\u2029]+/, L2 = (e) => {
function R2(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function sye(e) {
+function cye(e) {
return sz(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
var z2 = (e, t, n, r) => e.reduce((e, i) => {
@@ -56946,16 +56953,16 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), B2 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), cye = "…", V2 = (e, t, n, r, i, a, o, s) => {
+}, []), B2 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), lye = "…", V2 = (e, t, n, r, i, a, o, s) => {
var c = L2({
breakAll: n,
style: r,
- children: e.slice(0, t) + cye
+ children: e.slice(0, t) + lye
});
if (!c) return [!1, []];
var l = z2(c.wordsWithComputedWidth, a, o, s);
return [l.length > i || B2(l).width > Number(a), l];
-}, lye = (e, t, n, r, i) => {
+}, uye = (e, t, n, r, i) => {
var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = z2(t, r, n, i);
if (!l || i || !(d.length > a || B2(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
@@ -56970,7 +56977,7 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
}, H2 = (e) => [{
words: sz(e) ? [] : e.toString().split(I2),
width: void 0
-}], uye = (e) => {
+}], dye = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
if ((t || n) && !TK.isSsr) {
var s, c, l = L2({
@@ -56982,7 +56989,7 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
} else return H2(r);
- return lye({
+ return uye({
breakAll: a,
children: r,
maxLines: o,
@@ -56990,7 +56997,7 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
}, s, c, t, !!n);
}
return H2(r);
-}, U2 = "#808080", dye = {
+}, U2 = "#808080", fye = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
@@ -57002,7 +57009,7 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
x: 0,
y: 0
}, W2 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = bz(e, dye), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = F2(n, iye), f = (0, I.useMemo)(() => uye({
+ var n = bz(e, fye), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = F2(n, aye), f = (0, I.useMemo)(() => dye({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -57016,7 +57023,7 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = F2(d, aye);
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = F2(d, oye);
if (!tz(r) || !tz(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
if (!BH(y) || !BH(b)) return null;
@@ -57068,26 +57075,26 @@ function K2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? G2(Object(n), !0).forEach(function(t) {
- fye(e, t, n[t]);
+ pye(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G2(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 pye(e, t, n) {
+ return (t = mye(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 mye(e) {
+ var t = hye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mye(e, t) {
+function hye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57097,7 +57104,7 @@ function mye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var hye = (e) => {
+var gye = (e) => {
var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = lW(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 = {
@@ -57190,17 +57197,17 @@ var hye = (e) => {
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
-}, gye = ["labelRef"], _ye = ["content"];
+}, _ye = ["labelRef"], vye = ["content"];
function q2(e, t) {
if (e == null) return {};
- var n, r, i = vye(e, t);
+ var n, r, i = yye(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 vye(e, t) {
+function yye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57223,26 +57230,26 @@ function Y2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? J2(Object(n), !0).forEach(function(t) {
- yye(e, t, n[t]);
+ bye(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : J2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yye(e, t, n) {
- return (t = bye(t)) in e ? Object.defineProperty(e, t, {
+function bye(e, t, n) {
+ return (t = xye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bye(e) {
- var t = xye(e, "string");
+function xye(e) {
+ var t = Sye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xye(e, t) {
+function Sye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57281,7 +57288,7 @@ var Z2 = /*#__PURE__*/ (0, I.createContext)(null), Q2 = (e) => {
}, $2 = () => {
var e = (0, I.useContext)(Z2), t = uW();
return e || (t ? lW(t) : void 0);
-}, e4 = /*#__PURE__*/ (0, I.createContext)(null), Sye = (e) => {
+}, e4 = /*#__PURE__*/ (0, I.createContext)(null), Cye = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, I.useMemo)(() => ({
cx: t,
cy: n,
@@ -57303,11 +57310,11 @@ var Z2 = /*#__PURE__*/ (0, I.createContext)(null), Q2 = (e) => {
}, t4 = () => {
var e = (0, I.useContext)(e4), t = Q(ZY);
return e || t;
-}, Cye = (e) => {
+}, wye = (e) => {
var { value: t, formatter: n } = e, r = sz(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, n4 = (e) => e != null && typeof e == "function", wye = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 360), Tye = (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 = wye(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, n4 = (e) => e != null && typeof e == "function", Tye = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 360), Eye = (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 = Tye(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -57331,7 +57338,7 @@ var Z2 = /*#__PURE__*/ (0, I.createContext)(null), Q2 = (e) => {
id: S,
d: x
})), /*#__PURE__*/ I.createElement("textPath", { xlinkHref: `#${S}` }, n));
-}, Eye = (e, t, n) => {
+}, Dye = (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 } = DJ(r, i, o + t, l);
@@ -57367,14 +57374,14 @@ var Z2 = /*#__PURE__*/ (0, I.createContext)(null), Q2 = (e) => {
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, r4 = (e) => e != null && "cx" in e && Z(e.cx), Dye = {
+}, r4 = (e) => e != null && "cx" in e && Z(e.cx), Oye = {
angle: 0,
offset: 5,
zIndex: kY.label,
position: "middle",
textBreakAll: !1
};
-function Oye(e) {
+function kye(e) {
if (!r4(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
@@ -57387,24 +57394,24 @@ function Oye(e) {
};
}
function i4(e) {
- var t = bz(e, Dye), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = t4(), f = $2(), p = n == null ? i === "center" ? f : d ?? f : r4(n) ? n : lW(n), m, h, g = Oye(p);
+ var t = bz(e, Oye), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = t4(), f = $2(), p = n == null ? i === "center" ? f : d ?? f : r4(n) ? n : lW(n), m, h, g = kye(p);
if (!p || sz(a) && sz(o) && !/*#__PURE__*/ (0, I.isValidElement)(s) && typeof s != "function") return null;
var _ = Y2(Y2({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, I.isValidElement)(s)) {
- var { labelRef: v } = _, y = q2(_, gye);
+ var { labelRef: v } = _, y = q2(_, _ye);
return /*#__PURE__*/ (0, I.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = q2(_, _ye);
+ var { content: b } = _, x = q2(_, vye);
if (m = /*#__PURE__*/ (0, I.createElement)(s, x), /*#__PURE__*/ (0, I.isValidElement)(m)) return m;
- } else m = Cye(t);
+ } else m = wye(t);
var S = KL(t);
if (r4(p)) {
- if (i === "insideStart" || i === "insideEnd" || i === "end") return Tye(t, i, m, S, p);
- h = Eye(p, t.offset, t.position);
+ if (i === "insideStart" || i === "insideEnd" || i === "end") return Eye(t, i, m, S, p);
+ h = Dye(p, t.offset, t.position);
} else {
if (!g) return null;
- var C = hye({
+ var C = gye({
viewBox: g,
position: i,
offset: t.offset,
@@ -57448,13 +57455,13 @@ function o4(e) {
var { label: t, labelRef: n } = e;
return a4(t, $2(), n) || null;
}
-function kye(e) {
+function Aye(e) {
var { label: t } = e;
return a4(t, t4()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var Aye = ["valueAccessor"], jye = [
+var jye = ["valueAccessor"], Mye = [
"dataKey",
"clockWise",
"id",
@@ -57472,14 +57479,14 @@ function s4() {
}
function c4(e, t) {
if (e == null) return {};
- var n, r, i = Mye(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 Mye(e, t) {
+function Nye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57488,18 +57495,18 @@ function Mye(e, t) {
}
return n;
}
-var Nye = (e) => {
+var Pye = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (sye(t)) return t;
-}, l4 = /*#__PURE__*/ (0, I.createContext)(void 0), u4 = l4.Provider, d4 = /*#__PURE__*/ (0, I.createContext)(void 0), Pye = d4.Provider;
-function Fye() {
+ if (cye(t)) return t;
+}, l4 = /*#__PURE__*/ (0, I.createContext)(void 0), u4 = l4.Provider, d4 = /*#__PURE__*/ (0, I.createContext)(void 0), Fye = d4.Provider;
+function Iye() {
return (0, I.useContext)(l4);
}
-function Iye() {
+function Lye() {
return (0, I.useContext)(d4);
}
function f4(e) {
- var { valueAccessor: t = Nye } = e, n = c4(e, Aye), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = c4(n, jye), l = Fye(), u = Iye(), d = l || u;
+ var { valueAccessor: t = Pye } = e, n = c4(e, jye), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = c4(n, Mye), l = Iye(), u = Lye(), d = l || u;
return !d || !d.length ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: s ?? kY.label }, /*#__PURE__*/ I.createElement(XL, { className: "recharts-label-list" }, d.map((e, i) => {
var s = sz(r) ? t(e, i) : qH(e.payload, r), l = sz(a) ? {} : { id: `${a}-${i}` };
return /*#__PURE__*/ I.createElement(i4, s4({ key: `label-${i}` }, KL(e), c, l, {
@@ -57523,12 +57530,12 @@ function p4(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var Lye = [
+var Rye = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], Rye;
+], zye;
function m4() {
return m4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -57538,16 +57545,16 @@ function m4() {
return e;
}, m4.apply(null, arguments);
}
-function zye(e, t) {
+function Bye(e, t) {
if (e == null) return {};
- var n, r, i = Bye(e, t);
+ var n, r, i = Vye(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 Bye(e, t) {
+function Vye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57556,10 +57563,10 @@ function Bye(e, t) {
}
return n;
}
-function Vye(e, t) {
+function Hye(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var h4 = (e) => e != null && e.x === +e.x && e.y === +e.y, Hye = function() {
+var h4 = (e) => e != null && e.x === +e.x && e.y === +e.y, Uye = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
@@ -57570,9 +57577,9 @@ var h4 = (e) => e != null && e.x === +e.x && e.y === +e.y, Hye = function() {
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
}, g4 = (e, t) => {
- var n = Hye(e);
+ var n = Uye(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => ZR(Rye ||= Vye([
+ var r = n.map((e) => e.reduce((e, t, n) => ZR(zye ||= Hye([
"",
"",
"",
@@ -57580,15 +57587,15 @@ var h4 = (e) => e != null && e.x === +e.x && e.y === +e.y, Hye = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, Uye = (e, t, n) => {
+}, Wye = (e, t, n) => {
var r = g4(e, n);
return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${g4(Array.from(t).reverse(), n).slice(1)}`;
}, _4 = (e) => {
- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = zye(e, Lye);
+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = Bye(e, Rye);
if (!t || !t.length) return null;
var o = Wm("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = Uye(t, r, i);
+ var s = a.stroke && a.stroke !== "none", c = Wye(t, r, i);
return /*#__PURE__*/ I.createElement("g", { className: o }, /*#__PURE__*/ I.createElement("path", m4({}, KL(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
@@ -57677,7 +57684,7 @@ var w4 = () => void 0, T4 = $([
T4,
z$,
C1
-], w1), Wye = $([C1, $([
+], w1), Gye = $([C1, $([
R$,
T4,
E4,
@@ -57697,7 +57704,7 @@ var w4 = () => void 0, T4 = $([
}, k4 = $([$([
D4,
C1,
- Wye,
+ Gye,
O4
], T$)], cX), A4 = $([
gW,
@@ -57711,10 +57718,10 @@ var w4 = () => void 0, T4 = $([
k4,
E4,
O4,
- H1,
+ U1,
A4,
QY
-], W1), Gye = $([j4], (e) => {
+], G1), Kye = $([j4], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -57722,19 +57729,19 @@ var w4 = () => void 0, T4 = $([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), Kye = $([
+}), qye = $([
gW,
D4,
k4,
O4,
- H1,
+ U1,
A4,
QY
-], K1), qye = $([(e, t) => j4(e, "angleAxis", t, !1)], (e) => {
+], q1), Jye = $([(e, t) => j4(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), Jye = $([(e, t) => j4(e, "radiusAxis", t, !1)], (e) => {
+}), Yye = $([(e, t) => j4(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), Yye = [
+}), Xye = [
"gridType",
"radialLines",
"angleAxisId",
@@ -57747,16 +57754,16 @@ var w4 = () => void 0, T4 = $([
"polarRadius",
"zIndex"
];
-function Xye(e, t) {
+function Zye(e, t) {
if (e == null) return {};
- var n, r, i = Zye(e, t);
+ var n, r, i = Qye(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 Zye(e, t) {
+function Qye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57788,26 +57795,26 @@ function P4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? N4(Object(n), !0).forEach(function(t) {
- Qye(e, t, n[t]);
+ $ye(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Qye(e, t, n) {
- return (t = $ye(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 $ye(e) {
- var t = ebe(e, "string");
+function ebe(e) {
+ var t = tbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ebe(e, t) {
+function tbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57817,13 +57824,13 @@ function ebe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var tbe = (e, t, n, r) => {
+var nbe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
var o = DJ(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, nbe = (e) => {
+}, rbe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
var s = P4({ stroke: "#ccc" }, WL(e));
@@ -57854,9 +57861,9 @@ var tbe = (e, t, n, r) => {
}, WL(e));
return /*#__PURE__*/ I.createElement("path", M4({}, n, {
className: Wm("recharts-polar-grid-concentric-polygon", e.className),
- d: tbe(t, e.cx, e.cy, e.polarAngles)
+ d: nbe(t, e.cx, e.cy, e.polarAngles)
}));
-}, rbe = (e) => {
+}, ibe = (e) => {
var { polarRadius: t, gridType: n } = e;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
@@ -57870,14 +57877,14 @@ var tbe = (e, t, n, r) => {
radius: t
}));
}));
-}, ibe = {
+}, abe = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
zIndex: kY.grid
}, L4 = (e) => {
- var t = bz(e, ibe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = Xye(t, Yye), m = Q(ZY), h = Q((e) => qye(e, i)), g = Q((e) => Jye(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+ var t = bz(e, abe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = Zye(t, Xye), m = Q(ZY), h = Q((e) => Jye(e, i)), g = Q((e) => Yye(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
var y = P4({
cx: m?.cx ?? o ?? 0,
@@ -57888,13 +57895,13 @@ var tbe = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: y.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ I.createElement(rbe, M4({
+ return b <= 0 ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: y.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ I.createElement(ibe, M4({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ I.createElement(nbe, M4({
+ })), /*#__PURE__*/ I.createElement(rbe, M4({
gridType: n,
radialLines: r
}, y, {
@@ -57910,7 +57917,7 @@ function R4(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function abe(e, t = Tz) {
+function obe(e, t = Tz) {
if (e == null) return;
let n = R4(e);
if (n.length === 0) return;
@@ -57923,7 +57930,7 @@ function abe(e, t = Tz) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function obe(e, t = Tz) {
+function sbe(e, t = Tz) {
if (e == null) return;
let n = R4(e);
if (n.length === 0) return;
@@ -57956,7 +57963,7 @@ var z4 = GV({
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: sbe, removeRadiusAxis: cbe, addAngleAxis: lbe, removeAngleAxis: ube } = z4.actions, dbe = z4.reducer;
+}), { addRadiusAxis: cbe, removeRadiusAxis: lbe, addAngleAxis: ube, removeAngleAxis: dbe } = z4.actions, fbe = z4.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
function B4(e) {
@@ -57964,12 +57971,12 @@ function B4(e) {
}
//#endregion
//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js
-var fbe = ["type"], pbe = [
+var pbe = ["type"], mbe = [
"cx",
"cy",
"angle",
"axisLine"
-], mbe = [
+], hbe = [
"angle",
"tickFormatter",
"stroke",
@@ -57998,26 +58005,26 @@ function U4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? H4(Object(n), !0).forEach(function(t) {
- hbe(e, t, n[t]);
+ gbe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hbe(e, t, n) {
- return (t = gbe(t)) in e ? Object.defineProperty(e, t, {
+function gbe(e, t, n) {
+ return (t = _be(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gbe(e) {
- var t = _be(e, "string");
+function _be(e) {
+ var t = vbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _be(e, t) {
+function vbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58029,14 +58036,14 @@ function _be(e, t) {
}
function W4(e, t) {
if (e == null) return {};
- var n, r, i = vbe(e, t);
+ var n, r, i = ybe(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 vbe(e, t) {
+function ybe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58045,20 +58052,20 @@ function vbe(e, t) {
}
return n;
}
-var ybe = "radiusAxis";
-function bbe(e) {
+var bbe = "radiusAxis";
+function xbe(e) {
var t = qz(), n = bW(), r = (0, I.useMemo)(() => {
- var { type: t } = e, r = W4(e, fbe), i = NY(n, "radiusAxis", t);
+ var { type: t } = e, r = W4(e, pbe), i = NY(n, "radiusAxis", t);
if (i != null) return U4(U4({}, r), {}, { type: i });
}, [e, n]);
- return (0, I.useEffect)(() => r == null ? uz : (t(sbe(r)), () => {
- t(cbe(r));
+ return (0, I.useEffect)(() => r == null ? uz : (t(cbe(r)), () => {
+ t(lbe(r));
}), [t, r]), null;
}
-var xbe = (e, t, n, r) => {
+var Sbe = (e, t, n, r) => {
var { coordinate: i } = e;
return DJ(n, r, i, t);
-}, Sbe = (e) => {
+}, Cbe = (e) => {
var t;
switch (e) {
case "left":
@@ -58070,28 +58077,28 @@ var xbe = (e, t, n, r) => {
default: t = "middle";
}
return t;
-}, Cbe = (e, t, n, r) => {
- var i = abe(r, (e) => e.coordinate || 0);
+}, wbe = (e, t, n, r) => {
+ var i = obe(r, (e) => e.coordinate || 0);
return {
cx: t,
cy: n,
startAngle: e,
endAngle: e,
- innerRadius: obe(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ innerRadius: sbe(r, (e) => e.coordinate || 0)?.coordinate || 0,
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, wbe = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = W4(e, pbe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = DJ(n, r, s[0], i), l = DJ(n, r, s[1], i), u = U4(U4(U4({}, WL(o)), {}, { fill: "none" }, WL(a)), {}, {
+}, Tbe = (e, t) => {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = W4(e, mbe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = DJ(n, r, s[0], i), l = DJ(n, r, s[1], i), u = U4(U4(U4({}, WL(o)), {}, { fill: "none" }, WL(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
return /*#__PURE__*/ I.createElement("line", V4({ className: "recharts-polar-radius-axis-line" }, u));
-}, Tbe = (e, t, n) => /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ I.createElement(W2, V4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), Ebe = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = W4(e, mbe), s = Sbe(e.orientation), c = WL(o), l = GL(a), u = t.map((t, o) => {
- var u = xbe(t, e.angle, e.cx, e.cy), d = U4(U4(U4(U4({
+}, Ebe = (e, t, n) => /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ I.createElement(W2, V4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), Dbe = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = W4(e, hbe), s = Cbe(e.orientation), c = WL(o), l = GL(a), u = t.map((t, o) => {
+ var u = Sbe(t, e.angle, e.cx, e.cy), d = U4(U4(U4(U4({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
@@ -58101,18 +58108,18 @@ var xbe = (e, t, n, r) => {
return /*#__PURE__*/ I.createElement(XL, V4({
className: Wm("recharts-polar-radius-axis-tick", B4(a)),
key: `tick-${t.coordinate}`
- }, vz(e, t, o)), Tbe(a, d, r ? r(t.value, o) : t.value));
+ }, vz(e, t, o)), Ebe(a, d, r ? r(t.value, o) : t.value));
});
return /*#__PURE__*/ I.createElement(XL, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, Dbe = (e) => {
+}, Obe = (e) => {
var { radiusAxisId: t } = e, n = Q(ZY), r = Q((e) => k4(e, "radiusAxis", t)), i = Q((e) => j4(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
var a = U4(U4({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ I.createElement(n2, { zIndex: a.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: Wm("recharts-polar-radius-axis", ybe, a.className) }, s && wbe(a, i), o && Ebe(a, i), /*#__PURE__*/ I.createElement(Sye, Cbe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ I.createElement(kye, { label: a.label }), a.children)));
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: a.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: Wm("recharts-polar-radius-axis", bbe, a.className) }, s && Tbe(a, i), o && Dbe(a, i), /*#__PURE__*/ I.createElement(Cye, wbe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ I.createElement(Aye, { label: a.label }), a.children)));
};
function G4(e) {
var t = bz(e, jY);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(bbe, {
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(xbe, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -58129,12 +58136,12 @@ function G4(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ I.createElement(Dbe, t));
+ }), /*#__PURE__*/ I.createElement(Obe, t));
}
G4.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var Obe = ["children", "type"], kbe = ["ref"];
+var kbe = ["children", "type"], Abe = ["ref"];
function K4() {
return K4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -58158,26 +58165,26 @@ function J4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? q4(Object(n), !0).forEach(function(t) {
- Abe(e, t, n[t]);
+ jbe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Abe(e, t, n) {
- return (t = jbe(t)) in e ? Object.defineProperty(e, t, {
+function jbe(e, t, n) {
+ return (t = Mbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function jbe(e) {
- var t = Mbe(e, "string");
+function Mbe(e) {
+ var t = Nbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Mbe(e, t) {
+function Nbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58189,14 +58196,14 @@ function Mbe(e, t) {
}
function Y4(e, t) {
if (e == null) return {};
- var n, r, i = Nbe(e, t);
+ var n, r, i = Pbe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Nbe(e, t) {
+function Pbe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58205,17 +58212,17 @@ function Nbe(e, t) {
}
return n;
}
-var X4 = 1e-5, Pbe = Math.cos(TJ(45)), Fbe = "angleAxis";
-function Ibe(e) {
+var X4 = 1e-5, Fbe = Math.cos(TJ(45)), Ibe = "angleAxis";
+function Lbe(e) {
var t = qz(), n = bW(), r = (0, I.useMemo)(() => {
- var { children: t, type: r } = e, i = Y4(e, Obe), a = NY(n, "angleAxis", r);
+ var { children: t, type: r } = e, i = Y4(e, kbe), a = NY(n, "angleAxis", r);
if (a != null) return J4(J4({}, i), {}, { type: a });
}, [e, n]), i = r === Q((e) => VY(e, r?.id));
- return (0, I.useEffect)(() => r == null ? uz : (t(lbe(r)), () => {
- t(ube(r));
+ return (0, I.useEffect)(() => r == null ? uz : (t(ube(r)), () => {
+ t(dbe(r));
}), [t, r]), i ? e.children : null;
}
-var Lbe = (e, t) => {
+var Rbe = (e, t) => {
var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = DJ(n, r, i, e.coordinate), l = DJ(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
@@ -58223,13 +58230,13 @@ var Lbe = (e, t) => {
x2: l.x,
y2: l.y
};
-}, Rbe = (e, t) => {
+}, zbe = (e, t) => {
var n = Math.cos(TJ(-e.coordinate));
return n > X4 ? t === "outer" ? "start" : "end" : n < -X4 ? t === "outer" ? "end" : "start" : "middle";
-}, zbe = (e) => {
- var t = Math.cos(TJ(-e.coordinate)), n = Math.sin(TJ(-e.coordinate));
- return Math.abs(t) <= Pbe ? n > 0 ? "start" : "end" : "middle";
}, Bbe = (e) => {
+ var t = Math.cos(TJ(-e.coordinate)), n = Math.sin(TJ(-e.coordinate));
+ return Math.abs(t) <= Fbe ? n > 0 ? "start" : "end" : "middle";
+}, Vbe = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
var s = J4(J4({}, WL(e)), {}, { fill: "none" }, WL(a));
@@ -58240,12 +58247,12 @@ var Lbe = (e, t) => {
}));
var c = o.map((e) => DJ(t, n, r, e.coordinate));
return /*#__PURE__*/ I.createElement(_4, K4({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, Vbe = (e) => {
+}, Hbe = (e) => {
var { tick: t, tickProps: n, value: r } = e;
return t ? /*#__PURE__*/ I.isValidElement(t) ? /*#__PURE__*/ I.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ I.createElement(W2, K4({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
-}, Hbe = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = WL(e), { ref: s } = o, c = Y4(o, kbe), l = GL(t), u = J4(J4({}, c), {}, { fill: "none" }, WL(n)), d = a.map((a, o) => {
- var s = Lbe(a, e), d = Rbe(a, e.orientation), f = zbe(a), p = J4(J4(J4({}, c), {}, {
+}, Ube = (e) => {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = WL(e), { ref: s } = o, c = Y4(o, Abe), l = GL(t), u = J4(J4({}, c), {}, { fill: "none" }, WL(n)), d = a.map((a, o) => {
+ var s = Rbe(a, e), d = zbe(a, e.orientation), f = Bbe(a), p = J4(J4(J4({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -58259,25 +58266,25 @@ var Lbe = (e, t) => {
return /*#__PURE__*/ I.createElement(XL, K4({
className: Wm("recharts-polar-angle-axis-tick", B4(t)),
key: `tick-${a.coordinate}`
- }, vz(e, a, o)), n && /*#__PURE__*/ I.createElement("line", K4({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ I.createElement(Vbe, {
+ }, vz(e, a, o)), n && /*#__PURE__*/ I.createElement("line", K4({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ I.createElement(Hbe, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
return /*#__PURE__*/ I.createElement(XL, { className: "recharts-polar-angle-axis-ticks" }, d);
-}, Ube = (e) => {
- var { angleAxisId: t } = e, n = Q(ZY), r = Q((e) => k4(e, "angleAxis", t)), i = IU(), a = Q((e) => Gye(e, "angleAxis", t, i));
+}, Wbe = (e) => {
+ var { angleAxisId: t } = e, n = Q(ZY), r = Q((e) => k4(e, "angleAxis", t)), i = IU(), a = Q((e) => Kye(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
var o = J4(J4(J4({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ I.createElement(n2, { zIndex: o.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: Wm("recharts-polar-angle-axis", Fbe, o.className) }, /*#__PURE__*/ I.createElement(Bbe, o), /*#__PURE__*/ I.createElement(Hbe, o)));
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: o.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: Wm("recharts-polar-angle-axis", Ibe, o.className) }, /*#__PURE__*/ I.createElement(Vbe, o), /*#__PURE__*/ I.createElement(Ube, o)));
};
function Z4(e) {
var t = bz(e, AY);
- return /*#__PURE__*/ I.createElement(Ibe, {
+ return /*#__PURE__*/ I.createElement(Lbe, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -58294,12 +58301,12 @@ function Z4(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ I.createElement(Ube, t));
+ }, /*#__PURE__*/ I.createElement(Wbe, t));
}
Z4.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var Wbe = /* @__PURE__ */ M(((e) => {
+var Gbe = /* @__PURE__ */ M(((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) {
@@ -58328,13 +58335,13 @@ var Wbe = /* @__PURE__ */ M(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), Gbe = (/* @__PURE__ */ M(((e, t) => {
- t.exports = Wbe();
+})), Kbe = (/* @__PURE__ */ M(((e, t) => {
+ t.exports = Gbe();
})))(), Q4 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", $4 = null, e3 = null, t3 = (e) => {
if (e === $4 && Array.isArray(e3)) return e3;
var t = [];
return I.Children.forEach(e, (e) => {
- sz(e) || ((0, Gbe.isFragment)(e) ? t = t.concat(t3(e.props.children)) : t.push(e));
+ sz(e) || ((0, Kbe.isFragment)(e) ? t = t.concat(t3(e.props.children)) : t.push(e));
}), e3 = t, $4 = e, t;
};
function n3(e, t) {
@@ -58347,7 +58354,7 @@ function n3(e, t) {
var r3 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
-function Kbe(e) {
+function qbe(e) {
if (typeof e != "object" || !e) return !1;
if (Object.getPrototypeOf(e) === null) return !0;
if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -58360,7 +58367,7 @@ function Kbe(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
-var qbe, Jbe, Ybe, Xbe, Zbe;
+var Jbe, Ybe, Xbe, Zbe, Qbe;
function i3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -58375,26 +58382,26 @@ function a3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? i3(Object(n), !0).forEach(function(t) {
- Qbe(e, t, n[t]);
+ $be(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Qbe(e, t, n) {
- return (t = $be(t)) in e ? Object.defineProperty(e, t, {
+function $be(e, t, n) {
+ return (t = exe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function $be(e) {
- var t = exe(e, "string");
+function exe(e) {
+ var t = txe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function exe(e, t) {
+function txe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58417,29 +58424,29 @@ function s3(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
var c3 = (e, t, n, r, i) => {
- var a = n - r, o = ZR(qbe ||= s3([
+ var a = n - r, o = ZR(Jbe ||= s3([
"M ",
",",
""
]), e, t);
- return o += ZR(Jbe ||= s3([
+ return o += ZR(Ybe ||= s3([
"L ",
",",
""
- ]), e + n, t), o += ZR(Ybe ||= s3([
+ ]), e + n, t), o += ZR(Xbe ||= s3([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += ZR(Xbe ||= s3([
+ ]), e + n - a / 2, t + i), o += ZR(Zbe ||= s3([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += ZR(Zbe ||= s3([
+ ]), e + n - a / 2 - r, t + i), o += ZR(Qbe ||= s3([
"L ",
",",
" Z"
]), e, t), o;
-}, txe = {
+}, nxe = {
x: 0,
y: 0,
upperWidth: 0,
@@ -58449,8 +58456,8 @@ var c3 = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, nxe = (e) => {
- var t = bz(e, txe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, I.useRef)(null), [p, m] = (0, I.useState)(-1), h = (0, I.useRef)(i), g = (0, I.useRef)(a), _ = (0, I.useRef)(o), v = (0, I.useRef)(n), y = (0, I.useRef)(r), b = Jq(e, "trapezoid-");
+}, rxe = (e) => {
+ var t = bz(e, nxe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, I.useRef)(null), [p, m] = (0, I.useState)(-1), h = (0, I.useRef)(i), g = (0, I.useRef)(a), _ = (0, I.useRef)(o), v = (0, I.useRef)(n), y = (0, I.useRef)(r), b = Jq(e, "trapezoid-");
if ((0, I.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
@@ -58485,22 +58492,22 @@ var c3 = (e, t, n, r, i) => {
style: a3(a3({}, p), t.style)
}));
});
-}, rxe = [
+}, ixe = [
"option",
"shapeType",
"activeClassName",
"inActiveClassName"
];
-function ixe(e, t) {
+function axe(e, t) {
if (e == null) return {};
- var n, r, i = axe(e, t);
+ var n, r, i = oxe(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 axe(e, t) {
+function oxe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58523,26 +58530,26 @@ function u3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? l3(Object(n), !0).forEach(function(t) {
- oxe(e, t, n[t]);
+ sxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oxe(e, t, n) {
- return (t = sxe(t)) in e ? Object.defineProperty(e, t, {
+function sxe(e, t, n) {
+ return (t = cxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sxe(e) {
- var t = cxe(e, "string");
+function cxe(e) {
+ var t = lxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cxe(e, t) {
+function lxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58552,34 +58559,34 @@ function cxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function lxe(e, t) {
+function uxe(e, t) {
return u3(u3({}, t), e);
}
-function uxe(e, t) {
+function dxe(e, t) {
return e === "symbols";
}
function d3(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
case "rectangle": return /*#__PURE__*/ I.createElement(vJ, n);
- case "trapezoid": return /*#__PURE__*/ I.createElement(nxe, n);
+ case "trapezoid": return /*#__PURE__*/ I.createElement(rxe, n);
case "sector": return /*#__PURE__*/ I.createElement(YJ, n);
case "symbols":
- if (uxe(t, n)) return /*#__PURE__*/ I.createElement(hz, n);
+ if (dxe(t, n)) return /*#__PURE__*/ I.createElement(hz, n);
break;
case "curve": return /*#__PURE__*/ I.createElement(XK, n);
default: return null;
}
}
-function dxe(e) {
+function fxe(e) {
return /*#__PURE__*/ (0, I.isValidElement)(e) ? e.props : e;
}
function f3(e) {
- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = ixe(e, rxe), o;
- if (/*#__PURE__*/ (0, I.isValidElement)(t)) o = /*#__PURE__*/ (0, I.cloneElement)(t, u3(u3({}, a), dxe(t)));
+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = axe(e, ixe), o;
+ if (/*#__PURE__*/ (0, I.isValidElement)(t)) o = /*#__PURE__*/ (0, I.cloneElement)(t, u3(u3({}, a), fxe(t)));
else if (typeof t == "function") o = t(a, a.index);
- else if (Kbe(t) && typeof t != "boolean") {
- var s = lxe(t, a);
+ else if (qbe(t) && typeof t != "boolean") {
+ var s = uxe(t, a);
o = /*#__PURE__*/ I.createElement(d3, {
shapeType: n,
elementProps: s
@@ -58608,12 +58615,12 @@ var p3 = (e, t, n) => {
}, m3 = (e) => {
var t = qz();
return (n, r) => (i) => {
- e?.(n, r, i), t(Xge());
+ e?.(n, r, i), t(Zge());
};
}, h3 = (e, t, n) => {
var r = qz();
return (i, a) => (o) => {
- e?.(i, a, o), r(Zge({
+ e?.(i, a, o), r(Qge({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -58626,7 +58633,7 @@ var p3 = (e, t, n) => {
function g3(e) {
var { tooltipEntrySettings: t } = e, n = qz(), r = IU(), i = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- r || (i.current === null ? n(Kge(t)) : i.current !== t && n(qge({
+ r || (i.current === null ? n(qge(t)) : i.current !== t && n(Jge({
prev: i.current,
next: t
})), i.current = t);
@@ -58635,7 +58642,7 @@ function g3(e) {
n,
r
]), (0, I.useLayoutEffect)(() => () => {
- i.current &&= (n(Jge(i.current)), null);
+ i.current &&= (n(Yge(i.current)), null);
}, [n]), null;
}
//#endregion
@@ -58672,21 +58679,21 @@ function v3(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var fxe = I.useId ?? (() => {
+var pxe = I.useId ?? (() => {
var [e] = I.useState(() => nz("uid-"));
return e;
});
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function pxe(e, t) {
- var n = fxe();
+function mxe(e, t) {
+ var n = pxe();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var mxe = /*#__PURE__*/ (0, I.createContext)(void 0), y3 = (e) => {
- var { id: t, type: n, children: r } = e, i = pxe(`recharts-${n}`, t);
- return /*#__PURE__*/ I.createElement(mxe.Provider, { value: i }, r(i));
+var hxe = /*#__PURE__*/ (0, I.createContext)(void 0), y3 = (e) => {
+ var { id: t, type: n, children: r } = e, i = mxe(`recharts-${n}`, t);
+ return /*#__PURE__*/ I.createElement(hxe.Provider, { value: i }, r(i));
}, b3 = GV({
name: "graphicalItems",
initialState: {
@@ -58735,40 +58742,40 @@ var mxe = /*#__PURE__*/ (0, I.createContext)(void 0), y3 = (e) => {
prepare: AV()
}
}
-}), { addCartesianGraphicalItem: hxe, replaceCartesianGraphicalItem: gxe, removeCartesianGraphicalItem: _xe, addPolarGraphicalItem: vxe, removePolarGraphicalItem: yxe, replacePolarGraphicalItem: bxe } = b3.actions, xxe = b3.reducer, x3 = /*#__PURE__*/ (0, I.memo)((e) => {
+}), { addCartesianGraphicalItem: gxe, replaceCartesianGraphicalItem: _xe, removeCartesianGraphicalItem: vxe, addPolarGraphicalItem: yxe, removePolarGraphicalItem: bxe, replacePolarGraphicalItem: xxe } = b3.actions, Sxe = b3.reducer, x3 = /*#__PURE__*/ (0, I.memo)((e) => {
var t = qz(), n = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- n.current === null ? t(hxe(e)) : n.current !== e && t(gxe({
+ n.current === null ? t(gxe(e)) : n.current !== e && t(_xe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(_xe(n.current)), null);
+ n.current &&= (t(vxe(n.current)), null);
}, [t]), null;
}), S3 = /*#__PURE__*/ (0, I.memo)((e) => {
var t = qz(), n = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- n.current === null ? t(vxe(e)) : n.current !== e && t(bxe({
+ n.current === null ? t(yxe(e)) : n.current !== e && t(xxe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(yxe(n.current)), null);
+ n.current &&= (t(bxe(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function Sxe(e) {
+function Cxe(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function Cxe(e) {
- if (!(!Ez(e) || e.length === 0)) return Sxe(R4(e));
+function wxe(e) {
+ if (!(!Ez(e) || e.length === 0)) return Cxe(R4(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var wxe = ["points"];
+var Txe = ["points"];
function C3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -58783,26 +58790,26 @@ function w3(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) {
- Txe(e, t, n[t]);
+ Exe(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 Txe(e, t, n) {
- return (t = Exe(t)) in e ? Object.defineProperty(e, t, {
+function Exe(e, t, n) {
+ return (t = Dxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Exe(e) {
- var t = Dxe(e, "string");
+function Dxe(e) {
+ var t = Oxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Dxe(e, t) {
+function Oxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58821,16 +58828,16 @@ function T3() {
return e;
}, T3.apply(null, arguments);
}
-function Oxe(e, t) {
+function kxe(e, t) {
if (e == null) return {};
- var n, r, i = kxe(e, t);
+ var n, r, i = Axe(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 kxe(e, t) {
+function Axe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58839,20 +58846,20 @@ function kxe(e, t) {
}
return n;
}
-function Axe(e) {
+function jxe(e) {
var { option: t, dotProps: n, className: r } = e;
if (/*#__PURE__*/ (0, I.isValidElement)(t)) return /*#__PURE__*/ (0, I.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = Wm(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = Oxe(a, wxe);
+ var i = Wm(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = kxe(a, Txe);
return /*#__PURE__*/ I.createElement(y4, T3({}, s, { className: i }));
}
-function jxe(e, t) {
+function Mxe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
function E3(e) {
var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = kY.scatter } = e;
- if (!jxe(t, n)) return null;
- var u = r3(n), d = Uue(n), f = t.map((e, r) => {
+ if (!Mxe(t, n)) return null;
+ var u = r3(n), d = Wue(n), f = t.map((e, r) => {
var s = w3(w3(w3({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
@@ -58862,7 +58869,7 @@ function E3(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ I.createElement(Axe, {
+ return /*#__PURE__*/ I.createElement(jxe, {
key: `dot-${r}`,
option: n,
dotProps: s,
@@ -58887,26 +58894,26 @@ function O3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? D3(Object(n), !0).forEach(function(t) {
- Mxe(e, t, n[t]);
+ Nxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Mxe(e, t, n) {
- return (t = Nxe(t)) in e ? Object.defineProperty(e, t, {
+function Nxe(e, t, n) {
+ return (t = Pxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Nxe(e) {
- var t = Pxe(e, "string");
+function Pxe(e) {
+ var t = Fxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Pxe(e, t) {
+function Fxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58994,7 +59001,7 @@ var k3 = GV({
}
}
}
-}), { addXAxis: Fxe, replaceXAxis: Ixe, removeXAxis: Lxe, addYAxis: Rxe, replaceYAxis: zxe, removeYAxis: Bxe, addZAxis: Vxe, replaceZAxis: Hxe, removeZAxis: Uxe, updateYAxisWidth: Wxe } = k3.actions, Gxe = k3.reducer, Kxe = $([
+}), { addXAxis: Ixe, replaceXAxis: Lxe, removeXAxis: Rxe, addYAxis: zxe, replaceYAxis: Bxe, removeYAxis: Vxe, addZAxis: Hxe, replaceZAxis: Uxe, removeZAxis: Wxe, updateYAxisWidth: Gxe } = k3.actions, Kxe = k3.reducer, qxe = $([
$([MU], (e) => ({
top: e.top,
bottom: e.bottom,
@@ -59010,7 +59017,7 @@ var k3 = GV({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), A3 = () => Q(Kxe), qxe = () => Q(E_e);
+}), A3 = () => Q(qxe), Jxe = () => Q(D_e);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
function j3(e, t) {
@@ -59027,26 +59034,26 @@ function M3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? j3(Object(n), !0).forEach(function(t) {
- Jxe(e, t, n[t]);
+ Yxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : j3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Jxe(e, t, n) {
- return (t = Yxe(t)) in e ? Object.defineProperty(e, t, {
+function Yxe(e, t, n) {
+ return (t = Xxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Yxe(e) {
- var t = Xxe(e, "string");
+function Xxe(e) {
+ var t = Zxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Xxe(e, t) {
+function Zxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59056,7 +59063,7 @@ function Xxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Zxe = (e) => {
+var Qxe = (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 = M3(M3(M3({}, {
@@ -59077,10 +59084,10 @@ var Zxe = (e) => {
}, c);
};
function N3(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = kY.activeDot } = e, s = Q(F0), c = qxe();
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = kY.activeDot } = e, s = Q(F0), c = Jxe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return sz(l) ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: o }, /*#__PURE__*/ I.createElement(Zxe, {
+ return sz(l) ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: o }, /*#__PURE__*/ I.createElement(Qxe, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -59105,26 +59112,26 @@ function F3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? P3(Object(n), !0).forEach(function(t) {
- Qxe(e, t, n[t]);
+ $xe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Qxe(e, t, n) {
- return (t = $xe(t)) in e ? Object.defineProperty(e, t, {
+function $xe(e, t, n) {
+ return (t = eSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function $xe(e) {
- var t = eSe(e, "string");
+function eSe(e) {
+ var t = tSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function eSe(e, t) {
+function tSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59134,13 +59141,13 @@ function eSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var I3 = (e, t) => k4(e, "radiusAxis", t), tSe = $([I3], (e) => {
+var I3 = (e, t) => k4(e, "radiusAxis", t), nSe = $([I3], (e) => {
if (e != null) return { scale: e };
-}), nSe = $([HY, I3], (e, t) => {
+}), rSe = $([HY, I3], (e, t) => {
if (e != null && t != null) return F3(F3({}, e), {}, { scale: t });
-}), rSe = (e, t, n, r) => j4(e, "radiusAxis", t, r), L3 = (e, t, n) => VY(e, n), R3 = (e, t, n) => k4(e, "angleAxis", n), iSe = $([L3, R3], (e, t) => {
+}), iSe = (e, t, n, r) => j4(e, "radiusAxis", t, r), L3 = (e, t, n) => VY(e, n), R3 = (e, t, n) => k4(e, "angleAxis", n), aSe = $([L3, R3], (e, t) => {
if (e != null && t != null) return F3(F3({}, e), {}, { scale: t });
-}), aSe = (e, t, n, r) => j4(e, "angleAxis", n, r), oSe = $([
+}), oSe = (e, t, n, r) => j4(e, "angleAxis", n, r), sSe = $([
L3,
R3,
ZY
@@ -59152,30 +59159,30 @@ var I3 = (e, t) => k4(e, "radiusAxis", t), tSe = $([I3], (e) => {
cx: n.cx,
cy: n.cy
};
-}), sSe = (e, t, n, r, i) => i, cSe = $([
+}), cSe = (e, t, n, r, i) => i, lSe = $([
gW,
- nSe,
rSe,
iSe,
- aSe
-], (e, t, n, r, i) => YH(e, "radiusAxis") ? uU(t, n, !1) : uU(r, i, !1)), lSe = $([
- tSe,
- oSe,
+ aSe,
+ oSe
+], (e, t, n, r, i) => YH(e, "radiusAxis") ? uU(t, n, !1) : uU(r, i, !1)), uSe = $([
+ nSe,
+ sSe,
tY,
- $([b4, sSe], (e, t) => {
+ $([b4, cSe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- cSe
+ lSe
], (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 ySe({
+ if (e != null && t != null && a != null && i != null && r != null) return bSe({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), uSe = ["id"];
+}), dSe = ["id"];
function z3() {
return z3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -59199,26 +59206,26 @@ function V3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? B3(Object(n), !0).forEach(function(t) {
- dSe(e, t, n[t]);
+ fSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function dSe(e, t, n) {
- return (t = fSe(t)) in e ? Object.defineProperty(e, t, {
+function fSe(e, t, n) {
+ return (t = pSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fSe(e) {
- var t = pSe(e, "string");
+function pSe(e) {
+ var t = mSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function pSe(e, t) {
+function mSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59228,16 +59235,16 @@ function pSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function mSe(e, t) {
+function hSe(e, t) {
if (e == null) return {};
- var n, r, i = hSe(e, t);
+ var n, r, i = gSe(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 hSe(e, t) {
+function gSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59249,7 +59256,7 @@ function hSe(e, t) {
function H3(e, t) {
return e && e !== "none" ? e : t;
}
-var gSe = (e) => {
+var _Se = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
@@ -59259,7 +59266,7 @@ var gSe = (e) => {
value: fU(n, t),
payload: e
}];
-}, _Se = /*#__PURE__*/ I.memo((e) => {
+}, vSe = /*#__PURE__*/ I.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: uz,
@@ -59279,8 +59286,8 @@ var gSe = (e) => {
};
return /*#__PURE__*/ I.createElement(g3, { tooltipEntrySettings: l });
});
-function vSe(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = WL(mSe(n, uSe));
+function ySe(e) {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = WL(hSe(n, dSe));
return /*#__PURE__*/ I.createElement(E3, {
points: t,
dot: r,
@@ -59290,10 +59297,10 @@ function vSe(e) {
baseProps: o
});
}
-function ySe(e) {
+function bSe(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 = qH(e, n.dataKey, r), d = qH(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? Cxe(d) : d, m = sz(p) ? 0 : t.scale.map(p) ?? 0;
+ var a = qH(e, n.dataKey, r), d = qH(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? wxe(d) : d, m = sz(p) ? 0 : t.scale.map(p) ?? 0;
Array.isArray(d) && d.length >= 2 && (c = !0), l.push(V3(V3({}, DJ(o, s, m, f)), {}, {
name: a,
value: d,
@@ -59316,7 +59323,7 @@ function ySe(e) {
baseLinePoints: d
};
}
-function bSe(e) {
+function xSe(e) {
var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {
var t = {
x: e.x,
@@ -59336,7 +59343,7 @@ function bSe(e) {
});
return /*#__PURE__*/ I.createElement(u4, { value: t ? i : void 0 }, r);
}
-function xSe(e) {
+function SSe(e) {
var { points: t, baseLinePoints: n, props: r } = e;
if (t == null) return null;
var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ I.isValidElement(i) ? /*#__PURE__*/ I.cloneElement(i, V3(V3({}, r), {}, { points: t })) : typeof i == "function" ? i(V3(V3({}, r), {}, { points: t })) : /*#__PURE__*/ I.createElement(_4, z3({}, KL(r), {
@@ -59352,7 +59359,7 @@ function xSe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ I.createElement(XL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ I.createElement(vSe, {
+ return /*#__PURE__*/ I.createElement(XL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ I.createElement(ySe, {
props: r,
points: t
}));
@@ -59367,13 +59374,13 @@ var U3 = (e, t, n) => (r, i) => {
y: az(r.cy, r.y, n)
});
};
-function SSe(e) {
+function CSe(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 = Jq(t, "recharts-radar-"), [_, v] = (0, I.useState)(!1), y = !_, b = (0, I.useCallback)(() => {
typeof u == "function" && u(), v(!1);
}, [u]), x = (0, I.useCallback)(() => {
typeof d == "function" && d(), v(!0);
}, [d]);
- return /*#__PURE__*/ I.createElement(bSe, {
+ return /*#__PURE__*/ I.createElement(xSe, {
showLabels: y,
points: i
}, /*#__PURE__*/ I.createElement(qq, {
@@ -59387,22 +59394,22 @@ function SSe(e) {
onAnimationStart: x
}, (e) => {
var o = e === 1 ? i : i.map(U3(f, m, e)), s = e === 1 ? a : a?.map(U3(p, h, e));
- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ I.createElement(xSe, {
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ I.createElement(SSe, {
points: o,
baseLinePoints: s,
props: t
});
}), /*#__PURE__*/ I.createElement(p4, { label: t.label }), t.children);
}
-function CSe(e) {
+function wSe(e) {
var t = (0, I.useRef)(void 0), n = (0, I.useRef)(void 0);
- return /*#__PURE__*/ I.createElement(SSe, {
+ return /*#__PURE__*/ I.createElement(CSe, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var wSe = {
+var TSe = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
@@ -59416,27 +59423,27 @@ var wSe = {
radiusAxisId: 0,
zIndex: kY.area
};
-function TSe(e) {
+function ESe(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
var i = Wm("recharts-radar", n);
- return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: i }, /*#__PURE__*/ I.createElement(CSe, e)), /*#__PURE__*/ I.createElement(N3, {
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: i }, /*#__PURE__*/ I.createElement(wSe, e)), /*#__PURE__*/ I.createElement(N3, {
points: r,
mainColor: H3(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function ESe(e) {
- var t = IU(), n = Q((n) => lSe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ I.createElement(TSe, z3({}, e, {
+function DSe(e) {
+ var t = IU(), n = Q((n) => uSe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ I.createElement(ESe, z3({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
function W3(e) {
- var t = bz(e, wSe);
+ var t = bz(e, TSe);
return /*#__PURE__*/ I.createElement(y3, {
id: t.id,
type: "radar"
@@ -59448,7 +59455,7 @@ function W3(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ I.createElement(v3, { legendPayload: gSe(t) }), /*#__PURE__*/ I.createElement(_Se, {
+ }), /*#__PURE__*/ I.createElement(v3, { legendPayload: _Se(t) }), /*#__PURE__*/ I.createElement(vSe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -59457,7 +59464,7 @@ function W3(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ I.createElement(ESe, z3({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(DSe, z3({}, t, { id: e }))));
}
W3.displayName = "Radar";
//#endregion
@@ -59516,26 +59523,26 @@ function Z3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? X3(Object(n), !0).forEach(function(t) {
- DSe(e, t, n[t]);
+ OSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function DSe(e, t, n) {
- return (t = OSe(t)) in e ? Object.defineProperty(e, t, {
+function OSe(e, t, n) {
+ return (t = kSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function OSe(e) {
- var t = kSe(e, "string");
+function kSe(e) {
+ var t = ASe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kSe(e, t) {
+function ASe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59545,7 +59552,7 @@ function kSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function ASe(e, t, n, r, i) {
+function jSe(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
var o = rz(e, n, 0, !0), s, c = [];
@@ -59586,7 +59593,7 @@ function ASe(e, t, n, r, i) {
}
}
var Q3 = (e, t, n, r, i, a, o) => {
- var s = sz(o) ? t : o, c = ASe(n, r, i === a ? a : i, e, s);
+ var s = sz(o) ? t : o, c = jSe(n, r, i === a ? a : i, e, s);
return i !== a && c != null && (c = c.map((e) => Z3(Z3({}, e), {}, { position: Z3(Z3({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
}, $3 = (e, t) => {
var n = eX(t);
@@ -59622,26 +59629,26 @@ function n6(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) {
- jSe(e, t, n[t]);
+ MSe(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 jSe(e, t, n) {
- return (t = MSe(t)) in e ? Object.defineProperty(e, t, {
+function MSe(e, t, n) {
+ return (t = NSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function MSe(e) {
- var t = NSe(e, "string");
+function NSe(e) {
+ var t = PSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function NSe(e, t) {
+function PSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59653,7 +59660,7 @@ function NSe(e, t) {
}
var r6 = $([(e, t) => HY(e, t), (e, t) => k4(e, "radiusAxis", t)], (e, t) => {
if (e != null && t != null) return n6(n6({}, e), {}, { scale: t });
-}), i6 = (e, t) => Kye(e, "radiusAxis", t, !1), a6 = $([(e, t, n) => VY(e, n), (e, t, n) => k4(e, "angleAxis", n)], (e, t) => {
+}), i6 = (e, t) => qye(e, "radiusAxis", t, !1), a6 = $([(e, t, n) => VY(e, n), (e, t, n) => k4(e, "angleAxis", n)], (e, t) => {
if (e != null && t != null) return n6(n6({}, e), {}, { scale: t });
}), o6 = (e, t, n) => j4(e, "angleAxis", n, !1), s6 = $([b4, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
@@ -59663,20 +59670,20 @@ var r6 = $([(e, t) => HY(e, t), (e, t) => k4(e, "radiusAxis", t)], (e, t) => {
i6,
a6,
o6
-], (e, t, n, r, i) => YH(e, "radiusAxis") ? uU(t, n, !1) : uU(r, i, !1)), PSe = $([
+], (e, t, n, r, i) => YH(e, "radiusAxis") ? uU(t, n, !1) : uU(r, i, !1)), FSe = $([
a6,
r6,
gW
], (e, t, n) => {
var r = n === "radial" ? e : t;
if (r != null && r.scale != null) return iU({ numericAxis: r });
-}), FSe = (e, t, n, r, i) => i, ISe = (e, t, n, r, i) => n, LSe = (e, t, n, r, i) => t, l6 = (e, t, n, r, i) => r.maxBarSize, u6 = (e) => e.type === "radialBar", RSe = $([$([
+}), ISe = (e, t, n, r, i) => i, LSe = (e, t, n, r, i) => n, RSe = (e, t, n, r, i) => t, l6 = (e, t, n, r, i) => r.maxBarSize, u6 = (e) => e.type === "radialBar", zSe = $([$([
$([
$([
gW,
b4,
- ISe,
- LSe
+ LSe,
+ RSe
], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(u6)),
xY,
() => void 0
@@ -59707,7 +59714,7 @@ var r6 = $([(e, t) => HY(e, t), (e, t) => k4(e, "radiusAxis", t)], (e, t) => {
d6,
SY,
CY
-], i1), zSe = $([
+], i1), BSe = $([
a6,
o6,
r6,
@@ -59716,16 +59723,16 @@ var r6 = $([(e, t) => HY(e, t), (e, t) => k4(e, "radiusAxis", t)], (e, t) => {
s6,
c6,
gW,
- PSe,
- ZY,
FSe,
- RSe,
+ ZY,
+ ISe,
+ zSe,
$([(e, t, n) => gW(e) === "centric" ? f6(e, "radiusAxis", t) : f6(e, "angleAxis", n), s6], $3)
], (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 nCe({
+ return rCe({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -59746,7 +59753,7 @@ var r6 = $([(e, t) => HY(e, t), (e, t) => k4(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), BSe = $([tY, (e, t) => t], (e, t) => {
+}), VSe = $([tY, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -59764,16 +59771,16 @@ function p6(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var VSe = [
+var HSe = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], HSe = [
+], USe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], USe = ["value", "background"];
+], WSe = ["value", "background"];
function m6() {
return m6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -59797,26 +59804,26 @@ function g6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? h6(Object(n), !0).forEach(function(t) {
- WSe(e, t, n[t]);
+ GSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function WSe(e, t, n) {
- return (t = GSe(t)) in e ? Object.defineProperty(e, t, {
+function GSe(e, t, n) {
+ return (t = KSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function GSe(e) {
- var t = KSe(e, "string");
+function KSe(e) {
+ var t = qSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function KSe(e, t) {
+function qSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59828,14 +59835,14 @@ function KSe(e, t) {
}
function _6(e, t) {
if (e == null) return {};
- var n, r, i = qSe(e, t);
+ var n, r, i = JSe(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 JSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59845,7 +59852,7 @@ function qSe(e, t) {
return n;
}
var v6 = [];
-function JSe(e) {
+function YSe(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -59862,11 +59869,11 @@ function JSe(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ I.createElement(Pye, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ I.createElement(Fye, { value: t ? i : void 0 }, r);
}
-function YSe(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = _6(n, VSe), l = WL(c), u = Q(F0), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = _6(n, HSe), h = p3(d, n.dataKey, s), g = m3(p), _ = h3(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ I.createElement(JSe, {
+function XSe(e) {
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = _6(n, HSe), l = WL(c), u = Q(F0), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = _6(n, USe), h = p3(d, n.dataKey, s), g = m3(p), _ = h3(f, n.dataKey, s);
+ return t == null ? null : /*#__PURE__*/ I.createElement(YSe, {
showLabels: r,
sectors: t
}, t.map((e, t) => {
@@ -59887,7 +59894,7 @@ function YSe(e) {
}, /*#__PURE__*/ I.createElement(q3, f)) : /*#__PURE__*/ I.createElement(q3, m6({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
}), /*#__PURE__*/ I.createElement(p4, { label: n.label }), n.children);
}
-function XSe(e) {
+function ZSe(e) {
var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = Jq(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, I.useState)(!1), m = (0, I.useCallback)(() => {
typeof c == "function" && c(), p(!1);
}, [c]), h = (0, I.useCallback)(() => {
@@ -59912,25 +59919,25 @@ function XSe(e) {
var { endAngle: i, startAngle: a } = t;
return g6(g6({}, t), {}, { endAngle: az(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ I.createElement(YSe, {
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ I.createElement(XSe, {
sectors: i ?? v6,
allOtherRadialBarProps: t,
showLabels: !f
});
});
}
-function ZSe(e) {
+function QSe(e) {
var t = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(XSe, {
+ return /*#__PURE__*/ I.createElement(ZSe, {
props: e,
previousSectorsRef: t
});
}
-function QSe(e) {
- var t = Q((t) => BSe(t, e.legendType));
+function $Se(e) {
+ var t = Q((t) => VSe(t, e.legendType));
return /*#__PURE__*/ I.createElement(v3, { legendPayload: t ?? [] });
}
-var $Se = /*#__PURE__*/ I.memo((e) => {
+var eCe = /*#__PURE__*/ I.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: uz,
@@ -59949,12 +59956,12 @@ var $Se = /*#__PURE__*/ I.memo((e) => {
}
};
return /*#__PURE__*/ I.createElement(g3, { tooltipEntrySettings: u });
-}), eCe = class extends I.PureComponent {
+}), tCe = class extends I.PureComponent {
renderBackground(e) {
if (e == null) return null;
var { cornerRadius: t } = this.props, n = GL(this.props.background);
return /*#__PURE__*/ I.createElement(n2, { zIndex: p6(this.props.background, kY.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = _6(e, USe);
+ var { value: i, background: a } = e, o = _6(e, WSe);
if (!a) return null;
var s = g6(g6(g6(g6(g6({ cornerRadius: K3(t) }, o), {}, { fill: "#eee" }, a), n), vz(this.props, e, r)), {}, {
index: r,
@@ -59969,10 +59976,10 @@ var $Se = /*#__PURE__*/ I.memo((e) => {
var { hide: e, sectors: t, className: n, background: r } = this.props;
if (e) return null;
var i = Wm("recharts-area", n);
- return /*#__PURE__*/ I.createElement(n2, { zIndex: this.props.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: i }, r && /*#__PURE__*/ I.createElement(XL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ I.createElement(XL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ I.createElement(ZSe, this.props))));
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: this.props.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: i }, r && /*#__PURE__*/ I.createElement(XL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ I.createElement(XL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ I.createElement(QSe, this.props))));
}
};
-function tCe(e) {
+function nCe(e) {
var t = I.useMemo(() => n3(e.children, y2), [e.children]), n = I.useMemo(() => ({
data: void 0,
hide: !1,
@@ -59994,8 +60001,8 @@ function tCe(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => zSe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? v6;
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement($Se, {
+ ]), r = Q((r) => BSe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? v6;
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(eCe, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -60005,7 +60012,7 @@ function tCe(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ I.createElement(eCe, m6({}, e, { sectors: r })));
+ }), /*#__PURE__*/ I.createElement(tCe, m6({}, e, { sectors: r })));
}
var y6 = {
angleAxisId: 0,
@@ -60024,7 +60031,7 @@ var y6 = {
radiusAxisId: 0,
zIndex: kY.bar
};
-function nCe(e) {
+function rCe(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 ? v6 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
@@ -60096,7 +60103,7 @@ function b6(e) {
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ I.createElement(QSe, t), /*#__PURE__*/ I.createElement(tCe, m6({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement($Se, t), /*#__PURE__*/ I.createElement(nCe, m6({}, t, { id: e }))));
}
b6.displayName = "RadialBar";
//#endregion
@@ -60127,7 +60134,7 @@ var x6 = (e) => {
reducers: { setBrushSettings(e, t) {
return t.payload == null ? S6 : t.payload;
} }
-}), { setBrushSettings: rCe } = C6.actions, iCe = C6.reducer, aCe = (e, t) => {
+}), { setBrushSettings: iCe } = C6.actions, aCe = C6.reducer, oCe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -60135,9 +60142,9 @@ var x6 = (e) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, oCe = (e) => {
+}, sCe = (e) => {
var { x1: t, y1: n, x2: r, y2: i } = e;
- return aCe({
+ return oCe({
x: t,
y: n
}, {
@@ -60145,11 +60152,11 @@ var x6 = (e) => {
y: i
});
};
-function sCe(e) {
+function cCe(e) {
return (e % 180 + 180) % 180;
}
-var cCe = function(e) {
- var { width: t, height: n } = e, r = sCe(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 lCe = function(e) {
+ var { width: t, height: n } = e, r = cCe(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);
}, w6 = GV({
name: "referenceElements",
@@ -60181,7 +60188,7 @@ var cCe = function(e) {
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: lCe, removeDot: uCe, addArea: dCe, removeArea: fCe, addLine: pCe, removeLine: mCe } = w6.actions, hCe = w6.reducer, T6 = /*#__PURE__*/ (0, I.createContext)(void 0), gCe = (e) => {
+}), { addDot: uCe, removeDot: dCe, addArea: fCe, removeArea: pCe, addLine: mCe, removeLine: hCe } = w6.actions, gCe = w6.reducer, T6 = /*#__PURE__*/ (0, I.createContext)(void 0), _Ce = (e) => {
var { children: t } = e, [n] = (0, I.useState)(`${nz("recharts")}-clip`), r = A3();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
@@ -60191,7 +60198,7 @@ var cCe = function(e) {
height: s,
width: o
}))), t);
-}, _Ce = () => (0, I.useContext)(T6), vCe = class {
+}, vCe = () => (0, I.useContext)(T6), yCe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -60231,26 +60238,26 @@ function D6(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) {
- yCe(e, t, n[t]);
+ bCe(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 yCe(e, t, n) {
- return (t = bCe(t)) in e ? Object.defineProperty(e, t, {
+function bCe(e, t, n) {
+ return (t = xCe(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 xCe(e) {
+ var t = SCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xCe(e, t) {
+function SCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60269,7 +60276,7 @@ function O6() {
return e;
}, O6.apply(null, arguments);
}
-var SCe = (e, t) => {
+var CCe = (e, t) => {
var n;
if (/*#__PURE__*/ I.isValidElement(e)) n = /*#__PURE__*/ I.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
@@ -60278,7 +60285,7 @@ var SCe = (e, t) => {
n = /*#__PURE__*/ I.createElement("line", O6({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, CCe = (e, t, n, r, i, a) => {
+}, wCe = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
if (!BH(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
@@ -60289,7 +60296,7 @@ var SCe = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, wCe = (e, t, n, r, i, a) => {
+}, TCe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
if (!BH(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
@@ -60300,7 +60307,7 @@ var SCe = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, TCe = (e, t, n, r) => {
+}, ECe = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -60309,23 +60316,23 @@ var SCe = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, ECe = (e, t, n, r, i, a, o) => {
+}, DCe = (e, t, n, r, i, a, o) => {
var { x: s, y: c, segment: l, ifOverflow: u } = o, d = tz(s);
- return tz(c) ? CCe(c, u, r, a, t, n) : d ? wCe(s, u, r, i, e, n) : l != null && l.length === 2 ? TCe(l, u, r, new vCe({
+ return tz(c) ? wCe(c, u, r, a, t, n) : d ? TCe(s, u, r, i, e, n) : l != null && l.length === 2 ? ECe(l, u, r, new yCe({
x: e,
y: t
})) : null;
};
-function DCe(e) {
+function OCe(e) {
var t = qz();
- return (0, I.useEffect)(() => (t(pCe(e)), () => {
- t(mCe(e));
+ return (0, I.useEffect)(() => (t(mCe(e)), () => {
+ t(hCe(e));
})), null;
}
-function OCe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = IU(), s = _Ce(), 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 = uW();
+function kCe(e) {
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = IU(), s = vCe(), 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 = uW();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = ECe(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = DCe(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;
@@ -60334,18 +60341,18 @@ function OCe(e) {
y1: _,
x2: v,
y2: y
- }), x = oCe({
+ }), x = sCe({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: Wm("recharts-reference-line", i) }, SCe(r, b), /*#__PURE__*/ I.createElement(Q2, O6({}, x, {
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: Wm("recharts-reference-line", i) }, CCe(r, b), /*#__PURE__*/ I.createElement(Q2, O6({}, x, {
lowerWidth: x.width,
upperWidth: x.width
}), /*#__PURE__*/ I.createElement(o4, { label: e.label }), e.children)));
}
-var kCe = {
+var ACe = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -60358,15 +60365,15 @@ var kCe = {
zIndex: kY.line
};
function k6(e) {
- var t = bz(e, kCe);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(DCe, {
+ var t = bz(e, ACe);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(OCe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ I.createElement(OCe, t));
+ }), /*#__PURE__*/ I.createElement(kCe, t));
}
k6.displayName = "ReferenceLine";
//#endregion
@@ -60382,13 +60389,13 @@ function A6(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function ACe(e, t, n) {
- return cCe({
+function jCe(e, t, n) {
+ return lCe({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function jCe(e, t, n) {
+function MCe(e, t, n) {
var r = n === "width", { x: i, y: a, width: o, height: s } = e;
return t === 1 ? {
start: r ? i : a,
@@ -60403,12 +60410,12 @@ function j6(e, t, n, r, i) {
var a = n();
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
}
-function MCe(e, t) {
+function NCe(e, t) {
return A6(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function NCe(e, t, n, r, i) {
+function PCe(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: A6(r, l) };
@@ -60417,7 +60424,7 @@ function NCe(e, t, n, r, i) {
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
}
-function PCe(e, t, n, r, i) {
+function FCe(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++) {
@@ -60454,26 +60461,26 @@ function N6(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) {
- FCe(e, t, n[t]);
+ ICe(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 FCe(e, t, n) {
- return (t = ICe(t)) in e ? Object.defineProperty(e, t, {
+function ICe(e, t, n) {
+ return (t = LCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ICe(e) {
- var t = LCe(e, "string");
+function LCe(e) {
+ var t = RCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function LCe(e, t) {
+function RCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60483,7 +60490,7 @@ function LCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function RCe(e, t, n, r, i) {
+function zCe(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;
@@ -60496,7 +60503,7 @@ function RCe(e, t, n, r, i) {
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function zCe(e, t, n, r, i, a) {
+function BCe(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];
@@ -60520,7 +60527,7 @@ function zCe(e, t, n, r, i, a) {
function P6(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) || TK.isSsr) return MCe(i, Z(c) ? c : 0) ?? [];
+ if (Z(c) || TK.isSsr) return NCe(i, Z(c) ? c : 0) ?? [];
var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? T2(u, {
fontSize: t,
letterSpacing: n
@@ -60529,19 +60536,19 @@ function P6(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? ACe(T2(i, {
+ return p === "width" ? jCe(T2(i, {
fontSize: t,
letterSpacing: n
}), m, d) : T2(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? QR(_.coordinate - g.coordinate) : 1, y = jCe(a, v, p);
- return c === "equidistantPreserveStart" ? NCe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? PCe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? zCe(v, y, h, i, o, c === "preserveStartEnd") : RCe(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? QR(_.coordinate - g.coordinate) : 1, y = MCe(a, v, p);
+ return c === "equidistantPreserveStart" ? PCe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? FCe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? BCe(v, y, h, i, o, c === "preserveStartEnd") : zCe(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var BCe = (e) => {
+var VCe = (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) => {
@@ -60570,7 +60577,7 @@ var BCe = (e) => {
delete e[n][r];
}
}
-}), { setRenderedTicks: VCe, removeRenderedTicks: HCe } = F6.actions, UCe = F6.reducer, WCe = [
+}), { setRenderedTicks: HCe, removeRenderedTicks: UCe } = F6.actions, WCe = F6.reducer, GCe = [
"axisLine",
"width",
"height",
@@ -60580,16 +60587,16 @@ var BCe = (e) => {
"axisType",
"axisId"
];
-function GCe(e, t) {
+function KCe(e, t) {
if (e == null) return {};
- var n, r, i = KCe(e, t);
+ var n, r, i = qCe(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 KCe(e, t) {
+function qCe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60621,26 +60628,26 @@ function R6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? L6(Object(n), !0).forEach(function(t) {
- qCe(e, t, n[t]);
+ JCe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qCe(e, t, n) {
- return (t = JCe(t)) in e ? Object.defineProperty(e, t, {
+function JCe(e, t, n) {
+ return (t = YCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function JCe(e) {
- var t = YCe(e, "string");
+function YCe(e) {
+ var t = XCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function YCe(e, t) {
+function XCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60674,7 +60681,7 @@ var z6 = {
interval: "preserveEnd",
zIndex: kY.axis
};
-function XCe(e) {
+function ZCe(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 = R6(R6(R6({}, c), WL(s)), {}, { fill: "none" });
@@ -60697,7 +60704,7 @@ function XCe(e) {
}
return /*#__PURE__*/ I.createElement("line", I6({}, l, { className: Wm("recharts-cartesian-axis-line", YR(s, "className")) }));
}
-function ZCe(e, t, n, r, i, a, o, s, c) {
+function QCe(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":
@@ -60724,14 +60731,14 @@ function ZCe(e, t, n, r, i, a, o, s, c) {
}
};
}
-function QCe(e, t) {
+function $Ce(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function $Ce(e, t) {
+function ewe(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -60739,7 +60746,7 @@ function $Ce(e, t) {
default: return t ? "end" : "start";
}
}
-function ewe(e) {
+function twe(e) {
var { option: t, tickProps: n, value: r } = e, i, a = Wm(n.className, "recharts-cartesian-axis-tick-value");
if (/*#__PURE__*/ I.isValidElement(t)) i = /*#__PURE__*/ I.cloneElement(t, R6(R6({}, n), {}, { className: a }));
else if (typeof t == "function") i = t(R6(R6({}, n), {}, { className: a }));
@@ -60749,9 +60756,9 @@ function ewe(e) {
}
return i;
}
-function twe(e) {
+function nwe(e) {
var { ticks: t, axisType: n, axisId: r } = e, i = qz();
- return (0, I.useEffect)(() => r == null || n == null ? uz : (i(VCe({
+ return (0, I.useEffect)(() => r == null || n == null ? uz : (i(HCe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -60761,7 +60768,7 @@ function twe(e) {
axisId: r,
axisType: n
})), () => {
- i(HCe({
+ i(UCe({
axisId: r,
axisType: n
}));
@@ -60772,10 +60779,10 @@ function twe(e) {
n
]), null;
}
-var nwe = /*#__PURE__*/ (0, I.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 = P6(R6(R6({}, b), {}, { ticks: n }), v, y), T = WL(b), E = GL(r), D = R2(T.textAnchor) ? T.textAnchor : QCe(u, d), O = $Ce(u, d), k = {};
+var rwe = /*#__PURE__*/ (0, I.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 = P6(R6(R6({}, b), {}, { ticks: n }), v, y), T = WL(b), E = GL(r), D = R2(T.textAnchor) ? T.textAnchor : $Ce(u, d), O = ewe(u, d), k = {};
typeof i == "object" && (k = i);
- var A = R6(R6({}, T), {}, { fill: "none" }, k), j = w.map((e) => R6({ entry: e }, ZCe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = R6(R6({}, T), {}, { fill: "none" }, k), j = w.map((e) => R6({ entry: e }, QCe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
return /*#__PURE__*/ I.createElement(XL, {
className: "recharts-cartesian-axis-tick",
@@ -60796,13 +60803,13 @@ var nwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
return /*#__PURE__*/ I.createElement(XL, I6({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, vz(x, n, t)), r && /*#__PURE__*/ I.createElement(ewe, {
+ }, vz(x, n, t)), r && /*#__PURE__*/ I.createElement(twe, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
}));
});
- return /*#__PURE__*/ I.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ I.createElement(twe, {
+ return /*#__PURE__*/ I.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ I.createElement(nwe, {
ticks: w,
axisId: C,
axisType: S
@@ -60810,9 +60817,9 @@ var nwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,
ref: t
}, N)), M.length > 0 && /*#__PURE__*/ I.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
-}), rwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = GCe(e, WCe), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(""), h = (0, I.useRef)(null);
- (0, I.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => BCe({
+}), iwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = KCe(e, GCe), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(""), h = (0, I.useRef)(null);
+ (0, I.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => VCe({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -60830,7 +60837,7 @@ var nwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: Wm("recharts-cartesian-axis", a) }, /*#__PURE__*/ I.createElement(XCe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: Wm("recharts-cartesian-axis", a) }, /*#__PURE__*/ I.createElement(ZCe, {
x: e.x,
y: e.y,
width: r,
@@ -60839,7 +60846,7 @@ var nwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
mirror: e.mirror,
axisLine: n,
otherSvgProps: WL(e)
- }), /*#__PURE__*/ I.createElement(nwe, {
+ }), /*#__PURE__*/ I.createElement(rwe, {
ref: g,
axisType: c,
events: u,
@@ -60876,18 +60883,18 @@ var nwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
}), e.children)));
}), B6 = /*#__PURE__*/ I.forwardRef((e, t) => {
var n = bz(e, z6);
- return /*#__PURE__*/ I.createElement(rwe, I6({}, n, { ref: t }));
+ return /*#__PURE__*/ I.createElement(iwe, I6({}, n, { ref: t }));
});
B6.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
-var iwe = [
+var awe = [
"x1",
"y1",
"x2",
"y2",
"key"
-], awe = ["offset"], owe = ["xAxisId", "yAxisId"], swe = ["xAxisId", "yAxisId"];
+], owe = ["offset"], swe = ["xAxisId", "yAxisId"], cwe = ["xAxisId", "yAxisId"];
function V6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -60902,26 +60909,26 @@ function H6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? V6(Object(n), !0).forEach(function(t) {
- cwe(e, t, n[t]);
+ lwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function cwe(e, t, n) {
- return (t = lwe(t)) in e ? Object.defineProperty(e, t, {
+function lwe(e, t, n) {
+ return (t = uwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function lwe(e) {
- var t = uwe(e, "string");
+function uwe(e) {
+ var t = dwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function uwe(e, t) {
+function dwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60942,14 +60949,14 @@ function U6() {
}
function W6(e, t) {
if (e == null) return {};
- var n, r, i = dwe(e, t);
+ var n, r, i = fwe(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 dwe(e, t) {
+function fwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60958,7 +60965,7 @@ function dwe(e, t) {
}
return n;
}
-var fwe = (e) => {
+var pwe = (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;
@@ -60979,7 +60986,7 @@ function G6(e) {
if (/*#__PURE__*/ I.isValidElement(t)) r = /*#__PURE__*/ I.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 = WL(W6(n, iwe)) ?? {}, { offset: u } = l, d = W6(l, awe);
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = WL(W6(n, awe)) ?? {}, { offset: u } = l, d = W6(l, owe);
r = /*#__PURE__*/ I.createElement("line", U6({}, d, {
x1: i,
y1: a,
@@ -60991,10 +60998,10 @@ function G6(e) {
}
return r;
}
-function pwe(e) {
+function mwe(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 = W6(e, owe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = W6(e, swe), c = i.map((e, i) => {
var a = H6(H6({}, s), {}, {
x1: t,
y1: e,
@@ -61011,10 +61018,10 @@ function pwe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
-function mwe(e) {
+function hwe(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 = W6(e, swe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = W6(e, cwe), c = i.map((e, i) => {
var a = H6(H6({}, s), {}, {
x1: e,
y1: t,
@@ -61031,7 +61038,7 @@ function mwe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
-function hwe(e) {
+function gwe(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);
@@ -61054,7 +61061,7 @@ function hwe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function gwe(e) {
+function _we(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);
@@ -61077,7 +61084,7 @@ function gwe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
-var _we = (e, t) => {
+var vwe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
return XH(P6(H6(H6(H6({}, z6), n), {}, {
ticks: ZH(n, !0),
@@ -61088,7 +61095,7 @@ var _we = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, vwe = (e, t) => {
+}, ywe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
return XH(P6(H6(H6(H6({}, z6), n), {}, {
ticks: ZH(n, !0),
@@ -61099,7 +61106,7 @@ var _we = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, ywe = {
+}, bwe = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -61114,14 +61121,14 @@ var _we = (e, t) => {
zIndex: kY.grid
};
function K6(e) {
- var t = pW(), n = mW(), r = fW(), i = H6(H6({}, bz(e, ywe)), {}, {
+ var t = pW(), n = mW(), r = fW(), i = H6(H6({}, bz(e, bwe)), {}, {
x: Z(e.x) ? e.x : r.left,
y: Z(e.y) ? e.y : r.top,
width: Z(e.width) ? e.width : r.width,
height: Z(e.height) ? e.height : r.height
- }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = IU(), h = Q((e) => U1(e, "xAxis", a, m)), g = Q((e) => U1(e, "yAxis", o, m));
+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = IU(), h = Q((e) => W1(e, "xAxis", a, m)), g = Q((e) => W1(e, "yAxis", o, m));
if (!VH(l) || !VH(u) || !Z(s) || !Z(c)) return null;
- var _ = i.verticalCoordinatesGenerator || _we, v = i.horizontalCoordinatesGenerator || vwe, { horizontalPoints: y, verticalPoints: b } = i;
+ var _ = i.verticalCoordinatesGenerator || vwe, v = i.horizontalCoordinatesGenerator || ywe, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
yAxis: g ? H6(H6({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
@@ -61140,7 +61147,7 @@ function K6(e) {
}, C ? !0 : d);
HU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ I.createElement(n2, { zIndex: i.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ I.createElement(fwe, {
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: i.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ I.createElement(pwe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -61148,12 +61155,12 @@ function K6(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ I.createElement(hwe, U6({}, i, { horizontalPoints: y })), /*#__PURE__*/ I.createElement(gwe, U6({}, i, { verticalPoints: b })), /*#__PURE__*/ I.createElement(pwe, U6({}, i, {
+ }), /*#__PURE__*/ I.createElement(gwe, U6({}, i, { horizontalPoints: y })), /*#__PURE__*/ I.createElement(_we, U6({}, i, { verticalPoints: b })), /*#__PURE__*/ I.createElement(mwe, U6({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ I.createElement(mwe, U6({}, i, {
+ })), /*#__PURE__*/ I.createElement(hwe, U6({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
@@ -61180,17 +61187,17 @@ var q6 = GV({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: bwe, replaceErrorBar: xwe, removeErrorBar: Swe } = q6.actions, Cwe = q6.reducer, wwe = ["children"];
-function Twe(e, t) {
+}), { addErrorBar: xwe, replaceErrorBar: Swe, removeErrorBar: Cwe } = q6.actions, wwe = q6.reducer, Twe = ["children"];
+function Ewe(e, t) {
if (e == null) return {};
- var n, r, i = Ewe(e, t);
+ var n, r, i = Dwe(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 Ewe(e, t) {
+function Dwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61199,7 +61206,7 @@ function Ewe(e, t) {
}
return n;
}
-var Dwe = /*#__PURE__*/ (0, I.createContext)({
+var Owe = /*#__PURE__*/ (0, I.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -61211,8 +61218,8 @@ var Dwe = /*#__PURE__*/ (0, I.createContext)({
errorBarOffset: 0
});
function J6(e) {
- var { children: t } = e, n = Twe(e, wwe);
- return /*#__PURE__*/ I.createElement(Dwe.Provider, { value: n }, t);
+ var { children: t } = e, n = Ewe(e, Twe);
+ return /*#__PURE__*/ I.createElement(Owe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
@@ -61237,30 +61244,30 @@ function X6(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var Z6 = (e, t, n, r) => J1(e, "xAxis", t, r), Q6 = (e, t, n, r) => q1(e, "xAxis", t, r), $6 = (e, t, n, r) => J1(e, "yAxis", n, r), e8 = (e, t, n, r) => q1(e, "yAxis", n, r), Owe = $([
+var Z6 = (e, t, n, r) => Y1(e, "xAxis", t, r), Q6 = (e, t, n, r) => J1(e, "xAxis", t, r), $6 = (e, t, n, r) => Y1(e, "yAxis", n, r), e8 = (e, t, n, r) => J1(e, "yAxis", n, r), kwe = $([
gW,
Z6,
$6,
Q6,
e8
-], (e, t, n, r, i) => YH(e, "xAxis") ? uU(t, r, !1) : uU(n, i, !1)), kwe = (e, t, n, r, i) => i;
-function Awe(e) {
+], (e, t, n, r, i) => YH(e, "xAxis") ? uU(t, r, !1) : uU(n, i, !1)), Awe = (e, t, n, r, i) => i;
+function jwe(e) {
return e.type === "line";
}
-var jwe = $([
+var Mwe = $([
gW,
Z6,
$6,
Q6,
e8,
- $([H$, kwe], (e, t) => e.filter(Awe).find((e) => e.id === t)),
- Owe,
+ $([H$, Awe], (e, t) => e.filter(jwe).find((e) => e.id === t)),
+ kwe,
nY
], (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 Zwe({
+ if (p != null) return Qwe({
layout: e,
xAxis: t,
yAxis: n,
@@ -61290,13 +61297,13 @@ function t8(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var Mwe = ["id"], Nwe = [
+var Nwe = ["id"], Pwe = [
"type",
"layout",
"connectNulls",
"needClip",
"shape"
-], Pwe = [
+], Fwe = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -61335,26 +61342,26 @@ function i8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? r8(Object(n), !0).forEach(function(t) {
- Fwe(e, t, n[t]);
+ Iwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Fwe(e, t, n) {
- return (t = Iwe(t)) in e ? Object.defineProperty(e, t, {
+function Iwe(e, t, n) {
+ return (t = Lwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Iwe(e) {
- var t = Lwe(e, "string");
+function Lwe(e) {
+ var t = Rwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Lwe(e, t) {
+function Rwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61366,14 +61373,14 @@ function Lwe(e, t) {
}
function a8(e, t) {
if (e == null) return {};
- var n, r, i = Rwe(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 Rwe(e, t) {
+function zwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61382,7 +61389,7 @@ function Rwe(e, t) {
}
return n;
}
-var zwe = (e) => {
+var Bwe = (e) => {
var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;
return [{
inactive: a,
@@ -61392,7 +61399,7 @@ var zwe = (e) => {
value: fU(n, t),
payload: e
}];
-}, Bwe = /*#__PURE__*/ I.memo((e) => {
+}, Vwe = /*#__PURE__*/ I.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: uz,
@@ -61412,11 +61419,11 @@ var zwe = (e) => {
};
return /*#__PURE__*/ I.createElement(g3, { tooltipEntrySettings: d });
}), o8 = (e, t) => `${t}px ${e}px`;
-function Vwe(e, t) {
+function Hwe(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
-var Hwe = (e, t, n) => {
+var Uwe = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
if (!r) return o8(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) {
@@ -61428,13 +61435,13 @@ var Hwe = (e, t, n) => {
}
var d = o.length % 2 == 0 ? [0, t] : [t];
return [
- ...Vwe(n, i),
+ ...Hwe(n, i),
...o,
...d
].map((e) => `${e}px`).join(", ");
};
-function Uwe(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = WL(a8(r, Mwe));
+function Wwe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = WL(a8(r, Nwe));
return /*#__PURE__*/ I.createElement(E3, {
points: n,
dot: i,
@@ -61446,7 +61453,7 @@ function Uwe(e) {
clipPathId: t
});
}
-function Wwe(e) {
+function Gwe(e) {
var { showLabels: t, children: n, points: r } = e, i = (0, I.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -61467,7 +61474,7 @@ function Wwe(e) {
return /*#__PURE__*/ I.createElement(u4, { value: t ? i : void 0 }, n);
}
function s8(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 = i8(i8({}, KL(a8(a, Nwe))), {}, {
+ var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = i8(i8({}, KL(a8(a, Pwe))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -61480,28 +61487,28 @@ function s8(e) {
return /*#__PURE__*/ I.createElement(I.Fragment, null, r?.length > 1 && /*#__PURE__*/ I.createElement(f3, n8({
shapeType: "curve",
option: u
- }, d, { pathRef: n })), /*#__PURE__*/ I.createElement(Uwe, {
+ }, d, { pathRef: n })), /*#__PURE__*/ I.createElement(Wwe, {
points: r,
clipPathId: t,
props: a
}));
}
-function Gwe(e) {
+function Kwe(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function Kwe(e) {
+function qwe(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 = Jq(o, "recharts-line-"), y = (0, I.useRef)(v), [b, x] = (0, I.useState)(!1), S = !b, C = (0, I.useCallback)(() => {
typeof h == "function" && h(), x(!1);
}, [h]), w = (0, I.useCallback)(() => {
typeof g == "function" && g(), x(!0);
- }, [g]), T = Gwe(r.current), E = (0, I.useRef)(0);
+ }, [g]), T = Kwe(r.current), E = (0, I.useRef)(0);
y.current !== v && (E.current = a.current, y.current = v);
var D = E.current;
- return /*#__PURE__*/ I.createElement(Wwe, {
+ return /*#__PURE__*/ I.createElement(Gwe, {
points: o,
showLabels: S
}, n.children, /*#__PURE__*/ I.createElement(qq, {
@@ -61514,7 +61521,7 @@ function Kwe(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = az(D, T + D, e), u = Math.min(l, T), d = c ? s ? Hwe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : o8(T, u) : s == null ? void 0 : String(s);
+ var l = az(D, T + D, e), u = Math.min(l, T), d = c ? s ? Uwe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : o8(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);
@@ -61550,9 +61557,9 @@ function Kwe(e) {
});
}), /*#__PURE__*/ I.createElement(p4, { label: n.label }));
}
-function qwe(e) {
+function Jwe(e) {
var { clipPathId: t, props: n } = e, r = (0, I.useRef)(null), i = (0, I.useRef)(0), a = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(Kwe, {
+ return /*#__PURE__*/ I.createElement(qwe, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -61560,12 +61567,12 @@ function qwe(e) {
pathRef: a
});
}
-var Jwe = (e, t) => ({
+var Ywe = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
errorVal: qH(e.payload, t)
-}), Ywe = class extends I.Component {
+}), Xwe = class extends I.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;
@@ -61583,9 +61590,9 @@ var Jwe = (e, t) => ({
xAxisId: i,
yAxisId: a,
data: n,
- dataPointFormatter: Jwe,
+ dataPointFormatter: Ywe,
errorBarOffset: 0
- }, /*#__PURE__*/ I.createElement(qwe, {
+ }, /*#__PURE__*/ I.createElement(Jwe, {
props: this.props,
clipPathId: m
}))), /*#__PURE__*/ I.createElement(N3, {
@@ -61616,11 +61623,11 @@ var Jwe = (e, t) => ({
zIndex: kY.line,
type: "linear"
};
-function Xwe(e) {
- var t = bz(e, c8), { 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 = a8(t, Pwe), { needClip: _ } = Y6(p, m), v = A3(), y = _W(), b = IU(), x = Q((e) => jwe(e, p, m, b, h));
+function Zwe(e) {
+ var t = bz(e, c8), { 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 = a8(t, Fwe), { needClip: _ } = Y6(p, m), v = A3(), y = _W(), b = IU(), x = Q((e) => Mwe(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__*/ I.createElement(Ywe, n8({}, g, {
+ return /*#__PURE__*/ I.createElement(Xwe, n8({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -61644,7 +61651,7 @@ function Xwe(e) {
needClip: _
}));
}
-function Zwe(e) {
+function Qwe(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 = qH(e, o);
@@ -61675,12 +61682,12 @@ function Zwe(e) {
};
}).filter(Boolean);
}
-function Qwe(e) {
+function $we(e) {
var t = bz(e, c8), n = IU();
return /*#__PURE__*/ I.createElement(y3, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: zwe(t) }), /*#__PURE__*/ I.createElement(Bwe, {
+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: Bwe(t) }), /*#__PURE__*/ I.createElement(Vwe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -61701,9 +61708,9 @@ function Qwe(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ I.createElement(Xwe, n8({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(Zwe, n8({}, t, { id: e }))));
}
-var l8 = /*#__PURE__*/ I.memo(Qwe, WG);
+var l8 = /*#__PURE__*/ I.memo($we, WG);
l8.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
@@ -61715,19 +61722,19 @@ function d8(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var f8 = (e, t, n) => J1(e, "xAxis", u8(e, t), n), p8 = (e, t, n) => q1(e, "xAxis", u8(e, t), n), m8 = (e, t, n) => J1(e, "yAxis", d8(e, t), n), h8 = (e, t, n) => q1(e, "yAxis", d8(e, t), n), $we = $([
+var f8 = (e, t, n) => Y1(e, "xAxis", u8(e, t), n), p8 = (e, t, n) => J1(e, "xAxis", u8(e, t), n), m8 = (e, t, n) => Y1(e, "yAxis", d8(e, t), n), h8 = (e, t, n) => J1(e, "yAxis", d8(e, t), n), eTe = $([
gW,
f8,
m8,
p8,
h8
-], (e, t, n, r, i) => YH(e, "xAxis") ? uU(t, r, !1) : uU(n, i, !1)), g8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), _8 = (e) => YH(gW(e), "xAxis") ? "yAxis" : "xAxis", eTe = (e, t) => _8(e) === "yAxis" ? d8(e, t) : u8(e, t), tTe = $([
+], (e, t, n, r, i) => YH(e, "xAxis") ? uU(t, r, !1) : uU(n, i, !1)), g8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), _8 = (e) => YH(gW(e), "xAxis") ? "yAxis" : "xAxis", tTe = (e, t) => _8(e) === "yAxis" ? d8(e, t) : u8(e, t), nTe = $([
gW,
f8,
m8,
p8,
h8,
- $([g8, (e, t, n) => a1(e, _8(e), eTe(e, t), n)], (e, t) => {
+ $([g8, (e, t, n) => a1(e, _8(e), tTe(e, t), n)], (e, t) => {
if (e != null && t != null) {
var { stackId: n } = e, r = eX(e);
if (n != null && r != null) {
@@ -61737,14 +61744,14 @@ var f8 = (e, t, n) => J1(e, "xAxis", u8(e, t), n), p8 = (e, t, n) => q1(e, "xAxi
}
}),
rY,
- $we,
+ eTe,
g8,
OY
], (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 xTe({
+ if (m != null) return STe({
layout: e,
xAxis: t,
yAxis: n,
@@ -61758,7 +61765,7 @@ var f8 = (e, t, n) => J1(e, "xAxis", u8(e, t), n), p8 = (e, t, n) => q1(e, "xAxi
bandSize: s
});
}
-}), nTe = ["id"], rTe = [
+}), rTe = ["id"], iTe = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -61785,14 +61792,14 @@ function v8() {
}
function y8(e, t) {
if (e == null) return {};
- var n, r, i = iTe(e, t);
+ var n, r, i = aTe(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 aTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61815,26 +61822,26 @@ function x8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? b8(Object(n), !0).forEach(function(t) {
- aTe(e, t, n[t]);
+ oTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function aTe(e, t, n) {
- return (t = oTe(t)) in e ? Object.defineProperty(e, t, {
+function oTe(e, t, n) {
+ return (t = sTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function oTe(e) {
- var t = sTe(e, "string");
+function sTe(e) {
+ var t = cTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function sTe(e, t) {
+function cTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61847,7 +61854,7 @@ function sTe(e, t) {
function S8(e, t) {
return e && e !== "none" ? e : t;
}
-var cTe = (e) => {
+var lTe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
@@ -61857,7 +61864,7 @@ var cTe = (e) => {
value: fU(n, t),
payload: e
}];
-}, lTe = /*#__PURE__*/ I.memo((e) => {
+}, uTe = /*#__PURE__*/ I.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: uz,
@@ -61877,7 +61884,7 @@ var cTe = (e) => {
};
return /*#__PURE__*/ I.createElement(g3, { tooltipEntrySettings: d });
});
-function uTe(e) {
+function dTe(e) {
var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = WL(r);
return /*#__PURE__*/ I.createElement(E3, {
points: n,
@@ -61890,7 +61897,7 @@ function uTe(e) {
clipPathId: t
});
}
-function dTe(e) {
+function fTe(e) {
var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {
var t = {
x: e.x ?? 0,
@@ -61911,7 +61918,7 @@ function dTe(e) {
return /*#__PURE__*/ I.createElement(u4, { value: t ? i : void 0 }, n);
}
function C8(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 = y8(a, nTe), p = WL(f), m = KL(f);
+ 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 = y8(a, rTe), p = WL(f), m = KL(f);
return /*#__PURE__*/ I.createElement(I.Fragment, null, t?.length > 1 && /*#__PURE__*/ I.createElement(XL, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ I.createElement(XK, v8({}, m, {
id: d,
points: t,
@@ -61935,13 +61942,13 @@ function C8(e) {
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ I.createElement(uTe, {
+ }))), /*#__PURE__*/ I.createElement(dTe, {
points: t,
props: f,
clipPathId: i
}));
}
-function fTe(e) {
+function pTe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
if (!BH(a) || !BH(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));
@@ -61952,7 +61959,7 @@ function fTe(e) {
height: Math.floor(s)
}) : null;
}
-function pTe(e) {
+function mTe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
if (!BH(a) || !BH(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));
@@ -61963,21 +61970,21 @@ function pTe(e) {
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function mTe(e) {
+function hTe(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ I.createElement(fTe, {
+ return n === "vertical" ? /*#__PURE__*/ I.createElement(pTe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ I.createElement(pTe, {
+ }) : /*#__PURE__*/ I.createElement(mTe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function hTe(e) {
+function gTe(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 = Jq((0, I.useMemo)(() => ({
points: o,
baseLine: s
@@ -61988,7 +61995,7 @@ function hTe(e) {
}, [f]);
if (h == null) return null;
var x = i.current, S = a.current;
- return /*#__PURE__*/ I.createElement(dTe, {
+ return /*#__PURE__*/ I.createElement(fTe, {
showLabels: v,
points: o
}, r.children, /*#__PURE__*/ I.createElement(qq, {
@@ -62031,7 +62038,7 @@ function hTe(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ I.createElement(XL, null, c && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ I.createElement(mTe, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ I.createElement(XL, null, c && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ I.createElement(hTe, {
alpha: e,
points: o,
baseLine: s,
@@ -62046,9 +62053,9 @@ function hTe(e) {
})));
}), /*#__PURE__*/ I.createElement(p4, { label: r.label }));
}
-function gTe(e) {
+function _Te(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, I.useRef)(null), a = (0, I.useRef)();
- return /*#__PURE__*/ I.createElement(hTe, {
+ return /*#__PURE__*/ I.createElement(gTe, {
needClip: t,
clipPathId: n,
props: r,
@@ -62056,7 +62063,7 @@ function gTe(e) {
previousBaselineRef: a
});
}
-var _Te = class extends I.PureComponent {
+var vTe = class extends I.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;
@@ -62070,7 +62077,7 @@ var _Te = class extends I.PureComponent {
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ I.createElement(gTe, {
+ }))), /*#__PURE__*/ I.createElement(_Te, {
needClip: o,
clipPathId: h,
props: this.props
@@ -62088,7 +62095,7 @@ var _Te = class extends I.PureComponent {
clipPath: b
}));
}
-}, vTe = {
+}, yTe = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
@@ -62108,11 +62115,11 @@ var _Te = class extends I.PureComponent {
yAxisId: 0,
zIndex: kY.area
};
-function yTe(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 = y8(e, rTe), g = _W(), _ = W0(), { needClip: v } = Y6(p, m), y = IU(), { points: b, isRange: x, baseLine: S } = Q((t) => tTe(t, e.id, y)) ?? {}, C = A3();
+function bTe(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 = y8(e, iTe), g = _W(), _ = W0(), { needClip: v } = Y6(p, m), y = IU(), { points: b, isRange: x, baseLine: S } = Q((t) => nTe(t, e.id, y)) ?? {}, C = A3();
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__*/ I.createElement(_Te, v8({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ I.createElement(vTe, v8({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -62138,7 +62145,7 @@ function yTe(e) {
yAxisId: m
}));
}
-var bTe = (e, t, n, r, i) => {
+var xTe = (e, t, n, r, i) => {
var a = n ?? t;
if (Z(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
@@ -62148,8 +62155,8 @@ var bTe = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function xTe(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 = bTe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
+function STe(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 = xTe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
var a;
if (m) a = i[u + n];
else {
@@ -62198,12 +62205,12 @@ function xTe(e) {
isRange: _
};
}
-function STe(e) {
- var t = bz(e, vTe), n = IU();
+function CTe(e) {
+ var t = bz(e, yTe), n = IU();
return /*#__PURE__*/ I.createElement(y3, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: cTe(t) }), /*#__PURE__*/ I.createElement(lTe, {
+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: lTe(t) }), /*#__PURE__*/ I.createElement(uTe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -62228,15 +62235,15 @@ function STe(e) {
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ I.createElement(yTe, v8({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(bTe, v8({}, t, { id: e }))));
}
-var w8 = /*#__PURE__*/ I.memo(STe, WG);
+var w8 = /*#__PURE__*/ I.memo(CTe, WG);
w8.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var CTe = "Invariant failed";
-function wTe(e, t) {
- if (!e) throw Error(CTe);
+var wTe = "Invariant failed";
+function TTe(e, t) {
+ if (!e) throw Error(wTe);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
@@ -62256,81 +62263,81 @@ function E8(e) {
inActiveClassName: "recharts-inactive-bar"
}, e));
}
-var TTe = function(e) {
+var ETe = 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) || sz(n);
- return i ? e(n, r) : (!i && wTe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
+ return i ? e(n, r) : (!i && TTe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, ETe = (e, t, n) => n, D8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), DTe = $([D8], (e) => e?.maxBarSize), OTe = (e, t, n, r) => r, kTe = $([
+}, DTe = (e, t, n) => n, D8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), OTe = $([D8], (e) => e?.maxBarSize), kTe = (e, t, n, r) => r, ATe = $([
gW,
H$,
u8,
d8,
- ETe
-], (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")), ATe = (e, t, n) => {
+ DTe
+], (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")), jTe = (e, t, n) => {
var r = gW(e), i = u8(e, t), a = d8(e, t);
if (i != null && a != null) return r === "horizontal" ? a1(e, "yAxis", a, n) : a1(e, "xAxis", i, n);
-}, jTe = $([
- kTe,
+}, MTe = $([
+ ATe,
xY,
(e, t) => {
var n = gW(e), r = u8(e, t), i = d8(e, t);
- if (r != null && i != null) return n === "horizontal" ? B1(e, "xAxis", r) : B1(e, "yAxis", i);
+ if (r != null && i != null) return n === "horizontal" ? V1(e, "xAxis", r) : V1(e, "yAxis", i);
}
-], Y3), MTe = (e, t, n) => {
+], Y3), NTe = (e, t, n) => {
var r = D8(e, t);
if (r == null) return 0;
var i = u8(e, t), a = d8(e, t);
if (i == null || a == null) return 0;
var o = gW(e), s = vY(e), { maxBarSize: c } = r, l = sz(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)), uU(u, d, !0) ?? l ?? 0;
+ return o === "horizontal" ? (u = Y1(e, "xAxis", i, n), d = J1(e, "xAxis", i, n)) : (u = Y1(e, "yAxis", a, n), d = J1(e, "yAxis", a, n)), uU(u, d, !0) ?? l ?? 0;
}, O8 = (e, t, n) => {
var r = gW(e), i = u8(e, t), a = d8(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)), uU(o, s);
+ return r === "horizontal" ? (o = Y1(e, "xAxis", i, n), s = J1(e, "xAxis", i, n)) : (o = Y1(e, "yAxis", a, n), s = J1(e, "yAxis", a, n)), uU(o, s);
}
-}, NTe = $([
+}, PTe = $([
MU,
PU,
(e, t, n) => {
var r = u8(e, t);
- if (r != null) return J1(e, "xAxis", r, n);
+ if (r != null) return Y1(e, "xAxis", r, n);
},
(e, t, n) => {
var r = d8(e, t);
- if (r != null) return J1(e, "yAxis", r, n);
+ if (r != null) return Y1(e, "yAxis", r, n);
},
(e, t, n) => {
var r = u8(e, t);
- if (r != null) return q1(e, "xAxis", r, n);
+ if (r != null) return J1(e, "xAxis", r, n);
},
(e, t, n) => {
var r = d8(e, t);
- if (r != null) return q1(e, "yAxis", r, n);
+ if (r != null) return J1(e, "yAxis", r, n);
},
$([$([
- jTe,
+ MTe,
vY,
yY,
bY,
- MTe,
+ NTe,
O8,
- DTe
+ OTe
], Q3), D8], e6),
gW,
rY,
O8,
- $([ATe, D8], $3),
+ $([jTe, D8], $3),
D8,
- OTe
+ kTe
], (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 sEe({
+ if (_ != null) return cEe({
layout: s,
barSettings: d,
pos: o,
@@ -62347,7 +62354,7 @@ var TTe = function(e) {
dataStartIndex: m
});
}
-}), PTe = ["index"];
+}), FTe = ["index"];
function k8() {
return k8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -62357,16 +62364,16 @@ function k8() {
return e;
}, k8.apply(null, arguments);
}
-function FTe(e, t) {
+function ITe(e, t) {
if (e == null) return {};
- var n, r, i = ITe(e, t);
+ var n, r, i = LTe(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 LTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62375,31 +62382,31 @@ function ITe(e, t) {
}
return n;
}
-var A8 = /*#__PURE__*/ (0, I.createContext)(void 0), LTe = (e) => {
+var A8 = /*#__PURE__*/ (0, I.createContext)(void 0), RTe = (e) => {
var t = (0, I.useContext)(A8);
if (t != null) return t.stackId;
if (e != null) return tU(e);
-}, RTe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, zTe = (e) => {
+}, zTe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, BTe = (e) => {
var t = (0, I.useContext)(A8);
if (t != null) {
var { stackId: n } = t;
- return `url(#${RTe(n, e)})`;
+ return `url(#${zTe(n, e)})`;
}
}, j8 = (e) => {
- var { index: t } = e, n = FTe(e, PTe), r = zTe(t);
+ var { index: t } = e, n = ITe(e, FTe), r = BTe(t);
return /*#__PURE__*/ I.createElement(XL, k8({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, BTe = [
+}, VTe = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], VTe = [
+], HTe = [
"value",
"background",
"tooltipPosition"
-], HTe = ["id"], UTe = [
+], UTe = ["id"], WTe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
@@ -62427,26 +62434,26 @@ function P8(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) {
- WTe(e, t, n[t]);
+ GTe(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 WTe(e, t, n) {
- return (t = GTe(t)) in e ? Object.defineProperty(e, t, {
+function GTe(e, t, n) {
+ return (t = KTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function GTe(e) {
- var t = KTe(e, "string");
+function KTe(e) {
+ var t = qTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function KTe(e, t) {
+function qTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62458,14 +62465,14 @@ function KTe(e, t) {
}
function F8(e, t) {
if (e == null) return {};
- var n, r, i = qTe(e, t);
+ var n, r, i = JTe(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 qTe(e, t) {
+function JTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62474,7 +62481,7 @@ function qTe(e, t) {
}
return n;
}
-var JTe = (e) => {
+var YTe = (e) => {
var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;
return [{
inactive: a,
@@ -62484,7 +62491,7 @@ var JTe = (e) => {
value: fU(n, t),
payload: e
}];
-}, YTe = /*#__PURE__*/ I.memo((e) => {
+}, XTe = /*#__PURE__*/ I.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: uz,
@@ -62504,12 +62511,12 @@ var JTe = (e) => {
};
return /*#__PURE__*/ I.createElement(g3, { tooltipEntrySettings: u });
});
-function XTe(e) {
- var t = Q(F0), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = F8(a, BTe), u = p3(o, r, a.id), d = m3(s), f = h3(c, r, a.id);
+function ZTe(e) {
+ var t = Q(F0), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = F8(a, VTe), u = p3(o, r, a.id), d = m3(s), f = h3(c, r, a.id);
if (!i || n == null) return null;
var p = GL(i);
return /*#__PURE__*/ I.createElement(n2, { zIndex: p6(i, kY.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = F8(e, VTe);
+ var { value: a, background: o, tooltipPosition: s } = e, c = F8(e, HTe);
if (!o) return null;
var m = u(e, n), h = d(e, n), g = f(e, n), _ = P8(P8(P8(P8(P8({
option: i,
@@ -62525,7 +62532,7 @@ function XTe(e) {
return /*#__PURE__*/ I.createElement(E8, M8({ key: `background-bar-${n}` }, _));
}));
}
-function ZTe(e) {
+function QTe(e) {
var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {
var t = {
x: e.x,
@@ -62545,7 +62552,7 @@ function ZTe(e) {
});
return /*#__PURE__*/ I.createElement(u4, { value: t ? i : void 0 }, n);
}
-function QTe(e) {
+function $Te(e) {
var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(F0), c = Q(L0), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, I.useState)(!1), [f, p] = (0, I.useState)(!1);
(0, I.useEffect)(() => {
var e;
@@ -62566,7 +62573,7 @@ function QTe(e) {
}));
return g ? /*#__PURE__*/ I.createElement(n2, { zIndex: kY.activeBar }, /*#__PURE__*/ I.createElement(j8, { index: i.originalDataIndex }, v)) : v;
}
-function $Te(e) {
+function eEe(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
return /*#__PURE__*/ I.createElement(E8, M8({}, n, { name: String(n.name) }, r, {
isActive: !1,
@@ -62575,8 +62582,8 @@ function $Te(e) {
dataKey: a
}));
}
-function eEe(e) {
- var { data: t, props: n } = e, r = WL(n) ?? {}, { id: i } = r, a = F8(r, HTe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = F8(n, UTe), p = p3(l, s, i), m = m3(d), h = h3(u, s, i);
+function tEe(e) {
+ var { data: t, props: n } = e, r = WL(n) ?? {}, { id: i } = r, a = F8(r, UTe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = F8(n, WTe), p = p3(l, s, i), m = m3(d), h = h3(u, s, i);
return t ? /*#__PURE__*/ I.createElement(I.Fragment, null, t.map((e, t) => /*#__PURE__*/ I.createElement(j8, M8({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
@@ -62585,14 +62592,14 @@ function eEe(e) {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ I.createElement(QTe, {
+ }), c ? /*#__PURE__*/ I.createElement($Te, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ I.createElement($Te, {
+ }) : /*#__PURE__*/ I.createElement(eEe, {
shape: o,
baseProps: a,
entry: e,
@@ -62600,13 +62607,13 @@ function eEe(e) {
dataKey: s
})))) : null;
}
-function tEe(e) {
+function nEe(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 = Jq(t, "recharts-bar-"), [p, m] = (0, I.useState)(!1), h = !p, g = (0, I.useCallback)(() => {
typeof l == "function" && l(), m(!1);
}, [l]), _ = (0, I.useCallback)(() => {
typeof u == "function" && u(), m(!0);
}, [u]);
- return /*#__PURE__*/ I.createElement(ZTe, {
+ return /*#__PURE__*/ I.createElement(QTe, {
showLabels: h,
rects: r
}, /*#__PURE__*/ I.createElement(qq, {
@@ -62640,20 +62647,20 @@ function tEe(e) {
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ I.createElement(XL, null, /*#__PURE__*/ I.createElement(eEe, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ I.createElement(XL, null, /*#__PURE__*/ I.createElement(tEe, {
props: t,
data: a
}));
}), /*#__PURE__*/ I.createElement(p4, { label: t.label }), t.children);
}
-function nEe(e) {
+function rEe(e) {
var t = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(tEe, {
+ return /*#__PURE__*/ I.createElement(nEe, {
previousRectanglesRef: t,
props: e
});
}
-var I8 = 0, rEe = (e, t) => {
+var I8 = 0, iEe = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
@@ -62661,7 +62668,7 @@ var I8 = 0, rEe = (e, t) => {
value: n,
errorVal: qH(e, t)
};
-}, iEe = class extends I.PureComponent {
+}, aEe = class extends I.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;
@@ -62676,14 +62683,14 @@ var I8 = 0, rEe = (e, t) => {
})), /*#__PURE__*/ I.createElement(XL, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ I.createElement(XTe, {
+ }, /*#__PURE__*/ I.createElement(ZTe, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ I.createElement(nEe, this.props)));
+ }), /*#__PURE__*/ I.createElement(rEe, this.props)));
}
-}, aEe = {
+}, oEe = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
@@ -62698,17 +62705,17 @@ var I8 = 0, rEe = (e, t) => {
yAxisId: 0,
zIndex: kY.bar
};
-function oEe(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 } = Y6(t, n), f = _W(), p = IU(), m = n3(e.children, y2), h = Q((t) => NTe(t, e.id, p, m));
+function sEe(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 } = Y6(t, n), f = _W(), p = IU(), m = n3(e.children, y2), h = Q((t) => PTe(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__*/ I.createElement(J6, {
xAxisId: t,
yAxisId: n,
data: h,
- dataPointFormatter: rEe,
+ dataPointFormatter: iEe,
errorBarOffset: g
- }, /*#__PURE__*/ I.createElement(iEe, M8({}, e, {
+ }, /*#__PURE__*/ I.createElement(aEe, M8({}, e, {
layout: f,
needClip: d,
data: h,
@@ -62724,7 +62731,7 @@ function oEe(e) {
isAnimationActive: u
})));
}
-function sEe(e) {
+function cEe(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 = iU({ numericAxis: _ }), b = _.scale.map(y);
return f.map((e, f) => {
var _, x, S, C, w, T;
@@ -62733,7 +62740,7 @@ function sEe(e) {
if (E == null) return null;
_ = QH(E, v);
} else _ = qH(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = TTe(r, I8)(_[1], f);
+ var D = ETe(r, I8)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
@@ -62793,12 +62800,12 @@ function sEe(e) {
}, m && m[f] && m[f].props);
}).filter(Boolean);
}
-function cEe(e) {
- var t = bz(e, aEe), n = LTe(t.stackId), r = IU();
+function lEe(e) {
+ var t = bz(e, oEe), n = RTe(t.stackId), r = IU();
return /*#__PURE__*/ I.createElement(y3, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: JTe(t) }), /*#__PURE__*/ I.createElement(YTe, {
+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: YTe(t) }), /*#__PURE__*/ I.createElement(XTe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -62823,23 +62830,23 @@ function cEe(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ I.createElement(n2, { zIndex: t.zIndex }, /*#__PURE__*/ I.createElement(oEe, M8({}, t, { id: e })))));
+ }), /*#__PURE__*/ I.createElement(n2, { zIndex: t.zIndex }, /*#__PURE__*/ I.createElement(sEe, M8({}, t, { id: e })))));
}
-var L8 = /*#__PURE__*/ I.memo(cEe, WG);
+var L8 = /*#__PURE__*/ I.memo(lEe, WG);
L8.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var lEe = ["domain", "range"], uEe = ["domain", "range"];
+var uEe = ["domain", "range"], dEe = ["domain", "range"];
function R8(e, t) {
if (e == null) return {};
- var n, r, i = dEe(e, t);
+ var n, r, i = fEe(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 dEe(e, t) {
+function fEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62853,16 +62860,16 @@ function z8(e, t) {
}
function B8(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = R8(e, lEe), { domain: a, range: o } = t, s = R8(t, uEe);
+ var { domain: n, range: r } = e, i = R8(e, uEe), { domain: a, range: o } = t, s = R8(t, dEe);
return !z8(n, a) || !z8(r, o) ? !1 : WG(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var fEe = ["type"], pEe = [
+var pEe = ["type"], mEe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], mEe = ["id", "scale"];
+], hEe = ["id", "scale"];
function V8() {
return V8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -62886,26 +62893,26 @@ function U8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? H8(Object(n), !0).forEach(function(t) {
- hEe(e, t, n[t]);
+ gEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hEe(e, t, n) {
- return (t = gEe(t)) in e ? Object.defineProperty(e, t, {
+function gEe(e, t, n) {
+ return (t = _Ee(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gEe(e) {
- var t = _Ee(e, "string");
+function _Ee(e) {
+ var t = vEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _Ee(e, t) {
+function vEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62917,14 +62924,14 @@ function _Ee(e, t) {
}
function W8(e, t) {
if (e == null) return {};
- var n, r, i = vEe(e, t);
+ var n, r, i = yEe(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 vEe(e, t) {
+function yEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62933,23 +62940,23 @@ function vEe(e, t) {
}
return n;
}
-function yEe(e) {
- var t = qz(), n = (0, I.useRef)(null), r = vW(), { type: i } = e, a = W8(e, fEe), o = NY(r, "xAxis", i), s = (0, I.useMemo)(() => {
+function bEe(e) {
+ var t = qz(), n = (0, I.useRef)(null), r = vW(), { type: i } = e, a = W8(e, pEe), o = NY(r, "xAxis", i), s = (0, I.useMemo)(() => {
if (o != null) return U8(U8({}, a), {}, { type: o });
}, [a, o]);
return (0, I.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(Fxe(s)) : n.current !== s && t(Ixe({
+ s != null && (n.current === null ? t(Ixe(s)) : n.current !== s && t(Lxe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(Lxe(n.current)), null);
+ n.current &&= (t(Rxe(n.current)), null);
}, [t]), null;
}
-var bEe = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(PU), i = IU(), a = "xAxis", o = Q((e) => G1(e, a, t, i)), s = Q((e) => R1(e, t)), c = Q((e) => Hge(e, t)), l = Q((e) => M$(e, t));
+var xEe = (e) => {
+ var { xAxisId: t, className: n } = e, r = Q(PU), i = IU(), a = "xAxis", o = Q((e) => K1(e, a, t, i)), s = Q((e) => R1(e, t)), c = Q((e) => Hge(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 = W8(e, pEe), { id: m, scale: h } = l, g = W8(l, mEe);
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = W8(e, mEe), { id: m, scale: h } = l, g = W8(l, hEe);
return /*#__PURE__*/ I.createElement(B6, V8({}, p, g, {
x: c.x,
y: c.y,
@@ -62961,7 +62968,7 @@ var bEe = (e) => {
axisType: a,
axisId: t
}));
-}, xEe = {
+}, SEe = {
allowDataOverflow: j$.allowDataOverflow,
allowDecimals: j$.allowDecimals,
allowDuplicatedCategory: j$.allowDuplicatedCategory,
@@ -62986,8 +62993,8 @@ var bEe = (e) => {
niceTicks: j$.niceTicks,
xAxisId: 0
}, G8 = /*#__PURE__*/ I.memo((e) => {
- var t = bz(e, xEe);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(yEe, {
+ var t = bz(e, SEe);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(bEe, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -63013,16 +63020,16 @@ var bEe = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ I.createElement(bEe, t));
+ }), /*#__PURE__*/ I.createElement(xEe, t));
}, B8);
G8.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var SEe = ["type"], CEe = [
+var CEe = ["type"], wEe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], wEe = ["id", "scale"];
+], TEe = ["id", "scale"];
function K8() {
return K8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -63046,26 +63053,26 @@ function J8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? q8(Object(n), !0).forEach(function(t) {
- TEe(e, t, n[t]);
+ EEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function TEe(e, t, n) {
- return (t = EEe(t)) in e ? Object.defineProperty(e, t, {
+function EEe(e, t, n) {
+ return (t = DEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function EEe(e) {
- var t = DEe(e, "string");
+function DEe(e) {
+ var t = OEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function DEe(e, t) {
+function OEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63077,14 +63084,14 @@ function DEe(e, t) {
}
function Y8(e, t) {
if (e == null) return {};
- var n, r, i = OEe(e, t);
+ var n, r, i = kEe(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 OEe(e, t) {
+function kEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63093,27 +63100,27 @@ function OEe(e, t) {
}
return n;
}
-function kEe(e) {
- var t = qz(), n = (0, I.useRef)(null), r = vW(), { type: i } = e, a = Y8(e, SEe), o = NY(r, "yAxis", i), s = (0, I.useMemo)(() => {
+function AEe(e) {
+ var t = qz(), n = (0, I.useRef)(null), r = vW(), { type: i } = e, a = Y8(e, CEe), o = NY(r, "yAxis", i), s = (0, I.useMemo)(() => {
if (o != null) return J8(J8({}, a), {}, { type: o });
}, [o, a]);
return (0, I.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(Rxe(s)) : n.current !== s && t(zxe({
+ s != null && (n.current === null ? t(zxe(s)) : n.current !== s && t(Bxe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(Bxe(n.current)), null);
+ n.current &&= (t(Vxe(n.current)), null);
}, [t]), null;
}
-function AEe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = Q(PU), c = IU(), l = qz(), u = "yAxis", d = Q((e) => z1(e, t)), f = Q((e) => Uge(e, t)), p = Q((e) => G1(e, u, t, c)), m = Q((e) => F$(e, t));
+function jEe(e) {
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = Q(PU), c = IU(), l = qz(), u = "yAxis", d = Q((e) => B1(e, t)), f = Q((e) => Uge(e, t)), p = Q((e) => K1(e, u, t, c)), m = Q((e) => F$(e, t));
if ((0, I.useLayoutEffect)(() => {
if (!(r !== "auto" || !d || n4(i) || /*#__PURE__*/ (0, I.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
- Math.round(d.width) !== Math.round(n) && l(Wxe({
+ Math.round(d.width) !== Math.round(n) && l(Gxe({
id: t,
width: n
}));
@@ -63128,7 +63135,7 @@ function AEe(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = Y8(e, CEe), { id: y, scale: b } = m, x = Y8(m, wEe);
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = Y8(e, wEe), { id: y, scale: b } = m, x = Y8(m, TEe);
return /*#__PURE__*/ I.createElement(B6, K8({}, v, x, {
ref: a,
labelRef: o,
@@ -63144,7 +63151,7 @@ function AEe(e) {
axisId: t
}));
}
-var jEe = {
+var MEe = {
allowDataOverflow: P$.allowDataOverflow,
allowDecimals: P$.allowDecimals,
allowDuplicatedCategory: P$.allowDuplicatedCategory,
@@ -63169,8 +63176,8 @@ var jEe = {
width: P$.width,
yAxisId: 0
}, X8 = /*#__PURE__*/ I.memo((e) => {
- var t = bz(e, jEe);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(kEe, {
+ var t = bz(e, MEe);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(AEe, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -63196,7 +63203,7 @@ var jEe = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ I.createElement(AEe, t));
+ }), /*#__PURE__*/ I.createElement(jEe, t));
}, B8);
X8.displayName = "YAxis";
var Z8 = $([
@@ -63206,17 +63213,17 @@ var Z8 = $([
oX,
O0,
A0,
- R_e,
+ z_e,
MU
-], G_e);
+], K_e);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function MEe(e) {
+function NEe(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
function Q8(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if (MEe(e)) {
+ if (NEe(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 {
@@ -63236,7 +63243,7 @@ e5.startListening({
actionCreator: $8,
effect: (e, t) => {
var n = e.payload, r = Z8(t.getState(), Q8(n));
- r?.activeIndex != null && t.dispatch(Qge({
+ r?.activeIndex != null && t.dispatch($ge({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
@@ -63250,7 +63257,7 @@ n5.startListening({
var n = e.payload, { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i?.includes("mousemove");
r5 !== null && (cancelAnimationFrame(r5), r5 = null), i5 !== null && (typeof r != "number" || !a) && (clearTimeout(i5), i5 = null), a5 = Q8(n);
var o = () => {
- var e = t.getState(), n = Q1(e, e.tooltip.settings.shared);
+ var e = t.getState(), n = $1(e, e.tooltip.settings.shared);
if (!a5) {
r5 = null, i5 = null;
return;
@@ -63274,7 +63281,7 @@ n5.startListening({
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function NEe(e, t) {
+function PEe(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
@@ -63297,11 +63304,11 @@ var o5 = {
reducers: { updateOptions: (e, t) => {
e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? o5.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;
} }
-}), PEe = s5.reducer, { updateOptions: FEe } = s5.actions, c5 = GV({
+}), FEe = s5.reducer, { updateOptions: IEe } = s5.actions, c5 = GV({
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: IEe } = c5.actions, LEe = c5.reducer, l5 = CV("keyDown"), u5 = CV("focus"), d5 = CV("blur"), f5 = jH(), p5 = null, m5 = null, h5 = null;
+}), { updatePolarOptions: LEe } = c5.actions, REe = c5.reducer, l5 = CV("keyDown"), u5 = CV("focus"), d5 = CV("blur"), f5 = jH(), p5 = null, m5 = null, h5 = null;
f5.startListening({
actionCreator: l5,
effect: (e, t) => {
@@ -63409,12 +63416,12 @@ v5.startListening({
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
- activeCoordinate: w_e(a),
+ activeCoordinate: T_e(a),
activeDataKey: L0(a),
activeIndex: F0(a),
activeLabel: I0(a),
activeTooltipIndex: F0(a),
- isTooltipActive: T_e(a)
+ isTooltipActive: E_e(a)
};
n && n(o, r);
} finally {
@@ -63438,7 +63445,7 @@ v5.startListening({
}
}
});
-var REe = $([
+var zEe = $([
$([h0], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
@@ -63465,7 +63472,7 @@ C5.startListening({
}));
var o = () => {
if (D5 != null) {
- var e = t.getState(), n = Q1(e, e.tooltip.settings.shared);
+ var e = t.getState(), n = $1(e, e.tooltip.settings.shared);
if (n === "axis") {
var r = E5?.[0];
if (r == null) {
@@ -63485,7 +63492,7 @@ C5.startListening({
if (!o || !o.getAttribute) return;
var s = o.getAttribute(xU), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = x0(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
- var { dataKey: u } = l, d = REe(e, s, c);
+ var { dataKey: u } = l, d = zEe(e, s, c);
t.dispatch(r0({
activeDataKey: u,
activeIndex: s,
@@ -63523,27 +63530,27 @@ var O5 = {
reducers: { setEventSettings: (e, t) => {
t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = vG(t.payload.throttledEvents));
} }
-}), { setEventSettings: zEe } = k5.actions, BEe = k5.reducer, VEe = dB({
- brush: iCe,
- cartesianAxis: Gxe,
- chartData: vve,
- errorBars: Cwe,
- eventSettings: BEe,
- graphicalItems: xxe,
+}), { setEventSettings: BEe } = k5.actions, VEe = k5.reducer, HEe = dB({
+ brush: aCe,
+ cartesianAxis: Kxe,
+ chartData: yve,
+ errorBars: wwe,
+ eventSettings: VEe,
+ graphicalItems: Sxe,
layout: RH,
legend: TG,
- options: pve,
- polarAxis: dbe,
- polarOptions: LEe,
- referenceElements: hCe,
- renderedTicks: UCe,
- rootProps: PEe,
- tooltip: $ge,
- zIndex: ive
-}), HEe = function(e) {
+ options: mve,
+ polarAxis: fbe,
+ polarOptions: REe,
+ referenceElements: gCe,
+ renderedTicks: WCe,
+ rootProps: FEe,
+ tooltip: e_e,
+ zIndex: ave
+}), UEe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
return FV({
- reducer: VEe,
+ reducer: HEe,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -63564,7 +63571,7 @@ var O5 = {
return typeof e == "function" && (t = e()), t.concat(NV({ type: "raf" }));
},
devTools: TK.devToolsEnabled && {
- serialize: { replacer: NEe },
+ serialize: { replacer: PEe },
name: `recharts-${t}`
}
});
@@ -63574,7 +63581,7 @@ var O5 = {
function A5(e) {
var { preloadedState: t, children: n, reduxStoreName: r } = e, i = IU(), a = (0, I.useRef)(null);
if (i) return n;
- a.current ??= HEe(t, r);
+ a.current ??= UEe(t, r);
var o = Kz;
return /*#__PURE__*/ I.createElement(VG, {
context: o,
@@ -63583,7 +63590,7 @@ function A5(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function UEe(e) {
+function WEe(e) {
var { layout: t, margin: n } = e, r = qz(), i = IU();
return (0, I.useEffect)(() => {
i || (r(FH(t)), r(PH(n)));
@@ -63594,31 +63601,31 @@ function UEe(e) {
n
]), null;
}
-var j5 = /*#__PURE__*/ (0, I.memo)(UEe, WG);
+var j5 = /*#__PURE__*/ (0, I.memo)(WEe, WG);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
function M5(e) {
var t = qz();
return (0, I.useEffect)(() => {
- t(FEe(e));
+ t(IEe(e));
}, [t, e]), null;
}
var N5 = /*#__PURE__*/ (0, I.memo)((e) => {
var t = qz();
return (0, I.useEffect)(() => {
- t(zEe(e));
+ t(BEe(e));
}, [t, e]), null;
}, WG);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
function P5(e) {
var { zIndex: t, isPanorama: n } = e, r = (0, I.useRef)(null), i = qz();
- return (0, I.useLayoutEffect)(() => (r.current && i(nve({
+ return (0, I.useLayoutEffect)(() => (r.current && i(rve({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(rve({
+ i(ive({
zIndex: t,
isPanorama: n
}));
@@ -63633,7 +63640,7 @@ function P5(e) {
});
}
function F5(e) {
- var { children: t, isPanorama: n } = e, r = Q(q_e);
+ var { children: t, isPanorama: n } = e, r = Q(J_e);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
return /*#__PURE__*/ I.createElement(I.Fragment, null, i.map((e) => /*#__PURE__*/ I.createElement(P5, {
@@ -63648,17 +63655,17 @@ function F5(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var WEe = ["children"];
-function GEe(e, t) {
+var GEe = ["children"];
+function KEe(e, t) {
if (e == null) return {};
- var n, r, i = KEe(e, t);
+ var n, r, i = qEe(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 KEe(e, t) {
+function qEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63676,11 +63683,11 @@ function I5() {
return e;
}, I5.apply(null, arguments);
}
-var qEe = {
+var JEe = {
width: "100%",
height: "100%",
display: "block"
-}, JEe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+}, YEe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var n = pW(), r = mW(), i = FK();
if (!VH(n) || !VH(r)) return null;
var { children: a, otherAttributes: o, title: s, desc: c } = e, l, u;
@@ -63691,10 +63698,10 @@ var qEe = {
tabIndex: l,
width: n,
height: r,
- style: qEe,
+ style: JEe,
ref: t
}), a);
-}), YEe = (e) => {
+}), XEe = (e) => {
var { children: t } = e, n = Q(RU);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
@@ -63705,12 +63712,12 @@ var qEe = {
y: a
}, t);
}, L5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { children: n } = e, r = GEe(e, WEe);
- return IU() ? /*#__PURE__*/ I.createElement(YEe, null, /*#__PURE__*/ I.createElement(F5, { isPanorama: !0 }, n)) : /*#__PURE__*/ I.createElement(JEe, I5({ ref: t }, r), /*#__PURE__*/ I.createElement(F5, { isPanorama: !1 }, n));
+ var { children: n } = e, r = KEe(e, GEe);
+ return IU() ? /*#__PURE__*/ I.createElement(XEe, null, /*#__PURE__*/ I.createElement(F5, { isPanorama: !0 }, n)) : /*#__PURE__*/ I.createElement(YEe, I5({ ref: t }, r), /*#__PURE__*/ I.createElement(F5, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function XEe() {
+function ZEe() {
var e = qz(), [t, n] = (0, I.useState)(null), r = Q(_U);
return (0, I.useEffect)(() => {
if (t != null) {
@@ -63735,30 +63742,30 @@ function R5(e, t) {
}
return n;
}
-function ZEe(e) {
+function QEe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? R5(Object(n), !0).forEach(function(t) {
- QEe(e, t, n[t]);
+ $Ee(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function QEe(e, t, n) {
- return (t = $Ee(t)) in e ? Object.defineProperty(e, t, {
+function $Ee(e, t, n) {
+ return (t = eDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function $Ee(e) {
- var t = eDe(e, "string");
+function eDe(e) {
+ var t = tDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function eDe(e, t) {
+function tDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63777,7 +63784,7 @@ function z5() {
return e;
}, z5.apply(null, arguments);
}
-var tDe = () => (Dve(), null);
+var nDe = () => (Ove(), null);
function B5(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
@@ -63786,7 +63793,7 @@ function B5(e) {
}
return 0;
}
-var nDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+var rDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var n = (0, I.useRef)(null), [r, i] = (0, I.useState)({
containerWidth: B5(e.style?.width),
containerHeight: B5(e.style?.height)
@@ -63818,7 +63825,7 @@ var nDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
width: r.containerWidth,
height: r.containerHeight
}), /*#__PURE__*/ I.createElement("div", z5({ ref: o }, e)));
-}), rDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+}), iDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, I.useState)({
containerWidth: B5(n),
containerHeight: B5(r)
@@ -63840,15 +63847,15 @@ var nDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
width: i.containerWidth,
height: i.containerHeight
}), /*#__PURE__*/ I.createElement("div", z5({ ref: s }, e)));
-}), iDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+}), aDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { width: n, height: r } = e;
return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(SW, {
width: n,
height: r
}), /*#__PURE__*/ I.createElement("div", z5({ ref: t }, e)));
-}), aDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+}), oDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ I.createElement(rDe, z5({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ I.createElement(iDe, z5({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ I.createElement(iDe, z5({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ I.createElement(aDe, z5({}, e, {
width: n,
height: r,
ref: t
@@ -63857,11 +63864,11 @@ var nDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
height: r
}), /*#__PURE__*/ I.createElement("div", z5({ ref: t }, e)));
});
-function oDe(e) {
- return e ? nDe : aDe;
+function sDe(e) {
+ return e ? rDe : oDe;
}
-var sDe = /*#__PURE__*/ (0, I.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, I.useRef)(null), x = qz(), [S, C] = (0, I.useState)(null), [w, T] = (0, I.useState)(null), E = XEe(), D = oW(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, I.useCallback)((e) => {
+var cDe = /*#__PURE__*/ (0, I.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, I.useRef)(null), x = qz(), [S, C] = (0, I.useState)(null), [w, T] = (0, I.useState)(null), E = ZEe(), D = oW(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, I.useCallback)((e) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
@@ -63933,12 +63940,12 @@ var sDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
handler: p,
reactEvent: e
}));
- }, [x, p]), ce = oDe(v);
+ }, [x, p]), ce = sDe(v);
return /*#__PURE__*/ I.createElement(o2.Provider, { value: S }, /*#__PURE__*/ I.createElement(ZL.Provider, { value: w }, /*#__PURE__*/ I.createElement(ce, {
width: O ?? g?.width,
height: k ?? g?.height,
className: Wm("recharts-wrapper", r),
- style: ZEe({
+ style: QEe({
position: "relative",
cursor: "default",
width: O,
@@ -63959,8 +63966,8 @@ var sDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
onTouchMove: oe,
onTouchStart: ae,
ref: A
- }, /*#__PURE__*/ I.createElement(tDe, null), n)));
-}), cDe = [
+ }, /*#__PURE__*/ I.createElement(nDe, null), n)));
+}), lDe = [
"width",
"height",
"responsive",
@@ -63971,16 +63978,16 @@ var sDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
"title",
"desc"
];
-function lDe(e, t) {
+function uDe(e, t) {
if (e == null) return {};
- var n, r, i = uDe(e, t);
+ var n, r, i = dDe(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 uDe(e, t) {
+function dDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63990,7 +63997,7 @@ function uDe(e, t) {
return n;
}
var V5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = WL(lDe(e, cDe));
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = WL(uDe(e, lDe));
return c ? /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(SW, {
width: n,
height: r
@@ -63998,7 +64005,7 @@ var V5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ I.createElement(sDe, {
+ }, a)) : /*#__PURE__*/ I.createElement(cDe, {
className: o,
style: s,
width: n,
@@ -64020,7 +64027,7 @@ var V5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ I.createElement(gCe, null, a)));
+ }, /*#__PURE__*/ I.createElement(_Ce, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
@@ -64043,30 +64050,30 @@ function U5(e, t) {
}
return n;
}
-function dDe(e) {
+function fDe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? U5(Object(n), !0).forEach(function(t) {
- fDe(e, t, n[t]);
+ pDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fDe(e, t, n) {
- return (t = pDe(t)) in e ? Object.defineProperty(e, t, {
+function pDe(e, t, n) {
+ return (t = mDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pDe(e) {
- var t = mDe(e, "string");
+function mDe(e) {
+ var t = hDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mDe(e, t) {
+function hDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64076,7 +64083,7 @@ function mDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var hDe = dDe({
+var gDe = fDe({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -64092,7 +64099,7 @@ var hDe = dDe({
stackOffset: "none",
syncMethod: "index"
}, O5), W5 = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- var n = bz(e.categoricalChartProps, hDe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+ var n = bz(e.categoricalChartProps, gDe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
@@ -64121,32 +64128,32 @@ var hDe = dDe({
className: n.className,
reverseStackOrder: n.reverseStackOrder
}), /*#__PURE__*/ I.createElement(V5, H5({}, n, { ref: t })));
-}), gDe = ["axis"], _De = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
+}), _De = ["axis"], vDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: gDe,
+ validateTooltipEventTypes: _De,
tooltipPayloadSearcher: u2,
categoricalChartProps: e,
ref: t
-})), vDe = ["axis", "item"], G5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
+})), yDe = ["axis", "item"], G5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: vDe,
+ validateTooltipEventTypes: yDe,
tooltipPayloadSearcher: u2,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function yDe(e) {
+function bDe(e) {
var t = qz();
return (0, I.useEffect)(() => {
- t(IEe(e));
+ t(LEe(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var bDe = ["layout"];
+var xDe = ["layout"];
function K5() {
return K5 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -64156,16 +64163,16 @@ function K5() {
return e;
}, K5.apply(null, arguments);
}
-function xDe(e, t) {
+function SDe(e, t) {
if (e == null) return {};
- var n, r, i = SDe(e, t);
+ var n, r, i = CDe(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 SDe(e, t) {
+function CDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64184,30 +64191,30 @@ function q5(e, t) {
}
return n;
}
-function CDe(e) {
+function wDe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? q5(Object(n), !0).forEach(function(t) {
- wDe(e, t, n[t]);
+ TDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function wDe(e, t, n) {
- return (t = TDe(t)) in e ? Object.defineProperty(e, t, {
+function TDe(e, t, n) {
+ return (t = EDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function TDe(e) {
- var t = EDe(e, "string");
+function EDe(e) {
+ var t = DDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function EDe(e, t) {
+function DDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64217,7 +64224,7 @@ function EDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var J5 = CDe({
+var J5 = wDe({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -64237,7 +64244,7 @@ var J5 = CDe({
innerRadius: 0,
outerRadius: "80%"
}, O5), Y5 = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- var n = bz(e.categoricalChartProps, J5), { layout: r } = n, i = xDe(n, bDe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+ var n = bz(e.categoricalChartProps, J5), { layout: r } = n, i = SDe(n, xDe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
@@ -64265,7 +64272,7 @@ var J5 = CDe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ I.createElement(yDe, {
+ }), /*#__PURE__*/ I.createElement(bDe, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
@@ -64290,26 +64297,26 @@ function Z5(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? X5(Object(n), !0).forEach(function(t) {
- DDe(e, t, n[t]);
+ ODe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function DDe(e, t, n) {
- return (t = ODe(t)) in e ? Object.defineProperty(e, t, {
+function ODe(e, t, n) {
+ return (t = kDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ODe(e) {
- var t = kDe(e, "string");
+function kDe(e) {
+ var t = ADe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kDe(e, t) {
+function ADe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64319,24 +64326,24 @@ function kDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ADe = ["axis"], jDe = Z5(Z5({}, J5), {}, {
+var jDe = ["axis"], MDe = Z5(Z5({}, J5), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), MDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = bz(e, jDe);
+}), NDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = bz(e, MDe);
return /*#__PURE__*/ I.createElement(Y5, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: ADe,
+ validateTooltipEventTypes: jDe,
tooltipPayloadSearcher: u2,
categoricalChartProps: n,
ref: t
});
-}), NDe = ["axis"], PDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
+}), PDe = ["axis"], FDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: NDe,
+ validateTooltipEventTypes: PDe,
tooltipPayloadSearcher: u2,
categoricalChartProps: e,
ref: t
@@ -64357,26 +64364,26 @@ function $5(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Q5(Object(n), !0).forEach(function(t) {
- FDe(e, t, n[t]);
+ IDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function FDe(e, t, n) {
- return (t = IDe(t)) in e ? Object.defineProperty(e, t, {
+function IDe(e, t, n) {
+ return (t = LDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function IDe(e) {
- var t = LDe(e, "string");
+function LDe(e) {
+ var t = RDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function LDe(e, t) {
+function RDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64386,16 +64393,16 @@ function LDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var RDe = ["axis", "item"], zDe = $5($5({}, J5), {}, {
+var zDe = ["axis", "item"], BDe = $5($5({}, J5), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), BDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = bz(e, zDe);
+}), VDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = bz(e, BDe);
return /*#__PURE__*/ I.createElement(Y5, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: RDe,
+ validateTooltipEventTypes: zDe,
tooltipPayloadSearcher: u2,
categoricalChartProps: n,
ref: t
@@ -64412,7 +64419,7 @@ var t7 = {
light: "",
dark: ".dark"
}, n7 = Object.keys(t7);
-function VDe(e) {
+function HDe(e) {
for (let [t, n] of Object.entries(e)) if (n.colors && !n7.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${n7.join(", ")}). Received empty object or invalid keys.`);
}
var r7 = I.createContext(null);
@@ -64426,7 +64433,7 @@ function a7({ id: e, config: t, initialDimension: n = {
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = I.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return VDe(t), /* @__PURE__ */ (0, L.jsx)(r7.Provider, {
+ return HDe(t), /* @__PURE__ */ (0, L.jsx)(r7.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, L.jsxs)("div", {
"data-slot": "chart",
@@ -64457,7 +64464,7 @@ function o7({ isLoading: e }) {
})
}) : null;
}
-function HDe(e, t) {
+function UDe(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -64472,7 +64479,7 @@ var s7 = ({ 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 ? [] : HDe(r, l7(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : UDe(r, l7(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
}).filter(Boolean).join("\n"), i = Object.entries(t7).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, L.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
@@ -64486,15 +64493,15 @@ function l7(e) {
let t = n7.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var UDe = (e = 10, t = 0, n = 70) => {
+var WDe = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, WDe = {
+}, GDe = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, GDe = {
+}, KDe = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
@@ -64521,7 +64528,7 @@ function u7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, L.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: e7("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", WDe[p], GDe[m], n),
+ className: e7("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", GDe[p], KDe[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, L.jsx)("div", {
className: "grid gap-1.5",
children: t.filter((e) => e.type !== "none").map((e, t) => {
@@ -64535,7 +64542,7 @@ function u7({ 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: KDe(n, o)
+ style: qDe(n, o)
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: e7("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -64554,10 +64561,10 @@ function u7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function KDe(e, t) {
+function qDe(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 d7 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, L.jsx)(Fve, {
+var d7 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, L.jsx)(Ive, {
animationDuration: e,
...t
});
@@ -64574,7 +64581,7 @@ function f7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
onClick: () => {
c && s?.(o === r ? null : r);
},
- children: [i?.icon && !t ? /* @__PURE__ */ (0, L.jsx)(i.icon, {}) : /* @__PURE__ */ (0, L.jsx)(qDe, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, L.jsx)(i.icon, {}) : /* @__PURE__ */ (0, L.jsx)(JDe, {
variant: l,
dataKey: r,
colorsCount: d
@@ -64583,8 +64590,8 @@ function f7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function qDe({ variant: e, dataKey: t, colorsCount: n }) {
- let r = JDe(t, n), i = YDe(t, n);
+function JDe({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = YDe(t, n), i = XDe(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, L.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -64616,10 +64623,10 @@ function qDe({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function JDe(e, t) {
+function YDe(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 YDe(e, t) {
+function XDe(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -64639,7 +64646,7 @@ var p7 = cK, m7 = () => null, h7 = {
damping: 35,
mass: .8
};
-function XDe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function ZDe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
let i = I.useRef(null), [a, o] = I.useState(!1), s = (0, I.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, I.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
@@ -64685,7 +64692,7 @@ function XDe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function ZDe({ 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 QDe({ 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 = I.useRef(null), S = I.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = I.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = I.useState(() => ({
startIndex: Math.max(0, Math.min(p, C - 1)),
endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))
@@ -64719,7 +64726,7 @@ function ZDe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [C, v]), { isDragging: A, bind: j } = XDe({
+ }, [C, v]), { isDragging: A, bind: j } = ZDe({
range: E,
totalPoints: C,
containerRef: x,
@@ -64775,7 +64782,7 @@ function ZDe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
}),
/* @__PURE__ */ (0, L.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, L.jsx)(QDe, {
+ children: /* @__PURE__ */ (0, L.jsx)($De, {
data: e,
keys: S,
chartConfig: t,
@@ -64844,7 +64851,7 @@ function g7({ side: e, position: t, label: n, bind: r }) {
})]
});
}
-function QDe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function $De({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = I.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
colorsCount: l7(t)
@@ -64904,7 +64911,7 @@ function QDe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
if (r === "line") return /* @__PURE__ */ (0, L.jsx)(cW, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, L.jsxs)(_De, {
+ children: /* @__PURE__ */ (0, L.jsxs)(vDe, {
data: e,
margin: {
top: 4,
@@ -64960,7 +64967,7 @@ function QDe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
return /* @__PURE__ */ (0, L.jsx)(cW, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, L.jsxs)(PDe, {
+ children: /* @__PURE__ */ (0, L.jsxs)(FDe, {
data: e,
margin: {
top: 4,
@@ -64986,7 +64993,7 @@ function QDe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function $De({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function eOe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = I.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -65010,7 +65017,7 @@ function $De({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var eOe = {
+var tOe = {
dots: ({ id: e }) => /* @__PURE__ */ (0, L.jsx)("pattern", {
id: e,
x: "0",
@@ -65183,7 +65190,7 @@ var eOe = {
})
};
function _7({ variant: e }) {
- let t = (0, I.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = eOe[e];
+ let t = (0, I.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = tOe[e];
return /* @__PURE__ */ (0, L.jsxs)(n2, {
zIndex: -1,
children: [/* @__PURE__ */ (0, L.jsxs)("defs", { children: [
@@ -65214,7 +65221,7 @@ function _7({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var v7 = 2, tOe = "loading", nOe = 2e3, rOe = "evil-stacked", iOe = .5, aOe = .05, oOe = [
+var v7 = 2, nOe = "loading", rOe = 2e3, iOe = "evil-stacked", aOe = .5, oOe = .05, sOe = [
0,
.7,
.5,
@@ -65226,7 +65233,7 @@ function b7() {
return e;
}
function x7({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = v7, 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, I.useId)().replace(/:/g, ""), [v] = (0, I.useState)(() => Date.now()), [y, b] = (0, I.useState)(f), [x, S] = (0, I.useState)(!1), { loadingData: C, onShimmerExit: w } = TOe(m, h), { visibleData: T, brushProps: E } = $De({ data: t }), D = (0, I.useMemo)(() => {
+ let _ = (0, I.useId)().replace(/:/g, ""), [v] = (0, I.useState)(() => Date.now()), [y, b] = (0, I.useState)(f), [x, S] = (0, I.useState)(!1), { loadingData: C, onShimmerExit: w } = EOe(m, h), { visibleData: T, brushProps: E } = eOe({ data: t }), D = (0, I.useMemo)(() => {
let e = I.Children.toArray(n), t = e.find((e) => (0, I.isValidElement)(e) && e.type === m7), r = (0, I.isValidElement)(t) ? t.props : {};
return {
slot: {
@@ -65269,7 +65276,7 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
children: /* @__PURE__ */ (0, L.jsxs)(a7, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, L.jsx)(ZDe, {
+ footer: O && !m && /* @__PURE__ */ (0, L.jsx)(QDe, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -65300,7 +65307,7 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
d && /* @__PURE__ */ (0, L.jsx)(_7, { variant: d }),
/* @__PURE__ */ (0, L.jsx)(k6, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, L.jsx)(EOe, {
+ m && /* @__PURE__ */ (0, L.jsx)(DOe, {
chartId: _,
onShimmerExit: w
})
@@ -65309,7 +65316,7 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function sOe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
+function cOe({ 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 } = b7(), b = (0, I.useId)().replace(/:/g, ""), x = Df();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
@@ -65332,7 +65339,7 @@ function sOe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
};
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(L8, {
dataKey: e,
- stackId: u ? rOe : void 0,
+ stackId: u ? iOe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
@@ -65349,44 +65356,44 @@ function sOe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
}),
...c
}), /* @__PURE__ */ (0, L.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, L.jsx)(gOe, {
+ /* @__PURE__ */ (0, L.jsx)(_Oe, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, L.jsx)(_Oe, {
+ t === "hatched" && /* @__PURE__ */ (0, L.jsx)(vOe, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, L.jsx)(yOe, {
+ t === "duotone" && /* @__PURE__ */ (0, L.jsx)(bOe, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, L.jsx)(bOe, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, L.jsx)(xOe, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, L.jsx)(xOe, {
+ t === "gradient" && /* @__PURE__ */ (0, L.jsx)(SOe, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, L.jsx)(SOe, {
+ t === "stripped" && /* @__PURE__ */ (0, L.jsx)(COe, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, L.jsx)(vOe, {
+ s && /* @__PURE__ */ (0, L.jsx)(yOe, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, L.jsx)(COe, {
+ o && /* @__PURE__ */ (0, L.jsx)(wOe, {
id: b,
dataKey: e
})
] })] });
}
-function cOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+function lOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
let { isLoading: o, isHorizontal: s } = b7();
return o ? null : /* @__PURE__ */ (0, L.jsx)(G8, {
tickLine: e,
@@ -65397,7 +65404,7 @@ function cOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function lOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+function uOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
let { isLoading: s, isHorizontal: c } = b7();
return s ? null : /* @__PURE__ */ (0, L.jsx)(X8, {
tickLine: e,
@@ -65409,7 +65416,7 @@ function lOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function uOe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+function dOe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
let { isHorizontal: i } = b7();
return /* @__PURE__ */ (0, L.jsx)(K6, {
strokeDasharray: e,
@@ -65418,7 +65425,7 @@ function uOe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
...r
});
}
-function dOe({ variant: e, roundness: t, defaultIndex: n }) {
+function fOe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = b7();
return r ? null : /* @__PURE__ */ (0, L.jsx)(d7, {
cursor: !1,
@@ -65430,7 +65437,7 @@ function dOe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function fOe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+function pOe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
let { selectedDataKey: i, selectDataKey: a } = b7();
return /* @__PURE__ */ (0, L.jsx)(p7, {
verticalAlign: n,
@@ -65444,7 +65451,7 @@ function fOe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
});
}
var S7 = (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 = pOe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : mOe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = hOe({
+ 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 = mOe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : hOe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = gOe({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -65489,7 +65496,7 @@ var S7 = (e) => {
children: A
}) : A]
});
-}, pOe = (e, t, n, r, i) => {
+}, mOe = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -65504,11 +65511,11 @@ var S7 = (e) => {
break;
default: s = t;
}
- let c = s * aOe * 1e3, l = iOe * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * oOe * 1e3, l = aOe * 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: oOe,
+ ease: sOe,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -65522,7 +65529,7 @@ var S7 = (e) => {
transition: p,
style: { originY: 1 }
};
-}, mOe = (e, t, n) => {
+}, hOe = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -65531,10 +65538,10 @@ var S7 = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, hOe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, gOe = ({ 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;
-}, gOe = ({ id: e, dataKey: t, config: n }) => {
+}, _Oe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -65556,7 +65563,7 @@ var S7 = (e) => {
}, i);
})
});
-}, _Oe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+}, vOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -65597,7 +65604,7 @@ var S7 = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), vOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+] }), yOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -65638,7 +65645,7 @@ var S7 = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), yOe = ({ id: e, dataKey: t, config: n }) => {
+] }), bOe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
@@ -65706,7 +65713,7 @@ var S7 = (e) => {
})
})
] });
-}, bOe = ({ id: e, dataKey: t, config: n }) => {
+}, xOe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
@@ -65774,7 +65781,7 @@ var S7 = (e) => {
})
})
] });
-}, xOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+}, SOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -65811,7 +65818,7 @@ var S7 = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), SOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+] }), COe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -65848,7 +65855,7 @@ var S7 = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), COe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
+] }), wOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -65868,35 +65875,35 @@ var S7 = (e) => {
}),
/* @__PURE__ */ (0, L.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), wOe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), TOe = (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 TOe(e, t = 12) {
+function EOe(e, t = 12) {
let [n, r] = (0, I.useState)(!1), i = (0, I.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, I.useMemo)(() => UDe(t, 20, 80), [t, n]),
+ loadingData: (0, I.useMemo)(() => WDe(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var EOe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(L8, {
- dataKey: tOe,
+var DOe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(L8, {
+ dataKey: nOe,
fill: "currentColor",
fillOpacity: .15,
radius: v7,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(DOe, {
+}), /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(OOe, {
chartId: e,
onShimmerExit: t
-}) })] }), DOe = ({ chartId: e, onShimmerExit: t }) => {
- let n = wOe(), r = (0, I.useRef)(-1);
+}) })] }), OOe = ({ chartId: e, onShimmerExit: t }) => {
+ let n = TOe(), r = (0, I.useRef)(-1);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -65927,7 +65934,7 @@ var EOe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: nOe / 1e3,
+ duration: rOe / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -65949,7 +65956,7 @@ var EOe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fr
})
] });
};
-x7.Bar = sOe, x7.XAxis = cOe, x7.YAxis = lOe, x7.Grid = uOe, x7.Tooltip = dOe, x7.Legend = fOe, x7.Brush = m7;
+x7.Bar = cOe, x7.XAxis = lOe, x7.YAxis = uOe, x7.Grid = dOe, x7.Tooltip = fOe, x7.Legend = pOe, x7.Brush = m7;
//#endregion
//#region src/react/charts/chart-card.tsx
var C7 = `${Rw({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
@@ -65979,7 +65986,7 @@ var T7 = [
"var(--color-chart-5)",
"var(--color-chart-6)"
], E7 = (e) => ({ light: [e] }), D7 = (e) => `s${e}`;
-function OOe(e) {
+function kOe(e) {
return Object.fromEntries(e.map((e, t) => [D7(t), {
label: e,
colors: E7(T7[t % T7.length])
@@ -66004,7 +66011,7 @@ function k7({ swatch: e, name: t, value: n }) {
});
}
var A7 = "size-2.5 shrink-0 rounded-xs";
-function kOe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+function AOe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
let { config: o } = i7(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, L.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
@@ -66029,7 +66036,7 @@ function kOe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLab
function j7({ nameKey: e, valueKey: t, hideLabel: n }) {
return /* @__PURE__ */ (0, L.jsx)(d7, {
cursor: !1,
- content: /* @__PURE__ */ (0, L.jsx)(kOe, {
+ content: /* @__PURE__ */ (0, L.jsx)(AOe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -66106,7 +66113,7 @@ var F7 = [
"周六",
"周日"
], I7 = (e, t) => e ? Math.max(.12, e / t) : 0;
-function AOe(e) {
+function jOe(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;
@@ -66123,7 +66130,7 @@ function AOe(e) {
total: n.reduce((e, t) => e + t, 0)
};
}
-function jOe(e) {
+function MOe(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,
@@ -66162,19 +66169,19 @@ var L7 = 14, R7 = 17, z7 = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, MOe = {
+}, NOe = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function NOe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function POe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${O7} ${MOe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${O7} ${NOe[a]}`,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
@@ -66232,7 +66239,7 @@ function B7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, L.jsx)(NOe, {
+ }), g && _ ? /* @__PURE__ */ (0, L.jsx)(POe, {
cell: g,
series: t.series,
tone: c,
@@ -66248,7 +66255,7 @@ function B7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var POe = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [F7.map((e, t) => /* @__PURE__ */ (0, L.jsx)("text", {
+var FOe = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [F7.map((e, t) => /* @__PURE__ */ (0, L.jsx)("text", {
x: 0,
y: 18 + t * R7 + 7,
dominantBaseline: "middle",
@@ -66262,7 +66269,7 @@ var POe = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [F7.map((e, t) =>
children: t
}, t))] });
function V7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = AOe(e), s = jOe(e);
+ let o = jOe(e), s = MOe(e);
return s.cells.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
children: [/* @__PURE__ */ (0, L.jsx)(B7, {
@@ -66273,7 +66280,7 @@ function V7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: POe,
+ axis: FOe,
footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
}), /* @__PURE__ */ (0, L.jsx)(B7, {
title: n,
@@ -66345,14 +66352,14 @@ function H7({ children: e, className: t = "", previewCount: n = 10 }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var FOe = "30%", IOe = "100%", U7 = 5, W7 = 14, LOe = 5, G7 = 1500, K7 = (0, I.createContext)(null);
+var IOe = "30%", LOe = "100%", U7 = 5, W7 = 14, ROe = 5, G7 = 1500, K7 = (0, I.createContext)(null);
function q7() {
let e = (0, I.use)(K7);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = FOe, outerRadius: l = IOe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, I.useId)().replace(/:/g, ""), [h, g] = (0, I.useState)(u), _ = WOe(f), v = VOe(o), y = (0, I.useCallback)((e, t) => {
+function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = IOe, outerRadius: l = LOe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+ let m = (0, I.useId)().replace(/:/g, ""), [h, g] = (0, I.useState)(u), _ = GOe(f), v = HOe(o), y = (0, I.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -66384,7 +66391,7 @@ function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
children: /* @__PURE__ */ (0, L.jsxs)(a7, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: f }), /* @__PURE__ */ (0, L.jsxs)(BDe, {
+ children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: f }), /* @__PURE__ */ (0, L.jsxs)(VDe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -66403,8 +66410,8 @@ function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
}),
p && /* @__PURE__ */ (0, L.jsx)(_7, { variant: p }),
r,
- f && /* @__PURE__ */ (0, L.jsx)(GOe, {}),
- /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(HOe, {
+ f && /* @__PURE__ */ (0, L.jsx)(KOe, {}),
+ /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(UOe, {
config: e,
chartId: m
}) })
@@ -66413,7 +66420,7 @@ function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function ROe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+function zOe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = q7();
return s ? null : /* @__PURE__ */ (0, L.jsx)(b6, {
dataKey: e,
@@ -66438,7 +66445,7 @@ function ROe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground
...a
});
}
-function zOe({ variant: e, roundness: t, defaultIndex: n }) {
+function BOe({ variant: e, roundness: t, defaultIndex: n }) {
let { nameKey: r, isLoading: i } = q7();
return i ? null : /* @__PURE__ */ (0, L.jsx)(d7, {
defaultIndex: n,
@@ -66451,7 +66458,7 @@ function zOe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function BOe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+function VOe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = q7();
return a ? null : /* @__PURE__ */ (0, L.jsx)(p7, {
verticalAlign: n,
@@ -66465,7 +66472,7 @@ function BOe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function VOe(e) {
+function HOe(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -66481,7 +66488,7 @@ function VOe(e) {
};
}
}
-var HOe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: Object.entries(e).map(([e, n]) => {
+var UOe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: Object.entries(e).map(([e, n]) => {
let r = l7(n);
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
@@ -66504,13 +66511,13 @@ var HOe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function UOe() {
- return Array.from({ length: LOe }, (e, t) => ({
+function WOe() {
+ return Array.from({ length: ROe }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function WOe(e) {
+function GOe(e) {
let [t, n] = (0, I.useState)(0);
return (0, I.useEffect)(() => {
if (!e) return;
@@ -66518,9 +66525,9 @@ function WOe(e) {
n((e) => e + 1);
}, G7);
return () => clearInterval(t);
- }, [e]), (0, I.useMemo)(() => UOe(), [t]);
+ }, [e]), (0, I.useMemo)(() => WOe(), [t]);
}
-var GOe = () => /* @__PURE__ */ (0, L.jsx)(b6, {
+var KOe = () => /* @__PURE__ */ (0, L.jsx)(b6, {
dataKey: "value",
cornerRadius: U7,
barSize: W7,
@@ -66534,17 +66541,17 @@ var GOe = () => /* @__PURE__ */ (0, L.jsx)(b6, {
fillOpacity: .25
})
});
-J7.RadialBar = ROe, J7.Tooltip = zOe, J7.Legend = BOe;
+J7.RadialBar = zOe, J7.Tooltip = BOe, J7.Legend = VOe;
//#endregion
//#region src/react/stats/radial-card.tsx
-var KOe = [
+var qOe = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], qOe = [
+], JOe = [
"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",
@@ -66585,13 +66592,13 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
children: /* @__PURE__ */ (0, L.jsxs)(J7, {
data: f,
nameKey: "slice",
- config: OOe(s.map((e) => e.name)),
- max: Nue(s.map((e) => e.value)),
+ config: kOe(s.map((e) => e.name)),
+ max: Pue(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
children: [/* @__PURE__ */ (0, L.jsx)(J7.RadialBar, {
dataKey: "value",
- barSize: Pue(s.length),
+ barSize: Fue(s.length),
radialBarProps: {
shape: (e) => /* @__PURE__ */ (0, L.jsx)(YJ, {
...e,
@@ -66617,13 +66624,13 @@ function Y7({ 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 ${qOe[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 ${JOe[t % 6]}`,
children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, L.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${KOe[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${qOe[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, L.jsx)("b", {
@@ -66642,7 +66649,7 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var JOe = 10, X7 = T7[5], YOe = T7[4], XOe = `${Rw()} flex flex-col gap-4`, ZOe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", QOe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", $Oe = "开始播放后,这里会显示最近的真实观看证据。", eke = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", tke = "添加媒体文件夹后,这里会显示存储空间。";
+var YOe = 10, X7 = T7[5], XOe = T7[4], ZOe = `${Rw()} flex flex-col gap-4`, QOe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", $Oe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", eke = "开始播放后,这里会显示最近的真实观看证据。", tke = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", nke = "添加媒体文件夹后,这里会显示存储空间。";
function Z7({ term: e, value: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
@@ -66695,14 +66702,14 @@ function $7({ term: e, figure: t, unit: n }) {
}
function e9({ headline: e, children: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: `${XOe} md:flex-row md:gap-6`,
+ className: `${ZOe} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function nke({ data: t, configurable: n, openMediaSettings: r }) {
+function rke({ data: t, configurable: n, openMediaSettings: r }) {
return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -66730,7 +66737,7 @@ function nke({ data: t, configurable: n, openMediaSettings: r }) {
unit: "个视频",
series: "视频",
color: X7,
- rows: Rue(t.by_length)
+ rows: zue(t.by_length)
}),
/* @__PURE__ */ (0, L.jsx)(P7, {
title: "画质",
@@ -66745,7 +66752,7 @@ function nke({ data: t, configurable: n, openMediaSettings: r }) {
series: "条目",
color: X7,
layout: "horizontal",
- rows: Iue(t.by_medium)
+ rows: Lue(t.by_medium)
})
]
})]
@@ -66763,10 +66770,10 @@ function nke({ data: t, configurable: n, openMediaSettings: r }) {
size: "small",
children: "添加关注"
})] }),
- children: ZOe
+ children: QOe
});
}
-function rke({ data: e }) {
+function ike({ data: e }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(V7, {
activity: e.play_activity,
title: "播放时间",
@@ -66781,11 +66788,11 @@ function rke({ data: e }) {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: YOe,
- rows: Bue(e.replays)
+ color: XOe,
+ rows: Vue(e.replays)
})] });
}
-function ike({ attribution: e }) {
+function ake({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col",
@@ -66818,7 +66825,7 @@ function ike({ attribution: e }) {
]
});
}
-function ake({ volume: e }) {
+function oke({ volume: e }) {
let t = e.total, n = e.used ?? 0;
return /* @__PURE__ */ (0, L.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -66857,10 +66864,10 @@ function ake({ volume: e }) {
]
});
}
-function oke({ volumes: e, configurable: t, openMediaSettings: n }) {
+function ske({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(ake, { volume: e }, `${e.kind}:${e.label}`))
+ children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(oke, { volume: e }, `${e.kind}:${e.label}`))
}) : /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
icon: CS,
@@ -66870,12 +66877,12 @@ function oke({ volumes: e, configurable: t, openMediaSettings: n }) {
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: tke
+ children: nke
});
}
-function ske({ tags: e, tagLabel: t, onTag: n }) {
+function cke({ tags: e, tagLabel: t, onTag: n }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)(H7, {
- previewCount: JOe,
+ previewCount: YOe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, L.jsx)("li", {
className: "min-w-0",
@@ -66909,10 +66916,10 @@ function ske({ tags: e, tagLabel: t, onTag: n }) {
size: "small",
children: "补全资料"
}),
- children: QOe
+ children: $Oe
});
}
-function cke({ rows: e }) {
+function lke({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
@@ -66924,14 +66931,14 @@ function cke({ rows: e }) {
children: [/* @__PURE__ */ (0, L.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, L.jsx)("a", {
- href: Mue(e),
+ href: Nue(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
}), /* @__PURE__ */ (0, L.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, L.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, L.jsx)("span", { children: jue(e) })]
+ children: [/* @__PURE__ */ (0, L.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, L.jsx)("span", { children: Mue(e) })]
})]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "min-w-0 basis-40",
@@ -66955,10 +66962,10 @@ function cke({ rows: e }) {
size: "small",
children: "浏览馆藏"
}),
- children: $Oe
+ children: eke
});
}
-function lke({ sources: e, videos: t }) {
+function uke({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)("article", {
@@ -66998,7 +67005,7 @@ function lke({ sources: e, videos: t }) {
size: "small",
children: "补全资料"
}),
- children: eke
+ children: tke
});
}
function t9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
@@ -67017,7 +67024,7 @@ function t9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function uke(e) {
+function dke(e) {
let t = kt({
queryKey: FL,
queryFn: ({ signal: e }) => IL(e)
@@ -67054,7 +67061,7 @@ function uke(e) {
icon: SS,
accent: 1,
figure: r.played.toLocaleString(),
- detail: Aue(r.play_seconds)
+ detail: jue(r.play_seconds)
}),
/* @__PURE__ */ (0, L.jsx)(t9, {
id: "coverage",
@@ -67076,7 +67083,7 @@ function uke(e) {
}),
/* @__PURE__ */ (0, L.jsx)(pO, {
id: "inventory",
- children: /* @__PURE__ */ (0, L.jsx)(nke, {
+ children: /* @__PURE__ */ (0, L.jsx)(rke, {
data: n,
...e
})
@@ -67127,7 +67134,7 @@ function uke(e) {
})
]
})
- }), /* @__PURE__ */ (0, L.jsx)(rke, { data: n })]
+ }), /* @__PURE__ */ (0, L.jsx)(ike, { data: n })]
}),
/* @__PURE__ */ (0, L.jsx)(pO, {
id: "coverage",
@@ -67137,7 +67144,7 @@ function uke(e) {
figure: `${c}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, L.jsx)(ike, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, L.jsx)(ake, { attribution: n.attribution })
})
}),
/* @__PURE__ */ (0, L.jsx)(pO, {
@@ -67148,7 +67155,7 @@ function uke(e) {
figure: String(i.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, L.jsx)(oke, {
+ children: /* @__PURE__ */ (0, L.jsx)(ske, {
volumes: n.storage_volumes,
...e
})
@@ -67163,21 +67170,21 @@ function uke(e) {
className: "px-4 pt-3",
children: /* @__PURE__ */ (0, L.jsxs)(dO, {
"aria-label": "统计维度",
- className: CM,
+ className: SM,
children: [
/* @__PURE__ */ (0, L.jsx)(fO, {
id: "tags",
- className: wM,
+ className: CM,
children: "内容标签"
}),
/* @__PURE__ */ (0, L.jsx)(fO, {
id: "recent",
- className: wM,
+ className: CM,
children: "最近看过"
}),
/* @__PURE__ */ (0, L.jsx)(fO, {
id: "sources",
- className: wM,
+ className: CM,
children: "标签来源"
})
]
@@ -67186,7 +67193,7 @@ function uke(e) {
/* @__PURE__ */ (0, L.jsx)(pO, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(ske, {
+ children: /* @__PURE__ */ (0, L.jsx)(cke, {
tags: n.top_tags,
...e
})
@@ -67194,12 +67201,12 @@ function uke(e) {
/* @__PURE__ */ (0, L.jsx)(pO, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(cke, { rows: n.recent })
+ children: /* @__PURE__ */ (0, L.jsx)(lke, { rows: n.recent })
}),
/* @__PURE__ */ (0, L.jsx)(pO, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(lke, {
+ children: /* @__PURE__ */ (0, L.jsx)(uke, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -67210,7 +67217,7 @@ function uke(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function dke(e, t) {
+function fke(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
@@ -67234,13 +67241,13 @@ function a9(e, t) {
function o9(e) {
return e.value;
}
-function fke(e) {
+function pke(e) {
return e.index;
}
-function pke(e) {
+function mke(e) {
return e.nodes;
}
-function mke(e) {
+function hke(e) {
return e.links;
}
function s9(e, t) {
@@ -67255,8 +67262,8 @@ function c9({ nodes: e }) {
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function hke() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = fke, c = dke, l, u, d = pke, f = mke, p = 6;
+function gke() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = pke, c = fke, l, u, d = mke, f = hke, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
@@ -67442,7 +67449,7 @@ function hke() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var l9 = Math.PI, u9 = 2 * l9, d9 = 1e-6, gke = u9 - d9;
+var l9 = Math.PI, u9 = 2 * l9, d9 = 1e-6, _ke = u9 - d9;
function f9() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
@@ -67483,7 +67490,7 @@ f9.prototype = p9.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) > d9 || Math.abs(this._y1 - l) > d9) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % u9 + u9), d > gke ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > d9 && (this._ += "A" + n + "," + n + ",0," + +(d >= l9) + "," + 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) > d9 || Math.abs(this._y1 - l) > d9) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % u9 + u9), d > _ke ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > d9 && (this._ += "A" + n + "," + n + ",0," + +(d >= l9) + "," + 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";
@@ -67501,27 +67508,27 @@ function m9(e) {
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function _ke(e) {
+function vke(e) {
return e[0];
}
-function vke(e) {
+function yke(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var yke = Array.prototype.slice;
+var bke = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function bke(e) {
+function xke(e) {
return e.source;
}
-function xke(e) {
+function Ske(e) {
return e.target;
}
-function Ske(e) {
- var t = bke, n = xke, r = _ke, i = vke, a = null;
+function Cke(e) {
+ var t = xke, n = Ske, r = vke, i = yke, a = null;
function o() {
- var o, s = yke.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ var o, s = bke.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
if (a ||= o = p9(), 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) {
@@ -67536,48 +67543,48 @@ function Ske(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function Cke(e, t, n, r, i) {
+function wke(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function wke() {
- return Ske(Cke);
+function Tke() {
+ return Cke(wke);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function Tke(e) {
+function Eke(e) {
return [e.source.x1, e.y0];
}
-function Eke(e) {
+function Dke(e) {
return [e.target.x0, e.y1];
}
-function Dke() {
- return wke().source(Tke).target(Eke);
+function Oke() {
+ return Tke().source(Eke).target(Dke);
}
//#endregion
//#region src/react/taste/taste.ts
-var Oke = "/api/taste", h9 = "/api/taste/refresh", kke = "/api/taste/import", Ake = "/api/taste/source", g9 = (e) => ["taste", e], jke = ["taste", "refresh"], Mke = [
+var kke = "/api/taste", h9 = "/api/taste/refresh", Ake = "/api/taste/import", jke = "/api/taste/source", g9 = (e) => ["taste", e], Mke = ["taste", "refresh"], Nke = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], _9 = (e, t) => Aw(`${Oke}?window=${e}`, t), Nke = (e) => Aw(h9, e);
-async function Pke(e, t) {
+], _9 = (e, t) => Aw(`${kke}?window=${e}`, t), Pke = (e) => Aw(h9, e);
+async function Fke(e, t) {
await X.fetchQuery({
queryKey: g9(e),
queryFn: () => _9(e, t)
});
}
-var Fke = (e) => q(h9, {
+var Ike = (e) => q(h9, {
window: e,
background: !0
-}), Ike = (e, t) => q(Ake, {
+}), Lke = (e, t) => q(jke, {
operation: "remove",
source_key: e,
window: t
});
-async function Lke(e) {
- let t = await fetch(kke, {
+async function Rke(e) {
+ let t = await fetch(Ake, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -67595,21 +67602,21 @@ async function Lke(e) {
}
return n;
}
-var Rke = 1e4, v9 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", zke = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, Bke = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function Vke(e) {
+var zke = 1e4, v9 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", Bke = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, Vke = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function Hke(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 Hke(e) {
- let t = e.map(Bke), n = Math.max(1, ...t);
+function Uke(e) {
+ let t = e.map(Vke), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
var y9 = (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 Uke(e) {
+function Wke(e) {
let t = y9(e, 6);
return t.length < 3 ? [] : t;
}
@@ -67620,10 +67627,10 @@ var b9 = {
source: 145,
target: 545
};
-function Wke(e = []) {
+function Gke(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 = hke().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 = gke().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -67638,7 +67645,7 @@ function Wke(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = Dke();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = Oke();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -67668,7 +67675,7 @@ function Wke(e = []) {
total: a
};
}
-var Gke = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = I.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var Kke = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = I.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = I.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;
if (e === void 0 || t === void 0) return null;
switch (o) {
@@ -67791,14 +67798,14 @@ var T9 = I.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
T9.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var Kke = 1, qke = .3, Jke = 6, E9 = 1500, D9 = "value", O9 = (0, I.createContext)(null);
+var qke = 1, Jke = .3, Yke = 6, E9 = 1500, D9 = "value", O9 = (0, I.createContext)(null);
function k9() {
let e = (0, I.use)(O9);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
function A9({ 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, I.useId)().replace(/:/g, ""), [d, f] = (0, I.useState)(o), p = sAe(c, l), m = (0, I.useCallback)((e) => {
+ let u = (0, I.useId)().replace(/:/g, ""), [d, f] = (0, I.useState)(o), p = cAe(c, l), m = (0, I.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, I.useMemo)(() => ({
config: e,
@@ -67816,32 +67823,32 @@ function A9({ config: e, data: t, children: n, className: r, chartProps: i, back
children: /* @__PURE__ */ (0, L.jsxs)(a7, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: c }), /* @__PURE__ */ (0, L.jsxs)(MDe, {
+ children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: c }), /* @__PURE__ */ (0, L.jsxs)(NDe, {
id: u,
data: c ? p : t,
...i,
children: [
a && /* @__PURE__ */ (0, L.jsx)(_7, { variant: a }),
n,
- c && /* @__PURE__ */ (0, L.jsx)(cAe, {})
+ c && /* @__PURE__ */ (0, L.jsx)(lAe, {})
]
})]
})
});
}
-function Yke({ dataKey: e, variant: t = "filled", fillOpacity: n = qke, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
+function Xke({ dataKey: e, variant: t = "filled", fillOpacity: n = Jke, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = k9(), d = (0, I.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 } = tAe(a, d, e, p.dot);
+ }, m = t === "filled", { dot: h, activeDot: g } = nAe(a, d, e, p.dot);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(W3, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
- strokeWidth: Kke,
+ strokeWidth: qke,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -67854,29 +67861,29 @@ function Yke({ dataKey: e, variant: t = "filled", fillOpacity: n = qke, isGlowin
},
...o
}), /* @__PURE__ */ (0, L.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, L.jsx)(nAe, {
+ /* @__PURE__ */ (0, L.jsx)(rAe, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, L.jsx)(rAe, {
+ /* @__PURE__ */ (0, L.jsx)(iAe, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, L.jsx)(iAe, {
+ m && /* @__PURE__ */ (0, L.jsx)(aAe, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, L.jsx)(aAe, {
+ r && /* @__PURE__ */ (0, L.jsx)(oAe, {
id: d,
dataKey: e
})
] })] });
}
var j9 = () => null, M9 = () => null;
-function Xke({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+function Zke({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
return /* @__PURE__ */ (0, L.jsx)(L4, {
gridType: e,
stroke: t,
@@ -67885,7 +67892,7 @@ function Xke({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function Zke({ tick: e = {
+function Qke({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
@@ -67896,7 +67903,7 @@ function Zke({ tick: e = {
...n
});
}
-function Qke({ tick: e = {
+function $ke({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
@@ -67908,7 +67915,7 @@ function Qke({ tick: e = {
...r
});
}
-function $ke({ variant: e, roundness: t, defaultIndex: n }) {
+function eAe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = k9();
return r ? null : /* @__PURE__ */ (0, L.jsx)(d7, {
defaultIndex: n,
@@ -67920,7 +67927,7 @@ function $ke({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function eAe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+function tAe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { isLoading: i, selectedDataKey: a, selectDataKey: o } = k9();
return i ? null : /* @__PURE__ */ (0, L.jsx)(p7, {
verticalAlign: n,
@@ -67933,7 +67940,7 @@ function eAe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var tAe = (e, t, n, r) => {
+var nAe = (e, t, n, r) => {
let i = !1, a = !1;
return I.Children.forEach(e, (e) => {
if ((0, I.isValidElement)(e)) {
@@ -67975,7 +67982,7 @@ var tAe = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), nAe = ({ id: e, dataKey: t, config: n }) => {
+}) }), rAe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -67988,7 +67995,7 @@ var tAe = (e, t, n, r) => {
colorsCount: r
})
});
-}, rAe = ({ id: e, dataKey: t, config: n }) => {
+}, iAe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
@@ -68001,7 +68008,7 @@ var tAe = (e, t, n, r) => {
colorsCount: r
})
});
-}, iAe = ({ id: e, dataKey: t, config: n }) => {
+}, aAe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, L.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
@@ -68014,7 +68021,7 @@ var tAe = (e, t, n, r) => {
opacities: i
})
});
-}, aAe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
+}, oAe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -68034,7 +68041,7 @@ var tAe = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, L.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), oAe = (e) => [
+}), sAe = (e) => [
"A",
"B",
"C",
@@ -68045,7 +68052,7 @@ var tAe = (e, t, n, r) => {
skill: e,
[D9]: 30 + Math.random() * 70
}));
-function sAe(e, t = Jke) {
+function cAe(e, t = Yke) {
let [n, r] = (0, I.useState)(0);
return (0, I.useEffect)(() => {
if (!e) return;
@@ -68053,9 +68060,9 @@ function sAe(e, t = Jke) {
r((e) => e + 1);
}, E9);
return () => clearInterval(t);
- }, [e]), (0, I.useMemo)(() => oAe(t), [t, n]);
+ }, [e]), (0, I.useMemo)(() => sAe(t), [t, n]);
}
-var cAe = () => /* @__PURE__ */ (0, L.jsx)(W3, {
+var lAe = () => /* @__PURE__ */ (0, L.jsx)(W3, {
dataKey: D9,
stroke: "currentColor",
strokeOpacity: .3,
@@ -68067,17 +68074,17 @@ var cAe = () => /* @__PURE__ */ (0, L.jsx)(W3, {
animationDuration: E9,
animationEasing: "ease-in-out"
});
-A9.Radar = Yke, A9.Dot = j9, A9.ActiveDot = M9, A9.PolarGrid = Xke, A9.PolarAngleAxis = Zke, A9.PolarRadiusAxis = Qke, A9.Tooltip = $ke, A9.Legend = eAe;
+A9.Radar = Xke, A9.Dot = j9, A9.ActiveDot = M9, A9.PolarGrid = Zke, A9.PolarAngleAxis = Qke, A9.PolarRadiusAxis = $ke, A9.Tooltip = eAe, A9.Legend = tAe;
//#endregion
//#region src/react/taste/charts.tsx
-var lAe = [
+var uAe = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], uAe = [
+], dAe = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
@@ -68087,7 +68094,7 @@ var lAe = [
], P9 = { value: {
label: "标签命中",
colors: E7(T7[3])
-} }, dAe = [
+} }, fAe = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -68097,20 +68104,20 @@ var lAe = [
"min-h-52",
"min-h-60",
"min-h-64"
-], fAe = 26, pAe = { radius: P9.value }, mAe = (e, t) => Math.sqrt(e / t);
-function hAe({ rows: e, label: t }) {
- let n = Uke(e);
+], pAe = 26, mAe = { radius: P9.value }, hAe = (e, t) => Math.sqrt(e / t);
+function gAe({ rows: e, label: t }) {
+ let n = Wke(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: mAe(e.value, r)
+ radius: hAe(e.value, r)
}));
return /* @__PURE__ */ (0, L.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
children: /* @__PURE__ */ (0, L.jsxs)(A9, {
data: i,
- config: pAe,
+ config: mAe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
@@ -68127,17 +68134,17 @@ function hAe({ rows: e, label: t }) {
})
});
}
-function gAe({ rows: e, label: t }) {
+function _Ae({ rows: e, label: t }) {
let n = y9(e, 8);
return n.length ? /* @__PURE__ */ (0, L.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${dAe[n.length]}`,
+ className: `flex grow flex-col ${fAe[n.length]}`,
children: /* @__PURE__ */ (0, L.jsxs)(x7, {
data: n,
config: P9,
layout: "horizontal",
barRadius: 4,
- chartProps: { maxBarSize: fAe },
+ chartProps: { maxBarSize: pAe },
className: "aspect-auto text-text-secondary",
children: [
/* @__PURE__ */ (0, L.jsx)(x7.YAxis, {
@@ -68161,8 +68168,8 @@ function gAe({ rows: e, label: t }) {
})
}) : null;
}
-function _Ae({ flows: e }) {
- let [t, n] = (0, I.useState)(null), r = Wke(e);
+function vAe({ flows: e }) {
+ let [t, n] = (0, I.useState)(null), r = Gke(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, L.jsxs)("section", {
@@ -68190,7 +68197,7 @@ function _Ae({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${lAe[e.color]}`,
+ className: `outline-none transition-opacity ${uAe[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -68224,14 +68231,14 @@ function _Ae({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? uAe[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? dAe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, L.jsxs)("text", {
x: x9[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: [Gke(e.name), /* @__PURE__ */ (0, L.jsx)("tspan", {
+ children: [Kke(e.name), /* @__PURE__ */ (0, L.jsx)("tspan", {
x: x9[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
@@ -68249,7 +68256,7 @@ function _Ae({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var vAe = 10, F9 = Sw(RA, zA, "text-body-2-medium"), I9 = `${Rw()} flex flex-col gap-4`, L9 = "rounded-xl bg-background-primary-default p-3", yAe = "读取运行 Peach 的这台电脑上的浏览记录", bAe = "导入或读取浏览记录后,这里会列出已采集设备。", xAe = "馆藏里暂时没有对得上浏览信号的标签。", SAe = "采集浏览记录后,这里会显示聚合后的口味证据。", CAe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", wAe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", TAe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", EAe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", DAe = "这个数据源将不再用于口味分析。原始导出文件保留。", R9 = "peach-taste-guide-dismissed";
+var yAe = 10, F9 = Sw(RA, zA, "text-body-2-medium"), I9 = `${Rw()} flex flex-col gap-4`, L9 = "rounded-xl bg-background-primary-default p-3", bAe = "读取运行 Peach 的这台电脑上的浏览记录", xAe = "导入或读取浏览记录后,这里会列出已采集设备。", SAe = "馆藏里暂时没有对得上浏览信号的标签。", CAe = "采集浏览记录后,这里会显示聚合后的口味证据。", wAe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", TAe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", EAe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", DAe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", OAe = "这个数据源将不再用于口味分析。原始导出文件保留。", R9 = "peach-taste-guide-dismissed";
function z9({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
className: AA(),
@@ -68276,22 +68283,22 @@ function B9({ name: e, domain: t }) {
})]
});
}
-function OAe({ html: e }) {
+function kAe({ html: e }) {
return /* @__PURE__ */ (0, L.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 ${NF}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function kAe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
+function AAe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
if (!e.length) return /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
icon: PS,
title: "暂无足够证据",
children: r
});
- let o = Hke(e);
+ let o = Uke(e);
return /* @__PURE__ */ (0, L.jsx)(H7, {
- previewCount: vAe,
+ previewCount: yAe,
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, L.jsxs)(L.Fragment, { children: [
@@ -68318,7 +68325,7 @@ function kAe({ 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, L.jsx)(OAe, { html: a(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, L.jsx)(kAe, { html: a(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
avatar_focus: e.avatar_focus
@@ -68330,7 +68337,7 @@ function kAe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
children: e.name
}), /* @__PURE__ */ (0, L.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: Vke(e)
+ children: Hke(e)
})]
}),
s ? /* @__PURE__ */ (0, L.jsx)(mS, {
@@ -68360,17 +68367,17 @@ function V9({ label: e, panels: t, onSignal: n, avatarInner: r }) {
className: "px-4 pt-3",
children: /* @__PURE__ */ (0, L.jsx)(dO, {
"aria-label": e,
- className: CM,
+ className: SM,
children: t.map((e) => /* @__PURE__ */ (0, L.jsx)(fO, {
id: e.id,
- className: wM,
+ className: CM,
children: e.name
}, e.id))
})
}), t.map((e) => /* @__PURE__ */ (0, L.jsx)(pO, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(kAe, {
+ children: /* @__PURE__ */ (0, L.jsx)(AAe, {
...e.props,
onSignal: n,
avatarInner: r
@@ -68378,7 +68385,7 @@ function V9({ label: e, panels: t, onSignal: n, avatarInner: r }) {
}, e.id))]
});
}
-function AAe({ data: e, onSignal: t, navigate: n }) {
+function jAe({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -68453,12 +68460,12 @@ function AAe({ data: e, onSignal: t, navigate: n }) {
shell: "plain",
icon: PS,
title: "还没有可探索的入口",
- children: xAe
+ children: SAe
})
]
});
}
-function jAe({ onboarding: e, done: t }) {
+function MAe({ onboarding: e, done: t }) {
let [n, r] = (0, I.useState)(() => {
try {
return localStorage.getItem(R9) === "1";
@@ -68477,11 +68484,11 @@ function jAe({ onboarding: e, done: t }) {
children: [
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: wAe
+ children: TAe
}),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: TAe
+ children: EAe
}),
/* @__PURE__ */ (0, L.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -68511,7 +68518,7 @@ function jAe({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: EAe
+ children: DAe
}),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "self-start",
@@ -68531,7 +68538,7 @@ function jAe({ onboarding: e, done: t }) {
})
});
}
-function MAe({ busy: e, onRefresh: t, onImport: n }) {
+function NAe({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, I.useRef)(null), [i, a] = (0, I.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -68541,7 +68548,7 @@ function MAe({ busy: e, onRefresh: t, onImport: n }) {
"data-variant": "primary",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
leadingIcon: vS,
- title: yAe,
+ title: bAe,
onClick: t,
...Y(e),
children: "读取浏览器历史"
@@ -68584,9 +68591,9 @@ function MAe({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function NAe({ sources: e, window: t, toast: n }) {
+function PAe({ sources: e, window: t, toast: n }) {
let r = At({
- mutationFn: (e) => Ike(e, t),
+ mutationFn: (e) => Lke(e, t),
onSuccess: (e) => {
X.setQueryData(g9(t), e.dashboard), n("已移除口味数据源");
}
@@ -68638,7 +68645,7 @@ function NAe({ sources: e, window: t, toast: n }) {
onClick: () => {
r.isPending || h({
title: "移除口味数据源",
- body: DAe,
+ body: OAe,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -68650,26 +68657,26 @@ function NAe({ sources: e, window: t, toast: n }) {
shell: "plain",
icon: yS,
title: "还没有数据源",
- children: bAe
+ children: xAe
})
]
});
}
-function PAe(e) {
+function FAe(e) {
let { onSignal: t, navigate: n, toast: r, avatarInner: i, onboarding: o } = e, [s, c] = (0, I.useState)("all"), [l, u] = (0, I.useState)("browser"), d = (0, I.useRef)(null), f = kt({
queryKey: g9(s),
queryFn: ({ signal: e }) => _9(s, e),
placeholderData: Oe
}), { job: p, running: m, outcome: h, start: g } = Dj({
- queryKey: jke,
- queryFn: ({ signal: e }) => Nke(e),
- start: () => Fke(s),
- idlePollMs: Rke,
+ queryKey: Mke,
+ queryFn: ({ signal: e }) => Pke(e),
+ start: () => Ike(s),
+ idlePollMs: zke,
onFinish: (e) => {
e.status !== "failed" && (X.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
}), _ = At({
- mutationFn: (e) => Lke(e),
+ mutationFn: (e) => Rke(e),
onSuccess: (e) => {
X.setQueryData(g9("all"), e.dashboard), c("all"), r("已导入口味数据");
}
@@ -68695,14 +68702,14 @@ function PAe(e) {
className: "flex flex-wrap items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, L.jsxs)(dO, {
"aria-label": "口味证据来源",
- className: CM,
+ className: SM,
children: [/* @__PURE__ */ (0, L.jsx)(fO, {
id: "browser",
- className: wM,
+ className: CM,
children: "浏览器记录"
}), /* @__PURE__ */ (0, L.jsx)(fO, {
id: "peach",
- className: wM,
+ className: CM,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -68714,12 +68721,12 @@ function PAe(e) {
onSelectionChange: (e) => {
e !== null && c(String(e));
},
- children: Mke.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Cj, {
+ children: Nke.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Cj, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(MAe, {
+ /* @__PURE__ */ (0, L.jsx)(NAe, {
busy: m || g.isPending || _.isPending,
onRefresh: y,
onImport: () => d.current?.click()
@@ -68735,7 +68742,7 @@ function PAe(e) {
]
})]
}),
- /* @__PURE__ */ (0, L.jsx)(jAe, {
+ /* @__PURE__ */ (0, L.jsx)(MAe, {
onboarding: o,
done: !!(x.history_sources || b.updated_at)
}),
@@ -68807,7 +68814,7 @@ function PAe(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, L.jsx)(hAe, {
+ /* @__PURE__ */ (0, L.jsx)(gAe, {
rows: T,
label: "主要口味维度"
}),
@@ -68818,14 +68825,14 @@ function PAe(e) {
]
}), /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: T.length ? /* @__PURE__ */ (0, L.jsx)(gAe, {
+ children: T.length ? /* @__PURE__ */ (0, L.jsx)(_Ae, {
rows: T,
label: "口味维度排名"
}) : /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
icon: PS,
title: "暂无口味维度",
- children: SAe
+ children: CAe
})
})]
}),
@@ -68841,7 +68848,7 @@ function PAe(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, L.jsx)(_Ae, { flows: b.creator_flows }),
+ /* @__PURE__ */ (0, L.jsx)(vAe, { flows: b.creator_flows }),
/* @__PURE__ */ (0, L.jsx)(V9, {
label: "浏览器口味维度",
onSignal: t,
@@ -68884,7 +68891,7 @@ function PAe(e) {
rows: E,
kind: "",
visual: "none",
- empty: CAe
+ empty: wAe
}
}
]
@@ -68903,7 +68910,7 @@ function PAe(e) {
icon: SS,
term: "Peach 看过",
figure: Number(x.peach_items || 0).toLocaleString(),
- detail: zke(x.peach_seconds || 0)
+ detail: Bke(x.peach_seconds || 0)
}),
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 1,
@@ -68998,12 +69005,12 @@ function PAe(e) {
})
]
}),
- /* @__PURE__ */ (0, L.jsx)(AAe, {
+ /* @__PURE__ */ (0, L.jsx)(jAe, {
data: b,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, L.jsx)(NAe, {
+ /* @__PURE__ */ (0, L.jsx)(PAe, {
sources: b.sources || [],
window: s,
toast: r
@@ -69032,26 +69039,26 @@ function H9({ term: e, value: t, rest: n }) {
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function FAe(e) {
+function IAe(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 IAe = (e) => {
+var LAe = (e) => {
switch (e) {
- case "success": return zAe;
- case "info": return VAe;
- case "warning": return BAe;
- case "error": return HAe;
+ case "success": return BAe;
+ case "info": return HAe;
+ case "warning": return VAe;
+ case "error": return UAe;
default: return null;
}
-}, LAe = Array(12).fill(0), RAe = ({ visible: e, className: t }) => /*#__PURE__*/ I.createElement("div", {
+}, RAe = Array(12).fill(0), zAe = ({ visible: e, className: t }) => /*#__PURE__*/ I.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ I.createElement("div", { className: "sonner-spinner" }, LAe.map((e, t) => /*#__PURE__*/ I.createElement("div", {
+}, /*#__PURE__*/ I.createElement("div", { className: "sonner-spinner" }, RAe.map((e, t) => /*#__PURE__*/ I.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), zAe = /*#__PURE__*/ I.createElement("svg", {
+})))), BAe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -69062,7 +69069,7 @@ var IAe = (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"
-})), BAe = /*#__PURE__*/ I.createElement("svg", {
+})), VAe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -69073,7 +69080,7 @@ var IAe = (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"
-})), VAe = /*#__PURE__*/ I.createElement("svg", {
+})), HAe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -69084,7 +69091,7 @@ var IAe = (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"
-})), HAe = /*#__PURE__*/ I.createElement("svg", {
+})), UAe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -69095,7 +69102,7 @@ var IAe = (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"
-})), UAe = /*#__PURE__*/ I.createElement("svg", {
+})), WAe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -69116,7 +69123,7 @@ var IAe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), WAe = () => {
+})), GAe = () => {
let [e, t] = I.useState(document.hidden);
return I.useEffect(() => {
let e = () => {
@@ -69124,7 +69131,7 @@ var IAe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, GAe = 1, KAe = 100, U9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : GAe++, W9 = new class {
+}, KAe = 1, qAe = 100, U9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : KAe++, W9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -69134,7 +69141,7 @@ var IAe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - KAe;
+ let e = this.toasts.length - qAe;
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);
@@ -69212,7 +69219,7 @@ var IAe = (e) => {
type: "default",
message: e
});
- else if (JAe(e) && !e.ok) {
+ else if (YAe(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" && !I.isValidElement(r) ? r : { message: r };
this.create({
@@ -69265,7 +69272,7 @@ var IAe = (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();
}
-}(), qAe = (e, t) => W9.message(e, t), JAe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", G9 = Object.assign(qAe, {
+}(), JAe = (e, t) => W9.message(e, t), YAe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", G9 = Object.assign(JAe, {
success: W9.success,
info: W9.info,
warning: W9.warning,
@@ -69279,20 +69286,20 @@ var IAe = (e) => {
getHistory: () => W9.toasts,
getToasts: () => W9.getActiveToasts()
});
-FAe("[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%)}");
+IAe("[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 YAe = 3, XAe = "24px", ZAe = "16px", q9 = 4e3, QAe = 356, $Ae = 14, eje = 45, tje = 200;
+var XAe = 3, ZAe = "24px", QAe = "16px", q9 = 4e3, $Ae = 356, eje = 14, tje = 45, nje = 200;
function J9(...e) {
return e.filter(Boolean).join(" ");
}
-function nje(e) {
+function rje(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var rje = (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] = I.useState(null), [O, k] = I.useState(null), [A, j] = I.useState(!1), [M, N] = I.useState(!1), [ee, te] = I.useState(!1), [P, F] = I.useState(!1), [ne, re] = I.useState(!1), [ie, L] = I.useState(0), [ae, oe] = I.useState(0), se = I.useRef(n.duration || y || q9), ce = I.useRef(null), le = I.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 = I.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = I.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = I.useMemo(() => n.duration || y || q9, [n.duration, y]), ve = I.useRef(0), ye = I.useRef(0), be = I.useRef(0), xe = I.useRef(null), [Se, Ce] = b.split("-"), we = I.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = WAe(), Ee = I.useMemo(() => e.swipeDirections ?? nje(b), [e.swipeDirections, b]), De = n.invert || t, Oe = z === "loading";
+var ije = (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] = I.useState(null), [O, k] = I.useState(null), [A, j] = I.useState(!1), [M, N] = I.useState(!1), [ee, te] = I.useState(!1), [P, F] = I.useState(!1), [ne, re] = I.useState(!1), [ie, L] = I.useState(0), [ae, oe] = I.useState(0), se = I.useRef(n.duration || y || q9), ce = I.useRef(null), le = I.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 = I.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = I.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = I.useMemo(() => n.duration || y || q9, [n.duration, y]), ve = I.useRef(0), ye = I.useRef(0), be = I.useRef(0), xe = I.useRef(null), [Se, Ce] = b.split("-"), we = I.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = GAe(), Ee = I.useMemo(() => e.swipeDirections ?? rje(b), [e.swipeDirections, b]), De = n.invert || t, Oe = z === "loading";
ye.current = I.useMemo(() => he * x + we, [he, we]), I.useEffect(() => {
se.current = _e;
}, [_e]), I.useEffect(() => {
@@ -69333,7 +69340,7 @@ var rje = (e) => {
let ke = I.useCallback(() => {
N(!0), L(ye.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, tje);
+ }, nje);
}, [
n,
d,
@@ -69366,12 +69373,12 @@ var rje = (e) => {
return w?.loading ? /*#__PURE__*/ I.createElement("div", {
className: J9(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": z === "loading"
- }, w.loading) : /*#__PURE__*/ I.createElement(RAe, {
+ }, w.loading) : /*#__PURE__*/ I.createElement(zAe, {
className: J9(C?.loader, n?.classNames?.loader),
visible: z === "loading"
});
}
- let je = n.icon || w?.[z] || IAe(z);
+ let je = n.icon || w?.[z] || LAe(z);
return /*#__PURE__*/ I.createElement("li", {
tabIndex: 0,
ref: le,
@@ -69418,7 +69425,7 @@ var rje = (e) => {
if (P || !fe) return;
xe.current = null;
let e = Number(le.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(le.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - ce.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
- if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= eje || a > .11)) {
+ if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= tje || a > .11)) {
L(ye.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), ke(), F(!0);
return;
}
@@ -69459,7 +69466,7 @@ var rje = (e) => {
ke(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: J9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? UAe) : null, (z || n.icon || n.promise) && n.icon !== null && (w?.[z] !== null || n.icon) ? /*#__PURE__*/ I.createElement("div", {
+ }, w?.close ?? WAe) : null, (z || n.icon || n.promise) && n.icon !== null && (w?.[z] !== null || n.icon) ? /*#__PURE__*/ I.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__*/ I.createElement("div", {
@@ -69494,10 +69501,10 @@ function Y9() {
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function ije(e, t) {
+function aje(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? ZAe : XAe;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? QAe : ZAe;
function o(e) {
[
"top",
@@ -69518,8 +69525,8 @@ function ije(e, t) {
}) : o(a);
}), n;
}
-var aje = /*#__PURE__*/ I.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 = YAe, toastOptions: g, dir: _ = Y9(), gap: v = $Ae, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = I.useState([]), w = I.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = I.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = I.useState([]), [O, k] = I.useState(!1), [A, j] = I.useState(!1), [M, N] = I.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = I.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = I.useRef(null), F = I.useRef(!1), ne = I.useCallback((e) => {
+var oje = /*#__PURE__*/ I.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 = XAe, toastOptions: g, dir: _ = Y9(), gap: v = eje, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = I.useState([]), w = I.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = I.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = I.useState([]), [O, k] = I.useState(!1), [A, j] = I.useState(!1), [M, N] = I.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = I.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = I.useRef(null), F = I.useRef(!1), ne = I.useCallback((e) => {
C((t) => (t.find((t) => t.id === e.id)?.delete || W9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
return I.useEffect(() => W9.subscribe((e) => {
@@ -69605,10 +69612,10 @@ var aje = /*#__PURE__*/ I.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${QAe}px`,
+ "--width": `${$Ae}px`,
"--gap": `${v}px`,
...m,
- ...ije(l, u)
+ ...aje(l, u)
},
onBlur: (e) => {
F.current && !e.currentTarget.contains(e.relatedTarget) && (F.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -69626,7 +69633,7 @@ var aje = /*#__PURE__*/ I.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__*/ I.createElement(rje, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ I.createElement(ije, {
key: n.id,
icons: y,
index: i,
@@ -69660,8 +69667,8 @@ var aje = /*#__PURE__*/ I.forwardRef(function(e, t) {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), Z9 = !1, oje = (e, t) => {
- Z9 || (Z9 = !0, (0, dS.createRoot)(e).render(/* @__PURE__ */ (0, L.jsx)(aje, {
+}), Z9 = !1, sje = (e, t) => {
+ Z9 || (Z9 = !0, (0, dS.createRoot)(e).render(/* @__PURE__ */ (0, L.jsx)(oje, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -69682,7 +69689,7 @@ var aje = /*#__PURE__*/ I.forwardRef(function(e, t) {
error: X9(t.error, !1)
}
})));
-}, sje = (e, t) => {
+}, cje = (e, t) => {
let n = t.alert ? G9.error : G9.success, r = t.action;
n(/* @__PURE__ */ (0, L.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
@@ -69695,7 +69702,7 @@ var aje = /*#__PURE__*/ I.forwardRef(function(e, t) {
} : void 0
});
}, Q9 = null;
-function cje() {
+function lje() {
return Q9?.isConnected || (Q9 = document.createElement("div"), Q9.className = "peach-react", Q9.dataset.reactOverlays = "", document.body.append(Q9)), Q9;
}
function $9(e) {
@@ -69705,7 +69712,7 @@ function $9(e) {
children: /* @__PURE__ */ (0, L.jsx)(Pu, {
reducedMotion: "user",
children: /* @__PURE__ */ (0, L.jsx)(ty, {
- getContainer: cje,
+ getContainer: lje,
children: /* @__PURE__ */ (0, L.jsx)(e, { ...t })
})
})
@@ -69716,7 +69723,7 @@ function $9(e) {
};
};
}
-var lje = {
+var uje = {
activity: {
prefetch: (e, t) => tT(t),
mount: $9(cne)
@@ -69731,68 +69738,68 @@ var lje = {
},
configuration: {
prefetch: (e, t) => DL(t),
- mount: $9(Tue)
+ mount: $9(Eue)
},
"configuration-summary": {
prefetch: (e, t) => DL(t),
- mount: $9(Due)
+ mount: $9(Oue)
},
"data-cleanup": {
prefetch: (e, t) => Jae(t),
- mount: $9(xoe)
+ mount: $9(Soe)
},
duplicates: {
prefetch: (e, t) => LO(t),
- mount: $9(Aoe)
+ mount: $9(joe)
},
"entity-hero": {
prefetch: async () => {},
- mount: $9(vse)
+ mount: $9(yse)
},
"entity-filter": {
prefetch: async () => {},
- mount: $9(Poe)
+ mount: $9(Foe)
},
"follow-manage": {
- prefetch: (e, t) => cce(t, e.tab),
- mount: $9(sI)
+ prefetch: (e, t) => lce(t, e.tab),
+ mount: $9(cI)
},
index: {
- prefetch: (e, t) => kI(e, t),
- mount: $9(Tce)
+ prefetch: (e, t) => AI(e, t),
+ mount: $9(Ece)
},
"junk-queue": {
prefetch: async () => {},
- mount: $9(Hce)
+ mount: $9(Uce)
},
"library-processing": {
prefetch: (e, t) => qO(t),
- mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, L.jsx)(Jce, { ...e }) : /* @__PURE__ */ (0, L.jsx)(gj, { ...e }))
+ mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, L.jsx)(Yce, { ...e }) : /* @__PURE__ */ (0, L.jsx)(gj, { ...e }))
},
playlists: {
- prefetch: (e, t) => Xce(t),
- mount: $9(cle)
+ prefetch: (e, t) => Zce(t),
+ mount: $9(lle)
},
"quality-goals": {
prefetch: (e, t) => mk(t),
- mount: $9(ule)
+ mount: $9(dle)
},
review: {
prefetch: (e, t) => jk(t),
- mount: $9(Ele)
+ mount: $9(Dle)
},
scraping: {
- prefetch: (e, t) => Nle(t),
- mount: $9(Ble)
+ prefetch: (e, t) => Ple(t),
+ mount: $9(Vle)
},
stats: {
- prefetch: (e, t) => kue(t),
- mount: $9(uke)
+ prefetch: (e, t) => Aue(t),
+ mount: $9(dke)
},
taste: {
- prefetch: (e, t) => Pke("all", t),
- mount: $9(PAe)
+ prefetch: (e, t) => Fke("all", t),
+ mount: $9(FAe)
}
};
//#endregion
-export { oje as mountToaster, lje as pages, sje as showToast };
+export { sje as mountToaster, uje as pages, cje as showToast };